From 4a678491a4b221fa091428cf0d41a5673d3067b0 Mon Sep 17 00:00:00 2001 From: Cian Hatton Date: Wed, 5 Jun 2024 14:17:50 +0100 Subject: [PATCH] Deprecating Token field on MsgTransfer (#6492) * chore: deprecating Token field on MsgTransfer * chore: adding PR number to changelog * chore: remove extra char --- CHANGELOG.md | 2 + modules/apps/transfer/types/tx.pb.go | 86 ++++++++++----------- proto/ibc/applications/transfer/v1/tx.proto | 4 +- 3 files changed, 47 insertions(+), 45 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3729e051b03..b89c539add7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -69,6 +69,8 @@ Ref: https://keepachangelog.com/en/1.0.0/ ### Features +* (apps/transfer) [\#6492](https://github.com/cosmos/ibc-go/pull/6492) Added new `Tokens` field to `MsgTransfer` to enable sending of multiple denoms, and deprecated the `Token` field. + ### Bug Fixes ## [v8.3.0](https://github.com/cosmos/ibc-go/releases/tag/v8.3.0) - 2024-05-16 diff --git a/modules/apps/transfer/types/tx.pb.go b/modules/apps/transfer/types/tx.pb.go index 007b8be504f..b6ad9e9b57a 100644 --- a/modules/apps/transfer/types/tx.pb.go +++ b/modules/apps/transfer/types/tx.pb.go @@ -40,8 +40,8 @@ type MsgTransfer struct { SourcePort string `protobuf:"bytes,1,opt,name=source_port,json=sourcePort,proto3" json:"source_port,omitempty"` // the channel by which the packet will be sent SourceChannel string `protobuf:"bytes,2,opt,name=source_channel,json=sourceChannel,proto3" json:"source_channel,omitempty"` - // the tokens to be transferred - Token types.Coin `protobuf:"bytes,3,opt,name=token,proto3" json:"token"` + // the token to be transferred. this field has been replaced by the tokens field. + Token types.Coin `protobuf:"bytes,3,opt,name=token,proto3" json:"token"` // Deprecated: Do not use. // the sender address Sender string `protobuf:"bytes,4,opt,name=sender,proto3" json:"sender,omitempty"` // the recipient address on the destination chain @@ -223,47 +223,47 @@ func init() { } var fileDescriptor_7401ed9bed2f8e09 = []byte{ - // 631 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xbf, 0x6f, 0xd3, 0x4e, - 0x14, 0x8f, 0xbf, 0x49, 0xf3, 0x6d, 0x2f, 0xb4, 0xa5, 0x06, 0xb5, 0xae, 0x85, 0x9c, 0x28, 0xa2, - 0x52, 0x49, 0xd5, 0x3b, 0xa5, 0x08, 0x15, 0x65, 0x6c, 0x17, 0x06, 0x2a, 0x95, 0xa8, 0x2c, 0x2c, - 0x95, 0x7d, 0x79, 0x38, 0xa7, 0xc6, 0x77, 0xc6, 0x77, 0x89, 0x60, 0x41, 0x88, 0x09, 0x31, 0xf1, - 0x27, 0x30, 0x32, 0x76, 0xe5, 0x3f, 0xe8, 0xd8, 0x91, 0x09, 0xa1, 0x76, 0xc8, 0xc2, 0x1f, 0x81, - 0xee, 0x7c, 0x0e, 0x86, 0x21, 0xc0, 0x92, 0xdc, 0x7b, 0xef, 0xf3, 0x7e, 0x7c, 0x3e, 0xef, 0xce, - 0x68, 0x8b, 0x45, 0x94, 0x84, 0x69, 0x3a, 0x62, 0x34, 0x54, 0x4c, 0x70, 0x49, 0x54, 0x16, 0x72, - 0xf9, 0x1c, 0x32, 0x32, 0xe9, 0x12, 0xf5, 0x12, 0xa7, 0x99, 0x50, 0xc2, 0xbd, 0xc3, 0x22, 0x8a, - 0xcb, 0x30, 0x5c, 0xc0, 0xf0, 0xa4, 0xeb, 0xaf, 0x85, 0x09, 0xe3, 0x82, 0x98, 0xdf, 0x3c, 0xc1, - 0xbf, 0x1d, 0x8b, 0x58, 0x98, 0x23, 0xd1, 0x27, 0xeb, 0xdd, 0xa0, 0x42, 0x26, 0x42, 0x92, 0x44, - 0xc6, 0xba, 0x7c, 0x22, 0x63, 0x1b, 0x08, 0x6c, 0x20, 0x0a, 0x25, 0x90, 0x49, 0x37, 0x02, 0x15, - 0x76, 0x09, 0x15, 0x8c, 0xdb, 0x78, 0x53, 0x8f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ba, 0xfa, 0x0b, 0x6f, 0xf4, 0xbd, 0x3b, 0x78, 0x72, 0x71, 0x15, 0x38, - 0x97, 0x57, 0x81, 0xf3, 0xed, 0x2a, 0x70, 0x3e, 0x5c, 0x07, 0x95, 0xcb, 0xeb, 0xa0, 0xf2, 0xe5, - 0x3a, 0xa8, 0x3c, 0xdb, 0x8f, 0x99, 0x1a, 0x8e, 0x23, 0x4c, 0x45, 0x42, 0xec, 0x17, 0x81, 0x45, - 0x74, 0x37, 0x16, 0x64, 0xf2, 0x90, 0x24, 0x62, 0x30, 0x1e, 0x81, 0xd4, 0xaf, 0xbc, 0xf4, 0xba, - 0xd5, 0xab, 0x14, 0x64, 0x54, 0x37, 0x0f, 0xfb, 0xfe, 0x8f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf5, - 0xd9, 0xc0, 0x7d, 0xcf, 0x04, 0x00, 0x00, + // 634 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x3f, 0x6f, 0xd3, 0x40, + 0x14, 0x8f, 0x49, 0x1a, 0xda, 0x0b, 0x6d, 0xa9, 0x41, 0xad, 0x6b, 0x21, 0x27, 0x8a, 0xa8, 0x54, + 0x52, 0xf5, 0x4e, 0x29, 0x42, 0x45, 0x15, 0x53, 0xba, 0x30, 0x50, 0xa9, 0x58, 0x65, 0x61, 0xa9, + 0xec, 0xcb, 0xc3, 0x39, 0x35, 0xbe, 0x33, 0xbe, 0x4b, 0x04, 0x0b, 0x42, 0x4c, 0x88, 0x89, 0x8f, + 0xc0, 0xc8, 0xd8, 0x9d, 0x2f, 0xd0, 0xb1, 0x23, 0x13, 0x42, 0xed, 0xd0, 0x85, 0x0f, 0x81, 0xee, + 0x7c, 0x0e, 0x81, 0x21, 0xc0, 0x92, 0xdc, 0x7b, 0xef, 0xf7, 0xfe, 0xfc, 0x7e, 0xef, 0xce, 0x68, + 0x83, 0xc5, 0x94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x8f, + 0x14, 0x1c, 0x46, 0x79, 0x94, 0x4a, 0xa3, 0x39, 0x4b, 0x38, 0xe4, 0x76, 0xe9, 0xd6, 0x72, 0x7b, + 0xa8, 0x9e, 0x19, 0x84, 0x59, 0x74, 0x63, 0xe7, 0x2e, 0x9e, 0xf5, 0x00, 0x70, 0x51, 0xad, 0xe4, + 0x54, 0x64, 0xee, 0x2d, 0xff, 0xe2, 0x64, 0x8a, 0xb6, 0xd7, 0xd1, 0xda, 0x1f, 0xfd, 0xcb, 0xe1, + 0x77, 0x7e, 0x38, 0xa8, 0x7a, 0x20, 0x13, 0x77, 0x80, 0xe6, 0x27, 0xb7, 0xf2, 0xde, 0xec, 0x9e, + 0x53, 0x1a, 0xf8, 0xdd, 0x7f, 0x86, 0x4e, 0xe4, 0x52, 0xe8, 0xc6, 0x6f, 0x4a, 0x6c, 0xff, 0xb5, + 0xc4, 0x34, 0xdc, 0x7f, 0xf0, 0x5f, 0xf0, 0xb2, 0xab, 0x3f, 0xf7, 0x56, 0xdf, 0xbb, 0xde, 0xd3, + 0xb3, 0x8b, 0xc0, 0x39, 0xbf, 0x08, 0x9c, 0xef, 0x17, 0x81, 0xf3, 0xf1, 0x32, 0xa8, 0x9c, 0x5f, + 0x06, 0x95, 0xaf, 0x97, 0x41, 0xe5, 0xf9, 0x6e, 0xc2, 0xd4, 0x60, 0x14, 0x63, 0x2a, 0x52, 0x62, + 0xbf, 0x09, 0x2c, 0xa6, 0xdb, 0x89, 0x20, 0xe3, 0x87, 0x24, 0x15, 0xfd, 0xd1, 0x10, 0xa4, 0x7e, + 0xe7, 0x53, 0xef, 0x5b, 0xbd, 0xce, 0x40, 0xc6, 0x75, 0xf3, 0xb4, 0xef, 0xff, 0x0c, 0x00, 0x00, + 0xff, 0xff, 0xfe, 0xf1, 0xb5, 0xf1, 0xd1, 0x04, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/proto/ibc/applications/transfer/v1/tx.proto b/proto/ibc/applications/transfer/v1/tx.proto index f4bc4d16e5e..24101fff0a9 100644 --- a/proto/ibc/applications/transfer/v1/tx.proto +++ b/proto/ibc/applications/transfer/v1/tx.proto @@ -35,8 +35,8 @@ message MsgTransfer { string source_port = 1; // the channel by which the packet will be sent string source_channel = 2; - // the tokens to be transferred - cosmos.base.v1beta1.Coin token = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + // the token to be transferred. this field has been replaced by the tokens field. + cosmos.base.v1beta1.Coin token = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true, deprecated = true]; // the sender address string sender = 4; // the recipient address on the destination chain