Skip to content

feat(tempo): add mpp_authorize wallet fallback#527

Draft
deodad wants to merge 3 commits into
dad/tempo-session-statelessfrom
dad/tempo-fill-mpp-authorize
Draft

feat(tempo): add mpp_authorize wallet fallback#527
deodad wants to merge 3 commits into
dad/tempo-session-statelessfrom
dad/tempo-fill-mpp-authorize

Conversation

@deodad

@deodad deodad commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds JSON-RPC mpp_authorize support for Tempo charge and session credential creation.

Motivation

Wallet-backed JSON-RPC accounts should be able to satisfy Tempo payment challenges without local signing or channel deposit configuration when the provider supports mpp_authorize.

Changes

  • Added src/tempo/client/internal/MppAuthorize.ts for shared JSON-RPC authorization calls and response validation.
  • Updated src/tempo/client/Charge.ts and src/tempo/client/Session.ts to delegate supported account flows to mpp_authorize.
  • Added charge/session coverage in src/tempo/client/Charge.test.ts, src/tempo/client/Session.test.ts, and src/tempo/client/internal/MppAuthorize.test.ts.
  • Added .changeset/mpp-authorize-json-rpc.md.

Testing

  • pnpm install (needed once after sandboxed DNS blocked dependency install)
  • pnpm build (passed; generated HTML modules, with existing dependency bundler warnings from ox/viem)
  • pnpm test -- src/tempo/client/internal/MppAuthorize.test.ts src/tempo/client/Charge.test.ts src/tempo/client/Session.test.ts (38 tests passed)
  • pnpm check:types (passed)

@pkg-pr-new

pkg-pr-new Bot commented Jun 9, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/mppx@527

commit: b1de7b8

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