Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: preprod rewards coordinator upgrade #729

Merged
merged 2 commits into from
Oct 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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();

}
}
Loading