Skip to content

feat(wallet): add connect and Tempo wallet RPC actions#4712

Draft
deodad wants to merge 1 commit into
wevm:mainfrom
deodad:dad/tempo-wallet-sync-actions
Draft

feat(wallet): add connect and Tempo wallet RPC actions#4712
deodad wants to merge 1 commit into
wevm:mainfrom
deodad:dad/tempo-wallet-sync-actions

Conversation

@deodad
Copy link
Copy Markdown
Contributor

@deodad deodad commented Jun 4, 2026

Summary

Add core wallet connect and Tempo-native wallet RPC actions.

Motivation

Tempo wallets need provider-mediated connect, sync transaction, batched-call, and access-key RPCs. connect is the generic ERC-7846 wallet surface; Tempo contributes chain-level capability formatting instead of a separate Tempo namespaced connect action.

Changes

  • Add connect to core wallet actions/decorator (src/actions/wallet/connect.ts, src/clients/decorators/wallet.ts) and keep viem/experimental/erc7846 as a compatibility re-export.
  • Add Tempo wallet actions sendTransactionSync, writeContractSync, sendCallsSync, authorizeAccessKey, and revokeAccessKey in src/tempo/actions/wallet.ts, exposed by tempoActions().
  • Add Tempo wallet_connect capability typing/formatting in src/tempo/Capabilities.ts and src/tempo/chainConfig.ts for authorizeAccessKey and returned keyAuthorization.
  • Extract shared wallet request builders in src/actions/wallet/utils/ for transaction, contract write, and EIP-5792 call formatting.
  • Add wallet connect docs and update ERC-7846 compatibility docs (site/pages/docs/actions/wallet/connect.md, site/pages/experimental/erc7846/*).

Testing

  • pnpm exec biome check src/actions/wallet/connect.ts src/actions/index.ts src/actions/index.test.ts src/clients/decorators/wallet.ts src/clients/decorators/wallet.test.ts src/experimental/erc7846/actions/connect.ts src/tempo/Capabilities.ts src/tempo/Decorator.ts src/tempo/Decorator.test.ts src/tempo/actions/wallet.ts src/tempo/actions/wallet.test.ts src/tempo/chainConfig.ts src/tempo/chainConfig.test-d.ts src/tempo/internal/walletAccessKey.ts src/types/chain.ts src/index.ts .changeset/tempo-wallet-rpc-actions.md
  • pnpm exec biome check site/pages/docs/actions/wallet/connect.md site/pages/experimental/erc7846/connect.md site/pages/experimental/erc7846/client.md site/vocs.config.ts .changeset/tempo-wallet-rpc-actions.md
  • pnpm exec tsc -p test/tsconfig.json --noEmit --pretty false
  • pnpm test src/tempo/actions/wallet.test.ts src/tempo/Decorator.test.ts --run
  • git diff --check

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 4, 2026

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

A member of the Team first needs to authorize it.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jun 4, 2026

🦋 Changeset detected

Latest commit: a3492f6

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

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

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

@deodad deodad force-pushed the dad/tempo-wallet-sync-actions branch from 1608ff7 to 734daab Compare June 4, 2026 12:43
@deodad deodad changed the title feat(tempo): add wallet sync actions feat(tempo): add native wallet sync actions Jun 4, 2026
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Jun 4, 2026

Open in StackBlitz

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

commit: a3492f6

@deodad deodad force-pushed the dad/tempo-wallet-sync-actions branch from 734daab to d103a90 Compare June 4, 2026 12:58
@deodad deodad changed the title feat(tempo): add native wallet sync actions feat(tempo): add native wallet RPC actions Jun 4, 2026
@deodad deodad force-pushed the dad/tempo-wallet-sync-actions branch 2 times, most recently from fb068fb to 2c3c437 Compare June 4, 2026 13:22
@deodad deodad changed the title feat(tempo): add native wallet RPC actions feat(tempo): add tempo wallet RPC actions Jun 4, 2026
@deodad deodad changed the title feat(tempo): add tempo wallet RPC actions feat(wallet): add connect and Tempo wallet RPC actions Jun 4, 2026
@deodad deodad force-pushed the dad/tempo-wallet-sync-actions branch 2 times, most recently from d00d026 to 365edaf Compare June 4, 2026 14:39
@deodad deodad force-pushed the dad/tempo-wallet-sync-actions branch from 365edaf to a3492f6 Compare June 4, 2026 14:46
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.

1 participant