Skip to content

feat(tempo): restore MACH funding routes - #869

Open
parvahuja wants to merge 14 commits into
mainfrom
parv/restore-mach-swapper
Open

feat(tempo): restore MACH funding routes#869
parvahuja wants to merge 14 commits into
mainfrom
parv/restore-mach-swapper

Conversation

@parvahuja

@parvahuja parvahuja commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

Why

Allow mppx clients holding MACH to fund payments without merchants advertising or accepting MACH directly.

What

  • Carry machineTokenEnabled in authenticated method details while preserving the advertised settlement currency and recipient.
  • Route MACH funding through the canonical swapper into the advertised settlement currency.
  • Preserve verified direct-settlement fallback when a MACH route is unavailable.
  • Expose immutable deployment metadata and add focused regression coverage.
  • Refresh vulnerable release-tooling and example dependencies.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 4, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-09T05:45:35.631174Z 571dd23 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@pkg-pr-new

pkg-pr-new Bot commented Sep 4, 2026

Copy link
Copy Markdown

Open in StackBlitz

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

commit: 71824a2

@parvahuja

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e25bb47706

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread README.md Outdated
@parvahuja parvahuja changed the title feat(tempo): restore MACH settlement feat(tempo): restore MACH funding routes Sep 8, 2026
@parvahuja

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: 571dd23312

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

},
})) ?? defaultAccount

const machineTokenCandidate = machineTokenEnabled

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

i don't love us just inlining a big block here with a conditional, but I think this is fine in the short term since we can collapse later

import * as defaults from './defaults.js'

const swapAbi = [
{

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

is this a custom ABI? or can we pull this from the upstream viem types?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

lts custom, but i can clean this up a bit of the redudancy here

}
}

function authorizationDomain(router: Address, chainId: number) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

we still don't support sessions on mainnet right? so this is just landing ahead of then?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

we actually do support session via the swapper based of our original design -- it gets around the TIP1034 "refund" issue by burning the and reminting back to the user

Comment thread README.md Outdated
const res = await fetch('https://mpp.dev/api/ping/paid')
```

Servers price payments in PathUSD, USDC.e, or another supported settlement token. When a server

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

rm from readme

@parvahuja
parvahuja force-pushed the parv/restore-mach-swapper branch from 571dd23 to dc318a9 Compare September 9, 2026 18:36
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