Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
52 lines (43 loc) · 3.43 KB
/
Copy path.env.example
File metadata and controls
52 lines (43 loc) · 3.43 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
# ────────────────────────────────────────────────────────────────────
# ShadowPool — root .env.example
# Copy to .env and fill in real values. Never commit .env.
# ────────────────────────────────────────────────────────────────────
# ── Sepolia RPC ──────────────────────────────────────────────────────
SEPOLIA_RPC_URL=https://eth-sepolia.g.alchemy.com/v2/YOUR_KEY
SEPOLIA_WS_URL=wss://eth-sepolia.g.alchemy.com/v2/YOUR_KEY
# ── Keys (never commit real keys) ───────────────────────────────────
# Used by the deploy script and the TypeScript prover submitter.
DEPLOYER_PRIVATE_KEY=0x0000000000000000000000000000000000000000000000000000000000000001
PROVER_PRIVATE_KEY=0x0000000000000000000000000000000000000000000000000000000000000001
# ── Etherscan (for contract verification) ───────────────────────────
ETHERSCAN_API_KEY=YOUR_ETHERSCAN_KEY
# ── Contract addresses (filled after `forge script Deploy.s.sol`) ───
ORDER_BOOK_ADDRESS=
SETTLEMENT_ADDRESS=
VERIFIER_ADDRESS=
# ── Rust Watcher ─────────────────────────────────────────────────────
# First block to scan — set to the OrderBook deployment block for efficiency.
WATCHER_FROM_BLOCK=0
# ── TypeScript Prover ────────────────────────────────────────────────
# Set to "1" or "true" to submit the settlement transaction on-chain after proving.
SUBMIT_ON_CHAIN=1
# ── Frontend (Vite) ──────────────────────────────────────────────────
VITE_SEPOLIA_RPC_URL=https://eth-sepolia.g.alchemy.com/v2/YOUR_KEY
# Optional — dedicated RPC for eth_getLogs (Alchemy free tier caps at 10 blocks).
# Leave unset to reuse VITE_SEPOLIA_RPC_URL. Avoid publicnode for historical getLogs.
# VITE_INDEXER_RPC_URL=
# Optional — enables WalletConnect in the connect modal (https://cloud.walletconnect.com)
VITE_WALLETCONNECT_PROJECT_ID=your_id_from_cloud.walletconnect.com
# Optional — overrides deployBlock in shared/addresses.json for event indexing
VITE_DEPLOYMENT_BLOCK=
# ── Matcher service (frontend → service relay) ───────────────────────
# URL of the running matcher service (services/matcher).
# In production, deploy via Fly.io / Railway / Render and set to the public URL.
VITE_MATCHER_URL=http://localhost:3001
# ── Matcher service (server-side) ───────────────────────────────────
# Copy these to services/matcher/.env (or set in your deployment dashboard).
SUPABASE_URL=https://your-project.supabase.co
SUPABASE_SERVICE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
MATCHER_SECRET_KEY=change-me-to-a-32-char-random-string
# MATCH_INTERVAL_MS=15000
# WORKER_INTERVAL_MS=30000