mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-19 05:35:18 +01:00
Rename wait_any_incoming_payment to wait_payment_event and change return type from WaitPaymentResponse stream to Event stream. This introduces a new Event enum that wraps payment responses, making the system more extensible for future event types. - Add Event enum with PaymentReceived variant - Update MintPayment trait method signature - Refactor all payment backend implementations (LND, CLN, LNBits, fake wallet) - Update mint and payment processor to handle new event stream forma
CDK LNBits
ALPHA This library is in early development, the API will change and should be used with caution.
LNBits backend implementation for the Cashu Development Kit (CDK). This provides integration with LNBits for Lightning Network functionality.
Note: Only LNBits v1 API is supported. This backend uses the websocket-based v1 API for real-time payment notifications.
Installation
Add this to your Cargo.toml:
[dependencies]
cdk-lnbits = "*"
License
This project is licensed under the MIT License.