@breeztech/breez-sdk-spark-react-native 0.2.6 → 0.3.0-rc2
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 +66 -338
- package/cpp/generated/breez_sdk_spark.hpp +7 -45
- package/lib/commonjs/generated/breez_sdk_common.js +41 -4
- package/lib/commonjs/generated/breez_sdk_common.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark.js +504 -139
- package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
- package/lib/module/generated/breez_sdk_common.js +41 -4
- package/lib/module/generated/breez_sdk_common.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark.js +504 -139
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_common.d.ts +13 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_common.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +4 -14
- 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 +373 -63
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_common.d.ts +13 -1
- package/lib/typescript/module/src/generated/breez_sdk_common.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +4 -14
- 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 +373 -63
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/generated/breez_sdk_common.ts +47 -4
- package/src/generated/breez_sdk_spark-ffi.ts +7 -42
- package/src/generated/breez_sdk_spark.ts +769 -365
|
@@ -136,7 +136,7 @@ typedef void (*UniffiCallbackInterfaceStorageMethod2)(
|
|
|
136
136
|
UniffiForeignFutureCompleteVoid uniffi_future_callback,
|
|
137
137
|
uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
|
|
138
138
|
typedef void (*UniffiCallbackInterfaceStorageMethod3)(
|
|
139
|
-
uint64_t uniffi_handle, RustBuffer
|
|
139
|
+
uint64_t uniffi_handle, RustBuffer request,
|
|
140
140
|
UniffiForeignFutureCompleteRustBuffer uniffi_future_callback,
|
|
141
141
|
uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
|
|
142
142
|
typedef void (*UniffiCallbackInterfaceStorageMethod4)(
|
|
@@ -246,6 +246,9 @@ uniffi_breez_sdk_spark_fn_method_breezsdk_get_lightning_address(void *ptr);
|
|
|
246
246
|
uniffi_breez_sdk_spark_fn_method_breezsdk_get_payment(void *ptr,
|
|
247
247
|
RustBuffer request);
|
|
248
248
|
/*handle*/ uint64_t
|
|
249
|
+
uniffi_breez_sdk_spark_fn_method_breezsdk_get_tokens_metadata(
|
|
250
|
+
void *ptr, RustBuffer request);
|
|
251
|
+
/*handle*/ uint64_t
|
|
249
252
|
uniffi_breez_sdk_spark_fn_method_breezsdk_list_fiat_currencies(void *ptr);
|
|
250
253
|
/*handle*/ uint64_t
|
|
251
254
|
uniffi_breez_sdk_spark_fn_method_breezsdk_list_fiat_rates(void *ptr);
|
|
@@ -258,9 +261,6 @@ uniffi_breez_sdk_spark_fn_method_breezsdk_list_unclaimed_deposits(
|
|
|
258
261
|
/*handle*/ uint64_t
|
|
259
262
|
uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_pay(void *ptr,
|
|
260
263
|
RustBuffer request);
|
|
261
|
-
void uniffi_breez_sdk_spark_fn_method_breezsdk_poll_lightning_send_payment(
|
|
262
|
-
void *ptr, RustBuffer payment, RustBuffer ssp_id,
|
|
263
|
-
RustCallStatus *uniffi_out_err);
|
|
264
264
|
/*handle*/ uint64_t
|
|
265
265
|
uniffi_breez_sdk_spark_fn_method_breezsdk_prepare_lnurl_pay(void *ptr,
|
|
266
266
|
RustBuffer request);
|
|
@@ -271,8 +271,6 @@ uniffi_breez_sdk_spark_fn_method_breezsdk_prepare_send_payment(
|
|
|
271
271
|
uniffi_breez_sdk_spark_fn_method_breezsdk_receive_payment(void *ptr,
|
|
272
272
|
RustBuffer request);
|
|
273
273
|
/*handle*/ uint64_t
|
|
274
|
-
uniffi_breez_sdk_spark_fn_method_breezsdk_recover_lightning_address(void *ptr);
|
|
275
|
-
/*handle*/ uint64_t
|
|
276
274
|
uniffi_breez_sdk_spark_fn_method_breezsdk_refund_deposit(void *ptr,
|
|
277
275
|
RustBuffer request);
|
|
278
276
|
/*handle*/ uint64_t
|
|
@@ -282,22 +280,9 @@ uniffi_breez_sdk_spark_fn_method_breezsdk_register_lightning_address(
|
|
|
282
280
|
uniffi_breez_sdk_spark_fn_method_breezsdk_remove_event_listener(void *ptr,
|
|
283
281
|
RustBuffer id);
|
|
284
282
|
/*handle*/ uint64_t
|
|
285
|
-
uniffi_breez_sdk_spark_fn_method_breezsdk_send_bitcoin_address(
|
|
286
|
-
void *ptr, RustBuffer address, RustBuffer fee_quote, RustBuffer request);
|
|
287
|
-
/*handle*/ uint64_t
|
|
288
|
-
uniffi_breez_sdk_spark_fn_method_breezsdk_send_bolt11_invoice(
|
|
289
|
-
void *ptr, RustBuffer invoice_details, RustBuffer spark_transfer_fee_sats,
|
|
290
|
-
uint64_t lightning_fee_sats, RustBuffer request);
|
|
291
|
-
/*handle*/ uint64_t
|
|
292
283
|
uniffi_breez_sdk_spark_fn_method_breezsdk_send_payment(void *ptr,
|
|
293
284
|
RustBuffer request);
|
|
294
285
|
/*handle*/ uint64_t
|
|
295
|
-
uniffi_breez_sdk_spark_fn_method_breezsdk_send_payment_internal(
|
|
296
|
-
void *ptr, RustBuffer request, int8_t suppress_payment_event);
|
|
297
|
-
/*handle*/ uint64_t
|
|
298
|
-
uniffi_breez_sdk_spark_fn_method_breezsdk_send_spark_address(
|
|
299
|
-
void *ptr, RustBuffer address, RustBuffer request);
|
|
300
|
-
/*handle*/ uint64_t
|
|
301
286
|
uniffi_breez_sdk_spark_fn_method_breezsdk_sync_wallet(void *ptr,
|
|
302
287
|
RustBuffer request);
|
|
303
288
|
/*handle*/ uint64_t
|
|
@@ -342,8 +327,9 @@ uniffi_breez_sdk_spark_fn_method_storage_get_cached_item(void *ptr,
|
|
|
342
327
|
RustBuffer key);
|
|
343
328
|
/*handle*/ uint64_t uniffi_breez_sdk_spark_fn_method_storage_set_cached_item(
|
|
344
329
|
void *ptr, RustBuffer key, RustBuffer value);
|
|
345
|
-
/*handle*/ uint64_t
|
|
346
|
-
|
|
330
|
+
/*handle*/ uint64_t
|
|
331
|
+
uniffi_breez_sdk_spark_fn_method_storage_list_payments(void *ptr,
|
|
332
|
+
RustBuffer request);
|
|
347
333
|
/*handle*/ uint64_t
|
|
348
334
|
uniffi_breez_sdk_spark_fn_method_storage_insert_payment(void *ptr,
|
|
349
335
|
RustBuffer payment);
|
|
@@ -530,30 +516,22 @@ uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info();
|
|
|
530
516
|
uint16_t
|
|
531
517
|
uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address();
|
|
532
518
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment();
|
|
519
|
+
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_metadata();
|
|
533
520
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_currencies();
|
|
534
521
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_rates();
|
|
535
522
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_list_payments();
|
|
536
523
|
uint16_t
|
|
537
524
|
uniffi_breez_sdk_spark_checksum_method_breezsdk_list_unclaimed_deposits();
|
|
538
525
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay();
|
|
539
|
-
uint16_t
|
|
540
|
-
uniffi_breez_sdk_spark_checksum_method_breezsdk_poll_lightning_send_payment();
|
|
541
526
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_lnurl_pay();
|
|
542
527
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_payment();
|
|
543
528
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment();
|
|
544
|
-
uint16_t
|
|
545
|
-
uniffi_breez_sdk_spark_checksum_method_breezsdk_recover_lightning_address();
|
|
546
529
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit();
|
|
547
530
|
uint16_t
|
|
548
531
|
uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address();
|
|
549
532
|
uint16_t
|
|
550
533
|
uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener();
|
|
551
|
-
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_send_bitcoin_address();
|
|
552
|
-
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_send_bolt11_invoice();
|
|
553
534
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment();
|
|
554
|
-
uint16_t
|
|
555
|
-
uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment_internal();
|
|
556
|
-
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_send_spark_address();
|
|
557
535
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet();
|
|
558
536
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_wait_for_payment();
|
|
559
537
|
uint16_t uniffi_breez_sdk_spark_checksum_method_sdkbuilder_build();
|
|
@@ -3706,7 +3684,7 @@ using namespace facebook;
|
|
|
3706
3684
|
|
|
3707
3685
|
// We need to store a lambda in a global so we can call it from
|
|
3708
3686
|
// a function pointer. The function pointer is passed to Rust.
|
|
3709
|
-
static std::function<void(uint64_t, RustBuffer,
|
|
3687
|
+
static std::function<void(uint64_t, RustBuffer,
|
|
3710
3688
|
UniffiForeignFutureCompleteRustBuffer, uint64_t,
|
|
3711
3689
|
UniffiForeignFuture *)>
|
|
3712
3690
|
rsLambda = nullptr;
|
|
@@ -3716,8 +3694,7 @@ static std::function<void(uint64_t, RustBuffer, RustBuffer,
|
|
|
3716
3694
|
static void body(jsi::Runtime &rt,
|
|
3717
3695
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
3718
3696
|
std::shared_ptr<jsi::Value> callbackValue,
|
|
3719
|
-
uint64_t rs_uniffiHandle, RustBuffer
|
|
3720
|
-
RustBuffer rs_limit,
|
|
3697
|
+
uint64_t rs_uniffiHandle, RustBuffer rs_request,
|
|
3721
3698
|
UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback,
|
|
3722
3699
|
uint64_t rs_uniffiCallbackData,
|
|
3723
3700
|
UniffiForeignFuture *rs_uniffiOutReturn) {
|
|
@@ -3726,10 +3703,8 @@ static void body(jsi::Runtime &rt,
|
|
|
3726
3703
|
// We'll use the Bridging class to do this…
|
|
3727
3704
|
auto js_uniffiHandle =
|
|
3728
3705
|
uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, rs_uniffiHandle);
|
|
3729
|
-
auto
|
|
3730
|
-
rt, callInvoker,
|
|
3731
|
-
auto js_limit = uniffi::breez_sdk_spark::Bridging<RustBuffer>::toJs(
|
|
3732
|
-
rt, callInvoker, rs_limit);
|
|
3706
|
+
auto js_request = uniffi::breez_sdk_spark::Bridging<RustBuffer>::toJs(
|
|
3707
|
+
rt, callInvoker, rs_request);
|
|
3733
3708
|
auto js_uniffiFutureCallback = uniffi::breez_sdk_spark::Bridging<
|
|
3734
3709
|
UniffiForeignFutureCompleteRustBuffer>::toJs(rt, callInvoker,
|
|
3735
3710
|
rs_uniffiFutureCallback);
|
|
@@ -3742,7 +3717,7 @@ static void body(jsi::Runtime &rt,
|
|
|
3742
3717
|
try {
|
|
3743
3718
|
// Getting the callback function
|
|
3744
3719
|
auto cb = callbackValue->asObject(rt).asFunction(rt);
|
|
3745
|
-
auto uniffiResult = cb.call(rt, js_uniffiHandle,
|
|
3720
|
+
auto uniffiResult = cb.call(rt, js_uniffiHandle, js_request,
|
|
3746
3721
|
js_uniffiFutureCallback, js_uniffiCallbackData);
|
|
3747
3722
|
|
|
3748
3723
|
// Finally, we need to copy the return value back into the Rust pointer.
|
|
@@ -3757,7 +3732,7 @@ static void body(jsi::Runtime &rt,
|
|
|
3757
3732
|
}
|
|
3758
3733
|
|
|
3759
3734
|
static void
|
|
3760
|
-
callback(uint64_t rs_uniffiHandle, RustBuffer
|
|
3735
|
+
callback(uint64_t rs_uniffiHandle, RustBuffer rs_request,
|
|
3761
3736
|
UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback,
|
|
3762
3737
|
uint64_t rs_uniffiCallbackData,
|
|
3763
3738
|
UniffiForeignFuture *rs_uniffiOutReturn) {
|
|
@@ -3776,7 +3751,7 @@ callback(uint64_t rs_uniffiHandle, RustBuffer rs_offset, RustBuffer rs_limit,
|
|
|
3776
3751
|
|
|
3777
3752
|
// The runtime, the actual callback jsi::funtion, and the callInvoker
|
|
3778
3753
|
// are all in the lambda.
|
|
3779
|
-
rsLambda(rs_uniffiHandle,
|
|
3754
|
+
rsLambda(rs_uniffiHandle, rs_request, rs_uniffiFutureCallback,
|
|
3780
3755
|
rs_uniffiCallbackData, rs_uniffiOutReturn);
|
|
3781
3756
|
}
|
|
3782
3757
|
|
|
@@ -3800,19 +3775,18 @@ makeCallbackFunction( // uniffi::breez_sdk_spark::cb::callbackinterfacestorageme
|
|
|
3800
3775
|
auto callbackFunction = value.asObject(rt).asFunction(rt);
|
|
3801
3776
|
auto callbackValue = std::make_shared<jsi::Value>(rt, callbackFunction);
|
|
3802
3777
|
rsLambda = [&rt, callInvoker, callbackValue](
|
|
3803
|
-
uint64_t rs_uniffiHandle, RustBuffer
|
|
3804
|
-
RustBuffer rs_limit,
|
|
3778
|
+
uint64_t rs_uniffiHandle, RustBuffer rs_request,
|
|
3805
3779
|
UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback,
|
|
3806
3780
|
uint64_t rs_uniffiCallbackData,
|
|
3807
3781
|
UniffiForeignFuture *rs_uniffiOutReturn) {
|
|
3808
3782
|
// We immediately make a lambda which will do the work of transforming the
|
|
3809
3783
|
// arguments into JSI values and calling the callback.
|
|
3810
3784
|
uniffi_runtime::UniffiCallFunc jsLambda =
|
|
3811
|
-
[callInvoker, callbackValue, rs_uniffiHandle,
|
|
3785
|
+
[callInvoker, callbackValue, rs_uniffiHandle, rs_request,
|
|
3812
3786
|
rs_uniffiFutureCallback, rs_uniffiCallbackData,
|
|
3813
3787
|
rs_uniffiOutReturn](jsi::Runtime &rt) mutable {
|
|
3814
|
-
body(rt, callInvoker, callbackValue, rs_uniffiHandle,
|
|
3815
|
-
|
|
3788
|
+
body(rt, callInvoker, callbackValue, rs_uniffiHandle, rs_request,
|
|
3789
|
+
rs_uniffiFutureCallback, rs_uniffiCallbackData,
|
|
3816
3790
|
rs_uniffiOutReturn);
|
|
3817
3791
|
};
|
|
3818
3792
|
// We'll then call that lambda from the callInvoker which will
|
|
@@ -5407,6 +5381,18 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
5407
5381
|
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_get_payment(
|
|
5408
5382
|
rt, thisVal, args, count);
|
|
5409
5383
|
});
|
|
5384
|
+
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_get_tokens_metadata"] =
|
|
5385
|
+
jsi::Function::createFromHostFunction(
|
|
5386
|
+
rt,
|
|
5387
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_method_"
|
|
5388
|
+
"breezsdk_get_tokens_metadata"),
|
|
5389
|
+
2,
|
|
5390
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
5391
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5392
|
+
return this
|
|
5393
|
+
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_get_tokens_metadata(
|
|
5394
|
+
rt, thisVal, args, count);
|
|
5395
|
+
});
|
|
5410
5396
|
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_list_fiat_currencies"] =
|
|
5411
5397
|
jsi::Function::createFromHostFunction(
|
|
5412
5398
|
rt,
|
|
@@ -5469,18 +5455,6 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
5469
5455
|
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_pay(
|
|
5470
5456
|
rt, thisVal, args, count);
|
|
5471
5457
|
});
|
|
5472
|
-
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_poll_lightning_send_"
|
|
5473
|
-
"payment"] = jsi::Function::createFromHostFunction(
|
|
5474
|
-
rt,
|
|
5475
|
-
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_method_"
|
|
5476
|
-
"breezsdk_poll_lightning_send_payment"),
|
|
5477
|
-
3,
|
|
5478
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
5479
|
-
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5480
|
-
return this
|
|
5481
|
-
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_poll_lightning_send_payment(
|
|
5482
|
-
rt, thisVal, args, count);
|
|
5483
|
-
});
|
|
5484
5458
|
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_prepare_lnurl_pay"] =
|
|
5485
5459
|
jsi::Function::createFromHostFunction(
|
|
5486
5460
|
rt,
|
|
@@ -5518,18 +5492,6 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
5518
5492
|
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_receive_payment(
|
|
5519
5493
|
rt, thisVal, args, count);
|
|
5520
5494
|
});
|
|
5521
|
-
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_recover_lightning_"
|
|
5522
|
-
"address"] = jsi::Function::createFromHostFunction(
|
|
5523
|
-
rt,
|
|
5524
|
-
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_method_"
|
|
5525
|
-
"breezsdk_recover_lightning_address"),
|
|
5526
|
-
1,
|
|
5527
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
5528
|
-
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5529
|
-
return this
|
|
5530
|
-
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_recover_lightning_address(
|
|
5531
|
-
rt, thisVal, args, count);
|
|
5532
|
-
});
|
|
5533
5495
|
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_refund_deposit"] =
|
|
5534
5496
|
jsi::Function::createFromHostFunction(
|
|
5535
5497
|
rt,
|
|
@@ -5567,30 +5529,6 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
5567
5529
|
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_remove_event_listener(
|
|
5568
5530
|
rt, thisVal, args, count);
|
|
5569
5531
|
});
|
|
5570
|
-
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_send_bitcoin_address"] =
|
|
5571
|
-
jsi::Function::createFromHostFunction(
|
|
5572
|
-
rt,
|
|
5573
|
-
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_method_"
|
|
5574
|
-
"breezsdk_send_bitcoin_address"),
|
|
5575
|
-
4,
|
|
5576
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
5577
|
-
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5578
|
-
return this
|
|
5579
|
-
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_send_bitcoin_address(
|
|
5580
|
-
rt, thisVal, args, count);
|
|
5581
|
-
});
|
|
5582
|
-
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_send_bolt11_invoice"] =
|
|
5583
|
-
jsi::Function::createFromHostFunction(
|
|
5584
|
-
rt,
|
|
5585
|
-
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_method_"
|
|
5586
|
-
"breezsdk_send_bolt11_invoice"),
|
|
5587
|
-
5,
|
|
5588
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
5589
|
-
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5590
|
-
return this
|
|
5591
|
-
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_send_bolt11_invoice(
|
|
5592
|
-
rt, thisVal, args, count);
|
|
5593
|
-
});
|
|
5594
5532
|
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_send_payment"] =
|
|
5595
5533
|
jsi::Function::createFromHostFunction(
|
|
5596
5534
|
rt,
|
|
@@ -5604,30 +5542,6 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
5604
5542
|
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_send_payment(
|
|
5605
5543
|
rt, thisVal, args, count);
|
|
5606
5544
|
});
|
|
5607
|
-
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_send_payment_"
|
|
5608
|
-
"internal"] = jsi::Function::createFromHostFunction(
|
|
5609
|
-
rt,
|
|
5610
|
-
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_method_"
|
|
5611
|
-
"breezsdk_send_payment_internal"),
|
|
5612
|
-
3,
|
|
5613
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
5614
|
-
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5615
|
-
return this
|
|
5616
|
-
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_send_payment_internal(
|
|
5617
|
-
rt, thisVal, args, count);
|
|
5618
|
-
});
|
|
5619
|
-
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_send_spark_address"] =
|
|
5620
|
-
jsi::Function::createFromHostFunction(
|
|
5621
|
-
rt,
|
|
5622
|
-
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_method_"
|
|
5623
|
-
"breezsdk_send_spark_address"),
|
|
5624
|
-
3,
|
|
5625
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
5626
|
-
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5627
|
-
return this
|
|
5628
|
-
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_send_spark_address(
|
|
5629
|
-
rt, thisVal, args, count);
|
|
5630
|
-
});
|
|
5631
5545
|
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_sync_wallet"] =
|
|
5632
5546
|
jsi::Function::createFromHostFunction(
|
|
5633
5547
|
rt,
|
|
@@ -5824,7 +5738,7 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
5824
5738
|
jsi::PropNameID::forAscii(
|
|
5825
5739
|
rt,
|
|
5826
5740
|
"ubrn_uniffi_breez_sdk_spark_fn_method_storage_list_payments"),
|
|
5827
|
-
|
|
5741
|
+
2,
|
|
5828
5742
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
5829
5743
|
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5830
5744
|
return this
|
|
@@ -6766,6 +6680,18 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
6766
6680
|
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment(
|
|
6767
6681
|
rt, thisVal, args, count);
|
|
6768
6682
|
});
|
|
6683
|
+
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_"
|
|
6684
|
+
"metadata"] = jsi::Function::createFromHostFunction(
|
|
6685
|
+
rt,
|
|
6686
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_checksum_"
|
|
6687
|
+
"method_breezsdk_get_tokens_metadata"),
|
|
6688
|
+
0,
|
|
6689
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
6690
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6691
|
+
return this
|
|
6692
|
+
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_metadata(
|
|
6693
|
+
rt, thisVal, args, count);
|
|
6694
|
+
});
|
|
6769
6695
|
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_"
|
|
6770
6696
|
"currencies"] = jsi::Function::createFromHostFunction(
|
|
6771
6697
|
rt,
|
|
@@ -6827,19 +6753,6 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
6827
6753
|
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay(
|
|
6828
6754
|
rt, thisVal, args, count);
|
|
6829
6755
|
});
|
|
6830
|
-
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_poll_lightning_"
|
|
6831
|
-
"send_payment"] = jsi::Function::createFromHostFunction(
|
|
6832
|
-
rt,
|
|
6833
|
-
jsi::PropNameID::forAscii(rt,
|
|
6834
|
-
"ubrn_uniffi_breez_sdk_spark_checksum_method_"
|
|
6835
|
-
"breezsdk_poll_lightning_send_payment"),
|
|
6836
|
-
0,
|
|
6837
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
6838
|
-
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6839
|
-
return this
|
|
6840
|
-
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_poll_lightning_send_payment(
|
|
6841
|
-
rt, thisVal, args, count);
|
|
6842
|
-
});
|
|
6843
6756
|
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_lnurl_"
|
|
6844
6757
|
"pay"] = jsi::Function::createFromHostFunction(
|
|
6845
6758
|
rt,
|
|
@@ -6876,19 +6789,6 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
6876
6789
|
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment(
|
|
6877
6790
|
rt, thisVal, args, count);
|
|
6878
6791
|
});
|
|
6879
|
-
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_recover_"
|
|
6880
|
-
"lightning_address"] = jsi::Function::createFromHostFunction(
|
|
6881
|
-
rt,
|
|
6882
|
-
jsi::PropNameID::forAscii(rt,
|
|
6883
|
-
"ubrn_uniffi_breez_sdk_spark_checksum_method_"
|
|
6884
|
-
"breezsdk_recover_lightning_address"),
|
|
6885
|
-
0,
|
|
6886
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
6887
|
-
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6888
|
-
return this
|
|
6889
|
-
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_recover_lightning_address(
|
|
6890
|
-
rt, thisVal, args, count);
|
|
6891
|
-
});
|
|
6892
6792
|
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit"] =
|
|
6893
6793
|
jsi::Function::createFromHostFunction(
|
|
6894
6794
|
rt,
|
|
@@ -6926,30 +6826,6 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
6926
6826
|
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener(
|
|
6927
6827
|
rt, thisVal, args, count);
|
|
6928
6828
|
});
|
|
6929
|
-
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_bitcoin_"
|
|
6930
|
-
"address"] = jsi::Function::createFromHostFunction(
|
|
6931
|
-
rt,
|
|
6932
|
-
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_checksum_"
|
|
6933
|
-
"method_breezsdk_send_bitcoin_address"),
|
|
6934
|
-
0,
|
|
6935
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
6936
|
-
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6937
|
-
return this
|
|
6938
|
-
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_bitcoin_address(
|
|
6939
|
-
rt, thisVal, args, count);
|
|
6940
|
-
});
|
|
6941
|
-
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_bolt11_"
|
|
6942
|
-
"invoice"] = jsi::Function::createFromHostFunction(
|
|
6943
|
-
rt,
|
|
6944
|
-
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_checksum_"
|
|
6945
|
-
"method_breezsdk_send_bolt11_invoice"),
|
|
6946
|
-
0,
|
|
6947
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
6948
|
-
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6949
|
-
return this
|
|
6950
|
-
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_bolt11_invoice(
|
|
6951
|
-
rt, thisVal, args, count);
|
|
6952
|
-
});
|
|
6953
6829
|
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment"] =
|
|
6954
6830
|
jsi::Function::createFromHostFunction(
|
|
6955
6831
|
rt,
|
|
@@ -6962,30 +6838,6 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
6962
6838
|
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment(
|
|
6963
6839
|
rt, thisVal, args, count);
|
|
6964
6840
|
});
|
|
6965
|
-
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment_"
|
|
6966
|
-
"internal"] = jsi::Function::createFromHostFunction(
|
|
6967
|
-
rt,
|
|
6968
|
-
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_checksum_"
|
|
6969
|
-
"method_breezsdk_send_payment_internal"),
|
|
6970
|
-
0,
|
|
6971
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
6972
|
-
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6973
|
-
return this
|
|
6974
|
-
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment_internal(
|
|
6975
|
-
rt, thisVal, args, count);
|
|
6976
|
-
});
|
|
6977
|
-
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_spark_"
|
|
6978
|
-
"address"] = jsi::Function::createFromHostFunction(
|
|
6979
|
-
rt,
|
|
6980
|
-
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_checksum_"
|
|
6981
|
-
"method_breezsdk_send_spark_address"),
|
|
6982
|
-
0,
|
|
6983
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
6984
|
-
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6985
|
-
return this
|
|
6986
|
-
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_spark_address(
|
|
6987
|
-
rt, thisVal, args, count);
|
|
6988
|
-
});
|
|
6989
6841
|
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet"] =
|
|
6990
6842
|
jsi::Function::createFromHostFunction(
|
|
6991
6843
|
rt,
|
|
@@ -7745,6 +7597,18 @@ NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_get_payment(
|
|
|
7745
7597
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
7746
7598
|
value);
|
|
7747
7599
|
}
|
|
7600
|
+
jsi::Value NativeBreezSdkSpark::
|
|
7601
|
+
cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_get_tokens_metadata(
|
|
7602
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
7603
|
+
size_t count) {
|
|
7604
|
+
auto value = uniffi_breez_sdk_spark_fn_method_breezsdk_get_tokens_metadata(
|
|
7605
|
+
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
|
|
7606
|
+
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
7607
|
+
args[1]));
|
|
7608
|
+
|
|
7609
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
7610
|
+
value);
|
|
7611
|
+
}
|
|
7748
7612
|
jsi::Value NativeBreezSdkSpark::
|
|
7749
7613
|
cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_list_fiat_currencies(
|
|
7750
7614
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -7802,24 +7666,6 @@ NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_pay(
|
|
|
7802
7666
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
7803
7667
|
value);
|
|
7804
7668
|
}
|
|
7805
|
-
jsi::Value NativeBreezSdkSpark::
|
|
7806
|
-
cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_poll_lightning_send_payment(
|
|
7807
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
7808
|
-
size_t count) {
|
|
7809
|
-
RustCallStatus status =
|
|
7810
|
-
uniffi::breez_sdk_spark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
7811
|
-
uniffi_breez_sdk_spark_fn_method_breezsdk_poll_lightning_send_payment(
|
|
7812
|
-
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
|
|
7813
|
-
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
7814
|
-
args[1]),
|
|
7815
|
-
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
7816
|
-
args[2]),
|
|
7817
|
-
&status);
|
|
7818
|
-
uniffi::breez_sdk_spark::Bridging<RustCallStatus>::copyIntoJs(
|
|
7819
|
-
rt, callInvoker, status, args[count - 1]);
|
|
7820
|
-
|
|
7821
|
-
return jsi::Value::undefined();
|
|
7822
|
-
}
|
|
7823
7669
|
jsi::Value NativeBreezSdkSpark::
|
|
7824
7670
|
cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_prepare_lnurl_pay(
|
|
7825
7671
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -7856,17 +7702,6 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
7856
7702
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
7857
7703
|
value);
|
|
7858
7704
|
}
|
|
7859
|
-
jsi::Value NativeBreezSdkSpark::
|
|
7860
|
-
cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_recover_lightning_address(
|
|
7861
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
7862
|
-
size_t count) {
|
|
7863
|
-
auto value =
|
|
7864
|
-
uniffi_breez_sdk_spark_fn_method_breezsdk_recover_lightning_address(
|
|
7865
|
-
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]));
|
|
7866
|
-
|
|
7867
|
-
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
7868
|
-
value);
|
|
7869
|
-
}
|
|
7870
7705
|
jsi::Value NativeBreezSdkSpark::
|
|
7871
7706
|
cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_refund_deposit(
|
|
7872
7707
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -7904,39 +7739,6 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
7904
7739
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
7905
7740
|
value);
|
|
7906
7741
|
}
|
|
7907
|
-
jsi::Value NativeBreezSdkSpark::
|
|
7908
|
-
cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_send_bitcoin_address(
|
|
7909
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
7910
|
-
size_t count) {
|
|
7911
|
-
auto value = uniffi_breez_sdk_spark_fn_method_breezsdk_send_bitcoin_address(
|
|
7912
|
-
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
|
|
7913
|
-
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
7914
|
-
args[1]),
|
|
7915
|
-
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
7916
|
-
args[2]),
|
|
7917
|
-
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
7918
|
-
args[3]));
|
|
7919
|
-
|
|
7920
|
-
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
7921
|
-
value);
|
|
7922
|
-
}
|
|
7923
|
-
jsi::Value NativeBreezSdkSpark::
|
|
7924
|
-
cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_send_bolt11_invoice(
|
|
7925
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
7926
|
-
size_t count) {
|
|
7927
|
-
auto value = uniffi_breez_sdk_spark_fn_method_breezsdk_send_bolt11_invoice(
|
|
7928
|
-
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
|
|
7929
|
-
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
7930
|
-
args[1]),
|
|
7931
|
-
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
7932
|
-
args[2]),
|
|
7933
|
-
uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[3]),
|
|
7934
|
-
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
7935
|
-
args[4]));
|
|
7936
|
-
|
|
7937
|
-
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
7938
|
-
value);
|
|
7939
|
-
}
|
|
7940
7742
|
jsi::Value
|
|
7941
7743
|
NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_send_payment(
|
|
7942
7744
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -7949,33 +7751,6 @@ NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_send_payment(
|
|
|
7949
7751
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
7950
7752
|
value);
|
|
7951
7753
|
}
|
|
7952
|
-
jsi::Value NativeBreezSdkSpark::
|
|
7953
|
-
cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_send_payment_internal(
|
|
7954
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
7955
|
-
size_t count) {
|
|
7956
|
-
auto value = uniffi_breez_sdk_spark_fn_method_breezsdk_send_payment_internal(
|
|
7957
|
-
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
|
|
7958
|
-
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
7959
|
-
args[1]),
|
|
7960
|
-
uniffi_jsi::Bridging<int8_t>::fromJs(rt, callInvoker, args[2]));
|
|
7961
|
-
|
|
7962
|
-
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
7963
|
-
value);
|
|
7964
|
-
}
|
|
7965
|
-
jsi::Value NativeBreezSdkSpark::
|
|
7966
|
-
cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_send_spark_address(
|
|
7967
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
7968
|
-
size_t count) {
|
|
7969
|
-
auto value = uniffi_breez_sdk_spark_fn_method_breezsdk_send_spark_address(
|
|
7970
|
-
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
|
|
7971
|
-
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
7972
|
-
args[1]),
|
|
7973
|
-
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
7974
|
-
args[2]));
|
|
7975
|
-
|
|
7976
|
-
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
7977
|
-
value);
|
|
7978
|
-
}
|
|
7979
7754
|
jsi::Value
|
|
7980
7755
|
NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_sync_wallet(
|
|
7981
7756
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -8183,9 +7958,7 @@ NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_method_storage_list_payments(
|
|
|
8183
7958
|
auto value = uniffi_breez_sdk_spark_fn_method_storage_list_payments(
|
|
8184
7959
|
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
|
|
8185
7960
|
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
8186
|
-
args[1])
|
|
8187
|
-
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
8188
|
-
args[2]));
|
|
7961
|
+
args[1]));
|
|
8189
7962
|
|
|
8190
7963
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
8191
7964
|
value);
|
|
@@ -9120,6 +8893,15 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
9120
8893
|
|
|
9121
8894
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9122
8895
|
}
|
|
8896
|
+
jsi::Value NativeBreezSdkSpark::
|
|
8897
|
+
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_metadata(
|
|
8898
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
8899
|
+
size_t count) {
|
|
8900
|
+
auto value =
|
|
8901
|
+
uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_metadata();
|
|
8902
|
+
|
|
8903
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8904
|
+
}
|
|
9123
8905
|
jsi::Value NativeBreezSdkSpark::
|
|
9124
8906
|
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_currencies(
|
|
9125
8907
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -9163,15 +8945,6 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
9163
8945
|
|
|
9164
8946
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9165
8947
|
}
|
|
9166
|
-
jsi::Value NativeBreezSdkSpark::
|
|
9167
|
-
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_poll_lightning_send_payment(
|
|
9168
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
9169
|
-
size_t count) {
|
|
9170
|
-
auto value =
|
|
9171
|
-
uniffi_breez_sdk_spark_checksum_method_breezsdk_poll_lightning_send_payment();
|
|
9172
|
-
|
|
9173
|
-
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9174
|
-
}
|
|
9175
8948
|
jsi::Value NativeBreezSdkSpark::
|
|
9176
8949
|
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_lnurl_pay(
|
|
9177
8950
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -9199,15 +8972,6 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
9199
8972
|
|
|
9200
8973
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9201
8974
|
}
|
|
9202
|
-
jsi::Value NativeBreezSdkSpark::
|
|
9203
|
-
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_recover_lightning_address(
|
|
9204
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
9205
|
-
size_t count) {
|
|
9206
|
-
auto value =
|
|
9207
|
-
uniffi_breez_sdk_spark_checksum_method_breezsdk_recover_lightning_address();
|
|
9208
|
-
|
|
9209
|
-
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9210
|
-
}
|
|
9211
8975
|
jsi::Value NativeBreezSdkSpark::
|
|
9212
8976
|
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit(
|
|
9213
8977
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -9234,24 +8998,6 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
9234
8998
|
|
|
9235
8999
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9236
9000
|
}
|
|
9237
|
-
jsi::Value NativeBreezSdkSpark::
|
|
9238
|
-
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_bitcoin_address(
|
|
9239
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
9240
|
-
size_t count) {
|
|
9241
|
-
auto value =
|
|
9242
|
-
uniffi_breez_sdk_spark_checksum_method_breezsdk_send_bitcoin_address();
|
|
9243
|
-
|
|
9244
|
-
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9245
|
-
}
|
|
9246
|
-
jsi::Value NativeBreezSdkSpark::
|
|
9247
|
-
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_bolt11_invoice(
|
|
9248
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
9249
|
-
size_t count) {
|
|
9250
|
-
auto value =
|
|
9251
|
-
uniffi_breez_sdk_spark_checksum_method_breezsdk_send_bolt11_invoice();
|
|
9252
|
-
|
|
9253
|
-
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9254
|
-
}
|
|
9255
9001
|
jsi::Value NativeBreezSdkSpark::
|
|
9256
9002
|
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment(
|
|
9257
9003
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -9260,24 +9006,6 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
9260
9006
|
|
|
9261
9007
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9262
9008
|
}
|
|
9263
|
-
jsi::Value NativeBreezSdkSpark::
|
|
9264
|
-
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment_internal(
|
|
9265
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
9266
|
-
size_t count) {
|
|
9267
|
-
auto value =
|
|
9268
|
-
uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment_internal();
|
|
9269
|
-
|
|
9270
|
-
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9271
|
-
}
|
|
9272
|
-
jsi::Value NativeBreezSdkSpark::
|
|
9273
|
-
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_spark_address(
|
|
9274
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
9275
|
-
size_t count) {
|
|
9276
|
-
auto value =
|
|
9277
|
-
uniffi_breez_sdk_spark_checksum_method_breezsdk_send_spark_address();
|
|
9278
|
-
|
|
9279
|
-
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9280
|
-
}
|
|
9281
9009
|
jsi::Value NativeBreezSdkSpark::
|
|
9282
9010
|
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet(
|
|
9283
9011
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|