Skip to content

Commit

Permalink
Feat(docs): add docs for unpause process with multisig (#1497)
Browse files Browse the repository at this point in the history
Co-authored-by: JuArce <[email protected]>
Co-authored-by: Klaus @ LambdaClass <[email protected]>
Co-authored-by: Marcos Nicolau <[email protected]>
Co-authored-by: Urix <[email protected]>
  • Loading branch information
5 people authored Dec 9, 2024
1 parent 990ec1d commit eadd8ae
Show file tree
Hide file tree
Showing 18 changed files with 156 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/0_internal/4_b_1_propose_pause.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ To propose the pause transaction you can follow the steps below:

![Transaction Builder](./images/4_b_1_pause_2.png)

3. . Get the `AlignedLayerServiceManager` 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```
3. Get the `AlignedLayerServiceManager` 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```

4. Paste the `AlignedLayerServiceManager` address on `Enter Address or ENS Name`

Expand Down
100 changes: 100 additions & 0 deletions docs/0_internal/4_b_3_propose_unpause.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
# Propose the Transaction for UnPause using Multisig

If you want to unpause the contracts, you can propose the unpause transaction using the multisig wallet.

## Prerequisites

- You need to have deployed the contracts following the [Deploy Contracts Guide](./2_deploy_contracts.md).

## Propose transaction for UnPause AlignedLayerServiceManager

To propose the unpause transaction you can follow the steps below:

1. Go to [Safe](https://app.safe.global/home)

2. Click on `New transaction` -> `Transaction Builder`

![New transaction](./images/4_b_1_unpause_1.png)

![Transaction Builder](./images/4_b_1_unpause_2.png)

3. Get the `AlignedLayerServiceManager` 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```

4. Paste the `AlignedLayerServiceManager` address on `Enter Address or ENS Name`

![Enter Address](./images/4_b_1_unpause_3.png)

5. As this is a Proxy contract, choose `Use Implementation ABI`

![Use Implementation ABI](./images/4_b_1_unpause_4.png)

6. In `contract method selector` choose `unpause()` and within `newPausedStatus(uint256)` enter the desired pause status as described in [pausable.md](./pausable.md). Use pause status `0` for pausable contracts.

![Choose pause](./images/4_b_1_unpause_5.png)

7. Click on `+ Add new transaction`

You should see the new transaction to be executed

8. Click on `Create batch` to create the transaction.

![Choose pause](./images/4_b_1_unpause_6.png)

9. Simulate the transaction by clicking on `Simulate`

10. If everything is correct, click on `Send batch` to send the transaction.

11. Simulate the transaction, and if everything is correct, click on `Sign`.

![Send batch](./images/4_b_1_unpause_7.png)

> [!NOTE]
> In the `call` field, you will see `fallback`.
#### 12. Wait for the transaction to be executed. You can check the transaction status on the `Transactions` tab.


## Propose transaction for UnPause BatcherPaymentService

To propose the unpause transaction you can follow the steps below:

1. Create the unpause transaction on [Safe](https://app.safe.global/home)

2. Click on `New transaction` -> `Transaction Builder`

![New transaction](./images/4_b_1_unpause_1.png)

![Transaction Builder](./images/4_b_1_unpause_2.png)

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```

4. Paste the `BatcherPaymentService` address on `Enter Address or ENS Name`

![Enter Address](./images/4_b_1_unpause_3.png)

5. As this is a Proxy contract, choose `Use Implementation ABI`

![Use Implementation ABI](./images/4_b_1_unpause_4.png)

6. In `contract method selector` choose `unpause()`

![Choose pause](./images/4_b_1_unpause_8.png)

7. Then click on `+ Add new transaction`

You should see the new transaction to be executed. Then click on `Create batch` to create the transaction.

![Add new transaction](./images/4_b_1_unpause_9.png)

8. Review and confirm you are interacting with the correct `BatcherPaymentService` contract and you are calling the `unpause` function.

![Review transaction](./images/4_b_1_unpause_10.png)

9. Simulate the transaction by clicking on `Simulate`

10. If everything is correct, click on `Send batch` to send the transaction.

11. Review the transaction and click on `Sign` to sign the transaction.

![Send batch](./images/4_b_1_unpause_11.png)

12. If the transaction is correctly created, you have to wait until the required Multisig member signs the transaction to send it. For this, you can follow [the following guide](./4_b_4_approve_unpause.md)
55 changes: 55 additions & 0 deletions docs/0_internal/4_b_4_approve_unpause.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Approve the UnPause Transaction

Once the transaction is proposed, the multisig owners must approve the transaction.

## Approve the UnPause for AlignedLayerServiceManager

1. Go to [Safe](https://app.safe.global/home) and connect your wallet.

2. Go to the `Transactions` tab and find the transaction that was proposed.

3. Get the ```unpause(uint256)``` signature by running:

```bash
cast calldata "unpause(uint256)" <PAUSE_STATE>
```

for ```PAUSE_STATE=3```

It must show you ```0xfabc1cbc0000000000000000000000000000000000000000000000000000000000000003```, with ```0xfabc1cbc``` being the function identifier.

4. Click on the transaction, and then click on ```Advanced Details```.

![Check details](images/4_b_2_approve_unpause_1.png)

5. Copy the ```Raw Data```, paste it in a text editor and verify it is the same value as the one you got in step 3.

6. If the data is correct, click on the `Confirm` button.

7. Simulate the transaction. If everything is correct, click on the `Sign` button.

![Sign transaction](images/4_b_2_approve_unpause_2.png)

8. Once the transaction is executed, the unpause will be effective.

## Approve the UnPause for BatcherPaymentService

1. Go to [Safe](https://app.safe.global/home) and connect your wallet.

2. Go to the `Transactions` tab and find the transaction that was proposed.

3. Click on the transaction and validate the data is correct.

The called function must be `unpause()` and the contract address must be the `BatcherPaymentService` address.

![Check details](images/4_b_2_approve_unpause_3.png)

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```

4. If the data is correct, click on the `Confirm` button.

5. Simulate the transaction. If everything is correct, click on the `Sign` button.

![Sign transaction](images/4_b_2_approve_unpause_4.png)

6. Once the transaction is executed, the unpause will be effective.
Binary file added docs/0_internal/images/4_b_1_unpause_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/0_internal/images/4_b_1_unpause_10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/0_internal/images/4_b_1_unpause_11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/0_internal/images/4_b_1_unpause_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/0_internal/images/4_b_1_unpause_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/0_internal/images/4_b_1_unpause_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/0_internal/images/4_b_1_unpause_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/0_internal/images/4_b_1_unpause_6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/0_internal/images/4_b_1_unpause_7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/0_internal/images/4_b_1_unpause_8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/0_internal/images/4_b_1_unpause_9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit eadd8ae

Please sign in to comment.