Complexity: Hard (200)
Description
app/onchain/contracts/aid_escrow/src/lib.rs exposes more than forty public entry points
covering admin transfer, versioning and migration, distributors, configuration, layered pausing,
funding, package lifecycle, Merkle proof claims, surplus withdrawal, aggregates, and delegates. The
existing contract documents cover events, gas profiling, reconciliation, and boundary validation, but
no document describes the callable interface itself, so integrators must read Rust source to learn
what a function does or who may call it.
Acceptance Criteria
- Every public entry point is documented with parameters, return type, and errors
- Authorization requirements are stated per function, including admin and distributor roles
- Interactions with global, action, and campaign pause state are described
- The two overlapping expiry extension functions are documented with guidance on which to use
- Events emitted by each state-changing function are cross-referenced to
EVENTS.md
Complexity: Hard (200)
Description
app/onchain/contracts/aid_escrow/src/lib.rsexposes more than forty public entry pointscovering admin transfer, versioning and migration, distributors, configuration, layered pausing,
funding, package lifecycle, Merkle proof claims, surplus withdrawal, aggregates, and delegates. The
existing contract documents cover events, gas profiling, reconciliation, and boundary validation, but
no document describes the callable interface itself, so integrators must read Rust source to learn
what a function does or who may call it.
Acceptance Criteria
EVENTS.md