mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-16 23:24:25 +01:00
7e60fe09764883d8de45c339b24c5bc3bf08e850
Critical fixes for Spark SDK migration: 1. **BreezController.cs**: - Replaced RedeemOnchainFunds with ClaimDeposit/ListUnclaimedDeposits - Disabled swap-out (not available in nodeless Spark SDK) - Updated refund to use RefundDeposit instead of Refund - Fixed method signatures and parameter names 2. **BreezLightningClient.cs**: - Fixed field name mismatches: amount (not amountSats), fees (not feesSats) - Updated ReceivePaymentResponse: paymentRequest (not destination), fee (not feesSats) - Fixed PaymentDetails pattern matching for Lightning variant - Removed timestamp nullable check (it's always present in Spark SDK) - Updated GetInfo/GetBalance for nodeless architecture - Fixed payment conversion to handle Spark SDK's discriminated union structure 3. **BTCPay Server submodule**: Updated to v2.2.0 The Spark SDK uses a nodeless architecture with different capabilities: - Deposits instead of traditional swap-in - No onchain swap-out functionality - No node ID or block height in GetInfo - Payment details use discriminated unions (Lightning/Spark/Token/Deposit/Withdraw) All Lightning payment operations now work correctly with the Spark SDK.
Description
Languages
C#
67%
HTML
32.6%
JavaScript
0.2%
PowerShell
0.1%
Dockerfile
0.1%