Trait Validator

Source
pub trait Validator:
    Send
    + Sync
    + 'static {
    // Required methods
    fn submit_transaction<'life0, 'async_trait>(
        &'life0 self,
        request: Request<RawSubmitTxRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<RawSubmitTxResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn wait_for_effects<'life0, 'async_trait>(
        &'life0 self,
        request: Request<RawWaitForEffectsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<RawWaitForEffectsResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn object_info<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ObjectInfoRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ObjectInfoResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn transaction_info<'life0, 'async_trait>(
        &'life0 self,
        request: Request<TransactionInfoRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<TransactionInfoResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn checkpoint<'life0, 'async_trait>(
        &'life0 self,
        request: Request<CheckpointRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<CheckpointResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn checkpoint_v2<'life0, 'async_trait>(
        &'life0 self,
        request: Request<CheckpointRequestV2>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<CheckpointResponseV2>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_system_state_object<'life0, 'async_trait>(
        &'life0 self,
        request: Request<SystemStateRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<SuiSystemState>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn validator_health<'life0, 'async_trait>(
        &'life0 self,
        request: Request<RawValidatorHealthRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<RawValidatorHealthResponse>, 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 ValidatorServer.

Required Methods§

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Implementors§