Contract 1709c3a68425d1457bcf9a2a916283bfc682f82a80c939af2d2201ca87b49c3f

← Back to Index 📥 Download WASM

Meta

cliver 23.4.1#a152ec2488c25136808ad28277c24b3a0765ffd4
rssdkver 23.4.0#673d6c4f2368d282d25da29bda55c21b8be69ca6
rsver 1.92.0

Instances

  • CAE7XGHCNHSXW5OENAOJ5YW5RJXZ4IZPTRLBI7HTUZI2PKUNQQE5HUBL

Interface

Get the current admin address (CAP-0046-06)

fn admin(env: soroban_sdk::Env) -> soroban_sdk::Address

Upgrade the contract to a new wasm bytecode (admin only)

fn upgrade(env: soroban_sdk::Env, new_wasm_hash: soroban_sdk::BytesN<32>)

Returns the contract version (v1)

fn version(env: soroban_sdk::Env) -> u32

Get the current counter value

fn get_count(env: soroban_sdk::Env) -> u32

Increment the counter by 1 and return new value

fn increment(env: soroban_sdk::Env) -> u32

Transfer admin to a new address (CAP-0046-06) Emits an event with topics ["set_admin", admin: Address, asset: Address], data = new_admin: Address

fn set_admin(env: soroban_sdk::Env, new_admin: soroban_sdk::Address)

Initialize the contract with an admin address

fn __constructor(env: soroban_sdk::Env, admin: soroban_sdk::Address)

Imports

WebAssembly Text (WAT) ▶