sui_types::transaction_executor

Trait TransactionExecutor

Source
pub trait TransactionExecutor: Send + Sync {
    // Required methods
    fn execute_transaction<'life0, 'async_trait>(
        &'life0 self,
        request: ExecuteTransactionRequestV3,
        client_addr: Option<SocketAddr>,
    ) -> Pin<Box<dyn Future<Output = Result<ExecuteTransactionResponseV3, QuorumDriverError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn simulate_transaction(
        &self,
        transaction: TransactionData,
    ) -> Result<SimulateTransactionResult, SuiError>;
}
Expand description

Trait to define the interface for how the REST service interacts with a a QuorumDriver or a simulated transaction executor.

Required Methods§

Source

fn execute_transaction<'life0, 'async_trait>( &'life0 self, request: ExecuteTransactionRequestV3, client_addr: Option<SocketAddr>, ) -> Pin<Box<dyn Future<Output = Result<ExecuteTransactionResponseV3, QuorumDriverError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn simulate_transaction( &self, transaction: TransactionData, ) -> Result<SimulateTransactionResult, SuiError>

Implementors§