pub trait Query:
Send
+ Sync
+ 'static {
// Required methods
fn params<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryParamsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryParamsResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn validator_distribution_info<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryValidatorDistributionInfoRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryValidatorDistributionInfoResponse>, Status>> + Send + 'async_trait>>
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>>
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>>
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>>
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>>
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>>
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>>
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>>
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>>
where 'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
Generated trait containing gRPC methods that should be implemented for use with QueryServer.