Contract 7d047dcedfe73b692e2def44c1ab16634b0dfe4325c0e40ce9bdefb189c9e167

← Back to Index 📥 Download WASM

Meta

cliver 28.1.0#c0f4d0da891bbf214c08b8c5035ae6db80e9a3bd
rssdk_spec_shaking 2
rssdkver 28.0.0#48d506712f964094d14176e2f0b02afcd1054567
rsver 1.91.1

Instances

  • CDQUJPAEWFFPS6ZBVF7SIRIVSKZDVMDZB4NFD3IAFS6D67N2JHMUHRFE

Interface

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

Imports

WebAssembly Text (WAT) ▶