From 268b803b044403390fbcae7a4ca6bdd731b16c8c Mon Sep 17 00:00:00 2001 From: Alysia Huggins Date: Thu, 8 Aug 2024 12:06:09 -0400 Subject: [PATCH] moved etherscan api key to env contracts file --- .env | 3 +-- .env.contracts.example | 3 +++ justfile | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.env b/.env index 7e4f8f6c35..a25c5bce74 100644 --- a/.env +++ b/.env @@ -90,8 +90,7 @@ ESPRESSO_SEQUENCER_STAKE_TABLE_CAPACITY=10 MNEMONIC="test test test test test test test test test test test junk" # The RPC URL for deploying to the sepolia network. SEPOLIA_RPC_URL= -# The etherscan API key is needed to verify contracts on etherscan. -ETHERSCAN_API_KEY="placeholder" + # Temporary flags for state relay server, should remove after integrating with stake table # Related issue: [https://github.com/EspressoSystems/espresso-sequencer/issues/1022] diff --git a/.env.contracts.example b/.env.contracts.example index 49cded36cd..78aa3ede0d 100644 --- a/.env.contracts.example +++ b/.env.contracts.example @@ -40,3 +40,6 @@ export APPROVED_PROVER_ADDRESS= # Plonk Verification Library Deployment with Defender export PLONK_VERIFIER_SALT= + +# The etherscan API key is needed to verify contracts on etherscan. +export ETHERSCAN_API_KEY= \ No newline at end of file diff --git a/justfile b/justfile index 5d9220a67f..18036aff7b 100644 --- a/justfile +++ b/justfile @@ -97,6 +97,7 @@ sol-test: NUM_BLOCKS_PER_EPOCH := "3" NUM_INIT_VALIDATORS := "5" lc-contract-profiling-sepolia: + @sh -c 'source ./.env.contracts' #!/usr/bin/env bash set -euxo pipefail 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: dev-download-srs: @echo "Check existence or download SRS for dev/test" @AZTEC_SRS_PATH="$PWD/data/aztec20/kzg10-aztec20-srs-65544.bin" ./scripts/download_srs_aztec.sh + \ No newline at end of file