diff --git a/contracts/lib/eigenlayer-middleware b/contracts/lib/eigenlayer-middleware index bee1c9f388..9ec2158332 160000 --- a/contracts/lib/eigenlayer-middleware +++ b/contracts/lib/eigenlayer-middleware @@ -1 +1 @@ -Subproject commit bee1c9f38862c08c413e2e1a1db97cc56ab50f14 +Subproject commit 9ec215833253d9a386cb6e11f26db2929b214186 diff --git a/contracts/script/EigenDADeployer.s.sol b/contracts/script/EigenDADeployer.s.sol index 2ed5943ad8..6b1e9d6c74 100644 --- a/contracts/script/EigenDADeployer.s.sol +++ b/contracts/script/EigenDADeployer.s.sol @@ -1,4 +1,5 @@ -// SPDX-License-Identifier: UNLICENSED +// SPDX-License-Identifier: UNLICENSED +/* pragma solidity ^0.8.9; import "eigenlayer-scripts/middleware/DeployOpenEigenLayer.s.sol"; @@ -6,15 +7,12 @@ import {PauserRegistry} from "eigenlayer-core/contracts/permissions/PauserRegist import {EmptyContract} from "eigenlayer-core/test/mocks/EmptyContract.sol"; import {BLSPublicKeyCompendium} from "eigenlayer-middleware/BLSPublicKeyCompendium.sol"; import {BLSRegistryCoordinatorWithIndices, IBLSRegistryCoordinatorWithIndices} from "eigenlayer-middleware/BLSRegistryCoordinatorWithIndices.sol"; -import {BLSPubkeyRegistry} from "eigenlayer-middleware/BLSPubkeyRegistry.sol"; -import {IndexRegistry} from "eigenlayer-middleware/IndexRegistry.sol"; -import {StakeRegistry, IStakeRegistry} from "eigenlayer-middleware/StakeRegistry.sol"; +import {BLSPubkeyRegistry, IBLSPubkeyRegistry} from "eigenlayer-middleware/BLSPubkeyRegistry.sol"; +import {IndexRegistry, IIndexRegistry} from "eigenlayer-middleware/IndexRegistry.sol"; +import {StakeRegistry, IStakeRegistry, IServiceManager} from "eigenlayer-middleware/StakeRegistry.sol"; import {BLSOperatorStateRetriever} from "eigenlayer-middleware/BLSOperatorStateRetriever.sol"; import {EigenDAServiceManager} from "../src/core/EigenDAServiceManager.sol"; import {EigenDAHasher} from "../src/libraries/EigenDAHasher.sol"; -import {IBLSPubkeyRegistry} from "eigenlayer-middleware/interfaces/IBLSPubkeyRegistry.sol"; -import {IIndexRegistry} from "eigenlayer-middleware/interfaces/IIndexRegistry.sol"; -import {IServiceManager} from "eigenlayer-middleware/interfaces/IServiceManager.sol"; import "forge-std/Test.sol"; import "forge-std/Script.sol"; @@ -95,7 +93,7 @@ contract EigenDADeployer is DeployOpenEigenLayer { /** * First, deploy upgradeable proxy contracts that **will point** to the implementations. Since the implementation contracts are * not yet deployed, we give these proxies an empty contract as the initial implementation, to act as if they have no code. - */ + *//* eigenDAServiceManager = EigenDAServiceManager( address(new TransparentUpgradeableProxy(address(emptyContract), address(eigenDAProxyAdmin), "")) ); @@ -217,3 +215,4 @@ contract EigenDADeployer is DeployOpenEigenLayer { blsOperatorStateRetriever = new BLSOperatorStateRetriever(); } } +*/ \ No newline at end of file diff --git a/contracts/script/SetUpEigenDA.s.sol b/contracts/script/SetUpEigenDA.s.sol index 06e8d62f92..907831a6ba 100644 --- a/contracts/script/SetUpEigenDA.s.sol +++ b/contracts/script/SetUpEigenDA.s.sol @@ -1,4 +1,5 @@ -// SPDX-License-Identifier: UNLICENSED +// SPDX-License-Identifier: UNLICENSED +/* pragma solidity ^0.8.9; import "eigenlayer-scripts/middleware/DeployOpenEigenLayer.s.sol"; @@ -184,3 +185,4 @@ contract SetupEigenDA is EigenDADeployer, EigenLayerUtils { vm.writeJson(finalJson, "./script/output/eigenda_deploy_output.json"); } } +*/ \ No newline at end of file diff --git a/contracts/script/m2/M2_Deploy.s.sol b/contracts/script/m2/M2_Deploy.s.sol index c40ea5d498..bbf03da31e 100644 --- a/contracts/script/m2/M2_Deploy.s.sol +++ b/contracts/script/m2/M2_Deploy.s.sol @@ -1,4 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 +/* pragma solidity =0.8.12; import "eigenlayer-scripts/utils/ExistingDeploymentParser.sol"; @@ -336,5 +337,5 @@ contract Deployer_M2 is ExistingDeploymentParser { string memory finalJson = vm.serializeString(parent_object, permissions, permissions_output); vm.writeJson(finalJson, outputPath); } - -} \ No newline at end of file +} +*/ \ No newline at end of file diff --git a/contracts/src/core/EigenDAServiceManager.sol b/contracts/src/core/EigenDAServiceManager.sol index 870e3dfab2..e8a544266d 100644 --- a/contracts/src/core/EigenDAServiceManager.sol +++ b/contracts/src/core/EigenDAServiceManager.sol @@ -1,8 +1,8 @@ // SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.9; -import "@openzeppelin-upgrades/contracts/proxy/utils/Initializable.sol"; -import "@openzeppelin-upgrades/contracts/access/OwnableUpgradeable.sol"; +import {Initializable} from "@openzeppelin-upgrades/contracts/proxy/utils/Initializable.sol"; +import {OwnableUpgradeable} from "@openzeppelin-upgrades/contracts/access/OwnableUpgradeable.sol"; import {IDelegationManager} from "eigenlayer-core/contracts/interfaces/IDelegationManager.sol"; import {BytesLib} from "eigenlayer-core/contracts/libraries/BytesLib.sol"; @@ -11,8 +11,7 @@ import {Pausable} from "eigenlayer-core/contracts/permissions/Pausable.sol"; import {IStrategyManager} from "eigenlayer-core/contracts/interfaces/IStrategyManager.sol"; import {ISlasher} from "eigenlayer-core/contracts/interfaces/ISlasher.sol"; import {IPauserRegistry} from "eigenlayer-core/contracts/interfaces/IPauserRegistry.sol"; -import {BLSSignatureChecker} from "eigenlayer-middleware/BLSSignatureChecker.sol"; -import {IBLSRegistryCoordinatorWithIndices} from "eigenlayer-middleware/interfaces/IBLSRegistryCoordinatorWithIndices.sol"; +import {BLSSignatureChecker, IBLSRegistryCoordinatorWithIndices} from "eigenlayer-middleware/BLSSignatureChecker.sol"; import {IServiceManager} from "eigenlayer-middleware/interfaces/IServiceManager.sol"; import {EigenDAServiceManagerStorage} from "./EigenDAServiceManagerStorage.sol"; import {EigenDAHasher} from "../libraries/EigenDAHasher.sol"; diff --git a/contracts/src/core/EigenDAServiceManagerStorage.sol b/contracts/src/core/EigenDAServiceManagerStorage.sol index 47fbdafa74..14f7e0c01c 100644 --- a/contracts/src/core/EigenDAServiceManagerStorage.sol +++ b/contracts/src/core/EigenDAServiceManagerStorage.sol @@ -1,11 +1,7 @@ // SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.9; -import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; -import "eigenlayer-core/contracts/interfaces/IDelegationManager.sol"; -import "eigenlayer-core/contracts/interfaces/IStrategyManager.sol"; - -import "../interfaces/IEigenDAServiceManager.sol"; +import {IEigenDAServiceManager} from "../interfaces/IEigenDAServiceManager.sol"; /** * @title Storage variables for the `EigenDAServiceManager` contract.