@breeztech/breez-sdk-spark-react-native 0.12.2-dev3 → 0.12.2

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.
Files changed (36) hide show
  1. package/README.md +6 -6
  2. package/android/CMakeLists.txt +4 -3
  3. package/{BreezSdkSparkReactNative.podspec → breeztech-breez-sdk-spark-react-native.podspec} +2 -2
  4. package/cpp/generated/breez_sdk_spark.cpp +448 -657
  5. package/cpp/generated/breez_sdk_spark.hpp +29 -49
  6. package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
  7. package/lib/commonjs/generated/breez_sdk_spark.js +155 -366
  8. package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
  9. package/lib/commonjs/generated/breez_sdk_spark_bindings.js +2 -4
  10. package/lib/commonjs/generated/breez_sdk_spark_bindings.js.map +1 -1
  11. package/lib/commonjs/index.js +1 -11
  12. package/lib/commonjs/index.js.map +1 -1
  13. package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -1
  14. package/lib/module/generated/breez_sdk_spark.js +154 -365
  15. package/lib/module/generated/breez_sdk_spark.js.map +1 -1
  16. package/lib/module/generated/breez_sdk_spark_bindings.js +2 -4
  17. package/lib/module/generated/breez_sdk_spark_bindings.js.map +1 -1
  18. package/lib/module/index.js +0 -7
  19. package/lib/module/index.js.map +1 -1
  20. package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +71 -77
  21. package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
  22. package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts +116 -1037
  23. package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
  24. package/lib/typescript/commonjs/src/index.d.ts +0 -1
  25. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  26. package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +71 -77
  27. package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
  28. package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts +116 -1037
  29. package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
  30. package/lib/typescript/module/src/index.d.ts +0 -1
  31. package/lib/typescript/module/src/index.d.ts.map +1 -1
  32. package/package.json +4 -4
  33. package/src/generated/breez_sdk_spark-ffi.ts +91 -106
  34. package/src/generated/breez_sdk_spark.ts +1030 -2796
  35. package/src/generated/breez_sdk_spark_bindings.ts +2 -2
  36. package/src/index.tsx +0 -7
