fuels_programs::calls::traits

Trait TransactionTuner

Source
pub trait TransactionTuner: Sealed {
    // Required methods
    fn transaction_builder<'life0, 'life1, 'async_trait, T>(
        &'life0 self,
        tx_policies: TxPolicies,
        variable_output_policy: VariableOutputPolicy,
        account: &'life1 T,
    ) -> Pin<Box<dyn Future<Output = Result<ScriptTransactionBuilder>> + Send + 'async_trait>>
       where T: 'async_trait + Account,
             Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn build_tx<'life0, 'life1, 'async_trait, T>(
        &'life0 self,
        tx_policies: TxPolicies,
        variable_output_policy: VariableOutputPolicy,
        account: &'life1 T,
    ) -> Pin<Box<dyn Future<Output = Result<ScriptTransaction>> + Send + 'async_trait>>
       where T: 'async_trait + Account,
             Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn transaction_builder<'life0, 'life1, 'async_trait, T>( &'life0 self, tx_policies: TxPolicies, variable_output_policy: VariableOutputPolicy, account: &'life1 T, ) -> Pin<Box<dyn Future<Output = Result<ScriptTransactionBuilder>> + Send + 'async_trait>>
where T: 'async_trait + Account, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn build_tx<'life0, 'life1, 'async_trait, T>( &'life0 self, tx_policies: TxPolicies, variable_output_policy: VariableOutputPolicy, account: &'life1 T, ) -> Pin<Box<dyn Future<Output = Result<ScriptTransaction>> + Send + 'async_trait>>
where T: 'async_trait + Account, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl TransactionTuner for Vec<ContractCall>

Source§

fn build_tx<'life0, 'life1, 'async_trait, T>( &'life0 self, tx_policies: TxPolicies, variable_output_policy: VariableOutputPolicy, account: &'life1 T, ) -> Pin<Box<dyn Future<Output = Result<ScriptTransaction>> + Send + 'async_trait>>
where T: 'async_trait + Account, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Returns the script that executes the contract calls

Source§

fn transaction_builder<'life0, 'life1, 'async_trait, T>( &'life0 self, tx_policies: TxPolicies, variable_output_policy: VariableOutputPolicy, account: &'life1 T, ) -> Pin<Box<dyn Future<Output = Result<ScriptTransactionBuilder>> + Send + 'async_trait>>
where T: 'async_trait + Account, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§