Contract 51e13055a74adeedb8cfc84e612dca1a0817aceab09388e059c08ed14f92e837

← Back to Index 📥 Download WASM

Meta

rssdkver 22.0.7#211569aa49c8d896877dfca1f2eb4fe9071121c8
rsver 1.84.1

Instances

  • CBDD6DILXNIMMOVWKPR74XOOGEFTHEKCZTK4U7QYYADGQQO6X63J4O56

Interface

Initializes the contract storage by setting the token contract address and initializing the deposit counter to zero.

fn init(env: soroban_sdk::Env, token: soroban_sdk::Address)

Deposits tokens into escrow. This transfers tokens from the sender’s account to the escrow contract’s account, and records the deposit amount using a deposit counter.

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

Sends tokens from the escrow contract’s account to a specified recipient. This transfers tokens from the escrow account (i.e. the contract's own address) to the recipient’s address.

fn send(env: soroban_sdk::Env, recipient: soroban_sdk::Address, amount: i128)

Imports

WebAssembly Text (WAT) ▶