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

chore(cli): unify trait bounds #12604

Merged
merged 4 commits into from
Nov 16, 2024
Merged

chore(cli): unify trait bounds #12604

merged 4 commits into from
Nov 16, 2024

Conversation

klkvr
Copy link
Collaborator

@klkvr klkvr commented Nov 16, 2024

Bounds we define on CLI commands should be sufficient to configure ProviderFactory and thus to satisfy ProviderNodeTypes once attached to database.

With storage abstraction ProviderNodeTypes bound would become more complex, so it makes sense to deduplicate those bounds now to make it easier to update all of them at once.

This PR introduces CliNodeTypes helper trait and replaces all bounds for CLI commands with it

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

makes sense

@mattsse mattsse added the A-sdk Related to reth's use as a library label Nov 16, 2024
@mattsse mattsse added this pull request to the merge queue Nov 16, 2024
Merged via the queue into main with commit 735eb4b Nov 16, 2024
40 checks passed
@mattsse mattsse deleted the klkvr/unify-bounds branch November 16, 2024 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-sdk Related to reth's use as a library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants