@breeztech/breez-sdk-spark-react-native 0.18.0 → 0.19.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/cpp/generated/breez_sdk_spark.cpp +609 -108
- package/cpp/generated/breez_sdk_spark.hpp +52 -0
- package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark.js +161 -14
- 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 +160 -13
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +34 -18
- 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 +1089 -86
- 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 +34 -18
- 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 +1089 -86
- 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 +62 -22
- package/src/generated/breez_sdk_spark.ts +1971 -15
|
@@ -180,23 +180,22 @@ typedef void (*UniffiCallbackInterfaceExternalSparkSignerMethod1)(
|
|
|
180
180
|
UniffiForeignFutureCompleteRustBuffer uniffi_future_callback,
|
|
181
181
|
uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
|
|
182
182
|
typedef void (*UniffiCallbackInterfaceExternalSparkSignerMethod2)(
|
|
183
|
-
uint64_t uniffi_handle,
|
|
184
|
-
|
|
185
|
-
uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
|
|
183
|
+
uint64_t uniffi_handle, int8_t *uniffi_out_return,
|
|
184
|
+
RustCallStatus *rust_call_status);
|
|
186
185
|
typedef void (*UniffiCallbackInterfaceExternalSparkSignerMethod3)(
|
|
187
|
-
uint64_t uniffi_handle,
|
|
186
|
+
uint64_t uniffi_handle, uint32_t index,
|
|
188
187
|
UniffiForeignFutureCompleteRustBuffer uniffi_future_callback,
|
|
189
188
|
uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
|
|
190
189
|
typedef void (*UniffiCallbackInterfaceExternalSparkSignerMethod4)(
|
|
191
|
-
uint64_t uniffi_handle, RustBuffer
|
|
190
|
+
uint64_t uniffi_handle, RustBuffer challenge,
|
|
192
191
|
UniffiForeignFutureCompleteRustBuffer uniffi_future_callback,
|
|
193
192
|
uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
|
|
194
193
|
typedef void (*UniffiCallbackInterfaceExternalSparkSignerMethod5)(
|
|
195
|
-
uint64_t uniffi_handle, RustBuffer
|
|
194
|
+
uint64_t uniffi_handle, RustBuffer message,
|
|
196
195
|
UniffiForeignFutureCompleteRustBuffer uniffi_future_callback,
|
|
197
196
|
uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
|
|
198
197
|
typedef void (*UniffiCallbackInterfaceExternalSparkSignerMethod6)(
|
|
199
|
-
uint64_t uniffi_handle, RustBuffer
|
|
198
|
+
uint64_t uniffi_handle, RustBuffer jobs,
|
|
200
199
|
UniffiForeignFutureCompleteRustBuffer uniffi_future_callback,
|
|
201
200
|
uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
|
|
202
201
|
typedef void (*UniffiCallbackInterfaceExternalSparkSignerMethod7)(
|
|
@@ -231,6 +230,10 @@ typedef void (*UniffiCallbackInterfaceExternalSparkSignerMethod14)(
|
|
|
231
230
|
uint64_t uniffi_handle, RustBuffer request,
|
|
232
231
|
UniffiForeignFutureCompleteRustBuffer uniffi_future_callback,
|
|
233
232
|
uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
|
|
233
|
+
typedef void (*UniffiCallbackInterfaceExternalSparkSignerMethod15)(
|
|
234
|
+
uint64_t uniffi_handle, RustBuffer request,
|
|
235
|
+
UniffiForeignFutureCompleteRustBuffer uniffi_future_callback,
|
|
236
|
+
uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
|
|
234
237
|
typedef void (*UniffiCallbackInterfaceFiatServiceMethod0)(
|
|
235
238
|
uint64_t uniffi_handle,
|
|
236
239
|
UniffiForeignFutureCompleteRustBuffer uniffi_future_callback,
|
|
@@ -444,22 +447,23 @@ typedef struct UniffiVTableCallbackInterfaceExternalSigningSigner {
|
|
|
444
447
|
typedef struct UniffiVTableCallbackInterfaceExternalSparkSigner {
|
|
445
448
|
UniffiCallbackInterfaceExternalSparkSignerMethod0 get_identity_public_key;
|
|
446
449
|
UniffiCallbackInterfaceExternalSparkSignerMethod1 get_public_key_for_leaf;
|
|
447
|
-
UniffiCallbackInterfaceExternalSparkSignerMethod2
|
|
448
|
-
get_static_deposit_public_key;
|
|
450
|
+
UniffiCallbackInterfaceExternalSparkSignerMethod2 is_remote;
|
|
449
451
|
UniffiCallbackInterfaceExternalSparkSignerMethod3
|
|
452
|
+
get_static_deposit_public_key;
|
|
453
|
+
UniffiCallbackInterfaceExternalSparkSignerMethod4
|
|
450
454
|
sign_authentication_challenge;
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
455
|
+
UniffiCallbackInterfaceExternalSparkSignerMethod5 sign_message;
|
|
456
|
+
UniffiCallbackInterfaceExternalSparkSignerMethod6 sign_frost;
|
|
457
|
+
UniffiCallbackInterfaceExternalSparkSignerMethod7 prepare_transfer;
|
|
458
|
+
UniffiCallbackInterfaceExternalSparkSignerMethod8 prepare_claim;
|
|
459
|
+
UniffiCallbackInterfaceExternalSparkSignerMethod9 prepare_lightning_receive;
|
|
460
|
+
UniffiCallbackInterfaceExternalSparkSignerMethod10 prepare_static_deposit;
|
|
461
|
+
UniffiCallbackInterfaceExternalSparkSignerMethod11
|
|
458
462
|
start_static_deposit_refund;
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
+
UniffiCallbackInterfaceExternalSparkSignerMethod12 sign_static_deposit_refund;
|
|
464
|
+
UniffiCallbackInterfaceExternalSparkSignerMethod13 sign_spark_invoice;
|
|
465
|
+
UniffiCallbackInterfaceExternalSparkSignerMethod14 prepare_token_transaction;
|
|
466
|
+
UniffiCallbackInterfaceExternalSparkSignerMethod15
|
|
463
467
|
prepare_static_deposit_claim;
|
|
464
468
|
UniffiCallbackInterfaceFree uniffi_free;
|
|
465
469
|
} UniffiVTableCallbackInterfaceExternalSparkSigner;
|
|
@@ -563,6 +567,12 @@ uniffi_breez_sdk_spark_fn_method_breezsdk_add_event_listener(void *ptr,
|
|
|
563
567
|
uniffi_breez_sdk_spark_fn_method_breezsdk_authorize_lightning_address_transfer(
|
|
564
568
|
void *ptr, RustBuffer request);
|
|
565
569
|
/*handle*/ uint64_t
|
|
570
|
+
uniffi_breez_sdk_spark_fn_method_breezsdk_build_unsigned_lnurl_pay_package(
|
|
571
|
+
void *ptr, RustBuffer request);
|
|
572
|
+
/*handle*/ uint64_t
|
|
573
|
+
uniffi_breez_sdk_spark_fn_method_breezsdk_build_unsigned_transfer_package(
|
|
574
|
+
void *ptr, RustBuffer request);
|
|
575
|
+
/*handle*/ uint64_t
|
|
566
576
|
uniffi_breez_sdk_spark_fn_method_breezsdk_buy_bitcoin(void *ptr,
|
|
567
577
|
RustBuffer request);
|
|
568
578
|
/*handle*/ uint64_t
|
|
@@ -644,6 +654,12 @@ uniffi_breez_sdk_spark_fn_method_breezsdk_prepare_lnurl_pay(void *ptr,
|
|
|
644
654
|
uniffi_breez_sdk_spark_fn_method_breezsdk_prepare_send_payment(
|
|
645
655
|
void *ptr, RustBuffer request);
|
|
646
656
|
/*handle*/ uint64_t
|
|
657
|
+
uniffi_breez_sdk_spark_fn_method_breezsdk_publish_signed_lnurl_pay_package(
|
|
658
|
+
void *ptr, RustBuffer request);
|
|
659
|
+
/*handle*/ uint64_t
|
|
660
|
+
uniffi_breez_sdk_spark_fn_method_breezsdk_publish_signed_transfer_package(
|
|
661
|
+
void *ptr, RustBuffer request);
|
|
662
|
+
/*handle*/ uint64_t
|
|
647
663
|
uniffi_breez_sdk_spark_fn_method_breezsdk_receive_payment(void *ptr,
|
|
648
664
|
RustBuffer request);
|
|
649
665
|
/*handle*/ uint64_t
|
|
@@ -737,6 +753,8 @@ uniffi_breez_sdk_spark_fn_method_externalsparksigner_get_identity_public_key(
|
|
|
737
753
|
/*handle*/ uint64_t
|
|
738
754
|
uniffi_breez_sdk_spark_fn_method_externalsparksigner_get_public_key_for_leaf(
|
|
739
755
|
void *ptr, RustBuffer leaf_id);
|
|
756
|
+
int8_t uniffi_breez_sdk_spark_fn_method_externalsparksigner_is_remote(
|
|
757
|
+
void *ptr, RustCallStatus *uniffi_out_err);
|
|
740
758
|
/*handle*/ uint64_t
|
|
741
759
|
uniffi_breez_sdk_spark_fn_method_externalsparksigner_get_static_deposit_public_key(
|
|
742
760
|
void *ptr, uint32_t index);
|
|
@@ -904,6 +922,9 @@ uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_payment_observer(
|
|
|
904
922
|
uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_rest_chain_service(
|
|
905
923
|
void *ptr, RustBuffer url, RustBuffer api_type, RustBuffer credentials);
|
|
906
924
|
/*handle*/ uint64_t
|
|
925
|
+
uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_session_store(
|
|
926
|
+
void *ptr, void *session_store);
|
|
927
|
+
/*handle*/ uint64_t
|
|
907
928
|
uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_shared_context(void *ptr,
|
|
908
929
|
void *context);
|
|
909
930
|
/*handle*/ uint64_t
|
|
@@ -1076,6 +1097,8 @@ RustBuffer uniffi_breez_sdk_spark_fn_func_default_external_signers(
|
|
|
1076
1097
|
RustBuffer account_number, RustCallStatus *uniffi_out_err);
|
|
1077
1098
|
RustBuffer uniffi_breez_sdk_spark_fn_func_default_server_config(
|
|
1078
1099
|
RustBuffer network, RustCallStatus *uniffi_out_err);
|
|
1100
|
+
/*handle*/ uint64_t uniffi_breez_sdk_spark_fn_func_default_session_store(
|
|
1101
|
+
void *backend, RustBuffer network, RustBuffer identity);
|
|
1079
1102
|
void *
|
|
1080
1103
|
uniffi_breez_sdk_spark_fn_func_default_storage(RustBuffer storage_dir,
|
|
1081
1104
|
RustCallStatus *uniffi_out_err);
|
|
@@ -1226,6 +1249,7 @@ uint16_t uniffi_breez_sdk_spark_checksum_func_custom_storage();
|
|
|
1226
1249
|
uint16_t uniffi_breez_sdk_spark_checksum_func_default_config();
|
|
1227
1250
|
uint16_t uniffi_breez_sdk_spark_checksum_func_default_external_signers();
|
|
1228
1251
|
uint16_t uniffi_breez_sdk_spark_checksum_func_default_server_config();
|
|
1252
|
+
uint16_t uniffi_breez_sdk_spark_checksum_func_default_session_store();
|
|
1229
1253
|
uint16_t uniffi_breez_sdk_spark_checksum_func_default_storage();
|
|
1230
1254
|
uint16_t uniffi_breez_sdk_spark_checksum_func_get_spark_status();
|
|
1231
1255
|
uint16_t uniffi_breez_sdk_spark_checksum_func_init_logging();
|
|
@@ -1245,6 +1269,10 @@ uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_add_contact();
|
|
|
1245
1269
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener();
|
|
1246
1270
|
uint16_t
|
|
1247
1271
|
uniffi_breez_sdk_spark_checksum_method_breezsdk_authorize_lightning_address_transfer();
|
|
1272
|
+
uint16_t
|
|
1273
|
+
uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_lnurl_pay_package();
|
|
1274
|
+
uint16_t
|
|
1275
|
+
uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_transfer_package();
|
|
1248
1276
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_buy_bitcoin();
|
|
1249
1277
|
uint16_t
|
|
1250
1278
|
uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available();
|
|
@@ -1282,6 +1310,10 @@ uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_optimize_leaves();
|
|
|
1282
1310
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_parse();
|
|
1283
1311
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_lnurl_pay();
|
|
1284
1312
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_payment();
|
|
1313
|
+
uint16_t
|
|
1314
|
+
uniffi_breez_sdk_spark_checksum_method_breezsdk_publish_signed_lnurl_pay_package();
|
|
1315
|
+
uint16_t
|
|
1316
|
+
uniffi_breez_sdk_spark_checksum_method_breezsdk_publish_signed_transfer_package();
|
|
1285
1317
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment();
|
|
1286
1318
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_recommended_fees();
|
|
1287
1319
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit();
|
|
@@ -1324,6 +1356,7 @@ uint16_t
|
|
|
1324
1356
|
uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_identity_public_key();
|
|
1325
1357
|
uint16_t
|
|
1326
1358
|
uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_public_key_for_leaf();
|
|
1359
|
+
uint16_t uniffi_breez_sdk_spark_checksum_method_externalsparksigner_is_remote();
|
|
1327
1360
|
uint16_t
|
|
1328
1361
|
uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_static_deposit_public_key();
|
|
1329
1362
|
uint16_t
|
|
@@ -1384,6 +1417,7 @@ uint16_t
|
|
|
1384
1417
|
uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_payment_observer();
|
|
1385
1418
|
uint16_t
|
|
1386
1419
|
uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_rest_chain_service();
|
|
1420
|
+
uint16_t uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_session_store();
|
|
1387
1421
|
uint16_t
|
|
1388
1422
|
uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_shared_context();
|
|
1389
1423
|
uint16_t uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage();
|
|
@@ -7240,32 +7274,21 @@ using namespace facebook;
|
|
|
7240
7274
|
|
|
7241
7275
|
// We need to store a lambda in a global so we can call it from
|
|
7242
7276
|
// a function pointer. The function pointer is passed to Rust.
|
|
7243
|
-
static std::function<void(uint64_t,
|
|
7244
|
-
|
|
7245
|
-
UniffiForeignFuture *)>
|
|
7246
|
-
rsLambda = nullptr;
|
|
7277
|
+
static std::function<void(uint64_t, int8_t *, RustCallStatus *)> rsLambda =
|
|
7278
|
+
nullptr;
|
|
7247
7279
|
|
|
7248
7280
|
// This is the main body of the callback. It's called from the lambda,
|
|
7249
7281
|
// which itself is called from the callback function which is passed to Rust.
|
|
7250
7282
|
static void body(jsi::Runtime &rt,
|
|
7251
7283
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
7252
7284
|
std::shared_ptr<jsi::Value> callbackValue,
|
|
7253
|
-
uint64_t rs_uniffiHandle,
|
|
7254
|
-
|
|
7255
|
-
uint64_t rs_uniffiCallbackData,
|
|
7256
|
-
UniffiForeignFuture *rs_uniffiOutReturn) {
|
|
7285
|
+
uint64_t rs_uniffiHandle, int8_t *rs_uniffiOutReturn,
|
|
7286
|
+
RustCallStatus *uniffi_call_status) {
|
|
7257
7287
|
|
|
7258
7288
|
// Convert the arguments from Rust, into jsi::Values.
|
|
7259
7289
|
// We'll use the Bridging class to do this…
|
|
7260
7290
|
auto js_uniffiHandle =
|
|
7261
7291
|
uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, rs_uniffiHandle);
|
|
7262
|
-
auto js_index =
|
|
7263
|
-
uniffi_jsi::Bridging<uint32_t>::toJs(rt, callInvoker, rs_index);
|
|
7264
|
-
auto js_uniffiFutureCallback = uniffi::breez_sdk_spark::Bridging<
|
|
7265
|
-
UniffiForeignFutureCompleteRustBuffer>::toJs(rt, callInvoker,
|
|
7266
|
-
rs_uniffiFutureCallback);
|
|
7267
|
-
auto js_uniffiCallbackData = uniffi_jsi::Bridging<uint64_t>::toJs(
|
|
7268
|
-
rt, callInvoker, rs_uniffiCallbackData);
|
|
7269
7292
|
|
|
7270
7293
|
// Now we are ready to call the callback.
|
|
7271
7294
|
// We are already on the JS thread, because this `body` function was
|
|
@@ -7273,14 +7296,22 @@ static void body(jsi::Runtime &rt,
|
|
|
7273
7296
|
try {
|
|
7274
7297
|
// Getting the callback function
|
|
7275
7298
|
auto cb = callbackValue->asObject(rt).asFunction(rt);
|
|
7276
|
-
auto uniffiResult = cb.call(rt, js_uniffiHandle
|
|
7277
|
-
js_uniffiFutureCallback, js_uniffiCallbackData);
|
|
7299
|
+
auto uniffiResult = cb.call(rt, js_uniffiHandle);
|
|
7278
7300
|
|
|
7279
|
-
//
|
|
7301
|
+
// Now copy the result back from JS into the RustCallStatus object.
|
|
7302
|
+
uniffi::breez_sdk_spark::Bridging<RustCallStatus>::copyFromJs(
|
|
7303
|
+
rt, callInvoker, uniffiResult, uniffi_call_status);
|
|
7304
|
+
|
|
7305
|
+
if (uniffi_call_status->code != UNIFFI_CALL_STATUS_OK) {
|
|
7306
|
+
// The JS callback finished abnormally, so we cannot retrieve the return
|
|
7307
|
+
// value.
|
|
7308
|
+
return;
|
|
7309
|
+
}
|
|
7310
|
+
|
|
7311
|
+
// return type is MutReference(Int8)
|
|
7280
7312
|
// Finally, we need to copy the return value back into the Rust pointer.
|
|
7281
|
-
*rs_uniffiOutReturn =
|
|
7282
|
-
|
|
7283
|
-
rt, callInvoker, uniffiResult);
|
|
7313
|
+
*rs_uniffiOutReturn = uniffi_jsi::Bridging<ReferenceHolder<int8_t>>::fromJs(
|
|
7314
|
+
rt, callInvoker, uniffiResult);
|
|
7284
7315
|
} catch (const jsi::JSError &error) {
|
|
7285
7316
|
std::cout << "Error in callback "
|
|
7286
7317
|
"UniffiCallbackInterfaceExternalSparkSignerMethod2: "
|
|
@@ -7289,11 +7320,8 @@ static void body(jsi::Runtime &rt,
|
|
|
7289
7320
|
}
|
|
7290
7321
|
}
|
|
7291
7322
|
|
|
7292
|
-
static void
|
|
7293
|
-
|
|
7294
|
-
UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback,
|
|
7295
|
-
uint64_t rs_uniffiCallbackData,
|
|
7296
|
-
UniffiForeignFuture *rs_uniffiOutReturn) {
|
|
7323
|
+
static void callback(uint64_t rs_uniffiHandle, int8_t *rs_uniffiOutReturn,
|
|
7324
|
+
RustCallStatus *uniffi_call_status) {
|
|
7297
7325
|
// If the runtime has shutdown, then there is no point in trying to
|
|
7298
7326
|
// call into Javascript. BUT how do we tell if the runtime has shutdown?
|
|
7299
7327
|
//
|
|
@@ -7309,8 +7337,7 @@ callback(uint64_t rs_uniffiHandle, uint32_t rs_index,
|
|
|
7309
7337
|
|
|
7310
7338
|
// The runtime, the actual callback jsi::funtion, and the callInvoker
|
|
7311
7339
|
// are all in the lambda.
|
|
7312
|
-
rsLambda(rs_uniffiHandle,
|
|
7313
|
-
rs_uniffiCallbackData, rs_uniffiOutReturn);
|
|
7340
|
+
rsLambda(rs_uniffiHandle, rs_uniffiOutReturn, uniffi_call_status);
|
|
7314
7341
|
}
|
|
7315
7342
|
|
|
7316
7343
|
static UniffiCallbackInterfaceExternalSparkSignerMethod2
|
|
@@ -7333,19 +7360,15 @@ makeCallbackFunction( // uniffi::breez_sdk_spark::cb::callbackinterfaceexternals
|
|
|
7333
7360
|
auto callbackFunction = value.asObject(rt).asFunction(rt);
|
|
7334
7361
|
auto callbackValue = std::make_shared<jsi::Value>(rt, callbackFunction);
|
|
7335
7362
|
rsLambda = [&rt, callInvoker, callbackValue](
|
|
7336
|
-
uint64_t rs_uniffiHandle,
|
|
7337
|
-
|
|
7338
|
-
uint64_t rs_uniffiCallbackData,
|
|
7339
|
-
UniffiForeignFuture *rs_uniffiOutReturn) {
|
|
7363
|
+
uint64_t rs_uniffiHandle, int8_t *rs_uniffiOutReturn,
|
|
7364
|
+
RustCallStatus *uniffi_call_status) {
|
|
7340
7365
|
// We immediately make a lambda which will do the work of transforming the
|
|
7341
7366
|
// arguments into JSI values and calling the callback.
|
|
7342
7367
|
uniffi_runtime::UniffiCallFunc jsLambda =
|
|
7343
|
-
[callInvoker, callbackValue, rs_uniffiHandle,
|
|
7344
|
-
|
|
7345
|
-
|
|
7346
|
-
|
|
7347
|
-
rs_uniffiFutureCallback, rs_uniffiCallbackData,
|
|
7348
|
-
rs_uniffiOutReturn);
|
|
7368
|
+
[callInvoker, callbackValue, rs_uniffiHandle, rs_uniffiOutReturn,
|
|
7369
|
+
uniffi_call_status](jsi::Runtime &rt) mutable {
|
|
7370
|
+
body(rt, callInvoker, callbackValue, rs_uniffiHandle,
|
|
7371
|
+
rs_uniffiOutReturn, uniffi_call_status);
|
|
7349
7372
|
};
|
|
7350
7373
|
// We'll then call that lambda from the callInvoker which will
|
|
7351
7374
|
// look after calling it on the correct thread.
|
|
@@ -7386,7 +7409,7 @@ using namespace facebook;
|
|
|
7386
7409
|
|
|
7387
7410
|
// We need to store a lambda in a global so we can call it from
|
|
7388
7411
|
// a function pointer. The function pointer is passed to Rust.
|
|
7389
|
-
static std::function<void(uint64_t,
|
|
7412
|
+
static std::function<void(uint64_t, uint32_t,
|
|
7390
7413
|
UniffiForeignFutureCompleteRustBuffer, uint64_t,
|
|
7391
7414
|
UniffiForeignFuture *)>
|
|
7392
7415
|
rsLambda = nullptr;
|
|
@@ -7396,7 +7419,7 @@ static std::function<void(uint64_t, RustBuffer,
|
|
|
7396
7419
|
static void body(jsi::Runtime &rt,
|
|
7397
7420
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
7398
7421
|
std::shared_ptr<jsi::Value> callbackValue,
|
|
7399
|
-
uint64_t rs_uniffiHandle,
|
|
7422
|
+
uint64_t rs_uniffiHandle, uint32_t rs_index,
|
|
7400
7423
|
UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback,
|
|
7401
7424
|
uint64_t rs_uniffiCallbackData,
|
|
7402
7425
|
UniffiForeignFuture *rs_uniffiOutReturn) {
|
|
@@ -7405,8 +7428,8 @@ static void body(jsi::Runtime &rt,
|
|
|
7405
7428
|
// We'll use the Bridging class to do this…
|
|
7406
7429
|
auto js_uniffiHandle =
|
|
7407
7430
|
uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, rs_uniffiHandle);
|
|
7408
|
-
auto
|
|
7409
|
-
rt, callInvoker,
|
|
7431
|
+
auto js_index =
|
|
7432
|
+
uniffi_jsi::Bridging<uint32_t>::toJs(rt, callInvoker, rs_index);
|
|
7410
7433
|
auto js_uniffiFutureCallback = uniffi::breez_sdk_spark::Bridging<
|
|
7411
7434
|
UniffiForeignFutureCompleteRustBuffer>::toJs(rt, callInvoker,
|
|
7412
7435
|
rs_uniffiFutureCallback);
|
|
@@ -7419,7 +7442,7 @@ static void body(jsi::Runtime &rt,
|
|
|
7419
7442
|
try {
|
|
7420
7443
|
// Getting the callback function
|
|
7421
7444
|
auto cb = callbackValue->asObject(rt).asFunction(rt);
|
|
7422
|
-
auto uniffiResult = cb.call(rt, js_uniffiHandle,
|
|
7445
|
+
auto uniffiResult = cb.call(rt, js_uniffiHandle, js_index,
|
|
7423
7446
|
js_uniffiFutureCallback, js_uniffiCallbackData);
|
|
7424
7447
|
|
|
7425
7448
|
// return type is MutReference(Struct("ForeignFuture"))
|
|
@@ -7436,7 +7459,7 @@ static void body(jsi::Runtime &rt,
|
|
|
7436
7459
|
}
|
|
7437
7460
|
|
|
7438
7461
|
static void
|
|
7439
|
-
callback(uint64_t rs_uniffiHandle,
|
|
7462
|
+
callback(uint64_t rs_uniffiHandle, uint32_t rs_index,
|
|
7440
7463
|
UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback,
|
|
7441
7464
|
uint64_t rs_uniffiCallbackData,
|
|
7442
7465
|
UniffiForeignFuture *rs_uniffiOutReturn) {
|
|
@@ -7455,7 +7478,7 @@ callback(uint64_t rs_uniffiHandle, RustBuffer rs_challenge,
|
|
|
7455
7478
|
|
|
7456
7479
|
// The runtime, the actual callback jsi::funtion, and the callInvoker
|
|
7457
7480
|
// are all in the lambda.
|
|
7458
|
-
rsLambda(rs_uniffiHandle,
|
|
7481
|
+
rsLambda(rs_uniffiHandle, rs_index, rs_uniffiFutureCallback,
|
|
7459
7482
|
rs_uniffiCallbackData, rs_uniffiOutReturn);
|
|
7460
7483
|
}
|
|
7461
7484
|
|
|
@@ -7479,17 +7502,17 @@ makeCallbackFunction( // uniffi::breez_sdk_spark::cb::callbackinterfaceexternals
|
|
|
7479
7502
|
auto callbackFunction = value.asObject(rt).asFunction(rt);
|
|
7480
7503
|
auto callbackValue = std::make_shared<jsi::Value>(rt, callbackFunction);
|
|
7481
7504
|
rsLambda = [&rt, callInvoker, callbackValue](
|
|
7482
|
-
uint64_t rs_uniffiHandle,
|
|
7505
|
+
uint64_t rs_uniffiHandle, uint32_t rs_index,
|
|
7483
7506
|
UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback,
|
|
7484
7507
|
uint64_t rs_uniffiCallbackData,
|
|
7485
7508
|
UniffiForeignFuture *rs_uniffiOutReturn) {
|
|
7486
7509
|
// We immediately make a lambda which will do the work of transforming the
|
|
7487
7510
|
// arguments into JSI values and calling the callback.
|
|
7488
7511
|
uniffi_runtime::UniffiCallFunc jsLambda =
|
|
7489
|
-
[callInvoker, callbackValue, rs_uniffiHandle,
|
|
7512
|
+
[callInvoker, callbackValue, rs_uniffiHandle, rs_index,
|
|
7490
7513
|
rs_uniffiFutureCallback, rs_uniffiCallbackData,
|
|
7491
7514
|
rs_uniffiOutReturn](jsi::Runtime &rt) mutable {
|
|
7492
|
-
body(rt, callInvoker, callbackValue, rs_uniffiHandle,
|
|
7515
|
+
body(rt, callInvoker, callbackValue, rs_uniffiHandle, rs_index,
|
|
7493
7516
|
rs_uniffiFutureCallback, rs_uniffiCallbackData,
|
|
7494
7517
|
rs_uniffiOutReturn);
|
|
7495
7518
|
};
|
|
@@ -7542,7 +7565,7 @@ static std::function<void(uint64_t, RustBuffer,
|
|
|
7542
7565
|
static void body(jsi::Runtime &rt,
|
|
7543
7566
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
7544
7567
|
std::shared_ptr<jsi::Value> callbackValue,
|
|
7545
|
-
uint64_t rs_uniffiHandle, RustBuffer
|
|
7568
|
+
uint64_t rs_uniffiHandle, RustBuffer rs_challenge,
|
|
7546
7569
|
UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback,
|
|
7547
7570
|
uint64_t rs_uniffiCallbackData,
|
|
7548
7571
|
UniffiForeignFuture *rs_uniffiOutReturn) {
|
|
@@ -7551,8 +7574,8 @@ static void body(jsi::Runtime &rt,
|
|
|
7551
7574
|
// We'll use the Bridging class to do this…
|
|
7552
7575
|
auto js_uniffiHandle =
|
|
7553
7576
|
uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, rs_uniffiHandle);
|
|
7554
|
-
auto
|
|
7555
|
-
rt, callInvoker,
|
|
7577
|
+
auto js_challenge = uniffi::breez_sdk_spark::Bridging<RustBuffer>::toJs(
|
|
7578
|
+
rt, callInvoker, rs_challenge);
|
|
7556
7579
|
auto js_uniffiFutureCallback = uniffi::breez_sdk_spark::Bridging<
|
|
7557
7580
|
UniffiForeignFutureCompleteRustBuffer>::toJs(rt, callInvoker,
|
|
7558
7581
|
rs_uniffiFutureCallback);
|
|
@@ -7565,7 +7588,7 @@ static void body(jsi::Runtime &rt,
|
|
|
7565
7588
|
try {
|
|
7566
7589
|
// Getting the callback function
|
|
7567
7590
|
auto cb = callbackValue->asObject(rt).asFunction(rt);
|
|
7568
|
-
auto uniffiResult = cb.call(rt, js_uniffiHandle,
|
|
7591
|
+
auto uniffiResult = cb.call(rt, js_uniffiHandle, js_challenge,
|
|
7569
7592
|
js_uniffiFutureCallback, js_uniffiCallbackData);
|
|
7570
7593
|
|
|
7571
7594
|
// return type is MutReference(Struct("ForeignFuture"))
|
|
@@ -7582,7 +7605,7 @@ static void body(jsi::Runtime &rt,
|
|
|
7582
7605
|
}
|
|
7583
7606
|
|
|
7584
7607
|
static void
|
|
7585
|
-
callback(uint64_t rs_uniffiHandle, RustBuffer
|
|
7608
|
+
callback(uint64_t rs_uniffiHandle, RustBuffer rs_challenge,
|
|
7586
7609
|
UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback,
|
|
7587
7610
|
uint64_t rs_uniffiCallbackData,
|
|
7588
7611
|
UniffiForeignFuture *rs_uniffiOutReturn) {
|
|
@@ -7601,7 +7624,7 @@ callback(uint64_t rs_uniffiHandle, RustBuffer rs_message,
|
|
|
7601
7624
|
|
|
7602
7625
|
// The runtime, the actual callback jsi::funtion, and the callInvoker
|
|
7603
7626
|
// are all in the lambda.
|
|
7604
|
-
rsLambda(rs_uniffiHandle,
|
|
7627
|
+
rsLambda(rs_uniffiHandle, rs_challenge, rs_uniffiFutureCallback,
|
|
7605
7628
|
rs_uniffiCallbackData, rs_uniffiOutReturn);
|
|
7606
7629
|
}
|
|
7607
7630
|
|
|
@@ -7625,17 +7648,17 @@ makeCallbackFunction( // uniffi::breez_sdk_spark::cb::callbackinterfaceexternals
|
|
|
7625
7648
|
auto callbackFunction = value.asObject(rt).asFunction(rt);
|
|
7626
7649
|
auto callbackValue = std::make_shared<jsi::Value>(rt, callbackFunction);
|
|
7627
7650
|
rsLambda = [&rt, callInvoker, callbackValue](
|
|
7628
|
-
uint64_t rs_uniffiHandle, RustBuffer
|
|
7651
|
+
uint64_t rs_uniffiHandle, RustBuffer rs_challenge,
|
|
7629
7652
|
UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback,
|
|
7630
7653
|
uint64_t rs_uniffiCallbackData,
|
|
7631
7654
|
UniffiForeignFuture *rs_uniffiOutReturn) {
|
|
7632
7655
|
// We immediately make a lambda which will do the work of transforming the
|
|
7633
7656
|
// arguments into JSI values and calling the callback.
|
|
7634
7657
|
uniffi_runtime::UniffiCallFunc jsLambda =
|
|
7635
|
-
[callInvoker, callbackValue, rs_uniffiHandle,
|
|
7658
|
+
[callInvoker, callbackValue, rs_uniffiHandle, rs_challenge,
|
|
7636
7659
|
rs_uniffiFutureCallback, rs_uniffiCallbackData,
|
|
7637
7660
|
rs_uniffiOutReturn](jsi::Runtime &rt) mutable {
|
|
7638
|
-
body(rt, callInvoker, callbackValue, rs_uniffiHandle,
|
|
7661
|
+
body(rt, callInvoker, callbackValue, rs_uniffiHandle, rs_challenge,
|
|
7639
7662
|
rs_uniffiFutureCallback, rs_uniffiCallbackData,
|
|
7640
7663
|
rs_uniffiOutReturn);
|
|
7641
7664
|
};
|
|
@@ -7688,7 +7711,7 @@ static std::function<void(uint64_t, RustBuffer,
|
|
|
7688
7711
|
static void body(jsi::Runtime &rt,
|
|
7689
7712
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
7690
7713
|
std::shared_ptr<jsi::Value> callbackValue,
|
|
7691
|
-
uint64_t rs_uniffiHandle, RustBuffer
|
|
7714
|
+
uint64_t rs_uniffiHandle, RustBuffer rs_message,
|
|
7692
7715
|
UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback,
|
|
7693
7716
|
uint64_t rs_uniffiCallbackData,
|
|
7694
7717
|
UniffiForeignFuture *rs_uniffiOutReturn) {
|
|
@@ -7697,8 +7720,8 @@ static void body(jsi::Runtime &rt,
|
|
|
7697
7720
|
// We'll use the Bridging class to do this…
|
|
7698
7721
|
auto js_uniffiHandle =
|
|
7699
7722
|
uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, rs_uniffiHandle);
|
|
7700
|
-
auto
|
|
7701
|
-
rt, callInvoker,
|
|
7723
|
+
auto js_message = uniffi::breez_sdk_spark::Bridging<RustBuffer>::toJs(
|
|
7724
|
+
rt, callInvoker, rs_message);
|
|
7702
7725
|
auto js_uniffiFutureCallback = uniffi::breez_sdk_spark::Bridging<
|
|
7703
7726
|
UniffiForeignFutureCompleteRustBuffer>::toJs(rt, callInvoker,
|
|
7704
7727
|
rs_uniffiFutureCallback);
|
|
@@ -7711,7 +7734,7 @@ static void body(jsi::Runtime &rt,
|
|
|
7711
7734
|
try {
|
|
7712
7735
|
// Getting the callback function
|
|
7713
7736
|
auto cb = callbackValue->asObject(rt).asFunction(rt);
|
|
7714
|
-
auto uniffiResult = cb.call(rt, js_uniffiHandle,
|
|
7737
|
+
auto uniffiResult = cb.call(rt, js_uniffiHandle, js_message,
|
|
7715
7738
|
js_uniffiFutureCallback, js_uniffiCallbackData);
|
|
7716
7739
|
|
|
7717
7740
|
// return type is MutReference(Struct("ForeignFuture"))
|
|
@@ -7728,7 +7751,7 @@ static void body(jsi::Runtime &rt,
|
|
|
7728
7751
|
}
|
|
7729
7752
|
|
|
7730
7753
|
static void
|
|
7731
|
-
callback(uint64_t rs_uniffiHandle, RustBuffer
|
|
7754
|
+
callback(uint64_t rs_uniffiHandle, RustBuffer rs_message,
|
|
7732
7755
|
UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback,
|
|
7733
7756
|
uint64_t rs_uniffiCallbackData,
|
|
7734
7757
|
UniffiForeignFuture *rs_uniffiOutReturn) {
|
|
@@ -7747,7 +7770,7 @@ callback(uint64_t rs_uniffiHandle, RustBuffer rs_jobs,
|
|
|
7747
7770
|
|
|
7748
7771
|
// The runtime, the actual callback jsi::funtion, and the callInvoker
|
|
7749
7772
|
// are all in the lambda.
|
|
7750
|
-
rsLambda(rs_uniffiHandle,
|
|
7773
|
+
rsLambda(rs_uniffiHandle, rs_message, rs_uniffiFutureCallback,
|
|
7751
7774
|
rs_uniffiCallbackData, rs_uniffiOutReturn);
|
|
7752
7775
|
}
|
|
7753
7776
|
|
|
@@ -7771,17 +7794,17 @@ makeCallbackFunction( // uniffi::breez_sdk_spark::cb::callbackinterfaceexternals
|
|
|
7771
7794
|
auto callbackFunction = value.asObject(rt).asFunction(rt);
|
|
7772
7795
|
auto callbackValue = std::make_shared<jsi::Value>(rt, callbackFunction);
|
|
7773
7796
|
rsLambda = [&rt, callInvoker, callbackValue](
|
|
7774
|
-
uint64_t rs_uniffiHandle, RustBuffer
|
|
7797
|
+
uint64_t rs_uniffiHandle, RustBuffer rs_message,
|
|
7775
7798
|
UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback,
|
|
7776
7799
|
uint64_t rs_uniffiCallbackData,
|
|
7777
7800
|
UniffiForeignFuture *rs_uniffiOutReturn) {
|
|
7778
7801
|
// We immediately make a lambda which will do the work of transforming the
|
|
7779
7802
|
// arguments into JSI values and calling the callback.
|
|
7780
7803
|
uniffi_runtime::UniffiCallFunc jsLambda =
|
|
7781
|
-
[callInvoker, callbackValue, rs_uniffiHandle,
|
|
7804
|
+
[callInvoker, callbackValue, rs_uniffiHandle, rs_message,
|
|
7782
7805
|
rs_uniffiFutureCallback, rs_uniffiCallbackData,
|
|
7783
7806
|
rs_uniffiOutReturn](jsi::Runtime &rt) mutable {
|
|
7784
|
-
body(rt, callInvoker, callbackValue, rs_uniffiHandle,
|
|
7807
|
+
body(rt, callInvoker, callbackValue, rs_uniffiHandle, rs_message,
|
|
7785
7808
|
rs_uniffiFutureCallback, rs_uniffiCallbackData,
|
|
7786
7809
|
rs_uniffiOutReturn);
|
|
7787
7810
|
};
|
|
@@ -7834,7 +7857,7 @@ static std::function<void(uint64_t, RustBuffer,
|
|
|
7834
7857
|
static void body(jsi::Runtime &rt,
|
|
7835
7858
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
7836
7859
|
std::shared_ptr<jsi::Value> callbackValue,
|
|
7837
|
-
uint64_t rs_uniffiHandle, RustBuffer
|
|
7860
|
+
uint64_t rs_uniffiHandle, RustBuffer rs_jobs,
|
|
7838
7861
|
UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback,
|
|
7839
7862
|
uint64_t rs_uniffiCallbackData,
|
|
7840
7863
|
UniffiForeignFuture *rs_uniffiOutReturn) {
|
|
@@ -7843,8 +7866,8 @@ static void body(jsi::Runtime &rt,
|
|
|
7843
7866
|
// We'll use the Bridging class to do this…
|
|
7844
7867
|
auto js_uniffiHandle =
|
|
7845
7868
|
uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, rs_uniffiHandle);
|
|
7846
|
-
auto
|
|
7847
|
-
rt, callInvoker,
|
|
7869
|
+
auto js_jobs = uniffi::breez_sdk_spark::Bridging<RustBuffer>::toJs(
|
|
7870
|
+
rt, callInvoker, rs_jobs);
|
|
7848
7871
|
auto js_uniffiFutureCallback = uniffi::breez_sdk_spark::Bridging<
|
|
7849
7872
|
UniffiForeignFutureCompleteRustBuffer>::toJs(rt, callInvoker,
|
|
7850
7873
|
rs_uniffiFutureCallback);
|
|
@@ -7857,7 +7880,7 @@ static void body(jsi::Runtime &rt,
|
|
|
7857
7880
|
try {
|
|
7858
7881
|
// Getting the callback function
|
|
7859
7882
|
auto cb = callbackValue->asObject(rt).asFunction(rt);
|
|
7860
|
-
auto uniffiResult = cb.call(rt, js_uniffiHandle,
|
|
7883
|
+
auto uniffiResult = cb.call(rt, js_uniffiHandle, js_jobs,
|
|
7861
7884
|
js_uniffiFutureCallback, js_uniffiCallbackData);
|
|
7862
7885
|
|
|
7863
7886
|
// return type is MutReference(Struct("ForeignFuture"))
|
|
@@ -7874,7 +7897,7 @@ static void body(jsi::Runtime &rt,
|
|
|
7874
7897
|
}
|
|
7875
7898
|
|
|
7876
7899
|
static void
|
|
7877
|
-
callback(uint64_t rs_uniffiHandle, RustBuffer
|
|
7900
|
+
callback(uint64_t rs_uniffiHandle, RustBuffer rs_jobs,
|
|
7878
7901
|
UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback,
|
|
7879
7902
|
uint64_t rs_uniffiCallbackData,
|
|
7880
7903
|
UniffiForeignFuture *rs_uniffiOutReturn) {
|
|
@@ -7893,7 +7916,7 @@ callback(uint64_t rs_uniffiHandle, RustBuffer rs_request,
|
|
|
7893
7916
|
|
|
7894
7917
|
// The runtime, the actual callback jsi::funtion, and the callInvoker
|
|
7895
7918
|
// are all in the lambda.
|
|
7896
|
-
rsLambda(rs_uniffiHandle,
|
|
7919
|
+
rsLambda(rs_uniffiHandle, rs_jobs, rs_uniffiFutureCallback,
|
|
7897
7920
|
rs_uniffiCallbackData, rs_uniffiOutReturn);
|
|
7898
7921
|
}
|
|
7899
7922
|
|
|
@@ -7917,17 +7940,17 @@ makeCallbackFunction( // uniffi::breez_sdk_spark::cb::callbackinterfaceexternals
|
|
|
7917
7940
|
auto callbackFunction = value.asObject(rt).asFunction(rt);
|
|
7918
7941
|
auto callbackValue = std::make_shared<jsi::Value>(rt, callbackFunction);
|
|
7919
7942
|
rsLambda = [&rt, callInvoker, callbackValue](
|
|
7920
|
-
uint64_t rs_uniffiHandle, RustBuffer
|
|
7943
|
+
uint64_t rs_uniffiHandle, RustBuffer rs_jobs,
|
|
7921
7944
|
UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback,
|
|
7922
7945
|
uint64_t rs_uniffiCallbackData,
|
|
7923
7946
|
UniffiForeignFuture *rs_uniffiOutReturn) {
|
|
7924
7947
|
// We immediately make a lambda which will do the work of transforming the
|
|
7925
7948
|
// arguments into JSI values and calling the callback.
|
|
7926
7949
|
uniffi_runtime::UniffiCallFunc jsLambda =
|
|
7927
|
-
[callInvoker, callbackValue, rs_uniffiHandle,
|
|
7950
|
+
[callInvoker, callbackValue, rs_uniffiHandle, rs_jobs,
|
|
7928
7951
|
rs_uniffiFutureCallback, rs_uniffiCallbackData,
|
|
7929
7952
|
rs_uniffiOutReturn](jsi::Runtime &rt) mutable {
|
|
7930
|
-
body(rt, callInvoker, callbackValue, rs_uniffiHandle,
|
|
7953
|
+
body(rt, callInvoker, callbackValue, rs_uniffiHandle, rs_jobs,
|
|
7931
7954
|
rs_uniffiFutureCallback, rs_uniffiCallbackData,
|
|
7932
7955
|
rs_uniffiOutReturn);
|
|
7933
7956
|
};
|
|
@@ -9116,6 +9139,152 @@ static void cleanup() {
|
|
|
9116
9139
|
} // namespace
|
|
9117
9140
|
// uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsparksignermethod14
|
|
9118
9141
|
// Implementation of callback function calling from Rust to JS
|
|
9142
|
+
// CallbackInterfaceExternalSparkSignerMethod15
|
|
9143
|
+
|
|
9144
|
+
// Callback function:
|
|
9145
|
+
// uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsparksignermethod15::UniffiCallbackInterfaceExternalSparkSignerMethod15
|
|
9146
|
+
//
|
|
9147
|
+
// We have the following constraints:
|
|
9148
|
+
// - we need to pass a function pointer to Rust.
|
|
9149
|
+
// - we need a jsi::Runtime and jsi::Function to call into JS.
|
|
9150
|
+
// - function pointers can't store state, so we can't use a lamda.
|
|
9151
|
+
//
|
|
9152
|
+
// For this, we store a lambda as a global, as `rsLambda`. The `callback`
|
|
9153
|
+
// function calls the lambda, which itself calls the `body` which then calls
|
|
9154
|
+
// into JS.
|
|
9155
|
+
//
|
|
9156
|
+
// We then give the `callback` function pointer to Rust which will call the
|
|
9157
|
+
// lambda sometime in the future.
|
|
9158
|
+
namespace uniffi::breez_sdk_spark::cb::
|
|
9159
|
+
callbackinterfaceexternalsparksignermethod15 {
|
|
9160
|
+
using namespace facebook;
|
|
9161
|
+
|
|
9162
|
+
// We need to store a lambda in a global so we can call it from
|
|
9163
|
+
// a function pointer. The function pointer is passed to Rust.
|
|
9164
|
+
static std::function<void(uint64_t, RustBuffer,
|
|
9165
|
+
UniffiForeignFutureCompleteRustBuffer, uint64_t,
|
|
9166
|
+
UniffiForeignFuture *)>
|
|
9167
|
+
rsLambda = nullptr;
|
|
9168
|
+
|
|
9169
|
+
// This is the main body of the callback. It's called from the lambda,
|
|
9170
|
+
// which itself is called from the callback function which is passed to Rust.
|
|
9171
|
+
static void body(jsi::Runtime &rt,
|
|
9172
|
+
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
9173
|
+
std::shared_ptr<jsi::Value> callbackValue,
|
|
9174
|
+
uint64_t rs_uniffiHandle, RustBuffer rs_request,
|
|
9175
|
+
UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback,
|
|
9176
|
+
uint64_t rs_uniffiCallbackData,
|
|
9177
|
+
UniffiForeignFuture *rs_uniffiOutReturn) {
|
|
9178
|
+
|
|
9179
|
+
// Convert the arguments from Rust, into jsi::Values.
|
|
9180
|
+
// We'll use the Bridging class to do this…
|
|
9181
|
+
auto js_uniffiHandle =
|
|
9182
|
+
uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, rs_uniffiHandle);
|
|
9183
|
+
auto js_request = uniffi::breez_sdk_spark::Bridging<RustBuffer>::toJs(
|
|
9184
|
+
rt, callInvoker, rs_request);
|
|
9185
|
+
auto js_uniffiFutureCallback = uniffi::breez_sdk_spark::Bridging<
|
|
9186
|
+
UniffiForeignFutureCompleteRustBuffer>::toJs(rt, callInvoker,
|
|
9187
|
+
rs_uniffiFutureCallback);
|
|
9188
|
+
auto js_uniffiCallbackData = uniffi_jsi::Bridging<uint64_t>::toJs(
|
|
9189
|
+
rt, callInvoker, rs_uniffiCallbackData);
|
|
9190
|
+
|
|
9191
|
+
// Now we are ready to call the callback.
|
|
9192
|
+
// We are already on the JS thread, because this `body` function was
|
|
9193
|
+
// invoked from the CallInvoker.
|
|
9194
|
+
try {
|
|
9195
|
+
// Getting the callback function
|
|
9196
|
+
auto cb = callbackValue->asObject(rt).asFunction(rt);
|
|
9197
|
+
auto uniffiResult = cb.call(rt, js_uniffiHandle, js_request,
|
|
9198
|
+
js_uniffiFutureCallback, js_uniffiCallbackData);
|
|
9199
|
+
|
|
9200
|
+
// return type is MutReference(Struct("ForeignFuture"))
|
|
9201
|
+
// Finally, we need to copy the return value back into the Rust pointer.
|
|
9202
|
+
*rs_uniffiOutReturn =
|
|
9203
|
+
uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
|
|
9204
|
+
rt, callInvoker, uniffiResult);
|
|
9205
|
+
} catch (const jsi::JSError &error) {
|
|
9206
|
+
std::cout << "Error in callback "
|
|
9207
|
+
"UniffiCallbackInterfaceExternalSparkSignerMethod15: "
|
|
9208
|
+
<< error.what() << std::endl;
|
|
9209
|
+
throw error;
|
|
9210
|
+
}
|
|
9211
|
+
}
|
|
9212
|
+
|
|
9213
|
+
static void
|
|
9214
|
+
callback(uint64_t rs_uniffiHandle, RustBuffer rs_request,
|
|
9215
|
+
UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback,
|
|
9216
|
+
uint64_t rs_uniffiCallbackData,
|
|
9217
|
+
UniffiForeignFuture *rs_uniffiOutReturn) {
|
|
9218
|
+
// If the runtime has shutdown, then there is no point in trying to
|
|
9219
|
+
// call into Javascript. BUT how do we tell if the runtime has shutdown?
|
|
9220
|
+
//
|
|
9221
|
+
// Answer: the module destructor calls into callback `cleanup` method,
|
|
9222
|
+
// which nulls out the rsLamda.
|
|
9223
|
+
//
|
|
9224
|
+
// If rsLamda is null, then there is no runtime to call into.
|
|
9225
|
+
if (rsLambda == nullptr) {
|
|
9226
|
+
// This only occurs when destructors are calling into Rust free/drop,
|
|
9227
|
+
// which causes the JS callback to be dropped.
|
|
9228
|
+
return;
|
|
9229
|
+
}
|
|
9230
|
+
|
|
9231
|
+
// The runtime, the actual callback jsi::funtion, and the callInvoker
|
|
9232
|
+
// are all in the lambda.
|
|
9233
|
+
rsLambda(rs_uniffiHandle, rs_request, rs_uniffiFutureCallback,
|
|
9234
|
+
rs_uniffiCallbackData, rs_uniffiOutReturn);
|
|
9235
|
+
}
|
|
9236
|
+
|
|
9237
|
+
static UniffiCallbackInterfaceExternalSparkSignerMethod15
|
|
9238
|
+
makeCallbackFunction( // uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsparksignermethod15
|
|
9239
|
+
jsi::Runtime &rt,
|
|
9240
|
+
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
9241
|
+
const jsi::Value &value) {
|
|
9242
|
+
if (rsLambda != nullptr) {
|
|
9243
|
+
// `makeCallbackFunction` is called in two circumstances:
|
|
9244
|
+
//
|
|
9245
|
+
// 1. at startup, when initializing callback interface vtables.
|
|
9246
|
+
// 2. when polling futures. This happens at least once per future that is
|
|
9247
|
+
// exposed to Javascript. We know that this is always the same function,
|
|
9248
|
+
// `uniffiFutureContinuationCallback` in `async-rust-calls.ts`.
|
|
9249
|
+
//
|
|
9250
|
+
// We can therefore return the callback function without making anything
|
|
9251
|
+
// new if we've been initialized already.
|
|
9252
|
+
return callback;
|
|
9253
|
+
}
|
|
9254
|
+
auto callbackFunction = value.asObject(rt).asFunction(rt);
|
|
9255
|
+
auto callbackValue = std::make_shared<jsi::Value>(rt, callbackFunction);
|
|
9256
|
+
rsLambda = [&rt, callInvoker, callbackValue](
|
|
9257
|
+
uint64_t rs_uniffiHandle, RustBuffer rs_request,
|
|
9258
|
+
UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback,
|
|
9259
|
+
uint64_t rs_uniffiCallbackData,
|
|
9260
|
+
UniffiForeignFuture *rs_uniffiOutReturn) {
|
|
9261
|
+
// We immediately make a lambda which will do the work of transforming the
|
|
9262
|
+
// arguments into JSI values and calling the callback.
|
|
9263
|
+
uniffi_runtime::UniffiCallFunc jsLambda =
|
|
9264
|
+
[callInvoker, callbackValue, rs_uniffiHandle, rs_request,
|
|
9265
|
+
rs_uniffiFutureCallback, rs_uniffiCallbackData,
|
|
9266
|
+
rs_uniffiOutReturn](jsi::Runtime &rt) mutable {
|
|
9267
|
+
body(rt, callInvoker, callbackValue, rs_uniffiHandle, rs_request,
|
|
9268
|
+
rs_uniffiFutureCallback, rs_uniffiCallbackData,
|
|
9269
|
+
rs_uniffiOutReturn);
|
|
9270
|
+
};
|
|
9271
|
+
// We'll then call that lambda from the callInvoker which will
|
|
9272
|
+
// look after calling it on the correct thread.
|
|
9273
|
+
callInvoker->invokeBlocking(rt, jsLambda);
|
|
9274
|
+
};
|
|
9275
|
+
return callback;
|
|
9276
|
+
}
|
|
9277
|
+
|
|
9278
|
+
// This method is called from the destructor of NativeBreezSdkSpark, which only
|
|
9279
|
+
// happens when the jsi::Runtime is being destroyed.
|
|
9280
|
+
static void cleanup() {
|
|
9281
|
+
// The lambda holds a reference to the the Runtime, so when this is nulled
|
|
9282
|
+
// out, then the pointer will no longer be left dangling.
|
|
9283
|
+
rsLambda = nullptr;
|
|
9284
|
+
}
|
|
9285
|
+
} // namespace
|
|
9286
|
+
// uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsparksignermethod15
|
|
9287
|
+
// Implementation of callback function calling from Rust to JS
|
|
9119
9288
|
// CallbackInterfaceFiatServiceMethod0
|
|
9120
9289
|
|
|
9121
9290
|
// Callback function:
|
|
@@ -15671,50 +15840,53 @@ template <> struct Bridging<UniffiVTableCallbackInterfaceExternalSparkSigner> {
|
|
|
15671
15840
|
rsObject.get_public_key_for_leaf = uniffi::breez_sdk_spark::cb::
|
|
15672
15841
|
callbackinterfaceexternalsparksignermethod1::makeCallbackFunction(
|
|
15673
15842
|
rt, callInvoker, jsObject.getProperty(rt, "getPublicKeyForLeaf"));
|
|
15674
|
-
rsObject.
|
|
15843
|
+
rsObject.is_remote = uniffi::breez_sdk_spark::cb::
|
|
15675
15844
|
callbackinterfaceexternalsparksignermethod2::makeCallbackFunction(
|
|
15845
|
+
rt, callInvoker, jsObject.getProperty(rt, "isRemote"));
|
|
15846
|
+
rsObject.get_static_deposit_public_key = uniffi::breez_sdk_spark::cb::
|
|
15847
|
+
callbackinterfaceexternalsparksignermethod3::makeCallbackFunction(
|
|
15676
15848
|
rt, callInvoker,
|
|
15677
15849
|
jsObject.getProperty(rt, "getStaticDepositPublicKey"));
|
|
15678
15850
|
rsObject.sign_authentication_challenge = uniffi::breez_sdk_spark::cb::
|
|
15679
|
-
|
|
15851
|
+
callbackinterfaceexternalsparksignermethod4::makeCallbackFunction(
|
|
15680
15852
|
rt, callInvoker,
|
|
15681
15853
|
jsObject.getProperty(rt, "signAuthenticationChallenge"));
|
|
15682
15854
|
rsObject.sign_message = uniffi::breez_sdk_spark::cb::
|
|
15683
|
-
|
|
15855
|
+
callbackinterfaceexternalsparksignermethod5::makeCallbackFunction(
|
|
15684
15856
|
rt, callInvoker, jsObject.getProperty(rt, "signMessage"));
|
|
15685
15857
|
rsObject.sign_frost = uniffi::breez_sdk_spark::cb::
|
|
15686
|
-
|
|
15858
|
+
callbackinterfaceexternalsparksignermethod6::makeCallbackFunction(
|
|
15687
15859
|
rt, callInvoker, jsObject.getProperty(rt, "signFrost"));
|
|
15688
15860
|
rsObject.prepare_transfer = uniffi::breez_sdk_spark::cb::
|
|
15689
|
-
|
|
15861
|
+
callbackinterfaceexternalsparksignermethod7::makeCallbackFunction(
|
|
15690
15862
|
rt, callInvoker, jsObject.getProperty(rt, "prepareTransfer"));
|
|
15691
15863
|
rsObject.prepare_claim = uniffi::breez_sdk_spark::cb::
|
|
15692
|
-
|
|
15864
|
+
callbackinterfaceexternalsparksignermethod8::makeCallbackFunction(
|
|
15693
15865
|
rt, callInvoker, jsObject.getProperty(rt, "prepareClaim"));
|
|
15694
15866
|
rsObject.prepare_lightning_receive = uniffi::breez_sdk_spark::cb::
|
|
15695
|
-
|
|
15867
|
+
callbackinterfaceexternalsparksignermethod9::makeCallbackFunction(
|
|
15696
15868
|
rt, callInvoker,
|
|
15697
15869
|
jsObject.getProperty(rt, "prepareLightningReceive"));
|
|
15698
15870
|
rsObject.prepare_static_deposit = uniffi::breez_sdk_spark::cb::
|
|
15699
|
-
|
|
15871
|
+
callbackinterfaceexternalsparksignermethod10::makeCallbackFunction(
|
|
15700
15872
|
rt, callInvoker, jsObject.getProperty(rt, "prepareStaticDeposit"));
|
|
15701
15873
|
rsObject.start_static_deposit_refund = uniffi::breez_sdk_spark::cb::
|
|
15702
|
-
|
|
15874
|
+
callbackinterfaceexternalsparksignermethod11::makeCallbackFunction(
|
|
15703
15875
|
rt, callInvoker,
|
|
15704
15876
|
jsObject.getProperty(rt, "startStaticDepositRefund"));
|
|
15705
15877
|
rsObject.sign_static_deposit_refund = uniffi::breez_sdk_spark::cb::
|
|
15706
|
-
|
|
15878
|
+
callbackinterfaceexternalsparksignermethod12::makeCallbackFunction(
|
|
15707
15879
|
rt, callInvoker,
|
|
15708
15880
|
jsObject.getProperty(rt, "signStaticDepositRefund"));
|
|
15709
15881
|
rsObject.sign_spark_invoice = uniffi::breez_sdk_spark::cb::
|
|
15710
|
-
|
|
15882
|
+
callbackinterfaceexternalsparksignermethod13::makeCallbackFunction(
|
|
15711
15883
|
rt, callInvoker, jsObject.getProperty(rt, "signSparkInvoice"));
|
|
15712
15884
|
rsObject.prepare_token_transaction = uniffi::breez_sdk_spark::cb::
|
|
15713
|
-
|
|
15885
|
+
callbackinterfaceexternalsparksignermethod14::makeCallbackFunction(
|
|
15714
15886
|
rt, callInvoker,
|
|
15715
15887
|
jsObject.getProperty(rt, "prepareTokenTransaction"));
|
|
15716
15888
|
rsObject.prepare_static_deposit_claim = uniffi::breez_sdk_spark::cb::
|
|
15717
|
-
|
|
15889
|
+
callbackinterfaceexternalsparksignermethod15::makeCallbackFunction(
|
|
15718
15890
|
rt, callInvoker,
|
|
15719
15891
|
jsObject.getProperty(rt, "prepareStaticDepositClaim"));
|
|
15720
15892
|
rsObject.uniffi_free = uniffi::breez_sdk_spark::st::
|
|
@@ -16301,6 +16473,31 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
16301
16473
|
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_authorize_lightning_address_transfer(
|
|
16302
16474
|
rt, thisVal, args, count);
|
|
16303
16475
|
});
|
|
16476
|
+
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_build_unsigned_lnurl_"
|
|
16477
|
+
"pay_package"] = jsi::Function::createFromHostFunction(
|
|
16478
|
+
rt,
|
|
16479
|
+
jsi::PropNameID::forAscii(rt,
|
|
16480
|
+
"ubrn_uniffi_breez_sdk_spark_fn_method_"
|
|
16481
|
+
"breezsdk_build_unsigned_lnurl_pay_package"),
|
|
16482
|
+
2,
|
|
16483
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
16484
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
16485
|
+
return this
|
|
16486
|
+
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_build_unsigned_lnurl_pay_package(
|
|
16487
|
+
rt, thisVal, args, count);
|
|
16488
|
+
});
|
|
16489
|
+
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_build_unsigned_"
|
|
16490
|
+
"transfer_package"] = jsi::Function::createFromHostFunction(
|
|
16491
|
+
rt,
|
|
16492
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_method_"
|
|
16493
|
+
"breezsdk_build_unsigned_transfer_package"),
|
|
16494
|
+
2,
|
|
16495
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
16496
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
16497
|
+
return this
|
|
16498
|
+
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_build_unsigned_transfer_package(
|
|
16499
|
+
rt, thisVal, args, count);
|
|
16500
|
+
});
|
|
16304
16501
|
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_buy_bitcoin"] =
|
|
16305
16502
|
jsi::Function::createFromHostFunction(
|
|
16306
16503
|
rt,
|
|
@@ -16670,6 +16867,31 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
16670
16867
|
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_prepare_send_payment(
|
|
16671
16868
|
rt, thisVal, args, count);
|
|
16672
16869
|
});
|
|
16870
|
+
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_publish_signed_lnurl_"
|
|
16871
|
+
"pay_package"] = jsi::Function::createFromHostFunction(
|
|
16872
|
+
rt,
|
|
16873
|
+
jsi::PropNameID::forAscii(rt,
|
|
16874
|
+
"ubrn_uniffi_breez_sdk_spark_fn_method_"
|
|
16875
|
+
"breezsdk_publish_signed_lnurl_pay_package"),
|
|
16876
|
+
2,
|
|
16877
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
16878
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
16879
|
+
return this
|
|
16880
|
+
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_publish_signed_lnurl_pay_package(
|
|
16881
|
+
rt, thisVal, args, count);
|
|
16882
|
+
});
|
|
16883
|
+
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_publish_signed_"
|
|
16884
|
+
"transfer_package"] = jsi::Function::createFromHostFunction(
|
|
16885
|
+
rt,
|
|
16886
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_method_"
|
|
16887
|
+
"breezsdk_publish_signed_transfer_package"),
|
|
16888
|
+
2,
|
|
16889
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
16890
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
16891
|
+
return this
|
|
16892
|
+
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_publish_signed_transfer_package(
|
|
16893
|
+
rt, thisVal, args, count);
|
|
16894
|
+
});
|
|
16673
16895
|
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_receive_payment"] =
|
|
16674
16896
|
jsi::Function::createFromHostFunction(
|
|
16675
16897
|
rt,
|
|
@@ -17097,6 +17319,18 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
17097
17319
|
->cpp_uniffi_breez_sdk_spark_fn_method_externalsparksigner_get_public_key_for_leaf(
|
|
17098
17320
|
rt, thisVal, args, count);
|
|
17099
17321
|
});
|
|
17322
|
+
props["ubrn_uniffi_breez_sdk_spark_fn_method_externalsparksigner_is_remote"] =
|
|
17323
|
+
jsi::Function::createFromHostFunction(
|
|
17324
|
+
rt,
|
|
17325
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_method_"
|
|
17326
|
+
"externalsparksigner_is_remote"),
|
|
17327
|
+
1,
|
|
17328
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
17329
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
17330
|
+
return this
|
|
17331
|
+
->cpp_uniffi_breez_sdk_spark_fn_method_externalsparksigner_is_remote(
|
|
17332
|
+
rt, thisVal, args, count);
|
|
17333
|
+
});
|
|
17100
17334
|
props["ubrn_uniffi_breez_sdk_spark_fn_method_externalsparksigner_get_static_"
|
|
17101
17335
|
"deposit_public_key"] = jsi::Function::createFromHostFunction(
|
|
17102
17336
|
rt,
|
|
@@ -17853,6 +18087,18 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
17853
18087
|
->cpp_uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_rest_chain_service(
|
|
17854
18088
|
rt, thisVal, args, count);
|
|
17855
18089
|
});
|
|
18090
|
+
props["ubrn_uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_session_store"] =
|
|
18091
|
+
jsi::Function::createFromHostFunction(
|
|
18092
|
+
rt,
|
|
18093
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_method_"
|
|
18094
|
+
"sdkbuilder_with_session_store"),
|
|
18095
|
+
2,
|
|
18096
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
18097
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
18098
|
+
return this
|
|
18099
|
+
->cpp_uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_session_store(
|
|
18100
|
+
rt, thisVal, args, count);
|
|
18101
|
+
});
|
|
17856
18102
|
props["ubrn_uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_shared_"
|
|
17857
18103
|
"context"] = jsi::Function::createFromHostFunction(
|
|
17858
18104
|
rt,
|
|
@@ -18645,6 +18891,18 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
18645
18891
|
->cpp_uniffi_breez_sdk_spark_fn_func_default_server_config(
|
|
18646
18892
|
rt, thisVal, args, count);
|
|
18647
18893
|
});
|
|
18894
|
+
props["ubrn_uniffi_breez_sdk_spark_fn_func_default_session_store"] =
|
|
18895
|
+
jsi::Function::createFromHostFunction(
|
|
18896
|
+
rt,
|
|
18897
|
+
jsi::PropNameID::forAscii(
|
|
18898
|
+
rt, "ubrn_uniffi_breez_sdk_spark_fn_func_default_session_store"),
|
|
18899
|
+
3,
|
|
18900
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
18901
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
18902
|
+
return this
|
|
18903
|
+
->cpp_uniffi_breez_sdk_spark_fn_func_default_session_store(
|
|
18904
|
+
rt, thisVal, args, count);
|
|
18905
|
+
});
|
|
18648
18906
|
props["ubrn_uniffi_breez_sdk_spark_fn_func_default_storage"] =
|
|
18649
18907
|
jsi::Function::createFromHostFunction(
|
|
18650
18908
|
rt,
|
|
@@ -19383,6 +19641,18 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
19383
19641
|
->cpp_uniffi_breez_sdk_spark_checksum_func_default_server_config(
|
|
19384
19642
|
rt, thisVal, args, count);
|
|
19385
19643
|
});
|
|
19644
|
+
props["ubrn_uniffi_breez_sdk_spark_checksum_func_default_session_store"] =
|
|
19645
|
+
jsi::Function::createFromHostFunction(
|
|
19646
|
+
rt,
|
|
19647
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_checksum_"
|
|
19648
|
+
"func_default_session_store"),
|
|
19649
|
+
0,
|
|
19650
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
19651
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
19652
|
+
return this
|
|
19653
|
+
->cpp_uniffi_breez_sdk_spark_checksum_func_default_session_store(
|
|
19654
|
+
rt, thisVal, args, count);
|
|
19655
|
+
});
|
|
19386
19656
|
props["ubrn_uniffi_breez_sdk_spark_checksum_func_default_storage"] =
|
|
19387
19657
|
jsi::Function::createFromHostFunction(
|
|
19388
19658
|
rt,
|
|
@@ -19544,6 +19814,32 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
19544
19814
|
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_authorize_lightning_address_transfer(
|
|
19545
19815
|
rt, thisVal, args, count);
|
|
19546
19816
|
});
|
|
19817
|
+
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_"
|
|
19818
|
+
"lnurl_pay_package"] = jsi::Function::createFromHostFunction(
|
|
19819
|
+
rt,
|
|
19820
|
+
jsi::PropNameID::forAscii(rt,
|
|
19821
|
+
"ubrn_uniffi_breez_sdk_spark_checksum_method_"
|
|
19822
|
+
"breezsdk_build_unsigned_lnurl_pay_package"),
|
|
19823
|
+
0,
|
|
19824
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
19825
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
19826
|
+
return this
|
|
19827
|
+
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_lnurl_pay_package(
|
|
19828
|
+
rt, thisVal, args, count);
|
|
19829
|
+
});
|
|
19830
|
+
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_"
|
|
19831
|
+
"transfer_package"] = jsi::Function::createFromHostFunction(
|
|
19832
|
+
rt,
|
|
19833
|
+
jsi::PropNameID::forAscii(rt,
|
|
19834
|
+
"ubrn_uniffi_breez_sdk_spark_checksum_method_"
|
|
19835
|
+
"breezsdk_build_unsigned_transfer_package"),
|
|
19836
|
+
0,
|
|
19837
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
19838
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
19839
|
+
return this
|
|
19840
|
+
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_transfer_package(
|
|
19841
|
+
rt, thisVal, args, count);
|
|
19842
|
+
});
|
|
19547
19843
|
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_buy_bitcoin"] =
|
|
19548
19844
|
jsi::Function::createFromHostFunction(
|
|
19549
19845
|
rt,
|
|
@@ -19908,6 +20204,32 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
19908
20204
|
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_payment(
|
|
19909
20205
|
rt, thisVal, args, count);
|
|
19910
20206
|
});
|
|
20207
|
+
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_publish_signed_"
|
|
20208
|
+
"lnurl_pay_package"] = jsi::Function::createFromHostFunction(
|
|
20209
|
+
rt,
|
|
20210
|
+
jsi::PropNameID::forAscii(rt,
|
|
20211
|
+
"ubrn_uniffi_breez_sdk_spark_checksum_method_"
|
|
20212
|
+
"breezsdk_publish_signed_lnurl_pay_package"),
|
|
20213
|
+
0,
|
|
20214
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
20215
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
20216
|
+
return this
|
|
20217
|
+
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_publish_signed_lnurl_pay_package(
|
|
20218
|
+
rt, thisVal, args, count);
|
|
20219
|
+
});
|
|
20220
|
+
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_publish_signed_"
|
|
20221
|
+
"transfer_package"] = jsi::Function::createFromHostFunction(
|
|
20222
|
+
rt,
|
|
20223
|
+
jsi::PropNameID::forAscii(rt,
|
|
20224
|
+
"ubrn_uniffi_breez_sdk_spark_checksum_method_"
|
|
20225
|
+
"breezsdk_publish_signed_transfer_package"),
|
|
20226
|
+
0,
|
|
20227
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
20228
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
20229
|
+
return this
|
|
20230
|
+
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_publish_signed_transfer_package(
|
|
20231
|
+
rt, thisVal, args, count);
|
|
20232
|
+
});
|
|
19911
20233
|
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_"
|
|
19912
20234
|
"payment"] = jsi::Function::createFromHostFunction(
|
|
19913
20235
|
rt,
|
|
@@ -20230,6 +20552,18 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
20230
20552
|
->cpp_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_public_key_for_leaf(
|
|
20231
20553
|
rt, thisVal, args, count);
|
|
20232
20554
|
});
|
|
20555
|
+
props["ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_is_"
|
|
20556
|
+
"remote"] = jsi::Function::createFromHostFunction(
|
|
20557
|
+
rt,
|
|
20558
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_checksum_"
|
|
20559
|
+
"method_externalsparksigner_is_remote"),
|
|
20560
|
+
0,
|
|
20561
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
20562
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
20563
|
+
return this
|
|
20564
|
+
->cpp_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_is_remote(
|
|
20565
|
+
rt, thisVal, args, count);
|
|
20566
|
+
});
|
|
20233
20567
|
props["ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_"
|
|
20234
20568
|
"static_deposit_public_key"] = jsi::Function::createFromHostFunction(
|
|
20235
20569
|
rt,
|
|
@@ -20713,6 +21047,18 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
20713
21047
|
->cpp_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_rest_chain_service(
|
|
20714
21048
|
rt, thisVal, args, count);
|
|
20715
21049
|
});
|
|
21050
|
+
props["ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_session_"
|
|
21051
|
+
"store"] = jsi::Function::createFromHostFunction(
|
|
21052
|
+
rt,
|
|
21053
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_checksum_"
|
|
21054
|
+
"method_sdkbuilder_with_session_store"),
|
|
21055
|
+
0,
|
|
21056
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
21057
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
21058
|
+
return this
|
|
21059
|
+
->cpp_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_session_store(
|
|
21060
|
+
rt, thisVal, args, count);
|
|
21061
|
+
});
|
|
20716
21062
|
props["ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_shared_"
|
|
20717
21063
|
"context"] = jsi::Function::createFromHostFunction(
|
|
20718
21064
|
rt,
|
|
@@ -21708,6 +22054,9 @@ NativeBreezSdkSpark::~NativeBreezSdkSpark() {
|
|
|
21708
22054
|
// Cleanup for callback function CallbackInterfaceExternalSparkSignerMethod14
|
|
21709
22055
|
uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsparksignermethod14::
|
|
21710
22056
|
cleanup();
|
|
22057
|
+
// Cleanup for callback function CallbackInterfaceExternalSparkSignerMethod15
|
|
22058
|
+
uniffi::breez_sdk_spark::cb::callbackinterfaceexternalsparksignermethod15::
|
|
22059
|
+
cleanup();
|
|
21711
22060
|
// Cleanup for callback function CallbackInterfaceFiatServiceMethod0
|
|
21712
22061
|
uniffi::breez_sdk_spark::cb::callbackinterfacefiatservicemethod0::cleanup();
|
|
21713
22062
|
// Cleanup for callback function CallbackInterfaceFiatServiceMethod1
|
|
@@ -22276,6 +22625,32 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
22276
22625
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
22277
22626
|
value);
|
|
22278
22627
|
}
|
|
22628
|
+
jsi::Value NativeBreezSdkSpark::
|
|
22629
|
+
cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_build_unsigned_lnurl_pay_package(
|
|
22630
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
22631
|
+
size_t count) {
|
|
22632
|
+
auto value =
|
|
22633
|
+
uniffi_breez_sdk_spark_fn_method_breezsdk_build_unsigned_lnurl_pay_package(
|
|
22634
|
+
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
|
|
22635
|
+
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
22636
|
+
args[1]));
|
|
22637
|
+
|
|
22638
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
22639
|
+
value);
|
|
22640
|
+
}
|
|
22641
|
+
jsi::Value NativeBreezSdkSpark::
|
|
22642
|
+
cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_build_unsigned_transfer_package(
|
|
22643
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
22644
|
+
size_t count) {
|
|
22645
|
+
auto value =
|
|
22646
|
+
uniffi_breez_sdk_spark_fn_method_breezsdk_build_unsigned_transfer_package(
|
|
22647
|
+
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
|
|
22648
|
+
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
22649
|
+
args[1]));
|
|
22650
|
+
|
|
22651
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
22652
|
+
value);
|
|
22653
|
+
}
|
|
22279
22654
|
jsi::Value
|
|
22280
22655
|
NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_buy_bitcoin(
|
|
22281
22656
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -22628,6 +23003,32 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
22628
23003
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
22629
23004
|
value);
|
|
22630
23005
|
}
|
|
23006
|
+
jsi::Value NativeBreezSdkSpark::
|
|
23007
|
+
cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_publish_signed_lnurl_pay_package(
|
|
23008
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
23009
|
+
size_t count) {
|
|
23010
|
+
auto value =
|
|
23011
|
+
uniffi_breez_sdk_spark_fn_method_breezsdk_publish_signed_lnurl_pay_package(
|
|
23012
|
+
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
|
|
23013
|
+
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
23014
|
+
args[1]));
|
|
23015
|
+
|
|
23016
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
23017
|
+
value);
|
|
23018
|
+
}
|
|
23019
|
+
jsi::Value NativeBreezSdkSpark::
|
|
23020
|
+
cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_publish_signed_transfer_package(
|
|
23021
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
23022
|
+
size_t count) {
|
|
23023
|
+
auto value =
|
|
23024
|
+
uniffi_breez_sdk_spark_fn_method_breezsdk_publish_signed_transfer_package(
|
|
23025
|
+
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
|
|
23026
|
+
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
23027
|
+
args[1]));
|
|
23028
|
+
|
|
23029
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
23030
|
+
value);
|
|
23031
|
+
}
|
|
22631
23032
|
jsi::Value NativeBreezSdkSpark::
|
|
22632
23033
|
cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_receive_payment(
|
|
22633
23034
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -23090,6 +23491,19 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
23090
23491
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
23091
23492
|
value);
|
|
23092
23493
|
}
|
|
23494
|
+
jsi::Value NativeBreezSdkSpark::
|
|
23495
|
+
cpp_uniffi_breez_sdk_spark_fn_method_externalsparksigner_is_remote(
|
|
23496
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
23497
|
+
size_t count) {
|
|
23498
|
+
RustCallStatus status =
|
|
23499
|
+
uniffi::breez_sdk_spark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
23500
|
+
auto value = uniffi_breez_sdk_spark_fn_method_externalsparksigner_is_remote(
|
|
23501
|
+
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), &status);
|
|
23502
|
+
uniffi::breez_sdk_spark::Bridging<RustCallStatus>::copyIntoJs(
|
|
23503
|
+
rt, callInvoker, status, args[count - 1]);
|
|
23504
|
+
|
|
23505
|
+
return uniffi_jsi::Bridging<int8_t>::toJs(rt, callInvoker, value);
|
|
23506
|
+
}
|
|
23093
23507
|
jsi::Value NativeBreezSdkSpark::
|
|
23094
23508
|
cpp_uniffi_breez_sdk_spark_fn_method_externalsparksigner_get_static_deposit_public_key(
|
|
23095
23509
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -23900,6 +24314,17 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
23900
24314
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
23901
24315
|
value);
|
|
23902
24316
|
}
|
|
24317
|
+
jsi::Value NativeBreezSdkSpark::
|
|
24318
|
+
cpp_uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_session_store(
|
|
24319
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
24320
|
+
size_t count) {
|
|
24321
|
+
auto value = uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_session_store(
|
|
24322
|
+
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
|
|
24323
|
+
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[1]));
|
|
24324
|
+
|
|
24325
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
24326
|
+
value);
|
|
24327
|
+
}
|
|
23903
24328
|
jsi::Value NativeBreezSdkSpark::
|
|
23904
24329
|
cpp_uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_shared_context(
|
|
23905
24330
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -24731,6 +25156,20 @@ NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_func_default_server_config(
|
|
|
24731
25156
|
value);
|
|
24732
25157
|
}
|
|
24733
25158
|
jsi::Value
|
|
25159
|
+
NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_func_default_session_store(
|
|
25160
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
25161
|
+
size_t count) {
|
|
25162
|
+
auto value = uniffi_breez_sdk_spark_fn_func_default_session_store(
|
|
25163
|
+
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
|
|
25164
|
+
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
25165
|
+
args[1]),
|
|
25166
|
+
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
25167
|
+
args[2]));
|
|
25168
|
+
|
|
25169
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
25170
|
+
value);
|
|
25171
|
+
}
|
|
25172
|
+
jsi::Value
|
|
24734
25173
|
NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_func_default_storage(
|
|
24735
25174
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
24736
25175
|
size_t count) {
|
|
@@ -25490,6 +25929,14 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
25490
25929
|
|
|
25491
25930
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
25492
25931
|
}
|
|
25932
|
+
jsi::Value NativeBreezSdkSpark::
|
|
25933
|
+
cpp_uniffi_breez_sdk_spark_checksum_func_default_session_store(
|
|
25934
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
25935
|
+
size_t count) {
|
|
25936
|
+
auto value = uniffi_breez_sdk_spark_checksum_func_default_session_store();
|
|
25937
|
+
|
|
25938
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
25939
|
+
}
|
|
25493
25940
|
jsi::Value
|
|
25494
25941
|
NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_checksum_func_default_storage(
|
|
25495
25942
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -25601,6 +26048,24 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
25601
26048
|
|
|
25602
26049
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
25603
26050
|
}
|
|
26051
|
+
jsi::Value NativeBreezSdkSpark::
|
|
26052
|
+
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_lnurl_pay_package(
|
|
26053
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
26054
|
+
size_t count) {
|
|
26055
|
+
auto value =
|
|
26056
|
+
uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_lnurl_pay_package();
|
|
26057
|
+
|
|
26058
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
26059
|
+
}
|
|
26060
|
+
jsi::Value NativeBreezSdkSpark::
|
|
26061
|
+
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_transfer_package(
|
|
26062
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
26063
|
+
size_t count) {
|
|
26064
|
+
auto value =
|
|
26065
|
+
uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_transfer_package();
|
|
26066
|
+
|
|
26067
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
26068
|
+
}
|
|
25604
26069
|
jsi::Value NativeBreezSdkSpark::
|
|
25605
26070
|
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_buy_bitcoin(
|
|
25606
26071
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -25857,6 +26322,24 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
25857
26322
|
|
|
25858
26323
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
25859
26324
|
}
|
|
26325
|
+
jsi::Value NativeBreezSdkSpark::
|
|
26326
|
+
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_publish_signed_lnurl_pay_package(
|
|
26327
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
26328
|
+
size_t count) {
|
|
26329
|
+
auto value =
|
|
26330
|
+
uniffi_breez_sdk_spark_checksum_method_breezsdk_publish_signed_lnurl_pay_package();
|
|
26331
|
+
|
|
26332
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
26333
|
+
}
|
|
26334
|
+
jsi::Value NativeBreezSdkSpark::
|
|
26335
|
+
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_publish_signed_transfer_package(
|
|
26336
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
26337
|
+
size_t count) {
|
|
26338
|
+
auto value =
|
|
26339
|
+
uniffi_breez_sdk_spark_checksum_method_breezsdk_publish_signed_transfer_package();
|
|
26340
|
+
|
|
26341
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
26342
|
+
}
|
|
25860
26343
|
jsi::Value NativeBreezSdkSpark::
|
|
25861
26344
|
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment(
|
|
25862
26345
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -26086,6 +26569,15 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
26086
26569
|
|
|
26087
26570
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
26088
26571
|
}
|
|
26572
|
+
jsi::Value NativeBreezSdkSpark::
|
|
26573
|
+
cpp_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_is_remote(
|
|
26574
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
26575
|
+
size_t count) {
|
|
26576
|
+
auto value =
|
|
26577
|
+
uniffi_breez_sdk_spark_checksum_method_externalsparksigner_is_remote();
|
|
26578
|
+
|
|
26579
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
26580
|
+
}
|
|
26089
26581
|
jsi::Value NativeBreezSdkSpark::
|
|
26090
26582
|
cpp_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_static_deposit_public_key(
|
|
26091
26583
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -26429,6 +26921,15 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
26429
26921
|
|
|
26430
26922
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
26431
26923
|
}
|
|
26924
|
+
jsi::Value NativeBreezSdkSpark::
|
|
26925
|
+
cpp_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_session_store(
|
|
26926
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
26927
|
+
size_t count) {
|
|
26928
|
+
auto value =
|
|
26929
|
+
uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_session_store();
|
|
26930
|
+
|
|
26931
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
26932
|
+
}
|
|
26432
26933
|
jsi::Value NativeBreezSdkSpark::
|
|
26433
26934
|
cpp_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_shared_context(
|
|
26434
26935
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|