@@ -278,7 +278,7 @@ typedef void (*UniffiCallbackInterfaceStorageMethod8)(
278
278
  uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
279
279
  typedef void (*UniffiCallbackInterfaceStorageMethod9)(
280
280
  uint64_t uniffi_handle, RustBuffer txid, uint32_t vout,
281
- uint64_t amount_sats, int8_t is_mature,
281
+ uint64_t amount_sats,
282
282
  UniffiForeignFutureCompleteVoid uniffi_future_callback,
283
283
  uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
284
284
  typedef void (*UniffiCallbackInterfaceStorageMethod10)(
@@ -529,8 +529,6 @@ uniffi_breez_sdk_spark_fn_method_breezsdk_list_payments(void *ptr,
529
529
  uniffi_breez_sdk_spark_fn_method_breezsdk_list_unclaimed_deposits(
530
530
  void *ptr, RustBuffer request);
531
531
  /*handle*/ uint64_t
532
- uniffi_breez_sdk_spark_fn_method_breezsdk_list_webhooks(void *ptr);
533
- /*handle*/ uint64_t
534
532
  uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_auth(void *ptr,
535
533
  RustBuffer request_data);
536
534
  /*handle*/ uint64_t
@@ -559,9 +557,6 @@ uniffi_breez_sdk_spark_fn_method_breezsdk_refund_deposit(void *ptr,
559
557
  uniffi_breez_sdk_spark_fn_method_breezsdk_register_lightning_address(
560
558
  void *ptr, RustBuffer request);
561
559
  /*handle*/ uint64_t
562
- uniffi_breez_sdk_spark_fn_method_breezsdk_register_webhook(void *ptr,
563
- RustBuffer request);
564
- /*handle*/ uint64_t
565
560
  uniffi_breez_sdk_spark_fn_method_breezsdk_remove_event_listener(void *ptr,
566
561
  RustBuffer id);
567
562
  /*handle*/ uint64_t
@@ -570,15 +565,12 @@ uniffi_breez_sdk_spark_fn_method_breezsdk_send_payment(void *ptr,
570
565
  /*handle*/ uint64_t
571
566
  uniffi_breez_sdk_spark_fn_method_breezsdk_sign_message(void *ptr,
572
567
  RustBuffer request);
573
- /*handle*/ uint64_t
574
- uniffi_breez_sdk_spark_fn_method_breezsdk_start_leaf_optimization(void *ptr);
568
+ void uniffi_breez_sdk_spark_fn_method_breezsdk_start_leaf_optimization(
569
+ void *ptr, RustCallStatus *uniffi_out_err);
575
570
  /*handle*/ uint64_t
576
571
  uniffi_breez_sdk_spark_fn_method_breezsdk_sync_wallet(void *ptr,
577
572
  RustBuffer request);
578
573
  /*handle*/ uint64_t
579
- uniffi_breez_sdk_spark_fn_method_breezsdk_unregister_webhook(
580
- void *ptr, RustBuffer request);
581
- /*handle*/ uint64_t
582
574
  uniffi_breez_sdk_spark_fn_method_breezsdk_update_contact(void *ptr,
583
575
  RustBuffer request);
584
576
  /*handle*/ uint64_t
@@ -776,8 +768,7 @@ uniffi_breez_sdk_spark_fn_method_storage_get_payment_by_invoice(
776
768
  uniffi_breez_sdk_spark_fn_method_storage_get_payments_by_parent_ids(
777
769
  void *ptr, RustBuffer parent_payment_ids);
778
770
  /*handle*/ uint64_t uniffi_breez_sdk_spark_fn_method_storage_add_deposit(
779
- void *ptr, RustBuffer txid, uint32_t vout, uint64_t amount_sats,
780
- int8_t is_mature);
771
+ void *ptr, RustBuffer txid, uint32_t vout, uint64_t amount_sats);
781
772
  /*handle*/ uint64_t uniffi_breez_sdk_spark_fn_method_storage_delete_deposit(
782
773
  void *ptr, RustBuffer txid, uint32_t vout);
783
774
  /*handle*/ uint64_t
@@ -1039,7 +1030,6 @@ uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_rates();
1039
1030
  uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_list_payments();
1040
1031
  uint16_t
1041
1032
  uniffi_breez_sdk_spark_checksum_method_breezsdk_list_unclaimed_deposits();
1042
- uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_list_webhooks();
1043
1033
  uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_auth();
1044
1034
  uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay();
1045
1035
  uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_withdraw();
@@ -1051,7 +1041,6 @@ uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_recommended_fees();
1051
1041
  uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit();
1052
1042
  uint16_t
1053
1043
  uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address();
1054
- uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_register_webhook();
1055
1044
  uint16_t
1056
1045
  uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener();
1057
1046
  uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment();
@@ -1059,7 +1048,6 @@ uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message();
1059
1048
  uint16_t
1060
1049
  uniffi_breez_sdk_spark_checksum_method_breezsdk_start_leaf_optimization();
1061
1050
  uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet();
1062
- uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_unregister_webhook();
1063
1051
  uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_update_contact();
1064
1052
  uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_update_user_settings();
1065
1053
  uint16_t
@@ -3620,11 +3608,10 @@ static void body(jsi::Runtime &rt,
3620
3608
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_event,
3621
3609
  js_uniffiFutureCallback, js_uniffiCallbackData);
3622
3610
 
3623
- // return type is MutReference(Struct("ForeignFuture"))
3624
3611
  // Finally, we need to copy the return value back into the Rust pointer.
3625
- *rs_uniffiOutReturn =
3626
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
3627
- rt, callInvoker, uniffiResult);
3612
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
3613
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
3614
+ uniffiResult);
3628
3615
  } catch (const jsi::JSError &error) {
3629
3616
  std::cout
3630
3617
  << "Error in callback UniffiCallbackInterfaceEventListenerMethod0: "
@@ -3896,11 +3883,10 @@ static void body(jsi::Runtime &rt,
3896
3883
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_address,
3897
3884
  js_uniffiFutureCallback, js_uniffiCallbackData);
3898
3885
 
3899
- // return type is MutReference(Struct("ForeignFuture"))
3900
3886
  // Finally, we need to copy the return value back into the Rust pointer.
3901
- *rs_uniffiOutReturn =
3902
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
3903
- rt, callInvoker, uniffiResult);
3887
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
3888
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
3889
+ uniffiResult);
3904
3890
  } catch (const jsi::JSError &error) {
3905
3891
  std::cout << "Error in callback "
3906
3892
  "UniffiCallbackInterfaceBitcoinChainServiceMethod0: "
@@ -4042,11 +4028,10 @@ static void body(jsi::Runtime &rt,
4042
4028
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_txid,
4043
4029
  js_uniffiFutureCallback, js_uniffiCallbackData);
4044
4030
 
4045
- // return type is MutReference(Struct("ForeignFuture"))
4046
4031
  // Finally, we need to copy the return value back into the Rust pointer.
4047
- *rs_uniffiOutReturn =
4048
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
4049
- rt, callInvoker, uniffiResult);
4032
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
4033
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
4034
+ uniffiResult);
4050
4035
  } catch (const jsi::JSError &error) {
4051
4036
  std::cout << "Error in callback "
4052
4037
  "UniffiCallbackInterfaceBitcoinChainServiceMethod1: "
@@ -4188,11 +4173,10 @@ static void body(jsi::Runtime &rt,
4188
4173
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_txid,
4189
4174
  js_uniffiFutureCallback, js_uniffiCallbackData);
4190
4175
 
4191
- // return type is MutReference(Struct("ForeignFuture"))
4192
4176
  // Finally, we need to copy the return value back into the Rust pointer.
4193
- *rs_uniffiOutReturn =
4194
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
4195
- rt, callInvoker, uniffiResult);
4177
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
4178
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
4179
+ uniffiResult);
4196
4180
  } catch (const jsi::JSError &error) {
4197
4181
  std::cout << "Error in callback "
4198
4182
  "UniffiCallbackInterfaceBitcoinChainServiceMethod2: "
@@ -4333,11 +4317,10 @@ static void body(jsi::Runtime &rt,
4333
4317
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_tx,
4334
4318
  js_uniffiFutureCallback, js_uniffiCallbackData);
4335
4319
 
4336
- // return type is MutReference(Struct("ForeignFuture"))
4337
4320
  // Finally, we need to copy the return value back into the Rust pointer.
4338
- *rs_uniffiOutReturn =
4339
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
4340
- rt, callInvoker, uniffiResult);
4321
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
4322
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
4323
+ uniffiResult);
4341
4324
  } catch (const jsi::JSError &error) {
4342
4325
  std::cout << "Error in callback "
4343
4326
  "UniffiCallbackInterfaceBitcoinChainServiceMethod3: "
@@ -4475,11 +4458,10 @@ static void body(jsi::Runtime &rt,
4475
4458
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_uniffiFutureCallback,
4476
4459
  js_uniffiCallbackData);
4477
4460
 
4478
- // return type is MutReference(Struct("ForeignFuture"))
4479
4461
  // Finally, we need to copy the return value back into the Rust pointer.
4480
- *rs_uniffiOutReturn =
4481
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
4482
- rt, callInvoker, uniffiResult);
4462
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
4463
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
4464
+ uniffiResult);
4483
4465
  } catch (const jsi::JSError &error) {
4484
4466
  std::cout << "Error in callback "
4485
4467
  "UniffiCallbackInterfaceBitcoinChainServiceMethod4: "
@@ -4617,9 +4599,7 @@ static void body(jsi::Runtime &rt,
4617
4599
  return;
4618
4600
  }
4619
4601
 
4620
- // return type is MutReference(RustBuffer(Some(ExternalFfiMetadata { name:
4621
- // "PublicKeyBytes", module_path: "breez_sdk_spark" }))) Finally, we need to
4622
- // copy the return value back into the Rust pointer.
4602
+ // Finally, we need to copy the return value back into the Rust pointer.
4623
4603
  *rs_uniffiOutReturn =
4624
4604
  uniffi::breez_sdk_spark::Bridging<ReferenceHolder<RustBuffer>>::fromJs(
4625
4605
  rt, callInvoker, uniffiResult);
@@ -4755,11 +4735,10 @@ static void body(jsi::Runtime &rt,
4755
4735
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_path,
4756
4736
  js_uniffiFutureCallback, js_uniffiCallbackData);
4757
4737
 
4758
- // return type is MutReference(Struct("ForeignFuture"))
4759
4738
  // Finally, we need to copy the return value back into the Rust pointer.
4760
- *rs_uniffiOutReturn =
4761
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
4762
- rt, callInvoker, uniffiResult);
4739
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
4740
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
4741
+ uniffiResult);
4763
4742
  } catch (const jsi::JSError &error) {
4764
4743
  std::cout
4765
4744
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod1: "
@@ -4903,11 +4882,10 @@ static void body(jsi::Runtime &rt,
4903
4882
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_message, js_path,
4904
4883
  js_uniffiFutureCallback, js_uniffiCallbackData);
4905
4884
 
4906
- // return type is MutReference(Struct("ForeignFuture"))
4907
4885
  // Finally, we need to copy the return value back into the Rust pointer.
4908
- *rs_uniffiOutReturn =
4909
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
4910
- rt, callInvoker, uniffiResult);
4886
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
4887
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
4888
+ uniffiResult);
4911
4889
  } catch (const jsi::JSError &error) {
4912
4890
  std::cout
4913
4891
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod2: "
@@ -5052,11 +5030,10 @@ static void body(jsi::Runtime &rt,
5052
5030
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_message, js_path,
5053
5031
  js_uniffiFutureCallback, js_uniffiCallbackData);
5054
5032
 
5055
- // return type is MutReference(Struct("ForeignFuture"))
5056
5033
  // Finally, we need to copy the return value back into the Rust pointer.
5057
- *rs_uniffiOutReturn =
5058
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
5059
- rt, callInvoker, uniffiResult);
5034
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
5035
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
5036
+ uniffiResult);
5060
5037
  } catch (const jsi::JSError &error) {
5061
5038
  std::cout
5062
5039
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod3: "
@@ -5201,11 +5178,10 @@ static void body(jsi::Runtime &rt,
5201
5178
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_message, js_path,
5202
5179
  js_uniffiFutureCallback, js_uniffiCallbackData);
5203
5180
 
5204
- // return type is MutReference(Struct("ForeignFuture"))
5205
5181
  // Finally, we need to copy the return value back into the Rust pointer.
5206
- *rs_uniffiOutReturn =
5207
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
5208
- rt, callInvoker, uniffiResult);
5182
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
5183
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
5184
+ uniffiResult);
5209
5185
  } catch (const jsi::JSError &error) {
5210
5186
  std::cout
5211
5187
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod4: "
@@ -5350,11 +5326,10 @@ static void body(jsi::Runtime &rt,
5350
5326
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_message, js_path,
5351
5327
  js_uniffiFutureCallback, js_uniffiCallbackData);
5352
5328
 
5353
- // return type is MutReference(Struct("ForeignFuture"))
5354
5329
  // Finally, we need to copy the return value back into the Rust pointer.
5355
- *rs_uniffiOutReturn =
5356
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
5357
- rt, callInvoker, uniffiResult);
5330
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
5331
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
5332
+ uniffiResult);
5358
5333
  } catch (const jsi::JSError &error) {
5359
5334
  std::cout
5360
5335
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod5: "
@@ -5499,11 +5474,10 @@ static void body(jsi::Runtime &rt,
5499
5474
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_hash, js_path,
5500
5475
  js_uniffiFutureCallback, js_uniffiCallbackData);
5501
5476
 
5502
- // return type is MutReference(Struct("ForeignFuture"))
5503
5477
  // Finally, we need to copy the return value back into the Rust pointer.
5504
- *rs_uniffiOutReturn =
5505
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
5506
- rt, callInvoker, uniffiResult);
5478
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
5479
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
5480
+ uniffiResult);
5507
5481
  } catch (const jsi::JSError &error) {
5508
5482
  std::cout
5509
5483
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod6: "
@@ -5648,11 +5622,10 @@ static void body(jsi::Runtime &rt,
5648
5622
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_message, js_path,
5649
5623
  js_uniffiFutureCallback, js_uniffiCallbackData);
5650
5624
 
5651
- // return type is MutReference(Struct("ForeignFuture"))
5652
5625
  // Finally, we need to copy the return value back into the Rust pointer.
5653
- *rs_uniffiOutReturn =
5654
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
5655
- rt, callInvoker, uniffiResult);
5626
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
5627
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
5628
+ uniffiResult);
5656
5629
  } catch (const jsi::JSError &error) {
5657
5630
  std::cout
5658
5631
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod7: "
@@ -5791,11 +5764,10 @@ static void body(jsi::Runtime &rt,
5791
5764
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_uniffiFutureCallback,
5792
5765
  js_uniffiCallbackData);
5793
5766
 
5794
- // return type is MutReference(Struct("ForeignFuture"))
5795
5767
  // Finally, we need to copy the return value back into the Rust pointer.
5796
- *rs_uniffiOutReturn =
5797
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
5798
- rt, callInvoker, uniffiResult);
5768
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
5769
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
5770
+ uniffiResult);
5799
5771
  } catch (const jsi::JSError &error) {
5800
5772
  std::cout
5801
5773
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod8: "
@@ -5935,11 +5907,10 @@ static void body(jsi::Runtime &rt,
5935
5907
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_id,
5936
5908
  js_uniffiFutureCallback, js_uniffiCallbackData);
5937
5909
 
5938
- // return type is MutReference(Struct("ForeignFuture"))
5939
5910
  // Finally, we need to copy the return value back into the Rust pointer.
5940
- *rs_uniffiOutReturn =
5941
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
5942
- rt, callInvoker, uniffiResult);
5911
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
5912
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
5913
+ uniffiResult);
5943
5914
  } catch (const jsi::JSError &error) {
5944
5915
  std::cout
5945
5916
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod9: "
@@ -6077,11 +6048,10 @@ static void body(jsi::Runtime &rt,
6077
6048
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_uniffiFutureCallback,
6078
6049
  js_uniffiCallbackData);
6079
6050
 
6080
- // return type is MutReference(Struct("ForeignFuture"))
6081
6051
  // Finally, we need to copy the return value back into the Rust pointer.
6082
- *rs_uniffiOutReturn =
6083
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
6084
- rt, callInvoker, uniffiResult);
6052
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
6053
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
6054
+ uniffiResult);
6085
6055
  } catch (const jsi::JSError &error) {
6086
6056
  std::cout
6087
6057
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod10: "
@@ -6221,11 +6191,10 @@ static void body(jsi::Runtime &rt,
6221
6191
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_index,
6222
6192
  js_uniffiFutureCallback, js_uniffiCallbackData);
6223
6193
 
6224
- // return type is MutReference(Struct("ForeignFuture"))
6225
6194
  // Finally, we need to copy the return value back into the Rust pointer.
6226
- *rs_uniffiOutReturn =
6227
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
6228
- rt, callInvoker, uniffiResult);
6195
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
6196
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
6197
+ uniffiResult);
6229
6198
  } catch (const jsi::JSError &error) {
6230
6199
  std::cout
6231
6200
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod11: "
@@ -6366,11 +6335,10 @@ static void body(jsi::Runtime &rt,
6366
6335
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_index,
6367
6336
  js_uniffiFutureCallback, js_uniffiCallbackData);
6368
6337
 
6369
- // return type is MutReference(Struct("ForeignFuture"))
6370
6338
  // Finally, we need to copy the return value back into the Rust pointer.
6371
- *rs_uniffiOutReturn =
6372
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
6373
- rt, callInvoker, uniffiResult);
6339
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
6340
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
6341
+ uniffiResult);
6374
6342
  } catch (const jsi::JSError &error) {
6375
6343
  std::cout
6376
6344
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod12: "
@@ -6511,11 +6479,10 @@ static void body(jsi::Runtime &rt,
6511
6479
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_index,
6512
6480
  js_uniffiFutureCallback, js_uniffiCallbackData);
6513
6481
 
6514
- // return type is MutReference(Struct("ForeignFuture"))
6515
6482
  // Finally, we need to copy the return value back into the Rust pointer.
6516
- *rs_uniffiOutReturn =
6517
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
6518
- rt, callInvoker, uniffiResult);
6483
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
6484
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
6485
+ uniffiResult);
6519
6486
  } catch (const jsi::JSError &error) {
6520
6487
  std::cout
6521
6488
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod13: "
@@ -6660,11 +6627,10 @@ static void body(jsi::Runtime &rt,
6660
6627
  cb.call(rt, js_uniffiHandle, js_signingKey, js_newSigningKey,
6661
6628
  js_uniffiFutureCallback, js_uniffiCallbackData);
6662
6629
 
6663
- // return type is MutReference(Struct("ForeignFuture"))
6664
6630
  // Finally, we need to copy the return value back into the Rust pointer.
6665
- *rs_uniffiOutReturn =
6666
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
6667
- rt, callInvoker, uniffiResult);
6631
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
6632
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
6633
+ uniffiResult);
6668
6634
  } catch (const jsi::JSError &error) {
6669
6635
  std::cout
6670
6636
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod14: "
@@ -6813,11 +6779,10 @@ static void body(jsi::Runtime &rt,
6813
6779
  cb.call(rt, js_uniffiHandle, js_secret, js_threshold, js_numShares,
6814
6780
  js_uniffiFutureCallback, js_uniffiCallbackData);
6815
6781
 
6816
- // return type is MutReference(Struct("ForeignFuture"))
6817
6782
  // Finally, we need to copy the return value back into the Rust pointer.
6818
- *rs_uniffiOutReturn =
6819
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
6820
- rt, callInvoker, uniffiResult);
6783
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
6784
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
6785
+ uniffiResult);
6821
6786
  } catch (const jsi::JSError &error) {
6822
6787
  std::cout
6823
6788
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod15: "
@@ -6965,11 +6930,10 @@ static void body(jsi::Runtime &rt,
6965
6930
  cb.call(rt, js_uniffiHandle, js_encryptedSecret, js_receiverPublicKey,
6966
6931
  js_uniffiFutureCallback, js_uniffiCallbackData);
6967
6932
 
6968
- // return type is MutReference(Struct("ForeignFuture"))
6969
6933
  // Finally, we need to copy the return value back into the Rust pointer.
6970
- *rs_uniffiOutReturn =
6971
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
6972
- rt, callInvoker, uniffiResult);
6934
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
6935
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
6936
+ uniffiResult);
6973
6937
  } catch (const jsi::JSError &error) {
6974
6938
  std::cout
6975
6939
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod16: "
@@ -7113,11 +7077,10 @@ static void body(jsi::Runtime &rt,
7113
7077
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_secret,
7114
7078
  js_uniffiFutureCallback, js_uniffiCallbackData);
7115
7079
 
7116
- // return type is MutReference(Struct("ForeignFuture"))
7117
7080
  // Finally, we need to copy the return value back into the Rust pointer.
7118
- *rs_uniffiOutReturn =
7119
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
7120
- rt, callInvoker, uniffiResult);
7081
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
7082
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
7083
+ uniffiResult);
7121
7084
  } catch (const jsi::JSError &error) {
7122
7085
  std::cout
7123
7086
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod17: "
@@ -7258,11 +7221,10 @@ static void body(jsi::Runtime &rt,
7258
7221
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_request,
7259
7222
  js_uniffiFutureCallback, js_uniffiCallbackData);
7260
7223
 
7261
- // return type is MutReference(Struct("ForeignFuture"))
7262
7224
  // Finally, we need to copy the return value back into the Rust pointer.
7263
- *rs_uniffiOutReturn =
7264
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
7265
- rt, callInvoker, uniffiResult);
7225
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
7226
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
7227
+ uniffiResult);
7266
7228
  } catch (const jsi::JSError &error) {
7267
7229
  std::cout
7268
7230
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod18: "
@@ -7403,11 +7365,10 @@ static void body(jsi::Runtime &rt,
7403
7365
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_request,
7404
7366
  js_uniffiFutureCallback, js_uniffiCallbackData);
7405
7367
 
7406
- // return type is MutReference(Struct("ForeignFuture"))
7407
7368
  // Finally, we need to copy the return value back into the Rust pointer.
7408
- *rs_uniffiOutReturn =
7409
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
7410
- rt, callInvoker, uniffiResult);
7369
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
7370
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
7371
+ uniffiResult);
7411
7372
  } catch (const jsi::JSError &error) {
7412
7373
  std::cout
7413
7374
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod19: "
@@ -7545,11 +7506,10 @@ static void body(jsi::Runtime &rt,
7545
7506
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_uniffiFutureCallback,
7546
7507
  js_uniffiCallbackData);
7547
7508
 
7548
- // return type is MutReference(Struct("ForeignFuture"))
7549
7509
  // Finally, we need to copy the return value back into the Rust pointer.
7550
- *rs_uniffiOutReturn =
7551
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
7552
- rt, callInvoker, uniffiResult);
7510
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
7511
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
7512
+ uniffiResult);
7553
7513
  } catch (const jsi::JSError &error) {
7554
7514
  std::cout << "Error in callback UniffiCallbackInterfaceFiatServiceMethod0: "
7555
7515
  << error.what() << std::endl;
@@ -7684,11 +7644,10 @@ static void body(jsi::Runtime &rt,
7684
7644
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_uniffiFutureCallback,
7685
7645
  js_uniffiCallbackData);
7686
7646
 
7687
- // return type is MutReference(Struct("ForeignFuture"))
7688
7647
  // Finally, we need to copy the return value back into the Rust pointer.
7689
- *rs_uniffiOutReturn =
7690
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
7691
- rt, callInvoker, uniffiResult);
7648
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
7649
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
7650
+ uniffiResult);
7692
7651
  } catch (const jsi::JSError &error) {
7693
7652
  std::cout << "Error in callback UniffiCallbackInterfaceFiatServiceMethod1: "
7694
7653
  << error.what() << std::endl;
@@ -7827,11 +7786,10 @@ static void body(jsi::Runtime &rt,
7827
7786
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_salt,
7828
7787
  js_uniffiFutureCallback, js_uniffiCallbackData);
7829
7788
 
7830
- // return type is MutReference(Struct("ForeignFuture"))
7831
7789
  // Finally, we need to copy the return value back into the Rust pointer.
7832
- *rs_uniffiOutReturn =
7833
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
7834
- rt, callInvoker, uniffiResult);
7790
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
7791
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
7792
+ uniffiResult);
7835
7793
  } catch (const jsi::JSError &error) {
7836
7794
  std::cout << "Error in callback "
7837
7795
  "UniffiCallbackInterfacePasskeyPrfProviderMethod0: "
@@ -7970,11 +7928,10 @@ static void body(jsi::Runtime &rt,
7970
7928
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_uniffiFutureCallback,
7971
7929
  js_uniffiCallbackData);
7972
7930
 
7973
- // return type is MutReference(Struct("ForeignFuture"))
7974
7931
  // Finally, we need to copy the return value back into the Rust pointer.
7975
- *rs_uniffiOutReturn =
7976
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
7977
- rt, callInvoker, uniffiResult);
7932
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
7933
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
7934
+ uniffiResult);
7978
7935
  } catch (const jsi::JSError &error) {
7979
7936
  std::cout << "Error in callback "
7980
7937
  "UniffiCallbackInterfacePasskeyPrfProviderMethod1: "
@@ -8112,11 +8069,10 @@ static void body(jsi::Runtime &rt,
8112
8069
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_payments,
8113
8070
  js_uniffiFutureCallback, js_uniffiCallbackData);
8114
8071
 
8115
- // return type is MutReference(Struct("ForeignFuture"))
8116
8072
  // Finally, we need to copy the return value back into the Rust pointer.
8117
- *rs_uniffiOutReturn =
8118
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
8119
- rt, callInvoker, uniffiResult);
8073
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
8074
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
8075
+ uniffiResult);
8120
8076
  } catch (const jsi::JSError &error) {
8121
8077
  std::cout
8122
8078
  << "Error in callback UniffiCallbackInterfacePaymentObserverMethod0: "
@@ -8259,11 +8215,10 @@ static void body(jsi::Runtime &rt,
8259
8215
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_url, js_headers,
8260
8216
  js_uniffiFutureCallback, js_uniffiCallbackData);
8261
8217
 
8262
- // return type is MutReference(Struct("ForeignFuture"))
8263
8218
  // Finally, we need to copy the return value back into the Rust pointer.
8264
- *rs_uniffiOutReturn =
8265
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
8266
- rt, callInvoker, uniffiResult);
8219
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
8220
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
8221
+ uniffiResult);
8267
8222
  } catch (const jsi::JSError &error) {
8268
8223
  std::cout << "Error in callback UniffiCallbackInterfaceRestClientMethod0: "
8269
8224
  << error.what() << std::endl;
@@ -8409,11 +8364,10 @@ static void body(jsi::Runtime &rt,
8409
8364
  cb.call(rt, js_uniffiHandle, js_url, js_headers, js_body,
8410
8365
  js_uniffiFutureCallback, js_uniffiCallbackData);
8411
8366
 
8412
- // return type is MutReference(Struct("ForeignFuture"))
8413
8367
  // Finally, we need to copy the return value back into the Rust pointer.
8414
- *rs_uniffiOutReturn =
8415
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
8416
- rt, callInvoker, uniffiResult);
8368
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
8369
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
8370
+ uniffiResult);
8417
8371
  } catch (const jsi::JSError &error) {
8418
8372
  std::cout << "Error in callback UniffiCallbackInterfaceRestClientMethod1: "
8419
8373
  << error.what() << std::endl;
@@ -8560,11 +8514,10 @@ static void body(jsi::Runtime &rt,
8560
8514
  cb.call(rt, js_uniffiHandle, js_url, js_headers, js_body,
8561
8515
  js_uniffiFutureCallback, js_uniffiCallbackData);
8562
8516
 
8563
- // return type is MutReference(Struct("ForeignFuture"))
8564
8517
  // Finally, we need to copy the return value back into the Rust pointer.
8565
- *rs_uniffiOutReturn =
8566
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
8567
- rt, callInvoker, uniffiResult);
8518
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
8519
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
8520
+ uniffiResult);
8568
8521
  } catch (const jsi::JSError &error) {
8569
8522
  std::cout << "Error in callback UniffiCallbackInterfaceRestClientMethod2: "
8570
8523
  << error.what() << std::endl;
@@ -8704,11 +8657,10 @@ static void body(jsi::Runtime &rt,
8704
8657
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_key,
8705
8658
  js_uniffiFutureCallback, js_uniffiCallbackData);
8706
8659
 
8707
- // return type is MutReference(Struct("ForeignFuture"))
8708
8660
  // Finally, we need to copy the return value back into the Rust pointer.
8709
- *rs_uniffiOutReturn =
8710
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
8711
- rt, callInvoker, uniffiResult);
8661
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
8662
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
8663
+ uniffiResult);
8712
8664
  } catch (const jsi::JSError &error) {
8713
8665
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod0: "
8714
8666
  << error.what() << std::endl;
@@ -8846,11 +8798,10 @@ static void body(jsi::Runtime &rt,
8846
8798
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_key,
8847
8799
  js_uniffiFutureCallback, js_uniffiCallbackData);
8848
8800
 
8849
- // return type is MutReference(Struct("ForeignFuture"))
8850
8801
  // Finally, we need to copy the return value back into the Rust pointer.
8851
- *rs_uniffiOutReturn =
8852
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
8853
- rt, callInvoker, uniffiResult);
8802
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
8803
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
8804
+ uniffiResult);
8854
8805
  } catch (const jsi::JSError &error) {
8855
8806
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod1: "
8856
8807
  << error.what() << std::endl;
@@ -8992,11 +8943,10 @@ static void body(jsi::Runtime &rt,
8992
8943
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_key, js_value,
8993
8944
  js_uniffiFutureCallback, js_uniffiCallbackData);
8994
8945
 
8995
- // return type is MutReference(Struct("ForeignFuture"))
8996
8946
  // Finally, we need to copy the return value back into the Rust pointer.
8997
- *rs_uniffiOutReturn =
8998
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
8999
- rt, callInvoker, uniffiResult);
8947
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
8948
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
8949
+ uniffiResult);
9000
8950
  } catch (const jsi::JSError &error) {
9001
8951
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod2: "
9002
8952
  << error.what() << std::endl;
@@ -9136,11 +9086,10 @@ static void body(jsi::Runtime &rt,
9136
9086
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_request,
9137
9087
  js_uniffiFutureCallback, js_uniffiCallbackData);
9138
9088
 
9139
- // return type is MutReference(Struct("ForeignFuture"))
9140
9089
  // Finally, we need to copy the return value back into the Rust pointer.
9141
- *rs_uniffiOutReturn =
9142
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
9143
- rt, callInvoker, uniffiResult);
9090
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
9091
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
9092
+ uniffiResult);
9144
9093
  } catch (const jsi::JSError &error) {
9145
9094
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod3: "
9146
9095
  << error.what() << std::endl;
@@ -9278,11 +9227,10 @@ static void body(jsi::Runtime &rt,
9278
9227
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_payment,
9279
9228
  js_uniffiFutureCallback, js_uniffiCallbackData);
9280
9229
 
9281
- // return type is MutReference(Struct("ForeignFuture"))
9282
9230
  // Finally, we need to copy the return value back into the Rust pointer.
9283
- *rs_uniffiOutReturn =
9284
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
9285
- rt, callInvoker, uniffiResult);
9231
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
9232
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
9233
+ uniffiResult);
9286
9234
  } catch (const jsi::JSError &error) {
9287
9235
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod4: "
9288
9236
  << error.what() << std::endl;
@@ -9423,11 +9371,10 @@ static void body(jsi::Runtime &rt,
9423
9371
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_paymentId, js_metadata,
9424
9372
  js_uniffiFutureCallback, js_uniffiCallbackData);
9425
9373
 
9426
- // return type is MutReference(Struct("ForeignFuture"))
9427
9374
  // Finally, we need to copy the return value back into the Rust pointer.
9428
- *rs_uniffiOutReturn =
9429
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
9430
- rt, callInvoker, uniffiResult);
9375
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
9376
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
9377
+ uniffiResult);
9431
9378
  } catch (const jsi::JSError &error) {
9432
9379
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod5: "
9433
9380
  << error.what() << std::endl;
@@ -9567,11 +9514,10 @@ static void body(jsi::Runtime &rt,
9567
9514
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_id,
9568
9515
  js_uniffiFutureCallback, js_uniffiCallbackData);
9569
9516
 
9570
- // return type is MutReference(Struct("ForeignFuture"))
9571
9517
  // Finally, we need to copy the return value back into the Rust pointer.
9572
- *rs_uniffiOutReturn =
9573
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
9574
- rt, callInvoker, uniffiResult);
9518
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
9519
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
9520
+ uniffiResult);
9575
9521
  } catch (const jsi::JSError &error) {
9576
9522
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod6: "
9577
9523
  << error.what() << std::endl;
@@ -9710,11 +9656,10 @@ static void body(jsi::Runtime &rt,
9710
9656
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_invoice,
9711
9657
  js_uniffiFutureCallback, js_uniffiCallbackData);
9712
9658
 
9713
- // return type is MutReference(Struct("ForeignFuture"))
9714
9659
  // Finally, we need to copy the return value back into the Rust pointer.
9715
- *rs_uniffiOutReturn =
9716
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
9717
- rt, callInvoker, uniffiResult);
9660
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
9661
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
9662
+ uniffiResult);
9718
9663
  } catch (const jsi::JSError &error) {
9719
9664
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod7: "
9720
9665
  << error.what() << std::endl;
@@ -9854,11 +9799,10 @@ static void body(jsi::Runtime &rt,
9854
9799
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_parentPaymentIds,
9855
9800
  js_uniffiFutureCallback, js_uniffiCallbackData);
9856
9801
 
9857
- // return type is MutReference(Struct("ForeignFuture"))
9858
9802
  // Finally, we need to copy the return value back into the Rust pointer.
9859
- *rs_uniffiOutReturn =
9860
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
9861
- rt, callInvoker, uniffiResult);
9803
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
9804
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
9805
+ uniffiResult);
9862
9806
  } catch (const jsi::JSError &error) {
9863
9807
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod8: "
9864
9808
  << error.what() << std::endl;
@@ -9961,7 +9905,7 @@ using namespace facebook;
9961
9905
 
9962
9906
  // We need to store a lambda in a global so we can call it from
9963
9907
  // a function pointer. The function pointer is passed to Rust.
9964
- static std::function<void(uint64_t, RustBuffer, uint32_t, uint64_t, int8_t,
9908
+ static std::function<void(uint64_t, RustBuffer, uint32_t, uint64_t,
9965
9909
  UniffiForeignFutureCompleteVoid, uint64_t,
9966
9910
  UniffiForeignFuture *)>
9967
9911
  rsLambda = nullptr;
@@ -9972,7 +9916,7 @@ static void body(jsi::Runtime &rt,
9972
9916
  std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
9973
9917
  std::shared_ptr<jsi::Value> callbackValue,
9974
9918
  uint64_t rs_uniffiHandle, RustBuffer rs_txid, uint32_t rs_vout,
9975
- uint64_t rs_amountSats, int8_t rs_isMature,
9919
+ uint64_t rs_amountSats,
9976
9920
  UniffiForeignFutureCompleteVoid rs_uniffiFutureCallback,
9977
9921
  uint64_t rs_uniffiCallbackData,
9978
9922
  UniffiForeignFuture *rs_uniffiOutReturn) {
@@ -9986,8 +9930,6 @@ static void body(jsi::Runtime &rt,
9986
9930
  auto js_vout = uniffi_jsi::Bridging<uint32_t>::toJs(rt, callInvoker, rs_vout);
9987
9931
  auto js_amountSats =
9988
9932
  uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, rs_amountSats);
9989
- auto js_isMature =
9990
- uniffi_jsi::Bridging<int8_t>::toJs(rt, callInvoker, rs_isMature);
9991
9933
  auto js_uniffiFutureCallback =
9992
9934
  uniffi::breez_sdk_spark::Bridging<UniffiForeignFutureCompleteVoid>::toJs(
9993
9935
  rt, callInvoker, rs_uniffiFutureCallback);
@@ -10002,13 +9944,12 @@ static void body(jsi::Runtime &rt,
10002
9944
  auto cb = callbackValue->asObject(rt).asFunction(rt);
10003
9945
  auto uniffiResult =
10004
9946
  cb.call(rt, js_uniffiHandle, js_txid, js_vout, js_amountSats,
10005
- js_isMature, js_uniffiFutureCallback, js_uniffiCallbackData);
9947
+ js_uniffiFutureCallback, js_uniffiCallbackData);
10006
9948
 
10007
- // return type is MutReference(Struct("ForeignFuture"))
10008
9949
  // Finally, we need to copy the return value back into the Rust pointer.
10009
- *rs_uniffiOutReturn =
10010
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
10011
- rt, callInvoker, uniffiResult);
9950
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
9951
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
9952
+ uniffiResult);
10012
9953
  } catch (const jsi::JSError &error) {
10013
9954
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod9: "
10014
9955
  << error.what() << std::endl;
@@ -10018,7 +9959,6 @@ static void body(jsi::Runtime &rt,
10018
9959
 
10019
9960
  static void callback(uint64_t rs_uniffiHandle, RustBuffer rs_txid,
10020
9961
  uint32_t rs_vout, uint64_t rs_amountSats,
10021
- int8_t rs_isMature,
10022
9962
  UniffiForeignFutureCompleteVoid rs_uniffiFutureCallback,
10023
9963
  uint64_t rs_uniffiCallbackData,
10024
9964
  UniffiForeignFuture *rs_uniffiOutReturn) {
@@ -10037,7 +9977,7 @@ static void callback(uint64_t rs_uniffiHandle, RustBuffer rs_txid,
10037
9977
 
10038
9978
  // The runtime, the actual callback jsi::funtion, and the callInvoker
10039
9979
  // are all in the lambda.
10040
- rsLambda(rs_uniffiHandle, rs_txid, rs_vout, rs_amountSats, rs_isMature,
9980
+ rsLambda(rs_uniffiHandle, rs_txid, rs_vout, rs_amountSats,
10041
9981
  rs_uniffiFutureCallback, rs_uniffiCallbackData, rs_uniffiOutReturn);
10042
9982
  }
10043
9983
 
@@ -10062,7 +10002,7 @@ makeCallbackFunction( // uniffi::breez_sdk_spark::cb::callbackinterfacestorageme
10062
10002
  auto callbackValue = std::make_shared<jsi::Value>(rt, callbackFunction);
10063
10003
  rsLambda = [&rt, callInvoker, callbackValue](
10064
10004
  uint64_t rs_uniffiHandle, RustBuffer rs_txid, uint32_t rs_vout,
10065
- uint64_t rs_amountSats, int8_t rs_isMature,
10005
+ uint64_t rs_amountSats,
10066
10006
  UniffiForeignFutureCompleteVoid rs_uniffiFutureCallback,
10067
10007
  uint64_t rs_uniffiCallbackData,
10068
10008
  UniffiForeignFuture *rs_uniffiOutReturn) {
@@ -10070,10 +10010,10 @@ makeCallbackFunction( // uniffi::breez_sdk_spark::cb::callbackinterfacestorageme
10070
10010
  // arguments into JSI values and calling the callback.
10071
10011
  uniffi_runtime::UniffiCallFunc jsLambda =
10072
10012
  [callInvoker, callbackValue, rs_uniffiHandle, rs_txid, rs_vout,
10073
- rs_amountSats, rs_isMature, rs_uniffiFutureCallback,
10074
- rs_uniffiCallbackData, rs_uniffiOutReturn](jsi::Runtime &rt) mutable {
10013
+ rs_amountSats, rs_uniffiFutureCallback, rs_uniffiCallbackData,
10014
+ rs_uniffiOutReturn](jsi::Runtime &rt) mutable {
10075
10015
  body(rt, callInvoker, callbackValue, rs_uniffiHandle, rs_txid,
10076
- rs_vout, rs_amountSats, rs_isMature, rs_uniffiFutureCallback,
10016
+ rs_vout, rs_amountSats, rs_uniffiFutureCallback,
10077
10017
  rs_uniffiCallbackData, rs_uniffiOutReturn);
10078
10018
  };
10079
10019
  // We'll then call that lambda from the callInvoker which will
@@ -10150,11 +10090,10 @@ static void body(jsi::Runtime &rt,
10150
10090
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_txid, js_vout,
10151
10091
  js_uniffiFutureCallback, js_uniffiCallbackData);
10152
10092
 
10153
- // return type is MutReference(Struct("ForeignFuture"))
10154
10093
  // Finally, we need to copy the return value back into the Rust pointer.
10155
- *rs_uniffiOutReturn =
10156
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
10157
- rt, callInvoker, uniffiResult);
10094
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
10095
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
10096
+ uniffiResult);
10158
10097
  } catch (const jsi::JSError &error) {
10159
10098
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod10: "
10160
10099
  << error.what() << std::endl;
@@ -10290,11 +10229,10 @@ static void body(jsi::Runtime &rt,
10290
10229
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_uniffiFutureCallback,
10291
10230
  js_uniffiCallbackData);
10292
10231
 
10293
- // return type is MutReference(Struct("ForeignFuture"))
10294
10232
  // Finally, we need to copy the return value back into the Rust pointer.
10295
- *rs_uniffiOutReturn =
10296
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
10297
- rt, callInvoker, uniffiResult);
10233
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
10234
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
10235
+ uniffiResult);
10298
10236
  } catch (const jsi::JSError &error) {
10299
10237
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod11: "
10300
10238
  << error.what() << std::endl;
@@ -10437,11 +10375,10 @@ static void body(jsi::Runtime &rt,
10437
10375
  cb.call(rt, js_uniffiHandle, js_txid, js_vout, js_payload,
10438
10376
  js_uniffiFutureCallback, js_uniffiCallbackData);
10439
10377
 
10440
- // return type is MutReference(Struct("ForeignFuture"))
10441
10378
  // Finally, we need to copy the return value back into the Rust pointer.
10442
- *rs_uniffiOutReturn =
10443
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
10444
- rt, callInvoker, uniffiResult);
10379
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
10380
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
10381
+ uniffiResult);
10445
10382
  } catch (const jsi::JSError &error) {
10446
10383
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod12: "
10447
10384
  << error.what() << std::endl;
@@ -10580,11 +10517,10 @@ static void body(jsi::Runtime &rt,
10580
10517
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_metadata,
10581
10518
  js_uniffiFutureCallback, js_uniffiCallbackData);
10582
10519
 
10583
- // return type is MutReference(Struct("ForeignFuture"))
10584
10520
  // Finally, we need to copy the return value back into the Rust pointer.
10585
- *rs_uniffiOutReturn =
10586
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
10587
- rt, callInvoker, uniffiResult);
10521
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
10522
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
10523
+ uniffiResult);
10588
10524
  } catch (const jsi::JSError &error) {
10589
10525
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod13: "
10590
10526
  << error.what() << std::endl;
@@ -10722,11 +10658,10 @@ static void body(jsi::Runtime &rt,
10722
10658
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_request,
10723
10659
  js_uniffiFutureCallback, js_uniffiCallbackData);
10724
10660
 
10725
- // return type is MutReference(Struct("ForeignFuture"))
10726
10661
  // Finally, we need to copy the return value back into the Rust pointer.
10727
- *rs_uniffiOutReturn =
10728
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
10729
- rt, callInvoker, uniffiResult);
10662
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
10663
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
10664
+ uniffiResult);
10730
10665
  } catch (const jsi::JSError &error) {
10731
10666
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod14: "
10732
10667
  << error.what() << std::endl;
@@ -10865,11 +10800,10 @@ static void body(jsi::Runtime &rt,
10865
10800
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_id,
10866
10801
  js_uniffiFutureCallback, js_uniffiCallbackData);
10867
10802
 
10868
- // return type is MutReference(Struct("ForeignFuture"))
10869
10803
  // Finally, we need to copy the return value back into the Rust pointer.
10870
- *rs_uniffiOutReturn =
10871
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
10872
- rt, callInvoker, uniffiResult);
10804
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
10805
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
10806
+ uniffiResult);
10873
10807
  } catch (const jsi::JSError &error) {
10874
10808
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod15: "
10875
10809
  << error.what() << std::endl;
@@ -11007,11 +10941,10 @@ static void body(jsi::Runtime &rt,
11007
10941
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_contact,
11008
10942
  js_uniffiFutureCallback, js_uniffiCallbackData);
11009
10943
 
11010
- // return type is MutReference(Struct("ForeignFuture"))
11011
10944
  // Finally, we need to copy the return value back into the Rust pointer.
11012
- *rs_uniffiOutReturn =
11013
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
11014
- rt, callInvoker, uniffiResult);
10945
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
10946
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
10947
+ uniffiResult);
11015
10948
  } catch (const jsi::JSError &error) {
11016
10949
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod16: "
11017
10950
  << error.what() << std::endl;
@@ -11148,11 +11081,10 @@ static void body(jsi::Runtime &rt,
11148
11081
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_id,
11149
11082
  js_uniffiFutureCallback, js_uniffiCallbackData);
11150
11083
 
11151
- // return type is MutReference(Struct("ForeignFuture"))
11152
11084
  // Finally, we need to copy the return value back into the Rust pointer.
11153
- *rs_uniffiOutReturn =
11154
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
11155
- rt, callInvoker, uniffiResult);
11085
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
11086
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
11087
+ uniffiResult);
11156
11088
  } catch (const jsi::JSError &error) {
11157
11089
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod17: "
11158
11090
  << error.what() << std::endl;
@@ -11289,11 +11221,10 @@ static void body(jsi::Runtime &rt,
11289
11221
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_record,
11290
11222
  js_uniffiFutureCallback, js_uniffiCallbackData);
11291
11223
 
11292
- // return type is MutReference(Struct("ForeignFuture"))
11293
11224
  // Finally, we need to copy the return value back into the Rust pointer.
11294
- *rs_uniffiOutReturn =
11295
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
11296
- rt, callInvoker, uniffiResult);
11225
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
11226
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
11227
+ uniffiResult);
11297
11228
  } catch (const jsi::JSError &error) {
11298
11229
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod18: "
11299
11230
  << error.what() << std::endl;
@@ -11435,11 +11366,10 @@ static void body(jsi::Runtime &rt,
11435
11366
  cb.call(rt, js_uniffiHandle, js_record, js_localRevision,
11436
11367
  js_uniffiFutureCallback, js_uniffiCallbackData);
11437
11368
 
11438
- // return type is MutReference(Struct("ForeignFuture"))
11439
11369
  // Finally, we need to copy the return value back into the Rust pointer.
11440
- *rs_uniffiOutReturn =
11441
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
11442
- rt, callInvoker, uniffiResult);
11370
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
11371
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
11372
+ uniffiResult);
11443
11373
  } catch (const jsi::JSError &error) {
11444
11374
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod19: "
11445
11375
  << error.what() << std::endl;
@@ -11579,11 +11509,10 @@ static void body(jsi::Runtime &rt,
11579
11509
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_limit,
11580
11510
  js_uniffiFutureCallback, js_uniffiCallbackData);
11581
11511
 
11582
- // return type is MutReference(Struct("ForeignFuture"))
11583
11512
  // Finally, we need to copy the return value back into the Rust pointer.
11584
- *rs_uniffiOutReturn =
11585
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
11586
- rt, callInvoker, uniffiResult);
11513
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
11514
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
11515
+ uniffiResult);
11587
11516
  } catch (const jsi::JSError &error) {
11588
11517
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod20: "
11589
11518
  << error.what() << std::endl;
@@ -11719,11 +11648,10 @@ static void body(jsi::Runtime &rt,
11719
11648
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_uniffiFutureCallback,
11720
11649
  js_uniffiCallbackData);
11721
11650
 
11722
- // return type is MutReference(Struct("ForeignFuture"))
11723
11651
  // Finally, we need to copy the return value back into the Rust pointer.
11724
- *rs_uniffiOutReturn =
11725
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
11726
- rt, callInvoker, uniffiResult);
11652
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
11653
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
11654
+ uniffiResult);
11727
11655
  } catch (const jsi::JSError &error) {
11728
11656
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod21: "
11729
11657
  << error.what() << std::endl;
@@ -11859,11 +11787,10 @@ static void body(jsi::Runtime &rt,
11859
11787
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_records,
11860
11788
  js_uniffiFutureCallback, js_uniffiCallbackData);
11861
11789
 
11862
- // return type is MutReference(Struct("ForeignFuture"))
11863
11790
  // Finally, we need to copy the return value back into the Rust pointer.
11864
- *rs_uniffiOutReturn =
11865
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
11866
- rt, callInvoker, uniffiResult);
11791
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
11792
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
11793
+ uniffiResult);
11867
11794
  } catch (const jsi::JSError &error) {
11868
11795
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod22: "
11869
11796
  << error.what() << std::endl;
@@ -12000,11 +11927,10 @@ static void body(jsi::Runtime &rt,
12000
11927
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_record,
12001
11928
  js_uniffiFutureCallback, js_uniffiCallbackData);
12002
11929
 
12003
- // return type is MutReference(Struct("ForeignFuture"))
12004
11930
  // Finally, we need to copy the return value back into the Rust pointer.
12005
- *rs_uniffiOutReturn =
12006
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
12007
- rt, callInvoker, uniffiResult);
11931
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
11932
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
11933
+ uniffiResult);
12008
11934
  } catch (const jsi::JSError &error) {
12009
11935
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod23: "
12010
11936
  << error.what() << std::endl;
@@ -12142,11 +12068,10 @@ static void body(jsi::Runtime &rt,
12142
12068
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_limit,
12143
12069
  js_uniffiFutureCallback, js_uniffiCallbackData);
12144
12070
 
12145
- // return type is MutReference(Struct("ForeignFuture"))
12146
12071
  // Finally, we need to copy the return value back into the Rust pointer.
12147
- *rs_uniffiOutReturn =
12148
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
12149
- rt, callInvoker, uniffiResult);
12072
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
12073
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
12074
+ uniffiResult);
12150
12075
  } catch (const jsi::JSError &error) {
12151
12076
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod24: "
12152
12077
  << error.what() << std::endl;
@@ -12282,11 +12207,10 @@ static void body(jsi::Runtime &rt,
12282
12207
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_uniffiFutureCallback,
12283
12208
  js_uniffiCallbackData);
12284
12209
 
12285
- // return type is MutReference(Struct("ForeignFuture"))
12286
12210
  // Finally, we need to copy the return value back into the Rust pointer.
12287
- *rs_uniffiOutReturn =
12288
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
12289
- rt, callInvoker, uniffiResult);
12211
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
12212
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
12213
+ uniffiResult);
12290
12214
  } catch (const jsi::JSError &error) {
12291
12215
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod25: "
12292
12216
  << error.what() << std::endl;
@@ -12423,11 +12347,10 @@ static void body(jsi::Runtime &rt,
12423
12347
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_record,
12424
12348
  js_uniffiFutureCallback, js_uniffiCallbackData);
12425
12349
 
12426
- // return type is MutReference(Struct("ForeignFuture"))
12427
12350
  // Finally, we need to copy the return value back into the Rust pointer.
12428
- *rs_uniffiOutReturn =
12429
- uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
12430
- rt, callInvoker, uniffiResult);
12351
+ *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
12352
+ ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
12353
+ uniffiResult);
12431
12354
  } catch (const jsi::JSError &error) {
12432
12355
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod26: "
12433
12356
  << error.what() << std::endl;
@@ -13066,18 +12989,6 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
13066
12989
  return this->cpp_uniffi_breez_sdk_spark_fn_free_bitcoinchainservice(
13067
12990
  rt, thisVal, args, count);
13068
12991
  });
