feat(anvil): add Beacon config spec endpoint - #60
Closed
PelleKrab wants to merge 5 commits into
Closed
Conversation
PelleKrab
force-pushed
the
feat/prover-single-l1
branch
from
August 11, 2026 16:57
9bf4365 to
355d4bf
Compare
This was referenced Aug 11, 2026
PelleKrab
changed the base branch from
base-anvil-fork
to
feat/debug-get-raw-receipts
August 11, 2026 16:58
PelleKrab
force-pushed
the
feat/debug-get-raw-receipts
branch
from
August 11, 2026 17:39
8e759a2 to
4ccbb61
Compare
PelleKrab
force-pushed
the
feat/prover-single-l1
branch
from
August 11, 2026 17:39
355d4bf to
68ce69a
Compare
PelleKrab
force-pushed
the
feat/debug-get-raw-receipts
branch
from
August 11, 2026 17:57
4ccbb61 to
3a024e6
Compare
PelleKrab
force-pushed
the
feat/prover-single-l1
branch
from
August 11, 2026 17:57
68ce69a to
3877a2c
Compare
Amp-Thread-ID: https://ampcode.com/threads/T-019ff1b0-c07c-77f3-816c-5da33175c7a4 Co-authored-by: Amp <amp@ampcode.com> (cherry picked from commit 73d1546)
* feat(anvil): support debug raw receipts * feat(anvil): serve pre-fork blocks in debug_getRawReceipts --------- Co-authored-by: grandizzy <38490174+grandizzy@users.noreply.github.com> (cherry picked from commit c96f35cfe88a0ef01cbeb56cfda747a514114fd3)
(cherry picked from commit 13f46acdff02263cb7164410d306e6eca4ec19c0)
(cherry picked from commit 2f18e89f6321dc8df7c1e0dc312bafc34a397249)
Expose SECONDS_PER_SLOT so Base clients can map execution timestamps to Beacon slots. Co-authored-by: Amp <amp@ampcode.com> Amp-Thread-ID: https://ampcode.com/threads/T-019ff1b0-c07c-77f3-816c-5da33175c7a4 (cherry picked from commit 3877a2c)
PelleKrab
force-pushed
the
feat/prover-single-l1
branch
from
August 11, 2026 23:55
3877a2c to
0362ad3
Compare
3 tasks
Contributor
Author
|
Auto-closed when the stacked base branch was deleted. Superseded by #67, which carries the Beacon spec endpoint on top of verbatim upstream cherry-picks of the debug endpoints (foundry-rs/foundry#15430, foundry-rs/foundry#15432, foundry-rs/foundry#15433). |
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.
Motivation
Base's Beacon client needs
SECONDS_PER_SLOTto map L1 execution timestamps to Beacon slots when retrieving blob sidecars from the same Anvil instance.Solution
Add
GET /eth/v1/config/specand return the positive interval-mining duration as the Beacon-compatibleSECONDS_PER_SLOTstring. Return an internal error when interval mining is unavailable or disabled.Stack
debug_getRawHeaderdebug_getRawReceipts/eth/v1/config/spec← this PRTesting
cargo test -p anvil --test it beacon_api -- --nocapturecargo fmt --all -- --checkgit diff --checkPR Checklist