Skip to content

Resolve MPP accounts with access keys#685

Draft
parvahuja wants to merge 1 commit into
mainfrom
parv/mpp-resolve-account
Draft

Resolve MPP accounts with access keys#685
parvahuja wants to merge 1 commit into
mainfrom
parv/mpp-resolve-account

Conversation

@parvahuja

@parvahuja parvahuja commented Jun 23, 2026

Copy link
Copy Markdown
Member

Summary

  • Exposed the payment-aware mppx client on Provider for runtimes that pass an explicit fetch function.
  • Answered mppx account resolution from the Accounts access-key store for charge and session payments.
  • Added focused coverage for explicit payment-aware fetch without global fetch polyfill.

Why

mppx should ask which account signs a Tempo protocol action. Accounts can answer with a locally managed access key without mppx knowing Accounts internals.

Stack note

Review this after the mppx resolveAccount PR. Until Accounts depends on that mppx version, Provider.ts keeps a small local mirror of the hook input shape; replace it with imports from mppx/client before final merge.

Validation

  • pnpm check:types
  • VITE_NODE_ENV=localnet pnpm test src/core/mppx.localnet.test.ts
  • Linked local mppx parv/resolve-account smoke: VITE_NODE_ENV=localnet pnpm test src/core/mppx.resolve-account.localnet.test.ts with a temporary test asserting the session descriptor used the access key as authorizedSigner.

@vercel

vercel Bot commented Jun 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
accounts-site Ready Ready Preview, Comment Jun 24, 2026 12:43am

Request Review

@pkg-pr-new

pkg-pr-new Bot commented Jun 23, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/tempoxyz/accounts@685

commit: 7f17cdf

@github-actions

github-actions Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor
Worker Preview
Playground https://2fb74f2b-accounts-playground.porto.workers.dev

@github-actions

github-actions Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor
Worker Preview
Wagmi https://e698f8c7-accounts-wagmi.porto.workers.dev

Comment thread src/core/Provider.ts Outdated
Rpc.wallet_connect.Encoded['returns']['accounts'][number]['capabilities']['auth']
>

type MppResolveAccountInfo = MppResolveChargeAccountInfo | MppResolveSessionAccountInfo

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will import from mppx once they arrive there

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