Contract 4cd7051bd2f4954b5e5192d88d67945849790689c8482805de462a8a89bb6d68

← Back to Index 📥 Download WASM

Meta

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

Instances

  • CD76S7XCNIC3Q64JKKX66YS4PQA4QLRKATRAGK6HZBC5KGKDSMFRI53F

Interface

fn token(env: soroban_sdk::Env) -> soroban_sdk::Address
fn settle(env: soroban_sdk::Env, id: u64, payer: soroban_sdk::Address)

IC-08 (DD-1): admin-gated in-place upgrade. Lets a discovered bug in the money-moving flows be patched without a full redeploy + state migration. The admin SHOULD be a multisig/timelock account on mainnet (see DD-2).

fn upgrade(env: soroban_sdk::Env, new_wasm_hash: soroban_sdk::BytesN<32>)
fn is_paused(env: soroban_sdk::Env) -> bool
fn list_open(env: soroban_sdk::Env) -> soroban_sdk::Vec

IC-09: expose the wired reputation/token addresses so a deploy script can assert the marketplace is correctly configured (reputation != token) and the frontend can read them without a hardcoded config.

fn reputation(env: soroban_sdk::Env) -> soroban_sdk::Address

IC-08 (DD-3): admin-gated circuit breaker. Only blocks NEW activity (create_invoice / buy_invoice); settle, mark_default and cancel remain available while paused so no funded invoice can ever be locked.

fn set_paused(env: soroban_sdk::Env, paused: bool)
fn _sale_price(env: soroban_sdk::Env, face_value: i128, discount_bps: u32) -> i128
fn buy_invoice(env: soroban_sdk::Env, id: u64, investor: soroban_sdk::Address)
fn get_invoice(env: soroban_sdk::Env, id: u64) -> Invoice
fn mark_default(env: soroban_sdk::Env, id: u64)
fn __constructor(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
    token: soroban_sdk::Address,
    reputation: soroban_sdk::Address,
)
fn list_by_owner(
    env: soroban_sdk::Env,
    owner: soroban_sdk::Address,
) -> soroban_sdk::Vec
fn cancel_invoice(env: soroban_sdk::Env, id: u64)
fn create_invoice(
    env: soroban_sdk::Env,
    seller: soroban_sdk::Address,
    debtor: soroban_sdk::Address,
    debtor_name: soroban_sdk::String,
    face_value: i128,
    due_ledger: u64,
    discount_bps: u32,
) -> u64
fn list_by_seller(
    env: soroban_sdk::Env,
    seller: soroban_sdk::Address,
) -> soroban_sdk::Vec
fn set_reputation(env: soroban_sdk::Env, reputation: soroban_sdk::Address)

Imports

WebAssembly Text (WAT) ▶