-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
63 lines (56 loc) Β· 3.48 KB
/
Copy path.env.example
File metadata and controls
63 lines (56 loc) Β· 3.48 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
# Backstop β Coston2 (chain 114) configuration.
# Copy to `.env` and fill in. `.env` is gitignored; NEVER commit a private key.
# Each var notes WHEN it's needed: [spike] Jul-30 FDC gate Β· [deploy] Β· [keeper] Β· [frontend].
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# === 1. RPC + chain (needed now) ============================================
# [spike][deploy][keeper] Public endpoint works for read-only + writes on Coston2.
# For heavy use, swap in a private RPC (e.g. from Ankr/dRPC) for reliability.
COSTON2_RPC_URL="https://coston2-api.flare.network/ext/C/rpc"
# [deploy][frontend] Chain id β Coston2 is 114. Rarely changed.
CHAIN_ID=114
# === 2. Deployer wallet (needed for spike stages d/e + deploy) ==============
# [spike][deploy] A FRESH, THROWAWAY testnet key β never a mainnet/real-funds key.
# Generate one: cast wallet new
# Fund it with C2FLR from the faucet: https://faucet.flare.network/coston2
PRIVATE_KEY=""
# [deploy] Optional: the public address of the key above (some scripts log it).
# Derive it from the key: cast wallet address --private-key $PRIVATE_KEY
DEPLOYER_ADDRESS=""
# === 3. FDC verifier + Data Availability Layer (needed for spike d/e + keeper)
# [spike][keeper] Verifier builds the abi-encoded RPN request (embeds the MIC).
VERIFIER_URL_TESTNET="https://fdc-verifiers-testnet.flare.network"
# Coston2 TESTNET uses a public, rate-limited default key (no signup):
# 00000000-0000-0000-0000-000000000000
# Higher limits / production: request via Flare technical support (flare.network/resources/technical-support).
VERIFIER_API_KEY_TESTNET="00000000-0000-0000-0000-000000000000"
# [spike][keeper] DA Layer serves the finalized response + Merkle proof.
COSTON2_DA_LAYER_URL="https://ctn2-data-availability.flare.network"
# Same public testnet default key as the verifier.
X_API_KEY="00000000-0000-0000-0000-000000000000"
# === 4. Contract verification on deploy (no API key needed) =================
# [deploy] Coston2 Blockscout verifies without a key:
# forge script ... --verify --verifier blockscout \
# --verifier-url https://coston2-explorer.flare.network/api/
# Left here for reference; no secret required.
# === 5. Deployed addresses (fill in AFTER `forge script Deploy`) ============
# [keeper][frontend] Get from: the `forge script Deploy` broadcast output (or
# broadcast/Deploy.s.sol/114/run-latest.json). Consumed by the keeper + UI.
BACKSTOP_ADDRESS=""
BACKSTOP_POOL_ADDRESS=""
# === 6. Keeper config (optional β sensible defaults in code) ================
# [keeper] How often the watcher polls redemption deadlines, in seconds.
KEEPER_POLL_SECONDS=30
# [keeper] Optional FTSO feed-id overrides (contract ships Coston2 defaults;
# set only if the Day-4 spike finds different bytes21 ids).
# Get from: https://dev.flare.network/ftso/feeds (bytes21 feed-id table).
XRP_USD_FEED_ID=""
FLR_USD_FEED_ID=""
# === 7. Frontend (needed when the Next.js app + /integrations/verify are built)
# NEXT_PUBLIC_* are exposed to the browser β never put secrets here.
NEXT_PUBLIC_CHAIN_ID=114
NEXT_PUBLIC_RPC_URL="https://coston2-api.flare.network/ext/C/rpc"
NEXT_PUBLIC_BACKSTOP_ADDRESS=""
NEXT_PUBLIC_BACKSTOP_POOL_ADDRESS=""
NEXT_PUBLIC_EXPLORER_URL="https://coston2-explorer.flare.network"
# Get from: https://cloud.reown.com (free) β for RainbowKit/WalletConnect.
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID=""