Conversation
tiero
commented
Mar 20, 2026
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
…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.
Deploying claw-cash-landing-page with
|
| 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 |
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.