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

phala-node: Integrate frontier to support ETH RPC #1504

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open

Conversation

kvinwang
Copy link
Collaborator

@kvinwang kvinwang commented Jan 3, 2024

This PR adds support for ETH RPC based on frontier.

Most of the changes are copied from frontier's template-node with one execption evm_support/ which contains:

  • currency.rs
    Because the eth wallet treat 1 UNIT = 10^18 wei by the convention, so the EvmCurrency is added to convert between evm and substrate balance units. So this is the part need to be carefully reviewed.
  • precompiles.rs, most of the file is copied from template-node exept the 2048 => substrate_call::Dispatch.
  • runner.rs, to disable create contract for the original evm runner.

Transaction Preview

image

@kvinwang kvinwang marked this pull request as draft January 3, 2024 05:03
@kvinwang kvinwang marked this pull request as ready for review January 15, 2024 02:59
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.

1 participant