Repository navigation
chore: update viem to 0.0.0-9a2b41b1 - #930
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01D3nmWfbMUuWc5wUmems6eQ
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codex Review SummaryThis 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. |
✅ Cyclops Security Review: safe to mergeLast reviewed: 576c807 (latest) · no open findings |
There was a problem hiding this comment.
LGTM. This is a clean viem prerelease pin bump.
What was reviewed:
pnpm-workspace.yaml: the catalog and overrides entries both move to the same9a2b41b1hash, and the oldde39e106hash no longer appears anywhere in the tree.pnpm-lock.yaml: the viem specifiers, versions and integrity hash change, and viem's dependency list stays the same. The@ wagmi/connectorsandportopeer-suffix keys get new hashes, and their peer resolution lines (@ types/react,use-sync-external-store,accounts: 'link:') are only shuffled between those entries. The same lines are added and removed, which points to a regenerated lockfile rather than a hand edit.- In the six test files, only the
Version: viem@...line of the inline snapshots changed.
Extended reasoning...
The change bumps a pinned viem prerelease in pnpm-workspace.yaml and regenerates pnpm-lock.yaml. It also updates the version string in inline error snapshots across six test files. No application or library source changes, and it touches no auth, crypto or data-exposure code. In the lockfile, everything apart from the viem lines is a peer-suffix re-hash, and the same lines are added and removed, which fits a clean pnpm install. The repo has no CODEOWNERS file and the PR timeline has no open reviewer objections.
|
This needs an Aegis exemption for that exact version: Generated by Claude Code |
commit: |
⚡ Accounts Bench
Timings
ScoringEach value is the median of the passing runs. It is scored 0–100 on Lighthouse's log-normal curve: the good budget scores 90 and the poor budget scores 50. Rings are green from 90, orange from 50 and red below 50. A case score weights Total twice as much as Wallet ready and Confirm, and a renderer score is the mean of its case scores.
vs main runs the same bench against main's SDK in the same job, alternating which app goes first in each run, so both see the same network. 🟢 and 🔴 mark a Total change only when every run of one app beats every run of the other and the medians differ by 50 ms or more. A score change is marked when its cases agree. Commit 576c807 · vs main 7a2feb9 · 5 runs · Chrome 156.0.8078.47 · wallet https://wallet.tempo.xyz · workflow run |
Updates the Viem pin from the `main` build `0.0.0-9a2b41b1` (#930) to `0.0.0-9348d386a9f62fd6713124e25360d6040e4a34cf`, the `main` build with wevm/viem#5392 (published 2026-11-03T04:00:50Z). The catalog and the override both change. Viem still depends on `ox` 0.14.59, so Ox stays where it is; it moves in a follow-up. #5392 is the reason for the bump: - JSON-RPC `-32601` and `-32004` refusals are no longer retried, even from non-2xx responses. A public RPC's 403 refusal of `tempo_simulateV1` now fails at once in any client, not just in `Handler.relay`'s probe (#941). That probe keeps `retryCount: 0`, which still matters for transport failures. - The `http` and socket transports build the `onFetchRequest` `Request` and the `TimeoutError` only when they're needed. - `toSignatureHash` caches signature hashes in an LRU, so selector lookups in `decodeFunctionData`, `decodeEventLog`, `decodeErrorResult` and `encodeFunctionData` stop rehashing every ABI item. ## Other Viem changes between `9a2b41b1` and `9348d386` There are 37 commits in `9a2b41b1..9348d386`. These are the ones that change Tempo behavior the SDK relies on: - **#5360**: The default expiring-nonce `validBefore` goes from 25 to 270 seconds. A random `nonce` discriminator replaces the random `validAfter`, and `Transaction.expiringNonceMaxExpiry` (300) is added. `prepareTransactionRequest` drops a requested `feeToken` from a fill the fee payer already signed, since that signature covers the filled token. `Relay.feePayer` caps expiring windows, but the SDK's relay handler doesn't use `Relay.feePayer`. - **#5356**: The Tempo chain config adds 5,000 gas for the fee payer's signature and fee token to a sponsored request whose gas came from the fill. T14 charges these as intrinsic gas. It doesn't add the gas to owner-approved configurable transactions. The Tempo formatter now keeps `capabilities` on fill requests without Tempo fields; it used to drop `errors: true` there. `Relay.autoSwap` and the opt-in balance diffs are new `viem/tempo` relay plugins. `Handler.relay` has its own `autoSwap` and `balanceDiffs` and is unaffected. - **#5377 / #5382**: When `eth_sendRawTransactionSync` returns error code 4, `sendTransactionSync` now keeps the nonce and waits for the receipt with the node's hash, or with a hash it derives locally. `fallback` no longer forwards that transaction to the next node. The Provider's root-account sends go through this path. `AccessKeyTransaction` sends the raw request itself and still treats code 4 as maybe submitted. - **#5336**: `fillTransaction` keeps a requested nonce as a `bigint` (TIP-1106). - **#5388**: Adds `Account.serialize`/`Account.deserialize` and a `keyAuthorization` option for access key accounts. These are new APIs only. - **#5372**: `estimateGas` now applies block and state overrides instead of returning a gas limit filled during preparation. The SDK doesn't pass overrides. - **#5373**: `NonceManager.reset` now receives the consumed nonce. The SDK has no nonce manager. - **#5380 / #5381**: `watchBlocks` and `watchBlockNumber` now emit missed blocks on fast chains, with catch-up capped at 100 blocks. The SDK doesn't watch blocks. - **#5339 / #5370**: `getAbiItem` now rejects overloads it can't tell apart, and `validateTypedData` rejects invalid EIP-712 field types. Nothing in the suites hits either. No source changes were needed. The error snapshots now show the new version string. ## Lockfile A full resolution re-resolves every peer and adds a real `[email protected]` (with `[email protected]`) as a tooling peer, which `scripts/zod-security.test.ts` rejects. `--fix-lockfile` does the same. So the lockfile is edited directly: - the version and integrity of `viem`; - the 5 hashed peer suffixes whose input contains the `viem` version (`@wagmi/[email protected]`, 3× `@wagmi/[email protected]` and `[email protected]`). To get the new hashes, I resolved both the old and the new graphs with `--config.peers-suffix-max-length=100000`. Hashing the old graph's unhashed suffixes (SHA-256, first 32 hex characters) reproduces every hash on `main`. The new hashes match what pnpm wrote on a full resolution. The lockfile diff touches only these entries. I logged this as friction in `.agents/friction-log/`. No changeset: the published `viem` peer range (`>=2.57.12`) and the `ox` range don't change. ## Validation - `pnpm install --frozen-lockfile` from empty `node_modules`: passed. - `pnpm check:types`: passed. - `pnpm check`: 0 errors; the 5 warnings are already on `main`. - `pnpm build`: passed. - `pnpm test --project lib/pure --reporter=dot`: 50 files, 889 tests passed. - `VITE_NODE_ENV=localnet VITE_NODE_TAG=latest pnpm test --project lib/localnet --reporter=dot --maxWorkers=4` against `ghcr.io/tempoxyz/tempo:latest` in OrbStack: 10 files, 658 tests passed.
This updates the Viem pin from the
mainbuild0.0.0-de39e106(#928) to the currentmainbuild,0.0.0-9a2b41b10a791e5ee55eab66110139e2043ccf26. The catalog and the override both change.Number(transaction.nonce)casts infeeLiquidity.localnet.test.tsstay.mainbuilds9f07ca98,d18ea6dcand92e78aa6are skipped. Their Tempo chain formatters lost the chain-formatter type, sofillTransactionreturned the base transaction type (41tscerrors).9a2b41b1fixes it.Validation:
pnpm check:typesis clean,pnpm auditpasses, andlib/purepasses 860 of 860 tests locally. The localnet tests run in CI.Generated by Claude Code