Permission-Safe Arbitrum Agent Platform
One permission. Infinite trades. Zero trust required.
ArbiShark is the first production-ready agent platform for Arbitrum that solves the trust problem in autonomous trading. Users grant permission once with cryptographically enforced daily limitsβno unlimited approvals, no popup fatigue, no blind trust.
# 1. Clone and setup
git clone https://github.com/dinxsh/arbishark
cd arbishark
cp .env.example .env # Add your PRIVATE_KEY
# 2. Deploy contract
./deploy.sh # or deploy.ps1 on Windows
# 3. Run agent
cargo run --releaseTraditional trading bots require either:
- β Unlimited token approvals (dangerous)
- β Constant wallet popups (annoying)
- β Blind trust (risky)
ERC-7715 Advanced Permissions + Envio Safety Monitoring
graph LR
A[User] -->|Grant $10/day| B[MetaMask]
B -->|Cryptographic Enforcement| C[ArbiShark]
C -->|Query Markets| D[Envio HyperIndex]
C -->|Execute Trades| E[Arbitrum]
D -->|Index Events| E
style B fill:#f9a825
style C fill:#4caf50
style D fill:#00bcd4
Result: Agent trades autonomously within bounds. User maintains control. No unlimited approvals.
graph TB
subgraph "User Layer"
User[User] -->|1. Grant Permission| MM[MetaMask Wallet]
end
subgraph "Agent Core"
MM -->|2. Daily Limit| Agent[ArbiShark Agent]
Agent --> Risk[Risk Manager]
Agent --> Metrics[Metrics Collector]
Agent --> Plugins[Plugin System]
end
subgraph "Data Layer"
Agent -->|3. Query| Envio[Envio HyperIndex]
Envio -->|Health Check| Agent
end
subgraph "Execution Layer"
Agent -->|4. Execute| Arb[Arbitrum Sepolia]
Arb -->|Events| Envio
end
subgraph "Monitoring"
Metrics -->|WebSocket| Dashboard[Live Dashboard]
end
style MM fill:#f9a825
style Agent fill:#4caf50
style Envio fill:#00bcd4
style Dashboard fill:#9c27b0
Cryptographically enforced daily spending limits. No trust required.
[permission]
daily_limit_usdc = 10.0
duration_days = 30
token = "USDC"Agent auto-halts if data becomes stale (>5s delay).
if envio_delay > 5000ms {
enter_safe_mode();
}- Drawdown limits (20% max)
- Daily loss caps ($50)
- Volatility monitoring
- Circuit breaker
Extensible architecture for custom strategies.
plugin_manager.register(Box::new(SentimentPlugin::new()));
plugin_manager.register(Box::new(NotificationPlugin::new()));Live metrics with WebSocket updates.
| Component | Technology |
|---|---|
| Language | Rust |
| Blockchain | Arbitrum Sepolia/One |
| Permissions | ERC-7715 (MetaMask) |
| Indexing | Envio HyperIndex |
| Contracts | Solidity + Foundry |
| API | Warp (WebSocket) |
| Monitoring | Prometheus |
arbishark/
βββ src/
β βββ metrics.rs # Production metrics
β βββ risk.rs # Risk management
β βββ plugins.rs # Plugin system
β βββ market_client.rs # Arbitrum integration
βββ contracts/
β βββ DemoMarket.sol # Arbitrum Sepolia contract
βββ envio/
β βββ config.yaml # HyperIndex config
β βββ src/EventHandlers.ts
βββ cli/ # Agent generator
βββ dashboard/ # Real-time UI
βββ docs/ # 12 comprehensive docs
# Install CLI
npm install -g arbishark-cli
# Generate new agent
arbishark create my-dex-agent --protocol dex --chain arbitrum-one
# Output: Complete project in 30 seconds- β DEX Arbitrage (Uniswap, Camelot, SushiSwap)
- β NFT Sniping (OpenSea, Blur)
- β Lending Optimization (Aave, Compound)
- β Prediction Markets (Custom)
See: DEVELOPER_GUIDE.md for 3 detailed examples
βββββββββββββββββββββββββββββββββββ
β ArbiShark Metrics β
βββββββββββββββββββββββββββββββββββ€
β Win Rate: 73.2% β
β Avg Profit: $0.36/trade β
β Gas Saved: 98.8% vs L1 β
β Envio Latency: 45ms β
β Uptime: 99.7% β
βββββββββββββββββββββββββββββββββββ
| Feature | Protection |
|---|---|
| Permission Limits | Max $10/day (configurable) |
| Data Freshness | Auto-halt if Envio >5s delay |
| Risk Management | Drawdown, volatility, position limits |
| Circuit Breaker | Emergency stop |
| Health Monitoring | Real-time metrics |
- ARCHITECTURE.md - System design with diagrams
- DEVELOPER_GUIDE.md - Fork examples
- HACKATHON_SUBMISSION.md - Complete submission
- DEPLOYMENT.md - Contract deployment
Why ArbiShark Wins:
- Only Template - Reusable for any Arbitrum protocol
- Production-Ready - Risk management, monitoring, plugins
- Arbitrum-Native - Stylus-ready, Orbit-compatible
- Developer-First - CLI generator, comprehensive docs
- Safety Innovation - ERC-7715 + Envio = safe automation
ArbiShark is open-source (MIT License). Contributions welcome!
# Fork and improve
git clone https://github.com/dinxsh/arbishark
# Make changes
# Submit PRArbiShark: Building safe, autonomous agents for Arbitrum π¦
One permission. Infinite trades. Zero trust required.