Skip to content

feat: add machineUSD funding flow - #93

Merged
parvahuja merged 3 commits into
mainfrom
parv/add-machine-usd-funding
Aug 17, 2026
Merged

feat: add machineUSD funding flow#93
parvahuja merged 3 commits into
mainfrom
parv/add-machine-usd-funding

Conversation

@parvahuja

Copy link
Copy Markdown
Member

Why

CLI wallets need a direct handoff into the wallet-native machineUSD onramp and a reliable way to detect when mainnet MACHUSD arrives. This depends on machine-usd#44 and wallet#678.

What

  • Add tempo wallet fund --machine-usd.
  • Open the hidden wallet funding URL with the CLI wallet address.
  • Load the authoritative mainnet token configuration and wait for its balance to increase.

@parvahuja
parvahuja marked this pull request as ready for review August 17, 2026 16:55

@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: 177215fec7

ℹ️ 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 src/compat.ts
action: fundAction({
credits: args.includes("--credits"),
crypto: args.includes("--crypto"),
machineUsd: args.includes("--machine-usd"),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Forward the selected network through the compatibility path

When invoked in the normal command-first form, such as tempo wallet fund --machine-usd --network testnet (or -n testnet), handleCompatCommand intercepts the command but runFundCompat never passes the network to runFundingFlow. The flow therefore defaults to mainnet, bypasses the intended mainnet-only rejection, and opens a real mainnet purchase flow despite the explicit testnet selection. Forward both network option forms here as the sessions compatibility path already does.

Useful? React with 👍 / 👎.

@parvahuja
parvahuja merged commit 3f6b67e into main Aug 17, 2026
8 checks passed
@parvahuja
parvahuja deleted the parv/add-machine-usd-funding branch August 17, 2026 17:28
parvahuja added a commit that referenced this pull request Aug 17, 2026
Reverts #93 until the machineUSD wallet and backend rollout is ready.
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