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(rpc): reusable eth api EthCall #8683

Merged
merged 67 commits into from
Jun 11, 2024
Merged

Conversation

emhane
Copy link
Member

@emhane emhane commented Jun 7, 2024

  • Moves rpc call methods impl on EthApi, to default trait impl EthCall
  • Moves fee rpc methods impl on EthApi, to default trait impl EthFees

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.

this is coming together.

having a ton of traits can be overwhelming at first, but this makes a ton of sense here because the eth_api is massive, and dividing this in multiple traits makes sense, because this allows the consumer to reuse as much as possible from the ethapiinner and only reimplement necessary functions, right?

crates/storage/provider/src/traits/spec.rs Outdated Show resolved Hide resolved
crates/evm/src/provider.rs Outdated Show resolved Hide resolved
crates/optimism/rpc/src/block.rs Show resolved Hide resolved
crates/optimism/rpc/src/lib.rs Show resolved Hide resolved
crates/rpc/rpc/src/debug.rs Outdated Show resolved Hide resolved
crates/rpc/rpc/src/debug.rs Outdated Show resolved Hide resolved
@emhane emhane requested a review from onbjerg as a code owner June 10, 2024 19:57
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.

looks like a ton of changes are actually due to main rebase?

let's get this into the branch and then have a closer look.

I believe this is looking great and will be very useful

@emhane emhane merged commit f89077b into matt/scaffold-ethapi Jun 11, 2024
18 of 25 checks passed
@emhane emhane deleted the emhane/ethapi-call branch June 11, 2024 16:26
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-rpc Related to the RPC implementation C-debt Refactor of code section that is hard to understand or maintain S-blocked This cannot more forward until something else changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants