Skip to content

Commit 2ca95e7

Browse files
committed
chore: upgrade preprod with new credential check
1 parent 6116bb3 commit 2ca95e7

File tree

3 files changed

+115
-2
lines changed

3 files changed

+115
-2
lines changed

script/configs/holesky/eigenlayer_addresses_preprod.config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
"eigenLayerPauserReg": "0x9Ab2FEAf0465f0eD51Fc2b663eF228B418c9Dad1",
1212
"eigenLayerProxyAdmin": "0x1BEF05C7303d44e0E2FCD2A19d993eDEd4c51b5B",
1313
"eigenPodBeacon": "0x92Cc4a800A1513E85C481dDDf3A06C6921211eaC",
14-
"eigenPodImplementation": "0xcB0858aA14d27FE8D255CF0Fa0b8e8977785169a",
14+
"eigenPodImplementation": "0x8Da4b953cbFb715624D98C0D2b4a7978462eFd38",
1515
"eigenPodManager": "0xB8d8952f572e67B11e43bC21250967772fa883Ff",
16-
"eigenPodManagerImplementation": "0xE59f0a991600788E2bc08c31817124be00520F48",
16+
"eigenPodManagerImplementation": "0x10EBa780CCd9E5e9FFBe529C25046c076Be91048",
1717
"emptyContract": "0x9690d52B1Ce155DB2ec5eCbF5a262ccCc7B3A6D2",
1818
"rewardsCoordinator": "0xb22Ef643e1E067c994019A4C19e403253C05c2B0",
1919
"rewardsCoordinatorImplementation": "0x7C80B0d3aFBeF9Bbd03Aab72cD2d90a12c11D394",
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
// SPDX-License-Identifier: BUSL-1.1
2+
pragma solidity ^0.8.12;
3+
4+
import "../../utils/ExistingDeploymentParser.sol";
5+
6+
/**
7+
* @notice Script used for upgrading EigenPod and EPM Implementation for Holesky preprod
8+
* anvil --fork-url $RPC_HOLESKY
9+
* forge script script/deploy/holesky/v040-rc5-holesky-preprod-pepe.s.sol --rpc-url http://127.0.0.1:8545 --private-key $PRIVATE_KEY --broadcast -vvvv
10+
* forge script script/deploy/holesky/v040-rc5-holesky-preprod-pepe.s.sol --rpc-url $RPC_HOLESKY --private-key $PRIVATE_KEY --verify --broadcast -vvvv
11+
*/
12+
contract EigenPod_Checkpoint_Deploy_Preprod is ExistingDeploymentParser {
13+
14+
address testAddress = 0xDA29BB71669f46F2a779b4b62f03644A84eE3479;
15+
address initOwner = 0xDA29BB71669f46F2a779b4b62f03644A84eE3479;
16+
17+
function run() external virtual {
18+
_parseInitialDeploymentParams(
19+
"script/configs/holesky/eigenlayer_preprod.config.json"
20+
);
21+
_parseDeployedContracts(
22+
"script/configs/holesky/eigenlayer_addresses_preprod.config.json"
23+
);
24+
25+
emit log_named_address("Deployer Address", msg.sender);
26+
27+
// START RECORDING TRANSACTIONS FOR DEPLOYMENT
28+
vm.startBroadcast();
29+
30+
_upgradeEigenPods();
31+
_upgradeEigenPodManager();
32+
33+
// STOP RECORDING TRANSACTIONS FOR DEPLOYMENT
34+
vm.stopBroadcast();
35+
36+
// Sanity Checks
37+
_verifyContractPointers();
38+
_verifyImplementations();
39+
_verifyContractsInitialized();
40+
_verifyInitializationParams();
41+
42+
logAndOutputContractAddresses("script/output/holesky/v040-rc5.output.json");
43+
}
44+
45+
/**
46+
* @notice Deploy EigenPod Implementation for Holesky preprod and upgrade the beacon
47+
*/
48+
function _upgradeEigenPods() internal {
49+
// Deploy implementation
50+
eigenPodImplementation = new EigenPod(
51+
IETHPOSDeposit(ETHPOSDepositAddress),
52+
eigenPodManager,
53+
EIGENPOD_GENESIS_TIME
54+
);
55+
56+
// upgrade UpgradeableBeacon
57+
eigenPodBeacon.upgradeTo(address(eigenPodImplementation));
58+
}
59+
60+
/**
61+
* @notice Deploy EPM Implementation for Holesky preprod and upgrade its proxy
62+
*/
63+
function _upgradeEigenPodManager() internal {
64+
// Deploy implementation
65+
eigenPodManagerImplementation = new EigenPodManager(
66+
IETHPOSDeposit(ETHPOSDepositAddress),
67+
eigenPodBeacon,
68+
strategyManager,
69+
slasher,
70+
delegationManager
71+
);
72+
73+
// upgrade TUPS
74+
eigenLayerProxyAdmin.upgrade(
75+
TransparentUpgradeableProxy(payable(address(eigenPodManager))),
76+
address(eigenPodManagerImplementation)
77+
);
78+
}
79+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"addresses": {
3+
"avsDirectory": "0x141d6995556135D4997b2ff72EB443Be300353bC",
4+
"avsDirectoryImplementation": "0x357978adC03375BD6a3605DE055fABb84695d79A",
5+
"baseStrategyImplementation": "0x62450517EfA1CE60d79801daf8f95973865e8D40",
6+
"delegationManager": "0x75dfE5B44C2E530568001400D3f704bC8AE350CC",
7+
"delegationManagerImplementation": "0x56E88cb4f0136fC27D95499dE4BE2acf47946Fa1",
8+
"eigenLayerPauserReg": "0x9Ab2FEAf0465f0eD51Fc2b663eF228B418c9Dad1",
9+
"eigenLayerProxyAdmin": "0x1BEF05C7303d44e0E2FCD2A19d993eDEd4c51b5B",
10+
"eigenPodBeacon": "0x92Cc4a800A1513E85C481dDDf3A06C6921211eaC",
11+
"eigenPodImplementation": "0x8Da4b953cbFb715624D98C0D2b4a7978462eFd38",
12+
"eigenPodManager": "0xB8d8952f572e67B11e43bC21250967772fa883Ff",
13+
"eigenPodManagerImplementation": "0x10EBa780CCd9E5e9FFBe529C25046c076Be91048",
14+
"emptyContract": "0x9690d52B1Ce155DB2ec5eCbF5a262ccCc7B3A6D2",
15+
"rewardsCoordinator": "0xb22Ef643e1E067c994019A4C19e403253C05c2B0",
16+
"rewardsCoordinatorImplementation": "0x7C80B0d3aFBeF9Bbd03Aab72cD2d90a12c11D394",
17+
"slasher": "0x12699471dF8dca329C76D72823B1b79d55709384",
18+
"slasherImplementation": "0x9460fCe11E1e0365419fa860599903B4E5097cf0",
19+
"strategies": "",
20+
"strategyManager": "0xF9fbF2e35D8803273E214c99BF15174139f4E67a",
21+
"strategyManagerImplementation": "0x1a26B23a004C512350d7Dd89056655A80b850199"
22+
},
23+
"chainInfo": {
24+
"chainId": 17000,
25+
"deploymentBlock": 2100862
26+
},
27+
"parameters": {
28+
"communityMultisig": "0xDA29BB71669f46F2a779b4b62f03644A84eE3479",
29+
"executorMultisig": "0xDA29BB71669f46F2a779b4b62f03644A84eE3479",
30+
"operationsMultisig": "0xDA29BB71669f46F2a779b4b62f03644A84eE3479",
31+
"pauserMultisig": "0xDA29BB71669f46F2a779b4b62f03644A84eE3479",
32+
"timelock": "0xcF19CE0561052a7A7Ff21156730285997B350A7D"
33+
}
34+
}

0 commit comments

Comments
 (0)