Skip to content

Commit 7e221ef

Browse files
authored
Update 2_deploy_contracts.md
1 parent 89cc238 commit 7e221ef

File tree

1 file changed

+9
-25
lines changed

1 file changed

+9
-25
lines changed

docs/0_internal/2_deploy_contracts.md

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -19,39 +19,23 @@ Also, you will be able to deploy the Batcher Payment Service contract.
1919
foundryup -v nightly-a428ba6ad8856611339a6319290aade3347d25d9
2020
```
2121

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-
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-
cast wallet new
30-
```
31-
32-
3322
## AlignedServiceManager Contracts
3423

35-
This section will guide you through the deployment of the Aligned Layer contracts.
36-
37-
After finishing the deployment, you will have the deployed contract addresses.
38-
39-
### Set .env variables
40-
41-
To deploy the contracts, you need to set the `PRIVATE_KEY` and `ETHERSCAN_API_KEY` variables in the `.env` file.
24+
1 You should have a keystore for the Aggregator, with the seedphrase saved on paper
25+
1. If you don't have an API Key on Etherscan, create one following this guide [guide](https://docs.etherscan.io/getting-started/viewing-api-usage-statistics).
26+
2. If you don't have it, create a wallet to deploy Aligned with ```cast wallet new```. and keep the ```Address``` and ```Private Key```values
27+
3. Transfer around 35M gas to the ```Address```
28+
4. ```CD``` into the Aligned repo
29+
5. Set the ```PRIVATE_KEY``` and ```ETHERSCAN_API_KEY```on the ```.env``` used to deploy. ```contracts/scripts/.env.mainnet``` or ```contracts/scripts/.env.holesky``` or ```contracts/scripts/.env.sepolia```
30+
6. Set `owner`, `upgrader`, `churner`, `ejector` and `deployer` values of ```contracts/script/deploy/config/mainnet/aligned.holesky.config.json``` to the multisig controlling this processes, or the owner of the deploying address, depending on what you want
4231

43-
For **Mainnet** deployment, the `env` file is available [here](../../contracts/scripts/.env.mainnet).
44-
45-
For **Holesky** deployment, the `env` file is available [here](../../contracts/scripts/.env.holesky).
32+
You need to set the following address in the config file:
4633

47-
For **Sepolia** deployment, the `env` file is available [here](../../contracts/scripts/.env.sepolia).
34+
- `aggregator`: Address that will be the aggregator of Aligned.
4835

49-
### Set DEPLOY_CONFIG_PATH file
5036

51-
You need to set the following address in the config file:
5237

5338
- `owner`: Address that will be the owner of the contracts. This address can be a multisig or a normal wallet.
54-
- `aggregator`: Address that will be the aggregator of Aligned.
5539
- `upgrader`: Address that will be the upgrader of the contracts. This address can be a multisig or a normal wallet.
5640
- `churner`: Address that will be the churner of the contracts. This address can be a multisig or a normal wallet.
5741
- `ejector`: Address that will be the ejector of the contracts. This address can be a multisig or a normal wallet.

0 commit comments

Comments
 (0)