Skip to content

chore(op-sdk): Add ZST aggregate ty for OP NodeTypes #16104

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

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

emhane
Copy link
Member

@emhane emhane commented May 7, 2025

Based on #16105
Towards #15743

Adds a simple OP NodeTypes type OpTypes in a new crate reth-optimism-node-types, which can be imported into reth-optimism-rpc, etc. without creating cyclical deps with reth-optimism-node crate.

Using AnyNodeTypes is unnecessarily complex as long as each AT on NodeTypes isn't implemented for () or a noop type. Since the NodeTypes aggregate type is stateless, it is ok to use all the optimism OpTypes in types which will only have to use a subset of those NodeTypes, as it means no stateful components have to be cumbersomely and counterintuitively constructed just to satisfy the type (like when using OpNode just to access its NodeTypes impl 👎).

@emhane emhane added C-debt A clean up/refactor of existing code A-op-reth Related to Optimism and op-reth labels May 7, 2025
@github-project-automation github-project-automation bot moved this to Backlog in Reth Tracker May 7, 2025
@emhane emhane changed the base branch from main to emhane/mv-op-payload-types May 7, 2025 12:03
@emhane emhane added the A-sdk Related to reth's use as a library label May 7, 2025
@emhane emhane requested review from onbjerg and DaniPopes as code owners May 7, 2025 12:39
Base automatically changed from emhane/mv-op-payload-types to main May 7, 2025 14:45
@emhane emhane requested review from klkvr and clabby May 12, 2025 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-op-reth Related to Optimism and op-reth A-sdk Related to reth's use as a library C-debt A clean up/refactor of existing code
Projects
Status: Backlog
Development

Successfully merging this pull request may close these issues.

1 participant