Roei Erez
4d1690bfc4
update version to 0.3.4
2024-09-25 12:36:13 +03:00
Ross Savage
a6eb72c44c
Fix pay onchain claim fee ( #499 )
...
* Fix pay onchain claim fee
* Bump flutter example dependencies
(cherry picked from commit 9c0e469ad1 )
2024-09-25 10:51:17 +02:00
Roei Erez
24d41de656
update versions
2024-09-25 09:31:55 +03:00
Roei Erez
cd9cb9c46c
update version to 0.3.2
2024-09-24 16:47:32 +03:00
yse
783c5ac450
feat: refactor refund logic and support lowball broadcasts ( #407 )
2024-09-20 15:57:54 +02:00
yse
189e257f89
feat: add lowball broadcast support with API key for all transaction types ( #489 )
2024-09-20 13:04:49 +02:00
ok300
e8cd66f81f
prepare-pay-onchain: add option for drain ( #464 )
...
* prepare-pay-onchain: add option for drain in req
* Fix clippy
* ChainSwapStateHandler: gracefully handle building both drain and non-drain lockups
* Send Chain swap: use standard feerate when estimating lockup tx fee
* UDL: move new drain field above the last PreparePayOnchainRequest optional field
* UDL: move new drain field optional
* prepare-pay-onchain: treat normal payment as drain if receiver amount is high enough
If the receiver amount is as high as it would be in case of drain, treat the current prepare-pay-onchain as drain, even if the drain flag is not set.
* build_drain_tx: add optional amount validation
* Add PayOnchainAmount enum to cover amount types (drain, receiver)
* Add ability to find max_receiver_amount_sat for non-drain sends
* Revert "Add ability to find max_receiver_amount_sat for non-drain sends"
This reverts commit 60ee1c768021810f72bc64a8ada69d35b638185e.
* prepare_pay_onchain: treat drain and non-drain cases separately
If the non-drain case is chosen with a receiver_amount equivalent to what drain would have calculated, it results in an error. For drain, the caller has to explicitly choose PayOnchainAmount::Drain.
* CLI: send-onchain-payment accepts optional amount
* CLI: add docs for send-onchain-payment drain arg
* SDK: expand docs for prepare_pay_onchain
* Re-generate RN bindings
* Re-generate flutter bindings
2024-09-11 15:52:56 +00:00
Ross Savage
c141d8e0a4
Change short_channel_id to string ( #484 )
...
* Change short_channel_id to string
* Bump sdk-common
2024-09-11 12:54:39 +02:00
Ross Savage
bd39b7ab02
RN: Prevent conversion of ReadableMap to HashMap ( #482 )
...
* Prevent conversion of ReadableMap to HashMap
* Handle Null ReadableType
2024-09-09 20:04:14 +02:00
yse
2dc3d57309
fix: set PaymentDetails as mandatory, default to LiquidAddress ( #474 )
2024-09-09 13:00:22 +02:00
Ross Savage
abf63931de
Set optional prepare params as null ( #472 )
2024-09-05 15:21:23 +02:00
Ross Savage
6b78919df8
Add sign_message and check_message ( #443 )
...
* Add sign and check message methods
* Use lightning message_signing module to verify the message signature
* Use hash engine
2024-08-29 08:42:16 +02:00
Ross Savage
deb9ed1b09
Add description hash to receive payment ( #440 )
...
* Add option to hash description
* Fix Flutter gen
* Switch to upstream boltz-rust
* Address feedback
2024-08-29 08:17:10 +02:00
Ross Savage
34774647bf
Integrate webhooks ( #410 )
...
* Integrate webhooks
* Make hash_swap_id optional
* Hash and store the swap id
* Add webhook status include lists
* Remove superfluous webhook statuses
* Verify and fetch user_lockup_tx_id if missing
* Fix tests
* Use bitcoin sha256
* Fix flutter CI
2024-08-29 08:03:50 +02:00
Ross Savage
251c252374
Add Go/CS bindings ( #147 )
...
* Publish Go/CS packages
* Fix optional param ordering
* Fix CI installed bindgens
2024-08-28 15:14:20 +02:00
Ross Savage
59f5e0636c
Handle in RN codegen multiple fields in enum variant ( #453 )
...
* Update RN example
* Handle enum variants with multiple fields
2024-08-23 06:12:39 +02:00
yse
1a89bcd6c1
feat: add BIP21 support ( #414 )
...
Co-authored-by: Erdem Yerebasmaz <erdem@yerebasmaz.com >
Co-authored-by: ok300 <106775972+ok300@users.noreply.github.com >
2024-08-22 12:23:36 +02:00
Erdem Yerebasmaz
5248dfc235
Depend on sdk-common with liquid feature ( #452 )
...
* Add copy script to packages/react-native makefile
* Reorder scripts
* Depend on sdk-common with liquid feature
* chore: cargo update
* Generate Dart bindings
* Generate UniFFI bindings
* Simplify import resolution by using prelude::*
* Applies changes from https://github.com/breez/breez-sdk-greenlight/pull/1078
2024-08-20 18:50:27 +03:00
Roei Erez
d123a77b12
update version to 0.2.1
2024-08-01 16:27:08 +03:00
Roei Erez
ad55007add
Fix conflict with os.Logger
2024-08-01 16:10:51 +03:00
Roei Erez
65ce16ea5f
update version to 0.2.0
2024-07-25 17:19:47 +03:00
Roei Erez
63e5a12abb
Merge branch 'v0.1.4'
2024-07-25 17:16:27 +03:00
Ross Savage
baa8096852
Update boltz-rust and add receive payment description ( #409 )
...
* Update boltz-rust
* Store description and add to Payment struct
* Fix examples
2024-07-25 12:46:40 +02:00
Roei Erez
ad0bad1431
update versions to 0.1.4
2024-07-22 15:18:02 +03:00
Ross Savage
bfeb785221
Buy Bitcoin ( #398 )
...
* Add fiat on-ramp service
* Use sdk-common MoonpayProvider
* Bump flutter qr dependency
* Bump sdk-common dependency
2024-07-19 14:57:51 +02:00
Ross Savage
8ac220275e
Update version to 0.1.3.rc2
2024-07-17 08:19:54 +02:00
Ross Savage
a3eb4caaf2
Add validate url success action param ( #395 )
2024-07-16 10:08:30 +02:00
Ross Savage
02408d2e04
Add validate url success action param
...
(cherry picked from commit bcd1b33004cb0f6762db7e8e3acfcf77d7eb9429)
2024-07-16 10:06:22 +03:00
Roei Erez
938f74d7d1
update version to 0.1.3.rc1
2024-07-16 09:14:39 +03:00
Ross Savage
0da35259fe
Allow custom pay_onchain claim fees ( #391 )
...
* Allow optional fee rate for pay onchain BTC claim
* Add recommended_fees method
* Fix example Config
* Address review comments
2024-07-15 17:38:10 +02:00
Ross Savage
a69f302e53
Regenerate RN ( #387 )
2024-07-11 19:17:57 +02:00
Ross Savage
a4a8f961d2
Update UDL to fix python default argment ordering ( #385 )
2024-07-11 19:17:36 +02:00
Ross Savage
143993fd3a
List payments filtering and paging ( #369 )
...
* List payments in reverse chonological order
* Add payment filtering and paging
* Fix examples
* Apply suggestions from code review
Co-authored-by: Erdem Yerebasmaz <erdem@yerebasmaz.com >
* Set timestamp for pseudo payments
* Filter by the first non-null timestamp from the join query
---------
Co-authored-by: Erdem Yerebasmaz <erdem@yerebasmaz.com >
2024-07-10 17:50:53 +02:00
Ross Savage
da43f7ff78
Rename namespace ( #345 )
...
* Rename namespace
* Fix flutter build
* Fix kotlin-multiplatform CI
* Rename repositories
2024-07-09 17:25:05 +02:00
Ross Savage
05507063f0
Change Config param to zero_conf_min_fee_rate_msat ( #374 )
...
* Change Config param to zero_conf_min_fee_rate_msat
* Fix Flutter example
2024-07-09 14:13:42 +02:00
Ross Savage
86d778f3b6
Fix type generation ( #362 )
2024-07-04 18:54:19 +02:00
ok300
08b2e5a6e2
Add fetch_onchain_limits service method ( #343 )
...
* Add pay_onchain_limits service method
* Add receive_onchain_limits service method
* Merge pay/receive_onchain_limits
* Update field names
* Split swapper method in get_chain_pair and get_chain_pairs
* Fix test
* Introduce and re-use Limits model
* Add fetch_lightning_limits SDK method
* Fix CI: propagate latest sdk-common changes
2024-07-03 09:22:29 +00:00
Ross Savage
15a243251e
Fix example network and logger call ( #349 )
2024-07-01 10:11:02 +02:00
Ross Savage
9820b0e38c
Change onchain request/response structs for clarity ( #340 )
...
* Rename fields for clarity
* Remove ReceiveOnchainRequest
2024-06-28 16:30:35 +02:00
Ross Savage
a98ee61242
Add payment examples to the RN app ( #337 )
...
* Add payment examples to the RN app
* Apply suggestions from code review
Co-authored-by: Erdem Yerebasmaz <erdem@yerebasmaz.com >
---------
Co-authored-by: Erdem Yerebasmaz <erdem@yerebasmaz.com >
2024-06-27 14:02:15 +02:00
Ross Savage
a4af73352a
Fix handling of f32 type ( #336 )
2024-06-27 13:07:41 +02:00
Ross Savage
e7844473cd
Monitor chain swap addresses ( #322 )
...
* Check chain swap addresses for unspent outputs
* Monitoring expired swaps up to 4320 blocks after expiration
* Refactor chain swap monitoring
* Handle the error to prevent the loop exiting
* Add RefundPending state
* Check if RefundPendingbefore setting to Refundable
* Use script_get_balance to determine spent state
* Use unconfirmed balance to check if RefundPending should be reset to Refundable
2024-06-26 16:53:41 +02:00
ok300
ef5cd28fa5
Add FiatAPI methods to Liquid SDK ( #331 )
...
* Add FiatAPI methods to Liquid SDK
* Add mirrored structs of fiat crate on Dart bindings
* Re-generate bindings
* Fix sdk-common imports
* Avoid using hardcoded Breez Server URL, re-use sdk-common constant
* Update Cargo.lock
---------
Co-authored-by: Erdem Yerebasmaz <erdem@yerebasmaz.com >
2024-06-26 13:55:44 +00:00
ok300
7bd9b6ddb2
Use swapper proxy to extract referral ID ( #329 )
...
* Use swapper proxy to extract referral ID
* Derive swapper API base URL from proxy URL
* Update RN bindings
* Remove referral_id from Config, move proxy_url parsing to swapper
* Fix tests
* Cache swapper proxy URL
* Move boltz_url from Config to swapper
* Silently fail when fetching proxy swapper URLs
* Update RN bindings
* Fix sdk-common dependency
* Fix dependency issues
2024-06-25 17:19:02 +00:00
Ross Savage
9da16fba78
Receive Chain Swaps ( #310 )
...
* Implement Chain Swaps for receiving
* Send: validate if we have sufficient funds (#321 )
* Implement Chain Swaps for receiving
* Fix rebase of flutter_rust_bridge version
* Send: validate if we have sufficient funds
* Re-generate FRB
---------
Co-authored-by: Ross Savage <hello@satimoto.com >
* Chaim swap claim: remove refund_tx arg (#328 )
---------
Co-authored-by: ok300 <106775972+ok300@users.noreply.github.com >
2024-06-25 17:33:38 +02:00
ok300
bcb4743260
Integrate sdk-common ( #308 )
...
* Rename Network to LiquidSdkNetwork to avoid naming conflicts with sdk-common
* Integrate sdk-common: re-use parse_invoice
* Fix UDL bindings tests
* Add input parser support
* CLI: Add input parser support
* Integrate lnurl-pay
* Cargo format, re-generate FRB and RN bindings
* Duplicate LnUrlPayError, update FRB/UniFFI bindings
* Move duplicate LnUrlPayError to FRB bindings.rs
* Add support for lnurl-withdraw
* Lnurl-withdraw: convert units, incorporate fees
* Bump sdk-common, rename InputType::LnUrlError
* Bump sdk-common, remove Wrapped prefix from LnUrlPaySuccessData, LnUrlPayResult
* LNURL-withdraw: add missing UDL mappings
* Add support for LNURL-auth
* Move LNURL structs into models.rs
* Rename LiquidSdkNetwork to LiquidNetwork
* Fix binding tests
* Fix tests
* Move FRB mirroring structs to bindings.rs
* Remove TODO
* Bump sdk-common, remove sdk-common dependency on rusqlite
* Propagate LiquidNetwork rename into flutter example app
* CI: install protobuf before running clippy
* CI: add rust cache, protobuf for remaining rust steps
2024-06-20 16:18:50 +00:00
Ross Savage
428d69729b
Implement Chain Swaps for sending ( #298 )
2024-06-19 12:48:13 +02:00
yse
4e76e94d26
feat: invoice details to Payment ( #309 )
2024-06-18 17:32:51 +02:00
Ross Savage
78228d8961
Publish CI fixes ( #289 )
...
* Fix CI publish directories
* Fix kotlin multiplatform build
* Fix python ffi directory
* Add swift PAT to release
* Fix file copy
* Fix mvn check
* Test windows build (#290 )
* Add jitpack yml
* Fix RN example android build
2024-06-18 09:34:47 +02:00
yse
bcf84fe8cd
feat: add zero-conf checks when receive lockup is in the mempool ( #292 )
2024-06-13 10:22:05 +02:00