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)