Commit Graph

649 Commits

Author SHA1 Message Date
Erdem Yerebasmaz
c798fd882f Update Flutter plugin to match Dart plugin version (#794)
* Reference the same Flutter plugin version for Dart plugin instead of latest

* fix: removed breez-sdk-liquid-dart tag check

Removed if tag exists on remote as this script is run before the package is published
2025-03-26 00:43:46 +03: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
Ross Savage
895d5727e8 Lock cargo-expand install (#803) 2025-03-25 11:08:36 +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
Daniel Granhão
a06c6d522e WASM: prevent filesystem access (#792)
* WASM: prevent filesystem access

* Exclude logger module on wasm

* Drop use of conditional compilation in `LiquidOnchainWallet`

* Expose `LiquidSdkBuilder` and configure build for wasm

* Move working_dir setup and log header to connect with signer

* Add in memory persister constructor

* Drop builder connect method

* Remove `empty_wallet_cache` from WASM interface

* Impose custom persister on wasm
2025-03-24 13:31:22 +00:00
Daniel Granhão
2952b6133e Expose real time synced event (#800) 2025-03-24 11:46:02 +00:00
Ross Savage
3088526bdf Add missing lnurl_info/bip353_address to wasm (#804) 2025-03-24 12:21:37 +01:00
Ross Savage
fb232f0707 Setup emscripten (#782) 2025-03-24 06:21:58 +01:00
Ross Savage
3ad0cabc72 WASM: Update secp256k1-zkp patch (#780)
* Update secp256k1-zkp patch

* Change repository org
2025-03-24 05:31:45 +01:00
Daniel Granhão
9fd9f96acb WASM: run core crate tests on wasm (#799) 2025-03-23 22:59:13 +00:00
Daniel Granhão
8c95ea5ac7 WASM: getting the current time (#795) 2025-03-21 11:46:28 +00:00
Daniel Granhão
a2076b86b4 WASM: lock frb and bindings modules (#791) 2025-03-19 23:54:15 +00:00
Ross Savage
07a7f06ec0 Fix pending receive balance (#787) 2025-03-19 21:03:21 +01:00
Erdem Yerebasmaz
6d5aa3fc82 Update flutter_rust_bridge to version 2.9.0 (#789)
chore: update dependencies to latest resolvable on Dart/Flutter packages
2025-03-19 13:42:15 +03:00
Erdem Yerebasmaz
573a345801 Downgrade android release to Uniffi 0.25 (#786)
* fix: revert minSdkVersion across all uniffi packages

This PR fixes a regression introduced in https://github.com/breez/breez-sdk-liquid/pull/766 due to a confusion between minSdkVersion requirement & minimum compileSdkVersion requirement.

* Bump package requirements on flutter_breez_liquid README

* Bump JNA used on bindings tests to 5.14.0

* Downgrade android release to Uniffi 0.25

---------

Co-authored-by: Ross Savage <hello@satimoto.com>
2025-03-19 13:41:44 +03:00
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