Contract 19032576681e48afab44bde4560c156a69fe5c94037f48cc7ceb418f3719b125

← Back to Index 📥 Download WASM

Meta

cliver 27.0.0#5a7c5fe76530bf4248477ac812fc757146b98cc4
rssdk_spec_shaking 2
rssdkver 27.0.6#60926a20d1f9f0a669d5fe551636f42a1302f0c0
rsver 1.98.1
source_repo github:zenith-protocols/zenex-util-contracts

Instances

  • CDOF5KRURJ7RRBPORHYSSKT727X3IBNF3LGOFHZND4HBTS5FRUZRJEZT

Interface

Executes calls in order and returns each call's raw return value. Any failing call traps the whole invocation, so every call lands or none does.

Arguments

  • e - Access to the Soroban environment.
  • calls - The calls, executed front to back.
fn multicall(
    env: soroban_sdk::Env,
    calls: soroban_sdk::Vec,
) -> soroban_sdk::Vec

Executes calls in order and returns one outcome per call: the raw return value when it lands, or the failure as a host Error value. A failing call rolls back only its own effects; a budget or footprint limit still aborts the whole transaction.

Arguments

  • e - Access to the Soroban environment.
  • calls - The calls, executed front to back.
fn multicall_try(
    env: soroban_sdk::Env,
    calls: soroban_sdk::Vec,
) -> soroban_sdk::Vec

Runs calls like multicall, then fills the order calls[0] created and returns the batch results with the fill payout appended. calls[0] must target the market and return the u32 order id; a failing fill unwinds the whole batch.

Arguments

  • e - Access to the Soroban environment.
  • calls - The batch; calls[0] creates the order to fill.
  • user - The order owner, passed to execute_order.
  • keeper - The fill-reward recipient.
  • price - The price update for the fill.
fn create_and_fill(
    env: soroban_sdk::Env,
    calls: soroban_sdk::Vec,
    user: soroban_sdk::Address,
    keeper: soroban_sdk::Address,
    price: soroban_sdk::Bytes,
) -> soroban_sdk::Vec

Runs calls like multicall, then attempts to fill the order calls[0] created and returns the batch results with the fill outcome appended: the payout on a fill, or the failure as a host Error value, in which case the orders rest for a later keeper fill.

Arguments

  • e - Access to the Soroban environment.
  • calls - The batch; calls[0] creates the order to fill.
  • user - The order owner, passed to execute_order.
  • keeper - The fill-reward recipient.
  • price - The price update for the fill.
fn create_and_try_fill(
    env: soroban_sdk::Env,
    calls: soroban_sdk::Vec,
    user: soroban_sdk::Address,
    keeper: soroban_sdk::Address,
    price: soroban_sdk::Bytes,
) -> soroban_sdk::Vec

Imports

WebAssembly Text (WAT) ▶