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;
}
Available on crate feature grpc only.
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§