@@ -13,6 +13,7 @@ import "../../../src/contracts/core/DelegationManager.sol";
1313import "../../../src/contracts/core/AVSDirectory.sol " ;
1414import "../../../src/contracts/core/RewardsCoordinator.sol " ;
1515import "../../../src/contracts/core/AllocationManager.sol " ;
16+ import "../../../src/contracts/core/AllocationManagerView.sol " ;
1617import "../../../src/contracts/permissions/PermissionController.sol " ;
1718import "../../../src/contracts/strategies/StrategyBaseTVLLimits.sol " ;
1819import "../../../src/contracts/strategies/StrategyFactory.sol " ;
@@ -60,6 +61,8 @@ contract DeployFromScratch is Script, Test {
6061 StrategyBase public baseStrategyImplementation;
6162 AllocationManager public allocationManagerImplementation;
6263 AllocationManager public allocationManager;
64+ AllocationManagerView public allocationManagerView;
65+ AllocationManagerView public allocationManagerViewImplementation;
6366 PermissionController public permissionController;
6467 PermissionController public permissionControllerImplementation;
6568
@@ -211,6 +214,9 @@ contract DeployFromScratch is Script, Test {
211214 strategyFactory = StrategyFactory (
212215 address (new TransparentUpgradeableProxy (address (emptyContract), address (eigenLayerProxyAdmin), "" ))
213216 );
217+ allocationManagerView = AllocationManagerView (
218+ address (new TransparentUpgradeableProxy (address (emptyContract), address (eigenLayerProxyAdmin), "" ))
219+ );
214220 permissionController = PermissionController (
215221 address (new TransparentUpgradeableProxy (address (emptyContract), address (eigenLayerProxyAdmin), "" ))
216222 );
@@ -228,22 +234,23 @@ contract DeployFromScratch is Script, Test {
228234 delegationImplementation = new DelegationManager (
229235 strategyManager,
230236 eigenPodManager,
231- allocationManager,
237+ IAllocationManager ( address ( allocationManager)) ,
232238 eigenLayerPauserReg,
233239 permissionController,
234240 MIN_WITHDRAWAL_DELAY,
235241 SEMVER
236242 );
237243
238- strategyManagerImplementation = new StrategyManager (allocationManager, delegation, eigenLayerPauserReg, SEMVER);
244+ strategyManagerImplementation =
245+ new StrategyManager (IAllocationManager (address (allocationManager)), delegation, eigenLayerPauserReg, SEMVER);
239246 avsDirectoryImplementation = new AVSDirectory (delegation, eigenLayerPauserReg, SEMVER);
240247 eigenPodManagerImplementation =
241248 new EigenPodManager (ethPOSDeposit, eigenPodBeacon, delegation, eigenLayerPauserReg, SEMVER);
242249 rewardsCoordinatorImplementation = new RewardsCoordinator (
243250 IRewardsCoordinatorTypes.RewardsCoordinatorConstructorParams (
244251 delegation,
245252 strategyManager,
246- allocationManager,
253+ IAllocationManager ( address ( allocationManager)) ,
247254 eigenLayerPauserReg,
248255 permissionController,
249256 REWARDS_COORDINATOR_CALCULATION_INTERVAL_SECONDS,
@@ -255,6 +262,7 @@ contract DeployFromScratch is Script, Test {
255262 )
256263 );
257264 allocationManagerImplementation = new AllocationManager (
265+ allocationManagerView,
258266 delegation,
259267 eigenStrategy,
260268 eigenLayerPauserReg,
@@ -263,6 +271,8 @@ contract DeployFromScratch is Script, Test {
263271 ALLOCATION_CONFIGURATION_DELAY,
264272 SEMVER
265273 );
274+ allocationManagerViewImplementation =
275+ new AllocationManagerView (delegation, eigenStrategy, DEALLOCATION_DELAY, ALLOCATION_CONFIGURATION_DELAY);
266276 permissionControllerImplementation = new PermissionController (SEMVER);
267277 strategyFactoryImplementation = new StrategyFactory (strategyManager, eigenLayerPauserReg, SEMVER);
268278
@@ -319,6 +329,11 @@ contract DeployFromScratch is Script, Test {
319329 )
320330 );
321331
332+ eigenLayerProxyAdmin.upgrade (
333+ ITransparentUpgradeableProxy (payable (address (allocationManagerView))),
334+ address (allocationManagerViewImplementation)
335+ );
336+
322337 eigenLayerProxyAdmin.upgrade (
323338 ITransparentUpgradeableProxy (payable (address (permissionController))),
324339 address (permissionControllerImplementation)
@@ -480,7 +495,7 @@ contract DeployFromScratch is Script, Test {
480495 "rewardsCoordinator: strategyManager address not set correctly "
481496 );
482497 require (
483- delegationContract.allocationManager () == allocationManager,
498+ delegationContract.allocationManager () == IAllocationManager ( address ( allocationManager)) ,
484499 "delegationManager: allocationManager address not set correctly "
485500 );
486501 require (
0 commit comments