-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
99 lines (83 loc) 路 3.53 KB
/
Copy path.env.example
File metadata and controls
99 lines (83 loc) 路 3.53 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
# ===============================================
# iSentinel Environment Configuration
# ===============================================
# -----------------------------------------------
# Network Selection (switch between testnet/mainnet)
# -----------------------------------------------
# Options: 'testnet' or 'mainnet'
NETWORK=testnet
# -----------------------------------------------
# 0G Testnet Configuration (Galileo)
# -----------------------------------------------
OG_TESTNET_RPC_URL=https://evmrpc-testnet.0g.ai
OG_TESTNET_CHAIN_ID=16602
OG_TESTNET_EXPLORER=https://chainscan-galileo.0g.ai
OG_TESTNET_STORAGE_INDEXER=https://indexer-storage-testnet.0g.ai
# Testnet Contracts
TESTNET_INFT_ADDRESS=0xeB18a3f355EA68f303eB06E8d7527773aCa6b398
TESTNET_ORACLE_ADDRESS=0x59bec759cbE4154626D98D86341E49759087b317
# -----------------------------------------------
# 0G Mainnet Configuration
# -----------------------------------------------
OG_MAINNET_RPC_URL=https://evmrpc.0g.ai
OG_MAINNET_CHAIN_ID=16661
OG_MAINNET_EXPLORER=https://chainscan.0g.ai
OG_MAINNET_STORAGE_INDEXER=https://indexer-storage-turbo.0g.ai
# Mainnet Contracts (deploy when ready)
MAINNET_INFT_ADDRESS=
MAINNET_ORACLE_ADDRESS=
# -----------------------------------------------
# Active Configuration (auto-selected based on NETWORK)
# -----------------------------------------------
# These are set dynamically by the backend
OG_RPC_URL=${NETWORK === 'mainnet' ? OG_MAINNET_RPC_URL : OG_TESTNET_RPC_URL}
INFT_ADDRESS=${NETWORK === 'mainnet' ? MAINNET_INFT_ADDRESS : TESTNET_INFT_ADDRESS}
ORACLE_ADDRESS=${NETWORK === 'mainnet' ? MAINNET_ORACLE_ADDRESS : TESTNET_ORACLE_ADDRESS}
# -----------------------------------------------
# Wallet Configuration
# -----------------------------------------------
# Your deployer/backend wallet private key (KEEP SECRET!)
PRIVATE_KEY=your_private_key_here
# -----------------------------------------------
# 0G Storage Configuration
# -----------------------------------------------
OG_STORAGE_RPC=https://rpc-storage-testnet.0g.ai
OG_STORAGE_FLOW_ADDRESS=0xbD2C3F0E65eDF5582141C35969d66e34629cC768
# -----------------------------------------------
# 0G Compute Configuration
# -----------------------------------------------
# 0G Compute Network for AI inference
COMPUTE_NETWORK_ENABLED=true
# -----------------------------------------------
# AI Fallback Configuration
# -----------------------------------------------
# Gemini API key (for fallback when 0G Compute unavailable)
GEMINI_API_KEY=your_gemini_api_key_here
# -----------------------------------------------
# Backend Configuration
# -----------------------------------------------
PORT=8787
NODE_ENV=development
# -----------------------------------------------
# CORS Configuration
# -----------------------------------------------
CORS_ORIGIN=http://localhost:5174
# -----------------------------------------------
# Attestation Configuration
# -----------------------------------------------
# Backend acts as authorized attestor
ATTESTOR_PRIVATE_KEY=${PRIVATE_KEY}
# -----------------------------------------------
# Development/Testing
# -----------------------------------------------
# Local Hardhat node (for development)
LOCAL_RPC_URL=http://127.0.0.1:8545
LOCAL_PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
# -----------------------------------------------
# Optional: External Services
# -----------------------------------------------
# Sentry error tracking (optional)
# SENTRY_DSN=
# Rate limiting (optional)
# RATE_LIMIT_WINDOW_MS=60000
# RATE_LIMIT_MAX_REQUESTS=100