Skip to content

Conversation

ajsutton
Copy link
Contributor

@ajsutton ajsutton commented Sep 18, 2025

Description

Support cannon+kona games in updatePrestates. Uses a new struct to avoid updating ABI for update and migrate yet. Ultimately should switch them all back to the same one but working more incrementally.

@Inphi Inphi force-pushed the aj/kona-updatePrestates branch 2 times, most recently from 274965f to 643a2af Compare September 24, 2025 18:09
@Inphi Inphi marked this pull request as ready for review September 24, 2025 18:10
@Inphi Inphi requested a review from a team as a code owner September 24, 2025 18:10
@Inphi Inphi requested a review from tynes September 24, 2025 18:10
Copy link

codecov bot commented Sep 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.74%. Comparing base (0e4a942) to head (a2e436e).
⚠️ Report is 3 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #17512      +/-   ##
===========================================
+ Coverage    74.62%   80.74%   +6.12%     
===========================================
  Files          172      117      -55     
  Lines        10954     6175    -4779     
===========================================
- Hits          8174     4986    -3188     
+ Misses        2634     1189    -1445     
+ Partials       146        0     -146     
Flag Coverage Δ
cannon-go-tests-64 ?
contracts-bedrock-tests 80.74% <100.00%> (+0.01%) ⬆️

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

Files with missing lines Coverage Δ
...es/contracts-bedrock/src/L1/OPContractsManager.sol 96.31% <100.00%> (+0.04%) ⬆️

... and 55 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.

@Inphi Inphi force-pushed the aj/kona-updatePrestates branch from 5e4550e to a2e436e Compare September 25, 2025 14:05
}

/// @notice The input required to identify a chain for updating prestates
struct UpdatePrestateInput {
Copy link
Contributor

Choose a reason for hiding this comment

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

If the intention is to merge this with OpChainConfig, we should add a TODO so we don't forget to come back here.

Copy link
Contributor

Choose a reason for hiding this comment

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

This is a replacement to OpChainConfig for prestate updates. OpChainConfig will still be used in other areas.

systemConfig: chainDeployOutput1.systemConfigProxy,
/// @title OPContractsManager_UpdatePrestate_CannonKonaEnabled_Test
/// @notice Tests the `updatePrestate` function of the `OPContractsManager` contract with CANNON_KONA enabled.
contract OPContractsManager_UpdatePrestate_CannonKonaEnabled_Test is OPContractsManager_TestInit {
Copy link
Contributor

Choose a reason for hiding this comment

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

(nit) Feels like we could be more comprehensive by adding permutations on the test cases here. For example, showing we can deploy super-cannon-kona, or checking we revert if there is a super-cannon-kona game but no kona-prestate, etc. Maybe this is something we could come back to with a follow-up ticket TODO.

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.

3 participants