-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopencode.json
More file actions
106 lines (106 loc) · 2.8 KB
/
opencode.json
File metadata and controls
106 lines (106 loc) · 2.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"name": "DeFi Agent",
"description": "Intelligent DeFi analysis and interaction agent",
"version": "0.1.0",
"author": "Laplace Finance",
"requirements": {
"python": "^3.8",
"nodejs": ">=16.0.0"
},
"commands": {
"check-liquidity": {
"description": "Analyze liquidity pools across DeFi protocols",
"file": ".opencode/commands/check-liquidity.md"
},
"analyze-yield": {
"description": "Find optimal yield farming opportunities",
"file": ".opencode/commands/analyze-yield.md"
},
"monitor-positions": {
"description": "Track and analyze portfolio positions",
"file": ".opencode/commands/monitor-positions.md"
},
"execute-swap": {
"description": "Simulate and analyze token swaps",
"file": ".opencode/commands/execute-swap.md"
}
},
"tools": {
"blockchain": {
"module": "src.tools.blockchain",
"class": "BlockchainTool",
"description": "Blockchain interactions and data"
},
"defi_protocols": {
"module": "src.tools.defi_protocols",
"class": "DeFiProtocolsTool",
"description": "DeFi protocol integrations"
},
"price_feeds": {
"module": "src.tools.price_feeds",
"class": "PriceFeedsTool",
"description": "Token price data and analysis"
},
"analytics": {
"module": "src.tools.analytics",
"class": "AnalyticsTool",
"description": "Advanced DeFi analytics and reporting"
}
},
"agents": {
"config_file": "AGENTS.md",
"mock_mode": true,
"log_level": "INFO"
},
"settings": {
"default_slippage": 0.5,
"default_gas_price": "auto",
"risk_tolerance": "medium",
"preferred_protocols": ["uniswap", "curve", "aave", "compound"],
"cache_duration": 300,
"max_results": 100
},
"networks": {
"ethereum": {
"chain_id": 1,
"rpc_url": "https://mainnet.infura.io/v3/YOUR_PROJECT_ID",
"explorer": "https://etherscan.io"
},
"polygon": {
"chain_id": 137,
"rpc_url": "https://polygon-rpc.com",
"explorer": "https://polygonscan.com"
}
},
"data_sources": {
"coingecko": {
"api_url": "https://api.coingecko.com/api/v3",
"rate_limit": 100
},
"defipulse": {
"api_url": "https://data-api.defipulse.com/api/v1",
"rate_limit": 50
},
"thegraph": {
"api_url": "https://api.thegraph.com/subgraphs/name",
"rate_limit": 1000
}
},
"features": {
"risk_analysis": true,
"impermanent_loss_tracking": true,
"arbitrage_detection": true,
"yield_optimization": true,
"portfolio_monitoring": true,
"gas_optimization": true,
"mev_protection": false
},
"ui": {
"theme": "dark",
"currency": "USD",
"precision": 6,
"table_format": "rich",
"show_warnings": true,
"highlight_risks": true
}
}