Contract 6ea78836eb616078da9cc16dfcb4fdf10e54bafa5cfc87a0d3b025180bba0366

← Back to Index 📥 Download WASM

Meta

cliver 28.0.0#300aaf69ab100536678bdb641428b06f06b318ea
rssdkver 27.0.6#60926a20d1f9f0a669d5fe551636f42a1302f0c0
rsver 1.96.0

Instances

  • CACNWTMWO3Y3BPLVQLV4SHYLSAEGRYYS5FY7QQ2VPWA4FLX2RL3OLACS
  • CAL3OE6A7ZE2UCJWHV5HAPB3BPSKSPKJ5US37V3PN2YYHPFPXWROGI4X
  • CBFEVCIPUS5OCP2HVC6RU3NTKLFEXRHFT6RBQFJEYQ53E6IMTIU3XKII
  • CD7BPZMXYZJN4SNFL4AJOFZT7M4R3Z47PR47YBNJJVB4A2NC6MHHUTRW

Interface

fn mode(env: soroban_sdk::Env) -> DepositMode
fn owner(env: soroban_sdk::Env) -> OwnerKey
fn adapter(env: soroban_sdk::Env) -> soroban_sdk::Address
fn balance(env: soroban_sdk::Env) -> i128

Adapter only: stake (or back, per mode) everything the account holds, or hold it if the pool refuses. Never fails because of the pool, so a mint is never reverted. payout_account is already checked by the adapter to be the Solana owner's own USDC token account; the first one is kept for good, later ones are ignored.

fn on_mint(env: soroban_sdk::Env, payout_account: Option>)

Owner: back the pool with amount of held USDC. Fails if the pool refuses.

fn back_held(env: soroban_sdk::Env, amount: i128) -> Result<(), AccountError>

Owner: emergency exit from the pool and send everything home.

fn exit_home(env: soroban_sdk::Env) -> Result

Owner: send everything the account holds home.

fn send_home(env: soroban_sdk::Env) -> Result

Owner: pull what has vested on a claim and send everything home.

fn claim_home(
    env: soroban_sdk::Env,
    claim_id: soroban_sdk::BytesN<32>,
) -> Result

Permissionless TTL extension.

fn extend_ttl(env: soroban_sdk::Env)

Owner: stake amount of held USDC. Fails if the pool refuses.

fn stake_held(env: soroban_sdk::Env, amount: i128) -> Result<(), AccountError>
fn home_domain(env: soroban_sdk::Env) -> u32
fn __check_auth(
    env: soroban_sdk::Env,
    signature_payload: soroban_sdk::BytesN<32>,
    signature: OwnerSignature,
    auth_contexts: soroban_sdk::Vec,
) -> Result<(), AccountError>

Deployed by the CCTP adapter on the owner's first deposit.

fn __constructor(
    env: soroban_sdk::Env,
    adapter: soroban_sdk::Address,
    pool: soroban_sdk::Address,
    usdc: soroban_sdk::Address,
    messenger: soroban_sdk::Address,
    owner: OwnerKey,
    home_domain: u32,
    mode: DepositMode,
)

Owner: withdraw the stake and send everything home.

fn withdraw_home(env: soroban_sdk::Env) -> Result

Solana owners: the saved USDC token account payouts go to.

fn payout_account(env: soroban_sdk::Env) -> Option>

r3 (2026-09-29): owner: take the stake's yield, keep the stake, and send everything home.

fn claim_yield_home(env: soroban_sdk::Env) -> Result

Owner: cancel a pending backer withdrawal.

fn cancel_back_withdrawal(env: soroban_sdk::Env)

r3 (2026-09-29): owner: take backer yield, keep the backing, and send everything home.

fn claim_backer_yield_home(env: soroban_sdk::Env) -> Result

Owner: start the pool's backer notice period for amount. Returns the earliest completion timestamp.

fn request_back_withdrawal(env: soroban_sdk::Env, amount: i128) -> u64

Owner: complete a backer withdrawal after the notice period and send everything home.

fn complete_back_withdrawal_home(env: soroban_sdk::Env) -> Result

Imports

WebAssembly Text (WAT) ▶