@breeztech/breez-sdk-spark-react-native 0.3.2 → 0.3.4
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/android/cpp-adapter.cpp +6 -26
- package/cpp/generated/breez_sdk_spark.cpp +147 -0
- package/cpp/generated/breez_sdk_spark.hpp +18 -0
- package/lib/commonjs/generated/breez_sdk_common.js +64 -274
- package/lib/commonjs/generated/breez_sdk_common.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark.js +589 -24
- package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
- package/lib/module/generated/breez_sdk_common.js +63 -273
- package/lib/module/generated/breez_sdk_common.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark.js +588 -23
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_common.d.ts +79 -183
- package/lib/typescript/commonjs/src/generated/breez_sdk_common.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +6 -0
- 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 +571 -19
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_common.d.ts +79 -183
- package/lib/typescript/module/src/generated/breez_sdk_common.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +6 -0
- 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 +571 -19
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/generated/breez_sdk_common.ts +118 -373
- package/src/generated/breez_sdk_spark-ffi.ts +15 -0
- package/src/generated/breez_sdk_spark.ts +1076 -41
package/android/cpp-adapter.cpp
CHANGED
|
@@ -24,34 +24,14 @@ Java_com_breeztech_breezsdkspark_BreezSdkSparkReactNativeModule_nativeInstallRus
|
|
|
24
24
|
jlong rtPtr,
|
|
25
25
|
jobject callInvokerHolderJavaObj
|
|
26
26
|
) {
|
|
27
|
-
|
|
28
|
-
// React Native uses the fbjni library for handling JNI, which has the concept of "hybrid objects",
|
|
29
|
-
// which are Java objects containing a pointer to a C++ object. The CallInvokerHolder, which has the
|
|
30
|
-
// invokeAsync method we want access to, is one such hybrid object.
|
|
31
|
-
// Rather than reworking our code to use fbjni throughout, this code unpacks the C++ object from the Java
|
|
32
|
-
// object `callInvokerHolderJavaObj` manually, based on reverse engineering the fbjni code.
|
|
33
|
-
|
|
34
|
-
// 1. Get the Java object referred to by the mHybridData field of the Java holder object
|
|
35
|
-
auto callInvokerHolderClass = env->GetObjectClass(callInvokerHolderJavaObj);
|
|
36
|
-
auto hybridDataField = env->GetFieldID(callInvokerHolderClass, "mHybridData", "Lcom/facebook/jni/HybridData;");
|
|
37
|
-
auto hybridDataObj = env->GetObjectField(callInvokerHolderJavaObj, hybridDataField);
|
|
38
|
-
|
|
39
|
-
// 2. Get the destructor Java object referred to by the mDestructor field from the myHybridData Java object
|
|
40
|
-
auto hybridDataClass = env->FindClass("com/facebook/jni/HybridData");
|
|
41
|
-
auto destructorField =
|
|
42
|
-
env->GetFieldID(hybridDataClass, "mDestructor", "Lcom/facebook/jni/HybridData$Destructor;");
|
|
43
|
-
auto destructorObj = env->GetObjectField(hybridDataObj, destructorField);
|
|
44
|
-
|
|
45
|
-
// 3. Get the mNativePointer field from the mDestructor Java object
|
|
46
|
-
auto destructorClass = env->FindClass("com/facebook/jni/HybridData$Destructor");
|
|
47
|
-
auto nativePointerField = env->GetFieldID(destructorClass, "mNativePointer", "J");
|
|
48
|
-
auto nativePointerValue = env->GetLongField(destructorObj, nativePointerField);
|
|
49
|
-
|
|
50
|
-
// 4. Cast the mNativePointer back to its C++ type
|
|
51
|
-
auto nativePointer = reinterpret_cast<facebook::react::CallInvokerHolder*>(nativePointerValue);
|
|
52
|
-
auto jsCallInvoker = nativePointer->getCallInvoker();
|
|
27
|
+
using JCallInvokerHolder = facebook::react::CallInvokerHolder;
|
|
53
28
|
|
|
29
|
+
auto holderLocal = facebook::jni::make_local(callInvokerHolderJavaObj);
|
|
30
|
+
auto holderRef = facebook::jni::static_ref_cast<JCallInvokerHolder::javaobject>(holderLocal);
|
|
31
|
+
auto* holderCxx = holderRef->cthis();
|
|
32
|
+
auto jsCallInvoker = holderCxx->getCallInvoker();
|
|
54
33
|
auto runtime = reinterpret_cast<jsi::Runtime *>(rtPtr);
|
|
34
|
+
|
|
55
35
|
return breeztech_breezsdksparkreactnative::installRustCrate(*runtime, jsCallInvoker);
|
|
56
36
|
}
|
|
57
37
|
|
|
@@ -239,6 +239,9 @@ uniffi_breez_sdk_spark_fn_method_breezsdk_add_event_listener(void *ptr,
|
|
|
239
239
|
uniffi_breez_sdk_spark_fn_method_breezsdk_check_lightning_address_available(
|
|
240
240
|
void *ptr, RustBuffer req);
|
|
241
241
|
/*handle*/ uint64_t
|
|
242
|
+
uniffi_breez_sdk_spark_fn_method_breezsdk_check_message(void *ptr,
|
|
243
|
+
RustBuffer request);
|
|
244
|
+
/*handle*/ uint64_t
|
|
242
245
|
uniffi_breez_sdk_spark_fn_method_breezsdk_claim_deposit(void *ptr,
|
|
243
246
|
RustBuffer request);
|
|
244
247
|
/*handle*/ uint64_t
|
|
@@ -270,6 +273,9 @@ uniffi_breez_sdk_spark_fn_method_breezsdk_list_unclaimed_deposits(
|
|
|
270
273
|
uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_pay(void *ptr,
|
|
271
274
|
RustBuffer request);
|
|
272
275
|
/*handle*/ uint64_t
|
|
276
|
+
uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_withdraw(void *ptr,
|
|
277
|
+
RustBuffer request);
|
|
278
|
+
/*handle*/ uint64_t
|
|
273
279
|
uniffi_breez_sdk_spark_fn_method_breezsdk_parse(void *ptr, RustBuffer input);
|
|
274
280
|
/*handle*/ uint64_t
|
|
275
281
|
uniffi_breez_sdk_spark_fn_method_breezsdk_prepare_lnurl_pay(void *ptr,
|
|
@@ -293,6 +299,9 @@ uniffi_breez_sdk_spark_fn_method_breezsdk_remove_event_listener(void *ptr,
|
|
|
293
299
|
uniffi_breez_sdk_spark_fn_method_breezsdk_send_payment(void *ptr,
|
|
294
300
|
RustBuffer request);
|
|
295
301
|
/*handle*/ uint64_t
|
|
302
|
+
uniffi_breez_sdk_spark_fn_method_breezsdk_sign_message(void *ptr,
|
|
303
|
+
RustBuffer request);
|
|
304
|
+
/*handle*/ uint64_t
|
|
296
305
|
uniffi_breez_sdk_spark_fn_method_breezsdk_sync_wallet(void *ptr,
|
|
297
306
|
RustBuffer request);
|
|
298
307
|
/*handle*/ uint64_t
|
|
@@ -529,6 +538,7 @@ uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction
|
|
|
529
538
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener();
|
|
530
539
|
uint16_t
|
|
531
540
|
uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available();
|
|
541
|
+
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message();
|
|
532
542
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit();
|
|
533
543
|
uint16_t
|
|
534
544
|
uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_lightning_address();
|
|
@@ -544,6 +554,7 @@ uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_list_payments();
|
|
|
544
554
|
uint16_t
|
|
545
555
|
uniffi_breez_sdk_spark_checksum_method_breezsdk_list_unclaimed_deposits();
|
|
546
556
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay();
|
|
557
|
+
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_withdraw();
|
|
547
558
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_parse();
|
|
548
559
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_lnurl_pay();
|
|
549
560
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_payment();
|
|
@@ -554,6 +565,7 @@ uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address();
|
|
|
554
565
|
uint16_t
|
|
555
566
|
uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener();
|
|
556
567
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment();
|
|
568
|
+
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message();
|
|
557
569
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet();
|
|
558
570
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_wait_for_payment();
|
|
559
571
|
uint16_t uniffi_breez_sdk_spark_checksum_method_paymentobserver_before_send();
|
|
@@ -5622,6 +5634,19 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
5622
5634
|
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_check_lightning_address_available(
|
|
5623
5635
|
rt, thisVal, args, count);
|
|
5624
5636
|
});
|
|
5637
|
+
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_check_message"] =
|
|
5638
|
+
jsi::Function::createFromHostFunction(
|
|
5639
|
+
rt,
|
|
5640
|
+
jsi::PropNameID::forAscii(
|
|
5641
|
+
rt,
|
|
5642
|
+
"ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_check_message"),
|
|
5643
|
+
2,
|
|
5644
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
5645
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5646
|
+
return this
|
|
5647
|
+
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_check_message(
|
|
5648
|
+
rt, thisVal, args, count);
|
|
5649
|
+
});
|
|
5625
5650
|
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_claim_deposit"] =
|
|
5626
5651
|
jsi::Function::createFromHostFunction(
|
|
5627
5652
|
rt,
|
|
@@ -5768,6 +5793,19 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
5768
5793
|
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_pay(
|
|
5769
5794
|
rt, thisVal, args, count);
|
|
5770
5795
|
});
|
|
5796
|
+
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_withdraw"] =
|
|
5797
|
+
jsi::Function::createFromHostFunction(
|
|
5798
|
+
rt,
|
|
5799
|
+
jsi::PropNameID::forAscii(
|
|
5800
|
+
rt,
|
|
5801
|
+
"ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_withdraw"),
|
|
5802
|
+
2,
|
|
5803
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
5804
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5805
|
+
return this
|
|
5806
|
+
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_withdraw(
|
|
5807
|
+
rt, thisVal, args, count);
|
|
5808
|
+
});
|
|
5771
5809
|
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_parse"] =
|
|
5772
5810
|
jsi::Function::createFromHostFunction(
|
|
5773
5811
|
rt,
|
|
@@ -5866,6 +5904,19 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
5866
5904
|
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_send_payment(
|
|
5867
5905
|
rt, thisVal, args, count);
|
|
5868
5906
|
});
|
|
5907
|
+
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_sign_message"] =
|
|
5908
|
+
jsi::Function::createFromHostFunction(
|
|
5909
|
+
rt,
|
|
5910
|
+
jsi::PropNameID::forAscii(
|
|
5911
|
+
rt,
|
|
5912
|
+
"ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_sign_message"),
|
|
5913
|
+
2,
|
|
5914
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
5915
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5916
|
+
return this
|
|
5917
|
+
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_sign_message(
|
|
5918
|
+
rt, thisVal, args, count);
|
|
5919
|
+
});
|
|
5869
5920
|
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_sync_wallet"] =
|
|
5870
5921
|
jsi::Function::createFromHostFunction(
|
|
5871
5922
|
rt,
|
|
@@ -6955,6 +7006,18 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
6955
7006
|
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available(
|
|
6956
7007
|
rt, thisVal, args, count);
|
|
6957
7008
|
});
|
|
7009
|
+
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message"] =
|
|
7010
|
+
jsi::Function::createFromHostFunction(
|
|
7011
|
+
rt,
|
|
7012
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_checksum_"
|
|
7013
|
+
"method_breezsdk_check_message"),
|
|
7014
|
+
0,
|
|
7015
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
7016
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
7017
|
+
return this
|
|
7018
|
+
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message(
|
|
7019
|
+
rt, thisVal, args, count);
|
|
7020
|
+
});
|
|
6958
7021
|
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit"] =
|
|
6959
7022
|
jsi::Function::createFromHostFunction(
|
|
6960
7023
|
rt,
|
|
@@ -7101,6 +7164,18 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
7101
7164
|
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay(
|
|
7102
7165
|
rt, thisVal, args, count);
|
|
7103
7166
|
});
|
|
7167
|
+
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_withdraw"] =
|
|
7168
|
+
jsi::Function::createFromHostFunction(
|
|
7169
|
+
rt,
|
|
7170
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_checksum_"
|
|
7171
|
+
"method_breezsdk_lnurl_withdraw"),
|
|
7172
|
+
0,
|
|
7173
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
7174
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
7175
|
+
return this
|
|
7176
|
+
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_withdraw(
|
|
7177
|
+
rt, thisVal, args, count);
|
|
7178
|
+
});
|
|
7104
7179
|
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_parse"] =
|
|
7105
7180
|
jsi::Function::createFromHostFunction(
|
|
7106
7181
|
rt,
|
|
@@ -7198,6 +7273,18 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
7198
7273
|
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment(
|
|
7199
7274
|
rt, thisVal, args, count);
|
|
7200
7275
|
});
|
|
7276
|
+
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message"] =
|
|
7277
|
+
jsi::Function::createFromHostFunction(
|
|
7278
|
+
rt,
|
|
7279
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_checksum_"
|
|
7280
|
+
"method_breezsdk_sign_message"),
|
|
7281
|
+
0,
|
|
7282
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
7283
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
7284
|
+
return this
|
|
7285
|
+
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message(
|
|
7286
|
+
rt, thisVal, args, count);
|
|
7287
|
+
});
|
|
7201
7288
|
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet"] =
|
|
7202
7289
|
jsi::Function::createFromHostFunction(
|
|
7203
7290
|
rt,
|
|
@@ -7959,6 +8046,18 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
7959
8046
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
7960
8047
|
value);
|
|
7961
8048
|
}
|
|
8049
|
+
jsi::Value NativeBreezSdkSpark::
|
|
8050
|
+
cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_check_message(
|
|
8051
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
8052
|
+
size_t count) {
|
|
8053
|
+
auto value = uniffi_breez_sdk_spark_fn_method_breezsdk_check_message(
|
|
8054
|
+
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
|
|
8055
|
+
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
8056
|
+
args[1]));
|
|
8057
|
+
|
|
8058
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
8059
|
+
value);
|
|
8060
|
+
}
|
|
7962
8061
|
jsi::Value NativeBreezSdkSpark::
|
|
7963
8062
|
cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_claim_deposit(
|
|
7964
8063
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -8095,6 +8194,18 @@ NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_pay(
|
|
|
8095
8194
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
8096
8195
|
value);
|
|
8097
8196
|
}
|
|
8197
|
+
jsi::Value NativeBreezSdkSpark::
|
|
8198
|
+
cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_withdraw(
|
|
8199
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
8200
|
+
size_t count) {
|
|
8201
|
+
auto value = uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_withdraw(
|
|
8202
|
+
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
|
|
8203
|
+
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
8204
|
+
args[1]));
|
|
8205
|
+
|
|
8206
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
8207
|
+
value);
|
|
8208
|
+
}
|
|
8098
8209
|
jsi::Value
|
|
8099
8210
|
NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_parse(
|
|
8100
8211
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -8193,6 +8304,18 @@ NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_send_payment(
|
|
|
8193
8304
|
value);
|
|
8194
8305
|
}
|
|
8195
8306
|
jsi::Value
|
|
8307
|
+
NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_sign_message(
|
|
8308
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
8309
|
+
size_t count) {
|
|
8310
|
+
auto value = uniffi_breez_sdk_spark_fn_method_breezsdk_sign_message(
|
|
8311
|
+
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
|
|
8312
|
+
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
8313
|
+
args[1]));
|
|
8314
|
+
|
|
8315
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
8316
|
+
value);
|
|
8317
|
+
}
|
|
8318
|
+
jsi::Value
|
|
8196
8319
|
NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_sync_wallet(
|
|
8197
8320
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
8198
8321
|
size_t count) {
|
|
@@ -9317,6 +9440,14 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
9317
9440
|
|
|
9318
9441
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9319
9442
|
}
|
|
9443
|
+
jsi::Value NativeBreezSdkSpark::
|
|
9444
|
+
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message(
|
|
9445
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
9446
|
+
size_t count) {
|
|
9447
|
+
auto value = uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message();
|
|
9448
|
+
|
|
9449
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9450
|
+
}
|
|
9320
9451
|
jsi::Value NativeBreezSdkSpark::
|
|
9321
9452
|
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit(
|
|
9322
9453
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -9419,6 +9550,14 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
9419
9550
|
|
|
9420
9551
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9421
9552
|
}
|
|
9553
|
+
jsi::Value NativeBreezSdkSpark::
|
|
9554
|
+
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_withdraw(
|
|
9555
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
9556
|
+
size_t count) {
|
|
9557
|
+
auto value = uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_withdraw();
|
|
9558
|
+
|
|
9559
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9560
|
+
}
|
|
9422
9561
|
jsi::Value
|
|
9423
9562
|
NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_parse(
|
|
9424
9563
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -9488,6 +9627,14 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
9488
9627
|
|
|
9489
9628
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9490
9629
|
}
|
|
9630
|
+
jsi::Value NativeBreezSdkSpark::
|
|
9631
|
+
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message(
|
|
9632
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
9633
|
+
size_t count) {
|
|
9634
|
+
auto value = uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message();
|
|
9635
|
+
|
|
9636
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9637
|
+
}
|
|
9491
9638
|
jsi::Value NativeBreezSdkSpark::
|
|
9492
9639
|
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet(
|
|
9493
9640
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -63,6 +63,9 @@ protected:
|
|
|
63
63
|
cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_check_lightning_address_available(
|
|
64
64
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
65
65
|
size_t count);
|
|
66
|
+
jsi::Value cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_check_message(
|
|
67
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
68
|
+
size_t count);
|
|
66
69
|
jsi::Value cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_claim_deposit(
|
|
67
70
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
68
71
|
size_t count);
|
|
@@ -102,6 +105,9 @@ protected:
|
|
|
102
105
|
jsi::Value cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_pay(
|
|
103
106
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
104
107
|
size_t count);
|
|
108
|
+
jsi::Value cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_withdraw(
|
|
109
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
110
|
+
size_t count);
|
|
105
111
|
jsi::Value cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_parse(
|
|
106
112
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
107
113
|
size_t count);
|
|
@@ -128,6 +134,9 @@ protected:
|
|
|
128
134
|
jsi::Value cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_send_payment(
|
|
129
135
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
130
136
|
size_t count);
|
|
137
|
+
jsi::Value cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_sign_message(
|
|
138
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
139
|
+
size_t count);
|
|
131
140
|
jsi::Value cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_sync_wallet(
|
|
132
141
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
133
142
|
size_t count);
|
|
@@ -422,6 +431,9 @@ protected:
|
|
|
422
431
|
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available(
|
|
423
432
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
424
433
|
size_t count);
|
|
434
|
+
jsi::Value cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message(
|
|
435
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
436
|
+
size_t count);
|
|
425
437
|
jsi::Value cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit(
|
|
426
438
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
427
439
|
size_t count);
|
|
@@ -464,6 +476,9 @@ protected:
|
|
|
464
476
|
jsi::Value cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay(
|
|
465
477
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
466
478
|
size_t count);
|
|
479
|
+
jsi::Value cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_withdraw(
|
|
480
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
481
|
+
size_t count);
|
|
467
482
|
jsi::Value cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_parse(
|
|
468
483
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
469
484
|
size_t count);
|
|
@@ -493,6 +508,9 @@ protected:
|
|
|
493
508
|
jsi::Value cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment(
|
|
494
509
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
495
510
|
size_t count);
|
|
511
|
+
jsi::Value cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message(
|
|
512
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
513
|
+
size_t count);
|
|
496
514
|
jsi::Value cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet(
|
|
497
515
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
498
516
|
size_t count);
|