ERC-8183 — job escrow with evaluator attestation for trustless agent-to-agent commerce.
- hook-profiles.md — Recommended hook profiles: A (Simple Policy), B (Advanced Escrow), C (Experimental).
| Contract | Description |
|---|---|
| AgenticCommerceHooked.sol | Hookable variant of the core protocol. Same lifecycle with an optional hook address per job and optParams on all hookable functions. claimRefund is deliberately not hookable. |
| IACPHook.sol | Interface all hooks must implement: beforeAction and afterAction. |
| BaseACPHook.sol | Abstract base that routes beforeAction/afterAction to named virtual functions (_preFund, _postComplete, etc.). Inherit this and override only what you need. |
| Contract | Profile | Description |
|---|---|---|
| BiddingHook.sol | A — Simple Policy | Off-chain signed bidding for provider selection. Providers sign bid commitments; the hook verifies the winning signature on-chain via setProvider. Zero direct external calls — everything flows through core → hook callbacks. |
| FundTransferHook.sol | B — Advanced Escrow | Two-phase fund transfer for token conversion/bridging jobs. Client capital flows to provider at fund; provider deposits output tokens at submit; buyer receives them at complete. |
- Inherit
BaseACPHookand override only the callbacks you need. - See CONTRIBUTING.md for full guidelines.
Contributions, feedback, and discussion are welcome - please see CONTRIBUTING.md for guidelines on how to get started.
MIT