-
Notifications
You must be signed in to change notification settings - Fork 479
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
Automate Superchain Registry chain support #8105
Open
emlautarom1
wants to merge
60
commits into
master
Choose a base branch
from
feat/superchain-registry
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,209
−70,871
Open
Changes from all commits
Commits
Show all changes
60 commits
Select commit
Hold shift + click to select a range
1596721
Initial scripts
emlautarom1 9b40dfa
Remove `codeHashes` indirection
emlautarom1 372c69c
Use `BytesIO` instead of `StringIO` for binary data
emlautarom1 38efd5c
Merge into single script
emlautarom1 47c0c1e
Rename `folder` to `directory`
emlautarom1 80d6f33
Store downloads in temp folder
emlautarom1 577336f
Use tempdir for intermediate `.json` files
emlautarom1 b3eaa22
Import ordering
emlautarom1 91b38d9
Generate Nethermind runner configs
emlautarom1 706f51e
Use `listdir` instead of `walk`
emlautarom1 6f97b13
Initial Zstd-aware loader
emlautarom1 86642ec
Use `Limbo` logger
emlautarom1 d7fb8e3
Use file format aware loader everywhere
emlautarom1 d718e5e
Remove hardcoded `GenesisHash`
emlautarom1 215db37
Added copy generated files script
emlautarom1 4b70457
Generated files
emlautarom1 b83e942
Update bootnodes
emlautarom1 e3ff58a
Map `alloc` to `accounts`
emlautarom1 63abda3
Update autogen ChainSpec files
emlautarom1 af5520a
Remove `enr` entries
emlautarom1 785c1c6
Update autogen files
emlautarom1 3e63d56
Use provided serializer
emlautarom1 d47804f
Include `GenesisHash`
emlautarom1 f704108
Update autogen files
emlautarom1 700d891
Update autogen files
emlautarom1 486c486
Fix `genesis` fields
emlautarom1 cdf5d29
Use `4` spaces for Python files
emlautarom1 0328aec
Merge branch 'master' into feat/superchain-registry
emlautarom1 2124634
Cleanup script
emlautarom1 6b58743
Update autogen files
emlautarom1 238ae6d
Replace `zstd` with `zst`
emlautarom1 b855822
Formatting
emlautarom1 40baa40
Fix E2E tests
emlautarom1 1e8abec
Delete old `zstd` files
emlautarom1 ff0d242
Merge branch 'master' into feat/superchain-registry
emlautarom1 2cbd94c
Include licence in headers
emlautarom1 996590e
Merge branch 'master' into feat/superchain-registry
emlautarom1 ef45d4b
Hardcode op-mainnet genesis hash
emlautarom1 ab78b4d
Update autogen files
emlautarom1 8c04ba8
Include ancient barries in op-mainnet
emlautarom1 3a11633
Update autogen files
emlautarom1 a96995a
Add 'worldchain'
emlautarom1 40e31f9
Remove old `.json` chainspec files
emlautarom1 d2007e0
Remove snapshot for op-mainnet
emlautarom1 492f781
Update autogen files
emlautarom1 caff92b
Merge branch 'master' into feat/superchain-registry
emlautarom1 d8a11f5
Update `worldchain-sepolia_archive`
emlautarom1 9812204
Merge branch 'feat/superchain-registry' of https://github.com/Netherm…
emlautarom1 bd1afbd
Update `worldchain-mainnet_archive`
emlautarom1 ee03a9b
Update `base-mainnet_archive`
emlautarom1 55a453c
Update `base-sepolia_archive`
emlautarom1 6f9ade1
Update `op-sepolia_archive`
emlautarom1 ced119f
Update `op-mainnet_archive`
emlautarom1 08d132e
Support only Superchain chains
emlautarom1 496085c
Cleanup requests
emlautarom1 8cff3d8
Fix script args
emlautarom1 8d59cfd
Add superchain workflow
emlautarom1 28b17e4
Delete copy script
emlautarom1 433e2ad
Update autogen files
emlautarom1 af354f6
Rethrow inner exception
emlautarom1 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
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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,56 @@ | ||
name: Update OP Superchain chains | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * 0' | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
update-configs: | ||
name: Update OP Superchain chains | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.13.1' | ||
- name: Install dependencies | ||
run: | | ||
pip install zstandard | ||
pip install safe-pysha3 | ||
pip install requests | ||
pip install setuptools | ||
pip install emoji | ||
- name: Generate Chainspec and config files | ||
run: python3 scripts/superchain.py -v | ||
- name: Update fast sync settings | ||
run: python3 scripts/syncSettings.py --superchain | ||
- name: Copy generated files | ||
run: | ||
cp output/chainspec/* ./src/Nethermind/Chains | ||
cp output/runner/* ./src/Nethermind/Nethermind.Runner/configs | ||
- name: Create GitHub app token | ||
id: gh-app | ||
uses: actions/create-github-app-token@v1 | ||
with: | ||
app-id: ${{ vars.APP_ID }} | ||
private-key: ${{ secrets.APP_PRIVATE_KEY }} | ||
- name: Create a pull request | ||
env: | ||
GH_TOKEN: ${{ steps.gh-app.outputs.token }} | ||
run: | | ||
head_branch=feature/update-superchain-${{ github.run_number }}-${{ github.run_attempt }} | ||
git config user.name "${{ github.actor }}" | ||
git config user.email "${{ github.actor }}@users.noreply.github.com" | ||
git checkout -b $head_branch | ||
git add -A | ||
git commit -am "Update OP Superchain chains" | ||
git push origin $head_branch | ||
gh pr create -B master -H $head_branch -t "Update OP Superchain chains" \ | ||
-b "Generated Chainspec and config files" -l configuration -l sync |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
Binary file not shown.
Binary file not shown.
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The workflow will run weekly. Does this sound OK @kamilchodola ?