Contract 22b5c205be6d9d0845608d444781799d5b653f5095f3eef192effbd9f860aabc

← Back to Index 📥 Download WASM

Meta

cliver 23.4.1#a152ec2488c25136808ad28277c24b3a0765ffd4
rssdkver 23.4.0#673d6c4f2368d282d25da29bda55c21b8be69ca6
rsver 1.92.0

Instances

  • CCTBEHD6FPXVDP45BNWTAK26JGW6PJMJGMWR5NLSN3E4TIKZPPOBKJSH

Interface

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

Initialize the contract with an admin address

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

Imports

WebAssembly Text (WAT) ▶