@@ -2,10 +2,10 @@ syntax = "proto3";
2
2
package miniwasm.tokenfactory.v1 ;
3
3
4
4
import "amino/amino.proto" ;
5
- import "cosmos_proto/cosmos.proto" ;
6
- import "cosmos/base/v1beta1/coin.proto" ;
7
5
import "cosmos/bank/v1beta1/bank.proto" ;
6
+ import "cosmos/base/v1beta1/coin.proto" ;
8
7
import "cosmos/msg/v1/msg.proto" ;
8
+ import "cosmos_proto/cosmos.proto" ;
9
9
import "gogoproto/gogo.proto" ;
10
10
import "miniwasm/tokenfactory/v1/params.proto" ;
11
11
@@ -30,13 +30,11 @@ service Msg {
30
30
31
31
// SetDenomMetadata defines a gRPC service method for setting the metadata of
32
32
// a denom.
33
- rpc SetDenomMetadata (MsgSetDenomMetadata )
34
- returns (MsgSetDenomMetadataResponse );
33
+ rpc SetDenomMetadata (MsgSetDenomMetadata ) returns (MsgSetDenomMetadataResponse );
35
34
36
35
// SetBeforeSendHook defines a gRPC service method for setting the before send
37
36
// hook of a denom.
38
- rpc SetBeforeSendHook (MsgSetBeforeSendHook )
39
- returns (MsgSetBeforeSendHookResponse );
37
+ rpc SetBeforeSendHook (MsgSetBeforeSendHook ) returns (MsgSetBeforeSendHookResponse );
40
38
41
39
// ForceTransfer defines a gRPC service method for transferring a token from
42
40
// one account to another.
@@ -61,16 +59,15 @@ message MsgCreateDenom {
61
59
62
60
option (amino.name ) = "tokenfactory/MsgCreateDenom" ;
63
61
64
- string sender = 1 [ (cosmos_proto.scalar ) = "cosmos.AddressString" ];
62
+ string sender = 1 [(cosmos_proto.scalar ) = "cosmos.AddressString" ];
65
63
// subdenom can be up to 44 "alphanumeric" characters long.
66
- string subdenom = 2 [ (gogoproto.moretags ) = "yaml:\"subdenom\"" ];
64
+ string subdenom = 2 [(gogoproto.moretags ) = "yaml:\"subdenom\"" ];
67
65
}
68
66
69
67
// MsgCreateDenomResponse is the return value of MsgCreateDenom
70
68
// It returns the full string of the newly created denom
71
69
message MsgCreateDenomResponse {
72
- string new_token_denom = 1
73
- [ (gogoproto.moretags ) = "yaml:\"new_token_denom\"" ];
70
+ string new_token_denom = 1 [(gogoproto.moretags ) = "yaml:\"new_token_denom\"" ];
74
71
}
75
72
76
73
// MsgMint is the sdk.Msg type for allowing an admin account to mint
@@ -81,7 +78,7 @@ message MsgMint {
81
78
option (cosmos.msg.v1.signer ) = "sender" ;
82
79
option (amino.name ) = "tokenfactory/MsgMint" ;
83
80
84
- string sender = 1 [ (cosmos_proto.scalar ) = "cosmos.AddressString" ];
81
+ string sender = 1 [(cosmos_proto.scalar ) = "cosmos.AddressString" ];
85
82
cosmos.base.v1beta1.Coin amount = 2 [
86
83
(gogoproto.moretags ) = "yaml:\"amount\"" ,
87
84
(gogoproto.nullable ) = false
@@ -104,7 +101,7 @@ message MsgBurn {
104
101
option (cosmos.msg.v1.signer ) = "sender" ;
105
102
option (amino.name ) = "tokenfactory/MsgBurn" ;
106
103
107
- string sender = 1 [ (cosmos_proto.scalar ) = "cosmos.AddressString" ];
104
+ string sender = 1 [(cosmos_proto.scalar ) = "cosmos.AddressString" ];
108
105
cosmos.base.v1beta1.Coin amount = 2 [
109
106
(gogoproto.moretags ) = "yaml:\"amount\"" ,
110
107
(gogoproto.nullable ) = false
@@ -125,9 +122,9 @@ message MsgChangeAdmin {
125
122
option (cosmos.msg.v1.signer ) = "sender" ;
126
123
option (amino.name ) = "tokenfactory/MsgChangeAdmin" ;
127
124
128
- string sender = 1 [ (cosmos_proto.scalar ) = "cosmos.AddressString" ];
129
- string denom = 2 [ (gogoproto.moretags ) = "yaml:\"denom\"" ];
130
- string new_admin = 3 [ (gogoproto.moretags ) = "yaml:\"new_admin\"" ];
125
+ string sender = 1 [(cosmos_proto.scalar ) = "cosmos.AddressString" ];
126
+ string denom = 2 [(gogoproto.moretags ) = "yaml:\"denom\"" ];
127
+ string new_admin = 3 [(gogoproto.moretags ) = "yaml:\"new_admin\"" ];
131
128
}
132
129
133
130
// MsgChangeAdminResponse defines the response structure for an executed
@@ -140,8 +137,8 @@ message MsgSetBeforeSendHook {
140
137
option (cosmos.msg.v1.signer ) = "sender" ;
141
138
option (amino.name ) = "tokenfactory/MsgSetBeforeSendHook" ;
142
139
143
- string sender = 1 [ (cosmos_proto.scalar ) = "cosmos.AddressString" ];
144
- string denom = 2 [ (gogoproto.moretags ) = "yaml:\"denom\"" ];
140
+ string sender = 1 [(cosmos_proto.scalar ) = "cosmos.AddressString" ];
141
+ string denom = 2 [(gogoproto.moretags ) = "yaml:\"denom\"" ];
145
142
string cosmwasm_address = 3 [
146
143
(gogoproto.moretags ) = "yaml:\"cosmwasm_address\"" ,
147
144
(amino.dont_omitempty ) = true
@@ -158,7 +155,7 @@ message MsgSetDenomMetadata {
158
155
option (cosmos.msg.v1.signer ) = "sender" ;
159
156
option (amino.name ) = "tokenfactory/MsgSetDenomMetadata" ;
160
157
161
- string sender = 1 [ (cosmos_proto.scalar ) = "cosmos.AddressString" ];
158
+ string sender = 1 [(cosmos_proto.scalar ) = "cosmos.AddressString" ];
162
159
cosmos.bank.v1beta1.Metadata metadata = 2 [
163
160
(gogoproto.moretags ) = "yaml:\"metadata\"" ,
164
161
(gogoproto.nullable ) = false
@@ -175,15 +172,13 @@ message MsgForceTransfer {
175
172
option (cosmos.msg.v1.signer ) = "sender" ;
176
173
option (amino.name ) = "tokenfactory/MsgForceTransfer" ;
177
174
178
- string sender = 1 [ (cosmos_proto.scalar ) = "cosmos.AddressString" ];
175
+ string sender = 1 [(cosmos_proto.scalar ) = "cosmos.AddressString" ];
179
176
cosmos.base.v1beta1.Coin amount = 2 [
180
177
(gogoproto.moretags ) = "yaml:\"amount\"" ,
181
178
(gogoproto.nullable ) = false
182
179
];
183
- string transfer_from_address = 3
184
- [ (gogoproto.moretags ) = "yaml:\"transfer_from_address\"" ];
185
- string transfer_to_address = 4
186
- [ (gogoproto.moretags ) = "yaml:\"transfer_to_address\"" ];
180
+ string transfer_from_address = 3 [(gogoproto.moretags ) = "yaml:\"transfer_from_address\"" ];
181
+ string transfer_to_address = 4 [(gogoproto.moretags ) = "yaml:\"transfer_to_address\"" ];
187
182
}
188
183
189
184
// MsgForceTransferResponse defines the response structure for an executed
@@ -197,12 +192,14 @@ message MsgUpdateParams {
197
192
198
193
// authority is the address that controls the module
199
194
// (defaults to x/gov unless overwritten).
200
- string authority = 1 [ (cosmos_proto.scalar ) = "cosmos.AddressString" ];
195
+ string authority = 1 [(cosmos_proto.scalar ) = "cosmos.AddressString" ];
201
196
// params defines the x/staking parameters to update.
202
197
//
203
198
// NOTE: All parameters must be supplied.
204
- Params params = 2
205
- [ (gogoproto.nullable ) = false , (amino.dont_omitempty ) = true ];
199
+ Params params = 2 [
200
+ (gogoproto.nullable ) = false ,
201
+ (amino.dont_omitempty ) = true
202
+ ];
206
203
}
207
204
208
205
// MsgUpdateParamsResponse defines the response structure for executing a
0 commit comments