Contract f2fd2c09e296861107b2c6fb9da9bbb73dac12f90784a1b918685d5c1977f231

← Back to Index 📥 Download WASM

Meta

rssdkver 23.5.3#d3e1ab2424388b10893b796b0c8e405c5edd03d2
rsver 1.93.1

Instances

  • CBACZX45CAIFMG3O5EM4XIS37SFTZEQSOYMWNHV5ZCY2LQ6IPRHEGMB6
  • CBDQH2TF3KUPZMALUJKMFDW6L2VJWUXS4KXPYVOE35FT6P7FUMBTRK4G

Interface

Keep the contract alive. Anyone may call.

fn ping(env: soroban_sdk::Env)
fn owner(env: soroban_sdk::Env) -> soroban_sdk::Address
fn token(env: soroban_sdk::Env) -> soroban_sdk::Address

Current ZSOZSO balance held by the vault.

fn balance(env: soroban_sdk::Env) -> i128

Withdraw the entire ZSOZSO balance of the vault to the owner. Callable only by the owner, and only after the unlock ledger.

fn withdraw(env: soroban_sdk::Env) -> Result<(), soroban_sdk::Error>

Initialise the vault.

  • owner: the only account that will ever be allowed to withdraw.
  • token: the Stellar Asset Contract address of ZSOZSO on Mainnet.

A random unlock ledger between 365 and 730 days from the current ledger is chosen at construction time.

fn __constructor(
    env: soroban_sdk::Env,
    owner: soroban_sdk::String,
    token: soroban_sdk::String,
)

Ledger sequence at which withdraw becomes callable.

fn unlock_ledger(env: soroban_sdk::Env) -> u32

Imports

WebAssembly Text (WAT) ▶