Contract 9c3f09d7a8441c8bfbe11871f8354128f57a71d4d5e70b2830452107392dc977

← Back to Index 📥 Download WASM

Meta

cliver 25.0.0#a64925e9391c3d3b3ef8e53dc60c23db9e6a82e4
rssdkver 22.0.10#9a1b75b509a5053b676b09fdbd224fe8c5f2fcd5
rsver 1.93.0

Instances

  • CCCWT7J2AUNY34BYT3MVJZGZKTKFHXSTA2H7IAE4UWP7OJS4CXEVJUMG

Interface

Transfer XLM to the project wallet and record the deposit — single transaction.

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

Initialize the contract with the token (native XLM SAC) and project wallet. Can only be called once.

fn initialize(
    env: soroban_sdk::Env,
    token: soroban_sdk::Address,
    project_wallet: soroban_sdk::Address,
)

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