Contract ad81fc06b4932efe64d2915cb5068d687116339e023a99ec6c6116aa95c74fbb

← Back to Index 📥 Download WASM

Meta

rssdkver 21.7.7#5da789c50b18a4c2be53394138212fed56f0dfc4
rsver 1.91.1

Instances

  • CAZ4E2ZSMWMJDZQWB2OLXHYISBN6VSWUV2GOUM7AQ4ZDM4KBWHGKLDKX

Interface

Get the current admin address

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

Upgrade the contract to a new WASM. Only callable by admin.

Arguments

  • new_wasm_hash - The hash of the new WASM to upgrade to
fn upgrade(env: soroban_sdk::Env, new_wasm_hash: soroban_sdk::BytesN<32>)

Set a new admin address. Only callable by current admin.

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

Extend the contract's TTL (time-to-live) to prevent expiration. Anyone can call this to keep the contract alive.

fn extend_ttl(env: soroban_sdk::Env)

Initialize the contract with an admin address. Must be called once after deployment.

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

Transfer tokens from one address to multiple recipients in a single transaction.

Arguments

  • token - The token contract address (e.g., KALE SAC)
  • from - The sender address (must authorize this call)
  • recipients - Vector of recipient addresses
  • amounts - Vector of amounts (must match recipients length)

Authorization

The from address must authorize this contract call. A single signature covers all transfers.

fn batch_transfer(
    env: soroban_sdk::Env,
    token: soroban_sdk::Address,
    from: soroban_sdk::Address,
    recipients: soroban_sdk::Vec,
    amounts: soroban_sdk::Vec,
)

Imports

WebAssembly Text (WAT) ▶