@@ -5,6 +5,7 @@ import "gogoproto/gogo.proto";
55import "google/api/annotations.proto" ;
66import "cosmos/base/query/v1beta1/pagination.proto" ;
77import "pstake/lscosmos/v1beta1/params.proto" ;
8+ import "pstake/lscosmos/v1beta1/genesis.proto" ;
89import "pstake/lscosmos/v1beta1/governance_proposal.proto" ;
910import "pstake/lscosmos/v1beta1/lscosmos.proto" ;
1011import "cosmos/base/v1beta1/coin.proto" ;
@@ -15,10 +16,15 @@ option go_package = "github.com/persistenceOne/pstake-native/v2/x/lscosmos/types
1516
1617// Query defines the gRPC querier service.
1718service Query {
19+ option deprecated = true ;
1820 // Parameters queries the parameters of the module.
1921 rpc Params (QueryParamsRequest ) returns (QueryParamsResponse ) {
2022 option (google.api.http ).get = "/pstake/lscosmos/v1beta1/params" ;
2123 }
24+ // AllState returns all state of module, aka, genesis export.
25+ rpc AllState (QueryAllStateRequest ) returns (QueryAllStateResponse ) {
26+ option (google.api.http ).get = "/pstake/lscosmos/v1beta1/all_state" ;
27+ }
2228
2329 rpc HostChainParams (QueryHostChainParamsRequest )
2430 returns (QueryHostChainParamsResponse ) {
@@ -82,7 +88,7 @@ service Query {
8288 rpc DelegatorUnbondingEpochEntry (QueryDelegatorUnbondingEpochEntryRequest )
8389 returns (QueryDelegatorUnbondingEpochEntryResponse ) {
8490 option (google.api.http ).get =
85- "/pstake/lscosmos/v1beta1/delegator_unbonding_epoch_entry/"
91+ "/pstake/lscosmos/v1beta1/delegator_unbonding_epoch_entry/"
8692 "{delegator_address}/{epoch_number}" ;
8793 }
8894
@@ -101,7 +107,7 @@ service Query {
101107 QueryAllDelegatorUnbondingEpochEntriesRequest )
102108 returns (QueryAllDelegatorUnbondingEpochEntriesResponse ) {
103109 option (google.api.http ).get =
104- "/pstake/lscosmos/v1beta1/delegator_unbonding_epoch_entries/"
110+ "/pstake/lscosmos/v1beta1/delegator_unbonding_epoch_entries/"
105111 "{delegator_address}" ;
106112 }
107113}
@@ -112,7 +118,17 @@ message QueryParamsRequest {}
112118// QueryParamsResponse is response type for the Query/Params RPC method.
113119message QueryParamsResponse {
114120 // params holds all the parameters of this module.
115- Params params = 1 [ (gogoproto.nullable ) = false ];
121+ Params params = 1 [(gogoproto.nullable ) = false ];
122+ }
123+
124+
125+ // QueryAllStateRequest is request type for the Query/AllState RPC method.
126+ message QueryAllStateRequest {}
127+
128+ // QueryAllStateResponse is response type for the Query/AllState RPC method.
129+ message QueryAllStateResponse {
130+ // params holds all the parameters of this module.
131+ GenesisState genesis = 1 [(gogoproto.nullable ) = false ];
116132}
117133
118134// QueryHostChainParamsRequest is request for the Ouery/HostChainParams methods.
@@ -121,7 +137,7 @@ message QueryHostChainParamsRequest {}
121137// QueryHostChainParamsResponse is response for the Ouery/HostChainParams
122138// methods.
123139message QueryHostChainParamsResponse {
124- HostChainParams host_chain_params = 1 [ (gogoproto.nullable ) = false ];
140+ HostChainParams host_chain_params = 1 [(gogoproto.nullable ) = false ];
125141}
126142
127143// QueryDelegationStateRequest is request for the Ouery/DelegationState methods.
@@ -130,7 +146,7 @@ message QueryDelegationStateRequest {}
130146// QueryDelegationStateResponse is response for the Ouery/DelegationState
131147// methods.
132148message QueryDelegationStateResponse {
133- DelegationState delegation_state = 1 [ (gogoproto.nullable ) = false ];
149+ DelegationState delegation_state = 1 [(gogoproto.nullable ) = false ];
134150}
135151
136152// QueryListedValidatorsRequest is a request for the Query/AllowListedValidators
@@ -141,7 +157,7 @@ message QueryAllowListedValidatorsRequest {}
141157// Query/AllowListedValidators methods.
142158message QueryAllowListedValidatorsResponse {
143159 AllowListedValidators allow_listed_validators = 1
144- [ (gogoproto.nullable ) = false ];
160+ [ (gogoproto.nullable ) = false ];
145161}
146162
147163// QueryCValueRequest is a request for the Query/CValue methods.
@@ -159,7 +175,7 @@ message QueryCValueResponse {
159175message QueryModuleStateRequest {}
160176
161177// QueryModuleStateRequest is a response for the Query/ModuleState methods.
162- message QueryModuleStateResponse { bool module_state = 1 ; }
178+ message QueryModuleStateResponse {bool module_state = 1 ;}
163179
164180// QueryIBCTransientStoreRequest is a request for the Query/IBCTransientStore
165181// methods.
@@ -169,58 +185,58 @@ message QueryIBCTransientStoreRequest {}
169185// methods.
170186message QueryIBCTransientStoreResponse {
171187 IBCAmountTransientStore i_b_c_transient_store = 1
172- [ (gogoproto.nullable ) = false ];
188+ [ (gogoproto.nullable ) = false ];
173189}
174190
175191// QueryUnclaimedRequest is a request for the Query/Unclaimed methods.
176- message QueryUnclaimedRequest { string delegator_address = 1 ; }
192+ message QueryUnclaimedRequest {string delegator_address = 1 ;}
177193// QueryUnclaimedResponse is a response for the Query/Unclaimed methods.
178194message QueryUnclaimedResponse {
179- repeated UnbondingEpochCValue unclaimed = 1 [ (gogoproto.nullable ) = false ];
195+ repeated UnbondingEpochCValue unclaimed = 1 [(gogoproto.nullable ) = false ];
180196}
181197
182198// QueryFailedUnbondingsRequest is a request for the Query/FailedUnbondings
183199// methods.
184- message QueryFailedUnbondingsRequest { string delegator_address = 1 ; }
200+ message QueryFailedUnbondingsRequest {string delegator_address = 1 ;}
185201
186202// QueryFailedUnbondingsResponse a response for the Query/FailedUnbondings
187203// methods.
188204message QueryFailedUnbondingsResponse {
189205 repeated UnbondingEpochCValue failed_unbondings = 1
190- [ (gogoproto.nullable ) = false ];
206+ [ (gogoproto.nullable ) = false ];
191207}
192208
193209// QueryPendingUnbondingsRequest is a request for the Query/PendingUnbondings
194210// methods.
195- message QueryPendingUnbondingsRequest { string delegator_address = 1 ; }
211+ message QueryPendingUnbondingsRequest {string delegator_address = 1 ;}
196212
197213// QueryPendingUnbondingsResponse is a response for the Query/PendingUnbondings
198214// methods.
199215message QueryPendingUnbondingsResponse {
200216 repeated UnbondingEpochCValue pending_unbondings = 1
201- [ (gogoproto.nullable ) = false ];
217+ [ (gogoproto.nullable ) = false ];
202218}
203219
204220// QueryUnbondingEpochCValueRequest is a request for the
205221// Query/UnbondingEpochCValue methods.
206- message QueryUnbondingEpochCValueRequest { int64 epoch_number = 1 ; }
222+ message QueryUnbondingEpochCValueRequest {int64 epoch_number = 1 ;}
207223
208224// QueryUnbondingEpochCValueResponse is a response for the
209225// Query/UnbondingEpochCValue methods.
210226message QueryUnbondingEpochCValueResponse {
211227 UnbondingEpochCValue unbonding_epoch_c_value = 1
212- [ (gogoproto.nullable ) = false ];
228+ [ (gogoproto.nullable ) = false ];
213229}
214230
215231// QueryHostAccountUndelegationRequest is a request for the
216232// Query/HostAccountUndelegation methods.
217- message QueryHostAccountUndelegationRequest { int64 epoch_number = 1 ; }
233+ message QueryHostAccountUndelegationRequest {int64 epoch_number = 1 ;}
218234
219235// QueryHostAccountUndelegationResponse is a response for the
220236// Query/HostAccountUndelegation methods.
221237message QueryHostAccountUndelegationResponse {
222238 HostAccountUndelegation host_account_undelegation = 1
223- [ (gogoproto.nullable ) = false ];
239+ [ (gogoproto.nullable ) = false ];
224240}
225241
226242// QueryDelegatorUnbondingEpochEntryRequest is a request for the
@@ -234,15 +250,15 @@ message QueryDelegatorUnbondingEpochEntryRequest {
234250// Query/DelegatorUnbondingEpochEntry methods.
235251message QueryDelegatorUnbondingEpochEntryResponse {
236252 DelegatorUnbondingEpochEntry delegator_unboding_epoch_entry = 1
237- [ (gogoproto.nullable ) = false ];
253+ [ (gogoproto.nullable ) = false ];
238254}
239255
240256// QueryHostAccountsRequest is a request for the Query/HostAccounts methods.
241257message QueryHostAccountsRequest {}
242258
243259// QueryHostAccountsResponse is a response for the Query/HostAccounts methods.
244260message QueryHostAccountsResponse {
245- HostAccounts host_accounts = 1 [ (gogoproto.nullable ) = false ];
261+ HostAccounts host_accounts = 1 [(gogoproto.nullable ) = false ];
246262}
247263
248264// QueryDepositModuleAccountRequest is a request for the
@@ -252,7 +268,7 @@ message QueryDepositModuleAccountRequest {}
252268// QueryDepositModuleAccountResponse is a response for the
253269// Query/DepositModuleAccount methods.
254270message QueryDepositModuleAccountResponse {
255- cosmos.base.v1beta1.Coin balance = 1 [ (gogoproto.nullable ) = false ];
271+ cosmos.base.v1beta1.Coin balance = 1 [(gogoproto.nullable ) = false ];
256272}
257273
258274// QueryAllDelegatorUnbondingEpochEntriesRequest is a request for the
@@ -265,5 +281,5 @@ message QueryAllDelegatorUnbondingEpochEntriesRequest {
265281// Query/DelegatorUnbondingEpochEntries methods.
266282message QueryAllDelegatorUnbondingEpochEntriesResponse {
267283 repeated DelegatorUnbondingEpochEntry delegator_unbonding_epoch_entries = 1
268- [ (gogoproto.nullable ) = false ];
284+ [ (gogoproto.nullable ) = false ];
269285}
0 commit comments