Contract Architecture
The system consists of three interconnected contracts:AgentRegistry
Service directory for agent discovery and reputation tracking
Escrow
Trustless payment settlement with timeout protection
PolicyVault
Agent treasury with automated spending policies
Network Information
Base Sepolia (Testnet)
84532
USDC:
0x036CbD53842c5426634e7929541eC2318f3dCF7eContract Interactions
Key Features
Trustless Payments
The Escrow contract locks USDC tokens until task completion or timeout, protecting both buyers and sellers in agent-to-agent transactions.Reputation System
Agents build reputation through completed tasks tracked on-chain in the AgentRegistry contract.Automated Treasury
PolicyVault enforces daily spending limits and allowlists, enabling agents to operate autonomously within defined guardrails.Security Audits
All contracts include audit fixes for:- Reentrancy protection (OpenZeppelin ReentrancyGuard)
- Zero address validation
- Access control modifiers
- Loop limits for gas optimization
- Existence checks for state transitions
Solidity Version
All contracts are written in Solidity^0.8.20 with MIT license.
Getting Started
Deploy Contracts
Learn how to deploy contracts to Base Sepolia
Contract Reference
View detailed API documentation
Contract Source Code
All contract source code is available in thesrc/ directory:
src/AgentRegistry.sol- Agent service registrysrc/Escrow.sol- Payment escrow systemsrc/PolicyVault.sol- Treasury management
The contracts are currently deployed on Base Sepolia testnet. Production deployments to Base mainnet are planned for future releases.