Contract 6c83329a13014736589fbfd2af4ba99c080eab87ffc2cdf5d2df20b1c31e7448

← Back to Index 📥 Download WASM

Meta

rssdkver 21.1.1#648cbcb799858b9ba9f240c82c0babcf621050bc
rsver 1.82.0

Instances

  • CAGGLGGRJIBWTO4Q26LSUZBGVZAFPFXKZ7DHCBMFOKPUESTFBZ42ZWGB
  • CBMB5BJITU6SAXW76ZAU5RCZWESOQCFXCJA33ELWOXAZMNGKURUOX57L
  • CCSI3L5LSK54LBBB5DX3EZALMPMEXHDJJLL5S2TGTDWO4RRKTCMLNUXO
  • CD3QKQ43MMREL6XE74ZJW2IV7GQY23SVNMQ44HW5GHD2H5Q2QIVFOUIR
  • CD6LNPMFT67XDQ2ALSQ4RZEXGVAVQJE2ULJJ3B4HIEKWJUG5HSJYXD3L
  • CDQMIENHJYXSHESQ5JY6PLFMC2RAE7G4GDEPZIAW4AV2OFHHNN474OD4
  • CDT3FJSHO7VL7KLMNLW4QOLO6DO753GCPIQI4ISBCZIQ3B7UL7PXGNOY
  • CDXNLQLUYY4KXBFOV2NZ3AZVDYFALHJMB7SYHQD5VZP44SIA53LTIQWK

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