Skip to content

Commit c75c813

Browse files
moved etherscan api key to env contracts file (#1837)
1 parent 51a2cfd commit c75c813

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.env

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ ESPRESSO_SEQUENCER_STAKE_TABLE_CAPACITY=10
9090
MNEMONIC="test test test test test test test test test test test junk"
9191
# The RPC URL for deploying to the sepolia network.
9292
SEPOLIA_RPC_URL=
93-
# The etherscan API key is needed to verify contracts on etherscan.
94-
ETHERSCAN_API_KEY="placeholder"
93+
9594

9695
# Temporary flags for state relay server, should remove after integrating with stake table
9796
# Related issue: [https://github.com/EspressoSystems/espresso-sequencer/issues/1022]

.env.contracts.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,6 @@ export APPROVED_PROVER_ADDRESS=
4040

4141
# Plonk Verification Library Deployment with Defender
4242
export PLONK_VERIFIER_SALT=
43+
44+
# The etherscan API key is needed to verify contracts on etherscan.
45+
export ETHERSCAN_API_KEY=

justfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ sol-test:
9797
NUM_BLOCKS_PER_EPOCH := "3"
9898
NUM_INIT_VALIDATORS := "5"
9999
lc-contract-profiling-sepolia:
100+
@sh -c 'source ./.env.contracts'
100101
#!/usr/bin/env bash
101102
set -euxo pipefail
102103
forge script contracts/test/DeployLightClientTestScript.s.sol --sig "runBench(uint32 numBlocksPerEpoch, uint64 numInitValidators)" {{NUM_BLOCKS_PER_EPOCH}} {{NUM_INIT_VALIDATORS}} --fork-url ${SEPOLIA_RPC_URL} --broadcast --verify --etherscan-api-key ${ETHERSCAN_API_KEY} --chain-id sepolia
@@ -126,3 +127,4 @@ download-srs:
126127
dev-download-srs:
127128
@echo "Check existence or download SRS for dev/test"
128129
@AZTEC_SRS_PATH="$PWD/data/aztec20/kzg10-aztec20-srs-65544.bin" ./scripts/download_srs_aztec.sh
130+

0 commit comments

Comments
 (0)