react-native-bdk-sdk 0.1.4 → 0.1.6

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 (37) hide show
  1. package/cpp/generated/bdk_ffi.cpp +345 -12
  2. package/cpp/generated/bdk_ffi.hpp +17 -0
  3. package/lib/commonjs/generated/bdk_ffi-ffi.js.map +1 -1
  4. package/lib/commonjs/generated/bdk_ffi.js +1946 -1266
  5. package/lib/commonjs/generated/bdk_ffi.js.map +1 -1
  6. package/lib/commonjs/index.js +14 -0
  7. package/lib/commonjs/index.js.map +1 -1
  8. package/lib/commonjs/wrapper.js +433 -0
  9. package/lib/commonjs/wrapper.js.map +1 -0
  10. package/lib/module/generated/bdk_ffi-ffi.js.map +1 -1
  11. package/lib/module/generated/bdk_ffi.js +1941 -1266
  12. package/lib/module/generated/bdk_ffi.js.map +1 -1
  13. package/lib/module/index.js +3 -0
  14. package/lib/module/index.js.map +1 -1
  15. package/lib/module/wrapper.js +427 -0
  16. package/lib/module/wrapper.js.map +1 -0
  17. package/lib/typescript/commonjs/src/generated/bdk_ffi-ffi.d.ts +21 -4
  18. package/lib/typescript/commonjs/src/generated/bdk_ffi-ffi.d.ts.map +1 -1
  19. package/lib/typescript/commonjs/src/generated/bdk_ffi.d.ts +3372 -1829
  20. package/lib/typescript/commonjs/src/generated/bdk_ffi.d.ts.map +1 -1
  21. package/lib/typescript/commonjs/src/index.d.ts +1 -0
  22. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  23. package/lib/typescript/commonjs/src/wrapper.d.ts +168 -0
  24. package/lib/typescript/commonjs/src/wrapper.d.ts.map +1 -0
  25. package/lib/typescript/module/src/generated/bdk_ffi-ffi.d.ts +21 -4
  26. package/lib/typescript/module/src/generated/bdk_ffi-ffi.d.ts.map +1 -1
  27. package/lib/typescript/module/src/generated/bdk_ffi.d.ts +3372 -1829
  28. package/lib/typescript/module/src/generated/bdk_ffi.d.ts.map +1 -1
  29. package/lib/typescript/module/src/index.d.ts +1 -0
  30. package/lib/typescript/module/src/index.d.ts.map +1 -1
  31. package/lib/typescript/module/src/wrapper.d.ts +168 -0
  32. package/lib/typescript/module/src/wrapper.d.ts.map +1 -0
  33. package/package.json +3 -3
  34. package/src/generated/bdk_ffi-ffi.ts +63 -5
  35. package/src/generated/bdk_ffi.ts +2743 -1692
  36. package/src/index.tsx +3 -0
  37. package/src/wrapper.ts +614 -0
@@ -129,6 +129,18 @@ extern "C" {
129
129
  uint64_t callback_data,
130
130
  UniffiForeignFutureResultVoid result
131
131
  );
