@@ -288,26 +288,43 @@ abstract contract IntegrationDeployer is ExistingDeploymentParser {
288
288
}
289
289
290
290
function _deployProxies () public {
291
- delegationManager =
292
- DelegationManager (address (new TransparentUpgradeableProxy (address (emptyContract), address (eigenLayerProxyAdmin), "" )));
293
- strategyManager =
294
- StrategyManager (address (new TransparentUpgradeableProxy (address (emptyContract), address (eigenLayerProxyAdmin), "" )));
295
- eigenPodManager =
296
- EigenPodManager (address (new TransparentUpgradeableProxy (address (emptyContract), address (eigenLayerProxyAdmin), "" )));
297
- rewardsCoordinator =
298
- RewardsCoordinator (address (new TransparentUpgradeableProxy (address (emptyContract), address (eigenLayerProxyAdmin), "" )));
299
- avsDirectory = AVSDirectory (address (new TransparentUpgradeableProxy (address (emptyContract), address (eigenLayerProxyAdmin), "" )));
300
- strategyFactory =
301
- StrategyFactory (address (new TransparentUpgradeableProxy (address (emptyContract), address (eigenLayerProxyAdmin), "" )));
302
- allocationManager =
303
- AllocationManager (address (new TransparentUpgradeableProxy (address (emptyContract), address (eigenLayerProxyAdmin), "" )));
304
- permissionController =
305
- PermissionController (address (new TransparentUpgradeableProxy (address (emptyContract), address (eigenLayerProxyAdmin), "" )));
306
- eigenPodBeacon = new UpgradeableBeacon (address (emptyContract));
307
- strategyBeacon = new UpgradeableBeacon (address (emptyContract));
308
-
291
+ if (address (delegationManager) == address (0 )) {
292
+ delegationManager =
293
+ DelegationManager (address (new TransparentUpgradeableProxy (address (emptyContract), address (eigenLayerProxyAdmin), "" )));
294
+ }
295
+ if (address (strategyManager) == address (0 )) {
296
+ strategyManager =
297
+ StrategyManager (address (new TransparentUpgradeableProxy (address (emptyContract), address (eigenLayerProxyAdmin), "" )));
298
+ }
299
+ if (address (eigenPodManager) == address (0 )) {
300
+ eigenPodManager =
301
+ EigenPodManager (address (new TransparentUpgradeableProxy (address (emptyContract), address (eigenLayerProxyAdmin), "" )));
302
+ }
303
+ if (address (rewardsCoordinator) == address (0 )) {
304
+ rewardsCoordinator =
305
+ RewardsCoordinator (address (new TransparentUpgradeableProxy (address (emptyContract), address (eigenLayerProxyAdmin), "" )));
306
+ }
307
+ if (address (avsDirectory) == address (0 )) {
308
+ avsDirectory = AVSDirectory (address (new TransparentUpgradeableProxy (address (emptyContract), address (eigenLayerProxyAdmin), "" )));
309
+ }
310
+ if (address (strategyFactory) == address (0 )) {
311
+ strategyFactory =
312
+ StrategyFactory (address (new TransparentUpgradeableProxy (address (emptyContract), address (eigenLayerProxyAdmin), "" )));
313
+ }
314
+ if (address (allocationManager) == address (0 )) {
315
+ allocationManager =
316
+ AllocationManager (address (new TransparentUpgradeableProxy (address (emptyContract), address (eigenLayerProxyAdmin), "" )));
317
+ }
318
+ if (address (permissionController) == address (0 )) {
319
+ permissionController =
320
+ PermissionController (address (new TransparentUpgradeableProxy (address (emptyContract), address (eigenLayerProxyAdmin), "" )));
321
+ }
322
+ if (address (eigenPodBeacon) == address (0 )) eigenPodBeacon = new UpgradeableBeacon (address (emptyContract));
323
+ if (address (strategyBeacon) == address (0 )) strategyBeacon = new UpgradeableBeacon (address (emptyContract));
309
324
// multichain
310
- keyRegistrar = KeyRegistrar (address (new TransparentUpgradeableProxy (address (emptyContract), address (eigenLayerProxyAdmin), "" )));
325
+ if (address (keyRegistrar) == address (0 )) {
326
+ keyRegistrar = KeyRegistrar (address (new TransparentUpgradeableProxy (address (emptyContract), address (eigenLayerProxyAdmin), "" )));
327
+ }
311
328
}
312
329
313
330
/// Deploy an implementation contract for each contract in the system
0 commit comments