⚙️Smart Contracts
Contract Overview
┌─────────────────────────────────────┐
│ Yuki402 Ecosystem │
├─────────────────────────────────────┤
│ User Interface (Next.js App) │
├─────────────────────────────────────┤
│ AI Agent (Google Gemini) │
├─────────────────────────────────────┤
│ Smart Contracts │
│ ┌───────────────────────────────┐ │
│ │ PaymentGateway.sol │ │
│ │ - Payment processing │ │
│ │ - Escrow & release │ │
│ └───────────────────────────────┘ │
│ ┌───────────────────────────────┐ │
│ │ SpendingLimits.sol │ │
│ │ - Limit enforcement │ │
│ │ - Spending tracking │ │
│ └───────────────────────────────┘ │
│ ┌───────────────────────────────┐ │
│ │ X402Registry.sol │ │
│ │ - Service discovery │ │
│ │ - Provider registry │ │
│ └───────────────────────────────┘ │
├─────────────────────────────────────┤
│ Blockchain (Ethereum/Solana/etc) │
└─────────────────────────────────────┘1. PaymentGateway.sol
Purpose
Key Features
Core Functions
Data Structures
Events
2. SpendingLimits.sol
Purpose
Key Features
Core Functions
Data Structures
Events
3. X402Registry.sol
Purpose
Key Features
Core Functions
Data Structures
Events
Contract Interactions
Payment Flow
Limit Enforcement Flow
Security Features
Access Control
Input Validation
State Management
Gas Optimization
Efficient Storage
Batch Operations
Upgradeability
Current Status
Future Plans
Testing
Deployment
Networks Supported
Deployment Process
Contract Addresses
Mainnet
Testnet (Sepolia)
Audits
Status
Auditors
Source Code
Learn More
Last updated
