-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity =0.8.12; | ||
|
||
import "src/core/EigenDAServiceManager.sol"; | ||
import "eigenlayer-scripts/utils/ExistingDeploymentParser.sol"; | ||
import "forge-std/Test.sol"; | ||
import "forge-std/Script.sol"; | ||
import "forge-std/StdJson.sol"; | ||
|
||
contract Deployer_Mainnet is ExistingDeploymentParser { | ||
|
||
string public existingCoreDeploymentPath = string(bytes("./script/deploy/mainnet/mainnet_addresses.json")); | ||
string public existingDADeploymentPath = string(bytes("script/deploy/mainnet/mainnet_deployment_data.json")); | ||
|
||
address registryCoordinator; | ||
address stakeRegistry; | ||
|
||
EigenDAServiceManager eigenDAServiceManagerImplementation; | ||
|
||
function run() external { | ||
_parseDeployedContracts(existingCoreDeploymentPath); | ||
registryCoordinator = stdJson.readAddress(existingDADeploymentPath, ".addresses.registryCoordinator"); | ||
stakeRegistry = stdJson.readAddress(existingDADeploymentPath, ".addresses.stakeRegistry"); | ||
|
||
vm.startBroadcast(); | ||
|
||
eigenDAServiceManagerImplementation = new EigenDAServiceManager( | ||
avsDirectory, | ||
IRegistryCoordinator(registryCoordinator), | ||
IStakeRegistry(stakeRegistry) | ||
); | ||
|
||
vm.stopBroadcast(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters