internet-computer-protocol / evm-rpc-canister

Interact with EVM blockchains from the Internet Computer.
https://internetcomputer.org/docs/current/developer-docs/multi-chain/ethereum/evm-rpc/overview
Apache License 2.0
63 stars 13 forks source link

feat: `evm_rpc_types` crate and `Nat256` #257

Closed gregorydemay closed 1 month ago

gregorydemay commented 1 month ago

Introduce a new crate evm_rpc_types that will contain all Candid types necessary to interact with the EVM RPC canister. As a first step for #243 :

  1. Introduce Nat256 as a wrapper around a Nat that is guaranteed to have the same encoding/decoding as a Nat, while ensuring that it fits in a U256 bits.
  2. As an example, refactor eth_fee_history so that the public API only uses types from the new evm_rpc_types crate .