Contract cedc07587be0be26f54e7df7b549bd14e28969fae56636eba4ab52c0cf4eda1c

← Back to Index 📥 Download WASM

Meta

rssdkver 25.1.1#94c2a3b3a5ded6b9cf9cef0c207bf8804f3eb294
rsver 1.96.0

Instances

  • CBZQESVUWVZOAVFU2ZMYXJQSJIKU4QENYFOABFRGAX7DAF4QENTOUMO4

Interface

fn owner(env: soroban_sdk::Env) -> Result
fn upgrade(
    env: soroban_sdk::Env,
    hash: soroban_sdk::BytesN<32>,
) -> Result<(), OmniseaError>
fn version(env: soroban_sdk::Env) -> u32
fn local_eid(env: soroban_sdk::Env) -> u32
fn send_oft_to(
    env: soroban_sdk::Env,
    sender: soroban_sdk::Address,
    representation: soroban_sdk::Address,
    params: SendTokenParams,
) -> Result
fn protocol_fee(env: soroban_sdk::Env) -> i128
fn __constructor(
    env: soroban_sdk::Env,
    owner: soroban_sdk::Address,
    local_eid: u32,
    router: soroban_sdk::Address,
    registry: soroban_sdk::Address,
    vault: soroban_sdk::Address,
    fees_manager: soroban_sdk::Address,
) -> Result<(), OmniseaError>
fn pending_owner(env: soroban_sdk::Env) -> Option
fn prepared_send(env: soroban_sdk::Env, id: u64) -> Option
fn quote_restore(
    env: soroban_sdk::Env,
    guid: soroban_sdk::BytesN<32>,
    options: soroban_sdk::Bytes,
    pay_in_zro: bool,
) -> MessagingFee
fn locked_balance(env: soroban_sdk::Env, token: soroban_sdk::Address) -> i128

Soroban forbids Router -> Core -> Router call cycles. Compose is therefore permissionlessly forwarded in a separate, retryable transaction after the token settlement has committed.

fn execute_compose(
    env: soroban_sdk::Env,
    guid: soroban_sdk::BytesN<32>,
) -> Result<(), OmniseaError>
fn payload_version(env: soroban_sdk::Env) -> u32
fn pending_compose(
    env: soroban_sdk::Env,
    guid: soroban_sdk::BytesN<32>,
) -> Option<(soroban_sdk::Address, soroban_sdk::Bytes)>
fn receive_payload(
    env: soroban_sdk::Env,
    src_eid: u32,
    guid: soroban_sdk::BytesN<32>,
    message: soroban_sdk::Bytes,
) -> Result<(), OmniseaError>
fn restore_payload(
    env: soroban_sdk::Env,
    message: soroban_sdk::Bytes,
) -> Result
fn accept_ownership(env: soroban_sdk::Env) -> Result<(), OmniseaError>

Burns a Stellar representation and escrows its protocol fee. Both are restored by cancel_prepared_send until LayerZero execution succeeds.

fn prepare_oft_send(
    env: soroban_sdk::Env,
    sender: soroban_sdk::Address,
    representation: soroban_sdk::Address,
    params: SendTokenParams,
) -> Result
fn send_original_to(
    env: soroban_sdk::Env,
    sender: soroban_sdk::Address,
    token: soroban_sdk::Address,
    params: SendTokenParams,
) -> Result
fn set_token_issuer(
    env: soroban_sdk::Env,
    original_eid: u32,
    original_token: soroban_sdk::Bytes,
    issuer: Option,
) -> Result<(), OmniseaError>
fn quote_send_oft_to(
    env: soroban_sdk::Env,
    sender: soroban_sdk::Address,
    representation: soroban_sdk::Address,
    params: SendTokenParams,
) -> Result<(MessagingFee, i128), OmniseaError>
fn representation_for(
    env: soroban_sdk::Env,
    original_eid: u32,
    original_token: soroban_sdk::Bytes,
) -> Result, OmniseaError>
fn transfer_ownership(
    env: soroban_sdk::Env,
    next: soroban_sdk::Address,
) -> Result<(), OmniseaError>
fn quote_prepared_send(
    env: soroban_sdk::Env,
    id: u64,
) -> Result<(MessagingFee, i128), OmniseaError>

