Contract b0f3b5aa10f85091f47195cca41e182626ae395c022effad65bbcace3124dd06

← Back to Index 📥 Download WASM

Meta

cliver 27.0.0#5a7c5fe76530bf4248477ac812fc757146b98cc4
rssdk_spec_shaking 2
rssdkver 25.3.0#dcbea44513feb7734af6b6c4aced2c4a7a2715d0
rsver 1.96.1

Instances

  • CBDETE3LWQGQYGFAC3CPAQO2MWNSK4T27U2NBFAIAOWERGQFO7ZDW4LF
  • CCLTT2ZJMMSKMUFTMDGZRRT76LFXK6INYM35VFKVZF5ZB4S7LQVEDZZ7

Interface

fn auth(env: soroban_sdk::Env) -> soroban_sdk::Address
fn admin(env: soroban_sdk::Env) -> soroban_sdk::Address
fn asset(env: soroban_sdk::Env) -> soroban_sdk::Address
fn supply(env: soroban_sdk::Env) -> i128
fn upgrade(env: soroban_sdk::Env, wasm_hash: soroban_sdk::BytesN<32>)
fn transact(env: soroban_sdk::Env, op: ChannelOperation)

Initiate a two-step transfer of the admin (owner) role to new_admin.

live_until_ledger is the ledger up to which new_admin may accept_admin. Pass current_ledger + N, where N is the acceptance window in ledgers. The standard window for a real ownership handover is 3 days = current_ledger + 3 * DAY_IN_LEDGERS (51_840 ledgers); the sensible range is 24h (17_280) to 7d (120_960). There is deliberately no default — every call states its window explicitly.

A non-zero window beyond the in-contract ceiling of 7 days (MAX_ACCEPTANCE_WINDOW = 120_960 ledgers past the current ledger) panics [Error::AcceptanceWindowTooLong]. live_until_ledger == 0 is exempt from the ceiling and cancels a pending transfer (the library requires the cancel call to name the current pending address).

fn set_admin(
    env: soroban_sdk::Env,
    new_admin: soroban_sdk::Address,
    live_until_ledger: u32,
)
fn accept_admin(env: soroban_sdk::Env)
fn utxo_balance(env: soroban_sdk::Env, utxo: soroban_sdk::BytesN<65>) -> i128
fn __constructor(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
    auth_contract: soroban_sdk::Address,
    asset: soroban_sdk::Address,
)
fn utxo_balances(
    env: soroban_sdk::Env,
    utxos: soroban_sdk::Vec>,
) -> soroban_sdk::Vec

Imports

WebAssembly Text (WAT) ▶