Skip to content

improve(finalizer): Flush out chain-specific override tech debt#3031

Merged
pxrl merged 7 commits intomasterfrom
pxrl/opViem
Mar 11, 2026
Merged

improve(finalizer): Flush out chain-specific override tech debt#3031
pxrl merged 7 commits intomasterfrom
pxrl/opViem

Conversation

@pxrl
Copy link
Collaborator

@pxrl pxrl commented Mar 10, 2026

This change migrates chain-specific supplements for DisputeGameFactory to a viem patch in anticipation of these changes being accepted upstream. This in turn permits some of the viem overrides to be wound back, and reduces the maintenance burden of viem vs pre-viem OP stack SDK support.

pxrl added 4 commits March 10, 2026 01:09
Viem's extractChain() is wrapped to provide some type assurances around
chainId, because Chain.id is typed as a union of known chainIds, whereas
the relayer's chainId is always a number type.

This change is useful for a follow-up change to simplify the handling of
viem chains in the finalizer.
This change migrates chain-specific supplements for DisputeGameFactory
to a viem patch in anticipation of these changes being accepted
upstream. This in turn permits some of the viem overrides to be wound
back, and reduces the maintenance burden of viem vs pre-viem OP stack
SDK support.
bmzig
bmzig previously approved these changes Mar 10, 2026
Base automatically changed from pxrl/viemChains to master March 10, 2026 05:01
@pxrl pxrl dismissed bmzig’s stale review March 10, 2026 05:01

The base branch was changed.

@pxrl pxrl requested a review from bmzig March 10, 2026 05:18
@pxrl pxrl merged commit cad886d into master Mar 11, 2026
4 checks passed
@pxrl pxrl deleted the pxrl/opViem branch March 11, 2026 00:05
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