-
Notifications
You must be signed in to change notification settings - Fork 346
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: preprod rewards coordinator upgrade (#729)
* feat: preprod deploy script * chore: update preprod config
- Loading branch information
Showing
2 changed files
with
46 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
script/deploy/holesky/upgrade_preprod_rewardsCoordinator.s.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity ^0.8.12; | ||
|
||
import "./Deploy_Test_RewardsCoordinator.s.sol"; | ||
|
||
/** | ||
* @notice Script used for the first deployment of EigenLayer core contracts to Holesky | ||
* anvil --fork-url $RPC_HOLESKY | ||
* | ||
* Holesky testnet: Deploy/Upgrade RewardsCoordinator | ||
* forge script script/deploy/holesky/upgrade_preprod_rewardsCoordinator.s.sol --rpc-url $RPC_HOLESKY --private-key $PRIVATE_KEY --broadcast -vvvv | ||
* | ||
*/ | ||
contract Upgrade_Preprod_RewardsCoordinator is Deploy_Test_RewardsCoordinator { | ||
function run() external virtual override { | ||
_parseInitialDeploymentParams("script/configs/holesky/eigenlayer_preprod.config.json"); | ||
_parseDeployedContracts("script/configs/holesky/eigenlayer_addresses_preprod.config.json"); | ||
|
||
// Overwrite testAddress and multisigs to be EOAowner | ||
testAddress = msg.sender; | ||
executorMultisig = testAddress; | ||
operationsMultisig = testAddress; | ||
pauserMultisig = testAddress; | ||
communityMultisig = testAddress; | ||
STRATEGY_MANAGER_WHITELISTER = testAddress; | ||
|
||
// START RECORDING TRANSACTIONS FOR DEPLOYMENT | ||
vm.startBroadcast(); | ||
|
||
emit log_named_address("Deployer Address", msg.sender); | ||
|
||
_upgradeRewardsCoordinator(); | ||
|
||
// STOP RECORDING TRANSACTIONS FOR DEPLOYMENT | ||
vm.stopBroadcast(); | ||
|
||
// Sanity Checks | ||
_verifyContractPointers(); | ||
_verifyImplementations(); | ||
_verifyContractsInitialized(); | ||
_verifyInitializationParams(); | ||
|
||
} | ||
} |