Contract d05830d5fc421f900e38b5817749fa1a616734c0c6529ef5f9e808f2b754267e

← Back to Index 📥 Download WASM

Meta

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

Instances

  • CBRW774NLARFXSCKUTWONKRX5NL7AWP675CXG654PTV6KDFSDYYQTHO6

Interface

View an agreement.

fn get(env: soroban_sdk::Env, id: u64) -> Result

Exporter marks the shipment dispatched. Created -> Shipped.

fn ship(env: soroban_sdk::Env, id: u64) -> Result<(), soroban_sdk::Error>

Exporter opens a trade agreement with an importer. Returns the agreement id.

fn create(
    env: soroban_sdk::Env,
    exporter: soroban_sdk::Address,
    importer: soroban_sdk::Address,
    commodity: soroban_sdk::String,
    terms_hash: soroban_sdk::BytesN<32>,
    manifest_cid: soroban_sdk::String,
    amount: i128,
) -> u64

Exporter marks delivery. Shipped -> Delivered.

fn deliver(env: soroban_sdk::Env, id: u64) -> Result<(), soroban_sdk::Error>

Importer acknowledges receipt — their on-chain execution. Delivered -> Acknowledged.

fn acknowledge(env: soroban_sdk::Env, id: u64) -> Result<(), soroban_sdk::Error>

Imports

WebAssembly Text (WAT) ▶