pub trait Validator: Send + Sync + 'static {
    // Required methods
    fn transaction<'life0, 'async_trait>(
        &'life0 self,
        request: Request<Transaction>
    ) -> Pin<Box<dyn Future<Output = Result<Response<HandleTransactionResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn handle_certificate_v2<'life0, 'async_trait>(
        &'life0 self,
        request: Request<CertifiedTransaction>
    ) -> Pin<Box<dyn Future<Output = Result<Response<HandleCertificateResponseV2>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn handle_certificate_v3<'life0, 'async_trait>(
        &'life0 self,
        request: Request<HandleCertificateRequestV3>
    ) -> Pin<Box<dyn Future<Output = Result<Response<HandleCertificateResponseV3>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn submit_certificate<'life0, 'async_trait>(
        &'life0 self,
        request: Request<CertifiedTransaction>
    ) -> Pin<Box<dyn Future<Output = Result<Response<SubmitCertificateResponse>, 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;
}
Expand description

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

Required Methods§

source

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

source

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

source

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

source

fn submit_certificate<'life0, 'async_trait>( &'life0 self, request: Request<CertifiedTransaction> ) -> Pin<Box<dyn Future<Output = Result<Response<SubmitCertificateResponse>, 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,

Implementors§