Skip to content

feat(op-stack): support the post-exec transaction type (0x7d) - #5665

Open
jxom wants to merge 3 commits into
mainfrom
op-stack-post-exec
Open

jxom wants to merge 3 commits into
mainfrom
op-stack-post-exec

Conversation

@jxom

@jxom jxom commented Nov 25, 2026

Copy link
Copy Markdown
Member

Supersedes #5664 by @sbvegan, keeping their commit. Refs #5623 (item 3).

Adds viem/op-stack support for the OP Stack Upgrade 22 (Lagoon) post-exec transaction type (0x7d, spec): the transaction and block formatters return it as type: 'postExec' (accepting both the spec/op-reth and op-geth RPC shapes), and parseTransaction / serializeTransaction handle 0x7d || payload. The payload stays opaque Hex.

On top of @sbvegan's commit:

  • TSDoc on the exported TransactionSerializablePostExec and TransactionSerializedPostExec types.
  • Title Case for the docs headings (Post-Exec Transactions), and noted that signature is ignored for post-exec transactions too.

Review notes

  • Checked against the spec and op-geth (core/types/post_exec_tx.go, transaction_marshalling.go): no outer RLP envelope, hash keccak256(0x7d || payload) (matches the test fixture), zero from, no signature.
  • Deposit (0x7e) and other transaction types route as before; non-OP chains are untouched.
  • src/op-stack/** is excluded from every Vitest project, so CI does not run these runtime tests. With a scratch config, the new formatter/parser tests pass and fail on main. The new type assertions fail against main's types.
  • Size: viem ESM 94.34/94.5 kB, CJS 121.14/121.5 kB (op-stack is not in the root entry), viem/chains 139.37/140.5 kB.

sbvegan and others added 2 commits November 25, 2026 07:02
OP Stack Upgrade 22 (Lagoon) adds a post-exec transaction (type 0x7d)
that the sequencer appends as the last transaction of a block to carry
gas refunds. The formatters now return it as type 'postExec', and
parseTransaction and serializeTransaction handle its 0x7d || payload
encoding.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ase headings

Amp-Thread-ID: https://ampcode.com/threads/T-01a2133c-22a2-771e-8e0e-183d379d9e79
Co-authored-by: jxom <7336481+jxom@users.noreply.github.com>
@vercel

vercel Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
viem Error Error Nov 25, 2026 3:37pm UTC

Request Review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T15:35:39.302875Z bb64dba New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@changeset-bot

changeset-bot Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: bb64dba

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

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Published viem@0.0.0-pr-5665-bb64dba under the pr-5665 dist-tag, which follows this pull request until it closes.

pnpm add viem@pr-5665
pnpm add viem@0.0.0-pr-5665-bb64dba

This branch had an error being deployed

1 failed deployment
Preview — bb64dba3 Deployed Nov 25, 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.

3 participants