react-native-bdk-sdk 0.1.5 → 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 +122 -0
  2. package/cpp/generated/bdk_ffi.hpp +6 -0
  3. package/lib/commonjs/generated/bdk_ffi-ffi.js.map +1 -1
  4. package/lib/commonjs/generated/bdk_ffi.js +132 -7
  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 +128 -6
  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 +6 -0
  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 +61 -2
  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 +6 -0
  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 +61 -2
  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 +20 -0
  35. package/src/generated/bdk_ffi.ts +232 -7
  36. package/src/index.tsx +3 -0
  37. package/src/wrapper.ts +614 -0
@@ -624,6 +624,11 @@ extern "C" {
624
624
  uint32_t index,
625
625
  RustCallStatus *uniffi_out_err
626
626
  );
627
+ RustBuffer uniffi_bdk_ffi_fn_func_address_from_script(
628
+ RustBuffer script_hex,
629
+ RustBuffer network,
630
+ RustCallStatus *uniffi_out_err
631
+ );
627
632
  RustBuffer uniffi_bdk_ffi_fn_func_create_descriptor(
628
633
  /*handle*/ uint64_t mnemonic,
629
634
  RustBuffer template_,
@@ -631,6 +636,13 @@ extern "C" {
631
636
  RustBuffer network,
632
637
  RustCallStatus *uniffi_out_err
633
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
+ );
634
646
  RustBuffer uniffi_bdk_ffi_fn_func_create_public_descriptor(
635
647
  RustBuffer xpub,
636
648
  RustBuffer template_,
@@ -661,6 +673,11 @@ extern "C" {
661
673
  RustBuffer network,
662
674
  RustCallStatus *uniffi_out_err
663
675
  );
676
+ int8_t uniffi_bdk_ffi_fn_func_validate_descriptor(
677
+ RustBuffer descriptor,
678
+ RustBuffer network,
679
+ RustCallStatus *uniffi_out_err
680
+ );
664
681
  RustBuffer uniffi_bdk_ffi_fn_func_version(RustCallStatus *uniffi_out_err
665
682
  );
666
683
  RustBuffer uniffi_bdk_ffi_fn_func_wallet_name_from_descriptor(
@@ -866,8 +883,12 @@ extern "C" {
866
883
  /*handle*/ uint64_t handle,
867
884
  RustCallStatus *uniffi_out_err
868
885
  );
886
+ uint16_t uniffi_bdk_ffi_checksum_func_address_from_script(
887
+ );
869
888
  uint16_t uniffi_bdk_ffi_checksum_func_create_descriptor(
870
889
  );
890
+ uint16_t uniffi_bdk_ffi_checksum_func_create_descriptor_from_string(
891
+ );
871
892
  uint16_t uniffi_bdk_ffi_checksum_func_create_public_descriptor(
872
893
  );
873
894
  uint16_t uniffi_bdk_ffi_checksum_func_create_single_key_descriptor(
@@ -878,6 +899,8 @@ extern "C" {
878
899
  );
879
900
  uint16_t uniffi_bdk_ffi_checksum_func_is_valid_address(
880
901
  );
902
+ uint16_t uniffi_bdk_ffi_checksum_func_validate_descriptor(
903
+ );
881
904
  uint16_t uniffi_bdk_ffi_checksum_func_version(
882
905
  );
883
906
  uint16_t uniffi_bdk_ffi_checksum_func_wallet_name_from_descriptor(
@@ -3344,6 +3367,14 @@ NativeBdkFfi::NativeBdkFfi(
3344
3367
  return this->cpp_uniffi_bdk_ffi_fn_method_wallet_unmark_used(rt, thisVal, args, count);
3345
3368
  }
3346
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
+ );
3347
3378
  props["ubrn_uniffi_bdk_ffi_fn_func_create_descriptor"] = jsi::Function::createFromHostFunction(
3348
3379
  rt,
3349
3380
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_fn_func_create_descriptor"),
@@ -3352,6 +3383,14 @@ NativeBdkFfi::NativeBdkFfi(
3352
3383
  return this->cpp_uniffi_bdk_ffi_fn_func_create_descriptor(rt, thisVal, args, count);
3353
3384
  }
3354
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
+ );
3355
3394
  props["ubrn_uniffi_bdk_ffi_fn_func_create_public_descriptor"] = jsi::Function::createFromHostFunction(
3356
3395
  rt,
3357
3396
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_fn_func_create_public_descriptor"),
@@ -3392,6 +3431,14 @@ NativeBdkFfi::NativeBdkFfi(
3392
3431
  return this->cpp_uniffi_bdk_ffi_fn_func_is_valid_address(rt, thisVal, args, count);
3393
3432
  }
3394
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
+ );
3395
3442
  props["ubrn_uniffi_bdk_ffi_fn_func_version"] = jsi::Function::createFromHostFunction(
3396
3443
  rt,
3397
3444
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_fn_func_version"),
@@ -3792,6 +3839,14 @@ NativeBdkFfi::NativeBdkFfi(
3792
3839
  return this->cpp_ffi_bdk_ffi_rust_future_complete_void(rt, thisVal, args, count);
3793
3840
  }
3794
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
+ );
3795
3850
  props["ubrn_uniffi_bdk_ffi_checksum_func_create_descriptor"] = jsi::Function::createFromHostFunction(
3796
3851
  rt,
3797
3852
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_checksum_func_create_descriptor"),
@@ -3800,6 +3855,14 @@ NativeBdkFfi::NativeBdkFfi(
3800
3855
  return this->cpp_uniffi_bdk_ffi_checksum_func_create_descriptor(rt, thisVal, args, count);
3801
3856
  }
3802
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
+ );
3803
3866
  props["ubrn_uniffi_bdk_ffi_checksum_func_create_public_descriptor"] = jsi::Function::createFromHostFunction(
3804
3867
  rt,
3805
3868
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_checksum_func_create_public_descriptor"),
@@ -3840,6 +3903,14 @@ NativeBdkFfi::NativeBdkFfi(
3840
3903
  return this->cpp_uniffi_bdk_ffi_checksum_func_is_valid_address(rt, thisVal, args, count);
3841
3904
  }
3842
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
+ );
3843
3914
  props["ubrn_uniffi_bdk_ffi_checksum_func_version"] = jsi::Function::createFromHostFunction(
3844
3915
  rt,
3845
3916
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_checksum_func_version"),
@@ -5782,6 +5853,16 @@ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_method_wallet_unmark_used(jsi::Ru
5782
5853
 
5783
5854
  return uniffi_jsi::Bridging<int8_t>::toJs(rt, callInvoker, value);
5784
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
+ }
5785
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) {
5786
5867
  RustCallStatus status = uniffi::bdk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
5787
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]),
@@ -5790,6 +5871,16 @@ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_func_create_descriptor(jsi::Runti
5790
5871
  uniffi::bdk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
5791
5872
 
5792
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
+
5793
5884
  return uniffi::bdk_ffi::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
5794
5885
  }
5795
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) {
@@ -5837,6 +5928,16 @@ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_func_is_valid_address(jsi::Runtim
5837
5928
  uniffi::bdk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
5838
5929
 
5839
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
+
5840
5941
  return uniffi_jsi::Bridging<int8_t>::toJs(rt, callInvoker, value);
5841
5942
  }
5842
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) {
@@ -6230,11 +6331,25 @@ jsi::Value NativeBdkFfi::cpp_ffi_bdk_ffi_rust_future_complete_void(jsi::Runtime&
6230
6331
 
6231
6332
  return jsi::Value::undefined();
6232
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
+ }
6233
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) {
6234
6342
  auto value = uniffi_bdk_ffi_checksum_func_create_descriptor(
6235
6343
  );
6236
6344
 
6237
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
+
6238
6353
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
6239
6354
  }
6240
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) {
@@ -6270,6 +6385,13 @@ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_checksum_func_is_valid_address(jsi::
6270
6385
  );
6271
6386
 
6272
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
+
6273
6395
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
6274
6396
  }
6275
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) {
@@ -126,12 +126,15 @@ class NativeBdkFfi : public jsi::HostObject {
126
126
  jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_transactions(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
127
127
  jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_tx_details(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
128
128
  jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_unmark_used(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
129
+ jsi::Value cpp_uniffi_bdk_ffi_fn_func_address_from_script(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
129
130
  jsi::Value cpp_uniffi_bdk_ffi_fn_func_create_descriptor(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
131
+ jsi::Value cpp_uniffi_bdk_ffi_fn_func_create_descriptor_from_string(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
130
132
  jsi::Value cpp_uniffi_bdk_ffi_fn_func_create_public_descriptor(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
131
133
  jsi::Value cpp_uniffi_bdk_ffi_fn_func_create_single_key_descriptor(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
132
134
  jsi::Value cpp_uniffi_bdk_ffi_fn_func_create_wallet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
133
135
  jsi::Value cpp_uniffi_bdk_ffi_fn_func_export_wallet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
134
136
  jsi::Value cpp_uniffi_bdk_ffi_fn_func_is_valid_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
137
+ jsi::Value cpp_uniffi_bdk_ffi_fn_func_validate_descriptor(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
135
138
  jsi::Value cpp_uniffi_bdk_ffi_fn_func_version(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
136
139
  jsi::Value cpp_uniffi_bdk_ffi_fn_func_wallet_name_from_descriptor(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
137
140
  jsi::Value cpp_ffi_bdk_ffi_rust_future_poll_u8(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
@@ -182,12 +185,15 @@ class NativeBdkFfi : public jsi::HostObject {
182
185
  jsi::Value cpp_ffi_bdk_ffi_rust_future_cancel_void(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
183
186
  jsi::Value cpp_ffi_bdk_ffi_rust_future_free_void(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
184
187
  jsi::Value cpp_ffi_bdk_ffi_rust_future_complete_void(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
188
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_func_address_from_script(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
185
189
  jsi::Value cpp_uniffi_bdk_ffi_checksum_func_create_descriptor(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
190
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_func_create_descriptor_from_string(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
186
191
  jsi::Value cpp_uniffi_bdk_ffi_checksum_func_create_public_descriptor(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
187
192
  jsi::Value cpp_uniffi_bdk_ffi_checksum_func_create_single_key_descriptor(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
188
193
  jsi::Value cpp_uniffi_bdk_ffi_checksum_func_create_wallet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
189
194
  jsi::Value cpp_uniffi_bdk_ffi_checksum_func_export_wallet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
190
195
  jsi::Value cpp_uniffi_bdk_ffi_checksum_func_is_valid_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
196
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_func_validate_descriptor(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
191
197
  jsi::Value cpp_uniffi_bdk_ffi_checksum_func_version(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
192
198
  jsi::Value cpp_uniffi_bdk_ffi_checksum_func_wallet_name_from_descriptor(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
193
199
  jsi::Value cpp_uniffi_bdk_ffi_checksum_method_mnemonic_language(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
@@ -1 +1 @@
1
- {"version":3,"names":["getter","globalThis","NativeBdkFfi","_default","exports","default","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/bdk_ffi-ffi.ts"],"mappings":";;;;;;AAAA;AACA;;AAEA;AACA;AACA;;AAwzBA;AACA;AACA;AACA;AACA;AACA,MAAMA,MAAmC,GAAGA,CAAA,KACzCC,UAAU,CAASC,YAAY;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GACpBL,MAAM,EAErB;AA4GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMM,8CAGL,GAAG,IAAI;AACR,MAAMC,mCAGL,GAAG,IAAI","ignoreList":[]}
1
+ {"version":3,"names":["getter","globalThis","NativeBdkFfi","_default","exports","default","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/bdk_ffi-ffi.ts"],"mappings":";;;;;;AAAA;AACA;;AAEA;AACA;AACA;;AA40BA;AACA;AACA;AACA;AACA;AACA,MAAMA,MAAmC,GAAGA,CAAA,KACzCC,UAAU,CAASC,YAAY;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GACpBL,MAAM,EAErB;AA4GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMM,8CAGL,GAAG,IAAI;AACR,MAAMC,mCAGL,GAAG,IAAI","ignoreList":[]}
@@ -3,14 +3,17 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.WordCount = exports.WalletEvent_Tags = exports.WalletEvent = exports.Wallet = exports.TxOut = exports.TxOrdering = exports.TxDetails = exports.TxBuilder = exports.SingleKeyDescriptorTemplate = exports.SentAndReceived = exports.Recipient = exports.Psbt = exports.OutPoint = exports.Network = exports.Mnemonic = exports.LocalOutput = exports.Language = exports.KeychainKind = exports.KeychainInfo = exports.ElectrumClient = exports.DescriptorTemplate = exports.DerivationInfo = exports.ConfirmationBlockTime = exports.ChangeSpendPolicy = exports.BlockId = exports.BdkError_Tags = exports.BdkError = exports.Balance = exports.AddressInfo = void 0;
6
+ exports.WordCount = exports.WalletEvent_Tags = exports.WalletEvent = exports.Wallet = exports.TxOutput = exports.TxOut = exports.TxOrdering = exports.TxInput = exports.TxDetails = exports.TxBuilder = exports.SingleKeyDescriptorTemplate = exports.SentAndReceived = exports.Recipient = exports.Psbt = exports.OutPoint = exports.Network = exports.Mnemonic = exports.LocalOutput = exports.Language = exports.KeychainKind = exports.KeychainInfo = exports.ElectrumClient = exports.DescriptorTemplate = exports.DerivationInfo = exports.ConfirmationBlockTime = exports.ChangeSpendPolicy = exports.BlockId = exports.BdkError_Tags = exports.BdkError = exports.Balance = exports.AddressInfo = void 0;
7
+ exports.addressFromScript = addressFromScript;
7
8
  exports.createDescriptor = createDescriptor;
9
+ exports.createDescriptorFromString = createDescriptorFromString;
8
10
  exports.createPublicDescriptor = createPublicDescriptor;
9
11
  exports.createSingleKeyDescriptor = createSingleKeyDescriptor;
10
12
  exports.createWallet = createWallet;
11
13
  exports.default = void 0;
12
14
  exports.exportWallet = exportWallet;
13
15
  exports.isValidAddress = isValidAddress;
16
+ exports.validateDescriptor = validateDescriptor;
14
17
  exports.version = version;
15
18
  exports.walletNameFromDescriptor = walletNameFromDescriptor;
16
19
  var _bdk_ffiFfi = _interopRequireDefault(require("./bdk_ffi-ffi.js"));
@@ -34,6 +37,14 @@ typeof process !== "object" ||
34
37
  process?.env?.NODE_ENV !== "production" || false;
35
38
  // Public interface members begin here.
36
39
 
40
+ /**
41
+ * Convert a scriptPubKey (hex) to an address string for the given network.
42
+ */
43
+ function addressFromScript(scriptHex, network) /*throws*/{
44
+ return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBdkError.lift.bind(FfiConverterTypeBdkError), /*caller:*/callStatus => {
45
+ return (0, _bdk_ffiFfi.default)().ubrn_uniffi_bdk_ffi_fn_func_address_from_script(FfiConverterString.lower(scriptHex), FfiConverterTypeNetwork.lower(network), callStatus);
46
+ }, /*liftString:*/FfiConverterString.lift));
47
+ }
37
48
  /**
38
49
  * Generate an output descriptor string from a mnemonic using a standard BIP template.
39
50
  */
@@ -42,6 +53,14 @@ function createDescriptor(mnemonic, template, keychain, network) /*throws*/{
42
53
  return (0, _bdk_ffiFfi.default)().ubrn_uniffi_bdk_ffi_fn_func_create_descriptor(FfiConverterTypeMnemonic.lower(mnemonic), FfiConverterTypeDescriptorTemplate.lower(template), FfiConverterTypeKeychainKind.lower(keychain), FfiConverterTypeNetwork.lower(network), callStatus);
43
54
  }, /*liftString:*/FfiConverterString.lift));
44
55
  }
56
+ /**
57
+ * Generate an output descriptor from a mnemonic string directly (convenience).
58
+ */
59
+ function createDescriptorFromString(mnemonic, template, keychain, network) /*throws*/{
60
+ return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBdkError.lift.bind(FfiConverterTypeBdkError), /*caller:*/callStatus => {
61
+ return (0, _bdk_ffiFfi.default)().ubrn_uniffi_bdk_ffi_fn_func_create_descriptor_from_string(FfiConverterString.lower(mnemonic), FfiConverterTypeDescriptorTemplate.lower(template), FfiConverterTypeKeychainKind.lower(keychain), FfiConverterTypeNetwork.lower(network), callStatus);
62
+ }, /*liftString:*/FfiConverterString.lift));
63
+ }
45
64
  /**
46
65
  * Generate a public (watch-only) descriptor from an xpub string.
47
66
  */
@@ -60,12 +79,13 @@ function createSingleKeyDescriptor(key, template, network) /*throws*/{
60
79
  }
61
80
  /**
62
81
  * Async wallet factory — creates or loads a wallet without blocking the JS thread.
82
+ * Pass null for change_descriptor to use the main descriptor for both keychains.
63
83
  */
64
84
  async function createWallet(descriptor, changeDescriptor, network, dbPath, asyncOpts_) /*throws*/{
65
85
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
66
86
  try {
67
87
  return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
68
- return (0, _bdk_ffiFfi.default)().ubrn_uniffi_bdk_ffi_fn_func_create_wallet(FfiConverterString.lower(descriptor), FfiConverterString.lower(changeDescriptor), FfiConverterTypeNetwork.lower(network), FfiConverterString.lower(dbPath));
88
+ return (0, _bdk_ffiFfi.default)().ubrn_uniffi_bdk_ffi_fn_func_create_wallet(FfiConverterString.lower(descriptor), FfiConverterOptionalString.lower(changeDescriptor), FfiConverterTypeNetwork.lower(network), FfiConverterString.lower(dbPath));
69
89
  }, /*pollFunc:*/(0, _bdk_ffiFfi.default)().ubrn_ffi_bdk_ffi_rust_future_poll_u64, /*cancelFunc:*/(0, _bdk_ffiFfi.default)().ubrn_ffi_bdk_ffi_rust_future_cancel_u64, /*completeFunc:*/(0, _bdk_ffiFfi.default)().ubrn_ffi_bdk_ffi_rust_future_complete_u64, /*freeFunc:*/(0, _bdk_ffiFfi.default)().ubrn_ffi_bdk_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterTypeWallet.lift.bind(FfiConverterTypeWallet), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBdkError.lift.bind(FfiConverterTypeBdkError));
70
90
  } catch (__error) {
71
91
  if (uniffiIsDebug && __error instanceof Error) {
@@ -90,6 +110,14 @@ function isValidAddress(address, network) {
90
110
  return (0, _bdk_ffiFfi.default)().ubrn_uniffi_bdk_ffi_fn_func_is_valid_address(FfiConverterString.lower(address), FfiConverterTypeNetwork.lower(network), callStatus);
91
111
  }, /*liftString:*/FfiConverterString.lift));
92
112
  }
113
+ /**
114
+ * Validate a descriptor string for the given network without creating a wallet.
115
+ */
116
+ function validateDescriptor(descriptor, network) {
117
+ return _uniffiBindgenReactNative.FfiConverterBool.lift(uniffiCaller.rustCall(/*caller:*/callStatus => {
118
+ return (0, _bdk_ffiFfi.default)().ubrn_uniffi_bdk_ffi_fn_func_validate_descriptor(FfiConverterString.lower(descriptor), FfiConverterTypeNetwork.lower(network), callStatus);
119
+ }, /*liftString:*/FfiConverterString.lift));
120
+ }
93
121
  /**
94
122
  * Runtime version of the bdk_wallet crate.
95
123
  */
@@ -471,7 +499,11 @@ const FfiConverterTypeTxDetails = (() => {
471
499
  feeRate: FfiConverterOptionalFloat64.read(from),
472
500
  balanceDelta: _uniffiBindgenReactNative.FfiConverterInt64.read(from),
473
501
  confirmationBlockTime: FfiConverterOptionalTypeConfirmationBlockTime.read(from),
474
- txHex: FfiConverterString.read(from)
502
+ txHex: FfiConverterString.read(from),
503
+ version: _uniffiBindgenReactNative.FfiConverterInt32.read(from),
504
+ locktime: _uniffiBindgenReactNative.FfiConverterUInt32.read(from),
505
+ inputs: FfiConverterArrayTypeTxInput.read(from),
506
+ outputs: FfiConverterArrayTypeTxOutput.read(from)
475
507
  };
476
508
  }
477
509
  write(value, into) {
@@ -483,9 +515,51 @@ const FfiConverterTypeTxDetails = (() => {
483
515
  _uniffiBindgenReactNative.FfiConverterInt64.write(value.balanceDelta, into);
484
516
  FfiConverterOptionalTypeConfirmationBlockTime.write(value.confirmationBlockTime, into);
485
517
  FfiConverterString.write(value.txHex, into);
518
+ _uniffiBindgenReactNative.FfiConverterInt32.write(value.version, into);
519
+ _uniffiBindgenReactNative.FfiConverterUInt32.write(value.locktime, into);
520
+ FfiConverterArrayTypeTxInput.write(value.inputs, into);
521
+ FfiConverterArrayTypeTxOutput.write(value.outputs, into);
486
522
  }
487
523
  allocationSize(value) {
488
- return FfiConverterString.allocationSize(value.txid) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.sent) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.received) + FfiConverterOptionalUInt64.allocationSize(value.fee) + FfiConverterOptionalFloat64.allocationSize(value.feeRate) + _uniffiBindgenReactNative.FfiConverterInt64.allocationSize(value.balanceDelta) + FfiConverterOptionalTypeConfirmationBlockTime.allocationSize(value.confirmationBlockTime) + FfiConverterString.allocationSize(value.txHex);
524
+ return FfiConverterString.allocationSize(value.txid) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.sent) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.received) + FfiConverterOptionalUInt64.allocationSize(value.fee) + FfiConverterOptionalFloat64.allocationSize(value.feeRate) + _uniffiBindgenReactNative.FfiConverterInt64.allocationSize(value.balanceDelta) + FfiConverterOptionalTypeConfirmationBlockTime.allocationSize(value.confirmationBlockTime) + FfiConverterString.allocationSize(value.txHex) + _uniffiBindgenReactNative.FfiConverterInt32.allocationSize(value.version) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.locktime) + FfiConverterArrayTypeTxInput.allocationSize(value.inputs) + FfiConverterArrayTypeTxOutput.allocationSize(value.outputs);
525
+ }
526
+ }
527
+ return new FFIConverter();
528
+ })();
529
+ /**
530
+ * Generated factory for {@link TxInput} record objects.
531
+ */
532
+ const TxInput = exports.TxInput = (() => {
533
+ const defaults = () => ({});
534
+ const create = (() => {
535
+ return (0, _uniffiBindgenReactNative.uniffiCreateRecord)(defaults);
536
+ })();
537
+ return Object.freeze({
538
+ create,
539
+ new: create,
540
+ defaults: () => Object.freeze(defaults())
541
+ });
542
+ })();
543
+ const FfiConverterTypeTxInput = (() => {
544
+ class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray {
545
+ read(from) {
546
+ return {
547
+ previousTxid: FfiConverterString.read(from),
548
+ previousVout: _uniffiBindgenReactNative.FfiConverterUInt32.read(from),
549
+ sequence: _uniffiBindgenReactNative.FfiConverterUInt32.read(from),
550
+ scriptSigHex: FfiConverterString.read(from),
551
+ witness: FfiConverterArrayString.read(from)
552
+ };
553
+ }
554
+ write(value, into) {
555
+ FfiConverterString.write(value.previousTxid, into);
556
+ _uniffiBindgenReactNative.FfiConverterUInt32.write(value.previousVout, into);
557
+ _uniffiBindgenReactNative.FfiConverterUInt32.write(value.sequence, into);
558
+ FfiConverterString.write(value.scriptSigHex, into);
559
+ FfiConverterArrayString.write(value.witness, into);
560
+ }
561
+ allocationSize(value) {
562
+ return FfiConverterString.allocationSize(value.previousTxid) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.previousVout) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.sequence) + FfiConverterString.allocationSize(value.scriptSigHex) + FfiConverterArrayString.allocationSize(value.witness);
489
563
  }
490
564
  }
491
565
  return new FFIConverter();
@@ -522,6 +596,40 @@ const FfiConverterTypeTxOut = (() => {
522
596
  }
523
597
  return new FFIConverter();
524
598
  })();
599
+ /**
600
+ * Generated factory for {@link TxOutput} record objects.
601
+ */
602
+ const TxOutput = exports.TxOutput = (() => {
603
+ const defaults = () => ({});
604
+ const create = (() => {
605
+ return (0, _uniffiBindgenReactNative.uniffiCreateRecord)(defaults);
606
+ })();
607
+ return Object.freeze({
608
+ create,
609
+ new: create,
610
+ defaults: () => Object.freeze(defaults())
611
+ });
612
+ })();
613
+ const FfiConverterTypeTxOutput = (() => {
614
+ class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray {
615
+ read(from) {
616
+ return {
617
+ value: _uniffiBindgenReactNative.FfiConverterUInt64.read(from),
618
+ scriptPubkeyHex: FfiConverterString.read(from),
619
+ address: FfiConverterOptionalString.read(from)
620
+ };
621
+ }
622
+ write(value, into) {
623
+ _uniffiBindgenReactNative.FfiConverterUInt64.write(value.value, into);
624
+ FfiConverterString.write(value.scriptPubkeyHex, into);
625
+ FfiConverterOptionalString.write(value.address, into);
626
+ }
627
+ allocationSize(value) {
628
+ return _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.value) + FfiConverterString.allocationSize(value.scriptPubkeyHex) + FfiConverterOptionalString.allocationSize(value.address);
629
+ }
630
+ }
631
+ return new FFIConverter();
632
+ })();
525
633
  const stringConverter = {
526
634
  stringToBytes: s => uniffiCaller.rustCall(status => (0, _bdk_ffiFfi.default)().ubrn_uniffi_internal_fn_func_ffi__string_to_arraybuffer(s, status)),
527
635
  bytesToString: ab => uniffiCaller.rustCall(status => (0, _bdk_ffiFfi.default)().ubrn_uniffi_internal_fn_func_ffi__arraybuffer_to_string(ab, status)),
@@ -3802,7 +3910,7 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
3802
3910
  constructor(descriptor, changeDescriptor, network, dbPath) /*throws*/{
3803
3911
  super();
3804
3912
  const pointer = uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBdkError.lift.bind(FfiConverterTypeBdkError), /*caller:*/callStatus => {
3805
- return (0, _bdk_ffiFfi.default)().ubrn_uniffi_bdk_ffi_fn_constructor_wallet_new(FfiConverterString.lower(descriptor), FfiConverterString.lower(changeDescriptor), FfiConverterTypeNetwork.lower(network), FfiConverterString.lower(dbPath), callStatus);
3913
+ return (0, _bdk_ffiFfi.default)().ubrn_uniffi_bdk_ffi_fn_constructor_wallet_new(FfiConverterString.lower(descriptor), FfiConverterOptionalString.lower(changeDescriptor), FfiConverterTypeNetwork.lower(network), FfiConverterString.lower(dbPath), callStatus);
3806
3914
  }, /*liftString:*/FfiConverterString.lift);
3807
3915
  this[_uniffiBindgenReactNative.pointerLiteralSymbol] = pointer;
3808
3916
  this[_uniffiBindgenReactNative.destructorGuardSymbol] = uniffiTypeWalletObjectFactory.bless(pointer);
@@ -4212,6 +4320,12 @@ const FfiConverterArrayTypeRecipient = new _uniffiBindgenReactNative.FfiConverte
4212
4320
  // FfiConverter for Array<TxDetails>
4213
4321
  const FfiConverterArrayTypeTxDetails = new _uniffiBindgenReactNative.FfiConverterArray(FfiConverterTypeTxDetails);
4214
4322
 
4323
+ // FfiConverter for Array<TxInput>
4324
+ const FfiConverterArrayTypeTxInput = new _uniffiBindgenReactNative.FfiConverterArray(FfiConverterTypeTxInput);
4325
+
4326
+ // FfiConverter for Array<TxOutput>
4327
+ const FfiConverterArrayTypeTxOutput = new _uniffiBindgenReactNative.FfiConverterArray(FfiConverterTypeTxOutput);
4328
+
4215
4329
  // FfiConverter for Array<string>
4216
4330
  const FfiConverterArrayString = new _uniffiBindgenReactNative.FfiConverterArray(FfiConverterString);
4217
4331
 
@@ -4236,16 +4350,22 @@ function uniffiEnsureInitialized() {
4236
4350
  if (bindingsContractVersion !== scaffoldingContractVersion) {
4237
4351
  throw new _uniffiBindgenReactNative.UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion, bindingsContractVersion);
4238
4352
  }
4353
+ if ((0, _bdk_ffiFfi.default)().ubrn_uniffi_bdk_ffi_checksum_func_address_from_script() !== 50547) {
4354
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bdk_ffi_checksum_func_address_from_script");
4355
+ }
4239
4356
  if ((0, _bdk_ffiFfi.default)().ubrn_uniffi_bdk_ffi_checksum_func_create_descriptor() !== 166) {
4240
4357
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bdk_ffi_checksum_func_create_descriptor");
4241
4358
  }
4359
+ if ((0, _bdk_ffiFfi.default)().ubrn_uniffi_bdk_ffi_checksum_func_create_descriptor_from_string() !== 29727) {
4360
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bdk_ffi_checksum_func_create_descriptor_from_string");
4361
+ }
4242
4362
  if ((0, _bdk_ffiFfi.default)().ubrn_uniffi_bdk_ffi_checksum_func_create_public_descriptor() !== 10610) {
4243
4363
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bdk_ffi_checksum_func_create_public_descriptor");
4244
4364
  }
4245
4365
  if ((0, _bdk_ffiFfi.default)().ubrn_uniffi_bdk_ffi_checksum_func_create_single_key_descriptor() !== 56046) {
4246
4366
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bdk_ffi_checksum_func_create_single_key_descriptor");
4247
4367
  }
4248
- if ((0, _bdk_ffiFfi.default)().ubrn_uniffi_bdk_ffi_checksum_func_create_wallet() !== 63339) {
4368
+ if ((0, _bdk_ffiFfi.default)().ubrn_uniffi_bdk_ffi_checksum_func_create_wallet() !== 59494) {
4249
4369
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bdk_ffi_checksum_func_create_wallet");
4250
4370
  }
4251
4371
  if ((0, _bdk_ffiFfi.default)().ubrn_uniffi_bdk_ffi_checksum_func_export_wallet() !== 53701) {
@@ -4254,6 +4374,9 @@ function uniffiEnsureInitialized() {
4254
4374
  if ((0, _bdk_ffiFfi.default)().ubrn_uniffi_bdk_ffi_checksum_func_is_valid_address() !== 14593) {
4255
4375
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bdk_ffi_checksum_func_is_valid_address");
4256
4376
  }
4377
+ if ((0, _bdk_ffiFfi.default)().ubrn_uniffi_bdk_ffi_checksum_func_validate_descriptor() !== 44572) {
4378
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bdk_ffi_checksum_func_validate_descriptor");
4379
+ }
4257
4380
  if ((0, _bdk_ffiFfi.default)().ubrn_uniffi_bdk_ffi_checksum_func_version() !== 5205) {
4258
4381
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bdk_ffi_checksum_func_version");
4259
4382
  }
@@ -4542,7 +4665,7 @@ function uniffiEnsureInitialized() {
4542
4665
  if ((0, _bdk_ffiFfi.default)().ubrn_uniffi_bdk_ffi_checksum_constructor_txbuilder_new() !== 16691) {
4543
4666
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bdk_ffi_checksum_constructor_txbuilder_new");
4544
4667
  }
4545
- if ((0, _bdk_ffiFfi.default)().ubrn_uniffi_bdk_ffi_checksum_constructor_wallet_new() !== 38801) {
4668
+ if ((0, _bdk_ffiFfi.default)().ubrn_uniffi_bdk_ffi_checksum_constructor_wallet_new() !== 64812) {
4546
4669
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bdk_ffi_checksum_constructor_wallet_new");
4547
4670
  }
4548
4671
  }
@@ -4571,8 +4694,10 @@ var _default = exports.default = Object.freeze({
4571
4694
  FfiConverterTypeSingleKeyDescriptorTemplate,
4572
4695
  FfiConverterTypeTxBuilder,
4573
4696
  FfiConverterTypeTxDetails,
4697
+ FfiConverterTypeTxInput,
4574
4698
  FfiConverterTypeTxOrdering,
4575
4699
  FfiConverterTypeTxOut,
4700
+ FfiConverterTypeTxOutput,
4576
4701
  FfiConverterTypeWallet,
4577
4702
  FfiConverterTypeWalletEvent,
4578
4703
  FfiConverterTypeWordCount