Contract 6fff095baadc5f6ca597dceea6a5a866ae2b00955f8ad75b66a6f6691beedbbb

← Back to Index 📥 Download WASM

Meta

cliver 27.0.0#5a7c5fe76530bf4248477ac812fc757146b98cc4
rssdkver 22.0.11#34f7f53ae31e0fd02aab436a9872e79fa671ca02
rsver 1.96.0

Instances

  • CB3LJ4WB7MAA4SSYGEJ7XDLWT35PNI3DLBPZBYEVLU2J64V4R5IZHEUF

Interface

Append a supply-chain trace step to a batch. Signed by the acting party. Returns the new step index.

fn add_step(
    env: soroban_sdk::Env,
    code: soroban_sdk::String,
    stage: soroban_sdk::Symbol,
    hash: soroban_sdk::BytesN<32>,
    actor: soroban_sdk::Address,
) -> Result

Read a batch's on-chain record.

fn get_batch(
    env: soroban_sdk::Env,
    code: soroban_sdk::String,
) -> Result

Read a batch's full on-chain trace.

fn get_steps(
    env: soroban_sdk::Env,
    code: soroban_sdk::String,
) -> soroban_sdk::Vec

Register a new batch on-chain. Signed by the processor.

fn register_batch(
    env: soroban_sdk::Env,
    processor: soroban_sdk::Address,
    code: soroban_sdk::String,
    product: soroban_sdk::String,
    terms_hash: soroban_sdk::BytesN<32>,
    cid: soroban_sdk::String,
) -> Result<(), soroban_sdk::Error>

Imports

WebAssembly Text (WAT) ▶