Skip to content

Commit 5ec0c5e

Browse files
authored
Add "legacy_coins" amino encoding annotation to proto files (#1860)
1 parent 1f0660c commit 5ec0c5e

File tree

6 files changed

+261
-249
lines changed

6 files changed

+261
-249
lines changed

proto/cosmwasm/wasm/v1/authz.proto

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ message MaxFundsLimit {
100100
repeated cosmos.base.v1beta1.Coin amounts = 1 [
101101
(gogoproto.nullable) = false,
102102
(amino.dont_omitempty) = true,
103-
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
103+
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
104+
(amino.encoding) = "legacy_coins"
104105
];
105106
}
106107

@@ -118,7 +119,8 @@ message CombinedLimit {
118119
repeated cosmos.base.v1beta1.Coin amounts = 2 [
119120
(gogoproto.nullable) = false,
120121
(amino.dont_omitempty) = true,
121-
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
122+
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
123+
(amino.encoding) = "legacy_coins"
122124
];
123125
}
124126

proto/cosmwasm/wasm/v1/proposal_legacy.proto

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ message InstantiateContractProposal {
7575
repeated cosmos.base.v1beta1.Coin funds = 8 [
7676
(gogoproto.nullable) = false,
7777
(amino.dont_omitempty) = true,
78-
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
78+
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
79+
(amino.encoding) = "legacy_coins"
7980
];
8081
}
8182

@@ -109,7 +110,8 @@ message InstantiateContract2Proposal {
109110
repeated cosmos.base.v1beta1.Coin funds = 8 [
110111
(gogoproto.nullable) = false,
111112
(amino.dont_omitempty) = true,
112-
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
113+
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
114+
(amino.encoding) = "legacy_coins"
113115
];
114116
// Salt is an arbitrary value provided by the sender. Size can be 1 to 64.
115117
bytes salt = 9;
@@ -192,7 +194,8 @@ message ExecuteContractProposal {
192194
repeated cosmos.base.v1beta1.Coin funds = 6 [
193195
(gogoproto.nullable) = false,
194196
(amino.dont_omitempty) = true,
195-
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
197+
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
198+
(amino.encoding) = "legacy_coins"
196199
];
197200
}
198201

@@ -338,7 +341,8 @@ message StoreAndInstantiateContractProposal {
338341
repeated cosmos.base.v1beta1.Coin funds = 10 [
339342
(gogoproto.nullable) = false,
340343
(amino.dont_omitempty) = true,
341-
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
344+
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
345+
(amino.encoding) = "legacy_coins"
342346
];
343347
// Source is the URL where the code is hosted
344348
string source = 11;

proto/cosmwasm/wasm/v1/tx.proto

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ message MsgInstantiateContract {
131131
repeated cosmos.base.v1beta1.Coin funds = 6 [
132132
(gogoproto.nullable) = false,
133133
(amino.dont_omitempty) = true,
134-
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
134+
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
135+
(amino.encoding) = "legacy_coins"
135136
];
136137
}
137138

@@ -166,7 +167,8 @@ message MsgInstantiateContract2 {
166167
repeated cosmos.base.v1beta1.Coin funds = 6 [
167168
(gogoproto.nullable) = false,
168169
(amino.dont_omitempty) = true,
169-
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
170+
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
171+
(amino.encoding) = "legacy_coins"
170172
];
171173
// Salt is an arbitrary value provided by the sender. Size can be 1 to 64.
172174
bytes salt = 7;
@@ -201,7 +203,8 @@ message MsgExecuteContract {
201203
repeated cosmos.base.v1beta1.Coin funds = 5 [
202204
(gogoproto.nullable) = false,
203205
(amino.dont_omitempty) = true,
204-
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
206+
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
207+
(amino.encoding) = "legacy_coins"
205208
];
206209
}
207210

@@ -408,7 +411,8 @@ message MsgStoreAndInstantiateContract {
408411
repeated cosmos.base.v1beta1.Coin funds = 9 [
409412
(gogoproto.nullable) = false,
410413
(amino.dont_omitempty) = true,
411-
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
414+
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
415+
(amino.encoding) = "legacy_coins"
412416
];
413417
// Source is the URL where the code is hosted
414418
string source = 10;

x/wasm/types/authz.pb.go

Lines changed: 53 additions & 52 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)