1
1
syntax = "proto3" ;
2
2
package feeabstraction.feeabs.v1beta1 ;
3
3
4
+ import "amino/amino.proto" ;
4
5
import "gogoproto/gogo.proto" ;
5
6
import "cosmos/msg/v1/msg.proto" ;
6
7
import "cosmos/base/v1beta1/coin.proto" ;
7
8
import "cosmos_proto/cosmos.proto" ;
8
9
import "feeabstraction/feeabs/v1beta1/params.proto" ;
9
- import "amino/amino .proto" ;
10
+ import "feeabstraction/feeabs/v1beta1/proposal .proto" ;
10
11
11
12
option go_package = "github.com/osmosis-labs/fee-abstraction/v8/x/feeabs/types" ;
12
13
14
+ // Msg defines the wasm Msg service.
13
15
service Msg {
14
16
option (cosmos.msg.v1.service ) = true ;
15
17
18
+ // SendQueryIbcDenomTWAP sends a twap query to osmosis
16
19
rpc SendQueryIbcDenomTWAP (MsgSendQueryIbcDenomTWAP )
17
20
returns (MsgSendQueryIbcDenomTWAPResponse );
21
+
22
+ // SwapCrossChain submits a swap cross chain request.
18
23
rpc SwapCrossChain (MsgSwapCrossChain ) returns (MsgSwapCrossChainResponse );
24
+
25
+ // FundFeeAbsModuleAccount funds to feeabs module account.
19
26
rpc FundFeeAbsModuleAccount (MsgFundFeeAbsModuleAccount )
20
27
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 ) {}
24
36
}
25
37
38
+ // MsgFundFeeAbsModuleAccount
26
39
message 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" ];
28
44
repeated cosmos.base.v1beta1.Coin amount = 2 [
29
45
(gogoproto.nullable ) = false ,
30
46
(gogoproto.moretags ) = "yaml:\"amount\"" ,
31
47
(gogoproto.castrepeated ) = "github.com/cosmos/cosmos-sdk/types.Coins"
32
48
];
33
49
}
34
50
51
+ // MsgFundFeeAbsModuleAccountResponse
35
52
message MsgFundFeeAbsModuleAccountResponse {}
36
53
37
- message MsgSendQueryIbcDenomTWAP { string from_address = 1 ; }
54
+ // MsgSendQueryIbcDenomTWAP
55
+ message MsgSendQueryIbcDenomTWAP {
56
+ option (cosmos.msg.v1.signer ) = "sender" ;
38
57
58
+ // Sender is the that actor that signed the messages
59
+ string sender = 1 [ (cosmos_proto.scalar ) = "cosmos.AddressString" ];
60
+ }
61
+
62
+ // MsgSendQueryIbcDenomTWAPResponse
39
63
message MsgSendQueryIbcDenomTWAPResponse {}
40
64
65
+ // MsgSwapCrossChain
41
66
message 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" ];
43
71
string ibc_denom = 2 ;
44
72
}
73
+
74
+ // MsgSwapCrossChainResponse
45
75
message MsgSwapCrossChainResponse {}
46
76
47
77
// MsgUpdateParams is the Msg/UpdateParams request type.
48
78
message 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" ;
54
80
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.
56
84
//
57
85
// 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 ];
59
88
}
60
89
61
90
// MsgUpdateParamsResponse defines the response structure for executing a
62
91
// 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 ;
64
131
}
65
132
133
+ // MsgRemoveHostZoneResponse
134
+ message MsgRemoveHostZoneResponse {}
0 commit comments