Skip to content

feat: unified predeploys source of truth#19847

Open
0xniha wants to merge 44 commits intodevelopfrom
feat/l2cm-predeploys-sot
Open

feat: unified predeploys source of truth#19847
0xniha wants to merge 44 commits intodevelopfrom
feat/l2cm-predeploys-sot

Conversation

@0xniha
Copy link
Copy Markdown
Contributor

@0xniha 0xniha commented Mar 31, 2026

Description
Add unified predeploys source of truth

Closes #19260

@0xniha 0xniha self-assigned this Mar 31, 2026
@0xniha
Copy link
Copy Markdown
Contributor Author

0xniha commented Mar 31, 2026

/ci authorize 2814901

@0xniha
Copy link
Copy Markdown
Contributor Author

0xniha commented Apr 1, 2026

/ci authorize 7cadd7e

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 1, 2026

Codecov Report

❌ Patch coverage is 97.76119% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.5%. Comparing base (63509a6) to head (f98e31b).
⚠️ Report is 1 commits behind head on develop.

Files with missing lines Patch % Lines
...ges/contracts-bedrock/src/libraries/Predeploys.sol 97.2% 2 Missing ⚠️
...-bedrock/src/libraries/L2ContractsManagerUtils.sol 83.3% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           develop   #19847     +/-   ##
==========================================
+ Coverage     76.3%    82.5%   +6.2%     
==========================================
  Files          186      131     -55     
  Lines        10691     6670   -4021     
==========================================
- Hits          8167     5509   -2658     
+ Misses        2380     1161   -1219     
+ Partials       144        0    -144     
Flag Coverage Δ
cannon-go-tests-64 ?
contracts-bedrock-tests 82.5% <97.7%> (+0.1%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...es/contracts-bedrock/src/L2/L2ContractsManager.sol 96.6% <100.0%> (+<0.1%) ⬆️
...-bedrock/src/libraries/L2ContractsManagerUtils.sol 93.6% <83.3%> (-1.6%) ⬇️
...ges/contracts-bedrock/src/libraries/Predeploys.sol 96.4% <97.2%> (-2.3%) ⬇️

... and 56 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread packages/contracts-bedrock/src/L2/L2ContractsManager.sol
Comment thread packages/contracts-bedrock/test/L2/L2ContractsManager.t.sol Outdated
Comment thread packages/contracts-bedrock/test/L2/L2ContractsManager.t.sol Outdated
Comment thread packages/contracts-bedrock/test/L2/L2ContractsManager.t.sol Outdated
Comment thread packages/contracts-bedrock/test/L2/L2GenesisForkUpgrade.t.sol Outdated
@0xniha
Copy link
Copy Markdown
Contributor Author

0xniha commented Apr 1, 2026

/ci authorize cdcff62

Comment thread packages/contracts-bedrock/scripts/upgrade/GenerateNUTBundle.s.sol Outdated
Comment thread packages/contracts-bedrock/scripts/upgrade/GenerateNUTBundle.s.sol Outdated
Comment thread packages/contracts-bedrock/scripts/upgrade/GenerateNUTBundle.s.sol Outdated
Comment thread packages/contracts-bedrock/src/libraries/Predeploys.sol Outdated
Comment thread packages/contracts-bedrock/src/L2/L2ContractsManager.sol
Comment thread packages/contracts-bedrock/src/libraries/Predeploys.sol Outdated
Comment thread packages/contracts-bedrock/test/L2/fork/L2ForkUpgrade.t.sol
@0xniha 0xniha marked this pull request as ready for review April 6, 2026 15:28
@0xniha 0xniha requested review from a team and tynes April 6, 2026 15:28
@0xniha 0xniha requested a review from a team as a code owner April 22, 2026 14:55
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It won't work to rebuild the karst bundle in this PR, that's why the check-nut-locks job is failing.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

won't work to rebuild the karst bundle in this PR.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can just wait and rebuild it right before the release.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Restored here

…ecord

refactor: replace implementations struct by implementations record array
Conflicts:
- packages/contracts-bedrock/scripts/libraries/UpgradeUtils.sol
- packages/contracts-bedrock/scripts/upgrade/GenerateNUTBundle.s.sol
- packages/contracts-bedrock/snapshots/semver-lock.json
- packages/contracts-bedrock/snapshots/upgrades/current-upgrade-bundle.json
- packages/contracts-bedrock/test/scripts/GenerateNUTBundle.t.sol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[L2CM] Refactor to establish a source of truth for predeploys and ensure parity between L2Genesis and L2CM upgrades

3 participants