Skip to content

feat(operator): ✨ Add Ethereum RPCs#55

Merged
ffarall merged 21 commits intomainfrom
feat/add-ethereum-rpcs
Apr 30, 2025
Merged

feat(operator): ✨ Add Ethereum RPCs#55
ffarall merged 21 commits intomainfrom
feat/add-ethereum-rpcs

Conversation

@gonzamontiel
Copy link
Copy Markdown
Contributor

@gonzamontiel gonzamontiel commented Apr 24, 2025

This PR adds Ethereum RPC API support to the node, enabling the interaction with the node using standard Ethereum tools.

  1. Integration of Frontier's Ethereum RPC modules (eth, net, web3, txpool)
  2. Added RPC configurations necessary for Ethereum compatibility
  3. Implemented a BABE consensus data provider for handling pending blocks
  4. Added required dependencies and configurations in the node's service
  5. Created necessary filter pools, block data caches, and notification systems
  6. Configured the RPC system to handle Ethereum API calls
  7. Changed the transaction pool implementation to be compatible with the fork-aware transaction pool (fork-aware transaction pool added paritytech/polkadot-sdk#4639)

EDIT:
The new transaction_pool in polkadot-stable2412 that comes with a fork-aware feature, allowing different views of the transaction pool, is not compatible with the current state in Frontier.
In Frontier the only supported pool is the BasicPool, that maintains a similar behaviour to the one in polkadot-stable2409. I used this pool directly.

@gonzamontiel gonzamontiel marked this pull request as ready for review April 28, 2025 10:18
Copy link
Copy Markdown
Contributor

@ahmadkaouk ahmadkaouk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some nitpicks

gonzamontiel and others added 10 commits April 30, 2025 14:37
Co-authored-by: Ahmad Kaouk <56095276+ahmadkaouk@users.noreply.github.com>
Co-authored-by: Ahmad Kaouk <56095276+ahmadkaouk@users.noreply.github.com>
Co-authored-by: Ahmad Kaouk <56095276+ahmadkaouk@users.noreply.github.com>
Co-authored-by: Ahmad Kaouk <56095276+ahmadkaouk@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@ffarall ffarall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job!

@ffarall ffarall enabled auto-merge (squash) April 30, 2025 16:52
@ffarall ffarall merged commit 6c8c91b into main Apr 30, 2025
12 checks passed
@ffarall ffarall deleted the feat/add-ethereum-rpcs branch April 30, 2025 17:01
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.

3 participants