Contract f3ddfbb56abaffd7628688a70a83ee1d757b88b4b28f41b619b943b72eaa6e45

← Back to Index 📥 Download WASM

Meta

rssdkver 22.0.7#211569aa49c8d896877dfca1f2eb4fe9071121c8
rsver 1.91.0

Instances

  • CACAQZS2ZAWPQNHSFXBHNCOOQV37NOJND2BT55I5IABXHEH6ZEREEHN2

Interface

Deploy the contract Wasm and after deployment invoke the initialize 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 the result of the initialize function. Code comes from the stellar/soroban-examples repository.

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) ▶