132
+ /*handle*/ uint64_t uniffi_bdk_ffi_fn_clone_electrumclient(
133
+ /*handle*/ uint64_t handle,
134
+ RustCallStatus *uniffi_out_err
135
+ );
136
+ void uniffi_bdk_ffi_fn_free_electrumclient(
137
+ /*handle*/ uint64_t handle,
138
+ RustCallStatus *uniffi_out_err
139
+ );
140
+ /*handle*/ uint64_t uniffi_bdk_ffi_fn_constructor_electrumclient_new(
141
+ RustBuffer url,
142
+ RustCallStatus *uniffi_out_err
143
+ );
132
144
  /*handle*/ uint64_t uniffi_bdk_ffi_fn_clone_mnemonic(
133
145
  /*handle*/ uint64_t handle,
134
146
  RustCallStatus *uniffi_out_err
@@ -315,8 +327,7 @@ extern "C" {
315
327
  );
316
328
  /*handle*/ uint64_t uniffi_bdk_ffi_fn_method_txbuilder_finish(
317
329
  /*handle*/ uint64_t ptr,
318
- /*handle*/ uint64_t wallet,
319
- RustCallStatus *uniffi_out_err
330
+ /*handle*/ uint64_t wallet
320
331
  );
321
332
  void uniffi_bdk_ffi_fn_method_txbuilder_include_output_redeem_witness_script(
322
333
  /*handle*/ uint64_t ptr,
@@ -392,7 +403,7 @@ extern "C" {
392
403
  );
393
404
  /*handle*/ uint64_t uniffi_bdk_ffi_fn_method_wallet_broadcast_with_electrum(
394
405
  /*handle*/ uint64_t ptr,
395
- RustBuffer url,
406
+ /*handle*/ uint64_t client,
396
407
  /*handle*/ uint64_t psbt
397
408
  );
398
409
  /*handle*/ uint64_t uniffi_bdk_ffi_fn_method_wallet_broadcast_with_esplora(
@@ -446,6 +457,12 @@ extern "C" {
446
457
  double fee_rate,
447
458
  RustBuffer esplora_url
448
459
  );
460
+ /*handle*/ uint64_t uniffi_bdk_ffi_fn_method_wallet_drain_with_electrum(
461
+ /*handle*/ uint64_t ptr,
462
+ RustBuffer address,
463
+ double fee_rate,
464
+ /*handle*/ uint64_t client
465
+ );
449
466
  int8_t uniffi_bdk_ffi_fn_method_wallet_finalize_psbt(
450
467
  /*handle*/ uint64_t ptr,
451
468
  /*handle*/ uint64_t psbt,
@@ -453,7 +470,7 @@ extern "C" {
453
470
  );
454
471
  /*handle*/ uint64_t uniffi_bdk_ffi_fn_method_wallet_full_scan_with_electrum(
455
472
  /*handle*/ uint64_t ptr,
456
- RustBuffer url,
473
+ /*handle*/ uint64_t client,
457
474
  uint64_t stop_gap
458
475
  );
459
476
  /*handle*/ uint64_t uniffi_bdk_ffi_fn_method_wallet_full_scan_with_esplora(
@@ -565,6 +582,13 @@ extern "C" {
565
582
  double fee_rate,
566
583
  RustBuffer esplora_url
567
584
  );
585
+ /*handle*/ uint64_t uniffi_bdk_ffi_fn_method_wallet_send_with_electrum(
586
+ /*handle*/ uint64_t ptr,
587
+ RustBuffer address,
588
+ uint64_t amount_sats,
589
+ double fee_rate,
590
+ /*handle*/ uint64_t client
591
+ );
568
592
  RustBuffer uniffi_bdk_ffi_fn_method_wallet_sent_and_received(
569
593
  /*handle*/ uint64_t ptr,
570
594
  RustBuffer tx_hex,
@@ -577,7 +601,7 @@ extern "C" {
577
601
  );
578
602
  /*handle*/ uint64_t uniffi_bdk_ffi_fn_method_wallet_sync_with_electrum(
579
603
  /*handle*/ uint64_t ptr,
580
- RustBuffer url,
604
+ /*handle*/ uint64_t client,
581
605
  uint64_t stop_gap
582
606
  );
583
607
  /*handle*/ uint64_t uniffi_bdk_ffi_fn_method_wallet_sync_with_esplora(
@@ -600,6 +624,11 @@ extern "C" {
600
624
  uint32_t index,
601
625
  RustCallStatus *uniffi_out_err
602
626
  );
627
+ RustBuffer uniffi_bdk_ffi_fn_func_address_from_script(
628
+ RustBuffer script_hex,
629
+ RustBuffer network,
630
+ RustCallStatus *uniffi_out_err
631
+ );
603
632
  RustBuffer uniffi_bdk_ffi_fn_func_create_descriptor(
604
633
  /*handle*/ uint64_t mnemonic,
605
634
  RustBuffer template_,
@@ -607,6 +636,13 @@ extern "C" {
607
636
  RustBuffer network,
608
637
  RustCallStatus *uniffi_out_err
609
638
  );
639
+ RustBuffer uniffi_bdk_ffi_fn_func_create_descriptor_from_string(
640
+ RustBuffer mnemonic,
641
+ RustBuffer template_,
642
+ RustBuffer keychain,
643
+ RustBuffer network,
644
+ RustCallStatus *uniffi_out_err
645
+ );
610
646
  RustBuffer uniffi_bdk_ffi_fn_func_create_public_descriptor(
611
647
  RustBuffer xpub,
612
648
  RustBuffer template_,
@@ -620,6 +656,12 @@ extern "C" {
620
656
  RustBuffer network,
621
657
  RustCallStatus *uniffi_out_err
622
658
  );
659
+ /*handle*/ uint64_t uniffi_bdk_ffi_fn_func_create_wallet(
660
+ RustBuffer descriptor,
661
+ RustBuffer change_descriptor,
662
+ RustBuffer network,
663
+ RustBuffer db_path
664
+ );
623
665
  RustBuffer uniffi_bdk_ffi_fn_func_export_wallet(
624
666
  /*handle*/ uint64_t wallet,
625
667
  RustBuffer label,
@@ -631,6 +673,11 @@ extern "C" {
631
673
  RustBuffer network,
632
674
  RustCallStatus *uniffi_out_err
633
675
  );
676
+ int8_t uniffi_bdk_ffi_fn_func_validate_descriptor(
677
+ RustBuffer descriptor,
678
+ RustBuffer network,
679
+ RustCallStatus *uniffi_out_err
680
+ );
634
681
  RustBuffer uniffi_bdk_ffi_fn_func_version(RustCallStatus *uniffi_out_err
635
682
  );
636
683
  RustBuffer uniffi_bdk_ffi_fn_func_wallet_name_from_descriptor(
@@ -836,16 +883,24 @@ extern "C" {
836
883
  /*handle*/ uint64_t handle,
837
884
  RustCallStatus *uniffi_out_err
838
885
  );
886
+ uint16_t uniffi_bdk_ffi_checksum_func_address_from_script(
887
+ );
839
888
  uint16_t uniffi_bdk_ffi_checksum_func_create_descriptor(
840
889
  );
890
+ uint16_t uniffi_bdk_ffi_checksum_func_create_descriptor_from_string(
891
+ );
841
892
  uint16_t uniffi_bdk_ffi_checksum_func_create_public_descriptor(
842
893
  );
843
894
  uint16_t uniffi_bdk_ffi_checksum_func_create_single_key_descriptor(
844
895
  );
896
+ uint16_t uniffi_bdk_ffi_checksum_func_create_wallet(
897
+ );
845
898
  uint16_t uniffi_bdk_ffi_checksum_func_export_wallet(
846
899
  );
847
900
  uint16_t uniffi_bdk_ffi_checksum_func_is_valid_address(
848
901
  );
902
+ uint16_t uniffi_bdk_ffi_checksum_func_validate_descriptor(
903
+ );
849
904
  uint16_t uniffi_bdk_ffi_checksum_func_version(
850
905
  );
851
906
  uint16_t uniffi_bdk_ffi_checksum_func_wallet_name_from_descriptor(
@@ -956,6 +1011,8 @@ extern "C" {
956
1011
  );
957
1012
  uint16_t uniffi_bdk_ffi_checksum_method_wallet_drain(
958
1013
  );
1014
+ uint16_t uniffi_bdk_ffi_checksum_method_wallet_drain_with_electrum(
1015
+ );
959
1016
  uint16_t uniffi_bdk_ffi_checksum_method_wallet_finalize_psbt(
960
1017
  );
961
1018
  uint16_t uniffi_bdk_ffi_checksum_method_wallet_full_scan_with_electrum(
@@ -1004,6 +1061,8 @@ extern "C" {
1004
1061
  );
1005
1062
  uint16_t uniffi_bdk_ffi_checksum_method_wallet_send(
1006
1063
  );
1064
+ uint16_t uniffi_bdk_ffi_checksum_method_wallet_send_with_electrum(
1065
+ );
1007
1066
  uint16_t uniffi_bdk_ffi_checksum_method_wallet_sent_and_received(
1008
1067
  );
1009
1068
  uint16_t uniffi_bdk_ffi_checksum_method_wallet_sign(
@@ -1018,6 +1077,8 @@ extern "C" {
1018
1077
  );
1019
1078
  uint16_t uniffi_bdk_ffi_checksum_method_wallet_unmark_used(
1020
1079
  );
1080
+ uint16_t uniffi_bdk_ffi_checksum_constructor_electrumclient_new(
1081
+ );
1021
1082
  uint16_t uniffi_bdk_ffi_checksum_constructor_mnemonic_from_entropy(
1022
1083
  );
1023
1084
  uint16_t uniffi_bdk_ffi_checksum_constructor_mnemonic_from_entropy_in(
@@ -2466,6 +2527,30 @@ NativeBdkFfi::NativeBdkFfi(
2466
2527
  return this->cpp_uniffi_internal_fn_func_ffi__arraybuffer_to_string(rt, thisVal, args, count);
2467
2528
  }
2468
2529
  );
2530
+ props["ubrn_uniffi_bdk_ffi_fn_clone_electrumclient"] = jsi::Function::createFromHostFunction(
2531
+ rt,
2532
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_fn_clone_electrumclient"),
2533
+ 1,
2534
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
2535
+ return this->cpp_uniffi_bdk_ffi_fn_clone_electrumclient(rt, thisVal, args, count);
2536
+ }
2537
+ );
2538
+ props["ubrn_uniffi_bdk_ffi_fn_free_electrumclient"] = jsi::Function::createFromHostFunction(
2539
+ rt,
2540
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_fn_free_electrumclient"),
2541
+ 1,
2542
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
2543
+ return this->cpp_uniffi_bdk_ffi_fn_free_electrumclient(rt, thisVal, args, count);
2544
+ }
2545
+ );
2546
+ props["ubrn_uniffi_bdk_ffi_fn_constructor_electrumclient_new"] = jsi::Function::createFromHostFunction(
2547
+ rt,
2548
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_fn_constructor_electrumclient_new"),
2549
+ 1,
2550
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
2551
+ return this->cpp_uniffi_bdk_ffi_fn_constructor_electrumclient_new(rt, thisVal, args, count);
2552
+ }
2553
+ );
2469
2554
  props["ubrn_uniffi_bdk_ffi_fn_clone_mnemonic"] = jsi::Function::createFromHostFunction(
2470
2555
  rt,
2471
2556
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_fn_clone_mnemonic"),
@@ -3018,6 +3103,14 @@ NativeBdkFfi::NativeBdkFfi(
3018
3103
  return this->cpp_uniffi_bdk_ffi_fn_method_wallet_drain(rt, thisVal, args, count);
3019
3104
  }
3020
3105
  );
3106
+ props["ubrn_uniffi_bdk_ffi_fn_method_wallet_drain_with_electrum"] = jsi::Function::createFromHostFunction(
3107
+ rt,
3108
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_fn_method_wallet_drain_with_electrum"),
3109
+ 4,
3110
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
3111
+ return this->cpp_uniffi_bdk_ffi_fn_method_wallet_drain_with_electrum(rt, thisVal, args, count);
3112
+ }
3113
+ );
3021
3114
  props["ubrn_uniffi_bdk_ffi_fn_method_wallet_finalize_psbt"] = jsi::Function::createFromHostFunction(
3022
3115
  rt,
3023
3116
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_fn_method_wallet_finalize_psbt"),
@@ -3210,6 +3303,14 @@ NativeBdkFfi::NativeBdkFfi(
3210
3303
  return this->cpp_uniffi_bdk_ffi_fn_method_wallet_send(rt, thisVal, args, count);
3211
3304
  }
3212
3305
  );
3306
+ props["ubrn_uniffi_bdk_ffi_fn_method_wallet_send_with_electrum"] = jsi::Function::createFromHostFunction(
3307
+ rt,
3308
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_fn_method_wallet_send_with_electrum"),
3309
+ 5,
3310
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
3311
+ return this->cpp_uniffi_bdk_ffi_fn_method_wallet_send_with_electrum(rt, thisVal, args, count);
3312
+ }
3313
+ );
3213
3314
  props["ubrn_uniffi_bdk_ffi_fn_method_wallet_sent_and_received"] = jsi::Function::createFromHostFunction(
3214
3315
  rt,
3215
3316
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_fn_method_wallet_sent_and_received"),
@@ -3266,6 +3367,14 @@ NativeBdkFfi::NativeBdkFfi(
3266
3367
  return this->cpp_uniffi_bdk_ffi_fn_method_wallet_unmark_used(rt, thisVal, args, count);
3267
3368
  }
3268
3369
  );
3370
+ props["ubrn_uniffi_bdk_ffi_fn_func_address_from_script"] = jsi::Function::createFromHostFunction(
3371
+ rt,
3372
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_fn_func_address_from_script"),
3373
+ 2,
3374
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
3375
+ return this->cpp_uniffi_bdk_ffi_fn_func_address_from_script(rt, thisVal, args, count);
3376
+ }
3377
+ );
3269
3378
  props["ubrn_uniffi_bdk_ffi_fn_func_create_descriptor"] = jsi::Function::createFromHostFunction(
3270
3379
  rt,
3271
3380
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_fn_func_create_descriptor"),
@@ -3274,6 +3383,14 @@ NativeBdkFfi::NativeBdkFfi(
3274
3383
  return this->cpp_uniffi_bdk_ffi_fn_func_create_descriptor(rt, thisVal, args, count);
3275
3384
  }
3276
3385
  );
3386
+ props["ubrn_uniffi_bdk_ffi_fn_func_create_descriptor_from_string"] = jsi::Function::createFromHostFunction(
3387
+ rt,
3388
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_fn_func_create_descriptor_from_string"),
3389
+ 4,
3390
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
3391
+ return this->cpp_uniffi_bdk_ffi_fn_func_create_descriptor_from_string(rt, thisVal, args, count);
3392
+ }
3393
+ );
3277
3394
  props["ubrn_uniffi_bdk_ffi_fn_func_create_public_descriptor"] = jsi::Function::createFromHostFunction(
3278
3395
  rt,
3279
3396
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_fn_func_create_public_descriptor"),
@@ -3290,6 +3407,14 @@ NativeBdkFfi::NativeBdkFfi(
3290
3407
  return this->cpp_uniffi_bdk_ffi_fn_func_create_single_key_descriptor(rt, thisVal, args, count);
3291
3408
  }
3292
3409
  );
3410
+ props["ubrn_uniffi_bdk_ffi_fn_func_create_wallet"] = jsi::Function::createFromHostFunction(
3411
+ rt,
3412
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_fn_func_create_wallet"),
3413
+ 4,
3414
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
3415
+ return this->cpp_uniffi_bdk_ffi_fn_func_create_wallet(rt, thisVal, args, count);
3416
+ }
3417
+ );
3293
3418
  props["ubrn_uniffi_bdk_ffi_fn_func_export_wallet"] = jsi::Function::createFromHostFunction(
3294
3419
  rt,
3295
3420
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_fn_func_export_wallet"),
@@ -3306,6 +3431,14 @@ NativeBdkFfi::NativeBdkFfi(
3306
3431
  return this->cpp_uniffi_bdk_ffi_fn_func_is_valid_address(rt, thisVal, args, count);
3307
3432
  }
3308
3433
  );
3434
+ props["ubrn_uniffi_bdk_ffi_fn_func_validate_descriptor"] = jsi::Function::createFromHostFunction(
3435
+ rt,
3436
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_fn_func_validate_descriptor"),
3437
+ 2,
3438
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
3439
+ return this->cpp_uniffi_bdk_ffi_fn_func_validate_descriptor(rt, thisVal, args, count);
3440
+ }
3441
+ );
3309
3442
  props["ubrn_uniffi_bdk_ffi_fn_func_version"] = jsi::Function::createFromHostFunction(
3310
3443
  rt,
3311
3444
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_fn_func_version"),
@@ -3706,6 +3839,14 @@ NativeBdkFfi::NativeBdkFfi(
3706
3839
  return this->cpp_ffi_bdk_ffi_rust_future_complete_void(rt, thisVal, args, count);
3707
3840
  }
3708
3841
  );
3842
+ props["ubrn_uniffi_bdk_ffi_checksum_func_address_from_script"] = jsi::Function::createFromHostFunction(
3843
+ rt,
3844
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_checksum_func_address_from_script"),
3845
+ 0,
3846
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
3847
+ return this->cpp_uniffi_bdk_ffi_checksum_func_address_from_script(rt, thisVal, args, count);
3848
+ }
3849
+ );
3709
3850
  props["ubrn_uniffi_bdk_ffi_checksum_func_create_descriptor"] = jsi::Function::createFromHostFunction(
3710
3851
  rt,
3711
3852
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_checksum_func_create_descriptor"),
@@ -3714,6 +3855,14 @@ NativeBdkFfi::NativeBdkFfi(
3714
3855
  return this->cpp_uniffi_bdk_ffi_checksum_func_create_descriptor(rt, thisVal, args, count);
3715
3856
  }
3716
3857
  );
3858
+ props["ubrn_uniffi_bdk_ffi_checksum_func_create_descriptor_from_string"] = jsi::Function::createFromHostFunction(
3859
+ rt,
3860
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_checksum_func_create_descriptor_from_string"),
3861
+ 0,
3862
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
3863
+ return this->cpp_uniffi_bdk_ffi_checksum_func_create_descriptor_from_string(rt, thisVal, args, count);
3864
+ }
3865
+ );
3717
3866
  props["ubrn_uniffi_bdk_ffi_checksum_func_create_public_descriptor"] = jsi::Function::createFromHostFunction(
3718
3867
  rt,
3719
3868
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_checksum_func_create_public_descriptor"),
@@ -3730,6 +3879,14 @@ NativeBdkFfi::NativeBdkFfi(
3730
3879
  return this->cpp_uniffi_bdk_ffi_checksum_func_create_single_key_descriptor(rt, thisVal, args, count);
3731
3880
  }
3732
3881
  );
3882
+ props["ubrn_uniffi_bdk_ffi_checksum_func_create_wallet"] = jsi::Function::createFromHostFunction(
3883
+ rt,
3884
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_checksum_func_create_wallet"),
3885
+ 0,
3886
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
3887
+ return this->cpp_uniffi_bdk_ffi_checksum_func_create_wallet(rt, thisVal, args, count);
3888
+ }
3889
+ );
3733
3890
  props["ubrn_uniffi_bdk_ffi_checksum_func_export_wallet"] = jsi::Function::createFromHostFunction(
3734
3891
  rt,
3735
3892
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_checksum_func_export_wallet"),
@@ -3746,6 +3903,14 @@ NativeBdkFfi::NativeBdkFfi(
3746
3903
  return this->cpp_uniffi_bdk_ffi_checksum_func_is_valid_address(rt, thisVal, args, count);
3747
3904
  }
3748
3905
  );
3906
+ props["ubrn_uniffi_bdk_ffi_checksum_func_validate_descriptor"] = jsi::Function::createFromHostFunction(
3907
+ rt,
3908
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_checksum_func_validate_descriptor"),
3909
+ 0,
3910
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
3911
+ return this->cpp_uniffi_bdk_ffi_checksum_func_validate_descriptor(rt, thisVal, args, count);
3912
+ }
3913
+ );
3749
3914
  props["ubrn_uniffi_bdk_ffi_checksum_func_version"] = jsi::Function::createFromHostFunction(
3750
3915
  rt,
3751
3916
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_checksum_func_version"),
@@ -4186,6 +4351,14 @@ NativeBdkFfi::NativeBdkFfi(
4186
4351
  return this->cpp_uniffi_bdk_ffi_checksum_method_wallet_drain(rt, thisVal, args, count);
4187
4352
  }
4188
4353
  );
4354
+ props["ubrn_uniffi_bdk_ffi_checksum_method_wallet_drain_with_electrum"] = jsi::Function::createFromHostFunction(
4355
+ rt,
4356
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_checksum_method_wallet_drain_with_electrum"),
4357
+ 0,
4358
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
4359
+ return this->cpp_uniffi_bdk_ffi_checksum_method_wallet_drain_with_electrum(rt, thisVal, args, count);
4360
+ }
4361
+ );
4189
4362
  props["ubrn_uniffi_bdk_ffi_checksum_method_wallet_finalize_psbt"] = jsi::Function::createFromHostFunction(
4190
4363
  rt,
4191
4364
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_checksum_method_wallet_finalize_psbt"),
@@ -4378,6 +4551,14 @@ NativeBdkFfi::NativeBdkFfi(
4378
4551
  return this->cpp_uniffi_bdk_ffi_checksum_method_wallet_send(rt, thisVal, args, count);
4379
4552
  }
4380
4553
  );
