Repository navigation
chore: merge main into v3 - #5007
Conversation
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* 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]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* 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(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]>
…v3-2026-08-14 # Conflicts: # .github/workflows/changesets.yml # .github/workflows/deploy-docs.yml # .github/workflows/verify.yml # package.json # pnpm-lock.yaml # pnpm-workspace.yaml # site/pages/docs/actions/public/simulateCalls.md # site/pages/docs/actions/public/watchBlocks.md # site/pages/tempo/actions/zone.encryptedDeposit.mdx # site/vocs.config.ts # src/CHANGELOG.md # src/actions/index.test.ts # src/actions/index.ts # src/actions/public/simulateCalls.test.ts # src/actions/public/simulateCalls.ts # src/clients/createClient.test.ts # src/clients/createPublicClient.test.ts # src/clients/createTestClient.test.ts # src/clients/createWalletClient.test.ts # src/clients/decorators/public.test.ts # src/clients/decorators/public.ts # src/errors/version.ts # src/index.ts # src/package.json # src/tempo/actions/zone.test-d.ts # src/tempo/actions/zone.test.ts # src/tempo/actions/zone.ts # src/tempo/e2e.test.ts # src/utils/siwe/parseSiweMessage.test.ts # src/utils/siwe/parseSiweMessage.ts # src/utils/siwe/validateSiweMessage.test.ts # src/utils/siwe/validateSiweMessage.ts # test/src/anvil.ts
🦋 Changeset detectedLatest commit: 6762204 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
commit: |
size-limit report 📦
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 67622044d5
ℹ️ 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".
| const staticCallCode = | ||
| '0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063fd00430c1461002d575b5f5ffd5b6100476004803603810190610042919061012b565b610049565b005b80825f375f5f825f865afa610060573d5f5f3e3d5ffd5b3d5f5f3e3d5ff35b5f5ffd5b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61009982610070565b9050919050565b6100a98161008f565b81146100b3575f5ffd5b50565b5f813590506100c4816100a0565b92915050565b5f5ffd5b5f5ffd5b5f5ffd5b5f5f83601f8401126100eb576100ea6100ca565b5b8235905067ffffffffffffffff811115610108576101076100ce565b5b602083019150836001820283011115610124576101236100d2565b5b9250929050565b5f5f5f6040848603121561014257610141610068565b5b5f61014f868287016100b6565b935050602084013567ffffffffffffffff8111156101705761016f61006c565b5b61017c868287016100d6565b9250925050925092509256fea2646970667358221220635ed99185cacf3f2acba6921f23687c969cec2bbaf5f9ad599f507e6e105e6964736f6c63430008230033' |
There was a problem hiding this comment.
Compile the helper for pre-Shanghai forks
When traceAssetChanges targets a pre-Shanghai block or a chain without EIP-3855, this injected runtime contains 0x5f (PUSH0) opcodes, which are invalid under that fork. The static token balance and metadata probes consequently fail, causing ERC-20/ERC-721 changes to be silently omitted from assetChanges; compile the helper for a pre-Shanghai EVM target or otherwise use compatible bytecode.
Useful? React with 👍 / 👎.
| : stateOverride, | ||
| ...(address ? { to: staticCallAddress } : {}), | ||
| ...(typeof blockNumber === 'bigint' ? { blockNumber } : { blockTag }), | ||
| } as never) |
There was a problem hiding this comment.
Remove the forbidden
as never assertion
Casting this entire call-options object to never suppresses checking of the newly constructed state and block options, so future field mismatches can pass unnoticed. The block-number/block-tag discriminant is already available here and should be threaded into a properly typed call.Options value instead of bypassing the type system.
AGENTS.md reference: AGENTS.md:L80-L81
Useful? React with 👍 / 👎.
| const mock = Client.create({ | ||
| transport: custom({ | ||
| async request({ method, params }: { method: string; params: unknown }) { |
There was a problem hiding this comment.
Exercise asset discovery against a real test chain
This test replaces the node with a custom fake client whose hard-coded RPC responses cannot validate actual eth_simulateV1, state-override, or fork-specific execution semantics. Rework it against the configured test chain or a real ephemeral server, as the repository explicitly prohibits fake clients and requires tests to exercise real behavior.
AGENTS.md reference: AGENTS.md:L206-L209
Useful? React with 👍 / 👎.
| export declare namespace watchHeaders { | ||
| type BlockHeader<chain extends Chain.Chain | undefined = undefined> = Omit< |
There was a problem hiding this comment.
Document every exported watcher type
The new public namespace exports BlockHeader, callback types, Emitted, Watcher, ReturnType, and ErrorType without TSDoc on the declarations. Add concise TSDoc for each exported type so the public API satisfies the repository's documentation requirement and produces useful generated API documentation.
AGENTS.md reference: AGENTS.md:L174-L176
Useful? React with 👍 / 👎.
| if (blockTag_ === 'latest') | ||
| baseBlockNumber = await getNumber(client, { cacheTime: 0 }) | ||
| else { | ||
| const block = await get(client, { blockTag: blockTag_ }) |
There was a problem hiding this comment.
Thread request options through block resolution
When traceAssetChanges resolves latest, safe, or finalized, these auxiliary block requests omit the supplied requestOptions. In particular, an already-aborted signal cannot cancel a slow block-number/block lookup, and caller-selected retry behavior differs from all subsequent simulation and balance requests; pass the options through these resolution requests as well.
Useful? React with 👍 / 👎.
| "viem": patch | ||
| --- | ||
|
|
||
| Fixed `multicall` asset discovery across reverting, state-dependent, malformed, and newly deployed tokens while pinning stable block tags and isolating balance probes. |
There was a problem hiding this comment.
Include all public changes in the changeset
This changeset only records the multicall fix, while the same commit also adds the public Actions.block.watchHeaders API and changes prepared encrypted-deposit payloads to include sender-bound encryption. Those user-visible additions and behavioral changes will therefore be absent from release notes; add or update changesets for them as required for public behavior changes.
AGENTS.md reference: AGENTS.md:L300-L304
Useful? React with 👍 / 👎.
| const blockHeader = ( | ||
| fromRpc ? fromRpc(rpc) : Block.fromRpc(rpc) | ||
| ) as Header & Record<string, unknown> | ||
| for (const field of fullBlockFields) delete blockHeader[field] |
There was a problem hiding this comment.
Route header decode failures to
onError
If a subscription returns a malformed header or a chain-specific fromRpc codec throws, that exception occurs later inside the onData callback and is not caught by the surrounding asynchronous try block. It escapes through the socket dispatcher instead of reaching the watcher's registered error listeners, potentially leaving consumers waiting indefinitely; catch conversion and listener-preparation failures inside this callback and emit them through onError.
Useful? React with 👍 / 👎.
Merges current
mainintov3, adapting upstream watcher, multicall asset discovery, Tempo encrypted-deposit sender binding, dependency security overrides, and deployment workflow changes to the v3 architecture.