Skip to content

chore(rpc): reusable eth api EthCall#8683

Merged
emhane merged 67 commits intomatt/scaffold-ethapifrom
emhane/ethapi-call
Jun 11, 2024
Merged

chore(rpc): reusable eth api EthCall#8683
emhane merged 67 commits intomatt/scaffold-ethapifrom
emhane/ethapi-call

Conversation

@emhane
Copy link
Collaborator

@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?

@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
@emhane emhane deleted the emhane/ethapi-call branch June 11, 2024 16:26
@emhane emhane mentioned this pull request Jun 12, 2024
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 A clean up/refactor of existing code 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

Comments