4554
+ props["ubrn_uniffi_bdk_ffi_checksum_method_wallet_send_with_electrum"] = jsi::Function::createFromHostFunction(
4555
+ rt,
4556
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_checksum_method_wallet_send_with_electrum"),
4557
+ 0,
4558
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
4559
+ return this->cpp_uniffi_bdk_ffi_checksum_method_wallet_send_with_electrum(rt, thisVal, args, count);
4560
+ }
4561
+ );
4381
4562
  props["ubrn_uniffi_bdk_ffi_checksum_method_wallet_sent_and_received"] = jsi::Function::createFromHostFunction(
4382
4563
  rt,
4383
4564
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_checksum_method_wallet_sent_and_received"),
@@ -4434,6 +4615,14 @@ NativeBdkFfi::NativeBdkFfi(
4434
4615
  return this->cpp_uniffi_bdk_ffi_checksum_method_wallet_unmark_used(rt, thisVal, args, count);
4435
4616
  }
4436
4617
  );
4618
+ props["ubrn_uniffi_bdk_ffi_checksum_constructor_electrumclient_new"] = jsi::Function::createFromHostFunction(
4619
+ rt,
4620
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_checksum_constructor_electrumclient_new"),
4621
+ 0,
4622
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
4623
+ return this->cpp_uniffi_bdk_ffi_checksum_constructor_electrumclient_new(rt, thisVal, args, count);
4624
+ }
4625
+ );
4437
4626
  props["ubrn_uniffi_bdk_ffi_checksum_constructor_mnemonic_from_entropy"] = jsi::Function::createFromHostFunction(
4438
4627
  rt,
4439
4628
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_checksum_constructor_mnemonic_from_entropy"),
@@ -4506,6 +4695,14 @@ NativeBdkFfi::NativeBdkFfi(
4506
4695
  return this->cpp_ffi_bdk_ffi_uniffi_contract_version(rt, thisVal, args, count);
4507
4696
  }
4508
4697
  );