13069
- props["ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_"
13070
- "bitcoinchainservice"] = jsi::Function::createFromHostFunction(
13071
- rt,
13072
- jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_init_"
13073
- "callback_vtable_bitcoinchainservice"),
13074
- 1,
13075
- [this](jsi::Runtime &rt, const jsi::Value &thisVal,
13076
- const jsi::Value *args, size_t count) -> jsi::Value {
13077
- return this
13078
- ->cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_bitcoinchainservice(
13079
- rt, thisVal, args, count);
13080
- });
13081
12992
  props["ubrn_uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_get_address_"
13082
12993
  "utxos"] = jsi::Function::createFromHostFunction(
13083
12994
  rt,
@@ -13456,19 +13367,6 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
13456
13367
  ->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_list_unclaimed_deposits(
13457
13368
  rt, thisVal, args, count);
13458
13369
  });
13459
- props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_list_webhooks"] =
13460
- jsi::Function::createFromHostFunction(
13461
- rt,
13462
- jsi::PropNameID::forAscii(
13463
- rt,
13464
- "ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_list_webhooks"),
13465
- 1,
13466
- [this](jsi::Runtime &rt, const jsi::Value &thisVal,
13467
- const jsi::Value *args, size_t count) -> jsi::Value {
13468
- return this
13469
- ->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_list_webhooks(
13470
- rt, thisVal, args, count);
13471
- });
13472
13370
  props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_auth"] =
