pub trait Service: Send + Sync + 'static {
    // Required methods
    fn get_node_info<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetNodeInfoRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetNodeInfoResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_syncing<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetSyncingRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetSyncingResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_latest_block<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetLatestBlockRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetLatestBlockResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_block_by_height<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetBlockByHeightRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetBlockByHeightResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_latest_validator_set<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetLatestValidatorSetRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetLatestValidatorSetResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_validator_set_by_height<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetValidatorSetByHeightRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetValidatorSetByHeightResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn abci_query<'life0, 'async_trait>(
        &'life0 self,
        request: Request<AbciQueryRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<AbciQueryResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

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

Required Methods§

source

fn get_node_info<'life0, 'async_trait>( &'life0 self, request: Request<GetNodeInfoRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<GetNodeInfoResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

GetNodeInfo queries the current node info.

source

fn get_syncing<'life0, 'async_trait>( &'life0 self, request: Request<GetSyncingRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<GetSyncingResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

GetSyncing queries node syncing.

source

fn get_latest_block<'life0, 'async_trait>( &'life0 self, request: Request<GetLatestBlockRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<GetLatestBlockResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

GetLatestBlock returns the latest block.

source

fn get_block_by_height<'life0, 'async_trait>( &'life0 self, request: Request<GetBlockByHeightRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<GetBlockByHeightResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

GetBlockByHeight queries block for given height.

source

fn get_latest_validator_set<'life0, 'async_trait>( &'life0 self, request: Request<GetLatestValidatorSetRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<GetLatestValidatorSetResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

GetLatestValidatorSet queries latest validator-set.

source

fn get_validator_set_by_height<'life0, 'async_trait>( &'life0 self, request: Request<GetValidatorSetByHeightRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<GetValidatorSetByHeightResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

GetValidatorSetByHeight queries validator-set at a given height.

source

fn abci_query<'life0, 'async_trait>( &'life0 self, request: Request<AbciQueryRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<AbciQueryResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

ABCIQuery defines a query handler that supports ABCI queries directly to the application, bypassing Tendermint completely. The ABCI query must contain a valid and supported path, including app, custom, p2p, and store.

Since: cosmos-sdk 0.46

Implementors§