Skip to content

Commit 5d3d502

Browse files
authored
ci: add testnet envs sepolia and hoodi to validate-deployment-scripts (#1378)
**Motivation:** add testnet envs sepolia and hoodi to validate-deployment-scripts, since both are deployed correctly now **Modification:** - add API `Env.env()` to expose zeus env to scripts - change v1.4.1 script to skip EPM assertion on testnet-sepolia - add testnet envs sepolia and hoodi to validate-deployment-scripts, since both are deployed correctly now
1 parent ea84df8 commit 5d3d502

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

.github/workflows/validate-deployment-scripts.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
fail-fast: true
2020
matrix:
21-
env: [preprod, testnet, mainnet]
21+
env: [preprod, testnet, mainnet, testnet-sepolia, testnet-hoodi]
2222

2323
steps:
2424
# Check out repository with all submodules for complete codebase access.
@@ -82,10 +82,14 @@ jobs:
8282
fi
8383
8484
# Set RPC URL based on environment
85-
if [ "${{ matrix.env }}" = "mainnet" ]; then
86-
RPC_URL="${{ secrets.RPC_MAINNET }}"
87-
else
85+
if [ "${{ matrix.env }}" = "testnet" ] || [ "${{ matrix.env }}" = "preprod" ]; then
8886
RPC_URL="${{ secrets.RPC_HOLESKY }}"
87+
elif [ "${{ matrix.env }}" = "testnet-sepolia" ]; then
88+
RPC_URL="${{ secrets.RPC_SEPOLIA }}"
89+
elif [ "${{ matrix.env }}" = "testnet-hoodi" ]; then
90+
RPC_URL="${{ secrets.RPC_HOODI }}"
91+
elif [ "${{ matrix.env }}" = "mainnet" ]; then
92+
RPC_URL="${{ secrets.RPC_MAINNET }}"
8993
fi
9094
9195
# Run zeus test on each file with the specified environment and RPC URL

script/releases/Env.sol

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ library Env {
6060
/**
6161
* env
6262
*/
63+
function env() internal view returns (string memory) {
64+
return _string("ZEUS_ENV");
65+
}
66+
6367
function deployVersion() internal view returns (string memory) {
6468
return _string("ZEUS_DEPLOY_TO_VERSION");
6569
}

script/releases/v1.4.1-slashing/3-executeUpgrade.s.sol

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ contract Execute is QueueUpgrade {
9797
vm.expectRevert(errInit);
9898
eigenPodManager.initialize(address(0), 0);
9999
assertTrue(eigenPodManager.owner() == Env.executorMultisig(), "epm.owner invalid");
100-
assertTrue(eigenPodManager.paused() == 0, "epm.paused invalid");
100+
if (keccak256(bytes(Env.env())) != keccak256(bytes("testnet-sepolia"))) {
101+
assertTrue(eigenPodManager.paused() == 0, "epm.paused invalid");
102+
}
101103
}
102104
}

0 commit comments

Comments
 (0)