13473
13371
  jsi::Function::createFromHostFunction(
13474
13372
  rt,
@@ -13591,18 +13489,6 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
13591
13489
  ->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_register_lightning_address(
13592
13490
  rt, thisVal, args, count);
13593
13491
  });
13594
- props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_register_webhook"] =
13595
- jsi::Function::createFromHostFunction(
13596
- rt,
13597
- jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_method_"
13598
- "breezsdk_register_webhook"),
13599
- 2,
13600
- [this](jsi::Runtime &rt, const jsi::Value &thisVal,
13601
- const jsi::Value *args, size_t count) -> jsi::Value {
13602
- return this
13603
- ->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_register_webhook(
13604
- rt, thisVal, args, count);
13605
- });
13606
13492
  props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_remove_event_"
13607
13493
  "listener"] = jsi::Function::createFromHostFunction(
13608
13494
  rt,
@@ -13665,18 +13551,6 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
13665
13551
  ->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_sync_wallet(
13666
13552
  rt, thisVal, args, count);
13667
13553
  });
13668
- props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_unregister_webhook"] =
13669
- jsi::Function::createFromHostFunction(
13670
- rt,
13671
- jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_method_"
13672
- "breezsdk_unregister_webhook"),
13673
- 2,
13674
- [this](jsi::Runtime &rt, const jsi::Value &thisVal,
13675
- const jsi::Value *args, size_t count) -> jsi::Value {
13676
- return this
13677
- ->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_unregister_webhook(
13678
- rt, thisVal, args, count);
13679
- });
13680
13554
  props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_update_contact"] =
