Trait boot_core::cosmos_modules::mint::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 inflation<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryInflationRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryInflationResponse>, Status>> + Send + 'async_trait, Global>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn annual_provisions<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryAnnualProvisionsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryAnnualProvisionsResponse>, 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 returns the total set of minting parameters.
fn inflation<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryInflationRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryInflationResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn inflation<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryInflationRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryInflationResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Inflation returns the current minting inflation value.
fn annual_provisions<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryAnnualProvisionsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryAnnualProvisionsResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn annual_provisions<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryAnnualProvisionsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryAnnualProvisionsResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
AnnualProvisions current minting annual provisions value.