fn get(env: soroban_sdk::Env, id: u64) -> Result
fn send(
env: soroban_sdk::Env,
sender: soroban_sdk::Address,
amount: i128,
keep_bps: u32,
keep_asset: soroban_sdk::Address,
min_keep_out: i128,
claim_key: soroban_sdk::BytesN<32>,
memo: soroban_sdk::BytesN<32>,
return_at: u64,
) -> Result
fn asset(
env: soroban_sdk::Env,
asset: soroban_sdk::Address,
) -> Result
Hand both parts to to. Anyone may submit it; the signature by the link's key over
("claim", this_contract, id, to) is the authorisation, and it fixes the destination.
fn claim(
env: soroban_sdk::Env,
id: u64,
to: soroban_sdk::Address,
sig: soroban_sdk::BytesN<64>,
) -> Result<(), soroban_sdk::Error>
fn count(env: soroban_sdk::Env) -> u64
fn config(env: soroban_sdk::Env) -> Config
Both parts back to the sender. The sender may do it any time while open; anyone may
once the return date has passed. by is whoever is asking, and must authorise.
fn refund(
env: soroban_sdk::Env,
id: u64,
by: soroban_sdk::Address,
) -> Result<(), soroban_sdk::Error>
Still held: read the keep asset's balance of whoever claimed, once, 30 days on.
fn measure(env: soroban_sdk::Env, id: u64) -> Result
Add or disable a keep asset for future sends. Touches no envelope: an envelope carries its own asset and amounts, and claim and refund read only those.
fn set_asset(
env: soroban_sdk::Env,
asset: soroban_sdk::Address,
pool: soroban_sdk::Address,
in_idx: u32,
out_idx: u32,
enabled: bool,
) -> Result<(), soroban_sdk::Error>
fn __constructor(
env: soroban_sdk::Env,
admin: soroban_sdk::Address,
usdc: soroban_sdk::Address,
)