Commit Graph

65 Commits

Author SHA1 Message Date
yse
5a9dc1d5ce feat: fix fee calculation issues 2024-05-14 13:05:55 +02:00
yse
55804e88c5 feat: add double lockup checks and resolve on claim details 2024-05-14 13:05:55 +02:00
yse
a92e83a446 feat: improve send and refund 2024-05-14 13:05:54 +02:00
yse
28d4f264eb feat: add refund and improve send flow 2024-05-14 13:05:27 +02:00
ok300
6b58682a91 Receive: broadcast claim tx when lockup tx in mempool 2024-05-12 18:34:44 +02:00
ok300
fb7190032a Bump boltz-rust client to latest patch level 2024-05-09 21:22:57 +02:00
ok300
d67756bf43 Migrate receive-payment to V2 API, use WS to get status 2024-05-09 16:09:12 +00:00
yse
18257dbc91 feat: migrate send_payment to v2 (#171) 2024-05-09 15:47:23 +03:00
yse
be3120c935 feat: remove PrepareSendResponse fields
feat: add `PrepareSendRequest` object

fix: rename to `claim_tx_feerate`

fix: fix reverse submarine test

feat: improve prepare_send and prepare_receive interfaces

fix: use v2 to broadcast lowball tx

feat: finalize prepare_send and prepare_receive

feat: remove manual BTC pair from response

fix: remove `pair_hash` from PrepareReceive

rebasing

updating Cargo.lock

fix: update lbtc pair method names

fixing bindings

fix: re-add uniffi_macros

add comment to elements dependency

fix: switch back to v1 fee calculation

fix: revert to v1 pair hash

fix: simplify migrations

fix: rename `FeesExpired` to `InvalidOrExpiredFees`

Log error when list_ongoing_swaps() fails

Log swap ID when list_ongoing_swaps() succeeds

Migrations: add missing ongoing_receive_swaps field

Clarify swap type (reverse vs submarine) in logs
2024-05-09 11:26:10 +03:00
Erdem Yerebasmaz
05689299f0 Update flutter_rust_bridge to 2.0.0-dev.33
Update dependencies to latest & increase the supported range
2024-05-06 14:58:31 +03:00
ok300
8a1508ab07 Rename wallet to SDK or LiquidSdk (#157)
* Rename global instance in bindings.rs

* Rename wallet to SDK or LiquidSdk

* Rename BindingWallet to BindingLiquidSdk

* Rename wallet to lwk_wollet, signer to lwk_signer

* Rename LsSdkError to LiquidSdkError

* Cargo fmt

* Rename LsSdkError in RN generator

---------

Co-authored-by: Ross Savage <hello@satimoto.com>
2024-05-03 13:53:37 +00:00
Ross Savage
267819bb08 Change secp256k1-zkp dependency git source 2024-05-03 15:15:49 +02:00
ok300
708a3526c7 Add request, response to API methods (#153)
* Add request, response to get_info()

* Add request, response to prepare_send_payment()

* Add request, response to restore()

* Add request, response to connect()

* Update lib/bindings/src/breez_liquid_sdk.udl

Co-authored-by: Ross Savage <551697+dangeross@users.noreply.github.com>

* Update lib/bindings/src/breez_liquid_sdk.udl

Co-authored-by: Ross Savage <551697+dangeross@users.noreply.github.com>

* Update lib/core/src/bindings.rs

Co-authored-by: Ross Savage <551697+dangeross@users.noreply.github.com>

* Fix bindings.rs call

* Update connect to handle ConnectRequest

---------

Co-authored-by: Ross Savage <551697+dangeross@users.noreply.github.com>
Co-authored-by: Ross Savage <hello@satimoto.com>
2024-05-03 08:48:03 +00:00
ok300
92542876e5 Merge branch 'ok300-rename-lib-folders' 2024-05-02 21:11:55 +02:00
ok300
33815fac05 Integrate ureq fix from Boltz Client (#148) 2024-05-02 18:29:45 +00:00
ok300
3df6a5c3d4 CLI: Allow choosing custom network (#151)
* CLI: Allow choosing custom network

* Cargo fmt
2024-05-02 18:27:31 +00:00
ok300
6589a8799b Rename workspace members (subfolders) (#149)
* Rename ls-sdk-bindings workspace member

* Rename ls-sdk-core workspace member

* Rename ls-sdk-react-native
2024-05-02 18:22:32 +00:00
ok300
ce637b15bb Rename ls-sdk-core workspace member 2024-05-02 18:03:44 +02:00
ok300
a0a852b223 Merge branch 'ok300-rename-rust'
# Conflicts:
#	lib/ls-sdk-bindings/makefile
2024-05-02 08:11:44 +02:00
ok300
080698c2d1 Update receive to support only payer amount (#131) 2024-05-02 06:00:56 +00:00
ok300
cb7e753c95 Rename project: Rust, uniffi (#133)
* Rename rust crates, uniffi bindings

* Rename uniffi tests

* Rename uniffi UDL file
2024-05-02 05:44:47 +00:00
Ross Savage
7add324b2a Rename android, swift and react native bindings 2024-04-30 22:46:27 +02:00
ok300
42865c116e Rename rust crates, uniffi bindings 2024-04-30 19:21:54 +02:00
Erdem Yerebasmaz
811f99f348 Update Cargo.lock 2024-04-29 18:41:37 +03:00
Erdem Yerebasmaz
3b94544b89 Apply frb's file structure changes to cli 2024-04-29 18:41:37 +03:00
ok300
522bdaea5c Rename init() to connect() (#119)
* Rename init() to connect()

* Shorten commit ID for secp256k1-zkp dependency

* Update RN bindings

* Rename the manually coded init function to connect

* Update RN example app

---------

Co-authored-by: Ross Savage <hello@satimoto.com>
Co-authored-by: Ross Savage <551697+dangeross@users.noreply.github.com>
2024-04-29 15:25:48 +00:00
ok300
47a8dde47d Integrate boltz-client fix for swapstatus (#111) 2024-04-29 11:01:34 +00:00
yse
857db3cc33 fix: change log write mode to append (#110) 2024-04-26 19:40:45 +02:00
ok300
1accd632fc Bump boltz-client (#108)
* Bump boltz-client

* Include swap ID in errors
2024-04-26 12:46:09 +02:00
Ross Savage
567b077717 Add building of android bindings and swift bindings for iOS 2024-04-25 13:42:53 +02:00
yse
1d3ed4b00c feat: add fee calculation to payment receive (#101) 2024-04-25 10:56:21 +02:00
yse
ecc211e090 feat: add backup and restore functionality (#65) 2024-04-25 09:40:32 +02:00
yse
8f35cee0a1 fix: remove receive options from cli (#100) 2024-04-24 19:09:15 +02:00
yse
2929d668cf feat: add fee persistence to payments (#83) 2024-04-18 11:24:04 +02:00
ok300
7443a8717a Address uniffi feedback (#90)
* Replace invoice_amount_sat with payer_amount_sat

* Replace onchain_amount_sat with receiver_amount_sat
2024-04-17 20:57:51 +00:00
ok300
fa0cde18d6 Use a different DB file per network (#91)
* Use DEFAULT_DATA_DIR instead of hardcoded string in CLI

* Use a different DB file per network
2024-04-17 17:28:03 +00:00
ok300
5e190a9a5d CLI: Use qrcode-rs instead of qr2term (#88) 2024-04-16 23:07:11 +02:00
yse
3efbdb97cb cli: add log file (#87) 2024-04-16 21:28:40 +02:00
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
yse
2a2317001b feat: add qr code to receive command (#71) 2024-04-08 10:58:48 +02: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
aec000f0fd fix: remove Boltz internal txid logging (#64) 2024-03-29 02:49:23 +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
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