Skip to content

daemon: recover and delegate vtxos#21

Merged
tiero merged 5 commits into
mainfrom
delegate
Mar 20, 2026
Merged

daemon: recover and delegate vtxos#21
tiero merged 5 commits into
mainfrom
delegate

Conversation

@tiero

@tiero tiero commented Mar 20, 2026

Copy link
Copy Markdown
Owner
  • feat: integrate MPP (Machine Payments Protocol) for paying MPP-enabled services
  • feat: refactor MPP payment handling and introduce support for lightning challenges
  • feat: update @arkade-os/sdk to version 0.4.10 and add delegator support in CLI

claude and others added 3 commits March 18, 2026 14:01
…d services

Add `cash pay <url>` command that auto-detects MPP 402 payment challenges
and settles them by swapping BTC→stablecoin via existing LendaSwap
infrastructure. Follows the core principle: Bitcoin in, stablecoins out,
on demand.

- MPP client library (cli/src/mpp/) implementing HTTP 402 challenge-then-retry
- Currency mapping: USD/USDC/USDT on polygon/ethereum/arbitrum/tempo
- Expiry validation on payment requirements
- Session support for streaming payments
- 31 comprehensive tests covering protocol parsing, proof creation,
  currency mapping, full client flow, edge cases

https://claude.ai/code/session_01XEaEUdv3xCXdw6wwYYMajj
…ng challenges

- Rename `parseMppResponse` to `parseMppChallenges` and update its functionality to handle multiple challenge types.
- Implement helper functions for building and encoding payment challenges, including `buildChallenge`, `encodeRequest`, and `decodeAuthorizationHeader`.
- Create a new module `method.ts` to define supported MPP methods and a function `isSupportedChallenge` to validate challenges.
- Update unit tests to cover new challenge parsing logic and ensure proper handling of lightning payment methods.
- Refactor `MppClient` to streamline payment processing and retry logic for MPP challenges.
- Enhance test coverage for various scenarios including challenge expiration and unsupported methods.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Mar 20, 2026

Copy link
Copy Markdown

Deploying claw-cash-landing-page with  Cloudflare Pages  Cloudflare Pages

Latest commit: acc72a3
Status: ✅  Deploy successful!
Preview URL: https://8fbe2c31.claw-cash-landing-page.pages.dev
Branch Preview URL: https://delegate.claw-cash-landing-page.pages.dev

View logs

@tiero tiero changed the title delegate recover and delegate vtxos Mar 20, 2026
@tiero tiero changed the title recover and delegate vtxos daemon: recover and delegate vtxos Mar 20, 2026
@tiero tiero merged commit 490b54a into main Mar 20, 2026
2 checks passed
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