pub trait ContractExt {
// Required method
fn almost_sync_deploy(
self,
account: &Wallet,
builder_data: &BuilderData,
utxo_manager: &SharedUtxoManager,
tx_config: &Option<TransactionConfig>,
submit_clients: &[FuelClient],
) -> impl Future<Output = FuelsResult<DeployResponse>>;
}Required Methods§
fn almost_sync_deploy( self, account: &Wallet, builder_data: &BuilderData, utxo_manager: &SharedUtxoManager, tx_config: &Option<TransactionConfig>, submit_clients: &[FuelClient], ) -> impl Future<Output = FuelsResult<DeployResponse>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl ContractExt for Contract<Regular>
impl ContractExt for Contract<Regular>
Source§async fn almost_sync_deploy(
self,
account: &Wallet,
builder_data: &BuilderData,
utxo_manager: &SharedUtxoManager,
tx_config: &Option<TransactionConfig>,
submit_clients: &[FuelClient],
) -> FuelsResult<DeployResponse>
async fn almost_sync_deploy( self, account: &Wallet, builder_data: &BuilderData, utxo_manager: &SharedUtxoManager, tx_config: &Option<TransactionConfig>, submit_clients: &[FuelClient], ) -> 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.