@breeztech/breez-sdk-spark-react-native 0.20.0-dev1 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BreezSdkSparkReactNative.podspec +6 -0
- package/cpp/generated/breez_sdk_spark.cpp +168 -11
- package/cpp/generated/breez_sdk_spark.hpp +21 -0
- package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark.js +225 -35
- package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
- package/lib/commonjs/passkey-prf-provider.js +31 -11
- package/lib/commonjs/passkey-prf-provider.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark.js +224 -34
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/module/passkey-prf-provider.js +31 -11
- package/lib/module/passkey-prf-provider.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +8 -2
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts +811 -26
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/passkey-prf-provider.d.ts +24 -6
- package/lib/typescript/commonjs/src/passkey-prf-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +8 -2
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts +811 -26
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/lib/typescript/module/src/passkey-prf-provider.d.ts +24 -6
- package/lib/typescript/module/src/passkey-prf-provider.d.ts.map +1 -1
- package/package.json +4 -4
- package/plugin/build/index.d.ts +1 -1
- package/plugin/build/index.js +3 -1
- package/plugin/build/withAndroid.d.ts +1 -1
- package/plugin/build/withAndroid.js +1 -1
- package/plugin/build/withBinaryArtifacts.d.ts +1 -1
- package/plugin/build/withBinaryArtifacts.js +1 -1
- package/plugin/build/withIOS.d.ts +1 -1
- package/plugin/build/withIOS.js +1 -1
- package/scripts/post-ubrn.js +42 -0
- package/src/generated/breez_sdk_spark-ffi.ts +18 -1
- package/src/generated/breez_sdk_spark.ts +1303 -36
- package/src/passkey-prf-provider.ts +41 -12
|
@@ -16,6 +16,12 @@ Pod::Spec.new do |s|
|
|
|
16
16
|
s.source = { :git => "https://github.com/breez/spark-sdk.git", :tag => "#{s.version}" }
|
|
17
17
|
|
|
18
18
|
s.source_files = "ios/*.{h,m,mm,swift}", "ios/generated/**/*.{h}", "cpp/**/*.{hpp,cpp,c,h}", "cpp/generated/**/*.{hpp,cpp,c,h}"
|
|
19
|
+
# The pod contains Swift, so CocoaPods builds an ObjC module from the umbrella
|
|
20
|
+
# header, which is parsed as ObjC and not ObjC++. Every other header here is
|
|
21
|
+
# C++ or reaches it transitively (BreezSdkSparkReactNative.h imports the
|
|
22
|
+
# ObjC++ codegen spec under RCT_NEW_ARCH_ENABLED), so only the helper the
|
|
23
|
+
# Swift sources need is public.
|
|
24
|
+
s.public_header_files = "ios/PasskeyPRFHelper.h"
|
|
19
25
|
s.vendored_frameworks = "build/RnBreezSdkSpark.xcframework"
|
|
20
26
|
s.dependency "uniffi-bindgen-react-native", "0.29.3-1"
|
|
21
27
|
|
|
@@ -275,7 +275,7 @@ typedef void (*UniffiCallbackInterfacePrfProviderMethod1)(
|
|
|
275
275
|
UniffiForeignFutureCompleteI8 uniffi_future_callback,
|
|
276
276
|
uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
|
|
277
277
|
typedef void (*UniffiCallbackInterfacePrfProviderMethod2)(
|
|
278
|
-
uint64_t uniffi_handle, RustBuffer exclude_credentials,
|
|
278
|
+
uint64_t uniffi_handle, RustBuffer exclude_credentials, RustBuffer salts,
|
|
279
279
|
UniffiForeignFutureCompleteRustBuffer uniffi_future_callback,
|
|
280
280
|
uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
|
|
281
281
|
typedef void (*UniffiCallbackInterfacePrfProviderMethod3)(
|
|
@@ -596,6 +596,9 @@ uniffi_breez_sdk_spark_fn_method_breezsdk_add_event_listener(void *ptr,
|
|
|
596
596
|
uniffi_breez_sdk_spark_fn_method_breezsdk_authorize_lightning_address_transfer(
|
|
597
597
|
void *ptr, RustBuffer request);
|
|
598
598
|
/*handle*/ uint64_t
|
|
599
|
+
uniffi_breez_sdk_spark_fn_method_breezsdk_build_unsigned_batch_package(
|
|
600
|
+
void *ptr, RustBuffer request);
|
|
601
|
+
/*handle*/ uint64_t
|
|
599
602
|
uniffi_breez_sdk_spark_fn_method_breezsdk_build_unsigned_lnurl_pay_package(
|
|
600
603
|
void *ptr, RustBuffer request);
|
|
601
604
|
/*handle*/ uint64_t
|
|
@@ -680,6 +683,9 @@ uniffi_breez_sdk_spark_fn_method_breezsdk_parse(void *ptr, RustBuffer input);
|
|
|
680
683
|
uniffi_breez_sdk_spark_fn_method_breezsdk_prepare_lnurl_pay(void *ptr,
|
|
681
684
|
RustBuffer request);
|
|
682
685
|
/*handle*/ uint64_t
|
|
686
|
+
uniffi_breez_sdk_spark_fn_method_breezsdk_prepare_send_batch(
|
|
687
|
+
void *ptr, RustBuffer request);
|
|
688
|
+
/*handle*/ uint64_t
|
|
683
689
|
uniffi_breez_sdk_spark_fn_method_breezsdk_prepare_send_payment(
|
|
684
690
|
void *ptr, RustBuffer request);
|
|
685
691
|
/*handle*/ uint64_t
|
|
@@ -711,6 +717,9 @@ uniffi_breez_sdk_spark_fn_method_breezsdk_register_webhook(void *ptr,
|
|
|
711
717
|
uniffi_breez_sdk_spark_fn_method_breezsdk_remove_event_listener(void *ptr,
|
|
712
718
|
RustBuffer id);
|
|
713
719
|
/*handle*/ uint64_t
|
|
720
|
+
uniffi_breez_sdk_spark_fn_method_breezsdk_send_batch(void *ptr,
|
|
721
|
+
RustBuffer request);
|
|
722
|
+
/*handle*/ uint64_t
|
|
714
723
|
uniffi_breez_sdk_spark_fn_method_breezsdk_send_payment(void *ptr,
|
|
715
724
|
RustBuffer request);
|
|
716
725
|
/*handle*/ uint64_t
|
|
@@ -909,7 +918,7 @@ uniffi_breez_sdk_spark_fn_method_prfprovider_derive_seeds(void *ptr,
|
|
|
909
918
|
/*handle*/ uint64_t
|
|
910
919
|
uniffi_breez_sdk_spark_fn_method_prfprovider_is_supported(void *ptr);
|
|
911
920
|
/*handle*/ uint64_t uniffi_breez_sdk_spark_fn_method_prfprovider_create_passkey(
|
|
912
|
-
void *ptr, RustBuffer exclude_credentials);
|
|
921
|
+
void *ptr, RustBuffer exclude_credentials, RustBuffer salts);
|
|
913
922
|
/*handle*/ uint64_t
|
|
914
923
|
uniffi_breez_sdk_spark_fn_method_prfprovider_check_domain_association(
|
|
915
924
|
void *ptr);
|
|
@@ -1324,6 +1333,8 @@ uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener();
|
|
|
1324
1333
|
uint16_t
|
|
1325
1334
|
uniffi_breez_sdk_spark_checksum_method_breezsdk_authorize_lightning_address_transfer();
|
|
1326
1335
|
uint16_t
|
|
1336
|
+
uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_batch_package();
|
|
1337
|
+
uint16_t
|
|
1327
1338
|
uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_lnurl_pay_package();
|
|
1328
1339
|
uint16_t
|
|
1329
1340
|
uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_transfer_package();
|
|
@@ -1363,6 +1374,7 @@ uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_withdraw();
|
|
|
1363
1374
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_optimize_leaves();
|
|
1364
1375
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_parse();
|
|
1365
1376
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_lnurl_pay();
|
|
1377
|
+
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_batch();
|
|
1366
1378
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_payment();
|
|
1367
1379
|
uint16_t
|
|
1368
1380
|
uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_unilateral_exit();
|
|
@@ -1380,6 +1392,7 @@ uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address();
|
|
|
1380
1392
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_register_webhook();
|
|
1381
1393
|
uint16_t
|
|
1382
1394
|
uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener();
|
|
1395
|
+
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_send_batch();
|
|
1383
1396
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment();
|
|
1384
1397
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message();
|
|
1385
1398
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet();
|
|
@@ -10909,7 +10922,7 @@ using namespace facebook;
|
|
|
10909
10922
|
|
|
10910
10923
|
// We need to store a lambda in a global so we can call it from
|
|
10911
10924
|
// a function pointer. The function pointer is passed to Rust.
|
|
10912
|
-
static std::function<void(uint64_t, RustBuffer,
|
|
10925
|
+
static std::function<void(uint64_t, RustBuffer, RustBuffer,
|
|
10913
10926
|
UniffiForeignFutureCompleteRustBuffer, uint64_t,
|
|
10914
10927
|
UniffiForeignFuture *)>
|
|
10915
10928
|
rsLambda = nullptr;
|
|
@@ -10920,6 +10933,7 @@ static void body(jsi::Runtime &rt,
|
|
|
10920
10933
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
10921
10934
|
std::shared_ptr<jsi::Value> callbackValue,
|
|
10922
10935
|
uint64_t rs_uniffiHandle, RustBuffer rs_excludeCredentials,
|
|
10936
|
+
RustBuffer rs_salts,
|
|
10923
10937
|
UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback,
|
|
10924
10938
|
uint64_t rs_uniffiCallbackData,
|
|
10925
10939
|
UniffiForeignFuture *rs_uniffiOutReturn) {
|
|
@@ -10931,6 +10945,8 @@ static void body(jsi::Runtime &rt,
|
|
|
10931
10945
|
auto js_excludeCredentials =
|
|
10932
10946
|
uniffi::breez_sdk_spark::Bridging<RustBuffer>::toJs(
|
|
10933
10947
|
rt, callInvoker, rs_excludeCredentials);
|
|
10948
|
+
auto js_salts = uniffi::breez_sdk_spark::Bridging<RustBuffer>::toJs(
|
|
10949
|
+
rt, callInvoker, rs_salts);
|
|
10934
10950
|
auto js_uniffiFutureCallback = uniffi::breez_sdk_spark::Bridging<
|
|
10935
10951
|
UniffiForeignFutureCompleteRustBuffer>::toJs(rt, callInvoker,
|
|
10936
10952
|
rs_uniffiFutureCallback);
|
|
@@ -10943,8 +10959,9 @@ static void body(jsi::Runtime &rt,
|
|
|
10943
10959
|
try {
|
|
10944
10960
|
// Getting the callback function
|
|
10945
10961
|
auto cb = callbackValue->asObject(rt).asFunction(rt);
|
|
10946
|
-
auto uniffiResult =
|
|
10947
|
-
|
|
10962
|
+
auto uniffiResult =
|
|
10963
|
+
cb.call(rt, js_uniffiHandle, js_excludeCredentials, js_salts,
|
|
10964
|
+
js_uniffiFutureCallback, js_uniffiCallbackData);
|
|
10948
10965
|
|
|
10949
10966
|
// return type is MutReference(Struct("ForeignFuture"))
|
|
10950
10967
|
// Finally, we need to copy the return value back into the Rust pointer.
|
|
@@ -10960,6 +10977,7 @@ static void body(jsi::Runtime &rt,
|
|
|
10960
10977
|
|
|
10961
10978
|
static void
|
|
10962
10979
|
callback(uint64_t rs_uniffiHandle, RustBuffer rs_excludeCredentials,
|
|
10980
|
+
RustBuffer rs_salts,
|
|
10963
10981
|
UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback,
|
|
10964
10982
|
uint64_t rs_uniffiCallbackData,
|
|
10965
10983
|
UniffiForeignFuture *rs_uniffiOutReturn) {
|
|
@@ -10978,8 +10996,8 @@ callback(uint64_t rs_uniffiHandle, RustBuffer rs_excludeCredentials,
|
|
|
10978
10996
|
|
|
10979
10997
|
// The runtime, the actual callback jsi::funtion, and the callInvoker
|
|
10980
10998
|
// are all in the lambda.
|
|
10981
|
-
rsLambda(rs_uniffiHandle, rs_excludeCredentials,
|
|
10982
|
-
rs_uniffiCallbackData, rs_uniffiOutReturn);
|
|
10999
|
+
rsLambda(rs_uniffiHandle, rs_excludeCredentials, rs_salts,
|
|
11000
|
+
rs_uniffiFutureCallback, rs_uniffiCallbackData, rs_uniffiOutReturn);
|
|
10983
11001
|
}
|
|
10984
11002
|
|
|
10985
11003
|
static UniffiCallbackInterfacePrfProviderMethod2
|
|
@@ -11003,6 +11021,7 @@ makeCallbackFunction( // uniffi::breez_sdk_spark::cb::callbackinterfaceprfprovid
|
|
|
11003
11021
|
auto callbackValue = std::make_shared<jsi::Value>(rt, callbackFunction);
|
|
11004
11022
|
rsLambda = [&rt, callInvoker, callbackValue](
|
|
11005
11023
|
uint64_t rs_uniffiHandle, RustBuffer rs_excludeCredentials,
|
|
11024
|
+
RustBuffer rs_salts,
|
|
11006
11025
|
UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback,
|
|
11007
11026
|
uint64_t rs_uniffiCallbackData,
|
|
11008
11027
|
UniffiForeignFuture *rs_uniffiOutReturn) {
|
|
@@ -11010,10 +11029,10 @@ makeCallbackFunction( // uniffi::breez_sdk_spark::cb::callbackinterfaceprfprovid
|
|
|
11010
11029
|
// arguments into JSI values and calling the callback.
|
|
11011
11030
|
uniffi_runtime::UniffiCallFunc jsLambda =
|
|
11012
11031
|
[callInvoker, callbackValue, rs_uniffiHandle, rs_excludeCredentials,
|
|
11013
|
-
rs_uniffiFutureCallback, rs_uniffiCallbackData,
|
|
11032
|
+
rs_salts, rs_uniffiFutureCallback, rs_uniffiCallbackData,
|
|
11014
11033
|
rs_uniffiOutReturn](jsi::Runtime &rt) mutable {
|
|
11015
11034
|
body(rt, callInvoker, callbackValue, rs_uniffiHandle,
|
|
11016
|
-
rs_excludeCredentials, rs_uniffiFutureCallback,
|
|
11035
|
+
rs_excludeCredentials, rs_salts, rs_uniffiFutureCallback,
|
|
11017
11036
|
rs_uniffiCallbackData, rs_uniffiOutReturn);
|
|
11018
11037
|
};
|
|
11019
11038
|
// We'll then call that lambda from the callInvoker which will
|
|
@@ -17298,6 +17317,18 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
17298
17317
|
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_authorize_lightning_address_transfer(
|
|
17299
17318
|
rt, thisVal, args, count);
|
|
17300
17319
|
});
|
|
17320
|
+
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_build_unsigned_batch_"
|
|
17321
|
+
"package"] = jsi::Function::createFromHostFunction(
|
|
17322
|
+
rt,
|
|
17323
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_method_"
|
|
17324
|
+
"breezsdk_build_unsigned_batch_package"),
|
|
17325
|
+
2,
|
|
17326
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
17327
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
17328
|
+
return this
|
|
17329
|
+
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_build_unsigned_batch_package(
|
|
17330
|
+
rt, thisVal, args, count);
|
|
17331
|
+
});
|
|
17301
17332
|
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_build_unsigned_lnurl_"
|
|
17302
17333
|
"pay_package"] = jsi::Function::createFromHostFunction(
|
|
17303
17334
|
rt,
|
|
@@ -17680,6 +17711,18 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
17680
17711
|
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_prepare_lnurl_pay(
|
|
17681
17712
|
rt, thisVal, args, count);
|
|
17682
17713
|
});
|
|
17714
|
+
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_prepare_send_batch"] =
|
|
17715
|
+
jsi::Function::createFromHostFunction(
|
|
17716
|
+
rt,
|
|
17717
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_method_"
|
|
17718
|
+
"breezsdk_prepare_send_batch"),
|
|
17719
|
+
2,
|
|
17720
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
17721
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
17722
|
+
return this
|
|
17723
|
+
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_prepare_send_batch(
|
|
17724
|
+
rt, thisVal, args, count);
|
|
17725
|
+
});
|
|
17683
17726
|
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_prepare_send_payment"] =
|
|
17684
17727
|
jsi::Function::createFromHostFunction(
|
|
17685
17728
|
rt,
|
|
@@ -17815,6 +17858,18 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
17815
17858
|
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_remove_event_listener(
|
|
17816
17859
|
rt, thisVal, args, count);
|
|
17817
17860
|
});
|
|
17861
|
+
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_send_batch"] =
|
|
17862
|
+
jsi::Function::createFromHostFunction(
|
|
17863
|
+
rt,
|
|
17864
|
+
jsi::PropNameID::forAscii(
|
|
17865
|
+
rt, "ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_send_batch"),
|
|
17866
|
+
2,
|
|
17867
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
17868
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
17869
|
+
return this
|
|
17870
|
+
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_send_batch(
|
|
17871
|
+
rt, thisVal, args, count);
|
|
17872
|
+
});
|
|
17818
17873
|
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_send_payment"] =
|
|
17819
17874
|
jsi::Function::createFromHostFunction(
|
|
17820
17875
|
rt,
|
|
@@ -18729,7 +18784,7 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
18729
18784
|
rt,
|
|
18730
18785
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_method_"
|
|
18731
18786
|
"prfprovider_create_passkey"),
|
|
18732
|
-
|
|
18787
|
+
3,
|
|
18733
18788
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
18734
18789
|
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
18735
18790
|
return this
|
|
@@ -20773,6 +20828,19 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
20773
20828
|
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_authorize_lightning_address_transfer(
|
|
20774
20829
|
rt, thisVal, args, count);
|
|
20775
20830
|
});
|
|
20831
|
+
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_"
|
|
20832
|
+
"batch_package"] = jsi::Function::createFromHostFunction(
|
|
20833
|
+
rt,
|
|
20834
|
+
jsi::PropNameID::forAscii(rt,
|
|
20835
|
+
"ubrn_uniffi_breez_sdk_spark_checksum_method_"
|
|
20836
|
+
"breezsdk_build_unsigned_batch_package"),
|
|
20837
|
+
0,
|
|
20838
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
20839
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
20840
|
+
return this
|
|
20841
|
+
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_batch_package(
|
|
20842
|
+
rt, thisVal, args, count);
|
|
20843
|
+
});
|
|
20776
20844
|
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_"
|
|
20777
20845
|
"lnurl_pay_package"] = jsi::Function::createFromHostFunction(
|
|
20778
20846
|
rt,
|
|
@@ -21151,6 +21219,18 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
21151
21219
|
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_lnurl_pay(
|
|
21152
21220
|
rt, thisVal, args, count);
|
|
21153
21221
|
});
|
|
21222
|
+
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_"
|
|
21223
|
+
"batch"] = jsi::Function::createFromHostFunction(
|
|
21224
|
+
rt,
|
|
21225
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_checksum_"
|
|
21226
|
+
"method_breezsdk_prepare_send_batch"),
|
|
21227
|
+
0,
|
|
21228
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
21229
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
21230
|
+
return this
|
|
21231
|
+
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_batch(
|
|
21232
|
+
rt, thisVal, args, count);
|
|
21233
|
+
});
|
|
21154
21234
|
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_"
|
|
21155
21235
|
"payment"] = jsi::Function::createFromHostFunction(
|
|
21156
21236
|
rt,
|
|
@@ -21287,6 +21367,18 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
21287
21367
|
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener(
|
|
21288
21368
|
rt, thisVal, args, count);
|
|
21289
21369
|
});
|
|
21370
|
+
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_batch"] =
|
|
21371
|
+
jsi::Function::createFromHostFunction(
|
|
21372
|
+
rt,
|
|
21373
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_checksum_"
|
|
21374
|
+
"method_breezsdk_send_batch"),
|
|
21375
|
+
0,
|
|
21376
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
21377
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
21378
|
+
return this
|
|
21379
|
+
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_batch(
|
|
21380
|
+
rt, thisVal, args, count);
|
|
21381
|
+
});
|
|
21290
21382
|
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment"] =
|
|
21291
21383
|
jsi::Function::createFromHostFunction(
|
|
21292
21384
|
rt,
|
|
@@ -23702,6 +23794,19 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
23702
23794
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
23703
23795
|
value);
|
|
23704
23796
|
}
|
|
23797
|
+
jsi::Value NativeBreezSdkSpark::
|
|
23798
|
+
cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_build_unsigned_batch_package(
|
|
23799
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
23800
|
+
size_t count) {
|
|
23801
|
+
auto value =
|
|
23802
|
+
uniffi_breez_sdk_spark_fn_method_breezsdk_build_unsigned_batch_package(
|
|
23803
|
+
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
|
|
23804
|
+
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
23805
|
+
args[1]));
|
|
23806
|
+
|
|
23807
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
23808
|
+
value);
|
|
23809
|
+
}
|
|
23705
23810
|
jsi::Value NativeBreezSdkSpark::
|
|
23706
23811
|
cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_build_unsigned_lnurl_pay_package(
|
|
23707
23812
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -24068,6 +24173,18 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
24068
24173
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
24069
24174
|
value);
|
|
24070
24175
|
}
|
|
24176
|
+
jsi::Value NativeBreezSdkSpark::
|
|
24177
|
+
cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_prepare_send_batch(
|
|
24178
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
24179
|
+
size_t count) {
|
|
24180
|
+
auto value = uniffi_breez_sdk_spark_fn_method_breezsdk_prepare_send_batch(
|
|
24181
|
+
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
|
|
24182
|
+
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
24183
|
+
args[1]));
|
|
24184
|
+
|
|
24185
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
24186
|
+
value);
|
|
24187
|
+
}
|
|
24071
24188
|
jsi::Value NativeBreezSdkSpark::
|
|
24072
24189
|
cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_prepare_send_payment(
|
|
24073
24190
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -24202,6 +24319,18 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
24202
24319
|
value);
|
|
24203
24320
|
}
|
|
24204
24321
|
jsi::Value
|
|
24322
|
+
NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_send_batch(
|
|
24323
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
24324
|
+
size_t count) {
|
|
24325
|
+
auto value = uniffi_breez_sdk_spark_fn_method_breezsdk_send_batch(
|
|
24326
|
+
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
|
|
24327
|
+
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
24328
|
+
args[1]));
|
|
24329
|
+
|
|
24330
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
24331
|
+
value);
|
|
24332
|
+
}
|
|
24333
|
+
jsi::Value
|
|
24205
24334
|
NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_send_payment(
|
|
24206
24335
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
24207
24336
|
size_t count) {
|
|
@@ -25186,7 +25315,9 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
25186
25315
|
auto value = uniffi_breez_sdk_spark_fn_method_prfprovider_create_passkey(
|
|
25187
25316
|
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
|
|
25188
25317
|
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
25189
|
-
args[1])
|
|
25318
|
+
args[1]),
|
|
25319
|
+
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
25320
|
+
args[2]));
|
|
25190
25321
|
|
|
25191
25322
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
25192
25323
|
value);
|
|
@@ -27258,6 +27389,15 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
27258
27389
|
|
|
27259
27390
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
27260
27391
|
}
|
|
27392
|
+
jsi::Value NativeBreezSdkSpark::
|
|
27393
|
+
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_batch_package(
|
|
27394
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
27395
|
+
size_t count) {
|
|
27396
|
+
auto value =
|
|
27397
|
+
uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_batch_package();
|
|
27398
|
+
|
|
27399
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
27400
|
+
}
|
|
27261
27401
|
jsi::Value NativeBreezSdkSpark::
|
|
27262
27402
|
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_lnurl_pay_package(
|
|
27263
27403
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -27523,6 +27663,15 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
27523
27663
|
|
|
27524
27664
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
27525
27665
|
}
|
|
27666
|
+
jsi::Value NativeBreezSdkSpark::
|
|
27667
|
+
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_batch(
|
|
27668
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
27669
|
+
size_t count) {
|
|
27670
|
+
auto value =
|
|
27671
|
+
uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_batch();
|
|
27672
|
+
|
|
27673
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
27674
|
+
}
|
|
27526
27675
|
jsi::Value NativeBreezSdkSpark::
|
|
27527
27676
|
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_payment(
|
|
27528
27677
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -27621,6 +27770,14 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
27621
27770
|
|
|
27622
27771
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
27623
27772
|
}
|
|
27773
|
+
jsi::Value NativeBreezSdkSpark::
|
|
27774
|
+
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_batch(
|
|
27775
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
27776
|
+
size_t count) {
|
|
27777
|
+
auto value = uniffi_breez_sdk_spark_checksum_method_breezsdk_send_batch();
|
|
27778
|
+
|
|
27779
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
27780
|
+
}
|
|
27624
27781
|
jsi::Value NativeBreezSdkSpark::
|
|
27625
27782
|
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment(
|
|
27626
27783
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -83,6 +83,10 @@ protected:
|
|
|
83
83
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
84
84
|
size_t count);
|
|
85
85
|
jsi::Value
|
|
86
|
+
cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_build_unsigned_batch_package(
|
|
87
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
88
|
+
size_t count);
|
|
89
|
+
jsi::Value
|
|
86
90
|
cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_build_unsigned_lnurl_pay_package(
|
|
87
91
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
88
92
|
size_t count);
|
|
@@ -184,6 +188,9 @@ protected:
|
|
|
184
188
|
jsi::Value cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_prepare_lnurl_pay(
|
|
185
189
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
186
190
|
size_t count);
|
|
191
|
+
jsi::Value cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_prepare_send_batch(
|
|
192
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
193
|
+
size_t count);
|
|
187
194
|
jsi::Value cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_prepare_send_payment(
|
|
188
195
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
189
196
|
size_t count);
|
|
@@ -223,6 +230,9 @@ protected:
|
|
|
223
230
|
cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_remove_event_listener(
|
|
224
231
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
225
232
|
size_t count);
|
|
233
|
+
jsi::Value cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_send_batch(
|
|
234
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
235
|
+
size_t count);
|
|
226
236
|
jsi::Value cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_send_payment(
|
|
227
237
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
228
238
|
size_t count);
|
|
@@ -1044,6 +1054,10 @@ protected:
|
|
|
1044
1054
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
1045
1055
|
size_t count);
|
|
1046
1056
|
jsi::Value
|
|
1057
|
+
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_batch_package(
|
|
1058
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
1059
|
+
size_t count);
|
|
1060
|
+
jsi::Value
|
|
1047
1061
|
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_lnurl_pay_package(
|
|
1048
1062
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
1049
1063
|
size_t count);
|
|
@@ -1154,6 +1168,10 @@ protected:
|
|
|
1154
1168
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
1155
1169
|
size_t count);
|
|
1156
1170
|
jsi::Value
|
|
1171
|
+
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_batch(
|
|
1172
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
1173
|
+
size_t count);
|
|
1174
|
+
jsi::Value
|
|
1157
1175
|
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_payment(
|
|
1158
1176
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
1159
1177
|
size_t count);
|
|
@@ -1196,6 +1214,9 @@ protected:
|
|
|
1196
1214
|
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener(
|
|
1197
1215
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
1198
1216
|
size_t count);
|
|
1217
|
+
jsi::Value cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_batch(
|
|
1218
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
1219
|
+
size_t count);
|
|
1199
1220
|
jsi::Value cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment(
|
|
1200
1221
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
1201
1222
|
size_t count);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getter","globalThis","NativeBreezSdkSpark","_default","exports","default","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/breez_sdk_spark-ffi.ts"],"mappings":";;;;;;AAAA;AACA;;
|
|
1
|
+
{"version":3,"names":["getter","globalThis","NativeBreezSdkSpark","_default","exports","default","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/breez_sdk_spark-ffi.ts"],"mappings":";;;;;;AAAA;AACA;;AAy0CA;AACA;AACA;AACA;AACA;AACA,MAAMA,MAAmC,GAAGA,CAAA,KACzCC,UAAU,CAASC,mBAAmB;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAC3BL,MAAM,EAErB;AA0uBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMM,8CAGL,GAAG,IAAI;AACR,MAAMC,mCAGL,GAAG,IAAI","ignoreList":[]}
|