-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
278 lines (217 loc) · 8.12 KB
/
Copy path.env.example
File metadata and controls
278 lines (217 loc) · 8.12 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
# Essential Network RPC URLs
BASE_SEPOLIA_RPC_URL=https://base-sepolia.example.com/your-api-endpoint
SEPOLIA_RPC_URL=https://ethereum-sepolia.example.com/your-api-endpoint
SOLANA_DEVNET_RPC_URL=https://solana-testnet.example.com/your-api-endpoint
MAINNET_RPC_URL=https://eth-mainnet.example.com/your-api-endpoint
GOERLI_RPC_URL=https://eth-goerli.example.com/your-api-endpoint
MUMBAI_RPC_URL=https://polygon-mumbai.example.com/your-api-endpoint
AVALANCHE_RPC_URL=https://api.avax.network/ext/bc/C/rpc # Avalanche C-Chain
BASE_MAINNET_RPC_URL=https://mainnet.base.org
OPTIMISM_MAINNET_RPC_URL=https://mainnet.optimism.io
OPTIMISM_SEPOLIA_RPC_URL=https://sepolia.optimism.io
SOLANA_MAINNET_RPC_URL=https://api.mainnet-beta.solana.com
# Chain IDs
BASE_SEPOLIA_CHAIN_ID=84532
SEPOLIA_CHAIN_ID=11155111
SOLANA_CHAIN_ID=101
# API Keys
ETHERSCAN_API_KEY=replace_with_your_api_key
# Private Keys (Replace with actual keys, keep 0x prefix for Ethereum keys)
# WARNING: Never commit files containing real private keys to version control!
BASE_SEPOLIA_PRIVATE_KEY=replace_with_your_private_key
SEPOLIA_PRIVATE_KEY=replace_with_your_private_key
SOLANA_PRIVATE_KEY=replace_with_your_private_key
ETH_PRIVATE_KEY=your_private_key_here
# Bridge Addresses (These will be filled after deployment)
BASE_SEPOLIA_BRIDGE_ADDRESS=
SEPOLIA_BRIDGE_ADDRESS=
SOLANA_BRIDGE_PROGRAM_ID=
# Test Token Addresses (These will be filled after deployment)
BASE_SEPOLIA_TEST_TOKEN_ADDRESS=
SEPOLIA_TEST_TOKEN_ADDRESS=
# Bridge Configuration
GAS_LIMIT=300000
GAS_PRICE=1000000000
MIN_CONFIRMATIONS=1
POLLING_INTERVAL=5000
TEST_AMOUNT=1000000000
# Bot Tokens (Replace with actual tokens)
# WARNING: Never commit files containing real tokens to version control!
DISCORD_TOKEN=replace_with_your_discord_token
TELEGRAM_TOKEN=replace_with_your_telegram_token
# Twitter API Keys
TWITTER_API_KEY=your_twitter_api_key
TWITTER_API_SECRET=your_twitter_api_secret
TWITTER_ACCESS_TOKEN=your_twitter_access_token
TWITTER_ACCESS_SECRET=your_twitter_access_secret
# Solana Configuration
SOLANA_RPC_URL=https://api.mainnet-beta.solana.com
PRIVATE_KEY=replace_with_your_wallet_private_key
# DeFi Settings
SWAP_SLIPPAGE=0.005 # 0.5%
MAX_GAS_PRICE=100 # in gwei
MIN_PROFIT_THRESHOLD=0.01 # 1%
LP_FEE_PERCENT=0.003 # 0.3%
# Platform
LOG_LEVEL=info
PORT=3000
METRICS_PORT=9090
ENABLE_SWAGGER=true
# Agent Settings
MAX_SWARM_SIZE=100
DEFAULT_SWARM_SIZE=30
MAX_AGENTS=5
MIN_AGENTS=2
DEFAULT_MODEL=gpt-4
# Optional: Network Configuration
NETWORK=mainnet-beta
# General wallet private key
WALLET_PRIVATE_KEY=replace_with_your_wallet_private_key
# AI Service API Keys (OpenAI, Anthropic, etc.)
OPENAI_API_KEY=your_openai_key_here
ANTHROPIC_API_KEY=your_anthropic_key_here
# Database Connection (if applicable)
DB_CONNECTION_STRING=replace_with_your_db_connection_string
# Security Settings
ENCRYPTION_KEY=replace_with_your_encryption_key
JWT_SECRET=replace_with_your_jwt_secret
# Web3 Settings
INFURA_PROJECT_ID=replace_with_your_infura_project_id
ALCHEMY_API_KEY=replace_with_your_alchemy_api_key
# Monitoring and Logging
SENTRY_DSN=replace_with_your_sentry_dsn
# API Keys - Replace with your own keys
INFURA_API_KEY=YOUR_INFURA_API_KEY
COINMARKETCAP_API_KEY=YOUR_COINMARKETCAP_API_KEY
MORALIS_API_KEY=YOUR_MORALIS_API_KEY
# JuliaOS Framework Environment Variables Example
# Copy this file to .env and replace placeholder values with your actual keys
# LLM API Keys (Required for AI functionality)
# ---------------------------------------------
# OpenAI API Key - Get from https://platform.openai.com/api-keys
OPENAI_API_KEY=your_openai_key_here
# Anthropic API Key - Get from https://console.anthropic.com/settings/keys
ANTHROPIC_API_KEY=your_anthropic_key_here
# Blockchain RPC URLs (Required for blockchain functionality)
# ----------------------------------------------------------
# Ethereum Mainnet RPC URL (from providers like Infura, Alchemy, etc.)
ETHEREUM_RPC_URL=your_ethereum_mainnet_rpc_url_here
# Ethereum Testnet (Sepolia) RPC URL
ETHEREUM_SEPOLIA_RPC_URL=your_ethereum_sepolia_rpc_url_here
# Polygon Mainnet RPC URL
POLYGON_RPC_URL=your_polygon_mainnet_rpc_url_here
# Solana Mainnet RPC URL
SOLANA_RPC_URL=https://api.mainnet-beta.solana.com
# Julia Bridge Settings
# ------------------
# Whether to enable the Julia bridge (true/false)
ENABLE_JULIA_BRIDGE=true
# Julia server host and ports
JULIA_BRIDGE_HOST=localhost
JULIA_BRIDGE_HTTP_PORT=8080
JULIA_BRIDGE_WS_PORT=8081
# Whether to automatically start the Julia server (true/false)
JULIA_BRIDGE_AUTO_START=true
# API key for Julia bridge authentication (set to a random string)
JULIA_BRIDGE_API_KEY=random_secure_string_here
# Agent and Swarm Settings
# ----------------------
# Maximum number of agents allowed in a swarm
MAX_AGENTS=5
# Minimum number of agents required for a swarm
MIN_AGENTS=2
# Default LLM model to use for agents
DEFAULT_MODEL=gpt-4
# DeFi Settings
# -----------
# Default slippage tolerance for swaps (0.005 = 0.5%)
SWAP_SLIPPAGE=0.005
# Maximum gas price to pay (in GWEI)
MAX_GAS_PRICE=100
# Minimum profit threshold for arbitrage (in base token)
MIN_PROFIT_THRESHOLD=0.01
# Default LP fee percent (0.003 = 0.3%)
LP_FEE_PERCENT=0.003
# System Settings
# -------------
# Log level (debug, info, warn, error)
LOG_LEVEL=info
# Whether to use simulation mode instead of real API calls (true/false)
SIMULATION_MODE=false
# Note: For a more detailed configuration example, see cli/.env.example
# J3OS Framework Configuration
# Copy this file to .env and fill in your values
# Node environment
NODE_ENV=development
# RPC URLs for various chains
# Ethereum
ETH_RPC_URL=https://mainnet.infura.io/v3/your-infura-project-id
ETH_TESTNET_RPC_URL=https://goerli.infura.io/v3/your-infura-project-id
# Polygon
POLYGON_TESTNET_RPC_URL=https://mumbai.polygonscan.com
# Binance Smart Chain
BSC_RPC_URL=your_bsc_mainnet_rpc_url_here
BSC_TESTNET_RPC_URL=your_bsc_testnet_rpc_url_here
# Arbitrum
ARBITRUM_RPC_URL=your_arbitrum_mainnet_rpc_url_here
ARBITRUM_TESTNET_RPC_URL=https://goerli-rollup.arbitrum.io/rpc
# Optimism
OPTIMISM_RPC_URL=your_optimism_mainnet_rpc_url_here
OPTIMISM_TESTNET_RPC_URL=https://goerli.optimism.io
# Solana
SOLANA_TESTNET_RPC_URL=https://api.testnet.solana.com
# For Quicknode users (example with your node ID)
# SOLANA_QUICKNODE_URL=https://solana-mainnet.g.alchemy.com/v2/YOUR_API_KEY
# LLM API Keys
OPENAI_API_KEY=your-openai-api-key
ANTHROPIC_API_KEY=your-anthropic-api-key
COHERE_API_KEY=your-cohere-api-key
# ChainLink Data Feeds
CHAINLINK_API_KEY=your_chainlink_key_here
# Market Data APIs
COINGECKO_API_KEY=your-coingecko-api-key
DEFILLAMA_API_KEY=your-defillama-api-key
# Julia Backend Settings
JULIA_SERVER_URL=http://localhost:8052
JULIA_PATH=/path/to/julia
# Security Settings
# 32-byte encryption key for sensitive data (must be 64 hex characters)
ENCRYPTION_KEY=0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
# Database Settings (if using database storage)
DB_HOST=localhost
DB_PORT=5432
DB_NAME=juliaos
DB_USER=postgres
DB_PASSWORD=postgres
# IPFS Gateway (if using IPFS storage)
IPFS_GATEWAY=https://ipfs.io/ipfs/
IPFS_API_URL=http://localhost:5001
IPFS_API_KEY=your-ipfs-api-key
# Explorer API Keys (for transaction verification)
ETHERSCAN_API_KEY=your-etherscan-api-key
POLYGONSCAN_API_KEY=your-polygonscan-api-key
BSCSCAN_API_KEY=your-bscscan-api-key
SOLSCAN_API_KEY=your-solscan-api-key
# Logging
LOG_LEVEL=info
LOG_FORMAT=json
LOG_FILE=logs/juliaos.log
# Trading Settings
DEFAULT_SLIPPAGE_TOLERANCE=0.5
GAS_PRICE_BUFFER=1.2
MAX_POSITION_SIZE=0.1
PRICE_VALIDATION_ENABLED=true
MAX_PRICE_DEVIATION=0.03
# Add/Update URLs needed by PrivateKeyProvider
ETHEREUM_RPC_URL=your_ethereum_mainnet_rpc_url_here
ETHEREUM_SEPOLIA_RPC_URL=your_ethereum_sepolia_rpc_url_here
POLYGON_RPC_URL=your_polygon_mainnet_rpc_url_here
MUMBAI_RPC_URL=your_polygon_mumbai_rpc_url_here
OPTIMISM_RPC_URL=your_optimism_mainnet_rpc_url_here
OPTIMISM_GOERLI_RPC_URL=your_optimism_goerli_rpc_url_here
ARBITRUM_RPC_URL=your_arbitrum_mainnet_rpc_url_here
ARBITRUM_GOERLI_RPC_URL=your_arbitrum_goerli_rpc_url_here
BSC_RPC_URL=your_bsc_mainnet_rpc_url_here
BSC_TESTNET_RPC_URL=your_bsc_testnet_rpc_url_here
BASE_RPC_URL=your_base_mainnet_rpc_url_here
BASE_GOERLI_RPC_URL=your_base_goerli_rpc_url_here