Repository navigation
Pin Base to viem 2.58.10 so consumers get patched ws - #82
Merged
Merged
Conversation
viem 2.44.4 depends on ws 8.18.3, so a fresh install of that pin still resolves the vulnerable release. 2.58.10 depends on ws 8.23.1, which covers GHSA-37g9-w4hg-h9qr. The release-age gate excludes that exact version.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
viem 2.58 infers a private chain module for the frozen Base definitions. Typing BASE_MAINNET and BASE_SEPOLIA as BaseChain keeps the published declarations on viem's public Chain type.
Owner
Author
|
Declaration emit failed on viem 2.58.10 with TS2742:
|
Declaration emit must name viem's own chain types. The sponsored flow only needs a few public-client actions, so an older client stays assignable when viem adds members.
viem 2.58 chain and account types do not substitute for viem 2.44, so the public boundary exposes the fields this package calls.
deriveBaseAccount stays a wallet-client account, preset chains keep the explorer and multicall metadata, and the 7702 adapter no longer exposes one release's private-key account or drops a class signer's receiver.
Preset and frozen chains expose the explorer, testnet flag, and multicall address. Derived accounts return the key shape both viem releases share, and the smart-account declarations import a resolvable signer type.
Authorization requests reject a delegate address and a contract address together. Derived keys keep derive and deriveChild. Preset chains expose the source id and portal address. OP Stack receipt formatters stay on viem's own chain objects.
The 7702 owner converts raw message bytes to hex before signing. Derived accounts reject a numeric message and a decimal transaction value. Preset chain ids stay 8453 and 84532.
Scaffolding checks that peer on the base-only path and on --with-base. The install guide uses the archive from pnpm pack:base together with that viem release.
Named mainnet and Sepolia contracts no longer carry an optional numeric index, so a withdrawal accepts them when the L1 client is Chain. A full viem chain literal remains a valid network input. The install example quotes the packed archive name.
The base-wallet template includes the withdrawal target assertions, so the archive consumer build typechecks them against the shipped declarations.
…ep the preset serializer.
…p domain-only requests and the block formatter.
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.
Summary
@z-stack/baseand the base-wallet example to viem 2.58.10. A fresh npm install of viem 2.44.4 resolves[email protected]because viem depends on that release directly. viem 2.58.10 depends on[email protected].ws>= 8.23.0. The workspacewsoverride does not publish to consumers, so the pin has to move.[email protected](published 2026-12-04).estimateOperatorFeenow fails an HTTP 429 gas request instead of resolving a missing operator fee to 0. The strict oracle still rejects with "network is unavailable".0.1.0-alpha.14. The archive publishes that version.This does not close #64. A fresh install of
@solana/[email protected]with@solana/[email protected]still resolves[email protected](no patched release) and, through[email protected],[email protected]and[email protected].[email protected]drops those two packages, but a workspace override does not replace an application's transitive tree.Test plan
npm install --ignore-scripts [email protected]resolves[email protected]; the same install of[email protected]resolves[email protected]pnpm test:base— 226 passedpnpm --filter @z-stack/base typechecknode scripts/base-license-inventory.mjs --checkpnpm audit --prodin this worktree — no known vulnerabilities