13681
13555
  jsi::Function::createFromHostFunction(
13682
13556
  rt,
@@ -13724,18 +13598,6 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
13724
13598
  return this->cpp_uniffi_breez_sdk_spark_fn_free_externalsigner(
13725
13599
  rt, thisVal, args, count);
13726
13600
  });
13727
- props["ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_externalsigner"] =
13728
- jsi::Function::createFromHostFunction(
13729
- rt,
13730
- jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_init_"
13731
- "callback_vtable_externalsigner"),
13732
- 1,
13733
- [this](jsi::Runtime &rt, const jsi::Value &thisVal,
13734
- const jsi::Value *args, size_t count) -> jsi::Value {
13735
- return this
13736
- ->cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_externalsigner(
13737
- rt, thisVal, args, count);
13738
- });
13739
13601
  props["ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_identity_public_"
13740
13602
  "key"] = jsi::Function::createFromHostFunction(
13741
13603
  rt,
@@ -14002,18 +13864,6 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
14002
13864
  return this->cpp_uniffi_breez_sdk_spark_fn_free_fiatservice(
14003
13865
  rt, thisVal, args, count);
14004
13866
  });
14005
- props["ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_fiatservice"] =
14006
- jsi::Function::createFromHostFunction(
14007
- rt,
14008
- jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_init_"
14009
- "callback_vtable_fiatservice"),
14010
- 1,
14011
- [this](jsi::Runtime &rt, const jsi::Value &thisVal,
14012
- const jsi::Value *args, size_t count) -> jsi::Value {
14013
- return this
14014
- ->cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_fiatservice(
14015
- rt, thisVal, args, count);
14016
- });
14017
13867
  props["ubrn_uniffi_breez_sdk_spark_fn_method_fiatservice_fetch_fiat_"
14018
13868
  "currencies"] = jsi::Function::createFromHostFunction(
14019
13869
  rt,
@@ -14141,18 +13991,6 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
14141
13991
  return this->cpp_uniffi_breez_sdk_spark_fn_free_passkeyprfprovider(
14142
13992
  rt, thisVal, args, count);
14143
13993
  });
