sui_network::api

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 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 handle_soft_bundle_certificates_v3<'life0, 'async_trait>(
        &'life0 self,
        request: Request<HandleSoftBundleCertificatesRequestV3>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<HandleSoftBundleCertificatesResponseV3>, 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 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 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 handle_soft_bundle_certificates_v3<'life0, 'async_trait>( &'life0 self, request: Request<HandleSoftBundleCertificatesRequestV3>, ) -> Pin<Box<dyn Future<Output = Result<Response<HandleSoftBundleCertificatesResponseV3>, 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§