Commit Graph

467 Commits

Author SHA1 Message Date
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
Daniel Granhão
1122896a70 Wasm: Run tests on node.js (#872) 2025-04-11 17:12:13 +01:00
Daniel Granhão
09138c9d45 Wasm: wallet cache persistence (#868)
* Expose wallet cache persister

* Implement IndexedDB wallet cache persister

* Refactor wallet persister interfaces

* Implement Node Fs persister

* Encrypt wallet updates

* Remove unnecessary tokio_with_wasm features

* Improve async persist logs

* Fix flutter binding generation

* Use dynamic dispatch for wallet_cache_persister

* Optimize conditional compilation branching

* Address review

* Refactor structure
2025-04-10 14:46:16 +01:00
Ross Savage
004ce24a81 Handle send swap minimal_batched (#863)
* Handle send swap minimal_batched

* Simplify batch handling

* Update recoverer handling of batched send swap

* Use the preimage to determine if the swap is complete

* Use the preimage endpoint when the swap is batched

* Try cooperative claim before fetching preimage
2025-04-09 09:45:57 +00:00
yse
8a33bb42e6 feat: switch Esplora client url to Breez server instance (#845)
Co-authored-by: Ross Savage <mr.dangeross@googlemail.com>
2025-04-08 10:27:13 +02:00
Ross Savage
58c94c6105 Fix clippy issues for rust 1.86.0 (#864) 2025-04-08 06:00:49 +00:00
Ross Savage
826ae786e4 Add a waterfalls method of fetching scripts history (#858) 2025-04-07 12:42:09 +00:00
Ross Savage
ff49831e90 LWK waterfalls fixes (#853)
* Enable use of the derivation index to scan to with waterfalls

* Page waterfalls requests
2025-04-07 07:40:20 +00:00
Daniel Granhão
42a489722b WASM: db backups (#851)
* WASM: db backups

* Address review feedback

* Log backup recovery errors and proceed
2025-04-06 10:03:33 +01:00
Ross Savage
59ab0578d6 Wasm: Reset interval after sync (#860)
* Reset interval after sync

* Update lightning dependency to 0.1.2

* Move reset to end of the block
2025-04-05 07:18:47 +02:00
Ross Savage
3f94fd970a Fix clippy test issues (#850)
* Fix clippy test issues

* Address review feedback
2025-04-03 10:21:27 +00:00
Ross Savage
cf601f4622 Store claim/refund addresses (#849)
* Store claim/refund addresses

* Store receive claim address before constructing the tx
2025-04-03 06:28:32 +02:00
Daniel Granhão
f437c9194e Add regtest end-to-end tests (#816)
* Add regtest end-to-end tests

* Check that regtest environment is set up

* Add todo comment

* Add missing gloo-timers feature

* Link GH issues

* Update DEVELOPMENT.md

* Update boltz submodule

* Fix after rebase
2025-04-03 01:26:21 +01:00
Ross Savage
0c88e09fc3 Pay fees with USDT asset (payjoin) (#779)
* Add payjoin implementation

* Fix Core Wasm tests
2025-04-02 11:05:02 +00:00
Daniel Granhão
c8b59d76a3 WASM: fix remaining sleep and current time uses (#840) 2025-04-01 14:42:57 +01:00
yse
126bfc651b fix: use lazy init for all swapper clients (#841) 2025-04-01 09:10:36 +02:00
Ross Savage
63cd6ead36 Only full_scan_to_index when not using waterfalls (#833) 2025-03-31 10:28:18 +02:00
Daniel Granhão
35aeb62e36 WASM: fix clippy and tests (#823) 2025-03-27 22:56:53 +00:00
yse
640821a95d feat: use esplora for lwk wollet (#818) 2025-03-27 17:54:12 +01:00
Ross Savage
165a0e7ff9 Fix println (#820) 2025-03-27 13:54:25 +01:00
Ross Savage
1d111d0c30 Use MaybeSend + MaybeSync for all traits (#817) 2025-03-27 13:26:24 +01:00
yse
9b9d0ee2c4 fix[wasm]: minor compilation issues (#819) 2025-03-27 12:58:00 +01:00
yse
89c18c541b feat: add Esplora support to Boltz swapper (#805)
Co-authored-by: Daniel Granhão <32176319+danielgranhao@users.noreply.github.com>
2025-03-27 12:55:56 +01:00
yse
10e3ab71e0 feat: add Esplora client to chain services (#761)
Co-authored-by: Daniel Granhão <32176319+danielgranhao@users.noreply.github.com>
2025-03-27 10:40:10 +01:00
Daniel Granhão
80f6156c87 WASM: fix various minor issues (#810)
* Use tokio-stream on wasm builds

* Add missing MaybeSend/Sync

* Fix unused warning

* Exclude From<UrlError> impl
2025-03-26 01:23:36 +00:00
Ross Savage
15a0c46f76 Improve development guides (#809)
* Improve development guides

* Apply suggestions from code review

Co-authored-by: Erdem Yerebasmaz <erdem@yerebasmaz.com>

* Add Firefox prerequisites

---------

Co-authored-by: Erdem Yerebasmaz <erdem@yerebasmaz.com>
2025-03-25 17:23:04 +01:00
Ross Savage
0918330141 WASM: Conditionally add MissedTickBehavior (#806)
* Conditionally add MissedTickBehavior

* Directly reference MissedTickBehavior
2025-03-25 13:30:21 +01:00
Ross Savage
7fcf45b887 Reintroduce 32bit builds (#808) 2025-03-25 11:22:04 +01:00
Daniel Granhão
37979e6052 WASM: spawn task (#797) 2025-03-24 14:50:46 +00:00
Daniel Granhão
95fade5c1c WASM: sync grpc client (#790) 2025-03-24 14:00:16 +00:00