Commit Graph

13 Commits

Author SHA1 Message Date
Claude
7e60fe0976 Fix Spark SDK API compatibility issues
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.
2025-11-13 16:05:54 +00:00
Claude
855cd20ba6 Replace Breez SDK (Greenlight) with Breez Spark SDK (nodeless)
Major changes:
- Built C# bindings for Breez Spark SDK from source using UniFFI
- Created local NuGet package infrastructure (Breez.Sdk.Spark v0.0.1)
- Replaced Breez.Sdk package reference with Breez.Sdk.Spark
- Updated BreezLightningClient to use async Spark SDK API
- Removed Greenlight-specific code (credentials, invite codes)
- Simplified BreezSettings (no more Greenlight fields)
- Updated BreezService for async client initialization
- Cleaned up BreezController (removed certificate upload logic)

Key differences in Spark SDK:
- Nodeless architecture (no Greenlight hosting required)
- Simplified configuration (only mnemonic + API key)
- All async methods (no BlockingBreezServices)
- Different payment flow (PrepareSendPayment + SendPayment)

The plugin now works with Breez's Spark protocol which provides
a self-custodial Lightning experience without infrastructure hosting.

Note: NuGet package must be built from spark-sdk source before use.
2025-11-13 15:01:05 +00:00
Andrew Camilleri (Kukks)
a5525eade4 upd btcpay to 2.2 2025-09-04 10:45:30 +02:00
Kukks
9b90e10b66 wip 2024-10-18 09:46:16 +02:00
Kukks
0caeaac5b4 add logs and bump breez 2024-06-18 11:00:28 +02:00
Kukks
47887a4073 add fee to amount in invoice for breez 2024-06-11 17:02:02 +02:00
Kukks
99330c931e bump breez sdk to 0.4 2024-05-08 14:06:09 +02:00
Kukks
de5d6c9113 breez fixes 2024-03-22 11:22:55 +01:00
Kukks
efd72fdae9 update breez 2024-03-21 15:52:36 +01:00
Kukks
5f62988f01 fix breez and add blink 2023-12-07 10:50:10 +01:00
Kukks
96b2d273de wip 2023-12-06 09:24:57 +01:00
Kukks
74c6931e8c wip 2023-12-06 09:24:57 +01:00
Kukks
cfa7efd11b wip 2023-12-06 09:24:57 +01:00