Skip to content

feat(tempo): add encryptedDeposit.prepare#4786

Merged
jxom merged 4 commits into
wevm:mainfrom
struong:struong/prepare-encrypted-deposit
Jul 2, 2026
Merged

feat(tempo): add encryptedDeposit.prepare#4786
jxom merged 4 commits into
wevm:mainfrom
struong:struong/prepare-encrypted-deposit

Conversation

@struong

@struong struong commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds zone.encryptedDeposit.prepare for preparing encrypted zone deposit payloads without broadcasting a transaction. Prepared payloads can be passed directly to zone.encryptedDeposit or zone.encryptedDepositSync for broadcast.

Motivation

Prepared encrypted deposits let one party choose the private zone recipient and memo while another wallet or service submits the public parent-chain deposit transaction.

Changes

  • Added a prepared encrypted deposit return type and nested encryptedDeposit.prepare helper.
  • Allowed encryptedDeposit, encryptedDepositSync, and encryptedDeposit.calls to consume prepared payloads.
  • Bound nested .prepare helpers on decorated clients, enabling client.zone.encryptedDeposit.prepare(...).
  • Added docs under zone.encryptedDeposit#prepared-usage, updated the zones deposit guide, and added a changeset.
  • Added focused runtime, e2e, and type coverage for prepared encrypted deposits.

Testing

  • git diff --check
  • corepack pnpm exec biome check ...
  • corepack pnpm exec vitest --typecheck.only src/tempo/actions/zone.test-d.ts
  • VITE_TEMPO_ENV=testnet corepack pnpm test src/tempo/e2e.test.ts -t "zone.encryptedDeposit.prepare"
  • corepack pnpm docs:build

@vercel

vercel Bot commented Jul 2, 2026

Copy link
Copy Markdown

@struong is attempting to deploy a commit to the Wevm Team on Vercel.

A member of the Team first needs to authorize it.

@changeset-bot

changeset-bot Bot commented Jul 2, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 7a22c92

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
viem Minor

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

@pkg-pr-new

pkg-pr-new Bot commented Jul 2, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/viem@4786

commit: 63d7354

@struong struong force-pushed the struong/prepare-encrypted-deposit branch 3 times, most recently from 55dde03 to 3b15581 Compare July 2, 2026 22:17
@struong struong marked this pull request as ready for review July 2, 2026 22:20
@struong struong changed the title feat(tempo): add prepareEncryptedDeposit feat(tempo): add encryptedDeposit.prepare Jul 2, 2026
@struong struong force-pushed the struong/prepare-encrypted-deposit branch from 8d3e7af to 63d7354 Compare July 2, 2026 23:16
@jxom jxom merged commit b4b3cbe into wevm:main Jul 2, 2026
15 of 22 checks passed
@github-actions github-actions Bot mentioned this pull request Jul 2, 2026
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.

2 participants