pub trait Token {
Show 18 methods // Required methods fn initialize( env: Env, admin: Address, decimal: u32, name: Bytes, symbol: Bytes ); fn clawback(env: Env, admin: Address, from: Address, amount: i128); fn mint(env: Env, admin: Address, to: Address, amount: i128); fn set_admin(env: Env, admin: Address, new_admin: Address); fn set_auth(env: Env, admin: Address, id: Address, authorize: bool); fn incr_allow(env: Env, from: Address, spender: Address, amount: i128); fn decr_allow(env: Env, from: Address, spender: Address, amount: i128); fn xfer(env: Env, from: Address, to: Address, amount: i128); fn xfer_from( env: Env, spender: Address, from: Address, to: Address, amount: i128 ); fn burn(env: Env, from: Address, amount: i128); fn burn_from(env: Env, spender: Address, from: Address, amount: i128); fn balance(env: Env, id: Address) -> i128; fn spendable(env: Env, id: Address) -> i128; fn authorized(env: Env, id: Address) -> bool; fn allowance(env: Env, from: Address, spender: Address) -> i128; fn decimals(env: Env) -> u32; fn name(env: Env) -> Bytes; fn symbol(env: Env) -> Bytes;
}

Required Methods§

source

fn initialize(env: Env, admin: Address, decimal: u32, name: Bytes, symbol: Bytes)

source

fn clawback(env: Env, admin: Address, from: Address, amount: i128)

source

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

source

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

source

fn set_auth(env: Env, admin: Address, id: Address, authorize: bool)

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

fn authorized(env: Env, id: Address) -> bool

source

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

source

fn decimals(env: Env) -> u32

source

fn name(env: Env) -> Bytes

source

fn symbol(env: Env) -> Bytes

Implementors§