-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
61 lines (49 loc) · 2.39 KB
/
.env.example
File metadata and controls
61 lines (49 loc) · 2.39 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
# Environment Variables Configuration Example
# ============= RPC Configuration =============
# Multi-RPC Configuration - Use comma-separated RPC nodes for load balancing and fault tolerance
#
# Benefits of Multi-RPC Setup:
# - Load Distribution: Requests distributed across multiple endpoints
# - High Availability: Continues working if one RPC fails
# - Rate Limit Mitigation: Avoids hitting individual provider limits
# - Performance: Potential response time improvements
# - Cost Optimization: Distribute load across free/paid tiers
#
# Configuration Format: Use comma-separated URLs (no spaces)
# Example: "url1,url2,url3"
# L1 RPC node list (Ethereum mainnet or testnet)
L1_RPC_URLS="https://eth-sepolia.g.alchemy.com/v2/your_key1,https://rpc.ankr.com/eth_sepolia,https://sepolia.infura.io/v3/your_key2"
# L2 RPC node list (Optimism network)
L2_RPC_URLS="https://opt-sepolia.g.alchemy.com/v2/your_key1,https://optimism-sepolia.gateway.pokt.network/v1/lb/your_key2"
# Node RPC node list (OP Node endpoints for rollup operations)
NODE_RPC_URLS="https://light-radial-slug.optimism-sepolia.quiknode.pro/e9329f699b371572a8cc5dd22d19d5940bb842a5/,https://node2.optimism-sepolia.quiknode.pro/your_key2/"
# Single RPC Configuration (Legacy support):
# If you prefer single endpoints, just provide one URL:
# L1_RPC_URLS="https://eth-sepolia.g.alchemy.com/v2/your_key"
# ============= RPC Rate Limiting =============
# RPC request rate limit (requests per second)
RPC_RATE_LIMIT=5
# RPC request burst limit
RPC_RATE_BURST=2
# ============= Logging Configuration =============
# Log level: debug, info, warn, error, panic, fatal
LOG_LEVEL=info
# Log format: console, json
LOG_FORMAT=console
# ============= Database Configuration =============
MYSQL_DATA_SOURCE=root:123456@tcp(127.0.0.1:3306)/dispute_explorer?charset=utf8mb4&parseTime=True&loc=Local&multiStatements=true
MYSQL_MAX_IDLE_CONNS=10
MYSQL_MAX_OPEN_CONNS=20
MYSQL_CONN_MAX_LIFETIME=3600
# ============= Blockchain Configuration =============
# Blockchain network name
BLOCKCHAIN=sepolia
# Starting block number (ensure no games are missed)
FROM_BLOCK_NUMBER=5515562
# Starting block hash
FROM_BLOCK_HASH=0x5205c17557759edaef9120f56af802aeaa2827a60d674a0413e77e9c515bdfba
# Dispute Game Factory Proxy contract address
DISPUTE_GAME_PROXY_CONTRACT=0x05F9613aDB30026FFd634f38e5C4dFd30a197Fa1
# ============= API Configuration =============
# API server port
API_PORT=8088