Commit Graph

631 Commits

Author SHA1 Message Date
Ross Savage
ddbed6b67c Dismiss replaceable notifications on service shutdown (#777) 2025-03-17 15:04:28 +01:00
Daniel Granhão
116a898c21 Fix swap recovery before wallet scan (#775)
* Fix swap recovery before wallet scan

* Only do full scan when required

* Move scan to `recover_from_onchain`

* Cache index without buffer
2025-03-17 13:29:19 +00:00
Ross Savage
ba256ea51c Fix LNURL drain and payment info (#776)
* Fix LNURL-pay drain not working

* Add LNURL info and BIP353 address to Liquid payment details

* Add bip353_address to LiquidAddress SendDestination
2025-03-17 14:11:00 +01:00
Ross Savage
8509720cf4 Move mockall dependency (#783) 2025-03-17 11:54:34 +01:00
Roei Erez
1d5fda1428 Merge pull request #764 from breez/refactor-recoverer
Refactor recoverer
2025-03-15 16:21:40 +02:00
Daniel Granhão
7bd09aea5d WASM: Update boltz client dependency and use included wasm tokio-tungstenite (#769)
* Update boltz client dependency and use included wasm tokio-tungstenite

* Avoid unnecessary swapper init

* Update boltz client rev after merge
2025-03-15 10:29:35 +00:00
Roei Erez
e810081421 reuse create_empty_lbtc_transaction 2025-03-14 19:21:31 +02:00
Roei Erez
acea488b7c fix feedback 2025-03-13 16:20:41 +02:00
Roei Erez
827c3ebb5d wasm changes 2025-03-13 14:03:26 +02:00
Roei Erez
2450239b56 fix feedback 2025-03-13 13:50:13 +02:00
Roei Erez
e30e7fa3d3 cargo fmt 2025-03-13 13:50:13 +02:00
Roei Erez
79ca49d949 Add tests 2025-03-13 13:50:09 +02:00
Roei Erez
ecb95661d8 Refactor recoverer for more clarity 2025-03-13 13:41:53 +02:00
Roei Erez
5fdb3471b8 update cargo.lock 2025-03-12 16:04:57 +02:00
Roei Erez
d349490e31 Merge branch 'v0.7.2-dev1'
* v0.7.2-dev1:
  update version to 0.7.2-dev1
  update version to 0.7.2.dev1
2025-03-12 16:03:38 +02:00
Ross Savage
44a9e1687d Fix payment amount/fee for overpaid non-amountless chain swap (#771) 2025-03-12 12:16:35 +01:00
Ross Savage
065bb7493e Improve WASM CI tests (#770) 2025-03-12 12:16:06 +01:00
Ross Savage
9e83e06bd5 Update selected built packages to Uniffi 0.28 (#766) 2025-03-12 11:56:42 +01:00
Ross Savage
6d72fdce57 WASM: Interface (#757)
* Define common types

* Define sdk types

* Add SDK methods

* Add LiquidSdkBuilder

* Add callback interfaces

* Update CI for WASM

* Replace async and test macros

* Update sdk-common/macros dependencies
2025-03-11 06:21:46 +01:00
Ross Savage
15968b0ead Handle transition error on TimedOut (#765)
* Remove internal error

* Handle transition error on TimedOut
2025-03-06 10:55:21 +01:00
Roei Erez
18f272b756 Merge pull request #762 from breez/yse-recovery-fix
Recovery: Ensure wallet and chain service tips are within leeway
2025-03-06 11:34:10 +02:00
yse
74ef2c6f08 feat(wasm): switch to compatible rusqlite fork (#754)
Co-authored-by: Ross Savage <hello@satimoto.com>
2025-03-05 23:38:19 +01:00
yse
b616ca1877 feat(wasm): split dependencies and add base wrapper (#753)
Co-authored-by: Ross Savage <551697+dangeross@users.noreply.github.com>
2025-03-05 23:01:18 +01:00
yse
3e2f2dbc74 fix: always execteassadsfix: run full scan on misaligned tips 2025-03-05 22:59:11 +01:00
yse
ae1a7fbf96 fix: use height instead of lwk Tip for wallet 2025-03-05 22:54:08 +01:00
yse
2681699da2 fix: ensure wallet and chain service tips are within leeway 2025-03-05 22:54:07 +01:00
Daniel Granhão
88c3fe4eb3 Fix local tx cleanup logic (#759) 2025-03-05 10:29:22 +00:00
Ross Savage
e8a19a9b87 Validate seed length (#763) 2025-03-04 12:45:29 +01:00
Roei Erez
3081c0bc0e rename reconnect_handler to subscription_handler 2025-02-28 13:59:29 +02:00
Roei Erez
2a2514cbe9 limit claim for local swaps 2025-02-28 11:17:18 +02:00
Roei Erez
33e5ac5a16 fix clippy 2025-02-27 22:56:32 +02:00
Roei Erez
f8252fca68 Only claim if local swap 2025-02-27 22:39:42 +02:00
Roei Erez
61ea9c5582 subscribe incoming synced records to swapper updates 2025-02-27 16:02:42 +02:00
Ross Savage
69e17c60a1 Fix Clippy issues (#758) 2025-02-26 12:42:34 +01:00
Roei Erez
991f8603ee update version to 0.7.2-dev1 2025-02-24 16:15:27 +02:00
Roei Erez
486c6de890 update version to 0.7.2.dev1 2025-02-24 16:13:04 +02:00
Roei Erez
35f0e0fc3f Merge branch 'v0.7.0-package'
* v0.7.0-package:
  update version to 0.7.1
  Remove min 0-conf fee rate (#750)
  update version to 0.7.0
2025-02-24 11:44:16 +02:00
Daniel Granhão
5209532433 Tolerate older wallet tx map during tx recovery (#751) 2025-02-23 22:41:53 +00:00
Ross Savage
b390864986 Chain swap: calculate cooperative tx size and allow immediate refund (#715)
* Calculate cooperative tx sizes

* Allow immediate refund of failed incoming chain swap

* Update to merged trunk

* Calculate refundable amount from utxos

* Revert removable of utxo selection

* Apply suggestions from code review

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

---------

Co-authored-by: Daniel Granhão <32176319+danielgranhao@users.noreply.github.com>
2025-02-21 08:09:53 +01:00
Erdem Yerebasmaz
5a6b495f6c chore: Update flutter_rust_bridge to 2.8.0 & update Flutter dependencies to latest (#727)
* chore: update Flutter dependencies to latest

Use Flutter version 3.27.4 on CI workflows

* chore: update flutter_rust_bridge to 2.8.0 and generate bindings

chore: update dependencies to latest

* Use Flutter 3.29.0 on CI workflows
2025-02-19 13:25:01 +03:00
Roei Erez
6d47d2964d update version to 0.7.1 2025-02-18 18:16:42 +02:00
Erdem Yerebasmaz
ded8ef16b8 Extract description from metadata_str for LNURL payments (#740)
* Extract description from LnUrlPayRequestData's metadata on lnurl_pay

* Persist description from lnurlp metadata on payment details description

* Use invoice description if it's available then fallback to description from metadata

for LNURLp payments
2025-02-18 17:25:34 +03:00
Daniel Granhão
2f27042e65 Remove min 0-conf fee rate (#750)
(cherry picked from commit eb3b12021c)
2025-02-18 12:23:10 +00:00
Daniel Granhão
eb3b12021c Remove min 0-conf fee rate (#750) 2025-02-18 12:20:39 +00:00
Ross Savage
6bf203dd80 Add seed to ConnectRequest (#748)
* Add seed option to ConnectRequest

* Explicitly require mnemonic or seed
2025-02-17 17:37:06 +01:00
yse
9fbf7774b8 feat: add client_id to rt-sync notifications (#747) 2025-02-17 16:31:31 +01:00
Daniel Granhão
3ec57ad93e Add tx propagation grace period to swap recovery (#733)
* Add tx propagation grace period to swap recovery

* Add missing tx reset checks and improve logs
2025-02-17 13:23:32 +00:00
Roei Erez
8243f3bbf8 update version to 0.7.0 2025-02-17 15:12:16 +02:00
Ross Savage
c686e44dfe Deduct send amount if tx not seen yet (#736)
* Deduct send amount if tx not seen

* Reuse NETWORK_PROPAGATION_GRACE_PERIOD_SEC to determine a new tx

* Use the payment event to update the wallet info
2025-02-13 13:59:51 +01:00
Ross Savage
a1fcf60d24 Consider created send swaps as recoverable (#735) 2025-02-12 16:18:56 +01:00