30 Commits

Author SHA1 Message Date
Daniel Granhão
6cd2561f23 Fix clippy CI for rust 1.88.0 (#969) 2025-07-14 08:57:26 +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
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
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
Ross Savage
48756bdf00 Rework draining to enable BOLT12 drain (#923) 2025-05-20 09:26:23 +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
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
0f1932ede2 fix: Recreate wallet cache dir after clear (#881) 2025-04-14 16:40:29 +01:00
Daniel Granhão
5922e140fd Wasm: prevent cache corruption and gracefully handle it (#875) 2025-04-11 16:41:16 +01:00
Daniel Granhão
27ee2781b1 fix: Wasm makefile extra spaces (#873) 2025-04-10 17:10:50 +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
Roei Erez
51ef43043c fix realtime sync url for wasm 2025-04-08 12:42:43 +03: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
3f94fd970a Fix clippy test issues (#850)
* Fix clippy test issues

* Address review feedback
2025-04-03 10:21:27 +00: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
Ross Savage
f813939529 Adds Logger interface for Wasm (#835) 2025-04-01 16:19:38 +02:00
Ross Savage
e1fdbd19d2 Add Wasm package (#814) 2025-03-31 18:18:53 +02:00
Daniel Granhão
35aeb62e36 WASM: fix clippy and tests (#823) 2025-03-27 22:56:53 +00:00
yse
84fe545a3d fix[wasm]: typo (#822) 2025-03-27 15:20:21 +01:00
yse
9b9d0ee2c4 fix[wasm]: minor compilation issues (#819) 2025-03-27 12:58:00 +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
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
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
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
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
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
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