You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Get an API KEY from Etherescan to verify the contracts. You can follow this [guide](https://docs.etherscan.io/getting-started/viewing-api-usage-statistics).
21
23
22
-
## Eigenlayer Contracts
24
+
- You need a hot wallet with some ETH to deploy the contracts. The deployment cost is approximately 30M gas units.
23
25
24
-
To deploy Aligned contracts, you need previously deployed EigenLayer contracts.
25
-
26
-
These contracts are not deployed by Aligned. These are the current EigenLayer contracts:
- Aligned has his own Eigenlayer contracts deployed in Sepolia fortesting. You can find themin [Sepolia Contracts](../../contracts/script/output/sepolia/eigenlayer_deployment_output.json).
31
-
32
-
## Aligned Contracts
26
+
## AlignedServiceManager Contracts
33
27
34
28
This section will guide you through the deployment of the Aligned Layer contracts.
35
29
36
30
After finishing the deployment, you will have the deployed contract addresses.
37
31
38
32
### Set .env variables
39
33
40
-
To deploy the AlignedLayer contracts, you will need to set environment variables in a `.env` file in the same
41
-
directory as the deployment script (`contracts/scripts/`).
42
-
43
-
The necessary environment variables are:
34
+
To deploy the contracts, you need to set the `PRIVATE_KEY` and `ETHERSCAN_API_KEY` variables in the `.env` file.
|`RPC_URL`| The RPC URL of the network you want to deploy to. | https://ethereum-sepolia-rpc.publicnode.com | https://ethereum-holesky-rpc.publicnode.com | https://ethereum-rpc.publicnode.com |
48
-
|`PRIVATE_KEY`| The private key of the account you want to deploy the contracts with. |<your_private_key>|<your_private_key>|<your_private_key>|
49
-
|`EXISTING_DEPLOYMENT_INFO_PATH`| The path to the file containing the deployment info about EigenLayer. | ./script/output/sepolia/eigenlayer_deployment_output.json | ./script/output/holesky/eigenlayer_deployment_output.json | TBD |
50
-
|`DEPLOY_CONFIG_PATH`| The path to the deployment config file for the Service Manager. | ./script/deploy/config/sepolia/aligned.sepolia.config.json | ./script/deploy/config/holesky/aligned.holesky.config.json | TBD |
51
-
|`OUTPUT_PATH`| The path to the file where the deployment info will be saved. | ./script/output/sepolia/alignedlayer_deployment_output.json | ./script/output/holesky/alignedlayer_deployment_output.json | TBD |
52
-
|`ETHERSCAN_API_KEY`| API KEY to verify the contracts in Etherscan. |<your_etherscan_api_key>|<your_etherscan_api_key>|<your_etherscan_api_key>|
36
+
For **Mainnet** deployment, the `env` file is available [here](../../contracts/scripts/.env.mainnet).
53
37
54
-
You can find an example `.env` file in [.env.example.holesky](../../contracts/scripts/.env.example.holesky)
38
+
For **Holesky** deployment, the `env` file is available [here](../../contracts/scripts/.env.holesky).
55
39
56
-
> [!WARNING]
57
-
> All file paths must be inside the `script/` directory, as shown in`.env.example.holesky` because of `foundry`'s permissions to read and write files.
40
+
For **Sepolia** deployment, the `env` file is available [here](../../contracts/scripts/.env.sepolia).
58
41
59
42
### Set DEPLOY_CONFIG_PATH file
60
43
@@ -99,8 +82,22 @@ For example, if you are using a Multisig for the `upgrader` permission, you need
99
82
100
83
Once you have configured the `.env` and `DEPLOY_CONFIG_PATH` files, you can run the following command:
101
84
85
+
For **Mainnet** deployment:
86
+
87
+
```bash
88
+
make deploy_mainnet_aligned_contracts
89
+
```
90
+
91
+
For **Holesky** deployment:
92
+
93
+
```bash
94
+
make deploy_holesky_aligned_contracts
95
+
```
96
+
97
+
For **Sepolia** deployment:
98
+
102
99
```bash
103
-
make deploy_aligned_contracts
100
+
make deploy_sepolia_aligned_contracts
104
101
```
105
102
106
103
Once the contracts are deployed, you will see the following output at `OUTPUT_PATH` file:
0 commit comments