feat(tracing): support EIP-8037 trace fields - #475
Open
decofe wants to merge 1 commit into
Open
Conversation
onbjerg
added a commit
that referenced
this pull request
Aug 12, 2026
Replaces #475. Implements the EIP-8037 tracing additions from ethereum/execution-apis#852: two-dimensional gas fields on default and call traces, signed per-opcode state-gas accounting, `stateGasTracer`, and mux tracer support. Fork gating uses the actual execution spec, including Amsterdam transactions with zero net state gas and empty-code calls, while pre-Amsterdam responses and legacy builder behavior remain unchanged. Upstream support landed in alloy-rs/alloy#4113 and is now consumed from the released `alloy-rpc-types-trace` crate. Prompted by: @onbjerg --------- Co-authored-by: Derek Cofausper <256792747+decofe@users.noreply.github.com> Co-authored-by: onbjerg <8862627+onbjerg@users.noreply.github.com>
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.
Implements the EIP-8037 tracing additions from ethereum/execution-apis#852, using Alloy #4113 as a temporary dependency patch.
Changes:
stateGasCostandstateGasReservoirvalues;stateGasTracerbuilt-in tracer;The Alloy patch is intentionally pinned by commit and can be removed once #4113 is merged. The additive RPC fields preserve backwards-compatible decoding for existing callers.
Tests:
cargo testClippy:
cargo +nightly clippy --all-targets --all-features -- -D warningsPrompted by: @mattsse