4698
+ props["ubrn_uniffi_internal_fn_method_electrumclient_ffi__bless_pointer"] = jsi::Function::createFromHostFunction(
4699
+ rt,
4700
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_internal_fn_method_electrumclient_ffi__bless_pointer"),
4701
+ 1,
4702
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
4703
+ return this->cpp_uniffi_internal_fn_method_electrumclient_ffi__bless_pointer(rt, thisVal, args, count);
4704
+ }
4705
+ );
4509
4706
  props["ubrn_uniffi_internal_fn_method_mnemonic_ffi__bless_pointer"] = jsi::Function::createFromHostFunction(
4510
4707
  rt,
4511
4708
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_internal_fn_method_mnemonic_ffi__bless_pointer"),
@@ -4592,6 +4789,15 @@ jsi::Value NativeBdkFfi::cpp_uniffi_internal_fn_func_ffi__string_to_arraybuffer(
4592
4789
 
4593
4790
  jsi::Value NativeBdkFfi::cpp_uniffi_internal_fn_func_ffi__arraybuffer_to_string(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
4594
4791
  return uniffi_jsi::Bridging<std::string>::arraybuffer_to_string(rt, args[0]);
4792
+ }jsi::Value NativeBdkFfi::cpp_uniffi_internal_fn_method_electrumclient_ffi__bless_pointer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
4793
+ auto pointer = uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]);
4794
+ auto static destructor = [](uint64_t p) {
4795
+ RustCallStatus status = {0};
4796
+ uniffi_bdk_ffi_fn_free_electrumclient(p, &status);
4797
+ };
4798
+ auto ptrObj = std::make_shared<uniffi_jsi::DestructibleObject>(pointer, destructor);
4799
+ auto obj = jsi::Object::createFromHostObject(rt, ptrObj);
4800
+ return jsi::Value(rt, obj);
4595
4801
  }jsi::Value NativeBdkFfi::cpp_uniffi_internal_fn_method_mnemonic_ffi__bless_pointer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
