pub trait Query: Send + Sync + 'static {
Show 14 methods // Required methods fn validators<'life0, 'async_trait>( &'life0 self, request: Request<QueryValidatorsRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryValidatorsResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn validator<'life0, 'async_trait>( &'life0 self, request: Request<QueryValidatorRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryValidatorResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn validator_delegations<'life0, 'async_trait>( &'life0 self, request: Request<QueryValidatorDelegationsRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryValidatorDelegationsResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn validator_unbonding_delegations<'life0, 'async_trait>( &'life0 self, request: Request<QueryValidatorUnbondingDelegationsRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryValidatorUnbondingDelegationsResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn delegation<'life0, 'async_trait>( &'life0 self, request: Request<QueryDelegationRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryDelegationResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn unbonding_delegation<'life0, 'async_trait>( &'life0 self, request: Request<QueryUnbondingDelegationRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryUnbondingDelegationResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn delegator_delegations<'life0, 'async_trait>( &'life0 self, request: Request<QueryDelegatorDelegationsRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryDelegatorDelegationsResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn delegator_unbonding_delegations<'life0, 'async_trait>( &'life0 self, request: Request<QueryDelegatorUnbondingDelegationsRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryDelegatorUnbondingDelegationsResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn redelegations<'life0, 'async_trait>( &'life0 self, request: Request<QueryRedelegationsRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryRedelegationsResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn delegator_validators<'life0, 'async_trait>( &'life0 self, request: Request<QueryDelegatorValidatorsRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryDelegatorValidatorsResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn delegator_validator<'life0, 'async_trait>( &'life0 self, request: Request<QueryDelegatorValidatorRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryDelegatorValidatorResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn historical_info<'life0, 'async_trait>( &'life0 self, request: Request<QueryHistoricalInfoRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryHistoricalInfoResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn pool<'life0, 'async_trait>( &'life0 self, request: Request<QueryPoolRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryPoolResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn params<'life0, 'async_trait>( &'life0 self, request: Request<QueryParamsRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryParamsResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait;
}
Expand description

Generated trait containing gRPC methods that should be implemented for use with QueryServer.

Required Methods§

source

fn validators<'life0, 'async_trait>( &'life0 self, request: Request<QueryValidatorsRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryValidatorsResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Validators queries all validators that match the given status.

When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.

source

fn validator<'life0, 'async_trait>( &'life0 self, request: Request<QueryValidatorRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryValidatorResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Validator queries validator info for given validator address.

source

fn validator_delegations<'life0, 'async_trait>( &'life0 self, request: Request<QueryValidatorDelegationsRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryValidatorDelegationsResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

ValidatorDelegations queries delegate info for given validator.

When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.

source

fn validator_unbonding_delegations<'life0, 'async_trait>( &'life0 self, request: Request<QueryValidatorUnbondingDelegationsRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryValidatorUnbondingDelegationsResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

ValidatorUnbondingDelegations queries unbonding delegations of a validator.

When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.

source

fn delegation<'life0, 'async_trait>( &'life0 self, request: Request<QueryDelegationRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryDelegationResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Delegation queries delegate info for given validator delegator pair.

source

fn unbonding_delegation<'life0, 'async_trait>( &'life0 self, request: Request<QueryUnbondingDelegationRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryUnbondingDelegationResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

UnbondingDelegation queries unbonding info for given validator delegator pair.

source

fn delegator_delegations<'life0, 'async_trait>( &'life0 self, request: Request<QueryDelegatorDelegationsRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryDelegatorDelegationsResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

DelegatorDelegations queries all delegations of a given delegator address.

When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.

source

fn delegator_unbonding_delegations<'life0, 'async_trait>( &'life0 self, request: Request<QueryDelegatorUnbondingDelegationsRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryDelegatorUnbondingDelegationsResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

DelegatorUnbondingDelegations queries all unbonding delegations of a given delegator address.

When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.

source

fn redelegations<'life0, 'async_trait>( &'life0 self, request: Request<QueryRedelegationsRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryRedelegationsResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Redelegations queries redelegations of given address.

When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.

source

fn delegator_validators<'life0, 'async_trait>( &'life0 self, request: Request<QueryDelegatorValidatorsRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryDelegatorValidatorsResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

DelegatorValidators queries all validators info for given delegator address.

When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.

source

fn delegator_validator<'life0, 'async_trait>( &'life0 self, request: Request<QueryDelegatorValidatorRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryDelegatorValidatorResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

DelegatorValidator queries validator info for given delegator validator pair.

source

fn historical_info<'life0, 'async_trait>( &'life0 self, request: Request<QueryHistoricalInfoRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryHistoricalInfoResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

HistoricalInfo queries the historical info for given height.

source

fn pool<'life0, 'async_trait>( &'life0 self, request: Request<QueryPoolRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryPoolResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Pool queries the pool info.

source

fn params<'life0, 'async_trait>( &'life0 self, request: Request<QueryParamsRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryParamsResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Parameters queries the staking parameters.

Implementors§