Skip to content

feat(anvil): add Beacon config spec endpoint - #60

Closed
PelleKrab wants to merge 5 commits into
feat/debug-get-raw-receiptsfrom
feat/prover-single-l1
Closed

feat(anvil): add Beacon config spec endpoint#60
PelleKrab wants to merge 5 commits into
feat/debug-get-raw-receiptsfrom
feat/prover-single-l1

Conversation

@PelleKrab

@PelleKrab PelleKrab commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Superseded: Closed in favor of #67, which carries the debug APIs as verbatim upstream cherry-picks and keeps only the Beacon config spec endpoint fork-specific.

Motivation

Base's Beacon client needs SECONDS_PER_SLOT to map L1 execution timestamps to Beacon slots when retrieving blob sidecars from the same Anvil instance.

Solution

Add GET /eth/v1/config/spec and return the positive interval-mining duration as the Beacon-compatible SECONDS_PER_SLOT string. Return an internal error when interval mining is unavailable or disabled.

Stack

  1. fix(deps): update ruint security advisory #63 — cargo-deny security prerequisite
  2. feat(anvil): add debug_getRawHeader #61debug_getRawHeader
  3. feat(anvil): add debug_getRawReceipts #62debug_getRawReceipts
  4. feat(anvil): add Beacon config spec endpoint #60 — Beacon /eth/v1/config/spec ← this PR

Testing

  • cargo test -p anvil --test it beacon_api -- --nocapture
  • cargo fmt --all -- --check
  • git diff --check

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@PelleKrab
PelleKrab force-pushed the feat/prover-single-l1 branch from 9bf4365 to 355d4bf Compare August 11, 2026 16:57
@PelleKrab PelleKrab changed the title feat(anvil): add Base proof devnet APIs feat(anvil): add Beacon config spec endpoint Aug 11, 2026
@PelleKrab
PelleKrab changed the base branch from base-anvil-fork to feat/debug-get-raw-receipts August 11, 2026 16:58
@PelleKrab
PelleKrab force-pushed the feat/debug-get-raw-receipts branch from 8e759a2 to 4ccbb61 Compare August 11, 2026 17:39
@PelleKrab
PelleKrab force-pushed the feat/prover-single-l1 branch from 355d4bf to 68ce69a Compare August 11, 2026 17:39
@PelleKrab
PelleKrab force-pushed the feat/debug-get-raw-receipts branch from 4ccbb61 to 3a024e6 Compare August 11, 2026 17:57
@PelleKrab
PelleKrab force-pushed the feat/prover-single-l1 branch from 68ce69a to 3877a2c Compare August 11, 2026 17:57
PelleKrab and others added 5 commits August 11, 2026 14:20
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
PelleKrab force-pushed the feat/prover-single-l1 branch from 3877a2c to 0362ad3 Compare August 11, 2026 23:55
@PelleKrab
PelleKrab deleted the branch feat/debug-get-raw-receipts August 11, 2026 23:56
@PelleKrab PelleKrab closed this Aug 11, 2026
@PelleKrab

Copy link
Copy Markdown
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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants