496 Commits

Author SHA1 Message Date
Daniel Granhão
c0cba7f557 Implement get_sync_context 2025-07-16 11:50:48 +01:00
Daniel Granhão
bdd639c861 Log error instead of warning if chain swap recovery is skipped 2025-07-15 17:48:11 +01:00
Daniel Granhão
814d092223 Skip bitcoin tip fetching if there are no monitored chain swaps 2025-07-15 17:43:50 +01:00
Daniel Granhão
9d74686c67 Simplify redundant tip logic in sync_inner 2025-07-15 16:30:35 +01:00
Daniel Granhão
77ed5a043e Log persister error and assume no chain swaps 2025-07-15 11:19:39 +01:00
Daniel Granhão
f72ec85658 Optimize has_chain_swaps 2025-07-15 11:06:17 +01:00
Daniel Granhão
012a318ee6 Optimize bitcoin tip fetch + gracefully handle errors 2025-07-15 01:28:45 +01:00
Daniel Granhão
6cd2561f23 Fix clippy CI for rust 1.88.0 (#969) 2025-07-14 08:57:26 +01:00
Daniel Granhão
56dd9f7fc4 Fix list_refundables swap to amount matching (#968) 2025-07-11 14:31:56 +01:00
Daniel Granhão
e7b2e955e8 Use sats leeway for amountless swaps and set default (#960) 2025-07-01 11:34:20 +01:00
Ross Savage
e74b62d406 Store the BOLT12 payer note / LNURL-pay comment (#955)
* Store the payer note

* Correctly tokenize quoted strings

* Fix regtest

* Address review comments

* Update to be LUD-12 compatible

* Only handle LNURL/BOLT12 payer notes

* Apply suggestions from code review

* Store the send payer note in payment details
2025-07-01 09:24:58 +00:00
Daniel Granhão
f223f5b4db fix: Wrong amount in payment tx data persisted on claim (#957) 2025-06-25 10:49:57 +01:00
Daniel Granhão
80a2bb9f83 Clarify no api key error messages (#954) 2025-06-19 12:50:27 +01:00
Daniel Granhão
6f4b1a42d5 Merge pull request #944 from breez/daniel-set-boltz-client-api-key
Set api key on boltz client requests
2025-06-17 15:06:05 +01:00
Daniel Granhão
af2e8f606d Merge pull request #943 from breez/daniel-add-swapproxy-to-regtest
Add swapproxy to regtest environment
2025-06-17 15:02:38 +01:00
Daniel Granhão
ae2baac84d Add swapproxy to regtest environment 2025-06-09 13:46:07 +01:00
Daniel Granhão
e9f3909045 Use address as destination on incoming liquid payments (#946) 2025-06-09 09:58:44 +01:00
Daniel Granhão
1124db0e91 Allow non-local swap claims (#934)
* Allow non-local swap claims

* Apply fixes and add sync E2E tests

* Extract txn mempool conflict check logic

* Fix wasm

* Wasm E2E test fixes

* Rollback partial sync changes

* Rollback E2E test changes

* Add delay before non local chain swap claim
2025-05-30 10:08:40 +01:00
Daniel Granhão
e90ccc4560 Increase network propagation grace period (#937) 2025-05-30 09:48:13 +01:00
Daniel Granhão
0bc2dbe899 Fix status stream task shutdown (#935) 2025-05-27 11:19:40 +01:00
Daniel Granhão
8301805bac Sync chain swap claim address (#933)
* Sync chain swap claim address

* Clarify `claim_address` docs
2025-05-27 11:19:24 +01:00
Ross Savage
af8e9d61ff Update Kotlin Multiplatform bindgen to uniffi 0.28 2025-05-23 16:26:30 +02:00
Ross Savage
e090c858bf Add payer note to BOLT12 invoice request (#930)
* Add payer note to BOLT12 invoice request

* Fix regtest

* Address review feedback
2025-05-23 14:21:26 +00:00
Daniel Granhão
defa2e4890 Expose bitcoin destination address (#928)
* Expose bitcoin destination address

* Address reviews
2025-05-23 09:54:03 +01:00
Ross Savage
ba301bdaf9 Update LWK for node.js compatible sleep (#931) 2025-05-22 13:50:19 +00:00
Daniel Granhão
cd0b82cf53 Persist wallet cache in db (#912)
* Persist wallet cache in db

* Always persist new updates

* Reload wallet on conflict

* Remove `cache_dir` from `Config`
2025-05-22 12:52:29 +01:00
Roei Erez
0f44130a86 Merge pull request #924 from breez/fix-tip-update
Update lwk_wollet to fix tip update
2025-05-20 13:00:12 +03:00
Ross Savage
48756bdf00 Rework draining to enable BOLT12 drain (#923) 2025-05-20 09:26:23 +00:00
Roei Erez
c728bbaad2 update lwk_wollet to fix tip update 2025-05-20 10:53:47 +03:00
Ross Savage
d0f84bf65b Allow get_payment to get payment no matter the state (#921) 2025-05-19 05:27:33 +00:00
Ross Savage
c872a62f1d Add user lockup_tx_id to Bitcoin payment details (#918) 2025-05-19 05:26:18 +00:00
Ross Savage
ce5a7f99b9 Set the BOLT12 offer min amount (#909) 2025-05-15 10:14:15 +00:00
Ross Savage
f8275cbd17 BOLT12 receive updates (#907)
* Pass the invoice request error back via WS/Webhook

* Remove the MRH blinded payment path

* Fix incorrectly set Liquid address

* Fix notification error handling

* Fix BOLT12 offer webhook URL update

* Optimize requests during BOLT12 invoice creation

* Address review feedback

* Fix Wasm regtest issue with WS receive channel

* Update merged dependencies
2025-05-12 11:52:49 +00:00
Roei Erez
68b2f5da17 Merge pull request #905 from Dunsin-cyber/fix/mrh-address
fix : invalid MRH addresses during Receive Swap recovery
2025-05-11 19:45:03 +02:00
yse
6128edb531 fix: ignored payment events on failed wallet sync (#910)
* fix: increase `NETWORK_PROPAGATION_GRACE_PERIOD` to 1 minute

This ensures that the PaymentTxData of pending Send swaps is not deleted
before confirmation

* fix: abort sync on wallet scan fail

This ensures that operations that depend on coherent wallet information
(e.g. recovery) do not execute when the SDK is out of sync
2025-05-05 14:19:05 +02:00
Roei Erez
7d5d5b9fae Merge pull request #906 from breez/daniel-set-waterfalls-as-default
Set esplora/waterfalls as default chain explorer backend
2025-05-03 21:08:45 +03:00
Ross Savage
3fc567768f Fix recommended fees calculation (#908) 2025-05-02 19:07:02 +00:00
Dunsin
86c156c976 fix : invalid MRH addresses during Receive Swap recovery 2025-04-30 17:19:51 +01:00
Daniel Granhão
a65b58dd44 Set esplora/waterfalls as default chain explorer backend 2025-04-30 17:18:25 +01:00
Daniel Granhão
68ed656aaa Broadcast receive swap server lockup txs (#904) 2025-04-29 20:05:16 +01:00
Ross Savage
71b66e553f Move dependency to breez org (#899) 2025-04-29 12:50:49 +00:00
Ross Savage
5b69c7beb2 BOLT12 receive (#882)
* Add BOLT12 receive payment handling

* Handle BOLT12 invoice requests via WS

* Fix invoice request subscription on stream initialisation

* Store the BOLT12 offer used to receive a payment

* Address review feedback

* Separate into create BOLT12 invoice fn

* Update all BOLT12 offers when webhook URL changes

* Deprecate Lightning for Bolt11Invoice
2025-04-29 11:43:45 +00:00
Daniel Granhão
ca23206ae8 WASM: end-to-end-test support (#846)
* Wasm: end-to-end-test support

* Update testing dev docs

* Expose Arc in prelude

* Switch to waterfalls fork

* Set node version
2025-04-24 09:43:55 +01:00
Daniel Granhão
c0079d93eb Drop unnecessary tip requests (#891) 2025-04-22 18:17:35 +01:00
Daniel Granhão
e10c7b129a Prevent concurrent claim attempts (#883)
* Prevent concurrent claim attempts

* Add timeout to boltz client

* Use same timeout for boltz API and chain clients

* Update boltz client rev after merge
2025-04-21 10:33:19 +01:00
Roei Erez
9cc61ce4b0 Fix WASM Breez server url 2025-04-17 18:57:59 +03:00
yse
c1fff12cda feat[rt-sync]: add failsafe mechanism (#871)
* fix[rt-sync]: improve logging

* feat[rt-sync]: add failsafe mechanism on event loop

* fix[rt-sync]: apply review suggestions

Co-authored-by: Daniel Granhão <32176319+danielgranhao@users.noreply.github.com>

* fix[rt-sync]: only consider record conflicts for db wipe

* fix[rt-sync]: add better error handling

- Removes DecryptionError in favor of PullError
- Extends PushError variant
- Increments push failed counter on
`PushError::ExcessiveRecordConflicts` variant

---------

Co-authored-by: Daniel Granhão <32176319+danielgranhao@users.noreply.github.com>
2025-04-16 18:50:13 +02:00
Daniel Granhão
fbd0673e81 Fix invoice expiry check logic (#885) 2025-04-16 15:49:43 +01:00
Daniel Granhão
1f71244c45 fix: Interval not compatible with node.js (#880)
* fix: Interval not compatible with node.js

* Address review and fix E2E tests
2025-04-15 09:19:15 +01:00
Daniel Granhão
0f1932ede2 fix: Recreate wallet cache dir after clear (#881) 2025-04-14 16:40:29 +01:00