Skip to content
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

Create a rollup keeper interface for use when mocking unit tests #281

Open
natebeauregard opened this issue Oct 29, 2024 · 0 comments
Open

Comments

@natebeauregard
Copy link
Collaborator

Currently, the rollup keeper is passed around and referenced as a struct with private fields. This makes it difficult to mock the x/rollup keeper behavior in unit tests when trying to test information from

We should add a new interface (e.g. RollupKeeper, KeeperI) that includes the expected keeper functions that we expect to mock. We could also pass this interface around instead of the x/rollup keeper struct when calling the keeper functions outside of the x/rollup module.

Lastly, unit tests should be added for the monomer ante handlers and the l1_data_decorator that mock the rollup keeper's GetL1BlockInfo func.

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

No branches or pull requests

1 participant