11syntax = "proto3" ;
22package feeabstraction.feeabs.v1beta1 ;
33
4+ import "amino/amino.proto" ;
45import "gogoproto/gogo.proto" ;
56import "cosmos/msg/v1/msg.proto" ;
67import "cosmos/base/v1beta1/coin.proto" ;
78import "cosmos_proto/cosmos.proto" ;
89import "feeabstraction/feeabs/v1beta1/params.proto" ;
9- import "amino/amino .proto" ;
10+ import "feeabstraction/feeabs/v1beta1/proposal .proto" ;
1011
1112option go_package = "github.com/osmosis-labs/fee-abstraction/v8/x/feeabs/types" ;
1213
14+ // Msg defines the wasm Msg service.
1315service Msg {
1416 option (cosmos.msg.v1.service ) = true ;
1517
18+ // SendQueryIbcDenomTWAP sends a twap query to osmosis
1619 rpc SendQueryIbcDenomTWAP (MsgSendQueryIbcDenomTWAP )
1720 returns (MsgSendQueryIbcDenomTWAPResponse );
21+
22+ // SwapCrossChain submits a swap cross chain request.
1823 rpc SwapCrossChain (MsgSwapCrossChain ) returns (MsgSwapCrossChainResponse );
24+
25+ // FundFeeAbsModuleAccount funds to feeabs module account.
1926 rpc FundFeeAbsModuleAccount (MsgFundFeeAbsModuleAccount )
2027 returns (MsgFundFeeAbsModuleAccountResponse );
21-
22- rpc UpdateParams (MsgUpdateParams ) returns (MsgUpdateParamsResponse ) {
23- }
28+
29+ // UpdateParams defines a governance operation for updating the x/feeabs
30+ // module parameters. The authority is defined in the keeper.
31+ rpc UpdateParams (MsgUpdateParams ) returns (MsgUpdateParamsResponse ) {}
32+
33+ rpc AddHostZone (MsgAddHostZone ) returns (MsgAddHostZoneResponse ) {}
34+ rpc UpdateHostZone (MsgUpdateHostZone ) returns (MsgUpdateHostZoneResponse ) {}
35+ rpc RemoveHostZone (MsgRemoveHostZone ) returns (MsgRemoveHostZoneResponse ) {}
2436}
2537
38+ // MsgFundFeeAbsModuleAccount
2639message MsgFundFeeAbsModuleAccount {
27- string from_address = 1 ;
40+ option (cosmos.msg.v1.signer ) = "sender" ;
41+
42+ // sender is the that actor that signed the messages
43+ string sender = 1 [ (cosmos_proto.scalar ) = "cosmos.AddressString" ];
2844 repeated cosmos.base.v1beta1.Coin amount = 2 [
2945 (gogoproto.nullable ) = false ,
3046 (gogoproto.moretags ) = "yaml:\"amount\"" ,
3147 (gogoproto.castrepeated ) = "github.com/cosmos/cosmos-sdk/types.Coins"
3248 ];
3349}
3450
51+ // MsgFundFeeAbsModuleAccountResponse
3552message MsgFundFeeAbsModuleAccountResponse {}
3653
37- message MsgSendQueryIbcDenomTWAP { string from_address = 1 ; }
54+ // MsgSendQueryIbcDenomTWAP
55+ message MsgSendQueryIbcDenomTWAP {
56+ option (cosmos.msg.v1.signer ) = "sender" ;
3857
58+ // Sender is the that actor that signed the messages
59+ string sender = 1 [ (cosmos_proto.scalar ) = "cosmos.AddressString" ];
60+ }
61+
62+ // MsgSendQueryIbcDenomTWAPResponse
3963message MsgSendQueryIbcDenomTWAPResponse {}
4064
65+ // MsgSwapCrossChain
4166message MsgSwapCrossChain {
42- string from_address = 1 ;
67+ option (cosmos.msg.v1.signer ) = "sender" ;
68+
69+ // Sender is the that actor that signed the messages
70+ string sender = 1 [ (cosmos_proto.scalar ) = "cosmos.AddressString" ];
4371 string ibc_denom = 2 ;
4472}
73+
74+ // MsgSwapCrossChainResponse
4575message MsgSwapCrossChainResponse {}
4676
4777// MsgUpdateParams is the Msg/UpdateParams request type.
4878message MsgUpdateParams {
49- option (cosmos.msg.v1.signer ) = "authority" ;
50-
51- // authority is the address that controls the module (defaults to x/gov unless overwritten).
52- string authority = 1 [(cosmos_proto.scalar ) = "cosmos.AddressString" ];
53- option (amino.name ) = "cosmos-sdk/x/bank/MsgUpdateParams" ;
79+ option (cosmos.msg.v1.signer ) = "authority" ;
5480
55- // params defines the x/bank parameters to update.
81+ // authority is the address of the governance account.
82+ string authority = 1 [ (cosmos_proto.scalar ) = "cosmos.AddressString" ];
83+ // params defines the x/feeabs parameters to update.
5684 //
5785 // NOTE: All parameters must be supplied.
58- Params params = 2 [(gogoproto.nullable ) = false , (amino.dont_omitempty ) = true ];
86+ Params params = 2
87+ [ (gogoproto.nullable ) = false , (amino.dont_omitempty ) = true ];
5988}
6089
6190// MsgUpdateParamsResponse defines the response structure for executing a
6291// MsgUpdateParams message.
63- message MsgUpdateParamsResponse {
92+ message MsgUpdateParamsResponse {}
93+
94+ // MsgAddHostZone is the Msg/AddHostZone request type.
95+ message MsgAddHostZone {
96+ option (cosmos.msg.v1.signer ) = "authority" ;
97+
98+ // authority is the address of the governance account.
99+ string authority = 1 [ (cosmos_proto.scalar ) = "cosmos.AddressString" ];
100+
101+ // the host chain config
102+ HostChainFeeAbsConfig host_chain_config = 2
103+ [ (gogoproto.nullable ) = false , (amino.dont_omitempty ) = true ];
104+ }
105+
106+ // MsgAddHostZoneResponse
107+ message MsgAddHostZoneResponse {}
108+
109+ // MsgUpdateHostZone is the Msg/UpdateHostZone request type.
110+ message MsgUpdateHostZone {
111+ option (cosmos.msg.v1.signer ) = "authority" ;
112+
113+ // authority is the address of the governance account.
114+ string authority = 1 [ (cosmos_proto.scalar ) = "cosmos.AddressString" ];
115+
116+ // the host chain config
117+ HostChainFeeAbsConfig host_chain_config = 2
118+ [ (gogoproto.nullable ) = false , (amino.dont_omitempty ) = true ];
119+ }
120+
121+ // MsgUpdateHostZoneResponse
122+ message MsgUpdateHostZoneResponse {}
123+
124+ // MsgRemoveHostZone is the Msg/RemoveHostZone request type.
125+ message MsgRemoveHostZone {
126+ option (cosmos.msg.v1.signer ) = "authority" ;
127+
128+ // authority is the address of the governance account.
129+ string authority = 1 [ (cosmos_proto.scalar ) = "cosmos.AddressString" ];
130+ string ibc_denom = 2 ;
64131}
65132
133+ // MsgRemoveHostZoneResponse
134+ message MsgRemoveHostZoneResponse {}
0 commit comments