Skip to content

Commit 7ec4c39

Browse files
committed
docs: update propose upgrade
1 parent 56f4839 commit 7ec4c39

File tree

1 file changed

+54
-30
lines changed

1 file changed

+54
-30
lines changed

docs/0_internal/3_b_2_propose_upgrade.md

Lines changed: 54 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
After deploying a new implementation candidate for the upgrade, you need to propose the upgrade transaction using the multisig wallet.
44

5-
## Propose transaction
5+
## Propose transaction for AlignedLayerServiceManager
66

77
To propose the upgrade transaction you can follow the steps below:
88

@@ -14,41 +14,17 @@ To propose the upgrade transaction you can follow the steps below:
1414

1515
![Transaction Builder](./images/3_b_2_multisig_2.png)
1616

17-
3. Enable `Custom data`
18-
1917
4. Get the `alignedLayerProxyAdmin` address from ```contracts/script/output/mainnet/alignedlayer_deployment_output.json``` or ```contracts/script/output/holesky/alignedlayer_deployment_output.json``` or ```contracts/script/output/sepolia/alignedlayer_deployment_output.json```, and paste it on `Enter Address or ENS Name`
2018

21-
5. Once you paste the `alignedLayerProxyAdmin` address, the ABI should be automatically filled.
22-
23-
![Enter Address or ENS Name](./images/3_b_2_multisig_3.png)
24-
25-
![Enter ABI](./images/3_b_2_multisig_4.png)
26-
27-
6. Set the `ETH Value` as 0
28-
29-
![ETH Value](./images/3_b_2_multisig_5.png)
30-
31-
7. If you want to upgrade the ```alignedLayerServiceManager``` get the ```alignedLayerServiceManager``` and ```alignedServiceManagerImplementation``` address from ```contracts/script/output/mainnet/alignedlayer_deployment_output.json``` or ```contracts/script/output/holesky/alignedlayer_deployment_output.json``` or ```contracts/script/output/sepolia/alignedlayer_deployment_output.json```.
32-
33-
If you want to upgrade the ```batcherPaymentService``` get the ```batcherPaymentServiceImplementation``` address from ```contracts/script/output/mainnet/alignedlayer_deployment_output.json``` or ```contracts/script/output/holesky/alignedlayer_deployment_output.json``` or ```contracts/script/output/sepolia/alignedlayer_deployment_output.json```.
34-
35-
8. If you want to upgrade the ```alignedLayerServiceManager``` generate the `calldata` for the upgrade transaction by running:
36-
37-
```bash
38-
cast calldata "upgrade(address, address)" <alignedLayerServiceManager> <alignedLayerServiceManagerImplementation>
39-
```
40-
41-
If you want to upgrade the ```batcherPaymentService``` generate the `calldata` for the upgrade transaction by running:
19+
5. Once you paste the address, the ABI should be automatically filled.
4220

43-
```bash
44-
cast calldata "upgradeTo(address)" <batcherPaymentServiceImplementation>
45-
```
21+
6. Choose the method ```upgrade``` in ```Contract method selector```.
4622

47-
9. Paste the calldata obtained from the deployment of the new implementation on the `Data` box and click on `+ Add new transaction`.
23+
7. Get the ```alignedLayerServiceManager``` and ```alignedServiceManagerImplementation``` address from ```contracts/script/output/mainnet/alignedlayer_deployment_output.json``` or ```contracts/script/output/holesky/alignedlayer_deployment_output.json``` or ```contracts/script/output/sepolia/alignedlayer_deployment_output.json```.
4824

49-
![Data](./images/3_b_2_multisig_6.png)
25+
8. Paste ```alignedLayerServiceManager``` address in ```proxy (address)```
5026

51-
You should see the new transaction to be executed on the right side.
27+
9. Paste ```alignedServiceManagerImplementation``` address in ```implementation (address)```
5228

5329
10. Click on `Create batch` to create the transaction.
5430

@@ -75,3 +51,51 @@ To propose the upgrade transaction you can follow the steps below:
7551
14. If the transaction is correctly created, you have to wait until the required Multisig member signs the transaction to send it.
7652

7753
A guide on how to sign the transaction can be found [here](./3_b_3_approve_upgrade.md)
54+
55+
56+
## Propose transaction for BatcherPaymentService
57+
58+
1. Go to [Safe](https://app.safe.global/home)
59+
60+
2. Click on `New transaction` -> `Transaction Builder`
61+
62+
![New transaction](./images/3_b_2_multisig_1.png)
63+
64+
![Transaction Builder](./images/3_b_2_multisig_2.png)
65+
66+
3. Get the `batcherPaymentService` address from ```contracts/script/output/mainnet/alignedlayer_deployment_output.json``` or ```contracts/script/output/holesky/alignedlayer_deployment_output.json``` or ```contracts/script/output/sepolia/alignedlayer_deployment_output.json```, and paste it on `Enter Address or ENS Name`
67+
68+
4. Once you paste the address, the ABI should be automatically filled.
69+
70+
5. Choose the method ```upgradeTo``` in ```Contract method selector```.
71+
72+
6. Get the ```batcherPaymentServiceImplementation``` address from ```contracts/script/output/mainnet/alignedlayer_deployment_output.json``` or ```contracts/script/output/holesky/alignedlayer_deployment_output.json``` or ```contracts/script/output/sepolia/alignedlayer_deployment_output.json```.
73+
74+
7. Paste ```batcherPaymentServiceImplementation``` address in ```newImplementation (address)```
75+
76+
8. Click on `Create batch` to create the transaction.
77+
78+
![Create batch](./images/3_b_2_multisig_7.png)
79+
80+
9. Review and confirm the transaction.
81+
82+
To make sure everything is fine, simulate the transaction by clicking on `Simulate batch`
83+
84+
Once the simulation is successful, click on `Send Batch` to send the transaction.
85+
86+
![Simulate batch](./images/3_b_2_multisig_8.png)
87+
88+
10. Confirm the transaction checking the function being called is correct and the contract address is the one you deployed.
89+
90+
If everything is correct, click on `Sign` to send the transaction.
91+
92+
![Confirm transaction](./images/3_b_2_multisig_9.png)
93+
94+
11. Now in your transactions, you should be able to see the newly created transaction.
95+
96+
![New transaction](./images/3_b_2_multisig_10.png)
97+
98+
12. If the transaction is correctly created, you have to wait until the required Multisig member signs the transaction to send it.
99+
100+
A guide on how to sign the transaction can be found [here](./3_b_3_approve_upgrade.md)
101+

0 commit comments

Comments
 (0)