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

feat: NodePrimitivesProvider #12855

Merged
merged 3 commits into from
Nov 26, 2024
Merged

feat: NodePrimitivesProvider #12855

merged 3 commits into from
Nov 26, 2024

Conversation

klkvr
Copy link
Collaborator

@klkvr klkvr commented Nov 25, 2024

This PR introduces a NodePrimitivesProvider which serves as a common supertrait for traits which outputs are generic over N: NodePrimtiives. Those include (and likely not limited to) StaticFileProviderFactory, CanonStateSubscriptions and BlockExecutionWriter.

Because BlockchainTree depends on Chain type which is now generic over NodePrimitives, we'd need to either introduce NodePrimitives generics for all legacy engine types to allow them to be used with both op and eth primitives, or maintain a third NodePrimitives impl exclusively for legacy engine.

For now we're anyway using EthPrimtiives anywhere, so I've added bounds restricting primitives to it but once we start replacing primitives with chain-specific types this would need to be addressed.

@klkvr klkvr force-pushed the klkvr/primitives-provider branch from 343709d to 78b600f Compare November 25, 2024 19:11
@klkvr klkvr added this pull request to the merge queue Nov 26, 2024
Merged via the queue into main with commit 26fc701 Nov 26, 2024
41 checks passed
@klkvr klkvr deleted the klkvr/primitives-provider branch November 26, 2024 12:26
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.

2 participants