@breeztech/breez-sdk-spark-react-native 0.7.2 → 0.7.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/cpp/generated/breez_sdk_spark.cpp +385 -129
- package/cpp/generated/breez_sdk_spark.hpp +15 -2
- package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark.js +226 -71
- package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark.js +225 -70
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +29 -23
- 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 +729 -250
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +29 -23
- 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 +729 -250
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/generated/breez_sdk_spark-ffi.ts +40 -21
- package/src/generated/breez_sdk_spark.ts +1397 -532
|
@@ -155,19 +155,19 @@ typedef void (*UniffiCallbackInterfaceExternalSignerMethod6)(
|
|
|
155
155
|
UniffiForeignFutureCompleteRustBuffer uniffi_future_callback,
|
|
156
156
|
uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
|
|
157
157
|
typedef void (*UniffiCallbackInterfaceExternalSignerMethod7)(
|
|
158
|
-
uint64_t uniffi_handle,
|
|
158
|
+
uint64_t uniffi_handle, RustBuffer message, RustBuffer path,
|
|
159
159
|
UniffiForeignFutureCompleteRustBuffer uniffi_future_callback,
|
|
160
160
|
uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
|
|
161
161
|
typedef void (*UniffiCallbackInterfaceExternalSignerMethod8)(
|
|
162
|
-
uint64_t uniffi_handle,
|
|
162
|
+
uint64_t uniffi_handle,
|
|
163
163
|
UniffiForeignFutureCompleteRustBuffer uniffi_future_callback,
|
|
164
164
|
uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
|
|
165
165
|
typedef void (*UniffiCallbackInterfaceExternalSignerMethod9)(
|
|
166
|
-
uint64_t uniffi_handle,
|
|
166
|
+
uint64_t uniffi_handle, RustBuffer id,
|
|
167
167
|
UniffiForeignFutureCompleteRustBuffer uniffi_future_callback,
|
|
168
168
|
uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
|
|
169
169
|
typedef void (*UniffiCallbackInterfaceExternalSignerMethod10)(
|
|
170
|
-
uint64_t uniffi_handle,
|
|
170
|
+
uint64_t uniffi_handle,
|
|
171
171
|
UniffiForeignFutureCompleteRustBuffer uniffi_future_callback,
|
|
172
172
|
uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
|
|
173
173
|
typedef void (*UniffiCallbackInterfaceExternalSignerMethod11)(
|
|
@@ -179,28 +179,32 @@ typedef void (*UniffiCallbackInterfaceExternalSignerMethod12)(
|
|
|
179
179
|
UniffiForeignFutureCompleteRustBuffer uniffi_future_callback,
|
|
180
180
|
uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
|
|
181
181
|
typedef void (*UniffiCallbackInterfaceExternalSignerMethod13)(
|
|
182
|
-
uint64_t uniffi_handle,
|
|
182
|
+
uint64_t uniffi_handle, uint32_t index,
|
|
183
183
|
UniffiForeignFutureCompleteRustBuffer uniffi_future_callback,
|
|
184
184
|
uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
|
|
185
185
|
typedef void (*UniffiCallbackInterfaceExternalSignerMethod14)(
|
|
186
|
+
uint64_t uniffi_handle, RustBuffer signing_key, RustBuffer new_signing_key,
|
|
187
|
+
UniffiForeignFutureCompleteRustBuffer uniffi_future_callback,
|
|
188
|
+
uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
|
|
189
|
+
typedef void (*UniffiCallbackInterfaceExternalSignerMethod15)(
|
|
186
190
|
uint64_t uniffi_handle, RustBuffer secret, uint32_t threshold,
|
|
187
191
|
uint32_t num_shares,
|
|
188
192
|
UniffiForeignFutureCompleteRustBuffer uniffi_future_callback,
|
|
189
193
|
uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
|
|
190
|
-
typedef void (*
|
|
194
|
+
typedef void (*UniffiCallbackInterfaceExternalSignerMethod16)(
|
|
191
195
|
uint64_t uniffi_handle, RustBuffer private_key,
|
|
192
196
|
RustBuffer receiver_public_key,
|
|
193
197
|
UniffiForeignFutureCompleteRustBuffer uniffi_future_callback,
|
|
194
198
|
uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
|
|
195
|
-
typedef void (*
|
|
199
|
+
typedef void (*UniffiCallbackInterfaceExternalSignerMethod17)(
|
|
196
200
|
uint64_t uniffi_handle, RustBuffer private_key,
|
|
197
201
|
UniffiForeignFutureCompleteRustBuffer uniffi_future_callback,
|
|
198
202
|
uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
|
|
199
|
-
typedef void (*
|
|
203
|
+
typedef void (*UniffiCallbackInterfaceExternalSignerMethod18)(
|
|
200
204
|
uint64_t uniffi_handle, RustBuffer request,
|
|
201
205
|
UniffiForeignFutureCompleteRustBuffer uniffi_future_callback,
|
|
202
206
|
uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
|
|
203
|
-
typedef void (*
|
|
207
|
+
typedef void (*UniffiCallbackInterfaceExternalSignerMethod19)(
|
|
204
208
|
uint64_t uniffi_handle, RustBuffer request,
|
|
205
209
|
UniffiForeignFutureCompleteRustBuffer uniffi_future_callback,
|
|
206
210
|
uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
|
|
@@ -345,22 +349,23 @@ typedef struct UniffiVTableCallbackInterfaceExternalSigner {
|
|
|
345
349
|
UniffiCallbackInterfaceExternalSignerMethod4 ecies_encrypt;
|
|
346
350
|
UniffiCallbackInterfaceExternalSignerMethod5 ecies_decrypt;
|
|
347
351
|
UniffiCallbackInterfaceExternalSignerMethod6 sign_hash_schnorr;
|
|
348
|
-
UniffiCallbackInterfaceExternalSignerMethod7
|
|
352
|
+
UniffiCallbackInterfaceExternalSignerMethod7 hmac_sha256;
|
|
353
|
+
UniffiCallbackInterfaceExternalSignerMethod8
|
|
349
354
|
generate_frost_signing_commitments;
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
355
|
+
UniffiCallbackInterfaceExternalSignerMethod9 get_public_key_for_node;
|
|
356
|
+
UniffiCallbackInterfaceExternalSignerMethod10 generate_random_key;
|
|
357
|
+
UniffiCallbackInterfaceExternalSignerMethod11
|
|
353
358
|
get_static_deposit_private_key_source;
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
UniffiCallbackInterfaceExternalSignerMethod15
|
|
359
|
-
encrypt_private_key_for_receiver;
|
|
359
|
+
UniffiCallbackInterfaceExternalSignerMethod12 get_static_deposit_private_key;
|
|
360
|
+
UniffiCallbackInterfaceExternalSignerMethod13 get_static_deposit_public_key;
|
|
361
|
+
UniffiCallbackInterfaceExternalSignerMethod14 subtract_private_keys;
|
|
362
|
+
UniffiCallbackInterfaceExternalSignerMethod15 split_secret;
|
|
360
363
|
UniffiCallbackInterfaceExternalSignerMethod16
|
|
364
|
+
encrypt_private_key_for_receiver;
|
|
365
|
+
UniffiCallbackInterfaceExternalSignerMethod17
|
|
361
366
|
get_public_key_from_private_key_source;
|
|
362
|
-
|
|
363
|
-
|
|
367
|
+
UniffiCallbackInterfaceExternalSignerMethod18 sign_frost;
|
|
368
|
+
UniffiCallbackInterfaceExternalSignerMethod19 aggregate_frost_signatures;
|
|
364
369
|
UniffiCallbackInterfaceFree uniffi_free;
|
|
365
370
|
} UniffiVTableCallbackInterfaceExternalSigner;
|
|
366
371
|
typedef struct UniffiVTableCallbackInterfaceFiatService {
|
|
@@ -454,7 +459,7 @@ uniffi_breez_sdk_spark_fn_method_breezsdk_delete_lightning_address(void *ptr);
|
|
|
454
459
|
/*handle*/ uint64_t
|
|
455
460
|
uniffi_breez_sdk_spark_fn_method_breezsdk_disconnect(void *ptr);
|
|
456
461
|
/*handle*/ uint64_t
|
|
457
|
-
|
|
462
|
+
uniffi_breez_sdk_spark_fn_method_breezsdk_fetch_conversion_limits(
|
|
458
463
|
void *ptr, RustBuffer request);
|
|
459
464
|
/*handle*/ uint64_t
|
|
460
465
|
uniffi_breez_sdk_spark_fn_method_breezsdk_get_info(void *ptr,
|
|
@@ -485,6 +490,9 @@ uniffi_breez_sdk_spark_fn_method_breezsdk_list_payments(void *ptr,
|
|
|
485
490
|
uniffi_breez_sdk_spark_fn_method_breezsdk_list_unclaimed_deposits(
|
|
486
491
|
void *ptr, RustBuffer request);
|
|
487
492
|
/*handle*/ uint64_t
|
|
493
|
+
uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_auth(void *ptr,
|
|
494
|
+
RustBuffer request_data);
|
|
495
|
+
/*handle*/ uint64_t
|
|
488
496
|
uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_pay(void *ptr,
|
|
489
497
|
RustBuffer request);
|
|
490
498
|
/*handle*/ uint64_t
|
|
@@ -552,6 +560,8 @@ uniffi_breez_sdk_spark_fn_method_externalsigner_ecies_decrypt(
|
|
|
552
560
|
/*handle*/ uint64_t
|
|
553
561
|
uniffi_breez_sdk_spark_fn_method_externalsigner_sign_hash_schnorr(
|
|
554
562
|
void *ptr, RustBuffer hash, RustBuffer path);
|
|
563
|
+
/*handle*/ uint64_t uniffi_breez_sdk_spark_fn_method_externalsigner_hmac_sha256(
|
|
564
|
+
void *ptr, RustBuffer message, RustBuffer path);
|
|
555
565
|
/*handle*/ uint64_t
|
|
556
566
|
uniffi_breez_sdk_spark_fn_method_externalsigner_generate_frost_signing_commitments(
|
|
557
567
|
void *ptr);
|
|
@@ -928,7 +938,7 @@ uint16_t
|
|
|
928
938
|
uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_lightning_address();
|
|
929
939
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect();
|
|
930
940
|
uint16_t
|
|
931
|
-
|
|
941
|
+
uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_conversion_limits();
|
|
932
942
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info();
|
|
933
943
|
uint16_t
|
|
934
944
|
uniffi_breez_sdk_spark_checksum_method_breezsdk_get_leaf_optimization_progress();
|
|
@@ -943,6 +953,7 @@ uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_rates();
|
|
|
943
953
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_list_payments();
|
|
944
954
|
uint16_t
|
|
945
955
|
uniffi_breez_sdk_spark_checksum_method_breezsdk_list_unclaimed_deposits();
|
|
956
|
+
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_auth();
|
|
946
957
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay();
|
|
947
958
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_withdraw();
|
|
948
959
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_parse();
|
|
@@ -972,6 +983,7 @@ uint16_t uniffi_breez_sdk_spark_checksum_method_externalsigner_ecies_encrypt();
|
|
|
972
983
|
uint16_t uniffi_breez_sdk_spark_checksum_method_externalsigner_ecies_decrypt();
|
|
973
984
|
uint16_t
|
|
974
985
|
uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_hash_schnorr();
|
|
986
|
+
uint16_t uniffi_breez_sdk_spark_checksum_method_externalsigner_hmac_sha256();
|
|
975
987
|
uint16_t
|
|
976
988
|
uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_frost_signing_commitments();
|
|
977
989
|
uint16_t
|
|
@@ -5479,6 +5491,154 @@ static void cleanup() {
|
|
|
5479
5491
|
namespace uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod7 {
|
|
5480
5492
|
using namespace facebook;
|
|
5481
5493
|
|
|
5494
|
+
// We need to store a lambda in a global so we can call it from
|
|
5495
|
+
// a function pointer. The function pointer is passed to Rust.
|
|
5496
|
+
static std::function<void(uint64_t, RustBuffer, RustBuffer,
|
|
5497
|
+
UniffiForeignFutureCompleteRustBuffer, uint64_t,
|
|
5498
|
+
UniffiForeignFuture *)>
|
|
5499
|
+
rsLambda = nullptr;
|
|
5500
|
+
|
|
5501
|
+
// This is the main body of the callback. It's called from the lambda,
|
|
5502
|
+
// which itself is called from the callback function which is passed to Rust.
|
|
5503
|
+
static void body(jsi::Runtime &rt,
|
|
5504
|
+
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
5505
|
+
std::shared_ptr<jsi::Value> callbackValue,
|
|
5506
|
+
uint64_t rs_uniffiHandle, RustBuffer rs_message,
|
|
5507
|
+
RustBuffer rs_path,
|
|
5508
|
+
UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback,
|
|
5509
|
+
uint64_t rs_uniffiCallbackData,
|
|
5510
|
+
UniffiForeignFuture *rs_uniffiOutReturn) {
|
|
5511
|
+
|
|
5512
|
+
// Convert the arguments from Rust, into jsi::Values.
|
|
5513
|
+
// We'll use the Bridging class to do this…
|
|
5514
|
+
auto js_uniffiHandle =
|
|
5515
|
+
uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, rs_uniffiHandle);
|
|
5516
|
+
auto js_message = uniffi::breez_sdk_spark::Bridging<RustBuffer>::toJs(
|
|
5517
|
+
rt, callInvoker, rs_message);
|
|
5518
|
+
auto js_path = uniffi::breez_sdk_spark::Bridging<RustBuffer>::toJs(
|
|
5519
|
+
rt, callInvoker, rs_path);
|
|
5520
|
+
auto js_uniffiFutureCallback = uniffi::breez_sdk_spark::Bridging<
|
|
5521
|
+
UniffiForeignFutureCompleteRustBuffer>::toJs(rt, callInvoker,
|
|
5522
|
+
rs_uniffiFutureCallback);
|
|
5523
|
+
auto js_uniffiCallbackData = uniffi_jsi::Bridging<uint64_t>::toJs(
|
|
5524
|
+
rt, callInvoker, rs_uniffiCallbackData);
|
|
5525
|
+
|
|
5526
|
+
// Now we are ready to call the callback.
|
|
5527
|
+
// We are already on the JS thread, because this `body` function was
|
|
5528
|
+
// invoked from the CallInvoker.
|
|
5529
|
+
try {
|
|
5530
|
+
// Getting the callback function
|
|
5531
|
+
auto cb = callbackValue->asObject(rt).asFunction(rt);
|
|
5532
|
+
auto uniffiResult = cb.call(rt, js_uniffiHandle, js_message, js_path,
|
|
5533
|
+
js_uniffiFutureCallback, js_uniffiCallbackData);
|
|
5534
|
+
|
|
5535
|
+
// Finally, we need to copy the return value back into the Rust pointer.
|
|
5536
|
+
*rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
|
|
5537
|
+
ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
|
|
5538
|
+
uniffiResult);
|
|
5539
|
+
} catch (const jsi::JSError &error) {
|
|
5540
|
+
std::cout
|
|
5541
|
+
<< "Error in callback UniffiCallbackInterfaceExternalSignerMethod7: "
|
|
5542
|
+
<< error.what() << std::endl;
|
|
5543
|
+
throw error;
|
|
5544
|
+
}
|
|
5545
|
+
}
|
|
5546
|
+
|
|
5547
|
+
static void
|
|
5548
|
+
callback(uint64_t rs_uniffiHandle, RustBuffer rs_message, RustBuffer rs_path,
|
|
5549
|
+
UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback,
|
|
5550
|
+
uint64_t rs_uniffiCallbackData,
|
|
5551
|
+
UniffiForeignFuture *rs_uniffiOutReturn) {
|
|
5552
|
+
// If the runtime has shutdown, then there is no point in trying to
|
|
5553
|
+
// call into Javascript. BUT how do we tell if the runtime has shutdown?
|
|
5554
|
+
//
|
|
5555
|
+
// Answer: the module destructor calls into callback `cleanup` method,
|
|
5556
|
+
// which nulls out the rsLamda.
|
|
5557
|
+
//
|
|
5558
|
+
// If rsLamda is null, then there is no runtime to call into.
|
|
5559
|
+
if (rsLambda == nullptr) {
|
|
5560
|
+
// This only occurs when destructors are calling into Rust free/drop,
|
|
5561
|
+
// which causes the JS callback to be dropped.
|
|
5562
|
+
return;
|
|
5563
|
+
}
|
|
5564
|
+
|
|
5565
|
+
// The runtime, the actual callback jsi::funtion, and the callInvoker
|
|
5566
|
+
// are all in the lambda.
|
|
5567
|
+
rsLambda(rs_uniffiHandle, rs_message, rs_path, rs_uniffiFutureCallback,
|
|
5568
|
+
rs_uniffiCallbackData, rs_uniffiOutReturn);
|
|
5569
|
+
}
|
|
5570
|
+
|
|
5571
|
+
static UniffiCallbackInterfaceExternalSignerMethod7
|
|
5572
|
+
makeCallbackFunction( // uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod7
|
|
5573
|
+
jsi::Runtime &rt,
|
|
5574
|
+
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
5575
|
+
const jsi::Value &value) {
|
|
5576
|
+
if (rsLambda != nullptr) {
|
|
5577
|
+
// `makeCallbackFunction` is called in two circumstances:
|
|
5578
|
+
//
|
|
5579
|
+
// 1. at startup, when initializing callback interface vtables.
|
|
5580
|
+
// 2. when polling futures. This happens at least once per future that is
|
|
5581
|
+
// exposed to Javascript. We know that this is always the same function,
|
|
5582
|
+
// `uniffiFutureContinuationCallback` in `async-rust-calls.ts`.
|
|
5583
|
+
//
|
|
5584
|
+
// We can therefore return the callback function without making anything
|
|
5585
|
+
// new if we've been initialized already.
|
|
5586
|
+
return callback;
|
|
5587
|
+
}
|
|
5588
|
+
auto callbackFunction = value.asObject(rt).asFunction(rt);
|
|
5589
|
+
auto callbackValue = std::make_shared<jsi::Value>(rt, callbackFunction);
|
|
5590
|
+
rsLambda = [&rt, callInvoker, callbackValue](
|
|
5591
|
+
uint64_t rs_uniffiHandle, RustBuffer rs_message,
|
|
5592
|
+
RustBuffer rs_path,
|
|
5593
|
+
UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback,
|
|
5594
|
+
uint64_t rs_uniffiCallbackData,
|
|
5595
|
+
UniffiForeignFuture *rs_uniffiOutReturn) {
|
|
5596
|
+
// We immediately make a lambda which will do the work of transforming the
|
|
5597
|
+
// arguments into JSI values and calling the callback.
|
|
5598
|
+
uniffi_runtime::UniffiCallFunc jsLambda =
|
|
5599
|
+
[callInvoker, callbackValue, rs_uniffiHandle, rs_message, rs_path,
|
|
5600
|
+
rs_uniffiFutureCallback, rs_uniffiCallbackData,
|
|
5601
|
+
rs_uniffiOutReturn](jsi::Runtime &rt) mutable {
|
|
5602
|
+
body(rt, callInvoker, callbackValue, rs_uniffiHandle, rs_message,
|
|
5603
|
+
rs_path, rs_uniffiFutureCallback, rs_uniffiCallbackData,
|
|
5604
|
+
rs_uniffiOutReturn);
|
|
5605
|
+
};
|
|
5606
|
+
// We'll then call that lambda from the callInvoker which will
|
|
5607
|
+
// look after calling it on the correct thread.
|
|
5608
|
+
callInvoker->invokeBlocking(rt, jsLambda);
|
|
5609
|
+
};
|
|
5610
|
+
return callback;
|
|
5611
|
+
}
|
|
5612
|
+
|
|
5613
|
+
// This method is called from the destructor of NativeBreezSdkSpark, which only
|
|
5614
|
+
// happens when the jsi::Runtime is being destroyed.
|
|
5615
|
+
static void cleanup() {
|
|
5616
|
+
// The lambda holds a reference to the the Runtime, so when this is nulled
|
|
5617
|
+
// out, then the pointer will no longer be left dangling.
|
|
5618
|
+
rsLambda = nullptr;
|
|
5619
|
+
}
|
|
5620
|
+
} // namespace
|
|
5621
|
+
// uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod7
|
|
5622
|
+
// Implementation of callback function calling from Rust to JS
|
|
5623
|
+
// CallbackInterfaceExternalSignerMethod8
|
|
5624
|
+
|
|
5625
|
+
// Callback function:
|
|
5626
|
+
// uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod8::UniffiCallbackInterfaceExternalSignerMethod8
|
|
5627
|
+
//
|
|
5628
|
+
// We have the following constraints:
|
|
5629
|
+
// - we need to pass a function pointer to Rust.
|
|
5630
|
+
// - we need a jsi::Runtime and jsi::Function to call into JS.
|
|
5631
|
+
// - function pointers can't store state, so we can't use a lamda.
|
|
5632
|
+
//
|
|
5633
|
+
// For this, we store a lambda as a global, as `rsLambda`. The `callback`
|
|
5634
|
+
// function calls the lambda, which itself calls the `body` which then calls
|
|
5635
|
+
// into JS.
|
|
5636
|
+
//
|
|
5637
|
+
// We then give the `callback` function pointer to Rust which will call the
|
|
5638
|
+
// lambda sometime in the future.
|
|
5639
|
+
namespace uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod8 {
|
|
5640
|
+
using namespace facebook;
|
|
5641
|
+
|
|
5482
5642
|
// We need to store a lambda in a global so we can call it from
|
|
5483
5643
|
// a function pointer. The function pointer is passed to Rust.
|
|
5484
5644
|
static std::function<void(uint64_t, UniffiForeignFutureCompleteRustBuffer,
|
|
@@ -5520,7 +5680,7 @@ static void body(jsi::Runtime &rt,
|
|
|
5520
5680
|
uniffiResult);
|
|
5521
5681
|
} catch (const jsi::JSError &error) {
|
|
5522
5682
|
std::cout
|
|
5523
|
-
<< "Error in callback
|
|
5683
|
+
<< "Error in callback UniffiCallbackInterfaceExternalSignerMethod8: "
|
|
5524
5684
|
<< error.what() << std::endl;
|
|
5525
5685
|
throw error;
|
|
5526
5686
|
}
|
|
@@ -5550,8 +5710,8 @@ callback(uint64_t rs_uniffiHandle,
|
|
|
5550
5710
|
rs_uniffiOutReturn);
|
|
5551
5711
|
}
|
|
5552
5712
|
|
|
5553
|
-
static
|
|
5554
|
-
makeCallbackFunction( // uniffi::breez_sdk_spark::cb::
|
|
5713
|
+
static UniffiCallbackInterfaceExternalSignerMethod8
|
|
5714
|
+
makeCallbackFunction( // uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod8
|
|
5555
5715
|
jsi::Runtime &rt,
|
|
5556
5716
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
5557
5717
|
const jsi::Value &value) {
|
|
@@ -5598,12 +5758,12 @@ static void cleanup() {
|
|
|
5598
5758
|
rsLambda = nullptr;
|
|
5599
5759
|
}
|
|
5600
5760
|
} // namespace
|
|
5601
|
-
// uniffi::breez_sdk_spark::cb::
|
|
5761
|
+
// uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod8
|
|
5602
5762
|
// Implementation of callback function calling from Rust to JS
|
|
5603
|
-
//
|
|
5763
|
+
// CallbackInterfaceExternalSignerMethod9
|
|
5604
5764
|
|
|
5605
5765
|
// Callback function:
|
|
5606
|
-
// uniffi::breez_sdk_spark::cb::
|
|
5766
|
+
// uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod9::UniffiCallbackInterfaceExternalSignerMethod9
|
|
5607
5767
|
//
|
|
5608
5768
|
// We have the following constraints:
|
|
5609
5769
|
// - we need to pass a function pointer to Rust.
|
|
@@ -5616,7 +5776,7 @@ static void cleanup() {
|
|
|
5616
5776
|
//
|
|
5617
5777
|
// We then give the `callback` function pointer to Rust which will call the
|
|
5618
5778
|
// lambda sometime in the future.
|
|
5619
|
-
namespace uniffi::breez_sdk_spark::cb::
|
|
5779
|
+
namespace uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod9 {
|
|
5620
5780
|
using namespace facebook;
|
|
5621
5781
|
|
|
5622
5782
|
// We need to store a lambda in a global so we can call it from
|
|
@@ -5663,7 +5823,7 @@ static void body(jsi::Runtime &rt,
|
|
|
5663
5823
|
uniffiResult);
|
|
5664
5824
|
} catch (const jsi::JSError &error) {
|
|
5665
5825
|
std::cout
|
|
5666
|
-
<< "Error in callback
|
|
5826
|
+
<< "Error in callback UniffiCallbackInterfaceExternalSignerMethod9: "
|
|
5667
5827
|
<< error.what() << std::endl;
|
|
5668
5828
|
throw error;
|
|
5669
5829
|
}
|
|
@@ -5693,8 +5853,8 @@ callback(uint64_t rs_uniffiHandle, RustBuffer rs_id,
|
|
|
5693
5853
|
rs_uniffiCallbackData, rs_uniffiOutReturn);
|
|
5694
5854
|
}
|
|
5695
5855
|
|
|
5696
|
-
static
|
|
5697
|
-
makeCallbackFunction( // uniffi::breez_sdk_spark::cb::
|
|
5856
|
+
static UniffiCallbackInterfaceExternalSignerMethod9
|
|
5857
|
+
makeCallbackFunction( // uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod9
|
|
5698
5858
|
jsi::Runtime &rt,
|
|
5699
5859
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
5700
5860
|
const jsi::Value &value) {
|
|
@@ -5742,12 +5902,12 @@ static void cleanup() {
|
|
|
5742
5902
|
rsLambda = nullptr;
|
|
5743
5903
|
}
|
|
5744
5904
|
} // namespace
|
|
5745
|
-
// uniffi::breez_sdk_spark::cb::
|
|
5905
|
+
// uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod9
|
|
5746
5906
|
// Implementation of callback function calling from Rust to JS
|
|
5747
|
-
//
|
|
5907
|
+
// CallbackInterfaceExternalSignerMethod10
|
|
5748
5908
|
|
|
5749
5909
|
// Callback function:
|
|
5750
|
-
// uniffi::breez_sdk_spark::cb::
|
|
5910
|
+
// uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod10::UniffiCallbackInterfaceExternalSignerMethod10
|
|
5751
5911
|
//
|
|
5752
5912
|
// We have the following constraints:
|
|
5753
5913
|
// - we need to pass a function pointer to Rust.
|
|
@@ -5760,7 +5920,7 @@ static void cleanup() {
|
|
|
5760
5920
|
//
|
|
5761
5921
|
// We then give the `callback` function pointer to Rust which will call the
|
|
5762
5922
|
// lambda sometime in the future.
|
|
5763
|
-
namespace uniffi::breez_sdk_spark::cb::
|
|
5923
|
+
namespace uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod10 {
|
|
5764
5924
|
using namespace facebook;
|
|
5765
5925
|
|
|
5766
5926
|
// We need to store a lambda in a global so we can call it from
|
|
@@ -5804,7 +5964,7 @@ static void body(jsi::Runtime &rt,
|
|
|
5804
5964
|
uniffiResult);
|
|
5805
5965
|
} catch (const jsi::JSError &error) {
|
|
5806
5966
|
std::cout
|
|
5807
|
-
<< "Error in callback
|
|
5967
|
+
<< "Error in callback UniffiCallbackInterfaceExternalSignerMethod10: "
|
|
5808
5968
|
<< error.what() << std::endl;
|
|
5809
5969
|
throw error;
|
|
5810
5970
|
}
|
|
@@ -5834,8 +5994,8 @@ callback(uint64_t rs_uniffiHandle,
|
|
|
5834
5994
|
rs_uniffiOutReturn);
|
|
5835
5995
|
}
|
|
5836
5996
|
|
|
5837
|
-
static
|
|
5838
|
-
makeCallbackFunction( // uniffi::breez_sdk_spark::cb::
|
|
5997
|
+
static UniffiCallbackInterfaceExternalSignerMethod10
|
|
5998
|
+
makeCallbackFunction( // uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod10
|
|
5839
5999
|
jsi::Runtime &rt,
|
|
5840
6000
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
5841
6001
|
const jsi::Value &value) {
|
|
@@ -5882,12 +6042,12 @@ static void cleanup() {
|
|
|
5882
6042
|
rsLambda = nullptr;
|
|
5883
6043
|
}
|
|
5884
6044
|
} // namespace
|
|
5885
|
-
// uniffi::breez_sdk_spark::cb::
|
|
6045
|
+
// uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod10
|
|
5886
6046
|
// Implementation of callback function calling from Rust to JS
|
|
5887
|
-
//
|
|
6047
|
+
// CallbackInterfaceExternalSignerMethod11
|
|
5888
6048
|
|
|
5889
6049
|
// Callback function:
|
|
5890
|
-
// uniffi::breez_sdk_spark::cb::
|
|
6050
|
+
// uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod11::UniffiCallbackInterfaceExternalSignerMethod11
|
|
5891
6051
|
//
|
|
5892
6052
|
// We have the following constraints:
|
|
5893
6053
|
// - we need to pass a function pointer to Rust.
|
|
@@ -5900,7 +6060,7 @@ static void cleanup() {
|
|
|
5900
6060
|
//
|
|
5901
6061
|
// We then give the `callback` function pointer to Rust which will call the
|
|
5902
6062
|
// lambda sometime in the future.
|
|
5903
|
-
namespace uniffi::breez_sdk_spark::cb::
|
|
6063
|
+
namespace uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod11 {
|
|
5904
6064
|
using namespace facebook;
|
|
5905
6065
|
|
|
5906
6066
|
// We need to store a lambda in a global so we can call it from
|
|
@@ -5947,7 +6107,7 @@ static void body(jsi::Runtime &rt,
|
|
|
5947
6107
|
uniffiResult);
|
|
5948
6108
|
} catch (const jsi::JSError &error) {
|
|
5949
6109
|
std::cout
|
|
5950
|
-
<< "Error in callback
|
|
6110
|
+
<< "Error in callback UniffiCallbackInterfaceExternalSignerMethod11: "
|
|
5951
6111
|
<< error.what() << std::endl;
|
|
5952
6112
|
throw error;
|
|
5953
6113
|
}
|
|
@@ -5977,8 +6137,8 @@ callback(uint64_t rs_uniffiHandle, uint32_t rs_index,
|
|
|
5977
6137
|
rs_uniffiCallbackData, rs_uniffiOutReturn);
|
|
5978
6138
|
}
|
|
5979
6139
|
|
|
5980
|
-
static
|
|
5981
|
-
makeCallbackFunction( // uniffi::breez_sdk_spark::cb::
|
|
6140
|
+
static UniffiCallbackInterfaceExternalSignerMethod11
|
|
6141
|
+
makeCallbackFunction( // uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod11
|
|
5982
6142
|
jsi::Runtime &rt,
|
|
5983
6143
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
5984
6144
|
const jsi::Value &value) {
|
|
@@ -6026,12 +6186,12 @@ static void cleanup() {
|
|
|
6026
6186
|
rsLambda = nullptr;
|
|
6027
6187
|
}
|
|
6028
6188
|
} // namespace
|
|
6029
|
-
// uniffi::breez_sdk_spark::cb::
|
|
6189
|
+
// uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod11
|
|
6030
6190
|
// Implementation of callback function calling from Rust to JS
|
|
6031
|
-
//
|
|
6191
|
+
// CallbackInterfaceExternalSignerMethod12
|
|
6032
6192
|
|
|
6033
6193
|
// Callback function:
|
|
6034
|
-
// uniffi::breez_sdk_spark::cb::
|
|
6194
|
+
// uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod12::UniffiCallbackInterfaceExternalSignerMethod12
|
|
6035
6195
|
//
|
|
6036
6196
|
// We have the following constraints:
|
|
6037
6197
|
// - we need to pass a function pointer to Rust.
|
|
@@ -6044,7 +6204,7 @@ static void cleanup() {
|
|
|
6044
6204
|
//
|
|
6045
6205
|
// We then give the `callback` function pointer to Rust which will call the
|
|
6046
6206
|
// lambda sometime in the future.
|
|
6047
|
-
namespace uniffi::breez_sdk_spark::cb::
|
|
6207
|
+
namespace uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod12 {
|
|
6048
6208
|
using namespace facebook;
|
|
6049
6209
|
|
|
6050
6210
|
// We need to store a lambda in a global so we can call it from
|
|
@@ -6091,7 +6251,7 @@ static void body(jsi::Runtime &rt,
|
|
|
6091
6251
|
uniffiResult);
|
|
6092
6252
|
} catch (const jsi::JSError &error) {
|
|
6093
6253
|
std::cout
|
|
6094
|
-
<< "Error in callback
|
|
6254
|
+
<< "Error in callback UniffiCallbackInterfaceExternalSignerMethod12: "
|
|
6095
6255
|
<< error.what() << std::endl;
|
|
6096
6256
|
throw error;
|
|
6097
6257
|
}
|
|
@@ -6121,8 +6281,8 @@ callback(uint64_t rs_uniffiHandle, uint32_t rs_index,
|
|
|
6121
6281
|
rs_uniffiCallbackData, rs_uniffiOutReturn);
|
|
6122
6282
|
}
|
|
6123
6283
|
|
|
6124
|
-
static
|
|
6125
|
-
makeCallbackFunction( // uniffi::breez_sdk_spark::cb::
|
|
6284
|
+
static UniffiCallbackInterfaceExternalSignerMethod12
|
|
6285
|
+
makeCallbackFunction( // uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod12
|
|
6126
6286
|
jsi::Runtime &rt,
|
|
6127
6287
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
6128
6288
|
const jsi::Value &value) {
|
|
@@ -6170,12 +6330,12 @@ static void cleanup() {
|
|
|
6170
6330
|
rsLambda = nullptr;
|
|
6171
6331
|
}
|
|
6172
6332
|
} // namespace
|
|
6173
|
-
// uniffi::breez_sdk_spark::cb::
|
|
6333
|
+
// uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod12
|
|
6174
6334
|
// Implementation of callback function calling from Rust to JS
|
|
6175
|
-
//
|
|
6335
|
+
// CallbackInterfaceExternalSignerMethod13
|
|
6176
6336
|
|
|
6177
6337
|
// Callback function:
|
|
6178
|
-
// uniffi::breez_sdk_spark::cb::
|
|
6338
|
+
// uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod13::UniffiCallbackInterfaceExternalSignerMethod13
|
|
6179
6339
|
//
|
|
6180
6340
|
// We have the following constraints:
|
|
6181
6341
|
// - we need to pass a function pointer to Rust.
|
|
@@ -6188,7 +6348,7 @@ static void cleanup() {
|
|
|
6188
6348
|
//
|
|
6189
6349
|
// We then give the `callback` function pointer to Rust which will call the
|
|
6190
6350
|
// lambda sometime in the future.
|
|
6191
|
-
namespace uniffi::breez_sdk_spark::cb::
|
|
6351
|
+
namespace uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod13 {
|
|
6192
6352
|
using namespace facebook;
|
|
6193
6353
|
|
|
6194
6354
|
// We need to store a lambda in a global so we can call it from
|
|
@@ -6235,7 +6395,7 @@ static void body(jsi::Runtime &rt,
|
|
|
6235
6395
|
uniffiResult);
|
|
6236
6396
|
} catch (const jsi::JSError &error) {
|
|
6237
6397
|
std::cout
|
|
6238
|
-
<< "Error in callback
|
|
6398
|
+
<< "Error in callback UniffiCallbackInterfaceExternalSignerMethod13: "
|
|
6239
6399
|
<< error.what() << std::endl;
|
|
6240
6400
|
throw error;
|
|
6241
6401
|
}
|
|
@@ -6265,8 +6425,8 @@ callback(uint64_t rs_uniffiHandle, uint32_t rs_index,
|
|
|
6265
6425
|
rs_uniffiCallbackData, rs_uniffiOutReturn);
|
|
6266
6426
|
}
|
|
6267
6427
|
|
|
6268
|
-
static
|
|
6269
|
-
makeCallbackFunction( // uniffi::breez_sdk_spark::cb::
|
|
6428
|
+
static UniffiCallbackInterfaceExternalSignerMethod13
|
|
6429
|
+
makeCallbackFunction( // uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod13
|
|
6270
6430
|
jsi::Runtime &rt,
|
|
6271
6431
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
6272
6432
|
const jsi::Value &value) {
|
|
@@ -6314,12 +6474,12 @@ static void cleanup() {
|
|
|
6314
6474
|
rsLambda = nullptr;
|
|
6315
6475
|
}
|
|
6316
6476
|
} // namespace
|
|
6317
|
-
// uniffi::breez_sdk_spark::cb::
|
|
6477
|
+
// uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod13
|
|
6318
6478
|
// Implementation of callback function calling from Rust to JS
|
|
6319
|
-
//
|
|
6479
|
+
// CallbackInterfaceExternalSignerMethod14
|
|
6320
6480
|
|
|
6321
6481
|
// Callback function:
|
|
6322
|
-
// uniffi::breez_sdk_spark::cb::
|
|
6482
|
+
// uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod14::UniffiCallbackInterfaceExternalSignerMethod14
|
|
6323
6483
|
//
|
|
6324
6484
|
// We have the following constraints:
|
|
6325
6485
|
// - we need to pass a function pointer to Rust.
|
|
@@ -6332,7 +6492,7 @@ static void cleanup() {
|
|
|
6332
6492
|
//
|
|
6333
6493
|
// We then give the `callback` function pointer to Rust which will call the
|
|
6334
6494
|
// lambda sometime in the future.
|
|
6335
|
-
namespace uniffi::breez_sdk_spark::cb::
|
|
6495
|
+
namespace uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod14 {
|
|
6336
6496
|
using namespace facebook;
|
|
6337
6497
|
|
|
6338
6498
|
// We need to store a lambda in a global so we can call it from
|
|
@@ -6383,7 +6543,7 @@ static void body(jsi::Runtime &rt,
|
|
|
6383
6543
|
uniffiResult);
|
|
6384
6544
|
} catch (const jsi::JSError &error) {
|
|
6385
6545
|
std::cout
|
|
6386
|
-
<< "Error in callback
|
|
6546
|
+
<< "Error in callback UniffiCallbackInterfaceExternalSignerMethod14: "
|
|
6387
6547
|
<< error.what() << std::endl;
|
|
6388
6548
|
throw error;
|
|
6389
6549
|
}
|
|
@@ -6414,8 +6574,8 @@ callback(uint64_t rs_uniffiHandle, RustBuffer rs_signingKey,
|
|
|
6414
6574
|
rs_uniffiFutureCallback, rs_uniffiCallbackData, rs_uniffiOutReturn);
|
|
6415
6575
|
}
|
|
6416
6576
|
|
|
6417
|
-
static
|
|
6418
|
-
makeCallbackFunction( // uniffi::breez_sdk_spark::cb::
|
|
6577
|
+
static UniffiCallbackInterfaceExternalSignerMethod14
|
|
6578
|
+
makeCallbackFunction( // uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod14
|
|
6419
6579
|
jsi::Runtime &rt,
|
|
6420
6580
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
6421
6581
|
const jsi::Value &value) {
|
|
@@ -6464,12 +6624,12 @@ static void cleanup() {
|
|
|
6464
6624
|
rsLambda = nullptr;
|
|
6465
6625
|
}
|
|
6466
6626
|
} // namespace
|
|
6467
|
-
// uniffi::breez_sdk_spark::cb::
|
|
6627
|
+
// uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod14
|
|
6468
6628
|
// Implementation of callback function calling from Rust to JS
|
|
6469
|
-
//
|
|
6629
|
+
// CallbackInterfaceExternalSignerMethod15
|
|
6470
6630
|
|
|
6471
6631
|
// Callback function:
|
|
6472
|
-
// uniffi::breez_sdk_spark::cb::
|
|
6632
|
+
// uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod15::UniffiCallbackInterfaceExternalSignerMethod15
|
|
6473
6633
|
//
|
|
6474
6634
|
// We have the following constraints:
|
|
6475
6635
|
// - we need to pass a function pointer to Rust.
|
|
@@ -6482,7 +6642,7 @@ static void cleanup() {
|
|
|
6482
6642
|
//
|
|
6483
6643
|
// We then give the `callback` function pointer to Rust which will call the
|
|
6484
6644
|
// lambda sometime in the future.
|
|
6485
|
-
namespace uniffi::breez_sdk_spark::cb::
|
|
6645
|
+
namespace uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod15 {
|
|
6486
6646
|
using namespace facebook;
|
|
6487
6647
|
|
|
6488
6648
|
// We need to store a lambda in a global so we can call it from
|
|
@@ -6535,7 +6695,7 @@ static void body(jsi::Runtime &rt,
|
|
|
6535
6695
|
uniffiResult);
|
|
6536
6696
|
} catch (const jsi::JSError &error) {
|
|
6537
6697
|
std::cout
|
|
6538
|
-
<< "Error in callback
|
|
6698
|
+
<< "Error in callback UniffiCallbackInterfaceExternalSignerMethod15: "
|
|
6539
6699
|
<< error.what() << std::endl;
|
|
6540
6700
|
throw error;
|
|
6541
6701
|
}
|
|
@@ -6566,8 +6726,8 @@ callback(uint64_t rs_uniffiHandle, RustBuffer rs_secret, uint32_t rs_threshold,
|
|
|
6566
6726
|
rs_uniffiFutureCallback, rs_uniffiCallbackData, rs_uniffiOutReturn);
|
|
6567
6727
|
}
|
|
6568
6728
|
|
|
6569
|
-
static
|
|
6570
|
-
makeCallbackFunction( // uniffi::breez_sdk_spark::cb::
|
|
6729
|
+
static UniffiCallbackInterfaceExternalSignerMethod15
|
|
6730
|
+
makeCallbackFunction( // uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod15
|
|
6571
6731
|
jsi::Runtime &rt,
|
|
6572
6732
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
6573
6733
|
const jsi::Value &value) {
|
|
@@ -6616,12 +6776,12 @@ static void cleanup() {
|
|
|
6616
6776
|
rsLambda = nullptr;
|
|
6617
6777
|
}
|
|
6618
6778
|
} // namespace
|
|
6619
|
-
// uniffi::breez_sdk_spark::cb::
|
|
6779
|
+
// uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod15
|
|
6620
6780
|
// Implementation of callback function calling from Rust to JS
|
|
6621
|
-
//
|
|
6781
|
+
// CallbackInterfaceExternalSignerMethod16
|
|
6622
6782
|
|
|
6623
6783
|
// Callback function:
|
|
6624
|
-
// uniffi::breez_sdk_spark::cb::
|
|
6784
|
+
// uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod16::UniffiCallbackInterfaceExternalSignerMethod16
|
|
6625
6785
|
//
|
|
6626
6786
|
// We have the following constraints:
|
|
6627
6787
|
// - we need to pass a function pointer to Rust.
|
|
@@ -6634,7 +6794,7 @@ static void cleanup() {
|
|
|
6634
6794
|
//
|
|
6635
6795
|
// We then give the `callback` function pointer to Rust which will call the
|
|
6636
6796
|
// lambda sometime in the future.
|
|
6637
|
-
namespace uniffi::breez_sdk_spark::cb::
|
|
6797
|
+
namespace uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod16 {
|
|
6638
6798
|
using namespace facebook;
|
|
6639
6799
|
|
|
6640
6800
|
// We need to store a lambda in a global so we can call it from
|
|
@@ -6686,7 +6846,7 @@ static void body(jsi::Runtime &rt,
|
|
|
6686
6846
|
uniffiResult);
|
|
6687
6847
|
} catch (const jsi::JSError &error) {
|
|
6688
6848
|
std::cout
|
|
6689
|
-
<< "Error in callback
|
|
6849
|
+
<< "Error in callback UniffiCallbackInterfaceExternalSignerMethod16: "
|
|
6690
6850
|
<< error.what() << std::endl;
|
|
6691
6851
|
throw error;
|
|
6692
6852
|
}
|
|
@@ -6717,8 +6877,8 @@ callback(uint64_t rs_uniffiHandle, RustBuffer rs_privateKey,
|
|
|
6717
6877
|
rs_uniffiFutureCallback, rs_uniffiCallbackData, rs_uniffiOutReturn);
|
|
6718
6878
|
}
|
|
6719
6879
|
|
|
6720
|
-
static
|
|
6721
|
-
makeCallbackFunction( // uniffi::breez_sdk_spark::cb::
|
|
6880
|
+
static UniffiCallbackInterfaceExternalSignerMethod16
|
|
6881
|
+
makeCallbackFunction( // uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod16
|
|
6722
6882
|
jsi::Runtime &rt,
|
|
6723
6883
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
6724
6884
|
const jsi::Value &value) {
|
|
@@ -6767,12 +6927,12 @@ static void cleanup() {
|
|
|
6767
6927
|
rsLambda = nullptr;
|
|
6768
6928
|
}
|
|
6769
6929
|
} // namespace
|
|
6770
|
-
// uniffi::breez_sdk_spark::cb::
|
|
6930
|
+
// uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod16
|
|
6771
6931
|
// Implementation of callback function calling from Rust to JS
|
|
6772
|
-
//
|
|
6932
|
+
// CallbackInterfaceExternalSignerMethod17
|
|
6773
6933
|
|
|
6774
6934
|
// Callback function:
|
|
6775
|
-
// uniffi::breez_sdk_spark::cb::
|
|
6935
|
+
// uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod17::UniffiCallbackInterfaceExternalSignerMethod17
|
|
6776
6936
|
//
|
|
6777
6937
|
// We have the following constraints:
|
|
6778
6938
|
// - we need to pass a function pointer to Rust.
|
|
@@ -6785,7 +6945,7 @@ static void cleanup() {
|
|
|
6785
6945
|
//
|
|
6786
6946
|
// We then give the `callback` function pointer to Rust which will call the
|
|
6787
6947
|
// lambda sometime in the future.
|
|
6788
|
-
namespace uniffi::breez_sdk_spark::cb::
|
|
6948
|
+
namespace uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod17 {
|
|
6789
6949
|
using namespace facebook;
|
|
6790
6950
|
|
|
6791
6951
|
// We need to store a lambda in a global so we can call it from
|
|
@@ -6832,7 +6992,7 @@ static void body(jsi::Runtime &rt,
|
|
|
6832
6992
|
uniffiResult);
|
|
6833
6993
|
} catch (const jsi::JSError &error) {
|
|
6834
6994
|
std::cout
|
|
6835
|
-
<< "Error in callback
|
|
6995
|
+
<< "Error in callback UniffiCallbackInterfaceExternalSignerMethod17: "
|
|
6836
6996
|
<< error.what() << std::endl;
|
|
6837
6997
|
throw error;
|
|
6838
6998
|
}
|
|
@@ -6862,8 +7022,8 @@ callback(uint64_t rs_uniffiHandle, RustBuffer rs_privateKey,
|
|
|
6862
7022
|
rs_uniffiCallbackData, rs_uniffiOutReturn);
|
|
6863
7023
|
}
|
|
6864
7024
|
|
|
6865
|
-
static
|
|
6866
|
-
makeCallbackFunction( // uniffi::breez_sdk_spark::cb::
|
|
7025
|
+
static UniffiCallbackInterfaceExternalSignerMethod17
|
|
7026
|
+
makeCallbackFunction( // uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod17
|
|
6867
7027
|
jsi::Runtime &rt,
|
|
6868
7028
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
6869
7029
|
const jsi::Value &value) {
|
|
@@ -6911,12 +7071,12 @@ static void cleanup() {
|
|
|
6911
7071
|
rsLambda = nullptr;
|
|
6912
7072
|
}
|
|
6913
7073
|
} // namespace
|
|
6914
|
-
// uniffi::breez_sdk_spark::cb::
|
|
7074
|
+
// uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod17
|
|
6915
7075
|
// Implementation of callback function calling from Rust to JS
|
|
6916
|
-
//
|
|
7076
|
+
// CallbackInterfaceExternalSignerMethod18
|
|
6917
7077
|
|
|
6918
7078
|
// Callback function:
|
|
6919
|
-
// uniffi::breez_sdk_spark::cb::
|
|
7079
|
+
// uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod18::UniffiCallbackInterfaceExternalSignerMethod18
|
|
6920
7080
|
//
|
|
6921
7081
|
// We have the following constraints:
|
|
6922
7082
|
// - we need to pass a function pointer to Rust.
|
|
@@ -6929,7 +7089,7 @@ static void cleanup() {
|
|
|
6929
7089
|
//
|
|
6930
7090
|
// We then give the `callback` function pointer to Rust which will call the
|
|
6931
7091
|
// lambda sometime in the future.
|
|
6932
|
-
namespace uniffi::breez_sdk_spark::cb::
|
|
7092
|
+
namespace uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod18 {
|
|
6933
7093
|
using namespace facebook;
|
|
6934
7094
|
|
|
6935
7095
|
// We need to store a lambda in a global so we can call it from
|
|
@@ -6976,7 +7136,7 @@ static void body(jsi::Runtime &rt,
|
|
|
6976
7136
|
uniffiResult);
|
|
6977
7137
|
} catch (const jsi::JSError &error) {
|
|
6978
7138
|
std::cout
|
|
6979
|
-
<< "Error in callback
|
|
7139
|
+
<< "Error in callback UniffiCallbackInterfaceExternalSignerMethod18: "
|
|
6980
7140
|
<< error.what() << std::endl;
|
|
6981
7141
|
throw error;
|
|
6982
7142
|
}
|
|
@@ -7006,8 +7166,8 @@ callback(uint64_t rs_uniffiHandle, RustBuffer rs_request,
|
|
|
7006
7166
|
rs_uniffiCallbackData, rs_uniffiOutReturn);
|
|
7007
7167
|
}
|
|
7008
7168
|
|
|
7009
|
-
static
|
|
7010
|
-
makeCallbackFunction( // uniffi::breez_sdk_spark::cb::
|
|
7169
|
+
static UniffiCallbackInterfaceExternalSignerMethod18
|
|
7170
|
+
makeCallbackFunction( // uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod18
|
|
7011
7171
|
jsi::Runtime &rt,
|
|
7012
7172
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
7013
7173
|
const jsi::Value &value) {
|
|
@@ -7055,12 +7215,12 @@ static void cleanup() {
|
|
|
7055
7215
|
rsLambda = nullptr;
|
|
7056
7216
|
}
|
|
7057
7217
|
} // namespace
|
|
7058
|
-
// uniffi::breez_sdk_spark::cb::
|
|
7218
|
+
// uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod18
|
|
7059
7219
|
// Implementation of callback function calling from Rust to JS
|
|
7060
|
-
//
|
|
7220
|
+
// CallbackInterfaceExternalSignerMethod19
|
|
7061
7221
|
|
|
7062
7222
|
// Callback function:
|
|
7063
|
-
// uniffi::breez_sdk_spark::cb::
|
|
7223
|
+
// uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod19::UniffiCallbackInterfaceExternalSignerMethod19
|
|
7064
7224
|
//
|
|
7065
7225
|
// We have the following constraints:
|
|
7066
7226
|
// - we need to pass a function pointer to Rust.
|
|
@@ -7073,7 +7233,7 @@ static void cleanup() {
|
|
|
7073
7233
|
//
|
|
7074
7234
|
// We then give the `callback` function pointer to Rust which will call the
|
|
7075
7235
|
// lambda sometime in the future.
|
|
7076
|
-
namespace uniffi::breez_sdk_spark::cb::
|
|
7236
|
+
namespace uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod19 {
|
|
7077
7237
|
using namespace facebook;
|
|
7078
7238
|
|
|
7079
7239
|
// We need to store a lambda in a global so we can call it from
|
|
@@ -7120,7 +7280,7 @@ static void body(jsi::Runtime &rt,
|
|
|
7120
7280
|
uniffiResult);
|
|
7121
7281
|
} catch (const jsi::JSError &error) {
|
|
7122
7282
|
std::cout
|
|
7123
|
-
<< "Error in callback
|
|
7283
|
+
<< "Error in callback UniffiCallbackInterfaceExternalSignerMethod19: "
|
|
7124
7284
|
<< error.what() << std::endl;
|
|
7125
7285
|
throw error;
|
|
7126
7286
|
}
|
|
@@ -7150,8 +7310,8 @@ callback(uint64_t rs_uniffiHandle, RustBuffer rs_request,
|
|
|
7150
7310
|
rs_uniffiCallbackData, rs_uniffiOutReturn);
|
|
7151
7311
|
}
|
|
7152
7312
|
|
|
7153
|
-
static
|
|
7154
|
-
makeCallbackFunction( // uniffi::breez_sdk_spark::cb::
|
|
7313
|
+
static UniffiCallbackInterfaceExternalSignerMethod19
|
|
7314
|
+
makeCallbackFunction( // uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod19
|
|
7155
7315
|
jsi::Runtime &rt,
|
|
7156
7316
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
7157
7317
|
const jsi::Value &value) {
|
|
@@ -7199,7 +7359,7 @@ static void cleanup() {
|
|
|
7199
7359
|
rsLambda = nullptr;
|
|
7200
7360
|
}
|
|
7201
7361
|
} // namespace
|
|
7202
|
-
// uniffi::breez_sdk_spark::cb::
|
|
7362
|
+
// uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod19
|
|
7203
7363
|
// Implementation of callback function calling from Rust to JS
|
|
7204
7364
|
// CallbackInterfaceFiatServiceMethod0
|
|
7205
7365
|
|
|
@@ -11479,47 +11639,50 @@ template <> struct Bridging<UniffiVTableCallbackInterfaceExternalSigner> {
|
|
|
11479
11639
|
rsObject.sign_hash_schnorr = uniffi::breez_sdk_spark::cb::
|
|
11480
11640
|
callbackinterfaceexternalsignermethod6::makeCallbackFunction(
|
|
11481
11641
|
rt, callInvoker, jsObject.getProperty(rt, "signHashSchnorr"));
|
|
11482
|
-
rsObject.
|
|
11642
|
+
rsObject.hmac_sha256 = uniffi::breez_sdk_spark::cb::
|
|
11483
11643
|
callbackinterfaceexternalsignermethod7::makeCallbackFunction(
|
|
11644
|
+
rt, callInvoker, jsObject.getProperty(rt, "hmacSha256"));
|
|
11645
|
+
rsObject.generate_frost_signing_commitments = uniffi::breez_sdk_spark::cb::
|
|
11646
|
+
callbackinterfaceexternalsignermethod8::makeCallbackFunction(
|
|
11484
11647
|
rt, callInvoker,
|
|
11485
11648
|
jsObject.getProperty(rt, "generateFrostSigningCommitments"));
|
|
11486
11649
|
rsObject.get_public_key_for_node = uniffi::breez_sdk_spark::cb::
|
|
11487
|
-
|
|
11650
|
+
callbackinterfaceexternalsignermethod9::makeCallbackFunction(
|
|
11488
11651
|
rt, callInvoker, jsObject.getProperty(rt, "getPublicKeyForNode"));
|
|
11489
11652
|
rsObject.generate_random_key = uniffi::breez_sdk_spark::cb::
|
|
11490
|
-
|
|
11653
|
+
callbackinterfaceexternalsignermethod10::makeCallbackFunction(
|
|
11491
11654
|
rt, callInvoker, jsObject.getProperty(rt, "generateRandomKey"));
|
|
11492
11655
|
rsObject.get_static_deposit_private_key_source = uniffi::breez_sdk_spark::
|
|
11493
|
-
cb::
|
|
11656
|
+
cb::callbackinterfaceexternalsignermethod11::makeCallbackFunction(
|
|
11494
11657
|
rt, callInvoker,
|
|
11495
11658
|
jsObject.getProperty(rt, "getStaticDepositPrivateKeySource"));
|
|
11496
11659
|
rsObject.get_static_deposit_private_key = uniffi::breez_sdk_spark::cb::
|
|
11497
|
-
|
|
11660
|
+
callbackinterfaceexternalsignermethod12::makeCallbackFunction(
|
|
11498
11661
|
rt, callInvoker,
|
|
11499
11662
|
jsObject.getProperty(rt, "getStaticDepositPrivateKey"));
|
|
11500
11663
|
rsObject.get_static_deposit_public_key = uniffi::breez_sdk_spark::cb::
|
|
11501
|
-
|
|
11664
|
+
callbackinterfaceexternalsignermethod13::makeCallbackFunction(
|
|
11502
11665
|
rt, callInvoker,
|
|
11503
11666
|
jsObject.getProperty(rt, "getStaticDepositPublicKey"));
|
|
11504
11667
|
rsObject.subtract_private_keys = uniffi::breez_sdk_spark::cb::
|
|
11505
|
-
|
|
11668
|
+
callbackinterfaceexternalsignermethod14::makeCallbackFunction(
|
|
11506
11669
|
rt, callInvoker, jsObject.getProperty(rt, "subtractPrivateKeys"));
|
|
11507
11670
|
rsObject.split_secret = uniffi::breez_sdk_spark::cb::
|
|
11508
|
-
|
|
11671
|
+
callbackinterfaceexternalsignermethod15::makeCallbackFunction(
|
|
11509
11672
|
rt, callInvoker, jsObject.getProperty(rt, "splitSecret"));
|
|
11510
11673
|
rsObject.encrypt_private_key_for_receiver = uniffi::breez_sdk_spark::cb::
|
|
11511
|
-
|
|
11674
|
+
callbackinterfaceexternalsignermethod16::makeCallbackFunction(
|
|
11512
11675
|
rt, callInvoker,
|
|
11513
11676
|
jsObject.getProperty(rt, "encryptPrivateKeyForReceiver"));
|
|
11514
11677
|
rsObject.get_public_key_from_private_key_source = uniffi::breez_sdk_spark::
|
|
11515
|
-
cb::
|
|
11678
|
+
cb::callbackinterfaceexternalsignermethod17::makeCallbackFunction(
|
|
11516
11679
|
rt, callInvoker,
|
|
11517
11680
|
jsObject.getProperty(rt, "getPublicKeyFromPrivateKeySource"));
|
|
11518
11681
|
rsObject.sign_frost = uniffi::breez_sdk_spark::cb::
|
|
11519
|
-
|
|
11682
|
+
callbackinterfaceexternalsignermethod18::makeCallbackFunction(
|
|
11520
11683
|
rt, callInvoker, jsObject.getProperty(rt, "signFrost"));
|
|
11521
11684
|
rsObject.aggregate_frost_signatures = uniffi::breez_sdk_spark::cb::
|
|
11522
|
-
|
|
11685
|
+
callbackinterfaceexternalsignermethod19::makeCallbackFunction(
|
|
11523
11686
|
rt, callInvoker,
|
|
11524
11687
|
jsObject.getProperty(rt, "aggregateFrostSignatures"));
|
|
11525
11688
|
rsObject.uniffi_free =
|
|
@@ -12044,16 +12207,16 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
12044
12207
|
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_disconnect(
|
|
12045
12208
|
rt, thisVal, args, count);
|
|
12046
12209
|
});
|
|
12047
|
-
props["
|
|
12210
|
+
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_fetch_conversion_"
|
|
12048
12211
|
"limits"] = jsi::Function::createFromHostFunction(
|
|
12049
12212
|
rt,
|
|
12050
12213
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_method_"
|
|
12051
|
-
"
|
|
12214
|
+
"breezsdk_fetch_conversion_limits"),
|
|
12052
12215
|
2,
|
|
12053
12216
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
12054
12217
|
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
12055
12218
|
return this
|
|
12056
|
-
->
|
|
12219
|
+
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_fetch_conversion_limits(
|
|
12057
12220
|
rt, thisVal, args, count);
|
|
12058
12221
|
});
|
|
12059
12222
|
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_get_info"] =
|
|
@@ -12189,6 +12352,18 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
12189
12352
|
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_list_unclaimed_deposits(
|
|
12190
12353
|
rt, thisVal, args, count);
|
|
12191
12354
|
});
|
|
12355
|
+
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_auth"] =
|
|
12356
|
+
jsi::Function::createFromHostFunction(
|
|
12357
|
+
rt,
|
|
12358
|
+
jsi::PropNameID::forAscii(
|
|
12359
|
+
rt, "ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_auth"),
|
|
12360
|
+
2,
|
|
12361
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
12362
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
12363
|
+
return this
|
|
12364
|
+
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_auth(
|
|
12365
|
+
rt, thisVal, args, count);
|
|
12366
|
+
});
|
|
12192
12367
|
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_pay"] =
|
|
12193
12368
|
jsi::Function::createFromHostFunction(
|
|
12194
12369
|
rt,
|
|
@@ -12479,6 +12654,18 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
12479
12654
|
->cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_sign_hash_schnorr(
|
|
12480
12655
|
rt, thisVal, args, count);
|
|
12481
12656
|
});
|
|
12657
|
+
props["ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_hmac_sha256"] =
|
|
12658
|
+
jsi::Function::createFromHostFunction(
|
|
12659
|
+
rt,
|
|
12660
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_method_"
|
|
12661
|
+
"externalsigner_hmac_sha256"),
|
|
12662
|
+
3,
|
|
12663
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
12664
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
12665
|
+
return this
|
|
12666
|
+
->cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_hmac_sha256(
|
|
12667
|
+
rt, thisVal, args, count);
|
|
12668
|
+
});
|
|
12482
12669
|
props["ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_generate_frost_"
|
|
12483
12670
|
"signing_commitments"] = jsi::Function::createFromHostFunction(
|
|
12484
12671
|
rt,
|
|
@@ -14210,17 +14397,16 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
14210
14397
|
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect(
|
|
14211
14398
|
rt, thisVal, args, count);
|
|
14212
14399
|
});
|
|
14213
|
-
props["
|
|
14214
|
-
"
|
|
14400
|
+
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_conversion_"
|
|
14401
|
+
"limits"] = jsi::Function::createFromHostFunction(
|
|
14215
14402
|
rt,
|
|
14216
|
-
jsi::PropNameID::forAscii(rt,
|
|
14217
|
-
|
|
14218
|
-
"breezsdk_fetch_token_conversion_limits"),
|
|
14403
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_checksum_"
|
|
14404
|
+
"method_breezsdk_fetch_conversion_limits"),
|
|
14219
14405
|
0,
|
|
14220
14406
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
14221
14407
|
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
14222
14408
|
return this
|
|
14223
|
-
->
|
|
14409
|
+
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_conversion_limits(
|
|
14224
14410
|
rt, thisVal, args, count);
|
|
14225
14411
|
});
|
|
14226
14412
|
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info"] =
|
|
@@ -14357,6 +14543,18 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
14357
14543
|
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_unclaimed_deposits(
|
|
14358
14544
|
rt, thisVal, args, count);
|
|
14359
14545
|
});
|
|
14546
|
+
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_auth"] =
|
|
14547
|
+
jsi::Function::createFromHostFunction(
|
|
14548
|
+
rt,
|
|
14549
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_checksum_"
|
|
14550
|
+
"method_breezsdk_lnurl_auth"),
|
|
14551
|
+
0,
|
|
14552
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
14553
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
14554
|
+
return this
|
|
14555
|
+
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_auth(
|
|
14556
|
+
rt, thisVal, args, count);
|
|
14557
|
+
});
|
|
14360
14558
|
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay"] =
|
|
14361
14559
|
jsi::Function::createFromHostFunction(
|
|
14362
14560
|
rt,
|
|
@@ -14625,6 +14823,18 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
14625
14823
|
->cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_hash_schnorr(
|
|
14626
14824
|
rt, thisVal, args, count);
|
|
14627
14825
|
});
|
|
14826
|
+
props["ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_hmac_"
|
|
14827
|
+
"sha256"] = jsi::Function::createFromHostFunction(
|
|
14828
|
+
rt,
|
|
14829
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_checksum_"
|
|
14830
|
+
"method_externalsigner_hmac_sha256"),
|
|
14831
|
+
0,
|
|
14832
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
14833
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
14834
|
+
return this
|
|
14835
|
+
->cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_hmac_sha256(
|
|
14836
|
+
rt, thisVal, args, count);
|
|
14837
|
+
});
|
|
14628
14838
|
props["ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_"
|
|
14629
14839
|
"frost_signing_commitments"] = jsi::Function::createFromHostFunction(
|
|
14630
14840
|
rt,
|
|
@@ -15761,6 +15971,9 @@ NativeBreezSdkSpark::~NativeBreezSdkSpark() {
|
|
|
15761
15971
|
// Cleanup for callback function CallbackInterfaceExternalSignerMethod18
|
|
15762
15972
|
uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod18::
|
|
15763
15973
|
cleanup();
|
|
15974
|
+
// Cleanup for callback function CallbackInterfaceExternalSignerMethod19
|
|
15975
|
+
uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsignermethod19::
|
|
15976
|
+
cleanup();
|
|
15764
15977
|
// Cleanup for callback function CallbackInterfaceFiatServiceMethod0
|
|
15765
15978
|
uniffi::breez_sdk_spark::cb::callbackinterfacefiatservicemethod0::cleanup();
|
|
15766
15979
|
// Cleanup for callback function CallbackInterfaceFiatServiceMethod1
|
|
@@ -16211,11 +16424,11 @@ NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_disconnect(
|
|
|
16211
16424
|
value);
|
|
16212
16425
|
}
|
|
16213
16426
|
jsi::Value NativeBreezSdkSpark::
|
|
16214
|
-
|
|
16427
|
+
cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_fetch_conversion_limits(
|
|
16215
16428
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
16216
16429
|
size_t count) {
|
|
16217
16430
|
auto value =
|
|
16218
|
-
|
|
16431
|
+
uniffi_breez_sdk_spark_fn_method_breezsdk_fetch_conversion_limits(
|
|
16219
16432
|
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
|
|
16220
16433
|
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
16221
16434
|
args[1]));
|
|
@@ -16354,6 +16567,18 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
16354
16567
|
value);
|
|
16355
16568
|
}
|
|
16356
16569
|
jsi::Value
|
|
16570
|
+
NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_auth(
|
|
16571
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
16572
|
+
size_t count) {
|
|
16573
|
+
auto value = uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_auth(
|
|
16574
|
+
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
|
|
16575
|
+
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
16576
|
+
args[1]));
|
|
16577
|
+
|
|
16578
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
16579
|
+
value);
|
|
16580
|
+
}
|
|
16581
|
+
jsi::Value
|
|
16357
16582
|
NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_pay(
|
|
16358
16583
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
16359
16584
|
size_t count) {
|
|
@@ -16660,6 +16885,20 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
16660
16885
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
16661
16886
|
value);
|
|
16662
16887
|
}
|
|
16888
|
+
jsi::Value NativeBreezSdkSpark::
|
|
16889
|
+
cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_hmac_sha256(
|
|
16890
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
16891
|
+
size_t count) {
|
|
16892
|
+
auto value = uniffi_breez_sdk_spark_fn_method_externalsigner_hmac_sha256(
|
|
16893
|
+
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
|
|
16894
|
+
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
16895
|
+
args[1]),
|
|
16896
|
+
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
16897
|
+
args[2]));
|
|
16898
|
+
|
|
16899
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
16900
|
+
value);
|
|
16901
|
+
}
|
|
16663
16902
|
jsi::Value NativeBreezSdkSpark::
|
|
16664
16903
|
cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_generate_frost_signing_commitments(
|
|
16665
16904
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -18413,11 +18652,11 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
18413
18652
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
18414
18653
|
}
|
|
18415
18654
|
jsi::Value NativeBreezSdkSpark::
|
|
18416
|
-
|
|
18655
|
+
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_conversion_limits(
|
|
18417
18656
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
18418
18657
|
size_t count) {
|
|
18419
18658
|
auto value =
|
|
18420
|
-
|
|
18659
|
+
uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_conversion_limits();
|
|
18421
18660
|
|
|
18422
18661
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
18423
18662
|
}
|
|
@@ -18517,6 +18756,14 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
18517
18756
|
|
|
18518
18757
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
18519
18758
|
}
|
|
18759
|
+
jsi::Value NativeBreezSdkSpark::
|
|
18760
|
+
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_auth(
|
|
18761
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
18762
|
+
size_t count) {
|
|
18763
|
+
auto value = uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_auth();
|
|
18764
|
+
|
|
18765
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
18766
|
+
}
|
|
18520
18767
|
jsi::Value NativeBreezSdkSpark::
|
|
18521
18768
|
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay(
|
|
18522
18769
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -18708,6 +18955,15 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
18708
18955
|
|
|
18709
18956
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
18710
18957
|
}
|
|
18958
|
+
jsi::Value NativeBreezSdkSpark::
|
|
18959
|
+
cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_hmac_sha256(
|
|
18960
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
18961
|
+
size_t count) {
|
|
18962
|
+
auto value =
|
|
18963
|
+
uniffi_breez_sdk_spark_checksum_method_externalsigner_hmac_sha256();
|
|
18964
|
+
|
|
18965
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
18966
|
+
}
|
|
18711
18967
|
jsi::Value NativeBreezSdkSpark::
|
|
18712
18968
|
cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_frost_signing_commitments(
|
|
18713
18969
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|