Skip to content

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