Commit Graph

97 Commits

Author SHA1 Message Date
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
aa86d350cc Merge pull request #122 from breez/savage-license
Add license
2024-04-30 06:27:03 +02:00
Ross Savage
c6c38ef1d5 Add license 2024-04-29 21:49:52 +02:00
Erdem Yerebasmaz
5100d63ac1 Merge pull request #116 from breez/dart_bindings
[frb] : Add support for Dart/Flutter bindings - Part I
2024-04-29 19:40:47 +03:00
Erdem Yerebasmaz
de70900ab7 Run make react-native 2024-04-29 19:16:48 +03:00
Erdem Yerebasmaz
d4adb5580f Return LsSdkError if getting a wallet instance fails
Add missing import
2024-04-29 18:51:29 +03:00
Erdem Yerebasmaz
0b07484bfd Rename init() to connect() 2024-04-29 18:41:37 +03:00
Erdem Yerebasmaz
08aa2eaeaf Revert "Apply frb's file structure changes to ls-sdk-bindings" 2024-04-29 18:41:37 +03:00
Erdem Yerebasmaz
c54e61ba2a Ran cargo fmt & added empty file for generated Bindings 2024-04-29 18:41:37 +03:00
Erdem Yerebasmaz
811f99f348 Update Cargo.lock 2024-04-29 18:41:37 +03:00
Erdem Yerebasmaz
63be6097e7 Move PaymentError to error.rs 2024-04-29 18:41:37 +03:00
Erdem Yerebasmaz
cb7ccf35ac Add backup & restore to Dart bindings 2024-04-29 18:41:37 +03:00
Erdem Yerebasmaz
b0f35786d6 Expose LBtcReverseRecovery through crate explicitly on Rust input file of Dart bindings
Otherwise it won't be resolved on the generated files.
2024-04-29 18:41:37 +03:00
Erdem Yerebasmaz
7e21180fab Enable frb feature by default 2024-04-29 18:41:37 +03:00
Erdem Yerebasmaz
ba28e75244 Apply frb's file structure changes to ls-sdk-bindings 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
Erdem Yerebasmaz
f26818252d Create bindings for Dart/Flutter generation on Rust 2024-04-29 18:41:37 +03:00
Erdem Yerebasmaz
25d945d73f Add flutter_rust_bridge crate and make necessary changes on file structure
flutter_rust_bridge is added as a feature named "frb"
2024-04-29 18:41:37 +03:00
Ross Savage
8aef55ee51 Rename the manually coded init function to connect 2024-04-29 18:41:37 +03:00
ok300
4d710cde42 Update RN bindings 2024-04-29 18:40:41 +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
021d28c947 Expand error message on invalid swap state (#112) 2024-04-29 11:03:39 +00:00
ok300
47a8dde47d Integrate boltz-client fix for swapstatus (#111) 2024-04-29 11:01:34 +00:00
ok300
fddabfa0dd Add CI step to check RN bindings (#115) 2024-04-29 10:53:02 +00:00
ok300
95a05cc428 CI: build bindings, add binding tests (#114)
* CI: build bindings, add binding tests

* Cargo fmt

* Add assertion in python binding test
2024-04-29 10:49:33 +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
ok300
a1ecdfed9a Add more details to swap_status error (#106)
* Add more details to swap_status error

* Cargo fmt
2024-04-25 20:52:46 +02:00
Ross Savage
6e0b59fd11 Merge pull request #99 from breez/savage-react-native-package
Add React Native package
2024-04-25 14:13:23 +02:00
Ross Savage
a226b1eac9 Merge pull request #98 from breez/savage-react-native-bindings
Add React Native bindings
2024-04-25 14:12:59 +02:00
Ross Savage
e47d270c35 Merge pull request #97 from breez/savage-android-swift-bindings
Add Android / iOS bindings
2024-04-25 14:12:36 +02:00
Ross Savage
14b7367f05 Add the React Native package build off of the generated bindings and example project 2024-04-25 13:57:11 +02:00
Ross Savage
4efb664dde Add code generation of React Native bindings 2024-04-25 13:46:02 +02:00
Ross Savage
567b077717 Add building of android bindings and swift bindings for iOS 2024-04-25 13:42:53 +02:00
yse
2eb0faead3 feat: add pre-commit hook to repo (#94) 2024-04-25 10:56:46 +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
ok300
6f598b7bbd LWK cache removal: remove dependency on hash tag (#102) 2024-04-23 15:56:25 +00:00
ok300
f138f6ae05 Rename BoltzError to Generic (#96)
* Rename BoltzError to Generic

* Alphabetically order error enum variants
2024-04-19 22:10:03 +02:00
ok300
908c9be111 Remove active_address from WalletInfo (#95) 2024-04-19 12:37:45 +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
Roei Erez
a405fa2583 Update README.md 2024-04-15 15:39:35 +03: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