Commit Graph

543 Commits

Author SHA1 Message Date
Ross Savage
b3f1eed429 Prevent swap double claim (#542)
* Prevent receive swap double claim

* Prevent chain swap double claim
2024-10-30 10:08:13 +01:00
ok300
59dfacc12d Receive Chain Swap: support refund even when lockup address is re-used (#471)
* rescan_onchain_swaps: separate internal (scheduled) from external (manual) call

* Add TODOs for supporting more utxos in BtcSwapTx::new_refund

* Update boltz-client to build refund tx with all utxos

* list-refundables: show refundable amount, not swap amount

* Chain swap cooperative refund: fix "Liquid chain used for Bitcoin operations" error

* Revert "Chain swap cooperative refund: fix "Liquid chain used for Bitcoin operations" error"

This reverts commit 8a325e3c13b7e9b54b9f5256bea206989eac53b6.

* Bump boltz-rust to include sign_refund fix

* Bump boltz-rust to include sign_refund fix for non-coop refund

* Fix state handling when incoming chain swaps are refunded

* Move swap state change inside refund_incoming_swap

* Bump to latest boltz-client branch version
2024-10-29 12:56:55 +00:00
ok300
414c9f1ae9 Bring remaining u32 amount types to u64 (#537) 2024-10-28 14:36:33 +00:00
Ross Savage
b78d53b436 Add swift framework plists (#536)
* Add a Info.plist per framework

* Update dart bindings
2024-10-24 16:58:55 +02:00
Roy Sheinfeld
4149db226f Update README.md 2024-10-23 12:59:28 +02:00
Roy Sheinfeld
cdc0af78b8 Update README.md 2024-10-23 00:34:49 +03:00
Ross Savage
430b2d4f2b Update roadmap 2024-10-22 12:47:04 +02:00
Roei Erez
8cf6a26dc0 Merge branch 'v0.4.0'
* v0.4.0:
  Fix SDK checkout (#528)
  update version to 0.4.0-rc3
  update version to 0.4.0-rc2
  Fix details fields error
  Add notification plugin CI
  update version to 0.4.0-rc1
2024-10-22 10:36:32 +03:00
Ross Savage
96bfe463f4 Skip missed ticks (#534) 2024-10-20 20:53:27 +02:00
Ross Savage
3c69246f13 Add API key to RN example (#533) 2024-10-20 20:52:49 +02:00
Roei Erez
e928c3d49b Merge pull request #495 from breez/signer
Support user implemented signer.
2024-10-20 09:58:26 +03:00
Roei Erez
ef28becff6 update sdk common dependency 2024-10-20 09:07:07 +03:00
Roei Erez
6656d57c64 Fix working directory 2024-10-18 13:11:16 +03:00
Ross Savage
3ec1b9743e Fix wallet test 2024-10-18 11:58:12 +02:00
Roei Erez
2b6ff70742 remove example files 2024-10-18 11:32:54 +02:00
Roei Erez
f7b583c562 fix variable name 2024-10-18 11:32:32 +02:00
Roei Erez
72f29bf16b fix sign_message/check_message and add test 2024-10-18 11:32:29 +02:00
Roei Erez
2e559364d8 fix comments 2024-10-18 11:25:25 +02:00
Roei Erez
bbac3f5fc2 remove old files 2024-10-18 11:25:10 +02:00
Roei Erez
8cce2afe5d Add react native bindings 2024-10-18 11:25:10 +02:00
Roei Erez
c999cedaa3 Implement flutter bindings 2024-10-18 11:25:06 +02:00
Roei Erez
fe15534d68 Implement seperated signer 2024-10-18 11:14:22 +02:00
ok300
cbe835b565 GetInfoResponse: add fingerprint (#532)
* GetInfoResponse: add fingerprint

* Re-generate dart ffi with `just ffigen`

* Re-generate dart ffi with `just gen`
2024-10-17 14:36:33 +00:00
ok300
b5a1d957c3 Log exact error root cause when failing to lookup script address (#530) 2024-10-16 11:18:43 +00:00
Ross Savage
5f638aec37 Fix list payments filter (#529) 2024-10-15 10:18:11 +02:00
Ross Savage
0a66f4c5a8 Fix SDK checkout (#528)
(cherry picked from commit 45281fb7e5)
2024-10-14 12:00:05 +03:00
Ross Savage
45281fb7e5 Fix SDK checkout (#528) 2024-10-14 10:58:32 +02:00
Ross Savage
8a8fd922e3 Bump sdk-common (#527) 2024-10-14 10:48:38 +02:00
Roei Erez
31fcfaa3db update version to 0.4.0-rc3 2024-10-14 11:45:16 +03:00
Ross Savage
0884106159 Add prepare_lnurl_pay (#524)
* Add prepare_lnurl_pay

* Move fields into prepare response
2024-10-14 10:06:14 +02:00
Ross Savage
7202e62967 Add notification plugin CI (#526)
* Add notification plugin CI

* Fix details fields error
2024-10-14 09:50:13 +02:00
Roei Erez
63d9305acd update version to 0.4.0-rc2 2024-10-14 10:44:14 +03:00
Ross Savage
c1afb5efa1 Fix details fields error
(cherry picked from commit 7588ba5579684d380be6981c00b5be08052494e9)
2024-10-14 10:40:56 +03:00
Ross Savage
8f7f338e9d Add notification plugin CI
(cherry picked from commit 737683fc889b91ee6879b6600063d2675ca34189)
2024-10-14 10:40:39 +03:00
Roei Erez
e2fd502827 update version to 0.4.0-rc1 2024-10-13 15:01:46 +03:00
Roei Erez
528a9bacec Merge pull request #525 from breez/ok300-add-breez-electrum
Add Breez electrum server for Liquid Mainnet
2024-10-13 14:57:11 +03:00
ok300
41a4065ff4 Add Breez electrum server for Liquid Mainnet 2024-10-11 14:44:08 +02:00
Ross Savage
3867fa91da Get Payment (#476)
* Get payment by destination

* CI fixes

* Remove claim_address from query

* Add PaymentDestination enum

* Add payment hash as a payment query option

* Bump Flutter dependencies

* Move destination/address queries to list_payments

* Apply suggestions from code review

Co-authored-by: yse <70684173+hydra-yse@users.noreply.github.com>

---------

Co-authored-by: yse <70684173+hydra-yse@users.noreply.github.com>
2024-10-10 17:44:32 +02:00
yse
42f4ca0129 feat: require Breez API key globally on mainnet (#520) 2024-10-08 16:17:34 +02:00
ok300
046e7ab1c8 list-refundables: show refundable amount, not swap amount (#516)
* list-refundables: show refundable amount, not swap amount

* Rename chainswap fn for clarity

get_lockup_swap_script_pubkey only applies to Receive Chain Swaps, so it was renamed to get_receive_lockup_swap_script_pubkey.

* list_refundables: batch calls to fetch balance from chain service

* Simplify conversion from Chain Swap to RefundableSwap

* Fix MockBitcoinChainService

* Re-generate flutter bindings

* Add utility for creating SdkError::Generic with &str or String

* Chain Swap getter for swap script pk: throw SdkError instead of anyhow::Error

* Update RefundableSwap comment

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

* Re-generate dart files

---------

Co-authored-by: Ross Savage <551697+dangeross@users.noreply.github.com>
2024-10-07 15:56:02 +00:00
yse
950d4243e6 fix: incoming Chain swap refund (#522) 2024-10-07 15:53:09 +02:00
ok300
7e193aafac Chain swap cooperative refund: fix triggering of refund_incoming_swap (#517)
* Chain swap cooperative refund: fix "Liquid chain used for Bitcoin operations" error

* Log error in case cooperative refund fails
2024-10-04 08:52:58 +00:00
Ross Savage
228bf9ab36 Re-add convenience Flutter gen command (#514)
* Re-add convenience Flutter gen command

* Decouple building ios framework step from bindings-swift script

* Add comments to uniffi build scripts.
* Make init-sdk part of init recipe
* Reorder recipes
* generate ios framework by default on gen recipe
* softlink C headers as part of their generator recipes
* Add convenience build recipe to generate everything needed for Flutter when developing the SDK

* Update Check Dart/Flutter bindings CI step

---------

Co-authored-by: Erdem Yerebasmaz <erdem@yerebasmaz.com>
2024-10-03 13:48:12 +03:00
Ross Savage
407a805418 Remove gitignore to allow Sources to be committed (#513) 2024-10-03 12:32:29 +03:00
Erdem Yerebasmaz
1389d49f03 Update flutter_rust_bridge to 2.4.0 (#511) 2024-10-01 13:31:55 +03:00
Erdem Yerebasmaz
f6fa503cb9 Flutter uniFFI (#510)
* Flutter uniffi

* Set on-demand resources

* Do not build non-uniffi libraries

* Change iosLibName

* Add BreezSDKLiquid as on demand resources

* Use downloaded framework

* Add Sources to published flutter package

* Set OTHER_LDFLAGS

* Add logging

* Refactor library initialization logic and throw an error if initialization fails

* Do not statically link framework on production

* Use uniFFI headers to generate FlutterBreezLiquidBindings

* Re add frb header

* Correct the library name

* Remove static_framework

* Move source header files

* Copy iOS podspecs to macOS folder

* Update version of macOS podspecs

* Remove Windows & Linux support

* Remove CMake scripts

* Remove breez_sdk_liquid.podspec from version script

* Cleanup older build scripts used by melos & just recipes

* Remove softlink & copy recipes

Add recipe descriptions

* Rename link-uniffi recipe to link-headers

Make sure headers are linked after uniffi is built
  - Remove just gen recipe
Add recipe descriptions

* Set package versions on production files as well when publishing

* Include bindings project on melos script hooks

* Flutter uniffi

* Set on-demand resources

* Do not build non-uniffi libraries

* Change iosLibName

* Add BreezSDKLiquid as on demand resources

* Use downloaded framework

* Add Sources to published flutter package

* Set OTHER_LDFLAGS

* Add logging

* Refactor library initialization logic and throw an error if initialization fails

* Do not statically link framework on production

* Use uniFFI headers to generate FlutterBreezLiquidBindings

* Re add frb header

* Correct the library name

* Remove static_framework

* Move source header files

* Copy iOS podspecs to macOS folder

* Update version of macOS podspecs

* Remove Windows & Linux support

* Remove CMake scripts

* Remove breez_sdk_liquid.podspec from version script

* Cleanup older build scripts used by melos & just recipes

* Remove softlink & copy recipes

Add recipe descriptions

* Rename link-uniffi recipe to link-headers

Make sure headers are linked after uniffi is built
  - Remove just gen recipe
Add recipe descriptions

* Set package versions on production files as well when publishing

* Include bindings project on melos script hooks

* chore: just version

* fix: remove unused files on "Set package version" step

* copy FFI header files

* [WIP] Add macOS support

* remove example app on Flutter plugin

* Link headers before running ffigen on CI workflow

* macOS: add macos/Sources folder to .gitignore

.

* macOS: Copy iOS sources to macOS sources after downloading bindings

* macOS: copy sources & framework file to macos folder on build-uniffi-swift script

* import breez_sdk_liquidFFI header on plugin file

Update flutter_breez_liquid.c

* cleanup header file artifacts

---------

Co-authored-by: Ross Savage <hello@satimoto.com>
2024-10-01 10:59:11 +03:00
Roei Erez
8374a1812d Merge branch 'v0.3.4'
* v0.3.4:
  update version to 0.3.4
  Fix pay onchain claim fee (#499)
  update versions
  add validation for paying liquid fees
  Merge pull request #498 from breez/fix-lowball
  update version to 0.3.2
2024-09-26 10:15:07 +03:00
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
Ross Savage
9c0e469ad1 Fix pay onchain claim fee (#499)
* Fix pay onchain claim fee

* Bump flutter example dependencies
2024-09-25 10:44:33 +02:00