Skip to content

feat: add block header watcher - #4999

Merged
jxom merged 1 commit into
mainfrom
jxom/watch-block-headers
Aug 11, 2026
Merged

jxom merged 1 commit into
mainfrom
jxom/watch-block-headers

Conversation

@jxom

@jxom jxom commented Aug 11, 2026

Copy link
Copy Markdown
Member

Adds watchBlockHeaders to emit formatted newHeads payloads without an eth_getBlockByNumber round trip. Keeps watchBlocks unchanged for full blocks.

Fixes #4998

@changeset-bot

changeset-bot Bot commented Aug 11, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b431cd8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
viem Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercel Bot commented Aug 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
viem Building Building Preview Aug 11, 2026 10:27pm

Request Review

@jxom
jxom marked this pull request as ready for review August 11, 2026 22:28
@jxom
jxom merged commit 2d7e837 into main Aug 11, 2026
38 of 44 checks passed
@jxom
jxom deleted the jxom/watch-block-headers branch August 11, 2026 22:29
@github-actions github-actions Bot mentioned this pull request Aug 11, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b431cd8bef

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/actions/public/watchBlockHeaders.ts Resolved
Comment thread src/clients/decorators/public.ts Resolved
Comment thread src/actions/public/watchBlockHeaders.ts Resolved
jxom added a commit that referenced this pull request Aug 14, 2026
* feat: add block header watcher (#4999)

* fix: complete block header watcher integration (#5001)

* chore: version package (#5000)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* fix(tempo): bind encrypted deposits to sender (#5002)

* fix(tempo): bind encrypted deposits to sender

Co-authored-by: Derek Cofausper <[email protected]>

* ci: test sender-bound zone deposits

* ci: align Tempo and Zone fixtures

* test(tempo): routed T10 fixtures through encrypted deposits

* chore: logged local Zone provisioning stall

* chore: ignored unpatched extract-zip advisory

* fix(tempo): defaulted encrypted deposit sender

* ci: skipped Wagmi verification

* chore: remove friction log

---------

Co-authored-by: 0xrusowsky <[email protected]>
Co-authored-by: Derek Cofausper <[email protected]>
Co-authored-by: Steven Truong <[email protected]>
Co-authored-by: jxom <[email protected]>

* chore: version package (#5003)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* fix(siwe): reject unparseable expirationTime and notBefore (#4990)

* fix(siwe): reject unparseable expirationTime and notBefore

Invalid Date values from parseSiweMessage (e.g. Expiration Time: never)
are truthy, so comparisons like `time >= expirationTime` are always
false and lifetime / nbf checks were skipped. Fail closed when either
field is present but not a real date (sibling of thirdweb-dev/js#8875 /
supabase/auth#2688).

* fix(siwe): require EIP-4361 date-time strings and reject invalid time

Validate raw SIWE timestamps against the RFC 3339 profile before Date
coercion, and fail closed when the caller-supplied time is invalid so
lifetime comparisons cannot be skipped.

* fix(siwe): inline date validation

---------

Co-authored-by: jxom <[email protected]>

* fix: asset discovery in `simulateCalls` (#4997)

* fix(simulateCalls): discover assets from simulated logs

* refactor(simulateCalls): align asset discovery with repo conventions

* fix(simulateCalls): pin both asset-tracing passes to one base block

* test(simulateCalls): skip asset tracing on the pinned Anvil

* chore: update accessListHints comment

* fix(simulateCalls): preserve block tags and request errors

* fix(simulateCalls): harden asset trace discovery

* test: use reth for mainnet forks

* test(simulateCalls): run asset tracing against reth

* fix(simulateCalls): align asset trace simulations

* fix(simulateCalls): stabilize asset tracing

* chore: add static call source

* fix(simulateCalls): simplify asset tracing

* fix(simulateCalls): isolate asset balance probes

* fix(simulateCalls): align asset probe callers

* fix(simulateCalls): preserve pending block tag

* fix(simulateCalls): normalize transfer topics

* refactor(simulateCalls): remove redundant asset deduplication

* test(simulateCalls): cover asset tracing edge cases

* docs(simulateCalls): describe pending asset tracing

---------

Co-authored-by: jxom <[email protected]>

* fix: update nanoid security override

* fix: increase package size limits

* ci: remove docs deployment

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: struong <[email protected]>
Co-authored-by: 0xrusowsky <[email protected]>
Co-authored-by: Derek Cofausper <[email protected]>
Co-authored-by: Steven Truong <[email protected]>
Co-authored-by: Sash <[email protected]>
Co-authored-by: Ghadi <[email protected]>

This branch was successfully deployed

1 active deployment
Preview — b431cd8b Deployed Aug 11, 2026 by vercel[bot]
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.

Watch block headers over WebSocket without an extra eth_getBlockByNumber per block

1 participant