Contract 9b7f31c0763b9588e8e39994f5cb96b6c0c3890a36aa5cb0d8bb7a81aa2fd547

← Back to Index 📥 Download WASM

Meta

rssdkver 22.0.7#211569aa49c8d896877dfca1f2eb4fe9071121c8
rsver 1.84.1

Instances

  • CD3CWPUBTVCV6ZTVRUPLQ6ROLVECYZOSNCNLTU7TC7NGUZFXBSPTIULN

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

Imports

WebAssembly Text (WAT) ▶