-
Notifications
You must be signed in to change notification settings - Fork 348
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: rewards v2 upgrade script (#888)
* 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
1 parent
eaf50a1
commit f2f6a77
Showing
17 changed files
with
465 additions
and
390 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
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" | ||
} |
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
Submodule zeus-templates
updated
9 files
+0 −5 | .github/workflows/test.yml | |
+3 −0 | foundry.toml | |
+1 −1 | src/interfaces/ISafe.sol | |
+2 −0 | src/interfaces/ITimelock.sol | |
+18 −19 | src/templates/EOADeployer.sol | |
+11 −17 | src/templates/MultisigBuilder.sol | |
+6 −17 | src/utils/EncGnosisSafe.sol | |
+2 −15 | src/utils/MultisigCallUtils.sol | |
+250 −38 | src/utils/ZeusScript.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,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"); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.