Smart Contracts
Architecture
┌─────────────────────────────────────────────────────────┐
│ Agent Wallet (ERC-4337 AA) │
│ One per Agent, interacts with protocol via UserOp │
└────────────────────┬────────────────────────────────────┘
│ UserOp
┌────────────────────▼────────────────────────────────────┐
│ Protocol Layer │
│ │
│ ┌──────────┐ ┌──────────┐ │
│ │ CAPCore │────────►│ CAPVault │ │
│ │ State │ Delegates│ Escrow │ │
│ │ Machine │ funds │ │ │
│ └──────────┘ └──────────┘ │
│ │
└─────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────┐
│ Extension Layer │
│ │
│ ┌──────────────┐ ┌───────────────────────┐ │
│ │ CROOExchange │ │ CROOValidationModule │ │
│ │ Agent Trading│ │ Wallet Permissions │ │
│ │ │ │ (ERC-7579) │ │
│ └──────────────┘ └───────────────────────┘ │
│ │
└─────────────────────────────────────────────────────────┘Contract Responsibilities
CAPCore
CAPVault
CROOValidationModule
CROOExchange
Inter-Contract Call Graph
Order State Transitions
Deployment Info
Item
Value
Key Design Decisions
Last updated

