eth JSON-RPC #22

Merged
telackey merged 10 commits from eth_json_rpc into master 2020-11-01 15:15:22 +00:00
Member

For #2 and #9

Adds remaining currently supportable eth_* endpoints:

eth_getBalance
eth_getStorageAt
eth_getCode
eth_getProof
eth_getHeaderByHash
eth_getTransactionCount
eth_getBlockTransactionCountByHash
eth_getBlockTransactionCountByNumber
eth_getTransactionByBlockHashAndIndex
eth_getTransactionByBlockNumberAndIndex
eth_getRawTransactionByBlockHashAndIndex
eth_getRawTransactionByBlockNumberAndIndex
eth_getRawTransactionByHash
eth_getTransactionReceipt
eth_getUncleCountByBlockHash
eth_getUncleCountByBlockNumber
eth_getUncleByBlockHashAndIndex
eth_getUncleByBlockNumberAndIndex

Still a WIP

TODO:

  • Unit tests

  • Cache miss forwarding for the new endpoints

For #2 and #9 Adds remaining currently supportable `eth_*` endpoints: eth_getBalance eth_getStorageAt eth_getCode eth_getProof eth_getHeaderByHash eth_getTransactionCount eth_getBlockTransactionCountByHash eth_getBlockTransactionCountByNumber eth_getTransactionByBlockHashAndIndex eth_getTransactionByBlockNumberAndIndex eth_getRawTransactionByBlockHashAndIndex eth_getRawTransactionByBlockNumberAndIndex eth_getRawTransactionByHash eth_getTransactionReceipt eth_getUncleCountByBlockHash eth_getUncleCountByBlockNumber eth_getUncleByBlockHashAndIndex eth_getUncleByBlockNumberAndIndex Still a WIP TODO: - [x] Unit tests - [x] Cache miss forwarding for the new endpoints
Author
Member

Unit tests finished for everything except eth_getProof

Have also optimized endpoints that read from leafs e.g. eth_getBalance, eth_getStorageAt, eth_getTransactionCount.

Unit tests finished for everything except `eth_getProof` Have also optimized endpoints that read from leafs e.g. `eth_getBalance`, `eth_getStorageAt`, `eth_getTransactionCount`.
Author
Member

I think optimizing and testing eth_GetProof deserves its own focus, and this diff is already rather large, so I will merge this shortly.

I think optimizing and testing `eth_GetProof` deserves its own focus, and this diff is already rather large, so I will merge this shortly.
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/ipld-eth-server#22
No description provided.