Commit Graph

40 Commits

Author SHA1 Message Date
ok300
e2ace48b48 Add uniffi bindings (#59)
* Rename CLI and lib projects

* Place lib in a workspace

* Add uniffi package

* Bump uniffi version

* Add uniffi.toml config file to customize lib names

* Add makefile for kotlin, python, swift bindings

* Add missing PaymentError variant

* Rename BoltzGeneric error variant
2024-04-15 15:32:16 +00:00
yse
85e8a6d1a3 feat: persist invoice rather than amount (#66)
Co-authored-by: ok300 <106775972+ok300@users.noreply.github.com>
2024-04-12 15:51:16 +02:00
yse
efc970d1e0 feat: add json responses to cli (#81) 2024-04-09 21:30:02 +02:00
yse
04d0c5b790 feat: add transaction persistence to lwk instance (#70) 2024-04-09 00:12:25 +02:00
ok300
7860192965 Differentiate between mainnet and testnet Electrum URLs (#69) 2024-04-04 15:08:43 +00:00
ok300
091c0ced8b Bump boltz-client, fix fee calculation (#68)
* Bump boltz-client, fix fee calculation

* Cargo fmt
2024-04-04 14:01:33 +00:00
yse
76278ac1b6 fix: update lib tests (#67) 2024-04-02 11:37:24 +02:00
yse
aec000f0fd fix: remove Boltz internal txid logging (#64) 2024-03-29 02:49:23 +01:00
yse
f7703e103f fix: switch to single-threaded claiming (#63) 2024-03-28 09:18:41 +01:00
yse
21f6d7068a feat: add support for pending send (#48) 2024-03-27 16:16:08 +01:00
ok300
076badca32 Bump boltz-client (#62)
* Bump boltz-client to the latest commit

* Fix error types

* Consolidate boltz_client Errors into one type
2024-03-26 19:42:35 +00:00
ok300
3ba213fa92 Bump lwk to v0.3.0 (#61) 2024-03-26 19:39:54 +00:00
ok300
8c95c42a4c Consolidate reverse swap onchain amount arg (#58) 2024-03-26 06:39:33 +01:00
ok300
011f13ad12 Fix processing of the init network flag (#57) 2024-03-26 06:09:56 +01:00
ok300
e5a650e83d Simplify reverse swap amounts calculation (#55) 2024-03-26 06:05:36 +01:00
ok300
8d2fb7675f Replace get_chain() with a From trait (#54) 2024-03-26 06:02:48 +01:00
ok300
16a13efd72 Make network a mandatory arg of init() (#53) 2024-03-26 06:00:25 +01:00
ok300
e6a8a84050 Consolidate constants and default init values (#52) 2024-03-26 05:58:30 +01:00
ok300
402a712b9b Simplify init arg (#50)
* Change to blinding variant slip77

* Simplify init arg
2024-03-26 05:54:41 +01:00
ok300
ccf0b34c52 Change to blinding variant slip77 (#49) 2024-03-26 05:54:24 +01:00
ok300
4e3536f67f Derive Debug for relevant structs (#45) 2024-03-21 19:53:33 +00:00
yse
a32fffe1b8 fix: automatic directory creation on wallet startup (#47) 2024-03-21 20:53:02 +01:00
ok300
a55b496f27 Remove unused dependency: tokio (#46) 2024-03-21 19:52:41 +00:00
yse
a123d32651 feat: added onchain_amount_sat field to received swaps (#41) 2024-03-21 19:42:21 +01:00
ok300
35167164c8 docs: add mention of necessary sqlite3 env setup (#40) 2024-03-21 18:27:17 +00:00
yse
03c2c3918a feat: add invoice_amount_sat field to swaps (#33)
* fix: rebasing and updating cargo.lock

* feat: add `requested-amount-sat` field to pending swaps

* lint

* feat: added list-payments method

* linting

* feat: adding pending transactions to list-payments

* fix: rename received_amount to invoice_amount

* fix: renaming Pending to PendingReceive

* fix: remove expect from preimage unwrapping
2024-03-21 15:05:08 +01:00
ok300
d254496269 Add CI config (#37)
* Add CI config

* Cargo fmt

* Add cargo clippy CI step
2024-03-21 09:32:58 +00:00
ok300
865733c0a9 Simplify cargo dependencies (#35)
* Arrange dependencies alphabetically

* Reduce tokio feature set to minimum

* CLI: remove lwk dependencies

* lib: remove lightning dependency

* lib: remove rusqlite features
2024-03-21 07:30:17 +00:00
ok300
516f95a685 Consolidate wallet initialization (#30)
* Consolidate wallet initialization
2024-03-19 12:39:08 +00:00
yse
21335d73aa feat: add primary methods for ongoing swaps (#28)
* Fix receive-payment by increasing claim absolute_fee

* feat: added sqlite methods for ongoing swaps

* fix: create specific error type when persisting swaps

---------
Co-authored-by: ok300 <106775972+ok300@users.noreply.github.com>
2024-03-19 13:13:33 +01:00
ok300
8eada7247f Simplify readme intros 2024-03-18 19:03:25 +01:00
ok300
a2202ecbcd Fix receive-payment by increasing claim absolute_fee 2024-03-18 18:23:50 +01:00
ok300
682b45bc8f Simplify range validation 2024-03-18 16:54:38 +01:00
ok300
84adad9231 Remove unused variable 2024-03-18 15:52:34 +01:00
ok300
865a2d6cf4 Simplify workspace layout 2024-03-18 14:07:56 +01:00
yse
0c020fbaf1 fix: set claim absolute fees to constant (#17) 2024-03-18 12:38:08 +01:00
yse
68b1fb13be fix: temporarily switching to no-persist (#20) 2024-03-18 12:06:03 +01:00
yse
72835423cb feat: add get_info method to wallet (#12)
* feat: initial `get_info` wallet method
* feat: add current active address to info
2024-03-18 10:41:41 +01:00
yse
c17bbc9c4f chore: splitting models and renaming wallet (#11)
* chore: split code and rename wallet
* chore: removing `wait_for_tx`
2024-03-13 10:27:57 +01:00
yse
ffadce402e feat: adding initial methods (#2)
Note that the structure is still experimental and subject to change, refer to breez-sdk-liquid#2 for more details
2024-03-13 09:10:26 +01:00