14144
- props["ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_"
14145
- "passkeyprfprovider"] = jsi::Function::createFromHostFunction(
14146
- rt,
14147
- jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_init_"
14148
- "callback_vtable_passkeyprfprovider"),
14149
- 1,
14150
- [this](jsi::Runtime &rt, const jsi::Value &thisVal,
14151
- const jsi::Value *args, size_t count) -> jsi::Value {
14152
- return this
14153
- ->cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_passkeyprfprovider(
14154
- rt, thisVal, args, count);
14155
- });
14156
13994
  props["ubrn_uniffi_breez_sdk_spark_fn_method_passkeyprfprovider_derive_prf_"
14157
13995
  "seed"] = jsi::Function::createFromHostFunction(
14158
13996
  rt,
@@ -14199,18 +14037,6 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
14199
14037
  return this->cpp_uniffi_breez_sdk_spark_fn_free_paymentobserver(
14200
14038
  rt, thisVal, args, count);
14201
14039
  });
14202
- props["ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_paymentobserver"] =
14203
- jsi::Function::createFromHostFunction(
14204
- rt,
14205
- jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_init_"
14206
- "callback_vtable_paymentobserver"),
14207
- 1,
14208
- [this](jsi::Runtime &rt, const jsi::Value &thisVal,
14209
- const jsi::Value *args, size_t count) -> jsi::Value {
14210
- return this
14211
- ->cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_paymentobserver(
14212
- rt, thisVal, args, count);
14213
- });
14214
14040
  props["ubrn_uniffi_breez_sdk_spark_fn_method_paymentobserver_before_send"] =
14215
14041
  jsi::Function::createFromHostFunction(
14216
14042
  rt,
@@ -14245,19 +14071,6 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
14245
14071
  return this->cpp_uniffi_breez_sdk_spark_fn_free_restclient(
14246
14072
  rt, thisVal, args, count);
14247
14073
  });
14248
- props["ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_restclient"] =
14249
- jsi::Function::createFromHostFunction(
14250
- rt,
14251
- jsi::PropNameID::forAscii(
14252
- rt,
14253
- "ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_restclient"),
14254
- 1,
14255
- [this](jsi::Runtime &rt, const jsi::Value &thisVal,
14256
- const jsi::Value *args, size_t count) -> jsi::Value {
14257
- return this
14258
- ->cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_restclient(
14259
- rt, thisVal, args, count);
14260
- });
14261
14074
  props["ubrn_uniffi_breez_sdk_spark_fn_method_restclient_get_request"] =
14262
14075
  jsi::Function::createFromHostFunction(
14263
14076
  rt,
@@ -14461,19 +14274,6 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
14461
14274
  return this->cpp_uniffi_breez_sdk_spark_fn_free_storage(
14462
14275
  rt, thisVal, args, count);
14463
14276
  });
14464
- props["ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_storage"] =
14465
- jsi::Function::createFromHostFunction(
14466
- rt,
14467
- jsi::PropNameID::forAscii(
14468
- rt,
14469
- "ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_storage"),
14470
- 1,
14471
- [this](jsi::Runtime &rt, const jsi::Value &thisVal,
14472
- const jsi::Value *args, size_t count) -> jsi::Value {
14473
- return this
14474
- ->cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_storage(
14475
- rt, thisVal, args, count);
14476
- });
14477
14277
  props["ubrn_uniffi_breez_sdk_spark_fn_method_storage_delete_cached_item"] =
14478
14278
  jsi::Function::createFromHostFunction(
14479
14279
  rt,
@@ -14591,7 +14391,7 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
14591
14391
  rt,
14592
14392
  jsi::PropNameID::forAscii(
14593
14393
  rt, "ubrn_uniffi_breez_sdk_spark_fn_method_storage_add_deposit"),
14594
- 5,
14394
+ 4,
14595
14395
  [this](jsi::Runtime &rt, const jsi::Value &thisVal,
14596
14396
  const jsi::Value *args, size_t count) -> jsi::Value {
14597
14397
  return this
@@ -14914,35 +14714,11 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
14914
14714
  ->cpp_uniffi_breez_sdk_spark_fn_method_tokenissuer_unfreeze_issuer_token(
14915
14715
  rt, thisVal, args, count);
14916
14716
  });
14917
- props["ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_eventlistener"] =
14717
+ props["ubrn_uniffi_breez_sdk_spark_fn_func_connect"] =
14918
14718
  jsi::Function::createFromHostFunction(
14919
14719
  rt,
14920
- jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_init_"
14921
- "callback_vtable_eventlistener"),
14922
- 1,
14923
- [this](jsi::Runtime &rt, const jsi::Value &thisVal,
14924
- const jsi::Value *args, size_t count) -> jsi::Value {
14925
- return this
14926
- ->cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_eventlistener(
14927
- rt, thisVal, args, count);
14928
- });
14929
- props["ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_logger"] =
14930
- jsi::Function::createFromHostFunction(
14931
- rt,
14932
- jsi::PropNameID::forAscii(
14933
- rt, "ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_logger"),
14934
- 1,
14935
- [this](jsi::Runtime &rt, const jsi::Value &thisVal,
14936
- const jsi::Value *args, size_t count) -> jsi::Value {
14937
- return this
14938
- ->cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_logger(
14939
- rt, thisVal, args, count);
14940
- });
14941
- props["ubrn_uniffi_breez_sdk_spark_fn_func_connect"] =
14942
- jsi::Function::createFromHostFunction(
14943
- rt,
14944
- jsi::PropNameID::forAscii(
14945
- rt, "ubrn_uniffi_breez_sdk_spark_fn_func_connect"),
14720
+ jsi::PropNameID::forAscii(
14721
+ rt, "ubrn_uniffi_breez_sdk_spark_fn_func_connect"),
14946
14722
  1,
14947
14723
  [this](jsi::Runtime &rt, const jsi::Value &thisVal,
14948
14724
  const jsi::Value *args, size_t count) -> jsi::Value {
@@ -16006,18 +15782,6 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
16006
15782
  ->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_unclaimed_deposits(
16007
15783
  rt, thisVal, args, count);
16008
15784
  });
16009
- props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_webhooks"] =
16010
- jsi::Function::createFromHostFunction(
16011
- rt,
16012
- jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_checksum_"
16013
- "method_breezsdk_list_webhooks"),
16014
- 0,
16015
- [this](jsi::Runtime &rt, const jsi::Value &thisVal,
16016
- const jsi::Value *args, size_t count) -> jsi::Value {
16017
- return this
16018
- ->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_webhooks(
16019
- rt, thisVal, args, count);
16020
- });
16021
15785
  props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_auth"] =
16022
15786
  jsi::Function::createFromHostFunction(
16023
15787
  rt,
@@ -16140,18 +15904,6 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
16140
15904
  ->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address(
16141
15905
  rt, thisVal, args, count);
16142
15906
  });
16143
- props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_register_"
16144
- "webhook"] = jsi::Function::createFromHostFunction(
16145
- rt,
16146
- jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_checksum_"
16147
- "method_breezsdk_register_webhook"),
16148
- 0,
16149
- [this](jsi::Runtime &rt, const jsi::Value &thisVal,
16150
- const jsi::Value *args, size_t count) -> jsi::Value {
16151
- return this
16152
- ->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_register_webhook(
16153
- rt, thisVal, args, count);
16154
- });
16155
15907
  props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_"
16156
15908
  "listener"] = jsi::Function::createFromHostFunction(
16157
15909
  rt,
@@ -16212,18 +15964,6 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
16212
15964
  ->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet(
16213
15965
  rt, thisVal, args, count);
16214
15966
  });
16215
- props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_unregister_"
16216
- "webhook"] = jsi::Function::createFromHostFunction(
16217
- rt,
16218
- jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_checksum_"
16219
- "method_breezsdk_unregister_webhook"),
16220
- 0,
16221
- [this](jsi::Runtime &rt, const jsi::Value &thisVal,
16222
- const jsi::Value *args, size_t count) -> jsi::Value {
16223
- return this
16224
- ->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_unregister_webhook(
16225
- rt, thisVal, args, count);
16226
- });
16227
15967
  props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_update_contact"] =
16228
15968
  jsi::Function::createFromHostFunction(
16229
15969
  rt,
@@ -17229,6 +16969,116 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
17229
16969
  return this->cpp_ffi_breez_sdk_spark_uniffi_contract_version(
17230
16970
  rt, thisVal, args, count);
17231
16971
  });
16972
+ props["ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_eventlistener"] =
16973
+ jsi::Function::createFromHostFunction(
16974
+ rt,
16975
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_init_"
16976
+ "callback_vtable_eventlistener"),
16977
+ 1,
16978
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal,
16979
+ const jsi::Value *args, size_t count) -> jsi::Value {
16980
+ return this
16981
+ ->cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_eventlistener(
16982
+ rt, thisVal, args, count);
16983
+ });
16984
+ props["ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_logger"] =
16985
+ jsi::Function::createFromHostFunction(
16986
+ rt,
16987
+ jsi::PropNameID::forAscii(
16988
+ rt, "ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_logger"),
16989
+ 1,
16990
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal,
16991
+ const jsi::Value *args, size_t count) -> jsi::Value {
16992
+ return this
16993
+ ->cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_logger(
16994
+ rt, thisVal, args, count);
16995
+ });
16996
+ props["ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_"
16997
+ "bitcoinchainservice"] = jsi::Function::createFromHostFunction(
16998
+ rt,
16999
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_init_"
17000
+ "callback_vtable_bitcoinchainservice"),
17001
+ 1,
17002
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal,
17003
+ const jsi::Value *args, size_t count) -> jsi::Value {
17004
+ return this
17005
+ ->cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_bitcoinchainservice(
17006
+ rt, thisVal, args, count);
17007
+ });
17008
+ props["ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_externalsigner"] =
17009
+ jsi::Function::createFromHostFunction(
17010
+ rt,
17011
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_init_"
17012
+ "callback_vtable_externalsigner"),
17013
+ 1,
17014
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal,
17015
+ const jsi::Value *args, size_t count) -> jsi::Value {
17016
+ return this
17017
+ ->cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_externalsigner(
17018
+ rt, thisVal, args, count);
17019
+ });
17020
+ props["ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_fiatservice"] =
17021
+ jsi::Function::createFromHostFunction(
17022
+ rt,
17023
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_init_"
17024
+ "callback_vtable_fiatservice"),
17025
+ 1,
17026
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal,
17027
+ const jsi::Value *args, size_t count) -> jsi::Value {
17028
+ return this
17029
+ ->cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_fiatservice(
17030
+ rt, thisVal, args, count);
17031
+ });
17032
+ props["ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_"
17033
+ "passkeyprfprovider"] = jsi::Function::createFromHostFunction(
17034
+ rt,
17035
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_init_"
17036
+ "callback_vtable_passkeyprfprovider"),
17037
+ 1,
17038
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal,
17039
+ const jsi::Value *args, size_t count) -> jsi::Value {
17040
+ return this
17041
+ ->cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_passkeyprfprovider(
17042
+ rt, thisVal, args, count);
17043
+ });
17044
+ props["ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_paymentobserver"] =
17045
+ jsi::Function::createFromHostFunction(
17046
+ rt,
17047
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_init_"
17048
+ "callback_vtable_paymentobserver"),
17049
+ 1,
17050
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal,
17051
+ const jsi::Value *args, size_t count) -> jsi::Value {
17052
+ return this
17053
+ ->cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_paymentobserver(
17054
+ rt, thisVal, args, count);
17055
+ });
17056
+ props["ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_restclient"] =
17057
+ jsi::Function::createFromHostFunction(
17058
+ rt,
17059
+ jsi::PropNameID::forAscii(
17060
+ rt,
17061
+ "ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_restclient"),
17062
+ 1,
17063
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal,
17064
+ const jsi::Value *args, size_t count) -> jsi::Value {
17065
+ return this
17066
+ ->cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_restclient(
17067
+ rt, thisVal, args, count);
17068
+ });
17069
+ props["ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_storage"] =
17070
+ jsi::Function::createFromHostFunction(
17071
+ rt,
17072
+ jsi::PropNameID::forAscii(
17073
+ rt,
17074
+ "ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_storage"),
17075
+ 1,
17076
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal,
17077
+ const jsi::Value *args, size_t count) -> jsi::Value {
17078
+ return this
17079
+ ->cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_storage(
17080
+ rt, thisVal, args, count);
17081
+ });
17232
17082
  props["ubrn_uniffi_internal_fn_method_bitcoinchainservice_ffi__bless_"
17233
17083
  "pointer"] = jsi::Function::createFromHostFunction(
17234
17084
  rt,
@@ -17805,21 +17655,6 @@ NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_free_bitcoinchainservice(
17805
17655
 
17806
17656
  return jsi::Value::undefined();
17807
17657
  }
17808
- jsi::Value NativeBreezSdkSpark::
17809
- cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_bitcoinchainservice(
17810
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
17811
- size_t count) {
17812
- auto vtableInstance = uniffi::breez_sdk_spark::Bridging<
17813
- UniffiVTableCallbackInterfaceBitcoinChainService>::fromJs(rt, callInvoker,
17814
- args[0]);
17815
-
17816
- std::lock_guard<std::mutex> lock(
17817
- uniffi::breez_sdk_spark::registry::vtableMutex);
17818
- uniffi_breez_sdk_spark_fn_init_callback_vtable_bitcoinchainservice(
17819
- uniffi::breez_sdk_spark::registry::putTable(
17820
- "UniffiVTableCallbackInterfaceBitcoinChainService", vtableInstance));
17821
- return jsi::Value::undefined();
17822
- }
17823
17658
  jsi::Value NativeBreezSdkSpark::
17824
17659
  cpp_uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_get_address_utxos(
17825
17660
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
@@ -18190,16 +18025,6 @@ jsi::Value NativeBreezSdkSpark::
18190
18025
  return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
18191
18026
  value);
18192
18027
  }
