fn initialize(
env: soroban_sdk::Env,
admin: soroban_sdk::Address,
decimal: u32,
name: soroban_sdk::String,
symbol: soroban_sdk::String,
) -> bool
fn set_name_symbol(
env: soroban_sdk::Env,
name: soroban_sdk::String,
symbol: soroban_sdk::String,
) -> bool
fn set_symbol(env: soroban_sdk::Env, symbol: soroban_sdk::String) -> bool
fn get_admin(env: soroban_sdk::Env) -> soroban_sdk::Address
fn allowance(
env: soroban_sdk::Env,
from: soroban_sdk::Address,
spender: soroban_sdk::Address,
) -> i128
fn approve(
env: soroban_sdk::Env,
from: soroban_sdk::Address,
spender: soroban_sdk::Address,
amount: i128,
expiration_ledger: u32,
)
fn balance(env: soroban_sdk::Env, id: soroban_sdk::Address) -> i128
fn transfer(
env: soroban_sdk::Env,
from: soroban_sdk::Address,
to: soroban_sdk::Address,
amount: i128,
)
fn transfer_from(
env: soroban_sdk::Env,
spender: soroban_sdk::Address,
from: soroban_sdk::Address,
to: soroban_sdk::Address,
amount: i128,
)
fn burn(env: soroban_sdk::Env, from: soroban_sdk::Address, amount: i128)
fn burn_from(
env: soroban_sdk::Env,
spender: soroban_sdk::Address,
from: soroban_sdk::Address,
amount: i128,
)
fn decimals(env: soroban_sdk::Env) -> u32
fn name(env: soroban_sdk::Env) -> soroban_sdk::String
fn symbol(env: soroban_sdk::Env) -> soroban_sdk::String
fn set_admin(env: soroban_sdk::Env, new_admin: soroban_sdk::Address)
Returns the admin of the contract.
If the admin is not set.
fn admin(env: soroban_sdk::Env) -> soroban_sdk::Address
Sets whether the account is authorized to use its balance. If
authorized is true, id should be able to use its balance.
id - The address being (de-)authorized.authorize - Whether or not id can use its balance.Emits an event with topics ["set_authorized", admin: Address, id: Address, sep0011_asset: String], data = authorize: bool
fn set_authorized(env: soroban_sdk::Env, id: soroban_sdk::Address, authorize: bool)
Returns true if id is authorized to use its balance.
id - The address for which token authorization is being checked.fn authorized(env: soroban_sdk::Env, id: soroban_sdk::Address) -> bool
fn mint(env: soroban_sdk::Env, to: soroban_sdk::Address, amount: i128)
Clawback amount from from account. amount is burned in the
clawback process.
from - The address holding the balance from which the clawback will
take tokens.amount - The amount of tokens to be clawed back.Emits an event with topics ["clawback", admin: Address, from: Address, sep0011_asset: String], data = amount: i128
fn clawback(env: soroban_sdk::Env, from: soroban_sdk::Address, amount: i128)