Contract 034518dd939f0a323b441e405750b2dddb86db251858f6d0eb21e01004822ed0

← Back to Index 📥 Download WASM

Meta

rssdkver 20.5.0#9e2c3022b4355b224a7a814e13ba51761eeb14bb
rsver 1.76.0

Instances

  • CAWLNVJV5BHEU3B6YIJQKARYVQYXNKPUBG324J533FPKYZHQMOJAHVJA
  • CDQAPIN7PMPK6KQEP7RLJSZ7ZOTILWNHSM6DW5QNIPX3DCAL4BAGGXCU

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_args: soroban_sdk::Vec,
) -> (soroban_sdk::Address, soroban_sdk::Val)

Imports

WebAssembly Text (WAT) ▶