18193
- jsi::Value NativeBreezSdkSpark::
18194
- cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_list_webhooks(
18195
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
18196
- size_t count) {
18197
- auto value = uniffi_breez_sdk_spark_fn_method_breezsdk_list_webhooks(
18198
- uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]));
18199
-
18200
- return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
18201
- value);
18202
- }
18203
18028
  jsi::Value
18204
18029
  NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_auth(
18205
18030
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
@@ -18319,18 +18144,6 @@ jsi::Value NativeBreezSdkSpark::
18319
18144
  return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
18320
18145
  value);
18321
18146
  }
18322
- jsi::Value NativeBreezSdkSpark::
18323
- cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_register_webhook(
18324
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
18325
- size_t count) {
18326
- auto value = uniffi_breez_sdk_spark_fn_method_breezsdk_register_webhook(
18327
- uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
18328
- uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
18329
- args[1]));
18330
-
18331
- return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
18332
- value);
18333
- }
18334
18147
  jsi::Value NativeBreezSdkSpark::
18335
18148
  cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_remove_event_listener(
18336
18149
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
@@ -18371,12 +18184,14 @@ jsi::Value NativeBreezSdkSpark::
18371
18184
  cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_start_leaf_optimization(
18372
18185
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
18373
18186
  size_t count) {
18374
- auto value =
18375
- uniffi_breez_sdk_spark_fn_method_breezsdk_start_leaf_optimization(
18376
- uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]));
18187
+ RustCallStatus status =
18188
+ uniffi::breez_sdk_spark::Bridging<RustCallStatus>::rustSuccess(rt);
18189
+ uniffi_breez_sdk_spark_fn_method_breezsdk_start_leaf_optimization(
18190
+ uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), &status);
18191
+ uniffi::breez_sdk_spark::Bridging<RustCallStatus>::copyIntoJs(
18192
+ rt, callInvoker, status, args[count - 1]);
18377
18193
 
18378
- return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
18379
- value);
18194
+ return jsi::Value::undefined();
18380
18195
  }
18381
18196
  jsi::Value
18382
18197
  NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_sync_wallet(
@@ -18390,18 +18205,6 @@ NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_sync_wallet(
18390
18205
  return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
18391
18206
  value);
18392
18207
  }
18393
- jsi::Value NativeBreezSdkSpark::
18394
- cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_unregister_webhook(
18395
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
18396
- size_t count) {
18397
- auto value = uniffi_breez_sdk_spark_fn_method_breezsdk_unregister_webhook(
18398
- uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
18399
- uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
18400
- args[1]));
18401
-
18402
- return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
18403
- value);
18404
- }
18405
18208
  jsi::Value NativeBreezSdkSpark::
18406
18209
  cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_update_contact(
18407
18210
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
@@ -18452,21 +18255,6 @@ NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_free_externalsigner(
18452
18255
 
18453
18256
  return jsi::Value::undefined();
18454
18257
  }
18455
- jsi::Value NativeBreezSdkSpark::
18456
- cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_externalsigner(
18457
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
18458
- size_t count) {
18459
- auto vtableInstance = uniffi::breez_sdk_spark::Bridging<
18460
- UniffiVTableCallbackInterfaceExternalSigner>::fromJs(rt, callInvoker,
18461
- args[0]);
18462
-
18463
- std::lock_guard<std::mutex> lock(
18464
- uniffi::breez_sdk_spark::registry::vtableMutex);
18465
- uniffi_breez_sdk_spark_fn_init_callback_vtable_externalsigner(
18466
- uniffi::breez_sdk_spark::registry::putTable(
18467
- "UniffiVTableCallbackInterfaceExternalSigner", vtableInstance));
18468
- return jsi::Value::undefined();
18469
- }
18470
18258
  jsi::Value NativeBreezSdkSpark::
18471
18259
  cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_identity_public_key(
18472
18260
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
@@ -18758,21 +18546,6 @@ jsi::Value NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_free_fiatservice(
18758
18546
 
18759
18547
  return jsi::Value::undefined();
18760
18548
  }
18761
- jsi::Value NativeBreezSdkSpark::
18762
- cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_fiatservice(
18763
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
18764
- size_t count) {
18765
- auto vtableInstance = uniffi::breez_sdk_spark::Bridging<
18766
- UniffiVTableCallbackInterfaceFiatService>::fromJs(rt, callInvoker,
18767
- args[0]);
18768
-
18769
- std::lock_guard<std::mutex> lock(
18770
- uniffi::breez_sdk_spark::registry::vtableMutex);
18771
- uniffi_breez_sdk_spark_fn_init_callback_vtable_fiatservice(
18772
- uniffi::breez_sdk_spark::registry::putTable(
18773
- "UniffiVTableCallbackInterfaceFiatService", vtableInstance));
18774
- return jsi::Value::undefined();
18775
- }
18776
18549
  jsi::Value NativeBreezSdkSpark::
18777
18550
  cpp_uniffi_breez_sdk_spark_fn_method_fiatservice_fetch_fiat_currencies(
18778
18551
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
@@ -18904,21 +18677,6 @@ NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_free_passkeyprfprovider(
18904
18677
 
18905
18678
  return jsi::Value::undefined();
18906
18679
  }
18907
- jsi::Value NativeBreezSdkSpark::
18908
- cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_passkeyprfprovider(
18909
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
18910
- size_t count) {
18911
- auto vtableInstance = uniffi::breez_sdk_spark::Bridging<
18912
- UniffiVTableCallbackInterfacePasskeyPrfProvider>::fromJs(rt, callInvoker,
18913
- args[0]);
18914
-
18915
- std::lock_guard<std::mutex> lock(
18916
- uniffi::breez_sdk_spark::registry::vtableMutex);
18917
- uniffi_breez_sdk_spark_fn_init_callback_vtable_passkeyprfprovider(
18918
- uniffi::breez_sdk_spark::registry::putTable(
18919
- "UniffiVTableCallbackInterfacePasskeyPrfProvider", vtableInstance));
18920
- return jsi::Value::undefined();
18921
- }
18922
18680
  jsi::Value NativeBreezSdkSpark::
18923
18681
  cpp_uniffi_breez_sdk_spark_fn_method_passkeyprfprovider_derive_prf_seed(
18924
18682
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
@@ -18969,21 +18727,6 @@ NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_free_paymentobserver(
18969
18727
 
18970
18728
  return jsi::Value::undefined();
18971
18729
  }
18972
- jsi::Value NativeBreezSdkSpark::
18973
- cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_paymentobserver(
18974
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
18975
- size_t count) {
18976
- auto vtableInstance = uniffi::breez_sdk_spark::Bridging<
18977
- UniffiVTableCallbackInterfacePaymentObserver>::fromJs(rt, callInvoker,
18978
- args[0]);
18979
-
18980
- std::lock_guard<std::mutex> lock(
18981
- uniffi::breez_sdk_spark::registry::vtableMutex);
18982
- uniffi_breez_sdk_spark_fn_init_callback_vtable_paymentobserver(
18983
- uniffi::breez_sdk_spark::registry::putTable(
18984
- "UniffiVTableCallbackInterfacePaymentObserver", vtableInstance));
18985
- return jsi::Value::undefined();
18986
- }
18987
18730
  jsi::Value NativeBreezSdkSpark::
18988
18731
  cpp_uniffi_breez_sdk_spark_fn_method_paymentobserver_before_send(
18989
18732
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
@@ -19020,21 +18763,6 @@ jsi::Value NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_free_restclient(
19020
18763
 
19021
18764
  return jsi::Value::undefined();
19022
18765
  }
19023
- jsi::Value NativeBreezSdkSpark::
19024
- cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_restclient(
19025
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
19026
- size_t count) {
19027
- auto vtableInstance = uniffi::breez_sdk_spark::Bridging<
19028
- UniffiVTableCallbackInterfaceRestClient>::fromJs(rt, callInvoker,
19029
- args[0]);
19030
-
19031
- std::lock_guard<std::mutex> lock(
19032
- uniffi::breez_sdk_spark::registry::vtableMutex);
19033
- uniffi_breez_sdk_spark_fn_init_callback_vtable_restclient(
19034
- uniffi::breez_sdk_spark::registry::putTable(
19035
- "UniffiVTableCallbackInterfaceRestClient", vtableInstance));
19036
- return jsi::Value::undefined();
19037
- }
19038
18766
  jsi::Value NativeBreezSdkSpark::
19039
18767
  cpp_uniffi_breez_sdk_spark_fn_method_restclient_get_request(
19040
18768
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
@@ -19253,20 +18981,6 @@ jsi::Value NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_free_storage(
19253
18981
 
19254
18982
  return jsi::Value::undefined();
19255
18983
  }
19256
- jsi::Value
19257
- NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_storage(
19258
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
19259
- size_t count) {
19260
- auto vtableInstance = uniffi::breez_sdk_spark::Bridging<
19261
- UniffiVTableCallbackInterfaceStorage>::fromJs(rt, callInvoker, args[0]);
19262
-
19263
- std::lock_guard<std::mutex> lock(
19264
- uniffi::breez_sdk_spark::registry::vtableMutex);
19265
- uniffi_breez_sdk_spark_fn_init_callback_vtable_storage(
19266
- uniffi::breez_sdk_spark::registry::putTable(
19267
- "UniffiVTableCallbackInterfaceStorage", vtableInstance));
19268
- return jsi::Value::undefined();
19269
- }
19270
18984
  jsi::Value NativeBreezSdkSpark::
19271
18985
  cpp_uniffi_breez_sdk_spark_fn_method_storage_delete_cached_item(
19272
18986
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
@@ -19389,8 +19103,7 @@ NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_method_storage_add_deposit(
19389
19103
  uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
19390
19104
  args[1]),
19391
19105
  uniffi_jsi::Bridging<uint32_t>::fromJs(rt, callInvoker, args[2]),
19392
- uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[3]),
19393
- uniffi_jsi::Bridging<int8_t>::fromJs(rt, callInvoker, args[4]));
19106
+ uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[3]));
19394
19107
 
19395
19108
  return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
19396
19109
  value);
@@ -19706,35 +19419,6 @@ jsi::Value NativeBreezSdkSpark::
19706
19419
  return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
19707
19420
  value);
19708
19421
  }
