pub trait Query: Send + Sync + 'static {
    fn client_state<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryClientStateRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryClientStateResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn client_states<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryClientStatesRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryClientStatesResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn consensus_state<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryConsensusStateRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryConsensusStateResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn consensus_states<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryConsensusStatesRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryConsensusStatesResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn consensus_state_heights<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryConsensusStateHeightsRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryConsensusStateHeightsResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn client_status<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryClientStatusRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryClientStatusResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn client_params<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryClientParamsRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryClientParamsResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn upgraded_client_state<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryUpgradedClientStateRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryUpgradedClientStateResponse>, 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
; }
Expand description

Generated trait containing gRPC methods that should be implemented for use with QueryServer.

Required Methods§

ClientState queries an IBC light client.

ClientStates queries all the IBC light clients of a chain.

ConsensusState queries a consensus state associated with a client state at a given height.

ConsensusStates queries all the consensus state associated with a given client.

ConsensusStateHeights queries the height of every consensus states associated with a given client.

Status queries the status of an IBC client.

ClientParams queries all parameters of the ibc client.

UpgradedClientState queries an Upgraded IBC light client.

UpgradedConsensusState queries an Upgraded IBC consensus state.

Implementors§