Contract 81e56c99872069a8cd7d97b9f678db343ecb4ac76c2e95e8da0ab78a2a2b9b29

← Back to Index 📥 Download WASM

Meta

cliver 27.0.0#5a7c5fe76530bf4248477ac812fc757146b98cc4
rssdkver 26.1.0#175aa41306f383057a8cdfc84b68d931664fc34e
rsver 1.93.0

Instances

  • CAN7GDRKXMUSVEZWXH4IPLWOALLQF3CEIOWBP7AFVMZQSUHAWH54YBKZ

Interface

Admin-only in-place code upgrade. new_wasm_hash must reference bytecode already uploaded to the network; the contract address and all stored state (config, latest price) are preserved.

fn upgrade(
    env: soroban_sdk::Env,
    new_wasm_hash: soroban_sdk::BytesN<32>,
) -> Result<(), soroban_sdk::Error>

SEP-40-style read. Consumers (the escrow) check timestamp freshness themselves.

fn lastprice(env: soroban_sdk::Env) -> Option
fn get_config(env: soroban_sdk::Env) -> Result
fn initialize(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
    publisher: soroban_sdk::Address,
    min_rate: i128,
    max_rate: i128,
    max_step: i128,
) -> Result<(), soroban_sdk::Error>
fn set_bounds(
    env: soroban_sdk::Env,
    min_rate: i128,
    max_rate: i128,
    max_step: i128,
) -> Result<(), soroban_sdk::Error>
fn set_paused(env: soroban_sdk::Env, paused: bool) -> Result<(), soroban_sdk::Error>

Publisher pushes the current ScopeX rate. Circuit breakers enforced.

fn publish_rate(env: soroban_sdk::Env, rate: i128) -> Result<(), soroban_sdk::Error>
fn set_publisher(
    env: soroban_sdk::Env,
    new: soroban_sdk::Address,
) -> Result<(), soroban_sdk::Error>

Imports

WebAssembly Text (WAT) ▶