Skip to content

Commit

Permalink
consolidate submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
0x0aa0 committed Feb 27, 2024
1 parent b368acd commit fd3c98c
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 19 deletions.
4 changes: 0 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
[submodule "contracts/lib/openzeppelin-contracts-upgradeable"]
path = contracts/lib/openzeppelin-contracts-upgradeable
url = https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable
[submodule "contracts/lib/eigenlayer-contracts"]
path = contracts/lib/eigenlayer-contracts
url = https://github.com/Layr-Labs/eigenlayer-contracts
branch = m2-mainnet-fixes
[submodule "contracts/lib/eigenlayer-middleware"]
path = contracts/lib/eigenlayer-middleware
url = https://github.com/Layr-Labs/eigenlayer-middleware
Expand Down
1 change: 0 additions & 1 deletion contracts/lib/eigenlayer-contracts
Submodule eigenlayer-contracts deleted from 6de01c
4 changes: 2 additions & 2 deletions contracts/remappings.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@openzeppelin-upgrades/=lib/openzeppelin-contracts-upgradeable/
@openzeppelin/=lib/openzeppelin-contracts/
eigenlayer-middleware/=lib/eigenlayer-middleware/src/
eigenlayer-core/=lib/eigenlayer-contracts/src/
eigenlayer-scripts/=lib/eigenlayer-contracts/script/
eigenlayer-core/=lib/eigenlayer-middleware/lib/eigenlayer-contracts/src/
eigenlayer-scripts/=lib/eigenlayer-middleware/lib/eigenlayer-contracts/script/
forge-std/=lib/forge-std/src/
14 changes: 7 additions & 7 deletions contracts/script/EigenDADeployer.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ import {OperatorStateRetriever} from "eigenlayer-middleware/OperatorStateRetriev
import {IRegistryCoordinator} from "eigenlayer-middleware/interfaces/IRegistryCoordinator.sol";
import {IndexRegistry} from "eigenlayer-middleware/IndexRegistry.sol";
import {IIndexRegistry} from "eigenlayer-middleware/interfaces/IIndexRegistry.sol";
import {StakeRegistry} from "eigenlayer-middleware/StakeRegistry.sol";
import {IStakeRegistry} from "eigenlayer-middleware/interfaces/IStakeRegistry.sol";
import {StakeRegistry, IStrategy} from "eigenlayer-middleware/StakeRegistry.sol";
import {IStakeRegistry, IDelegationManager} from "eigenlayer-middleware/interfaces/IStakeRegistry.sol";
import {IServiceManager} from "eigenlayer-middleware/interfaces/IServiceManager.sol";
import {IBLSApkRegistry} from "eigenlayer-middleware/interfaces/IBLSApkRegistry.sol";

import {EigenDAServiceManager} from "../src/core/EigenDAServiceManager.sol";
import {EigenDAServiceManager, IAVSDirectory} from "../src/core/EigenDAServiceManager.sol";
import {EigenDAHasher} from "../src/libraries/EigenDAHasher.sol";

import "eigenlayer-scripts/middleware/DeployOpenEigenLayer.s.sol";
import {DeployOpenEigenLayer, ProxyAdmin, ERC20PresetFixedSupply, TransparentUpgradeableProxy, IPauserRegistry} from "eigenlayer-scripts/middleware/DeployOpenEigenLayer.s.sol";
import "forge-std/Test.sol";
import "forge-std/Script.sol";
import "forge-std/StdJson.sol";
Expand Down Expand Up @@ -123,7 +123,7 @@ contract EigenDADeployer is DeployOpenEigenLayer {

stakeRegistryImplementation = new StakeRegistry(
registryCoordinator,
delegation
IDelegationManager(address(delegation))
);

eigenDAProxyAdmin.upgrade(
Expand Down Expand Up @@ -163,7 +163,7 @@ contract EigenDADeployer is DeployOpenEigenLayer {
for (uint i = 0; i < numStrategies; i++) {
strategyAndWeightingMultipliers[i] = new IStakeRegistry.StrategyParams[](1);
strategyAndWeightingMultipliers[i][0] = IStakeRegistry.StrategyParams({
strategy: deployedStrategyArray[i],
strategy: IStrategy(address(deployedStrategyArray[i])),
multiplier: 1 ether
});
}
Expand All @@ -186,7 +186,7 @@ contract EigenDADeployer is DeployOpenEigenLayer {
}

eigenDAServiceManagerImplementation = new EigenDAServiceManager(
avsDirectory,
IAVSDirectory(address(avsDirectory)),
registryCoordinator,
stakeRegistry
);
Expand Down
5 changes: 3 additions & 2 deletions contracts/script/deploy/goerliv2/GoerliV2_Deploy.s.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.12;

/*
import {PauserRegistry} from "eigenlayer-core/contracts/permissions/PauserRegistry.sol";
import {EmptyContract} from "eigenlayer-core/test/mocks/EmptyContract.sol";
Expand Down Expand Up @@ -83,7 +83,7 @@ contract Deployer_GV2 is ExistingDeploymentParser {
/**
* 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), ""))
);
Expand Down Expand Up @@ -359,3 +359,4 @@ contract Deployer_GV2 is ExistingDeploymentParser {
ejector = stdJson.readAddress(config_data, ".permissions.ejector");
}
}
*/
3 changes: 1 addition & 2 deletions contracts/src/core/EigenDAServiceManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
pragma solidity ^0.8.9;

import {Pausable} from "eigenlayer-core/contracts/permissions/Pausable.sol";
import {IAVSDirectory} from "eigenlayer-core/contracts/interfaces/IAVSDirectory.sol";
import {IPauserRegistry} from "eigenlayer-core/contracts/interfaces/IPauserRegistry.sol";

import {ServiceManagerBase} from "eigenlayer-middleware/ServiceManagerBase.sol";
import {ServiceManagerBase, IAVSDirectory} from "eigenlayer-middleware/ServiceManagerBase.sol";
import {BLSSignatureChecker} from "eigenlayer-middleware/BLSSignatureChecker.sol";
import {IRegistryCoordinator} from "eigenlayer-middleware/interfaces/IRegistryCoordinator.sol";
import {IStakeRegistry} from "eigenlayer-middleware/interfaces/IStakeRegistry.sol";
Expand Down

0 comments on commit fd3c98c

Please sign in to comment.