Contract 8ad47bbb67e95408cc289b5ba8032dc5f3d919b545e9b24324e7a018726a7747

← Back to Index 📥 Download WASM

Meta

rssdkver 22.0.11#34f7f53ae31e0fd02aab436a9872e79fa671ca02
rsver 1.93.0

Instances

  • CCVMU54F52KFE4MBI3NFE2CGLNXZWJZXD56ZFXMKCSAW3WW24CF5QX34

Interface

fn pause(env: soroban_sdk::Env) -> Result<(), TokenError>
fn stats(env: soroban_sdk::Env) -> (i128, u64)
fn unpause(env: soroban_sdk::Env) -> Result<(), TokenError>

Execute a single token transfer.

Security

  • Requires sender (from) authentication
  • Validates amount > 0
  • Delegates to underlying Soroban token contract
fn transfer(
    env: soroban_sdk::Env,
    token_address: soroban_sdk::Address,
    from: soroban_sdk::Address,
    to: soroban_sdk::Address,
    amount: i128,
) -> Result<(), TokenError>

Check token allowance.

fn allowance(
    env: soroban_sdk::Env,
    token_address: soroban_sdk::Address,
    owner: soroban_sdk::Address,
    spender: soroban_sdk::Address,
) -> i128

Check token balance for an account.

fn balance_of(
    env: soroban_sdk::Env,
    token_address: soroban_sdk::Address,
    account: soroban_sdk::Address,
) -> i128
fn initialize(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
    payment_engine: soroban_sdk::Address,
) -> Result<(), TokenError>

Execute multiple transfers in a single transaction (atomic). Used by the keeper service for batch payment processing.

Security

  • Only callable by the Payment Engine
  • All transfers are atomic (all succeed or all fail)
  • Maximum batch size enforced
fn batch_transfer(
    env: soroban_sdk::Env,
    transfers: soroban_sdk::Vec,
) -> Result

Imports

WebAssembly Text (WAT) ▶