Contract c14be64defd72d2c01c78fc46206934a67844692ff17c974c5fd18a5f775cd7e

← Back to Index 📥 Download WASM

Meta

rssdkver 21.1.1#648cbcb799858b9ba9f240c82c0babcf621050bc
rsver 1.79.0

Instances

  • CAGO4QIW6I6F6WFMBOJRIKSN3AOHWEENCQWGT4MY2GLKZJ7MLKZ5X6LG
  • CANLNGVMFCWCCJYTEU2MPK5FVV7ZZWQSXAYBIMIDPI6AR57UIXN7XNBT
  • CCOFOTIMYILQWOWMOBRPD6AAO5TQGWMGX4AC5QJUUT4GZMJBN6JA7MBS
  • CDHN5WJ3ZCC6VRWID6KLM22EVHH3O5FWOSMIZ77734EETMRXCWM5G2SF
  • CDP4UYO4EQJ7JR77P46IPFFLBIMBSITYESN7YU5HIRTALB7G4V6C6P7X

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