Contract e3d543ac9a364f5ce8c1879a598b362f6ac77b715924e83266784e803e572ea7

← Back to Index 📥 Download WASM

Meta

cliver 25.1.0#a048a57a75762458b487052e0021ea704a926bee
rssdkver 23.5.2#347f71141ddf69ef1873527c94ac98e79215f125
rsver 1.94.0
source_repo https://github.com/copter-exchange/stellar_stablecoin

Instances

  • CD3UF3T7AWVUDOA47L5D7RFMHFTCP5YO67D2Z57FIKMV7LH35HL4KNL6

Interface

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.

Arguments

  • 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.

Arguments

  • 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.

Arguments

  • 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.

Arguments

  • 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.

Arguments

  • 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.

Arguments

  • 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,
)

Imports

WebAssembly Text (WAT) ▶