Repository navigation
feat(request): plan every charge through machine-fetch (stack 3/6) - #276
Draft
brendanjryan wants to merge 1 commit into
Draft
brendanjryan wants to merge 1 commit into
brendanjryan wants to merge 1 commit into
Conversation
This was referenced Oct 18, 2026
brendanjryan
force-pushed
the
brendan/machine-fetch-3-plan
branch
from
October 18, 2026 22:09
8d079be to
a36ebd2
Compare
brendanjryan
force-pushed
the
brendan/machine-fetch-2-e2e
branch
from
October 18, 2026 22:09
32890ef to
30c152b
Compare
brendanjryan
force-pushed
the
brendan/machine-fetch-3-plan
branch
from
October 18, 2026 22:27
a36ebd2 to
bfb8336
Compare
brendanjryan
force-pushed
the
brendan/machine-fetch-2-e2e
branch
from
October 18, 2026 22:27
30c152b to
3702534
Compare
brendanjryan
force-pushed
the
brendan/machine-fetch-3-plan
branch
from
October 19, 2026 15:41
bfb8336 to
e32c441
Compare
brendanjryan
force-pushed
the
brendan/machine-fetch-2-e2e
branch
from
October 19, 2026 15:41
3702534 to
833bb27
Compare
Charges go through planAndFund (src/payment/funding.ts): mppxRequirement, planPayment, then machine-fetch's Mppx extension, and the credential is created with the context it prepared. There are no funders yet, so payments are unchanged. --max-spend becomes maxPayment as an asset list: every USD token the CLI lists for the network at the cap. A charge in any other token is now refused with E_LIMIT_EXCEEDED instead of being compared as if it had six decimals. enforceMaxSpend still refuses an over-cap charge early with the same cap. machine-fetch error codes map to the CLI's codes and ctas. src/shared/chains.ts holds the trusted token table; TEMPO_DEV_CHAINS adds development tokens, which the e2e harness uses for its local chain.
brendanjryan
force-pushed
the
brendan/machine-fetch-3-plan
branch
from
October 19, 2026 21:48
e32c441 to
4a56d7b
Compare
brendanjryan
force-pushed
the
brendan/machine-fetch-2-e2e
branch
from
October 19, 2026 21:48
833bb27 to
f7296ca
Compare
This branch has not been deployed
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.
3/6 — Phase 1. Every charge is planned through machine-fetch before signing (
src/payment/funding.ts:mppxRequirement→planPayment→extension().preparePayment), and the credential is created with the context funding prepared.--max-spendbecomesmaxPaymentas an asset list of the USD tokens the CLI lists. Behavior change: a charge in an unlisted token is refused withE_LIMIT_EXCEEDEDinstead of being compared as if it had six decimals. machine-fetch error codes map to CLI codes and ctas.TEMPO_DEV_CHAINSadds development tokens (used by the e2e harness).Paired PRs
main): mppx-1 auto-swap allowlist and OUSD default feat(tempo): auto-swap allowlist (autoSwap.fallback) and OUSD in the default currencies wevm/mppx#1054 · mppx-3 auto-swap reads without the account fix(tempo): read auto-swap balances and quotes without the account wevm/mppx#1055wallet-cli vendors machine-fetch
main@ d168943 (0.3.0) and mppxbrendan/wallet-cli-needs@ 8295134 (mppx@0.12.0+ the commits merged upstream as 82810df and 0acc2bc), pinned by commit until we choose to upgrade.