Skip to content

Move FakeBlockTracker to eth-block-tracker (as MockPollingBlockTracker) - #10121

Draft
mcmire wants to merge 1 commit into
mainfrom
extract-mock-block-tracker
Draft

Move FakeBlockTracker to eth-block-tracker (as MockPollingBlockTracker)#10121
mcmire wants to merge 1 commit into
mainfrom
extract-mock-block-tracker

Conversation

@mcmire

@mcmire mcmire commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

Explanation

FakeBlockTracker is a class defined in a top-level test helper file which provides a mock implementation of the PollingBlockTracker class in eth-block-tracker. Because this file uses types from eth-block-tracker, any package that wants to use FakeBlockTracker needs to depend on this package. controller-utils is such a package, and so it and eth-block-tracker are actually circular. That will create a problem when we try to add typechecking to all packages in CI.

To address this and prevent future issues, we move FakeBlockTracker — now MockPollingBlockTracker — into eth-block-tracker, and we change all callsites to match.

References

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed
  • I've introduced breaking changes in this PR and have prepared draft pull requests for clients and consumer packages to resolve them

`FakeBlockTracker` is a class defined in a top-level test helper file
which provides a mock implementation of the `PollingBlockTracker` class
in `eth-block-tracker`. Because this file uses types from
`eth-block-tracker`, any package that wants to use `FakeBlockTracker`
needs to depend on this package. `controller-utils` is such a package,
and so it and `eth-block-tracker` are actually circular. That will
create a problem when we try to add typechecking to all packages in CI.

To address this and prevent future issues, we move `FakeBlockTracker` —
now `MockPollingBlockTracker` — into `eth-block-tracker`, and we change
all callsites to match.
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