19709
- jsi::Value NativeBreezSdkSpark::
19710
- cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_eventlistener(
19711
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
19712
- size_t count) {
19713
- auto vtableInstance = uniffi::breez_sdk_spark::Bridging<
19714
- UniffiVTableCallbackInterfaceEventListener>::fromJs(rt, callInvoker,
19715
- args[0]);
19716
-
19717
- std::lock_guard<std::mutex> lock(
19718
- uniffi::breez_sdk_spark::registry::vtableMutex);
19719
- uniffi_breez_sdk_spark_fn_init_callback_vtable_eventlistener(
19720
- uniffi::breez_sdk_spark::registry::putTable(
19721
- "UniffiVTableCallbackInterfaceEventListener", vtableInstance));
19722
- return jsi::Value::undefined();
19723
- }
19724
- jsi::Value
19725
- NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_logger(
19726
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
19727
- size_t count) {
19728
- auto vtableInstance = uniffi::breez_sdk_spark::Bridging<
19729
- UniffiVTableCallbackInterfaceLogger>::fromJs(rt, callInvoker, args[0]);
19730
-
19731
- std::lock_guard<std::mutex> lock(
19732
- uniffi::breez_sdk_spark::registry::vtableMutex);
19733
- uniffi_breez_sdk_spark_fn_init_callback_vtable_logger(
19734
- uniffi::breez_sdk_spark::registry::putTable(
19735
- "UniffiVTableCallbackInterfaceLogger", vtableInstance));
19736
- return jsi::Value::undefined();
19737
- }
19738
19422
  jsi::Value NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_func_connect(
19739
19423
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
19740
19424
  size_t count) {
@@ -20735,14 +20419,6 @@ jsi::Value NativeBreezSdkSpark::
20735
20419
 
20736
20420
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
20737
20421
  }
20738
- jsi::Value NativeBreezSdkSpark::
20739
- cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_webhooks(
20740
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
20741
- size_t count) {
20742
- auto value = uniffi_breez_sdk_spark_checksum_method_breezsdk_list_webhooks();
20743
-
20744
- return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
20745
- }
20746
20422
  jsi::Value NativeBreezSdkSpark::
20747
20423
  cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_auth(
20748
20424
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
@@ -20828,15 +20504,6 @@ jsi::Value NativeBreezSdkSpark::
20828
20504
 
20829
20505
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
20830
20506
  }
20831
- jsi::Value NativeBreezSdkSpark::
20832
- cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_register_webhook(
20833
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
20834
- size_t count) {
20835
- auto value =
20836
- uniffi_breez_sdk_spark_checksum_method_breezsdk_register_webhook();
20837
-
20838
- return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
20839
- }
20840
20507
  jsi::Value NativeBreezSdkSpark::
20841
20508
  cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener(
20842
20509
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
@@ -20879,15 +20546,6 @@ jsi::Value NativeBreezSdkSpark::
20879
20546
 
20880
20547
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
20881
20548
  }
20882
- jsi::Value NativeBreezSdkSpark::
20883
- cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_unregister_webhook(
20884
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
20885
- size_t count) {
20886
- auto value =
20887
- uniffi_breez_sdk_spark_checksum_method_breezsdk_unregister_webhook();
20888
-
20889
- return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
20890
- }
20891
20549
  jsi::Value NativeBreezSdkSpark::
20892
20550
  cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_update_contact(
20893
20551
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
@@ -21597,4 +21255,137 @@ jsi::Value NativeBreezSdkSpark::cpp_ffi_breez_sdk_spark_uniffi_contract_version(
21597
21255
  auto value = ffi_breez_sdk_spark_uniffi_contract_version();
21598
21256
 
21599
21257
  return uniffi_jsi::Bridging<uint32_t>::toJs(rt, callInvoker, value);
21258
+ }
21259
+ jsi::Value NativeBreezSdkSpark::
21260
+ cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_eventlistener(
21261
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
21262
+ size_t count) {
21263
+ auto vtableInstance = uniffi::breez_sdk_spark::Bridging<
21264
+ UniffiVTableCallbackInterfaceEventListener>::fromJs(rt, callInvoker,
21265
+ args[0]);
21266
+
21267
+ std::lock_guard<std::mutex> lock(
21268
+ uniffi::breez_sdk_spark::registry::vtableMutex);
21269
+ uniffi_breez_sdk_spark_fn_init_callback_vtable_eventlistener(
21270
+ uniffi::breez_sdk_spark::registry::putTable(
21271
+ "UniffiVTableCallbackInterfaceEventListener", vtableInstance));
21272
+ return jsi::Value::undefined();
21273
+ }
21274
+ jsi::Value
21275
+ NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_logger(
21276
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
21277
+ size_t count) {
21278
+ auto vtableInstance = uniffi::breez_sdk_spark::Bridging<
21279
+ UniffiVTableCallbackInterfaceLogger>::fromJs(rt, callInvoker, args[0]);
21280
+
21281
+ std::lock_guard<std::mutex> lock(
21282
+ uniffi::breez_sdk_spark::registry::vtableMutex);
21283
+ uniffi_breez_sdk_spark_fn_init_callback_vtable_logger(
21284
+ uniffi::breez_sdk_spark::registry::putTable(
21285
+ "UniffiVTableCallbackInterfaceLogger", vtableInstance));
21286
+ return jsi::Value::undefined();
21287
+ }
21288
+ jsi::Value NativeBreezSdkSpark::
21289
+ cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_bitcoinchainservice(
21290
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
21291
+ size_t count) {
21292
+ auto vtableInstance = uniffi::breez_sdk_spark::Bridging<
21293
+ UniffiVTableCallbackInterfaceBitcoinChainService>::fromJs(rt, callInvoker,
21294
+ args[0]);
21295
+
21296
+ std::lock_guard<std::mutex> lock(
21297
+ uniffi::breez_sdk_spark::registry::vtableMutex);
21298
+ uniffi_breez_sdk_spark_fn_init_callback_vtable_bitcoinchainservice(
21299
+ uniffi::breez_sdk_spark::registry::putTable(
21300
+ "UniffiVTableCallbackInterfaceBitcoinChainService", vtableInstance));
21301
+ return jsi::Value::undefined();
21302
+ }
21303
+ jsi::Value NativeBreezSdkSpark::
21304
+ cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_externalsigner(
21305
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
21306
+ size_t count) {
21307
+ auto vtableInstance = uniffi::breez_sdk_spark::Bridging<
21308
+ UniffiVTableCallbackInterfaceExternalSigner>::fromJs(rt, callInvoker,
21309
+ args[0]);
21310
+
21311
+ std::lock_guard<std::mutex> lock(
21312
+ uniffi::breez_sdk_spark::registry::vtableMutex);
21313
+ uniffi_breez_sdk_spark_fn_init_callback_vtable_externalsigner(
21314
+ uniffi::breez_sdk_spark::registry::putTable(
21315
+ "UniffiVTableCallbackInterfaceExternalSigner", vtableInstance));
21316
+ return jsi::Value::undefined();
21317
+ }
21318
+ jsi::Value NativeBreezSdkSpark::
21319
+ cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_fiatservice(
21320
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
21321
+ size_t count) {
21322
+ auto vtableInstance = uniffi::breez_sdk_spark::Bridging<
21323
+ UniffiVTableCallbackInterfaceFiatService>::fromJs(rt, callInvoker,
21324
+ args[0]);
21325
+
21326
+ std::lock_guard<std::mutex> lock(
21327
+ uniffi::breez_sdk_spark::registry::vtableMutex);
21328
+ uniffi_breez_sdk_spark_fn_init_callback_vtable_fiatservice(
21329
+ uniffi::breez_sdk_spark::registry::putTable(
21330
+ "UniffiVTableCallbackInterfaceFiatService", vtableInstance));
21331
+ return jsi::Value::undefined();
21332
+ }
21333
+ jsi::Value NativeBreezSdkSpark::
21334
+ cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_passkeyprfprovider(
21335
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
21336
+ size_t count) {
21337
+ auto vtableInstance = uniffi::breez_sdk_spark::Bridging<
21338
+ UniffiVTableCallbackInterfacePasskeyPrfProvider>::fromJs(rt, callInvoker,
21339
+ args[0]);
21340
+
21341
+ std::lock_guard<std::mutex> lock(
21342
+ uniffi::breez_sdk_spark::registry::vtableMutex);
21343
+ uniffi_breez_sdk_spark_fn_init_callback_vtable_passkeyprfprovider(
21344
+ uniffi::breez_sdk_spark::registry::putTable(
21345
+ "UniffiVTableCallbackInterfacePasskeyPrfProvider", vtableInstance));
21346
+ return jsi::Value::undefined();
21347
+ }
21348
+ jsi::Value NativeBreezSdkSpark::
21349
+ cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_paymentobserver(
21350
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
21351
+ size_t count) {
21352
+ auto vtableInstance = uniffi::breez_sdk_spark::Bridging<
21353
+ UniffiVTableCallbackInterfacePaymentObserver>::fromJs(rt, callInvoker,
21354
+ args[0]);
21355
+
21356
+ std::lock_guard<std::mutex> lock(
21357
+ uniffi::breez_sdk_spark::registry::vtableMutex);
21358
+ uniffi_breez_sdk_spark_fn_init_callback_vtable_paymentobserver(
21359
+ uniffi::breez_sdk_spark::registry::putTable(
21360
+ "UniffiVTableCallbackInterfacePaymentObserver", vtableInstance));
21361
+ return jsi::Value::undefined();
21362
+ }
21363
+ jsi::Value NativeBreezSdkSpark::
21364
+ cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_restclient(
21365
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
21366
+ size_t count) {
21367
+ auto vtableInstance = uniffi::breez_sdk_spark::Bridging<
21368
+ UniffiVTableCallbackInterfaceRestClient>::fromJs(rt, callInvoker,
21369
+ args[0]);
21370
+
21371
+ std::lock_guard<std::mutex> lock(
21372
+ uniffi::breez_sdk_spark::registry::vtableMutex);
21373
+ uniffi_breez_sdk_spark_fn_init_callback_vtable_restclient(
21374
+ uniffi::breez_sdk_spark::registry::putTable(
21375
+ "UniffiVTableCallbackInterfaceRestClient", vtableInstance));
21376
+ return jsi::Value::undefined();
21377
+ }
21378
+ jsi::Value
21379
+ NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_storage(
21380
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
21381
+ size_t count) {
21382
+ auto vtableInstance = uniffi::breez_sdk_spark::Bridging<
21383
+ UniffiVTableCallbackInterfaceStorage>::fromJs(rt, callInvoker, args[0]);
21384
+
21385
+ std::lock_guard<std::mutex> lock(
21386
+ uniffi::breez_sdk_spark::registry::vtableMutex);
21387
+ uniffi_breez_sdk_spark_fn_init_callback_vtable_storage(
21388
+ uniffi::breez_sdk_spark::registry::putTable(
21389
+ "UniffiVTableCallbackInterfaceStorage", vtableInstance));
21390
+ return jsi::Value::undefined();
21600
21391
  }