-
Notifications
You must be signed in to change notification settings - Fork 109
Fusaka Prestate Update Unichain Sepolia Task #1239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
9591da0
Adding initial files
Wazabie 63770d9
Add Ink
Wazabie b2d826a
Base Adding initial files
Wazabie 5adb525
Add initial Uni files
Wazabie 1277170
Merge branch 'main' into uni-sep-fusaka-prestate
Wazabie af270c3
Merge branch 'main' into uni-sep-fusaka-prestate
Wazabie a13dbfb
Update Base task
Wazabie b2a3455
Update prestate
Wazabie 3736074
Merge branch 'main' into uni-sep-fusaka-prestate
Wazabie eb96a10
Update prestate
Wazabie 722d01f
Update other tasks aligning with other PRs
Wazabie 0f2efcd
Remove base task
Wazabie 4ff91a9
Update src/tasks/sep/036-uni-sep-fusaka-prestate/VALIDATION.md
Wazabie 7fd57b1
Update src/tasks/sep/036-uni-sep-fusaka-prestate/VALIDATION.md
Wazabie bf61fd3
Update config.toml
Wazabie 05ffcc0
Merge branch 'main' into uni-sep-fusaka-prestate
Wazabie cc12644
update number task
Wazabie d6c8715
Merge branch 'uni-sep-fusaka-prestate' of https://github.com/ethereum…
Wazabie 48be03e
Update README.md
Wazabie 2f5a28c
Update VALIDATION.md
Wazabie f31b4a8
Update README.md
Wazabie bb5134a
Update VALIDATION.md
Wazabie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
TENDERLY_GAS=15000000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# 035-uni-sep-fusaka-prestate | ||
|
||
Status: [READY TO SIGN] | ||
|
||
## Objective | ||
|
||
This task uses `op-contract/v4.1.0` OPContractsManager to update the prestate of Unichain Sepolia to the Fusaka compatible prestate. | ||
|
||
## Simulation & Signing | ||
|
||
Simulation commands for each safe: | ||
```bash | ||
cd src/tasks/sep/035-uni-sep-fusaka-prestate | ||
SIMULATE_WITHOUT_LEDGER=1 SKIP_DECODE_AND_PRINT=1 just --dotenv-path $(pwd)/.env simulate | ||
``` | ||
|
||
Signing commands for each safe: | ||
```bash | ||
cd src/tasks/sep/035-uni-sep-fusaka-prestate | ||
SKIP_DECODE_AND_PRINT=1 just --dotenv-path $(pwd)/.env sign | ||
``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Validation | ||
|
||
This document can be used to validate the inputs and result of the execution of the upgrade transaction which you are | ||
signing. | ||
|
||
The steps are: | ||
|
||
1. [Validate the Domain and Message Hashes](#expected-domain-and-message-hashes) | ||
2. [Verifying the transaction input](#understanding-task-calldata) | ||
3. [Verifying the state changes](#task-state-changes) | ||
|
||
## Expected Domain and Message Hashes | ||
|
||
First, we need to validate the domain and message hashes. These values should match both the values on your ledger and | ||
the values printed to the terminal when you run the task. | ||
|
||
> [!CAUTION] | ||
> | ||
> Before signing, ensure the below hashes match what is on your ledger. | ||
> | ||
> ### L1PAO: `@0xd363339eE47775888Df411A163c586a8BdEA9dbf` | ||
> | ||
> - Domain Hash: `0x2fedecce87979400ff00d5cec4c77da942d43ab3b9db4a5ffc51bb2ef498f30b` | ||
> - Message Hash: `0x9151c19e2511e6ddf5366deaf4592fd30dd41e0f7d3e371ed85190008ca6e566` | ||
## Normalized State Diff Hash Attestation | ||
|
||
Ensure that the normalized state diff hash matches the output in your terminal. | ||
|
||
**Normalized hash:** `0x72702882bcde0413668da3fabcb6450df3c993b1892b9d881fa750e7cb9c5b52` | ||
|
||
## Task Calldata | ||
|
||
Calldata: | ||
``` | ||
0x82ad56cb0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000003bb6437aba031afbf9cb3538fa064161e2bf2d780000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a49a72745b00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000aee94b9ab7752d3f7704bde212c0c6a0b701571d0000000000000000000000002bf403e5353a7a082ef6bb3ae2be3b866d8d3ea40339db503776757491b9f3038bf6f1d37b7988a2f75e823fe2656c1352ef2f9100000000000000000000000000000000000000000000000000000000 | ||
``` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
templateName = "OPCMUpdatePrestateV410" | ||
|
||
[[l2chains]] | ||
chainId = 1301 | ||
name = "Unichain Sepolia Testnet" | ||
|
||
[[opcmUpgrades]] | ||
chainId = 1301 | ||
absolutePrestate = "0x0339db503776757491b9f3038bf6f1d37b7988a2f75e823fe2656c1352ef2f91" # Fusaka Absolute Prestate published here https://github.com/ethereum-optimism/superchain-registry/blob/df5d4feb51f5d698d043a72ac2c6dfa9ce2a4afa/validation/standard/standard-prestates.toml#L6C7-L6C73 | ||
expectedValidationErrors = "OVERRIDES-L1PAOMULTISIG,OVERRIDES-CHALLENGER" # The template provides PAO and Challenger overrides to the validator from the SCR. These simply indicate overrides were used. | ||
|
||
[addresses] | ||
OPCM = "0x3bb6437aba031afbf9cb3538fa064161e2bf2d78" # version 3.2.0 https://github.com/ethereum-optimism/superchain-registry/blob/df5d4feb51f5d698d043a72ac2c6dfa9ce2a4afa/validation/standard/standard-versions-sepolia.toml#L23 | ||
|
||
[stateOverrides] | ||
# Unichain Sepolia ProxyAdminOwner: | ||
0xd363339eE47775888Df411A163c586a8BdEA9dbf = [ # L1PAO | ||
{key = "0x0000000000000000000000000000000000000000000000000000000000000005", value = 38} | ||
] | ||
Wazabie marked this conversation as resolved.
Show resolved
Hide resolved
Wazabie marked this conversation as resolved.
Show resolved
Hide resolved
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.