Contract 0a28a88ff51dcf7430c80302e3f3e8a68d7a34af5c927ef8838e2deed04cb96e

← Back to Index 📥 Download WASM

Meta

rssdkver 20.5.0#9e2c3022b4355b224a7a814e13ba51761eeb14bb
rsver 1.96.1

Instances

  • CBGMSY35IZMHNVBFQQY22PA62VWJVXIKC4TU2CTAKRGIJOACZE4EEIWW

Interface

Burn credits (used when user spends translation credits)

fn burn(env: soroban_sdk::Env, from: soroban_sdk::Address, amount: i128)

Mint new credits (restricted to admin)

fn mint(env: soroban_sdk::Env, to: soroban_sdk::Address, amount: i128)

Query the balance of a specific address

fn balance(env: soroban_sdk::Env, user: soroban_sdk::Address) -> i128

Transfer credits between users (P2P transfer)

fn transfer(
    env: soroban_sdk::Env,
    from: soroban_sdk::Address,
    to: soroban_sdk::Address,
    amount: i128,
)

Read the admin address

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

Initialize the contract and set the admin address

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

Imports

WebAssembly Text (WAT) ▶