Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
195 lines (189 loc) · 14.9 KB
/
Copy path.env.example
File metadata and controls
195 lines (189 loc) · 14.9 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
# =============================================================================
# Lattice — environment template. Copy to `.env` and fill in what you need.
#
# The RPC URLs below are FREE PUBLIC endpoints (rate-limited, best-effort) so
# scripts and fork tests work out of the box. Swap in a dedicated provider
# (Alchemy / Infura / QuickNode / drpc / …) for production or heavy forking.
# Each var maps 1:1 to a `foundry.toml` [rpc_endpoints] alias of the same chain,
# e.g. `forge script ... --rpc-url base` or `vm.createSelectFork("base")`.
# Fork tests read `MAINNET_RPC_URL` directly (skipped if unset).
#
# Fork suites pin historical blocks, so they need ARCHIVE endpoints for
# MAINNET_RPC_URL, SEPOLIA_RPC_URL, BASE_SEPOLIA_RPC_URL and ARC_TESTNET_RPC_URL.
# The public defaults below prune old state (EIP-4444 `error code 4444`, reth
# `state at block #N is pruned`, geth `historical state … is not available`)
# or, like publicnode, refuse it without a token (`Archive requests require a
# personal token`).
# Suites that fork through test/helpers/ArchiveFork.sol (CCTP, PythEntropy,
# the API3/Chainlink CRE/Chronicle/RedStone oracle suites) skip a pin the RPC
# does not serve, with a reason; the other pinned suites fail on these defaults.
# FORK_REQUIRE_ARCHIVE=true turns those skips into failures, and also an
# emptied CCTP replay fixture, a pin without the v0.9 EntryPoint, or a pin
# without a default oracle contract (the weekly fork workflow sets it;
# script/fork-lanes.sh lists its lanes). The mainnet protocol suites (API3
# dAPI and QRNG, Chainlink Automation and CRE, Chronicle, Gelato Automate/VRF,
# RedStone) default to canonical addresses, so the RPC alone runs them; their
# *_FORK_BLOCK and address variables override the defaults. REDSTONE_DATA_FEED_ID
# defaults to `weETH`, so set it as well when REDSTONE_ADAPTER points at an
# adapter that does not serve weETH. Band has no official mainnet
# StdReference, so BandAdapterFork still needs BAND_STD_REFERENCE to run.
# =============================================================================
# ---- API keys -------------------------------------------------------------
# Etherscan V2: one key works across all Etherscan-family explorers (by chainid).
ETHERSCAN_API_KEY=
# ---- Deployer (prefer a keystore over a raw key) --------------------------
# Signing is EXPLICIT per invocation: `make <target> KEYSTORE=<name>` (foundry keystore, any
# OS — unattended on macOS via the Keychain, password prompts elsewhere) or `make <target>
# PRIVATE_KEY=0x<key>`. NEVER set ETH_KEYSTORE_ACCOUNT here — forge/cast auto-load .env, and
# an ambient keystore hijacks every broadcast and prompts on plain reads.
PRIVATE_KEY=
WALLET_ADDR=
# ---- Mainnet RPCs ---------------------------------------- (alias id)
MAINNET_RPC_URL=https://ethereum-rpc.publicnode.com # mainnet 1
OPTIMISM_RPC_URL=https://mainnet.optimism.io # optimism 10
BASE_RPC_URL=https://mainnet.base.org # base 8453
ARBITRUM_RPC_URL=https://arb1.arbitrum.io/rpc # arbitrum 42161
ARBITRUM_NOVA_RPC_URL=https://nova.arbitrum.io/rpc # arbitrum-nova 42170
POLYGON_RPC_URL=https://polygon-bor-rpc.publicnode.com # polygon 137
ZKSYNC_RPC_URL=https://mainnet.era.zksync.io # zksync 324
BSC_RPC_URL=https://bsc-rpc.publicnode.com # bsc 56
AVALANCHE_RPC_URL=https://api.avax.network/ext/bc/C/rpc # avalanche 43114
GNOSIS_RPC_URL=https://gnosis-rpc.publicnode.com # gnosis 100
LINEA_RPC_URL=https://rpc.linea.build # linea 59144
SCROLL_RPC_URL=https://rpc.scroll.io # scroll 534352
BLAST_RPC_URL=https://rpc.blast.io # blast 81457
MANTLE_RPC_URL=https://rpc.mantle.xyz # mantle 5000
MODE_RPC_URL=https://mainnet.mode.network # mode 34443
CELO_RPC_URL=https://forno.celo.org # celo 42220
LISK_RPC_URL=https://rpc.api.lisk.com # lisk 1135
METIS_RPC_URL=https://andromeda.metis.io/?owner=1088 # metis 1088
ZORA_RPC_URL=https://rpc.zora.energy # zora 7777777
FRAXTAL_RPC_URL=https://rpc.frax.com # fraxtal 252
SONIC_RPC_URL=https://rpc.soniclabs.com # sonic 146
UNICHAIN_RPC_URL=https://mainnet.unichain.org # unichain 130
BERACHAIN_RPC_URL=https://rpc.berachain.com # berachain 80094
MONAD_RPC_URL=https://rpc.monad.xyz # monad 143
HYPEREVM_RPC_URL=https://rpc.hyperliquid.xyz/evm # hyperevm 999
WORLDCHAIN_RPC_URL=https://worldchain-mainnet.g.alchemy.com/public # worldchain 480
SEI_RPC_URL=https://evm-rpc.sei-apis.com # sei 1329
INK_RPC_URL=https://rpc-gel.inkonchain.com # ink 57073
HEDERA_RPC_URL=https://mainnet.hashio.io/api # hedera 295
PLASMA_RPC_URL=https://rpc.plasma.to # plasma 9745
AURORA_RPC_URL=https://mainnet.aurora.dev # aurora 1313161554
LENS_RPC_URL=https://rpc.lens.xyz # lens 232
SOMNIA_RPC_URL=https://api.infra.mainnet.somnia.network # somnia 5031
APECHAIN_RPC_URL=https://rpc.apechain.com # apechain 33139
TEMPO_RPC_URL=https://rpc.tempo.xyz # tempo 4217
MEGAETH_RPC_URL=https://mainnet.megaeth.com/rpc # megaeth 4326
CRONOS_RPC_URL=https://evm.cronos.org # cronos 25
MOONBEAM_RPC_URL=https://rpc.api.moonbeam.network # moonbeam 1284
MOONRIVER_RPC_URL=https://rpc.api.moonriver.moonbeam.network # moonriver 1285
FANTOM_RPC_URL=https://rpcapi.fantom.network # fantom 250
KAVA_RPC_URL=https://evm.kava.io # kava 2222
FILECOIN_RPC_URL=https://api.node.glif.io/rpc/v1 # filecoin 314
MANTA_RPC_URL=https://pacific-rpc.manta.network/http # manta 169
OPBNB_RPC_URL=https://opbnb-mainnet-rpc.bnbchain.org # opbnb 204
TAIKO_RPC_URL=https://rpc.taiko.xyz # taiko 167000
IMMUTABLE_RPC_URL=https://rpc.immutable.com # immutable 13371
ABSTRACT_RPC_URL=https://api.mainnet.abs.xyz # abstract 2741
SONEIUM_RPC_URL=https://rpc.soneium.org # soneium 1868
STORY_RPC_URL=https://mainnet.storyrpc.io # story 1514
FLOW_RPC_URL=https://mainnet.evm.nodes.onflow.org # flow 747
ROOTSTOCK_RPC_URL=https://public-node.rsk.co # rootstock 30
FLARE_RPC_URL=https://flare-api.flare.network/ext/C/rpc # flare 14
SONGBIRD_RPC_URL=https://songbird-api.flare.network/ext/C/rpc # songbird 19
ETHERLINK_RPC_URL=https://node.mainnet.etherlink.com # etherlink 42793
BOB_RPC_URL=https://rpc.gobob.xyz # bob 60808
RONIN_RPC_URL=https://api.roninchain.com/rpc # ronin 2020
ASTAR_RPC_URL=https://evm.astar.network # astar 592
SOPHON_RPC_URL=https://rpc.sophon.xyz # sophon 50104
GRAVITY_RPC_URL=https://rpc.gravity.xyz # gravity 1625
HEMI_RPC_URL=https://rpc.hemi.network/rpc # hemi 43111
KATANA_RPC_URL=https://rpc.katana.network # katana 747474
BOBA_RPC_URL=https://mainnet.boba.network # boba 288
XDC_RPC_URL=https://rpc.xdcrpc.com # xdc 50
SUPERSEED_RPC_URL=https://mainnet.superseed.xyz # superseed 5330
# ---- Testnet RPCs ---------------------------------------- (alias id)
SEPOLIA_RPC_URL=https://ethereum-sepolia-rpc.publicnode.com # sepolia 11155111
HOLESKY_RPC_URL=https://ethereum-holesky-rpc.publicnode.com # holesky 17000
OPTIMISM_SEPOLIA_RPC_URL=https://sepolia.optimism.io # optimism-sepolia 11155420
BASE_SEPOLIA_RPC_URL=https://sepolia.base.org # base-sepolia 84532
ARBITRUM_SEPOLIA_RPC_URL=https://sepolia-rollup.arbitrum.io/rpc # arbitrum-sepolia 421614
POLYGON_AMOY_RPC_URL=https://rpc-amoy.polygon.technology # polygon-amoy 80002
ZKSYNC_SEPOLIA_RPC_URL=https://sepolia.era.zksync.dev # zksync-sepolia 300
BSC_TESTNET_RPC_URL=https://bsc-testnet-rpc.publicnode.com # bsc-testnet 97
FUJI_RPC_URL=https://api.avax-test.network/ext/bc/C/rpc # fuji 43113
CHIADO_RPC_URL=https://rpc.chiadochain.net # chiado 10200
LINEA_SEPOLIA_RPC_URL=https://rpc.sepolia.linea.build # linea-sepolia 59141
SCROLL_SEPOLIA_RPC_URL=https://sepolia-rpc.scroll.io # scroll-sepolia 534351
BLAST_SEPOLIA_RPC_URL=https://sepolia.blast.io # blast-sepolia 168587773
MANTLE_SEPOLIA_RPC_URL=https://rpc.sepolia.mantle.xyz # mantle-sepolia 5003
MODE_SEPOLIA_RPC_URL=https://sepolia.mode.network # mode-sepolia 919
CELO_ALFAJORES_RPC_URL=https://alfajores-forno.celo-testnet.org # celo-alfajores 44787
LISK_SEPOLIA_RPC_URL=https://rpc.sepolia-api.lisk.com # lisk-sepolia 4202
ZORA_SEPOLIA_RPC_URL=https://sepolia.rpc.zora.energy # zora-sepolia 999999999
UNICHAIN_SEPOLIA_RPC_URL=https://sepolia.unichain.org # unichain-sepolia 1301
MONAD_TESTNET_RPC_URL=https://testnet-rpc.monad.xyz # monad-testnet 10143
HYPEREVM_TESTNET_RPC_URL=https://rpc.hyperliquid-testnet.xyz/evm # hyperevm-testnet 998
MEGAETH_TESTNET_RPC_URL=https://carrot.megaeth.com/rpc # megaeth-testnet 6343
WORLDCHAIN_SEPOLIA_RPC_URL=https://worldchain-sepolia.g.alchemy.com/public # worldchain-sepolia 4801
SEI_TESTNET_RPC_URL=https://evm-rpc-testnet.sei-apis.com # sei-testnet 1328
INK_SEPOLIA_RPC_URL=https://rpc-gel-sepolia.inkonchain.com # ink-sepolia 763373
HEDERA_TESTNET_RPC_URL=https://testnet.hashio.io/api # hedera-testnet 296
# Hedera testnet integration (optional; only the env-gated fork suites and script/config/hedera read these).
# HEDERA_TESTNET_PK: funded ECDSA key for the hedera-testnet probe/deploy scripts (portal faucet HBAR).
# HEDERA_TESTNET_PK=0x...
# HEDERA_TEST_TOKEN: an existing hedera-testnet HTS token address; unset skips test/fork/HTSAdapterFork.
# HEDERA_TEST_TOKEN=0x...
# HEDERA_TEST_ACCOUNT / HEDERA_TEST_SIG: a hedera-testnet account and an SDK-produced signature over
# HEDERA_TEST_HASH; unset skips test/fork/HASSignatureVerifierFork.
# HEDERA_TEST_ACCOUNT=0x...
# HEDERA_TEST_HASH=0x...
# HEDERA_TEST_SIG=0x...
# HEDERA_TEST_FORK: opt in to the one fork test that calls vm.createSelectFork. Run it through
# script/config/hedera/forge-hedera.sh (Foundry 1.7.1) — by default Foundry 1.8.x sends fork-state reads
# with EIP-1898 block-hash params, which Hedera's relay rejects. Leave unset for plain `forge test` /
# `make test-fork`.
# HEDERA_TEST_FORK=true
PLASMA_TESTNET_RPC_URL=https://testnet-rpc.plasma.to # plasma-testnet 9746
AURORA_TESTNET_RPC_URL=https://testnet.aurora.dev # aurora-testnet 1313161555
LENS_TESTNET_RPC_URL=https://rpc.testnet.lens.xyz # lens-testnet 37111
SOMNIA_TESTNET_RPC_URL=https://dream-rpc.somnia.network # somnia-testnet 50312
APECHAIN_CURTIS_RPC_URL=https://curtis.rpc.caldera.xyz/http # apechain-curtis 33111
TEMPO_TESTNET_RPC_URL=https://rpc.testnet.tempo.xyz # tempo-testnet 42431
HOODI_RPC_URL=https://ethereum-hoodi-rpc.publicnode.com # hoodi 560048
CRONOS_TESTNET_RPC_URL=https://evm-t3.cronos.org # cronos-testnet 338
MOONBASE_ALPHA_RPC_URL=https://rpc.api.moonbase.moonbeam.network # moonbase-alpha 1287
KAVA_TESTNET_RPC_URL=https://evm.testnet.kava.io # kava-testnet 2221
FILECOIN_CALIBRATION_RPC_URL=https://api.calibration.node.glif.io/rpc/v1 # filecoin-calib 314159
MANTA_SEPOLIA_RPC_URL=https://pacific-rpc.sepolia-testnet.manta.network/http # manta-sepolia 3441006
OPBNB_TESTNET_RPC_URL=https://opbnb-testnet-rpc.bnbchain.org # opbnb-testnet 5611
TAIKO_HEKLA_RPC_URL=https://rpc.hekla.taiko.xyz # taiko-hekla 167009
IMMUTABLE_TESTNET_RPC_URL=https://rpc.testnet.immutable.com # immutable-testnet 13473
ABSTRACT_TESTNET_RPC_URL=https://api.testnet.abs.xyz # abstract-testnet 11124
SONEIUM_MINATO_RPC_URL=https://rpc.minato.soneium.org # soneium-minato 1946
STORY_AENEID_RPC_URL=https://aeneid.storyrpc.io # story-aeneid 1315
FLOW_TESTNET_RPC_URL=https://testnet.evm.nodes.onflow.org # flow-testnet 545
ROOTSTOCK_TESTNET_RPC_URL=https://public-node.testnet.rsk.co # rootstock-testnet 31
FLARE_COSTON2_RPC_URL=https://coston2-api.flare.network/ext/C/rpc # flare-coston2 114
SONGBIRD_COSTON_RPC_URL=https://coston-api.flare.network/ext/C/rpc # songbird-coston 16
ETHERLINK_GHOSTNET_RPC_URL=https://node.ghostnet.etherlink.com # etherlink-ghostnet 128123
BOB_SEPOLIA_RPC_URL=https://bob-sepolia.rpc.gobob.xyz # bob-sepolia 808813
RONIN_SAIGON_RPC_URL=https://saigon-testnet.roninchain.com/rpc # ronin-saigon 202601
ASTAR_SHIBUYA_RPC_URL=https://evm.shibuya.astar.network # astar-shibuya 81
BOBA_SEPOLIA_RPC_URL=https://sepolia.boba.network # boba-sepolia 28882
GRAVITY_TESTNET_RPC_URL=https://rpc-sepolia.gravity.xyz # gravity-testnet 13505
SUPERSEED_SEPOLIA_RPC_URL=https://sepolia.superseed.xyz # superseed-sepolia 53302
XDC_APOTHEM_RPC_URL=https://rpc.apothem.network # xdc-apothem 51
ARC_TESTNET_RPC_URL=https://rpc.testnet.arc.network # arc-testnet (USDC gas) 5042002
# ---- Verifier URLs (Blockscout / Routescan; Etherscan family uses V2) -----
LISK_VERIFIER_URL=https://blockscout.lisk.com/api
LISK_SEPOLIA_VERIFIER_URL=https://sepolia-blockscout.lisk.com/api
BASE_SEPOLIA_VERIFIER_URL=https://base-sepolia.blockscout.com/api/
AVALANCHE_VERIFIER_URL=https://api.routescan.io/v2/network/mainnet/evm/43114/etherscan
AVALANCHE_FUJI_VERIFIER_URL=https://api.routescan.io/v2/network/testnet/evm/43113/etherscan
# ---- Deploy scripts (script/base/**) -----------------------------------------
# Recipes deploy through LatticeFactory in one transaction. Leave both unset to
# deploy a fresh LatticeRegistry + LatticeFactory per run. Read only while broadcasting.
# LATTICE_FACTORY=0x... # an existing LatticeFactory on the target chain
# LATTICE_SALT=0x0000000000000000000000000000000000000000000000000000000000000001 # full 32-byte hex