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

Params queries params of the distribution module.

ValidatorOutstandingRewards queries rewards of a validator address.

ValidatorCommission queries accumulated commission for a validator.

ValidatorSlashes queries slash events of a validator.

DelegationRewards queries the total rewards accrued by a delegation.

DelegationTotalRewards queries the total rewards accrued by a each validator.

DelegatorValidators queries the validators of a delegator.

DelegatorWithdrawAddress queries withdraw address of a delegator.

CommunityPool queries the community pool coins.

Implementors