Contract 2807b5e97eae6486abbd275afef36d3105c4d8378959044822abf2bc929bff48

← Back to Index 📥 Download WASM

Meta

rssdkver 22.0.7#211569aa49c8d896877dfca1f2eb4fe9071121c8
rsver 1.84.1

Instances

  • CBG3QKYGZBTS43YKEFF5EUNE3SX5GIHPJLOTQSLVFZ7APV3RFVJDUTMR

Interface

Initializes the contract by storing the token contract address and setting the deposit counter.

fn init(env: soroban_sdk::Env)

Deposits tokens into escrow. Reads the token address from storage. Returns a unique deposit ID for later releasing funds.

fn deposit(
    env: soroban_sdk::Env,
    sender: soroban_sdk::Address,
    amount: i128,
    receiver: soroban_sdk::Address,
    delay: u64,
    memo: soroban_sdk::String,
) -> u64

Releases escrowed tokens to the designated receiver if the timelock has expired.

fn release(env: soroban_sdk::Env, receiver: soroban_sdk::Address, deposit_id: u64)

Imports

WebAssembly Text (WAT) ▶