Contract 68ee3f8fd6c153ba96fc6fdd0fbcab80fd16d301c231928307acc51903885fc3

← Back to Index 📥 Download WASM

Meta

rssdkver 21.7.7#5da789c50b18a4c2be53394138212fed56f0dfc4
rsver 1.82.0

Instances

  • CABUG6VXNFBV6TZGGKTTCYUU3OIESNUTEDBNRRSG6K7YVLQSCOVJC3IS
  • CBSVUJLJJ7HCGPHUR77TISFU4H3TW5DJYZFRLWKPC45YRI5AYYNAK3RI
  • CDFVYTVBETSXNVNK3JBKVCJOTDIIHEWTV6B2YH2ISURRU3QT6IDOE2XI

Interface

fn initialize(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
    decimal: u32,
    name: soroban_sdk::String,
    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.

Panics

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.

Arguments

  • id - The address being (de-)authorized.
  • authorize - Whether or not id can use its balance.

Events

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.

Arguments

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

Arguments

  • from - The address holding the balance from which the clawback will take tokens.
  • amount - The amount of tokens to be clawed back.

Events

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)

Imports

WebAssembly Text (WAT) ▶