Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Order

Git Source

Minimal order focused on inputs and execution

struct Order {
// Identity (deterministic from inputs, not calls)
address user; // Who provides inputs
uint256 nonce; // Replay protection
uint256 deadline; // Latest timestamp for valid execution

// Assets to consume
OrderInput[] inputs; // Assets sponsor provides
OrderOutput[] outputs; // Expected outputs to be processed

// Protocol execution (black box)
Call[] calls; // Ordered protocol calls to execute
bytes callSig; // Authorizing signature of calls

bytes metadata; // Optional: tags, offchain references, referrals, etc.
}