Skip to content

Commit

Permalink
feat: rewards v2 upgrade script (#888)
Browse files Browse the repository at this point in the history
* feat: rewards v2 upgrade

* test: add paused check

* test: check that rewardsCoordinator address updates

---------

Co-authored-by: Michael Sun <[email protected]>
Co-authored-by: Nadir Akhtar <[email protected]>
  • Loading branch information
3 people authored Dec 3, 2024
1 parent eaf50a1 commit f2f6a77
Show file tree
Hide file tree
Showing 17 changed files with 465 additions and 390 deletions.
4 changes: 4 additions & 0 deletions .zeus
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"zeusHost": "https://github.com/Layr-Labs/eigenlayer-contracts-metadata",
"migrationDirectory": "script/releases"
}
1 change: 1 addition & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ fs_permissions = [{ access = "read-write", path = "./"}, { access = "read-write"
gas_reports = ["*"]
# ignore upgrade testing in scripts by default
no_match_test = "queueUpgrade"
no_match_path = "script/releases/**/*.sol"

# A list of ignored solc error codes

Expand Down
88 changes: 88 additions & 0 deletions script/releases/EigenLabsUpgrade.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.12;

import {ZeusScript} from "zeus-templates/utils/ZeusScript.sol";
import {EncGnosisSafe} from "zeus-templates/utils/EncGnosisSafe.sol";
import {TimelockController} from "@openzeppelin/contracts/governance/TimelockController.sol";

library EigenLabsUpgrade {
using EncGnosisSafe for *;

function _ethPos(
ZeusScript self
) internal view returns (address) {
return self.zAddress("ethPOS");
}

function _eigenpodGenesisTime(
ZeusScript self
) internal view returns (uint64) {
return self.zUint64("EIGENPOD_GENESIS_TIME");
}

function _eigenPodManagerPendingImpl(
ZeusScript self
) internal view returns (address) {
return self.zDeployedContract("EigenPodManager_pendingImpl");
}

function _operationsMultisig(
ZeusScript self
) internal view returns (address) {
return self.zAddress("operationsMultisig");
}

function _pauserRegistry(
ZeusScript self
) internal view returns (address) {
return self.zDeployedContract("PauserRegistry");
}

function _proxyAdmin(
ZeusScript self
) internal view returns (address) {
return self.zDeployedContract("ProxyAdmin");
}

function _eigenPodManagerProxy(
ZeusScript self
) internal view returns (address) {
return self.zAddress("EigenPodManager_proxy");
}

function _eigenPodBeacon(
ZeusScript self
) internal view returns (address) {
return self.zAddress("EigenPod_beacon");
}

function _eigenPodPendingImpl(
ZeusScript self
) internal view returns (address) {
return self.zAddress("EigenPod_pendingImpl");
}

function _multiSendCallOnly(
ZeusScript self
) internal view returns (address) {
return self.zAddress("MultiSendCallOnly");
}

function _timelock(
ZeusScript self
) internal view returns (TimelockController) {
return TimelockController(payable(self.zAddress("timelockController")));
}

function _executorMultisig(
ZeusScript self
) internal view returns (address) {
return self.zAddress("executorMultisig");
}

function _protocolCouncilMultisig(
ZeusScript self
) internal view returns (address) {
return self.zAddress("protocolCouncilMultisig");
}
}
24 changes: 0 additions & 24 deletions script/releases/release-template/1-eoa.s.sol

This file was deleted.

57 changes: 0 additions & 57 deletions script/releases/release-template/2-multisig.s.sol

This file was deleted.

39 changes: 0 additions & 39 deletions script/releases/release-template/3-multisig.s.sol

This file was deleted.

19 changes: 0 additions & 19 deletions script/releases/release-template/README.md

This file was deleted.

13 changes: 0 additions & 13 deletions script/releases/v0.1-eigenpod-example/.env.example

This file was deleted.

60 changes: 0 additions & 60 deletions script/releases/v0.1-eigenpod-example/1-eoa.s.sol

This file was deleted.

69 changes: 0 additions & 69 deletions script/releases/v0.1-eigenpod-example/2-multisig.s.sol

This file was deleted.

Loading

0 comments on commit f2f6a77

Please sign in to comment.