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;
}