Contract 4cd470fc841156a321c109d0b2c06796291dcb471046e910e7a8864432d32d11

← Back to Index 📥 Download WASM

Meta

rssdkver 20.0.0#822ce6cc3e461ccc925275b472d77b6ca35b2cd9
rsver 1.75.0

Instances

  • CAPWTLKEZ6WMD2IAEMCW2EHPSK3XDNB2MUNE37B5WQRREZ34QIDFXFQ6

Interface

Deploy the contract Wasm and after deployment invoke the init function of the contract with the given arguments.

This has to be authorized by deployer (unless the Deployer instance itself is used as deployer). This way the whole operation is atomic and it's not possible to frontrun the contract initialization.

Returns the contract ID and result of the init function.

fn deploy(
    env: soroban_sdk::Env,
    deployer: soroban_sdk::Address,
    wasm_hash: soroban_sdk::BytesN<32>,
    salt: soroban_sdk::BytesN<32>,
    init_fn: soroban_sdk::Symbol,
    init_args: soroban_sdk::Vec,
) -> (soroban_sdk::Address, soroban_sdk::Val)

Imports

WebAssembly Text (WAT) ▶