Skip to main content

ContractExt

Trait ContractExt 

Source
pub trait ContractExt {
    // Required method
    fn almost_sync_deploy(
        self,
        account: &Wallet,
        builder_data: &BuilderData,
        utxo_manager: &SharedUtxoManager,
        tx_config: &Option<TransactionConfig>,
    ) -> impl Future<Output = FuelsResult<DeployResponse>>;
}

Required Methods§

Source

fn almost_sync_deploy( self, account: &Wallet, builder_data: &BuilderData, utxo_manager: &SharedUtxoManager, tx_config: &Option<TransactionConfig>, ) -> impl Future<Output = FuelsResult<DeployResponse>>

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 ContractExt for Contract<Regular>

Source§

async fn almost_sync_deploy( self, account: &Wallet, builder_data: &BuilderData, utxo_manager: &SharedUtxoManager, tx_config: &Option<TransactionConfig>, ) -> FuelsResult<DeployResponse>

Deploys a compiled contract to a running node. To deploy a contract, you need an account with enough assets to pay for deployment. This account will also receive the change.

Implementors§