Skip to content

refactor: separate concerns in catchUp function#17

Closed
opsuperchain wants to merge 1 commit intokarlfloersch/interop-filter-logicfrom
karlfloersch/catchup-refactor
Closed

refactor: separate concerns in catchUp function#17
opsuperchain wants to merge 1 commit intokarlfloersch/interop-filter-logicfrom
karlfloersch/catchup-refactor

Conversation

@opsuperchain
Copy link
Copy Markdown
Collaborator

Summary

  • Split catchUp into three focused functions for better readability and testability
  • catchUp() - orchestrates the catch-up process
  • determineStartBlock() - figures out where to start and if anchor init needed
  • findBackfillStartBlock() - binary search for backfill start block

Test plan

  • All existing tests pass

🤖 Generated with Claude Code

Split catchUp into three focused functions:
- catchUp() - orchestrates the catch-up process
- determineStartBlock() - figures out where to start and if anchor init needed
- findBackfillStartBlock() - binary search for backfill start block

This improves readability and testability without changing behavior.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@opsuperchain opsuperchain force-pushed the karlfloersch/interop-filter-logic branch from 5bda80d to a7aeafc Compare January 8, 2026 20:36
@opsuperchain opsuperchain deleted the karlfloersch/catchup-refactor branch January 8, 2026 20:37
karlfloersch pushed a commit that referenced this pull request Mar 5, 2026
…thereum-optimism#19272)

* contracts: implement audit code fixes and add tests

Add onlyDelegateCall enforcement to upgradeSuperchain, upgrade, and
migrate functions (#17). Include msg.sender in deploy salt to prevent
cross-caller CREATE2 collisions (#17). Add duplicate instruction key
detection in upgrade validation (#9). Validate startingRespectedGameType
against enabled game configs (#10). Add code-existence check in
loadBytes (#18). Add setUp guard to VerifyOPCM.runSingle (#4). Remove
unused _findChar function (#5). Pass real AddressManager in migrator
proxy deploy args (#11). Add tests covering all audit fix behaviors.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* contracts: regenerate semver-lock.json for OPContractsManagerV2

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* contracts: bump OPContractsManagerV2 version to 7.0.10

Semver-diff requires a patch version bump when bytecode changes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant