Enterprise-Grade Autonomous DeFi Agent Platform - Describe your trading strategy in plain English, and let AI-powered multi-agent swarms execute it automatically on-chain.
This project is optimized for 5 concurrent hackathon tracks:
- ๐ฅ 0G - Best Autonomous Agents & Swarms ($7,500) - Multi-agent coordination with persistent 0G Storage memory
- ๐ฅ 0G - Best Agent Framework ($7,500) - Modular agent framework with iNFT tokenization
- ๐ KeeperHub - Best Use ($4,500) - Reliable execution layer for trades
- ๐ฆ Uniswap Foundation ($5,000) - Advanced API integration + FEEDBACK.md
- ๐ค ENS - Best Integration ($2,500) - Agent discovery via ENS domains
Total Prize Pool: $35,000+
Sentinel is an autonomous DeFi agent platform that enables users to create trading strategies using natural language. The AI-powered system parses user intent, validates routes via Uniswap, and executes trades automatically when market conditions are met.
- Natural Language Strategy Creation: Describe your trading strategy in plain English
- AI-Powered Parsing: 0G Network's decentralized LLM interprets your intent
- Autonomous Execution: KeeperHub monitors conditions 24/7 and executes when triggered
- Real-Time Monitoring: Live activity feed with WebSocket updates
- Multi-Agent Coordination: Specialized agents work together for optimal execution
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Sentinel Multi-Agent System โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Frontend (Next.js) โ โ
โ โ โข Agent Dashboard โข Strategy Builder โ โ
โ โ โข Real-time Activity Feed โข ENS Discovery โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โฒ โ
โ โ WebSocket โ
โ โผ โ
โ โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโ โ
โ โ Architect โ Executor โ Monitor โ Coordinator โ โ
โ โ Agent ๐๏ธ โ Agent โ๏ธ โ Agent ๐ โ โ โ
โ โ โ โ โ โ โ
โ โ โข Parse โ โข Execute โ โข Watch โ โข Swarm State โ โ
โ โ strategies โ trades โ prices โ โข Coordination โ โ
โ โ โข Validate โ โข Gas opts โ โข Trigger โ โข Analytics โ โ
โ โ routes โ โข Slippage โ conditions โ โ โ
โ โ โข Risk โ control โ โข Alerts โ โ โ
โ โ assessment โ โ โ โ โ
โ โโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโ โ
โ โฒ โฒ โฒ โฒ โ
โ โ โ โ โ โ
โ โโโโโโโฌโโโโโโดโโโโโโฌโโโโโโโดโโโโโโฌโโโโโโโ โ
โ โ โ โ โ
โ โผ โผ โผ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ 0G Storage (Persistent Memory Layer) โ โ
โ โ โข Agent state & execution history โ โ
โ โ โข Strategy library & coordination state โ โ
โ โ โข iNFT metadata & intelligence โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โฒ โฒ โฒ โ
โ โ โ โ โ
โ โโโโโโโดโโโโฌโโโโโโโโดโโโฌโโโโโโโโโโดโโโโโโโ โ
โ โ โ โ โ โ
โ โผ โผ โผ โผ โ
โ โโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โ
โ โ Uniswap โ โ iNFT โ โ ENS โ โ KeeperHub โ โ
โ โ V3 โ โ (ERC- โ โ โ โ (Execution โ โ
โ โ Router โ โ 7857) โ โ โ โ Layer) โ โ
โ โโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โ
โ โ โ โ โ โ
โ โโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโโโโโโโ โ
โ โ โ
โ โผ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ 0G Compute Network (Inference) โ โ
โ โ โข Strategy parsing & NLP โ โ
โ โ โข Risk scoring & route optimization โ โ
โ โ โข Verifiable on-chain computation โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
On-Chain: Ethereum Sepolia Testnet & 0G Chain (EVM-compatible)
- Role: Strategy parser and route validator
- Responsibilities:
- Parse natural language trading strategies using 0G Compute inference
- Validate Uniswap V3 trading routes
- Calculate gas estimates and price impact
- Risk assessment and confidence scoring
- Memory: Persistent on 0G Storage + iNFT metadata
- Identity: ENS domain (e.g.,
architect.sentinelswap.eth)
- Role: Trade execution and optimization
- Responsibilities:
- Execute validated swap routes on-chain
- Gas optimization via KeeperHub
- Slippage control and MEV protection
- Transaction lifecycle management
- Memory: Execution history on 0G Storage
- Identity: ENS domain (e.g.,
executor.sentinelswap.eth)
- Role: Continuous market observation
- Responsibilities:
- Watch price conditions using Uniswap oracle data
- Trigger swaps when conditions are met
- Monitor transaction status and confirmations
- Alert on anomalies (MEV, failed transactions, etc.)
- Memory: Condition history on 0G Storage
- Identity: ENS domain (e.g.,
monitor.sentinelswap.eth)
Each agent is minted as an NFT with:
- Embedded intelligence (model hash + capabilities)
- Persistent memory pointer (0G Storage KV)
- Ownership and royalty tracking
- Transferable autonomy
- Node.js 18+
- npm or pnpm
# Clone the repository
git clone https://github.com/your-username/sentinelswap.git
cd sentinelswap
# Install backend dependencies
cd backend
npm install
# Install frontend dependencies
cd ../frontend
npm installCreate backend/.env:
PORT=3001
DATABASE_URL=./sentinelswap.db# Terminal 1: Start backend
cd backend
npm run dev
# Terminal 2: Start frontend
cd frontend
npm run devOpen http://localhost:3000 in your browser.
"Buy 1 ETH with USDC when price drops below $2,400,
execute within 5 minutes if possible, max 1% slippage"
- Uses 0G Compute Network for NLP inference
- Extracts: trigger condition, swap parameters, risk constraints
- Validates liquidity on Uniswap V3
- Calculates gas cost + price impact
- Returns confidence score
- Architect persists strategy in 0G Storage KV
- Strategy becomes part of agent's persistent memory
- Other agents access via shared memory layer
- Package strategy + agent intelligence as ERC-7857 NFT
- Store encrypted strategy on 0G Storage
- NFT can be traded/composed with other agent NFTs
- Polls Uniswap oracle every 30 seconds
- Checks if trigger price is met
- Uses 0G Storage to track monitoring state
- When trigger fires, Executor takes action
- Uses KeeperHub for reliable execution
- Optimizes gas via batch operations
- Stores execution result in 0G Storage
- All activity flows to frontend via WebSocket
- ENS resolves agent names for display
- History query available for analytics
- Distributed Decision Making: Architect + Monitor + Executor collaborate
- Persistent Memory: 0G Storage as shared knowledge base
- Real-Time Coordination: WebSocket updates + on-chain events
- ERC-7857 Standard: Agents as first-class on-chain assets
- Embedded Intelligence: Model checkpoints stored on 0G
- Transferable Autonomy: Sell/trade your trained agents
- 0G Chain Deployment: EVM-compatible, scalable agent hosting
- KeeperHub Reliability: 24/7 execution guarantees + MEV protection
- ENS Identity: Agent discovery + reputation via .eth domains
- Uniswap Integration: Real liquidity, real prices, real execution
- REST API: All agent operations via HTTP
- WebSocket Feed: Real-time activity streaming
- Type-Safe: Full TypeScript support
- Open Source: Build on top of our framework
- Next.js 14 - React framework
- Tailwind CSS - Styling
- Lucide Icons - Icon library
- WebSocket - Real-time updates
- Express.js - API server
- SQLite - Database (via better-sqlite3)
- TypeScript - Type safety
- ethers.js v6 - Blockchain interaction
- 0G Storage - Persistent agent memory (KV + Log)
- 0G Compute Network - Strategy inference & validation
- 0G Chain - EVM-compatible deployment target
- KeeperHub MCP - Reliable trade execution
- ENS - Agent identity & discovery
- Uniswap V3 - Liquidity protocol & routing
- iNFT (ERC-7857) - Agent tokenization
- Sepolia Testnet - Development & testing
- 0G Chain - Production deployment
POST /api/strategies/parse- Parse natural language to strategyPOST /api/strategies/deploy- Deploy a strategyGET /api/strategies- List all strategiesPATCH /api/strategies/:id/pause- Pause strategyPATCH /api/strategies/:id/resume- Resume strategyDELETE /api/strategies/:id- Delete strategyPOST /api/strategies/:id/execute- Execute strategy manually
GET /api/price- Current ETH priceGET /api/quote- Get swap quote
GET /api/history- Transaction history
GET /api/agent/state- Agent statusPOST /api/agent/start- Start agentPOST /api/agent/stop- Stop agent
POST /api/swarm/initialize- Initialize 3-agent swarmGET /api/swarm/state- Get real-time coordination statePOST /api/swarm/parse-strategy- Architect parses strategyPOST /api/swarm/execute-trade- Executor runs tradePOST /api/swarm/monitor- Monitor checks conditions
POST /api/inft/mint- Mint agent as ERC-7857 NFTGET /api/inft/agents- List all minted agents
GET /api/ens/discover/:role- Find agents by roleGET /api/ens/resolve/:domain- Resolve ENS domain to agentGET /api/ens/agents- List all registered agents
GET /api/storage/agent-memory/:agentId- Get persistent agent stateGET /api/storage/all-strategies- Query all stored strategies
- โ Multi-agent swarm system (Architect, Executor, Monitor)
- โ Natural language strategy parsing
- โ Uniswap V3 route validation & optimization
- โ Real-time price monitoring via oracle
- โ Autonomous trade execution
- โ Transaction history with WebSocket streaming
- โ Strategy pause/resume/delete
- โ 0G Storage persistent memory layer
- โ iNFT agent tokenization (ERC-7857)
- โ ENS-based agent discovery & identity
- โ Swarm coordination & state tracking
- โ KeeperHub integration (MCP server ready)
- โ 0G Compute inference support
- โ REST API for all operations
- โ WebSocket real-time updates
- โ Full TypeScript type safety
- โ Comprehensive FEEDBACK.md (Uniswap track)
- โ Docker-ready backend
- โ Production-grade error handling
- Multi-chain support (Arbitrum, Optimism, Base, 0G)
- Cross-chain strategy coordination
- Liquidity aggregation across DEXs
- Time-based & volume-based triggers
- Advanced order types (limit, stop-loss, DCA)
- Portfolio tracking & rebalancing
- Strategy templates & composability
- Strategy sharing marketplace
- Agent reputation system
- DAO-governed parameter tuning
- Agent breeding/evolution via iNFT
- Fine-tuned models per agent role
- Reinforcement learning from execution results
- Cross-agent knowledge transfer
- Verifiable computation proofs
- Multiple specialized agents (Architect, Executor, Monitor)
- 0G Storage integration for persistent memory
- Swarm coordination via shared state
- Public GitHub with README + setup
- Demo video (to be recorded)
- Live demo link (localhost:3000)
- Architecture diagram (included in README)
- Modular agent architecture
- 0G Storage/Compute SDK integration
- Example agents (Architect, Executor, Monitor)
- Clear framework patterns for extensibility
- Full documentation + TypeScript types
- Advanced Uniswap V3 API integration
- Route optimization & gas estimation
- Real Sepolia testnet testing
- FEEDBACK.md with honest builder feedback
- Working demo link
- GitHub repo with setup instructions
- MCP server integration (ready)
- Reliable execution layer support
- Gas optimization via batch operations
- Retry logic + error handling
- Demo covering execution reliability
- Agent identity via ENS domains
- ENS-based agent discovery
- Text record storage for metadata
- Working demo with resolution
- Functional implementation (no hardcodes)
npm install
npm run dev
# Opens http://localhost:3000docker build -t sentinelswap .
docker run -p 3001:3001 sentinelswap# Deploy to 0G testnet
npm run deploy:0g-testnet
# Deploy to 0G mainnet
npm run deploy:0g-mainnetWe welcome contributions! Please:
- Fork the repository
- Create a feature branch
- Submit a PR with clear description
- Add tests for new features
MIT License
Built with โค๏ธ for the Hackathon