-
Notifications
You must be signed in to change notification settings - Fork 33
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(advanced): Provider
trait over reth-db
#144
Conversation
Provider
trait over reth-db
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool,
I think maintaining this could be a chore and these are very useful primitives, so I suggest that we move the rethdblayer and the helpers to a new crate in reth: reth-alloy
@mattsse final review and merge pls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, pending rev update
CI will be fixed with alloy release that includes alloy-rs/alloy#1428 |
Motivation
In the latest release of alloy-0.3.6,
ProviderCall
was introduced as a return type in theProvider
trait.ProviderCall
enables to fetch the result of an RPC call from any data source such as the node's db, cache etc.More on this can be found here alloy-rs/alloy#788
Solution
Example showing how to wrap the
Provider
trait over reth-db and useProviderCall
to fetch responses from the db directly.PR Checklist