Trait boot_core::cosmos_modules::distribution::query_server::Query
pub trait Query: 'static + Send + Sync {
fn params<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryParamsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryParamsResponse>, Status>> + Send + 'async_trait, Global>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn validator_outstanding_rewards<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryValidatorOutstandingRewardsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryValidatorOutstandingRewardsResponse>, Status>> + Send + 'async_trait, Global>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn validator_commission<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryValidatorCommissionRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryValidatorCommissionResponse>, Status>> + Send + 'async_trait, Global>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn validator_slashes<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryValidatorSlashesRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryValidatorSlashesResponse>, Status>> + Send + 'async_trait, Global>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn delegation_rewards<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryDelegationRewardsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryDelegationRewardsResponse>, Status>> + Send + 'async_trait, Global>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn delegation_total_rewards<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryDelegationTotalRewardsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryDelegationTotalRewardsResponse>, Status>> + Send + 'async_trait, Global>>
where
'life0: 'async_trait,
Self: '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, Global>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn delegator_withdraw_address<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryDelegatorWithdrawAddressRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryDelegatorWithdrawAddressResponse>, Status>> + Send + 'async_trait, Global>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn community_pool<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryCommunityPoolRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryCommunityPoolResponse>, Status>> + Send + 'async_trait, Global>>
where
'life0: 'async_trait,
Self: 'async_trait;
}Expand description
Generated trait containing gRPC methods that should be implemented for use with QueryServer.
Required Methods
fn params<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryParamsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryParamsResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn params<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryParamsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryParamsResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Params queries params of the distribution module.
fn validator_outstanding_rewards<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryValidatorOutstandingRewardsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryValidatorOutstandingRewardsResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn validator_outstanding_rewards<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryValidatorOutstandingRewardsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryValidatorOutstandingRewardsResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
ValidatorOutstandingRewards queries rewards of a validator address.
fn validator_commission<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryValidatorCommissionRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryValidatorCommissionResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn validator_commission<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryValidatorCommissionRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryValidatorCommissionResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
ValidatorCommission queries accumulated commission for a validator.
fn validator_slashes<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryValidatorSlashesRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryValidatorSlashesResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn validator_slashes<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryValidatorSlashesRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryValidatorSlashesResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
ValidatorSlashes queries slash events of a validator.
fn delegation_rewards<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryDelegationRewardsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryDelegationRewardsResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn delegation_rewards<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryDelegationRewardsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryDelegationRewardsResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
DelegationRewards queries the total rewards accrued by a delegation.
fn delegation_total_rewards<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryDelegationTotalRewardsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryDelegationTotalRewardsResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn delegation_total_rewards<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryDelegationTotalRewardsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryDelegationTotalRewardsResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
DelegationTotalRewards queries the total rewards accrued by a each validator.
fn delegator_validators<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryDelegatorValidatorsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryDelegatorValidatorsResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: '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, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
DelegatorValidators queries the validators of a delegator.
fn delegator_withdraw_address<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryDelegatorWithdrawAddressRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryDelegatorWithdrawAddressResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn delegator_withdraw_address<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryDelegatorWithdrawAddressRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryDelegatorWithdrawAddressResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
DelegatorWithdrawAddress queries withdraw address of a delegator.
fn community_pool<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryCommunityPoolRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryCommunityPoolResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn community_pool<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryCommunityPoolRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryCommunityPoolResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
CommunityPool queries the community pool coins.