Contract 949649b515a171f0ed2a7b3d32f02e52c76868991aaa5c31260f5965b2543eed

← Back to Index 📥 Download WASM

Meta

rssdkver 22.0.7#211569aa49c8d896877dfca1f2eb4fe9071121c8
rsver 1.84.1

Instances

  • CA76OYDPDKBLWLTUZRIYGUOSQKMVEU2BRVV23NCA4J32H3EDMQY3PDI4

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 (i.e. the contract's own address) to the recipient’s address.

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

Sends tokens from the escrow contract’s account to multiple recipients. Accepts a vector of recipient addresses and a vector of token amounts. Both vectors must be of the same length.

fn send_multiple(
    env: soroban_sdk::Env,
    recipients: soroban_sdk::Vec,
    amounts: soroban_sdk::Vec,
)

Imports

WebAssembly Text (WAT) ▶