4596
4802
  auto pointer = uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]);
4597
4803
  auto static destructor = [](uint64_t p) {
@@ -4631,6 +4837,36 @@ jsi::Value NativeBdkFfi::cpp_uniffi_internal_fn_func_ffi__arraybuffer_to_string(
4631
4837
  }
4632
4838
 
4633
4839
  // Methods calling directly into the uniffi generated C API of the Rust crate.
4840
+ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_clone_electrumclient(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
4841
+ RustCallStatus status = uniffi::bdk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
4842
+ auto value = uniffi_bdk_ffi_fn_clone_electrumclient(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
4843
+ &status
4844
+ );
4845
+ uniffi::bdk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
4846
+
4847
+
4848
+ return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
4849
+ }
4850
+ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_free_electrumclient(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
4851
+ RustCallStatus status = uniffi::bdk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
4852
+ uniffi_bdk_ffi_fn_free_electrumclient(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
4853
+ &status
4854
+ );
4855
+ uniffi::bdk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
4856
+
4857
+
4858
+ return jsi::Value::undefined();
4859
+ }
4860
+ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_constructor_electrumclient_new(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
4861
+ RustCallStatus status = uniffi::bdk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
4862
+ auto value = uniffi_bdk_ffi_fn_constructor_electrumclient_new(uniffi::bdk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]),
4863
+ &status
4864
+ );
4865
+ uniffi::bdk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
4866
+
4867
+
4868
+ return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
4869
+ }
4634
4870
  jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_clone_mnemonic(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
4635
4871
  RustCallStatus status = uniffi::bdk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
4636
4872
  auto value = uniffi_bdk_ffi_fn_clone_mnemonic(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
@@ -5051,11 +5287,8 @@ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_method_txbuilder_fee_rate(jsi::Ru
5051
5287
  return jsi::Value::undefined();
5052
5288
  }
5053
5289
  jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_method_txbuilder_finish(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5054
- RustCallStatus status = uniffi::bdk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
5055
- auto value = uniffi_bdk_ffi_fn_method_txbuilder_finish(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[1]),
5056
- &status
5290
+ auto value = uniffi_bdk_ffi_fn_method_txbuilder_finish(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[1])
5057
5291
  );
5058
- uniffi::bdk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
5059
5292
 
5060
5293
 
5061
5294
  return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
@@ -5211,7 +5444,7 @@ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_constructor_wallet_new(jsi::Runti
5211
5444
  return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
5212
5445
  }
5213
5446
  jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_method_wallet_broadcast_with_electrum(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5214
- auto value = uniffi_bdk_ffi_fn_method_wallet_broadcast_with_electrum(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bdk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[2])
5447
+ auto value = uniffi_bdk_ffi_fn_method_wallet_broadcast_with_electrum(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[2])
5215
5448
  );
5216
5449
 
5217
5450
 
@@ -5309,6 +5542,13 @@ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_method_wallet_drain(jsi::Runtime&
5309
5542
  );
5310
5543
 
5311
5544
 
5545
+ return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
5546
+ }
5547
+ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_method_wallet_drain_with_electrum(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5548
+ auto value = uniffi_bdk_ffi_fn_method_wallet_drain_with_electrum(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bdk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<double>::fromJs(rt, callInvoker, args[2]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[3])
5549
+ );
5550
+
5551
+
5312
5552
  return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
5313
5553
  }
5314
5554
  jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_method_wallet_finalize_psbt(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
@@ -5322,7 +5562,7 @@ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_method_wallet_finalize_psbt(jsi::
5322
5562
  return uniffi_jsi::Bridging<int8_t>::toJs(rt, callInvoker, value);
5323
5563
  }
5324
5564
  jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_method_wallet_full_scan_with_electrum(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5325
- auto value = uniffi_bdk_ffi_fn_method_wallet_full_scan_with_electrum(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bdk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[2])
5565
+ auto value = uniffi_bdk_ffi_fn_method_wallet_full_scan_with_electrum(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[2])
5326
5566
  );
5327
5567
 
5328
5568
 
@@ -5540,6 +5780,13 @@ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_method_wallet_send(jsi::Runtime&
5540
5780
  );
5541
5781
 
5542
5782
 
5783
+ return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
5784
+ }
5785
+ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_method_wallet_send_with_electrum(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5786
+ auto value = uniffi_bdk_ffi_fn_method_wallet_send_with_electrum(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bdk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[2]), uniffi_jsi::Bridging<double>::fromJs(rt, callInvoker, args[3]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[4])
5787
+ );
5788
+
5789
+
5543
5790
  return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
5544
5791
  }
