pub trait Interface {
Show 17 methods // Required methods fn allowance(env: Env, from: Address, spender: Address) -> i128; fn increase_allowance( env: Env, from: Address, spender: Address, amount: i128 ); fn decrease_allowance( env: Env, from: Address, spender: Address, amount: i128 ); fn balance(env: Env, id: Address) -> i128; fn spendable_balance(env: Env, id: Address) -> i128; fn authorized(env: Env, id: Address) -> bool; fn transfer(env: Env, from: Address, to: Address, amount: i128); fn transfer_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 set_authorized(env: Env, id: Address, authorize: bool); fn mint(env: Env, to: Address, amount: i128); fn clawback(env: Env, from: Address, amount: i128); fn set_admin(env: Env, new_admin: Address); fn decimals(env: Env) -> u32; fn name(env: Env) -> Bytes; fn symbol(env: Env) -> Bytes;
}
Expand description

Interface for Token contracts, such as the Stellar Asset Contract.

Required Methods§

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

fn transfer_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 set_authorized(env: Env, id: Address, authorize: bool)

source

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

source

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

source

fn set_admin(env: Env, new_admin: Address)

source

fn decimals(env: Env) -> u32

source

fn name(env: Env) -> Bytes

source

fn symbol(env: Env) -> Bytes

Implementors§