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>