feat(wallet): add connect and Tempo wallet RPC actions#4712
Draft
deodad wants to merge 1 commit into
Draft
Conversation
|
@deodad is attempting to deploy a commit to the Wevm Team on Vercel. A member of the Team first needs to authorize it. |
🦋 Changeset detectedLatest commit: a3492f6 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 |
1608ff7 to
734daab
Compare
commit: |
734daab to
d103a90
Compare
fb068fb to
2c3c437
Compare
d00d026 to
365edaf
Compare
365edaf to
a3492f6
Compare
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
Add core wallet
connectand Tempo-native wallet RPC actions.Motivation
Tempo wallets need provider-mediated connect, sync transaction, batched-call, and access-key RPCs.
connectis the generic ERC-7846 wallet surface; Tempo contributes chain-level capability formatting instead of a separate Tempo namespaced connect action.Changes
connectto core wallet actions/decorator (src/actions/wallet/connect.ts,src/clients/decorators/wallet.ts) and keepviem/experimental/erc7846as a compatibility re-export.sendTransactionSync,writeContractSync,sendCallsSync,authorizeAccessKey, andrevokeAccessKeyinsrc/tempo/actions/wallet.ts, exposed bytempoActions().wallet_connectcapability typing/formatting insrc/tempo/Capabilities.tsandsrc/tempo/chainConfig.tsforauthorizeAccessKeyand returnedkeyAuthorization.src/actions/wallet/utils/for transaction, contract write, and EIP-5792 call formatting.connectdocs 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.mdpnpm 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.mdpnpm exec tsc -p test/tsconfig.json --noEmit --pretty falsepnpm test src/tempo/actions/wallet.test.ts src/tempo/Decorator.test.ts --rungit diff --check