5545
5792
  jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_method_wallet_sent_and_received(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
@@ -5563,7 +5810,7 @@ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_method_wallet_sign(jsi::Runtime&
5563
5810
  return uniffi_jsi::Bridging<int8_t>::toJs(rt, callInvoker, value);
5564
5811
  }
5565
5812
  jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_method_wallet_sync_with_electrum(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5566
- auto value = uniffi_bdk_ffi_fn_method_wallet_sync_with_electrum(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bdk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[2])
5813
+ auto value = uniffi_bdk_ffi_fn_method_wallet_sync_with_electrum(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[2])
5567
5814
  );
5568
5815
 
5569
5816
 
@@ -5606,6 +5853,16 @@ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_method_wallet_unmark_used(jsi::Ru
5606
5853
 
5607
5854
  return uniffi_jsi::Bridging<int8_t>::toJs(rt, callInvoker, value);
5608
5855
  }
5856
+ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_func_address_from_script(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5857
+ RustCallStatus status = uniffi::bdk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
5858
+ auto value = uniffi_bdk_ffi_fn_func_address_from_script(uniffi::bdk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]), uniffi::bdk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
5859
+ &status
5860
+ );
5861
+ uniffi::bdk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
5862
+
5863
+
5864
+ return uniffi::bdk_ffi::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
5865
+ }
5609
5866
  jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_func_create_descriptor(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5610
5867
  RustCallStatus status = uniffi::bdk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
5611
5868
  auto value = uniffi_bdk_ffi_fn_func_create_descriptor(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bdk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi::bdk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]), uniffi::bdk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[3]),
