[go: up one dir, main page]

DryRunner

Trait DryRunner 

Source
pub trait DryRunner: Send + Sync {
    // Required methods
    fn dry_run<'life0, 'async_trait>(
        &'life0 self,
        tx: FuelTransaction,
    ) -> Pin<Box<dyn Future<Output = Result<DryRun>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn estimate_gas_price<'life0, 'async_trait>(
        &'life0 self,
        block_horizon: u32,
    ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn consensus_parameters<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<ConsensusParameters>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn estimate_predicates<'life0, 'life1, 'async_trait>(
        &'life0 self,
        tx: &'life1 FuelTransaction,
        latest_chain_executor_version: Option<u32>,
    ) -> Pin<Box<dyn Future<Output = Result<FuelTransaction>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn dry_run<'life0, 'async_trait>( &'life0 self, tx: FuelTransaction, ) -> Pin<Box<dyn Future<Output = Result<DryRun>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn estimate_gas_price<'life0, 'async_trait>( &'life0 self, block_horizon: u32, ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn consensus_parameters<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<ConsensusParameters>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn estimate_predicates<'life0, 'life1, 'async_trait>( &'life0 self, tx: &'life1 FuelTransaction, latest_chain_executor_version: Option<u32>, ) -> Pin<Box<dyn Future<Output = Result<FuelTransaction>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementations on Foreign Types§

Source§

impl<T: DryRunner> DryRunner for &T

Source§

fn dry_run<'life0, 'async_trait>( &'life0 self, tx: FuelTransaction, ) -> Pin<Box<dyn Future<Output = Result<DryRun>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn estimate_gas_price<'life0, 'async_trait>( &'life0 self, block_horizon: u32, ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn consensus_parameters<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<ConsensusParameters>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn estimate_predicates<'life0, 'life1, 'async_trait>( &'life0 self, tx: &'life1 FuelTransaction, latest_chain_executor_version: Option<u32>, ) -> Pin<Box<dyn Future<Output = Result<FuelTransaction>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§