-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
303 lines (239 loc) · 10.1 KB
/
.env.example
File metadata and controls
303 lines (239 loc) · 10.1 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
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
# ==============================================
# RELAY CORE - Environment Configuration
# ==============================================
# Copy this file to .env and fill in your values
# Last Updated: 2026-01-19
# ==============================================
# SUPABASE CONFIGURATION (REQUIRED)
# ==============================================
# Get these from: https://supabase.com/dashboard/project/_/settings/api
# Frontend (Vite) - Public keys safe to expose
VITE_SUPABASE_URL=https://your-project-id.supabase.co
VITE_SUPABASE_ANON_KEY=your-anon-key-here
# Backend - Service role key (KEEP SECRET!)
SUPABASE_URL=https://your-project-id.supabase.co
SUPABASE_SERVICE_ROLE_KEY=your-service-role-key-here
# ==============================================
# CRONOS NETWORK CONFIGURATION (REQUIRED)
# ==============================================
# Network Selection
# Options: testnet, mainnet
CRONOS_NETWORK=testnet
# RPC Endpoints
# Testnet: https://evm-t3.cronos.org
# Mainnet: https://evm.cronos.org
CRONOS_RPC_URL=https://evm-t3.cronos.org
CRONOS_RPC_PRIMARY=https://evm-t3.cronos.org
CRONOS_RPC_FALLBACK_1=https://cronos-testnet-3.crypto.org:8545
CRONOS_RPC_FALLBACK_2=
# Cronos zkEVM RPC (Chain ID: 388 mainnet, 240 testnet)
CRONOS_ZKEVM_RPC=https://testnet-zkevm.cronos.org
# Frontend RPC (for wallet connections)
VITE_CRONOS_RPC_URL=https://evm-t3.cronos.org
# ==============================================
# CRYPTO.COM DEVELOPER PLATFORM SDK (REQUIRED)
# ==============================================
# Get your API key from: https://developer.crypto.com/
# Single key works for ALL Cronos networks (EVM + zkEVM, testnet + mainnet)
DEVELOPER_PLATFORM_API_KEY=your-api-key-here
# Default network for SDK operations
# Options: cronos-evm-mainnet, cronos-evm-testnet, cronos-zkevm-mainnet, cronos-zkevm-testnet
CRONOS_DEFAULT_NETWORK=cronos-evm-testnet
# ==============================================
# CRONOS EXPLORER API KEYS (OPTIONAL)
# ==============================================
# For contract verification on block explorers
# Get keys from:
# - EVM: https://cronoscan.com/myapikey
# - zkEVM: https://explorer.zkevm.cronos.org
CRONOS_EXPLORER_API_KEY=
CRONOS_EXPLORER_API_KEY_TESTNET=
CRONOS_EXPLORER_API_KEY_MAINNET=
CRONOS_ZKEVM_API_KEY=
# ==============================================
# RELAY CORE WALLET CONFIGURATION (REQUIRED)
# ==============================================
# Wallet address that owns/operates the Relay Core service
# This is used for session management and escrow operations
WALLET_ADDRESS=0xYourRelayWalletAddress
# Private keys for signing operations (KEEP SECRET!)
# WARNING: Never use your personal wallet's private key
# Generate dedicated keys for each service
# For escrow agent operations
ESCROW_AGENT_PRIVATE_KEY=0xYourEscrowAgentPrivateKey
# For general wallet operations (fallback)
WALLET_PRIVATE_KEY=0xYourWalletPrivateKey
# For trade execution
EXECUTOR_PRIVATE_KEY=0xYourExecutorPrivateKey
# For contract deployment
DEPLOYER_PRIVATE_KEY=0xYourDeployerPrivateKey
# ==============================================
# CONTRACT ADDRESSES (REQUIRED)
# ==============================================
# ERC-8004 Registries (Cronos Testnet - Chain 338)
IDENTITY_REGISTRY_ADDRESS=0x4b697D8ABC0e3dA0086011222755d9029DBB9C43
REPUTATION_REGISTRY_ADDRESS=0xdaFC2fA590C5Ba88155a009660dC3b14A3651a67
VALIDATION_REGISTRY_ADDRESS=0x0483d030a1B1dA819dA08e2b73b01eFD28c67322
# Frontend versions (same addresses)
VITE_IDENTITY_REGISTRY_ADDRESS=0x4b697D8ABC0e3dA0086011222755d9029DBB9C43
VITE_REPUTATION_REGISTRY_ADDRESS=0xdaFC2fA590C5Ba88155a009660dC3b14A3651a67
VITE_VALIDATION_REGISTRY_ADDRESS=0x0483d030a1B1dA819dA08e2b73b01eFD28c67322
# Escrow Contract (Deploy your own or use existing)
ESCROW_CONTRACT_ADDRESS=0x9D340a67ddD4Fcf5eC590b7B67e1fE8d020F7D61
ESCROW_CONTRACT_DEPLOY_BLOCK=0
# USDC Token Address (devUSDC.e on Cronos Testnet)
USDC_TOKEN_ADDRESS=0xc01efAaF7C5C61bEbFAeb358E1161b537b8bC0e0
USDC_ADDRESS=0xc01efAaF7C5C61bEbFAeb358E1161b537b8bC0e0
VITE_USDCE_CONTRACT=0xc01efAaF7C5C61bEbFAeb358E1161b537b8bC0e0
VITE_USDC_DECIMALS=6
# ==============================================
# CRYPTO.COM X402 PAYMENT PROTOCOL (REQUIRED)
# ==============================================
# Official x402 Facilitator (no API key needed)
# Docs: https://docs.crypto.com/x402
VITE_X402_FACILITATOR_URL=https://facilitator.cronoslabs.org/v2/x402
X402_FACILITATOR_ADDRESS=0x84D2EF0545514BF121d81769d8E94b94770670Ef
# ==============================================
# PYTH NETWORK PRICE FEEDS (REQUIRED)
# ==============================================
# Docs: https://docs.pyth.network/price-feeds
# Pyth Contract on Cronos Testnet
VITE_PYTH_CONTRACT=0x36825bf3Fbdf5a29E2d5148bfe7Dcf7B5639e320
# Pyth Hermes API (no API key needed for public endpoints)
VITE_PYTH_HERMES_URL=https://hermes.pyth.network
# ==============================================
# DEX INTEGRATIONS (OPTIONAL)
# ==============================================
# VVS Finance (requires client ID from Discord)
# Discord: https://discord.gg/vvsfinance
VITE_VVS_API_CLIENT_ID_338=
VITE_VVS_API_CLIENT_ID_25=
# Moonlander DEX
VITE_MOONLANDER_ADDRESS=0xE6F6351fb66f3a35313fEEFF9116698665FBEeC9
# GMX V2 (Update when deployed on Cronos)
VITE_GMX_EXCHANGE_ROUTER=0x0000000000000000000000000000000000000000
VITE_GMX_READER=0x0000000000000000000000000000000000000000
# Fulcrom Finance (Update with actual addresses)
VITE_FULCROM_TRADING=0x0000000000000000000000000000000000000001
VITE_FULCROM_STORAGE=0x0000000000000000000000000000000000000002
VITE_FULCROM_CALLBACKS=0x0000000000000000000000000000000000000003
# ==============================================
# WALLETCONNECT / REOWN (OPTIONAL)
# ==============================================
# Get project ID from: https://cloud.walletconnect.com/
VITE_WALLETCONNECT_PROJECT_ID=
# ==============================================
# TELEGRAM BOT (OPTIONAL)
# ==============================================
# Get bot token from @BotFather on Telegram
# Docs: https://core.telegram.org/bots/tutorial
TELEGRAM_BOT_TOKEN=
WEBHOOK_DOMAIN=https://your-domain.com
# ==============================================
# ANTHROPIC CLAUDE API (REQUIRED FOR AI)
# ==============================================
# Get API key from: https://console.anthropic.com/
# Docs: https://docs.anthropic.com/
ANTHROPIC_API_KEY=sk-ant-your-api-key-here
# ==============================================
# CHROMA CLOUD (VECTOR DATABASE FOR RAG)
# ==============================================
# Get credentials from: https://www.trychroma.com/
# Used for semantic search over documentation
CHROMA_API_KEY=ck-your-chroma-api-key-here
CHROMA_TENANT=your-tenant-id-here
CHROMA_DATABASE=relaycore
# ==============================================
# OPENAI API (FOR EMBEDDINGS)
# ==============================================
# Get API key from: https://platform.openai.com/api-keys
# Used by RAG service to generate embeddings for semantic search
OPENAI_API_KEY=sk-proj-your-openai-api-key-here
# ==============================================
# IPFS / PINATA (OPTIONAL)
# ==============================================
# Get API keys from: https://app.pinata.cloud/developers/api-keys
# SECURITY: Backend-only (no VITE_ prefix)
PINATA_API_KEY=
PINATA_SECRET_KEY=
PINATA_JWT=
# ==============================================
# RELAY CORE SERVICE CONFIGURATION
# ==============================================
# Relay Core Agent ID (registered on IdentityRegistry)
RELAY_CORE_AGENT_ID=1
# Validator Address (for high-value trade validation)
VALIDATOR_ADDRESS=0xYourValidatorAddress
# Payment Recipient Address
PAYMENT_RECIPIENT_ADDRESS=0xYourPaymentRecipientAddress
# API Configuration
RELAY_CORE_API_URL=http://localhost:4001
RELAY_CORE_API_SECRET=your-api-secret-here
PORT=4001
PUBLIC_HOST=http://localhost:4001
# ==============================================
# INDEXER CONFIGURATION
# ==============================================
# Starting block for indexing (0 = from genesis)
INDEXER_START_BLOCK=0
# ==============================================
# CACHING & MONITORING (OPTIONAL)
# ==============================================
# Redis (for caching & reputation engine)
REDIS_URL=redis://localhost:6379
# Sentry (for error tracking)
SENTRY_DSN=
# ==============================================
# SECURITY NOTES
# ==============================================
#
# PRODUCTION DEPLOYMENT:
#
# 1. NEVER commit .env files to version control
# - Add .env* to .gitignore (except .env.example)
#
# 2. NEVER store private keys in .env files in production
# - Use AWS Secrets Manager / KMS
# - Use hardware wallets for signing
# - Use AWS Nitro Enclaves for secure key management
#
# 3. Use environment-specific configurations:
# - Development: .env.local
# - Staging: .env.staging
# - Production: Use cloud provider's secret management
#
# 4. Rotate API keys regularly
#
# 5. Use Supabase RLS policies for all database access
#
# 6. Enable rate limiting on all public endpoints
#
# 7. Set up proper CORS headers
#
# ==============================================
# ============================================
# x402 Session Configuration
# ============================================
# Relay wallet that receives user session deposits
# Users send USDC here to fund their sessions
# For production: Use a dedicated wallet you control
# For testing: Can use any wallet address
RELAY_WALLET_ADDRESS=YOUR_RELAY_WALLET_ADDRESS_HERE
# Private key for Relay wallet (REQUIRED for production)
# Used to sign x402 payments to agents from session funds
# KEEP THIS SECURE - Never commit to git
# For testing: Leave empty, payments won't be executed
RELAY_PRIVATE_KEY=
# ============================================
# x402 Session Configuration
# ============================================
# Relay wallet that receives user session deposits
# Users send USDC here to fund their sessions
# For production: Use a dedicated wallet you control
# For testing: Can use any wallet address
RELAY_WALLET_ADDRESS=YOUR_RELAY_WALLET_ADDRESS_HERE
# Private key for Relay wallet (REQUIRED for production)
# Used to sign x402 payments to agents from session funds
# KEEP THIS SECURE - Never commit to git
# For testing: Leave empty, payments won't be executed
RELAY_PRIVATE_KEY=