-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
123 lines (106 loc) · 5.44 KB
/
Copy path.env.example
File metadata and controls
123 lines (106 loc) · 5.44 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
# =============================================================================
# API server
# =============================================================================
API_PORT=4000
# =============================================================================
# Postgres
# =============================================================================
DB_HOST=localhost
DB_PORT=5432
DB_NAME=intent_protocol
DB_USER=postgres
DB_PASSWORD=postgres
# Optional — Redis is started by docker-compose.yml; wire up when the
# backend uses it (Phase 2). Phase 1 does not require Redis.
# REDIS_URL=redis://localhost:6379
# =============================================================================
# Chain config
# =============================================================================
# Canonical chain ids for the Ethereum and Base corridors. Override only if
# you point the backend at a non-standard fork (defaults match mainnet).
ETH_CHAIN_ID=1
BASE_CHAIN_ID=8453
# RPC URLs — required for the indexer + matching loop + auction orchestrator.
# Without these, the runtime starts in API-only mode.
ETH_RPC_URL=http://localhost:8545
BASE_RPC_URL=
# Testnet RPCs (Stage 8 — fill in when the testnet deploy script lands).
SEPOLIA_RPC_URL=
BASE_SEPOLIA_RPC_URL=
# =============================================================================
# Deployed contract addresses (filled in after Stage 8 deployment)
# =============================================================================
ETH_SETTLER_ADDRESS=0x0000000000000000000000000000000000000000
BASE_SETTLER_ADDRESS=0x0000000000000000000000000000000000000000
CHAIN_PEER_REGISTRY_ADDRESS=0x0000000000000000000000000000000000000000
# Solver auction address — separate per chain. The legacy single
# SOLVER_AUCTION_ADDRESS is honoured as a fallback when chain-specific
# vars are unset (useful for single-chain dev runs).
ETH_SOLVER_AUCTION_ADDRESS=0x0000000000000000000000000000000000000000
BASE_SOLVER_AUCTION_ADDRESS=0x0000000000000000000000000000000000000000
SOLVER_AUCTION_ADDRESS=0x0000000000000000000000000000000000000000
# Legacy single-chain alias used by the original indexer stub. Kept
# for compatibility with the docker-compose smoke flow until removed.
INTENT_SETTLER_ADDRESS=0x0000000000000000000000000000000000000000
# =============================================================================
# Indexer config
# =============================================================================
# First block the indexer will scan on each chain. Set to the block at
# which IntentSettler was deployed. 0 is fine for a fresh Anvil node.
ETH_INDEXER_START_BLOCK=0
BASE_INDEXER_START_BLOCK=0
# Confirmation depth before a log is considered safe to index. Matches
# LayerZero V2 default DVN depth so the off-chain view stays in
# lock-step with what the protocol trusts cross-chain.
ETH_CONFIRMATIONS=12
BASE_CONFIRMATIONS=1
# Max blocks per provider.getLogs call. Tune per RPC (Alchemy 2k, public
# RPCs sometimes 500, archival providers higher).
ETH_INDEXER_BATCH_SIZE=2000
BASE_INDEXER_BATCH_SIZE=5000
# =============================================================================
# Loop cadences (milliseconds)
# =============================================================================
INDEXER_POLL_INTERVAL_MS=5000
MATCHER_POLL_INTERVAL_MS=5000
AUCTION_POLL_INTERVAL_MS=10000
# =============================================================================
# Relayer wallet
# =============================================================================
# Funded EOA that submits executeMatching, openAuction, and
# executeWinningProposal transactions and pays LayerZero fees.
# Without this, the runtime stays in indexer-only mode (read-only).
# NEVER COMMIT THIS VALUE. Local development only.
RELAYER_PRIVATE_KEY=
# =============================================================================
# Frontend (Next.js) — use your own RPC keys in development
# =============================================================================
NEXT_PUBLIC_SEPOLIA_RPC_URL=
NEXT_PUBLIC_BASE_SEPOLIA_RPC_URL=
NEXT_PUBLIC_MAINNET_RPC_URL=
NEXT_PUBLIC_BASE_RPC_URL=
# Deployed addresses exposed to the browser (safe — public addresses, not keys).
NEXT_PUBLIC_ETH_SETTLER_ADDRESS=0x0000000000000000000000000000000000000000
NEXT_PUBLIC_BASE_SETTLER_ADDRESS=0x0000000000000000000000000000000000000000
NEXT_PUBLIC_SOLVER_AUCTION_ADDRESS=0x0000000000000000000000000000000000000000
# WalletConnect — free project ID at https://cloud.walletconnect.com/.
# Without this, the WalletConnect entry hides from the wallet picker
# (the other connectors still work).
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID=
# =============================================================================
# Local Anvil pair (Stage 4 E2E harness)
# =============================================================================
# Chain ids 31337 (local-eth) and 31338 (local-base) match
# backend/tests/e2e/full-roundtrip.test.ts. The frontend ships
# deterministic-deploy defaults for every address below — override
# only if you run a custom deploy script that produces different
# addresses.
NEXT_PUBLIC_LOCAL_ETH_RPC_URL=http://127.0.0.1:38545
NEXT_PUBLIC_LOCAL_BASE_RPC_URL=http://127.0.0.1:38546
NEXT_PUBLIC_LOCAL_ETH_SETTLER_ADDRESS=
NEXT_PUBLIC_LOCAL_BASE_SETTLER_ADDRESS=
NEXT_PUBLIC_LOCAL_ETH_SOLVER_AUCTION_ADDRESS=
NEXT_PUBLIC_LOCAL_BASE_SOLVER_AUCTION_ADDRESS=
NEXT_PUBLIC_LOCAL_ETH_CHAIN_PEER_REGISTRY_ADDRESS=
NEXT_PUBLIC_LOCAL_BASE_CHAIN_PEER_REGISTRY_ADDRESS=
NEXT_PUBLIC_LOCAL_USDC_ADDRESS=