Cancels a packet that has not reached LayerZero, restoring the exact locked/burned amount and the undistributed protocol fee atomically.

fn cancel_prepared_send(
    env: soroban_sdk::Env,
    sender: soroban_sdk::Address,
    id: u64,
) -> Result<(), OmniseaError>

Accrues the already-escrowed protocol fee after LayerZero execution. This is permissionless and retryable so accounting cannot block token delivery.

fn settle_prepared_send(env: soroban_sdk::Env, id: u64) -> Result<(), OmniseaError>
fn withdraw_issuer_fees(
    env: soroban_sdk::Env,
    issuer: soroban_sdk::Address,
    recipient: soroban_sdk::Address,
    amount: i128,
) -> Result<(), OmniseaError>
fn authorize_oft_feature(
    env: soroban_sdk::Env,
    representation: soroban_sdk::Address,
    feature: u32,
) -> Result<(), OmniseaError>
fn collected_issuer_fees(env: soroban_sdk::Env, issuer: soroban_sdk::Address) -> i128

Sends a previously prepared packet. The payer may be the original sender or any relayer willing to fund LayerZero; asset custody is already final.

fn execute_prepared_send(
    env: soroban_sdk::Env,
    payer: soroban_sdk::Address,
    id: u64,
) -> Result

Soroban Mainnet's instruction ceiling can make a full token operation, protocol-fee accounting, and LayerZero send too large for one transaction. Preparation atomically locks the original asset and escrows the protocol fee; the LayerZero send is then executed in a small second transaction.

fn prepare_original_send(
    env: soroban_sdk::Env,
    sender: soroban_sdk::Address,
    token: soroban_sdk::Address,
    params: SendTokenParams,
) -> Result
fn protocol_fee_receiver(env: soroban_sdk::Env) -> soroban_sdk::Address
fn recover_vault_surplus(
    env: soroban_sdk::Env,
    token: soroban_sdk::Address,
    recipient: soroban_sdk::Address,
    amount: i128,
) -> Result<(), OmniseaError>

Overrides the owner bytes carried to one destination VM. This is required when an EVM, Starknet, Solana, or Stellar owner uses a different address form.

fn set_destination_owner(
    env: soroban_sdk::Env,
    token: soroban_sdk::Address,
    dst_eid: u32,
    owner: Option,
) -> Result<(), OmniseaError>
fn quote_send_original_to(
    env: soroban_sdk::Env,
    sender: soroban_sdk::Address,
    token: soroban_sdk::Address,
    params: SendTokenParams,
) -> Result<(MessagingFee, i128), OmniseaError>
fn restore_failed_message(
    env: soroban_sdk::Env,
    payer: soroban_sdk::Address,
    guid: soroban_sdk::BytesN<32>,
    options: soroban_sdk::Bytes,
    pay_in_zro: bool,
    refund_address: soroban_sdk::Address,
) -> Result
fn set_fixed_protocol_fee(env: soroban_sdk::Env, fee: i128) -> Result<(), OmniseaError>
fn withdraw_protocol_fees(
    env: soroban_sdk::Env,
    amount: i128,
) -> Result<(), OmniseaError>
fn collected_protocol_fees(env: soroban_sdk::Env) -> i128
fn set_protocol_fee_receiver(
    env: soroban_sdk::Env,
    receiver: soroban_sdk::Address,
) -> Result<(), OmniseaError>

Cooperation path for a destination owner whose address could not be represented by the source VM at the time of first transfer.

fn sync_representation_owner(
    env: soroban_sdk::Env,
    representation: soroban_sdk::Address,
    owner: Option,
) -> Result<(), OmniseaError>

Issuer-cooperative metadata registration for Stellar originals. Unregistered SEP-41 assets still bridge permissionlessly with owner/compliance disabled.

fn register_original_metadata(
    env: soroban_sdk::Env,
    token: soroban_sdk::Address,
    issuer: Option,
    contract_uri: soroban_sdk::Bytes,
    contract_owner: Option,
) -> Result

Imports

WebAssembly Text (WAT) ▶