fn burn(env: soroban_sdk::Env, caller: soroban_sdk::Address, amount: i128)
fn mint(
env: soroban_sdk::Env,
caller: soroban_sdk::Address,
to: soroban_sdk::Address,
amount: i128,
)
Returns the name for this token.
e - Access to Soroban environment.fn name(env: soroban_sdk::Env) -> soroban_sdk::String
fn admin(env: soroban_sdk::Env) -> soroban_sdk::Address
fn pause(env: soroban_sdk::Env, caller: soroban_sdk::Address)
Returns the symbol for this token.
e - Access to Soroban environment.fn symbol(env: soroban_sdk::Env) -> soroban_sdk::String
fn approve(
env: soroban_sdk::Env,
owner: soroban_sdk::Address,
spender: soroban_sdk::Address,
amount: i128,
live_until_ledger: u32,
)
Returns the amount of tokens held by account.
e - Access to the Soroban environment.account - The address for which the balance is being queried.fn balance(env: soroban_sdk::Env, account: soroban_sdk::Address) -> i128
fn unpause(env: soroban_sdk::Env, caller: soroban_sdk::Address)
fn upgrade(
env: soroban_sdk::Env,
caller: soroban_sdk::Address,
new_wasm_hash: soroban_sdk::BytesN<32>,
)
Returns the number of decimals used to represent amounts of this token.
e - Access to Soroban environment.fn decimals(env: soroban_sdk::Env) -> u32
fn has_role(
env: soroban_sdk::Env,
role: soroban_sdk::Symbol,
account: soroban_sdk::Address,
) -> bool
fn transfer(
env: soroban_sdk::Env,
from: soroban_sdk::Address,
to: soroban_sdk::MuxedAddress,
amount: i128,
)
Returns the amount of tokens a spender is allowed to spend on behalf
of an owner.
e - Access to Soroban environment.owner - The address holding the tokens.spender - The address authorized to spend the tokens.fn allowance(
env: soroban_sdk::Env,
owner: soroban_sdk::Address,
spender: soroban_sdk::Address,
) -> i128
fn is_paused(env: soroban_sdk::Env) -> bool
fn aggregator(env: soroban_sdk::Env) -> soroban_sdk::Address
fn grant_role(
env: soroban_sdk::Env,
role: soroban_sdk::Symbol,
account: soroban_sdk::Address,
)
fn is_blocked(env: soroban_sdk::Env, account: soroban_sdk::Address) -> bool
fn revoke_role(
env: soroban_sdk::Env,
role: soroban_sdk::Symbol,
account: soroban_sdk::Address,
)
fn accept_admin(env: soroban_sdk::Env)
fn max_transfer(env: soroban_sdk::Env) -> i128
Returns the total amount of tokens in circulation.
e - Access to the Soroban environment.fn total_supply(env: soroban_sdk::Env) -> i128
fn __constructor(
env: soroban_sdk::Env,
admin: soroban_sdk::Address,
name: soroban_sdk::String,
symbol: soroban_sdk::String,
decimals: u32,
max_burn_mint: i128,
max_transfer: i128,
aggregator: soroban_sdk::Address,
heartbeat: u64,
roles: RolesConfig,
)
fn max_burn_mint(env: soroban_sdk::Env) -> i128
fn transfer_from(
env: soroban_sdk::Env,
spender: soroban_sdk::Address,
from: soroban_sdk::Address,
to: soroban_sdk::Address,
amount: i128,
)
fn block_accounts(
env: soroban_sdk::Env,
caller: soroban_sdk::Address,
accounts: soroban_sdk::Vec,
)
fn set_aggregator(
env: soroban_sdk::Env,
caller: soroban_sdk::Address,
aggregator: soroban_sdk::Address,
)
fn transfer_admin(
env: soroban_sdk::Env,
new_admin: soroban_sdk::Address,
live_until_ledger: u32,
)
fn set_max_transfer(env: soroban_sdk::Env, caller: soroban_sdk::Address, value: i128)
fn unblock_accounts(
env: soroban_sdk::Env,
caller: soroban_sdk::Address,
accounts: soroban_sdk::Vec,
)
fn set_max_burn_mint(env: soroban_sdk::Env, caller: soroban_sdk::Address, value: i128)
fn get_latest_reserve(env: soroban_sdk::Env) -> (i128, u64)
fn aggregator_heartbeat(env: soroban_sdk::Env) -> u64
fn set_aggregator_heartbeat(
env: soroban_sdk::Env,
caller: soroban_sdk::Address,
interval: u64,
)
fn remove_funds_from_blocked(
env: soroban_sdk::Env,
caller: soroban_sdk::Address,
accounts: soroban_sdk::Vec,
)