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/3_b_1_deploy_new_impl.md
+38-53Lines changed: 38 additions & 53 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,29 +6,38 @@ To deploy a new implementation, you can follow the steps below.
6
6
7
7
1. Make sure you have set variables as specified in the [Deploy Contracts Guide](./2_deploy_contracts.md).
8
8
9
-
2. Add the following variables to the `.env` file:
10
-
11
-
```makefile
12
-
MULTISIG=true
13
-
```
9
+
2. Set ```MULTISIG=true``` on the ```.env``` used to deploy. ```contracts/scripts/.env.mainnet``` or ```contracts/scripts/.env.holesky``` or ```contracts/scripts/.env.sepolia```
14
10
15
11
## What contracts can be upgraded?
16
12
17
13
You can deploy the new implementation of the following contracts:
18
14
19
15
- AlignedLayerServiceManager
20
16
- BatcherPaymentService
21
-
- RegistryCoordinator
22
17
23
-
### Deploy New Implementation for AlignedLayerServiceManager
18
+
## Deploy New Implementation for AlignedLayerServiceManager
24
19
25
20
1. Deploy the new implementation by running:
26
21
27
-
```sh
28
-
make upgrade_aligned_contracts
22
+
For **Mainnet** deployment:
23
+
24
+
```bash
25
+
make upgrade_aligned_contracts NETWORK=mainnet
29
26
```
30
27
31
-
If the new implementation is correctly deployed, the script will show the following message:
28
+
For **Holesky** deployment:
29
+
30
+
```bash
31
+
make upgrade_aligned_contracts NETWORK=holesky
32
+
```
33
+
34
+
For **Sepolia** deployment:
35
+
36
+
```bash
37
+
make upgrade_aligned_contracts NETWORK=sepolia
38
+
```
39
+
40
+
If the new implementation is correctly deployed, the terminal will show the following message:
32
41
33
42
```sh
34
43
The new aligned layer service manager implementation is <new_aligned_layer_service_manager_implementation>
@@ -60,18 +69,31 @@ You can deploy the new implementation of the following contracts:
60
69
>
61
70
> Make sure the `alignedServiceManagerImplementation` address is the same as the one you deployed in this guide.
62
71
63
-
### Deploy New Implementation for BatcherPaymentService
72
+
## Deploy New Implementation for BatcherPaymentService
64
73
65
74
1. Deploy the new implementation by running:
66
75
67
-
```shell
68
-
make upgrade_batcher_payment_service
76
+
For **Mainnet** deployment:
77
+
78
+
```bash
79
+
make upgrade_batcher_payment_service NETWORK=mainnet
69
80
```
81
+
82
+
For **Holesky** deployment:
83
+
84
+
```bash
85
+
make upgrade_batcher_payment_service NETWORK=holesky
86
+
```
87
+
88
+
For **Sepolia** deployment:
89
+
90
+
```bash
91
+
make upgrade_batcher_payment_service NETWORK=sepolia
92
+
```
70
93
71
-
If the new implementation is correctly deployed, the script will show the following message:
94
+
If the new implementation is correctly deployed, the script will show the following message:
72
95
73
-
`You can propose the upgrade transaction with the multisig using this calldata
74
-
<calldata>`
96
+
`You can propose the upgrade transaction with the multisig using this calldata <calldata>`
75
97
76
98
You should save this `calldata`for later use.
77
99
@@ -94,43 +116,6 @@ You can deploy the new implementation of the following contracts:
94
116
> [!NOTE]
95
117
> Make sure the `batcherPaymentServiceImplementation` address is the same as the one you deployed in this guide.
96
118
97
-
### Deploy New Implementation for RegistryCoordinator
98
-
99
-
1. Deploy the new implementation by running:
100
-
101
-
```sh
102
-
make upgrade_registry_coordinator
103
-
```
104
-
105
-
If the new implementation is correctly deployed, the script will show the following message:
106
-
107
-
`
108
-
You can propose the upgrade transaction with the multisig using this calldata
109
-
<calldata>
110
-
`
111
-
112
-
You should save this `calldata`for later use.
113
-
114
-
2. Get the `upgrade`functionsignature:
115
-
116
-
```bash
117
-
cast sig "upgrade(address, address)"
118
-
```
119
-
120
-
This will show the `upgrade` signature hash: `0x99a88ec4`.
This will show two addresses. The first one is the `registryCoordinator` address, and the second one is the new implementation address of `registryCoordinatorImplementation`.
129
-
130
-
> [!NOTE]
131
-
> Make sure the `registryCoordinator` address is the same as the one you deployed in the [Deploy Contracts Guide](./2_deploy_contracts.md).
132
-
>
133
-
> Make sure the `registryCoordinatorImplementation` address is the same as the one you deployed in this guide.
0 commit comments