@@ -14,7 +14,7 @@ import "../../../src/contracts/core/AVSDirectory.sol";
1414import "../../../src/contracts/core/RewardsCoordinator.sol " ;
1515import "../../../src/contracts/core/AllocationManager.sol " ;
1616import "../../../src/contracts/permissions/PermissionController.sol " ;
17-
17+ import " ../../../src/contracts/core/SlashingWithdrawalRouter.sol " ;
1818import "../../../src/contracts/strategies/StrategyBaseTVLLimits.sol " ;
1919import "../../../src/contracts/strategies/StrategyFactory.sol " ;
2020import "../../../src/contracts/strategies/StrategyBase.sol " ;
@@ -63,6 +63,8 @@ contract DeployFromScratch is Script, Test {
6363 AllocationManager public allocationManager;
6464 PermissionController public permissionController;
6565 PermissionController public permissionControllerImplementation;
66+ SlashingWithdrawalRouter public slashingWithdrawalRouter;
67+ SlashingWithdrawalRouter public slashingWithdrawalRouterImplementation;
6668
6769 EmptyContract public emptyContract;
6870
@@ -214,6 +216,9 @@ contract DeployFromScratch is Script, Test {
214216 permissionController = PermissionController (
215217 address (new TransparentUpgradeableProxy (address (emptyContract), address (eigenLayerProxyAdmin), "" ))
216218 );
219+ slashingWithdrawalRouter = SlashingWithdrawalRouter (
220+ address (new TransparentUpgradeableProxy (address (emptyContract), address (eigenLayerProxyAdmin), "" ))
221+ );
217222
218223 // if on mainnet, use the ETH2 deposit contract address
219224 if (chainId == 1 ) ethPOSDeposit = IETHPOSDeposit (0x00000000219ab540356cBB839Cbe05303d7705Fa );
@@ -235,7 +240,8 @@ contract DeployFromScratch is Script, Test {
235240 SEMVER
236241 );
237242
238- strategyManagerImplementation = new StrategyManager (delegation, eigenLayerPauserReg, SEMVER);
243+ strategyManagerImplementation =
244+ new StrategyManager (delegation, slashingWithdrawalRouter, eigenLayerPauserReg, SEMVER);
239245 avsDirectoryImplementation = new AVSDirectory (delegation, eigenLayerPauserReg, SEMVER);
240246 eigenPodManagerImplementation =
241247 new EigenPodManager (ethPOSDeposit, eigenPodBeacon, delegation, eigenLayerPauserReg, SEMVER);
@@ -264,6 +270,8 @@ contract DeployFromScratch is Script, Test {
264270 );
265271 permissionControllerImplementation = new PermissionController (SEMVER);
266272 strategyFactoryImplementation = new StrategyFactory (strategyManager, eigenLayerPauserReg, SEMVER);
273+ slashingWithdrawalRouterImplementation =
274+ new SlashingWithdrawalRouter (allocationManager, strategyManager, eigenLayerPauserReg, SEMVER);
267275
268276 // Third, upgrade the proxy contracts to use the correct implementation contracts and initialize them.
269277 {
@@ -537,9 +545,9 @@ contract DeployFromScratch is Script, Test {
537545
538546 function _verifyInitialOwners () internal view {
539547 require (strategyManager.owner () == executorMultisig, "strategyManager: owner not set correctly " );
540- require (delegation.owner () == executorMultisig, "delegation: owner not set correctly " );
548+ // require(delegation.owner() == executorMultisig, "delegation: owner not set correctly");
541549 require (eigenPodManager.owner () == executorMultisig, "eigenPodManager: owner not set correctly " );
542- require (allocationManager.owner () == executorMultisig, "allocationManager: owner not set correctly " );
550+ // require(allocationManager.owner() == executorMultisig, "allocationManager: owner not set correctly");
543551 require (eigenLayerProxyAdmin.owner () == executorMultisig, "eigenLayerProxyAdmin: owner not set correctly " );
544552 require (eigenPodBeacon.owner () == executorMultisig, "eigenPodBeacon: owner not set correctly " );
545553 require (strategyBeacon.owner () == executorMultisig, "strategyBeacon: owner not set correctly " );
0 commit comments