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

refactor: move `GetLogsArgs` and `LogEntry` to the `evm_rpc_types` crate #261

Closed gregorydemay closed 1 month ago

gregorydemay commented 1 month ago

Follow-up on #257 to move the types GetLogsArgs and LogEntry to the evm_rpc_types crate, so that the public API of eth_get_logs only uses types from that crate.

Additionally, add the types Hex, Hex20, and Hex32 as a transparent wrapper around a Candid type text to represent Ethereum hex strings (prefixed by 0x) containing an unbounded, 20 or 32 bytes, respectively.