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
Copy file name to clipboardExpand all lines: docs/0_internal/2_deploy_contracts.md
+25-62Lines changed: 25 additions & 62 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,11 @@ Also, you will be able to deploy the Batcher Payment Service contract.
22
22
- 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).
23
23
24
24
- You need a hot wallet with some ETH to deploy the contracts. The deployment cost is approximately 30M gas units.
25
+
26
+
You can create a hot wallet with cast using the following command:
27
+
28
+
```bash
29
+
25
30
26
31
## AlignedServiceManager Contracts
27
32
@@ -41,46 +46,32 @@ For **Sepolia** deployment, the `env` file is available [here](../../contracts/s
41
46
42
47
### Set DEPLOY_CONFIG_PATH file
43
48
44
-
You need to complete the `DEPLOY_CONFIG_PATH` file with the following information:
49
+
You need to set the following address in the config file:
45
50
46
-
```json
47
-
{
48
-
"chainInfo": {
49
-
"chainId": "<chain_id>"
50
-
},
51
-
"permissions": {
52
-
"owner": "<owner_address>",
53
-
"aggregator": "<aggregator_address>",
54
-
"upgrader": "<upgrader_address>",
55
-
"churner": "<churner_address>",
56
-
"ejector": "<ejector_address>",
57
-
"deployer": "<deployer_address>",
58
-
"initalPausedStatus": 0
59
-
},
60
-
"minimumStakes": [],
61
-
"strategyWeights": [],
62
-
"operatorSetParams": [],
63
-
"uri": ""
64
-
}
65
-
```
51
+
- `owner`: Address that will be the owner of the contracts. This address can be a multisig or a normal wallet.
52
+
- `aggregator`: Address that will be the aggregator of Aligned.
53
+
- `upgrader`: Address that will be the upgrader of the contracts. This address can be a multisig or a normal wallet.
54
+
- `churner`: Address that will be the churner of the contracts. This address can be a multisig or a normal wallet.
55
+
- `ejector`: Address that will be the ejector of the contracts. This address can be a multisig or a normal wallet.
56
+
- `deployer`: Address that will be the deployer of the contracts. This address can be a multisig or a normal wallet.
66
57
67
-
You can find an example config file in [aligned.holesky.config.json](../../contracts/script/deploy/config/holesky/aligned.holesky.config.json).
58
+
For **Mainnet** deployment, complete the following [config file](../../contracts/script/deploy/config/mainnet/aligned.mainnet.config.json).
59
+
60
+
For **Holesky** deployment, complete the following [config file](../../contracts/script/deploy/config/holesky/aligned.holesky.config.json).
61
+
62
+
For **Sepolia** deployment, complete the following [config file](../../contracts/script/deploy/config/sepolia/aligned.sepolia.config.json).
68
63
69
64
> [!NOTE]
70
65
>
66
+
> Strategies are already filled in the config files. Also, you can find them in the following links
67
+
>
71
68
> You can find the list of Mainnet strategies for the `strategyWeights` field [here](https://github.com/Layr-Labs/eigenlayer-contracts?tab=readme-ov-file#current-mainnet-deployment)
72
69
>
73
70
> You can find the list of Holesky strategies for the `strategyWeights` field [here](https://github.com/Layr-Labs/eigenlayer-contracts?tab=readme-ov-file#current-testnet-deployment)
74
71
75
-
#### Multisig configuration
76
-
77
-
If you are using a Multisig forthe contracts management (like upgrades or pauses), you need to set the Multisig addressin the `permissions` sections.
78
-
79
-
For example, if you are using a Multisig forthe `upgrader` permission, you need to set the Multisig addressin the `upgrader` field.
80
-
81
72
### Deploy the contracts
82
73
83
-
Once you have configured the `.env` and `DEPLOY_CONFIG_PATH` files, you can run the following command:
74
+
Once you have configured the `.env` and `config` files, you can run the following command:
84
75
85
76
For **Mainnet** deployment:
86
77
@@ -100,40 +91,12 @@ For **Sepolia** deployment:
100
91
make deploy_sepolia_aligned_contracts
101
92
```
102
93
103
-
Once the contracts are deployed, you will see the following output at `OUTPUT_PATH` file:
94
+
If the deployment is correct, you will find the deployment information here:
0 commit comments