Skip to content

Commit

Permalink
feat: preprod rewards coordinator upgrade (#729)
Browse files Browse the repository at this point in the history
* feat: preprod deploy script

* chore: update preprod config
  • Loading branch information
ypatil12 authored Oct 13, 2024
1 parent 30040aa commit 426f461
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"lastUpdated": "v0.4.2-preprod-longtail",
"lastUpdated": "v0.4.3-preprod-rewards-incentives",
"addresses": {
"avsDirectory": "0x141d6995556135D4997b2ff72EB443Be300353bC",
"avsDirectoryImplementation": "0x357978adC03375BD6a3605DE055fABb84695d79A",
Expand All @@ -17,7 +17,7 @@
"eigenPodManagerImplementation": "0x10EBa780CCd9E5e9FFBe529C25046c076Be91048",
"emptyContract": "0x9690d52B1Ce155DB2ec5eCbF5a262ccCc7B3A6D2",
"rewardsCoordinator": "0xb22Ef643e1E067c994019A4C19e403253C05c2B0",
"rewardsCoordinatorImplementation": "0x7C80B0d3aFBeF9Bbd03Aab72cD2d90a12c11D394",
"rewardsCoordinatorImplementation": "0x7523b42b081C30fA245AA4039c645e36746fC400",
"slasher": "0x12699471dF8dca329C76D72823B1b79d55709384",
"slasherImplementation": "0x9460fCe11E1e0365419fa860599903B4E5097cf0",
"numStrategiesDeployed": 0,
Expand Down
44 changes: 44 additions & 0 deletions script/deploy/holesky/upgrade_preprod_rewardsCoordinator.s.sol
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();

}
}

0 comments on commit 426f461

Please sign in to comment.