Contract b2475145ef8988df0d66ff4a9ceca829fdb883121f281c01d8fcf664afcebfc9

← Back to Index 📥 Download WASM

Meta

cliver 25.2.0#28484880988199233a7e8e87c97cb12dac323cb3
rssdkver 25.3.1#e50d95af029c83196dd122f0154bac3f1302394b
rsver 1.94.1

Instances

  • CA4V5C3KWDXBJEPIIKZT2PQWQZB4SY3G3G3S4PYPD5XXGXF5RKQUBE2N

Interface

Burn amount from from.

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

Mint tokens (admin only)

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

Returns the name for this token.

fn name(env: soroban_sdk::Env) -> soroban_sdk::String

Get admin address

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

Returns the symbol for this token.

fn symbol(env: soroban_sdk::Env) -> soroban_sdk::String

Set the allowance by amount for spender to transfer/burn from from.

fn approve(
    env: soroban_sdk::Env,
    from: soroban_sdk::Address,
    spender: soroban_sdk::Address,
    amount: i128,
    expiration_ledger: u32,
)

Returns the balance of id.

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

Returns the number of decimals used to represent amounts of this token.

fn decimals(env: soroban_sdk::Env) -> u32

Transfer amount from from to to.

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

Returns the allowance for spender to transfer from from.

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

Burn amount from from, consuming the allowance of spender.

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

Set admin address (admin only)

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

Initialize the token contract

fn initialize(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
    name: soroban_sdk::String,
    symbol: soroban_sdk::String,
    decimals: u32,
)

Transfer amount from from to to, consuming the allowance that spender has on from's balance.

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

Imports

WebAssembly Text (WAT) ▶