Skip to content

feat(tempo): support machineUSD sessions - #794

Open
decofe wants to merge 2 commits into
wevm:mainfrom
decofe:centaur/machine-usd-sessions-1786684741
Open

feat(tempo): support machineUSD sessions#794
decofe wants to merge 2 commits into
wevm:mainfrom
decofe:centaur/machine-usd-sessions-1786684741

Conversation

@decofe

@decofe decofe commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • bind machineUSD settlement routes into TIP-1034 descriptor salts while preserving the logical merchant and channel operator
  • atomically settle escrow deltas through MachineUsdSwapper and persist adapter route metadata for reuse and indexing
  • handle final-delta close as settle → convert → close, skip replay for fully settled channels, and reject refundable closes

Validation

  • pnpm check
  • pnpm check:types
  • focused pure tests for route commitments, adapter calldata, cache scoping, and partial-route rejection

Full precompile E2E requires the companion MachineUsdSwapper and machineUSD reserve-whitelist changes; this PR intentionally rejects non-fully-consumed closes because machineUSD refunds are not currently recipient-policy compatible.

Prompted by: @gakonst

Co-authored-by: Derek Cofausper <256792747+decofe@users.noreply.github.com>
@pkg-pr-new

pkg-pr-new Bot commented Aug 14, 2026

Copy link
Copy Markdown

Open in StackBlitz

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

commit: 6bf8ae8

Co-authored-by: Derek Cofausper <256792747+decofe@users.noreply.github.com>
@parvahuja

Copy link
Copy Markdown
Collaborator

Superseded by #800 (refund-capable) and #801 (no-refund alternative), both using the one-flag merchant API and smoke-tested against their deployed contracts.

@parvahuja

Copy link
Copy Markdown
Collaborator

Superseded by #800 (refund-capable) and #801 (no-refund alternative), both using the one-flag merchant API and smoke-tested against their deployed contracts. This PR can be closed.

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.

3 participants