Trait boot_core::cosmos_modules::gov::query_server::Query
pub trait Query: 'static + Send + Sync {
fn proposal<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryProposalRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryProposalResponse>, Status>> + Send + 'async_trait, Global>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn proposals<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryProposalsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryProposalsResponse>, Status>> + Send + 'async_trait, Global>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn vote<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryVoteRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryVoteResponse>, Status>> + Send + 'async_trait, Global>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn votes<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryVotesRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryVotesResponse>, 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;
fn deposit<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryDepositRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryDepositResponse>, Status>> + Send + 'async_trait, Global>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn deposits<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryDepositsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryDepositsResponse>, Status>> + Send + 'async_trait, Global>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn tally_result<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryTallyResultRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryTallyResultResponse>, 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 proposal<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryProposalRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryProposalResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn proposal<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryProposalRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryProposalResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Proposal queries proposal details based on ProposalID.
fn proposals<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryProposalsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryProposalsResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn proposals<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryProposalsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryProposalsResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Proposals queries all proposals based on given status.
fn vote<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryVoteRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryVoteResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn vote<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryVoteRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryVoteResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Vote queries voted information based on proposalID, voterAddr.
fn votes<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryVotesRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryVotesResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn votes<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryVotesRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryVotesResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Votes queries votes of a given proposal.
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 all parameters of the gov module.
fn deposit<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryDepositRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryDepositResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn deposit<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryDepositRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryDepositResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Deposit queries single deposit information based proposalID, depositAddr.
fn deposits<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryDepositsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryDepositsResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn deposits<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryDepositsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryDepositsResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Deposits queries all deposits of a single proposal.
fn tally_result<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryTallyResultRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryTallyResultResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn tally_result<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryTallyResultRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryTallyResultResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
TallyResult queries the tally of a proposal vote.