pub trait Query: Send + Sync + 'static {
    fn current_plan<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryCurrentPlanRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryCurrentPlanResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn applied_plan<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryAppliedPlanRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryAppliedPlanResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn upgraded_consensus_state<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryUpgradedConsensusStateRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryUpgradedConsensusStateResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn module_versions<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryModuleVersionsRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryModuleVersionsResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn authority<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryAuthorityRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryAuthorityResponse>, 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.

Required Methods§

CurrentPlan queries the current upgrade plan.

AppliedPlan queries a previously applied upgrade plan by its name.

UpgradedConsensusState queries the consensus state that will serve as a trusted kernel for the next version of this chain. It will only be stored at the last height of this chain. UpgradedConsensusState RPC not supported with legacy querier This rpc is deprecated now that IBC has its own replacement (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54)

ModuleVersions queries the list of module versions from state.

Since: cosmos-sdk 0.43

Returns the account with authority to conduct upgrades

Since: cosmos-sdk 0.46

Implementors§