Contract 5e5b82ee95c4b65051f36deee12df838a767f6de941689313e3d8434a0ac8d01

← Back to Index 📥 Download WASM

Meta

cliver 25.0.0#a64925e9391c3d3b3ef8e53dc60c23db9e6a82e4
rssdkver 22.0.10#9a1b75b509a5053b676b09fdbd224fe8c5f2fcd5
rsver 1.93.0

Instances

  • CANL7HPERBSIRZDXHQCDRAXI2HS4UQX425JAVEBM73G6BKCAREXGNMFZ

Interface

Store a deposit record for a wallet. Only the wallet owner can call this (require_auth).

fn deposit(
    env: soroban_sdk::Env,
    wallet: soroban_sdk::Address,
    amount: i128,
    date: u64,
)

Return the full deposit history for a wallet.

fn get_deposits(
    env: soroban_sdk::Env,
    wallet: soroban_sdk::Address,
) -> soroban_sdk::Vec

Return the date of the most recent deposit for a wallet. Panics if no deposits exist.

fn get_last_subscription_date(
    env: soroban_sdk::Env,
    wallet: soroban_sdk::Address,
) -> u64

Imports

WebAssembly Text (WAT) ▶