@@ -5614,6 +5871,16 @@ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_func_create_descriptor(jsi::Runti
5614
5871
  uniffi::bdk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
5615
5872
 
5616
5873
 
5874
+ return uniffi::bdk_ffi::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
5875
+ }
5876
+ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_func_create_descriptor_from_string(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5877
+ RustCallStatus status = uniffi::bdk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
5878
+ auto value = uniffi_bdk_ffi_fn_func_create_descriptor_from_string(uniffi::bdk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]), uniffi::bdk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi::bdk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]), uniffi::bdk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[3]),
5879
+ &status
5880
+ );
5881
+ uniffi::bdk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
5882
+
5883
+
5617
5884
  return uniffi::bdk_ffi::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
5618
5885
  }
5619
5886
  jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_func_create_public_descriptor(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
@@ -5636,6 +5903,13 @@ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_func_create_single_key_descriptor
5636
5903
 
5637
5904
  return uniffi::bdk_ffi::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
5638
5905
  }
5906
+ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_func_create_wallet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5907
+ auto value = uniffi_bdk_ffi_fn_func_create_wallet(uniffi::bdk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]), uniffi::bdk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi::bdk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]), uniffi::bdk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[3])
5908
+ );
5909
+
5910
+
5911
+ return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
5912
+ }
5639
5913
  jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_func_export_wallet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5640
