|
| 1 | +# Propose the Transaction for Pause using Multisig |
| 2 | + |
| 3 | +If you want to pause the contracts, you can propose the pause transaction using the multisig wallet. |
| 4 | + |
| 5 | +## Prerequisites |
| 6 | + |
| 7 | +- You need to have deployed the contracts following the [Deploy Contracts Guide](./2_deploy_contracts.md). |
| 8 | + |
| 9 | +## Propose transaction for Pause AlignedLayerServiceManager |
| 10 | + |
| 11 | +To propose the pause transaction you can follow the steps below: |
| 12 | + |
| 13 | +1. Create the pause transaction on [Safe](https://app.safe.global/home) |
| 14 | + |
| 15 | +2. Click on `New transaction` -> `Transaction Builder` |
| 16 | + |
| 17 | +  |
| 18 | + |
| 19 | +  |
| 20 | + |
| 21 | +3. . Enable `Custom data` |
| 22 | + |
| 23 | +4. . Get the `AlignedLayerServiceManager` address: |
| 24 | + |
| 25 | + ```bash |
| 26 | + # SEPOLIA |
| 27 | + jq -r ".addresses.alignedLayerServiceManager" contracts/script/output/sepolia/alignedlayer_deployment_output.json | pbcopy |
| 28 | + ``` |
| 29 | + |
| 30 | + ```bash |
| 31 | + # HOLESKY |
| 32 | + jq -r ".addresses.alignedLayerServiceManager" contracts/script/output/holesky/alignedlayer_deployment_output.json | pbcopy |
| 33 | + ``` |
| 34 | + |
| 35 | + ```bash |
| 36 | + # MAINNET |
| 37 | + jq -r ".addresses.alignedLayerServiceManager" contracts/script/output/mainnet/alignedlayer_deployment_output.json | pbcopy |
| 38 | + ``` |
| 39 | + |
| 40 | +> [!NOTE] |
| 41 | +> Make sure to set the path to the correct deployment output file. |
| 42 | + |
| 43 | +5. Paste the `AlignedLayerServiceManager` address on `Enter Address or ENS Name` |
| 44 | + |
| 45 | +  |
| 46 | + |
| 47 | +6. Set the `ETH Value` to 0. |
| 48 | + |
| 49 | +7. . Generate the function calldata |
| 50 | + |
| 51 | + ```bash |
| 52 | + cast calldata "pauseAll()" |
| 53 | + ``` |
| 54 | + |
| 55 | + This will show the `pauseAll()` calldata: `0x595c6a67`. |
| 56 | +
|
| 57 | +8. Paste the `calldata` on `Enter Data` |
| 58 | +
|
| 59 | +  |
| 60 | +
|
| 61 | +9. Click on `+ Add new transaction` |
| 62 | +
|
| 63 | + You should see the new transaction to be executed |
| 64 | +
|
| 65 | +10. Click on `Create batch` to create the transaction. |
| 66 | +
|
| 67 | +11. Simulate the transaction by clicking on `Simulate` |
| 68 | +
|
| 69 | +12. Check the data matches with the generated data on step 7. |
| 70 | +
|
| 71 | +  |
| 72 | +
|
| 73 | +13. If everything is correct, click on `Send batch` to send the transaction. |
| 74 | +
|
| 75 | +14. Simulate the transaction, and if everything is correct, click on `Sign`. |
| 76 | +
|
| 77 | +  |
| 78 | +
|
| 79 | +> [!NOTE] |
| 80 | +> In the `call` field, you will see `fallback`. |
| 81 | +
|
| 82 | +15. Wait for the transaction to be executed. You can check the transaction status on the `Transactions` tab. |
| 83 | +
|
| 84 | +
|
| 85 | +## Propose transaction for Pause BatcherPaymentService |
| 86 | +
|
| 87 | +To propose the pause transaction you can follow the steps below: |
| 88 | +
|
| 89 | +1. Create the pause transaction on [Safe](https://app.safe.global/home) |
| 90 | +
|
| 91 | +2. Click on `New transaction` -> `Transaction Builder` |
| 92 | +
|
| 93 | +  |
| 94 | +
|
| 95 | +  |
| 96 | +
|
| 97 | +3. . Get the `BatcherPaymentService` address: |
| 98 | +
|
| 99 | + ```bash |
| 100 | + # SEPOLIA |
| 101 | + jq -r ".addresses.batcherPaymentService" contracts/script/output/sepolia/alignedlayer_deployment_output.json | pbcopy |
| 102 | + ``` |
| 103 | +
|
| 104 | + ```bash |
| 105 | + # HOLESKY |
| 106 | + jq -r ".addresses.batcherPaymentService" contracts/script/output/holesky/alignedlayer_deployment_output.json | pbcopy |
| 107 | + ``` |
| 108 | +
|
| 109 | + ```bash |
| 110 | + # MAINNET |
| 111 | + jq -r ".addresses.batcherPaymentService" contracts/script/output/mainnet/alignedlayer_deployment_output.json | pbcopy |
| 112 | + ``` |
| 113 | +
|
| 114 | +> [!NOTE] |
| 115 | +> Make sure to set the path to the correct deployment output file. |
| 116 | +
|
| 117 | +5. Paste the `BatcherPaymentService` address on `Enter Address or ENS Name` |
| 118 | +
|
| 119 | +  |
| 120 | +
|
| 121 | +6. As this is a Proxy contract, choose `Use Implementation ABI` |
| 122 | +
|
| 123 | +  |
| 124 | +
|
| 125 | +7. In `contract method selector` choose `pause()` |
| 126 | +
|
| 127 | +  |
| 128 | +
|
| 129 | +8. Then click on `+ Add new transaction` |
| 130 | +
|
| 131 | + You should see the new transaction to be executed. Then click on `Create batch` to create the transaction. |
| 132 | +
|
| 133 | +  |
| 134 | +
|
| 135 | +9. Review and confirm you are interacting with the correct `BatcherPaymentService` contract and you are calling the `pause` function. |
| 136 | +
|
| 137 | +  |
| 138 | +
|
| 139 | +10. Simulate the transaction by clicking on `Simulate` |
| 140 | +
|
| 141 | +11. If everything is correct, click on `Send batch` to send the transaction. |
| 142 | +
|
| 143 | +12. Review the transaction and click on `Sign` to sign the transaction. |
| 144 | +
|
| 145 | +  |
| 146 | +
|
| 147 | +13. If the transaction is correctly created, you have to wait until the required Multisig member signs the transaction to send it. |
0 commit comments