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)