5914
  RustCallStatus status = uniffi::bdk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
5641
5915
  auto value = uniffi_bdk_ffi_fn_func_export_wallet(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bdk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<int8_t>::fromJs(rt, callInvoker, args[2]),
@@ -5654,6 +5928,16 @@ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_func_is_valid_address(jsi::Runtim
5654
5928
  uniffi::bdk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
5655
5929
 
5656
5930
 
5931
+ return uniffi_jsi::Bridging<int8_t>::toJs(rt, callInvoker, value);
5932
+ }
5933
+ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_func_validate_descriptor(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5934
+ RustCallStatus status = uniffi::bdk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
5935
+ auto value = uniffi_bdk_ffi_fn_func_validate_descriptor(uniffi::bdk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]), uniffi::bdk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
5936
+ &status
5937
+ );
5938
+ uniffi::bdk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
5939
+
5940
+
5657
5941
  return uniffi_jsi::Bridging<int8_t>::toJs(rt, callInvoker, value);
5658
5942
  }
5659
5943
  jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_func_version(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
@@ -6047,11 +6331,25 @@ jsi::Value NativeBdkFfi::cpp_ffi_bdk_ffi_rust_future_complete_void(jsi::Runtime&
6047
6331
 
6048
6332
  return jsi::Value::undefined();
6049
6333
  }
6334
+ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_checksum_func_address_from_script(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6335
+ auto value = uniffi_bdk_ffi_checksum_func_address_from_script(
6336
+ );
6337
+
6338
+
6339
+ return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
6340
+ }
6050
6341
  jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_checksum_func_create_descriptor(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6051
6342
  auto value = uniffi_bdk_ffi_checksum_func_create_descriptor(
6052
6343
  );
6053
6344
 
6054
6345
 
6346
+ return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
6347
+ }
6348
+ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_checksum_func_create_descriptor_from_string(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6349
+ auto value = uniffi_bdk_ffi_checksum_func_create_descriptor_from_string(
6350
+ );
6351
+
6352
+
6055
6353
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
6056
6354
  }
6057
6355
  jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_checksum_func_create_public_descriptor(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
@@ -6066,6 +6364,13 @@ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_checksum_func_create_single_key_desc
6066
6364
  );
6067
6365
 
6068
6366
 
6367
+ return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
6368
+ }
6369
+ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_checksum_func_create_wallet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6370
+ auto value = uniffi_bdk_ffi_checksum_func_create_wallet(
6371
+ );
6372
+
6373
+
6069
6374
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
6070
6375
  }
6071
6376
  jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_checksum_func_export_wallet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
@@ -6080,6 +6385,13 @@ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_checksum_func_is_valid_address(jsi::
6080
6385
  );
6081
6386
 
6082
6387
 
6388
+ return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
6389
+ }
6390
+ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_checksum_func_validate_descriptor(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6391
+ auto value = uniffi_bdk_ffi_checksum_func_validate_descriptor(
6392
+ );
6393
+
6394
+
6083
6395
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
6084
6396
  }
6085
6397
  jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_checksum_func_version(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
@@ -6465,6 +6777,13 @@ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_checksum_method_wallet_drain(jsi::Ru
6465
6777
  );
6466
6778
 
6467
6779
 
6780
+ return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
6781
+ }
6782
+ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_checksum_method_wallet_drain_with_electrum(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6783
+ auto value = uniffi_bdk_ffi_checksum_method_wallet_drain_with_electrum(
6784
+ );
6785
+
6786
+
6468
6787
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
6469
6788
  }
6470
6789
  jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_checksum_method_wallet_finalize_psbt(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
@@ -6633,6 +6952,13 @@ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_checksum_method_wallet_send(jsi::Run
6633
6952
  );
6634
6953
 
6635
6954
 
6955
+ return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
6956
+ }
6957
+ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_checksum_method_wallet_send_with_electrum(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6958
+ auto value = uniffi_bdk_ffi_checksum_method_wallet_send_with_electrum(
6959
+ );
6960
+
6961
+
6636
6962
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
6637
6963
  }
6638
6964
  jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_checksum_method_wallet_sent_and_received(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
@@ -6682,6 +7008,13 @@ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_checksum_method_wallet_unmark_used(j
6682
7008
  );
6683
7009
 
6684
7010
 
7011
+ return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
7012
+ }
7013
+ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_checksum_constructor_electrumclient_new(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
7014
+ auto value = uniffi_bdk_ffi_checksum_constructor_electrumclient_new(
7015
+ );
7016
+
7017
+
6685
7018
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
6686
7019
  }
6687
7020
  jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_checksum_constructor_mnemonic_from_entropy(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {