Contract 35fbb22d04c3e3c41175d341666a0f30ffca3f1764de655f1a38e3a34bc0c1d0

← Back to Index 📥 Download WASM

Meta

rssdkver 23.5.3#d3e1ab2424388b10893b796b0c8e405c5edd03d2
rsver 1.93.1

Instances

  • CBW6S2YN2PLVHRWGPP4J3WUZH2WFQRSVGW3MPPUVUIMUFQTAT4CDVVKY
  • CCT4CFCAAX3GGBVVPOXBOJEGCHUQVKMW736BC5BPNRHAFET5Q62P2C7V

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)

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) ▶