Skip to content

Commit 16e0b5b

Browse files
uri-99MauroToscano
andauthored
feat: verify contracts on upgrade (#496)
Co-authored-by: Mauro Toscano <[email protected]>
1 parent 4cf5075 commit 16e0b5b

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

contracts/scripts/.env.example.holesky

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ PRIVATE_KEY=<private_key>
33
EXISTING_DEPLOYMENT_INFO_PATH=./script/output/holesky/Holesky_current_deployment.config.json
44
DEPLOY_CONFIG_PATH=./script/deploy/config/holesky/aligned.holesky.config.json
55
OUTPUT_PATH=./script/output/holesky/alignedlayer_deployment_output.json
6+
ETHERSCAN_API_KEY=<etherscan_api_key>

contracts/scripts/deploy_aligned_contracts.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,7 @@ forge script script/deploy/AlignedLayerDeployer.s.sol \
1616
--rpc-url $RPC_URL \
1717
--private-key $PRIVATE_KEY \
1818
--broadcast \
19+
--verify \
20+
--etherscan-api-key $ETHERSCAN_API_KEY \
1921
--sig "run(string memory existingDeploymentInfoPath, string memory deployConfigPath, string memory outputPath)" \
2022
--slow

contracts/scripts/upgrade_aligned_contracts.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ forge_output=$(forge script script/upgrade/AlignedLayerUpgrader.s.sol \
1414
--rpc-url $RPC_URL \
1515
--private-key $PRIVATE_KEY \
1616
--broadcast \
17+
--verify \
18+
--etherscan-api-key $ETHERSCAN_API_KEY \
1719
--sig "run(string memory eigenLayerDeploymentFilePath, string memory alignedLayerDeploymentFilePath, )")
1820

1921
echo "$forge_output"

0 commit comments

Comments
 (0)