EVM sidecar#468
Open
mpapierski wants to merge 10 commits into
Open
Conversation
Introduce the initial Ethereum-compatible RPC surface for Casper EVM transactions, including chain ID, block number, nonce lookup, raw transaction submission, block lookup, receipt lookup, and call simulation. Split the implementation into per-method modules with shared Ethereum JSON-RPC types, examples, and schema coverage. Wire EVM call simulation through the binary port client and register the new RPC methods in the sidecar HTTP dispatcher. Update event-sidecar and legacy SSE transaction handling so EVM transactions are classified and translated consistently.
Accept EIP-7702 set-code transactions through the existing EVM raw transaction decoding path and cover the behavior with a signed Alloy fixture that verifies the forwarded transaction kind and authorization list. Map EIP-7702 receipt type 0x04 into Ethereum typed receipts and update the sidecar schema snapshots for patched core EIP-7702 types.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds the
casper-sidecarcompanion surface for the EVM proof-of-concept in casper-network/casper-node#5410.It exposes Ethereum JSON-RPC methods backed by Casper node binary-port APIs for signed EVM transaction submission, speculative
eth_call, block/receipt/log reads, filters, and websocket log subscriptions.What Changed
eth_call.main_server.max_eth_log_block_range.casper-typesandcasper-binary-portat the core EVM branch.Current Limitations
This is still a PoC surface paired to the core EVM branch.
Missing future RPCs include
eth_estimateGas,eth_getBalance,eth_getCode, andeth_getTransactionByHash.eth_getBlockByNumberreturns transaction hashes only. Full transaction objects are rejected for now.Log filters are sidecar-local and in-memory. Historical log reads are bounded by
max_eth_log_block_range.