Contract 93133a49e693537ce358e1ed57f19c837f39f85dd7f40185d7ab639faa1e041b

← Back to Index 📥 Download WASM

Meta

cliver 23.2.1#496ac35be7a7d8d923fcde9bbbc650ee593d1f6f
rssdkver 23.2.1#ab415a33cc1f6bdce20ac4a12f0ddbe41a648949
rsver 1.91.1

Instances

  • CBBB5O3NHBV34P3EWJKBZ24LX4W3SGJ2MBVPAG5BXLPBXTRUQDA4AIQX

Interface

Upgrade the contract to a new WASM hash (admin only)

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

Withdraw tokens from the contract (admin only) This allows recovery of stuck tokens

fn withdraw(env: soroban_sdk::Env, to: soroban_sdk::Address, amount: i128)
fn initialize(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
    token_id: soroban_sdk::Address,
)
fn add_game_type(env: soroban_sdk::Env, game_id: u32, reward_amount: i128)
fn distribute_reward(env: soroban_sdk::Env, to: soroban_sdk::Address, game_id: u32)

Imports

WebAssembly Text (WAT) ▶