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