Reference
Smart Contracts
Core on-chain surfaces developers interact with. Prefer interfaces over implementation details.
Order NFT (ERC-721)
enum OrderState {
Created, Funded, InProduction, Shipped, Delivered, Settled, Defaulted
}
struct OrderData {
bytes32 supplierId;
bytes32 buyerId;
uint256 notional;
uint64 createdAt;
uint64 deadline;
OrderState state;
bytes32 latestAttestationHash;
uint16 fulfillmentScoreBps;
}Transitions are gated by onlyAuthorized — caller and current state both checked.
Industry spool
- Sector liquidity pools (Auto / Pharma / Electronics).
- ERC-4626-style share accounting with inflation protections.
- Senior / junior tranches with subordination invariant after losses.
Policy engine
struct Policy {
address target;
bytes4 selector;
uint256 maxValue;
uint64 validAfter;
uint64 validUntil;
bool enabled;
}Empty allowlist ⇒ nobody authorized. Policies are upgraded via timelocked governance.
Score registry
Stores latest attested score fields per orderId and oracle operational state.
Addresses
Release channels
Canonical addresses ship per network in the monorepo deployments/ folder and are mirrored in SDK constants. Do not hardcode from screenshots.