react-native-bdk-sdk 0.1.1

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 (108) hide show
  1. package/BdkSdk.podspec +44 -0
  2. package/LICENSE +19 -0
  3. package/README.md +24 -0
  4. package/android/CMakeLists.txt +79 -0
  5. package/android/build.gradle +144 -0
  6. package/android/cpp-adapter.cpp +43 -0
  7. package/android/generated/android/app/build/generated/source/codegen/java/com/facebook/fbreact/specs/NativeBdkSdkSpec.java +41 -0
  8. package/android/generated/android/app/build/generated/source/codegen/jni/CMakeLists.txt +28 -0
  9. package/android/generated/android/app/build/generated/source/codegen/jni/RNBdkReactNativeSpec-generated.cpp +38 -0
  10. package/android/generated/android/app/build/generated/source/codegen/jni/RNBdkReactNativeSpec.h +31 -0
  11. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNBdkReactNativeSpec/ComponentDescriptors.cpp +22 -0
  12. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNBdkReactNativeSpec/ComponentDescriptors.h +24 -0
  13. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNBdkReactNativeSpec/EventEmitters.cpp +16 -0
  14. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNBdkReactNativeSpec/EventEmitters.h +17 -0
  15. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNBdkReactNativeSpec/Props.cpp +19 -0
  16. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNBdkReactNativeSpec/Props.h +18 -0
  17. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNBdkReactNativeSpec/RNBdkReactNativeSpecJSI.h +45 -0
  18. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNBdkReactNativeSpec/ShadowNodes.cpp +17 -0
  19. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNBdkReactNativeSpec/ShadowNodes.h +23 -0
  20. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNBdkReactNativeSpec/States.cpp +16 -0
  21. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNBdkReactNativeSpec/States.h +20 -0
  22. package/android/src/main/AndroidManifest.xml +5 -0
  23. package/android/src/main/java/com/reactnativebdksdk/BdkSdkModule.kt +43 -0
  24. package/android/src/main/java/com/reactnativebdksdk/BdkSdkPackage.kt +34 -0
  25. package/app.plugin.js +1 -0
  26. package/cpp/generated/bdk_ffi.cpp +6761 -0
  27. package/cpp/generated/bdk_ffi.hpp +308 -0
  28. package/cpp/react-native-bdk-sdk.cpp +16 -0
  29. package/cpp/react-native-bdk-sdk.h +15 -0
  30. package/ios/BdkSdk.h +16 -0
  31. package/ios/BdkSdk.mm +66 -0
  32. package/ios/generated/build/generated/ios/ReactCodegen/RNBdkReactNativeSpec/RNBdkReactNativeSpec-generated.mm +46 -0
  33. package/ios/generated/build/generated/ios/ReactCodegen/RNBdkReactNativeSpec/RNBdkReactNativeSpec.h +63 -0
  34. package/ios/generated/build/generated/ios/ReactCodegen/RNBdkReactNativeSpecJSI.h +45 -0
  35. package/ios/generated/build/generated/ios/ReactCodegen/react/renderer/components/RNBdkReactNativeSpec/ComponentDescriptors.cpp +22 -0
  36. package/ios/generated/build/generated/ios/ReactCodegen/react/renderer/components/RNBdkReactNativeSpec/ComponentDescriptors.h +24 -0
  37. package/ios/generated/build/generated/ios/ReactCodegen/react/renderer/components/RNBdkReactNativeSpec/EventEmitters.cpp +16 -0
  38. package/ios/generated/build/generated/ios/ReactCodegen/react/renderer/components/RNBdkReactNativeSpec/EventEmitters.h +17 -0
  39. package/ios/generated/build/generated/ios/ReactCodegen/react/renderer/components/RNBdkReactNativeSpec/Props.cpp +19 -0
  40. package/ios/generated/build/generated/ios/ReactCodegen/react/renderer/components/RNBdkReactNativeSpec/Props.h +18 -0
  41. package/ios/generated/build/generated/ios/ReactCodegen/react/renderer/components/RNBdkReactNativeSpec/RCTComponentViewHelpers.h +18 -0
  42. package/ios/generated/build/generated/ios/ReactCodegen/react/renderer/components/RNBdkReactNativeSpec/ShadowNodes.cpp +17 -0
  43. package/ios/generated/build/generated/ios/ReactCodegen/react/renderer/components/RNBdkReactNativeSpec/ShadowNodes.h +23 -0
  44. package/ios/generated/build/generated/ios/ReactCodegen/react/renderer/components/RNBdkReactNativeSpec/States.cpp +16 -0
  45. package/ios/generated/build/generated/ios/ReactCodegen/react/renderer/components/RNBdkReactNativeSpec/States.h +20 -0
  46. package/lib/commonjs/NativeBdkSdk.js +10 -0
  47. package/lib/commonjs/NativeBdkSdk.js.map +1 -0
  48. package/lib/commonjs/generated/bdk_ffi-ffi.js +48 -0
  49. package/lib/commonjs/generated/bdk_ffi-ffi.js.map +1 -0
  50. package/lib/commonjs/generated/bdk_ffi.js +4117 -0
  51. package/lib/commonjs/generated/bdk_ffi.js.map +1 -0
  52. package/lib/commonjs/index.js +63 -0
  53. package/lib/commonjs/index.js.map +1 -0
  54. package/lib/commonjs/package.json +1 -0
  55. package/lib/module/NativeBdkSdk.js +7 -0
  56. package/lib/module/NativeBdkSdk.js.map +1 -0
  57. package/lib/module/generated/bdk_ffi-ffi.js +47 -0
  58. package/lib/module/generated/bdk_ffi-ffi.js.map +1 -0
  59. package/lib/module/generated/bdk_ffi.js +4100 -0
  60. package/lib/module/generated/bdk_ffi.js.map +1 -0
  61. package/lib/module/index.js +43 -0
  62. package/lib/module/index.js.map +1 -0
  63. package/lib/module/package.json +1 -0
  64. package/lib/typescript/commonjs/package.json +1 -0
  65. package/lib/typescript/commonjs/plugin/src/index.d.ts +7 -0
  66. package/lib/typescript/commonjs/plugin/src/index.d.ts.map +1 -0
  67. package/lib/typescript/commonjs/plugin/src/withAndroid.d.ts +3 -0
  68. package/lib/typescript/commonjs/plugin/src/withAndroid.d.ts.map +1 -0
  69. package/lib/typescript/commonjs/plugin/src/withIOS.d.ts +3 -0
  70. package/lib/typescript/commonjs/plugin/src/withIOS.d.ts.map +1 -0
  71. package/lib/typescript/commonjs/src/NativeBdkSdk.d.ts +8 -0
  72. package/lib/typescript/commonjs/src/NativeBdkSdk.d.ts.map +1 -0
  73. package/lib/typescript/commonjs/src/generated/bdk_ffi-ffi.d.ts +333 -0
  74. package/lib/typescript/commonjs/src/generated/bdk_ffi-ffi.d.ts.map +1 -0
  75. package/lib/typescript/commonjs/src/generated/bdk_ffi.d.ts +3816 -0
  76. package/lib/typescript/commonjs/src/generated/bdk_ffi.d.ts.map +1 -0
  77. package/lib/typescript/commonjs/src/index.d.ts +8 -0
  78. package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
  79. package/lib/typescript/module/package.json +1 -0
  80. package/lib/typescript/module/plugin/src/index.d.ts +7 -0
  81. package/lib/typescript/module/plugin/src/index.d.ts.map +1 -0
  82. package/lib/typescript/module/plugin/src/withAndroid.d.ts +3 -0
  83. package/lib/typescript/module/plugin/src/withAndroid.d.ts.map +1 -0
  84. package/lib/typescript/module/plugin/src/withIOS.d.ts +3 -0
  85. package/lib/typescript/module/plugin/src/withIOS.d.ts.map +1 -0
  86. package/lib/typescript/module/src/NativeBdkSdk.d.ts +8 -0
  87. package/lib/typescript/module/src/NativeBdkSdk.d.ts.map +1 -0
  88. package/lib/typescript/module/src/generated/bdk_ffi-ffi.d.ts +333 -0
  89. package/lib/typescript/module/src/generated/bdk_ffi-ffi.d.ts.map +1 -0
  90. package/lib/typescript/module/src/generated/bdk_ffi.d.ts +3816 -0
  91. package/lib/typescript/module/src/generated/bdk_ffi.d.ts.map +1 -0
  92. package/lib/typescript/module/src/index.d.ts +8 -0
  93. package/lib/typescript/module/src/index.d.ts.map +1 -0
  94. package/package.json +147 -0
  95. package/plugin/build/index.d.ts +6 -0
  96. package/plugin/build/index.js +14 -0
  97. package/plugin/build/withAndroid.d.ts +2 -0
  98. package/plugin/build/withAndroid.js +20 -0
  99. package/plugin/build/withIOS.d.ts +2 -0
  100. package/plugin/build/withIOS.js +8 -0
  101. package/plugin/tsconfig.json +9 -0
  102. package/plugin/tsconfig.tsbuildinfo +1 -0
  103. package/react-native.config.js +13 -0
  104. package/scripts/postinstall.js +229 -0
  105. package/src/NativeBdkSdk.ts +10 -0
  106. package/src/generated/bdk_ffi-ffi.ts +944 -0
  107. package/src/generated/bdk_ffi.ts +6864 -0
  108. package/src/index.tsx +41 -0
@@ -0,0 +1,308 @@
1
+ // This file was autogenerated by some hot garbage in the `uniffi-bindgen-react-native` crate.
2
+ // Trust me, you don't want to mess with it!
3
+ #pragma once
4
+ #include <jsi/jsi.h>
5
+ #include <iostream>
6
+ #include <map>
7
+ #include <memory>
8
+ #include <ReactCommon/CallInvoker.h>
9
+ #include "UniffiCallInvoker.h"
10
+
11
+ namespace react = facebook::react;
12
+ namespace jsi = facebook::jsi;
13
+
14
+ class NativeBdkFfi : public jsi::HostObject {
15
+ private:
16
+ // For calling back into JS from Rust.
17
+ std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker;
18
+
19
+ protected:
20
+ std::map<std::string,jsi::Value> props;
21
+ jsi::Value cpp_uniffi_internal_fn_func_ffi__string_to_byte_length(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
22
+ jsi::Value cpp_uniffi_internal_fn_func_ffi__string_to_arraybuffer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
23
+ jsi::Value cpp_uniffi_internal_fn_func_ffi__arraybuffer_to_string(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
24
+ jsi::Value cpp_uniffi_bdk_ffi_fn_clone_mnemonic(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
25
+ jsi::Value cpp_uniffi_bdk_ffi_fn_free_mnemonic(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
26
+ jsi::Value cpp_uniffi_bdk_ffi_fn_constructor_mnemonic_from_entropy(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
27
+ jsi::Value cpp_uniffi_bdk_ffi_fn_constructor_mnemonic_from_entropy_in(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
28
+ jsi::Value cpp_uniffi_bdk_ffi_fn_constructor_mnemonic_from_string(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
29
+ jsi::Value cpp_uniffi_bdk_ffi_fn_constructor_mnemonic_from_string_in(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
30
+ jsi::Value cpp_uniffi_bdk_ffi_fn_constructor_mnemonic_new(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
31
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_mnemonic_language(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
32
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_mnemonic_to_seed_hex(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
33
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_mnemonic_to_string(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
34
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_mnemonic_word_count(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
35
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_mnemonic_words(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
36
+ jsi::Value cpp_uniffi_bdk_ffi_fn_clone_psbt(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
37
+ jsi::Value cpp_uniffi_bdk_ffi_fn_free_psbt(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
38
+ jsi::Value cpp_uniffi_bdk_ffi_fn_constructor_psbt_new(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
39
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_psbt_extract_tx_hex(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
40
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_psbt_fee_amount(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
41
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_psbt_fee_rate(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
42
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_psbt_get_utxo_for(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
43
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_psbt_to_base64(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
44
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_psbt_txid(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
45
+ jsi::Value cpp_uniffi_bdk_ffi_fn_clone_txbuilder(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
46
+ jsi::Value cpp_uniffi_bdk_ffi_fn_free_txbuilder(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
47
+ jsi::Value cpp_uniffi_bdk_ffi_fn_constructor_txbuilder_new(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
48
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_txbuilder_add_data(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
49
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_txbuilder_add_global_xpubs(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
50
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_txbuilder_add_recipient(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
51
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_txbuilder_add_unspendable(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
52
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_txbuilder_add_utxo(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
53
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_txbuilder_add_utxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
54
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_txbuilder_allow_dust(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
55
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_txbuilder_change_policy(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
56
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_txbuilder_current_height(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
57
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_txbuilder_do_not_spend_change(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
58
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_txbuilder_drain_to(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
59
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_txbuilder_drain_wallet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
60
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_txbuilder_enable_rbf(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
61
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_txbuilder_enable_rbf_with_sequence(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
62
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_txbuilder_exclude_below_confirmations(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
63
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_txbuilder_exclude_unconfirmed(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
64
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_txbuilder_fee_absolute(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
65
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_txbuilder_fee_rate(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
66
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_txbuilder_finish(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
67
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_txbuilder_include_output_redeem_witness_script(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
68
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_txbuilder_manually_selected_only(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
69
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_txbuilder_nlocktime(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
70
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_txbuilder_only_spend_change(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
71
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_txbuilder_only_witness_utxo(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
72
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_txbuilder_ordering(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
73
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_txbuilder_policy_path(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
74
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_txbuilder_set_exact_sequence(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
75
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_txbuilder_set_recipients(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
76
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_txbuilder_sighash(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
77
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_txbuilder_tx_version(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
78
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_txbuilder_unspendable(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
79
+ jsi::Value cpp_uniffi_bdk_ffi_fn_clone_wallet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
80
+ jsi::Value cpp_uniffi_bdk_ffi_fn_free_wallet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
81
+ jsi::Value cpp_uniffi_bdk_ffi_fn_constructor_wallet_new(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
82
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_broadcast_with_electrum(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
83
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_broadcast_with_esplora(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
84
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_build_fee_bump(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
85
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_calculate_fee(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
86
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_calculate_fee_rate(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
87
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_cancel_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
88
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_checkpoints(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
89
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_derivation_index(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
90
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_derivation_of_spk(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
91
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_descriptor_checksum(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
92
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_drain(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
93
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_finalize_psbt(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
94
+ jsi::Value 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);
95
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_full_scan_with_esplora(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
96
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_get_balance(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
97
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_get_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
98
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_get_utxo(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
99
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_insert_txout(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
100
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_is_mine(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
101
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_keychains(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
102
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_latest_checkpoint(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
103
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_list_output(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
104
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_list_unspent(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
105
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_list_unused_addresses(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
106
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_mark_used(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
107
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_network(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
108
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_next_derivation_index(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
109
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_next_unused_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
110
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_peek_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
111
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_persist(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
112
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_policies(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
113
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_public_descriptor(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
114
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_reveal_addresses_to(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
115
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_reveal_next_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
116
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_send(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
117
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_sent_and_received(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
118
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_sign(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
119
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_sync_with_electrum(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
120
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_sync_with_esplora(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
121
+ jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_transactions(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
122
+ 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);
123
+ 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);
124
+ jsi::Value cpp_uniffi_bdk_ffi_fn_func_create_descriptor(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
125
+ 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);
126
+ 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);
127
+ jsi::Value cpp_uniffi_bdk_ffi_fn_func_export_wallet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
128
+ 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);
129
+ jsi::Value cpp_uniffi_bdk_ffi_fn_func_version(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
130
+ 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);
131
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_poll_u8(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
132
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_cancel_u8(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
133
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_free_u8(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
134
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_complete_u8(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
135
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_poll_i8(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
136
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_cancel_i8(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
137
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_free_i8(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
138
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_complete_i8(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
139
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_poll_u16(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
140
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_cancel_u16(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
141
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_free_u16(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
142
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_complete_u16(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
143
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_poll_i16(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
144
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_cancel_i16(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
145
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_free_i16(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
146
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_complete_i16(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
147
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_poll_u32(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
148
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_cancel_u32(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
149
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_free_u32(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
150
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_complete_u32(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
151
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_poll_i32(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
152
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_cancel_i32(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
153
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_free_i32(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
154
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_complete_i32(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
155
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_poll_u64(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
156
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_cancel_u64(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
157
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_free_u64(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
158
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_complete_u64(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
159
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_poll_i64(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
160
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_cancel_i64(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
161
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_free_i64(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
162
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_complete_i64(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
163
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_poll_f32(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
164
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_cancel_f32(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
165
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_free_f32(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
166
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_complete_f32(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
167
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_poll_f64(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
168
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_cancel_f64(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
169
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_free_f64(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
170
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_complete_f64(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
171
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_poll_rust_buffer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
172
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_cancel_rust_buffer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
173
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_free_rust_buffer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
174
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_complete_rust_buffer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
175
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_poll_void(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
176
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_cancel_void(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
177
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_free_void(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
178
+ jsi::Value cpp_ffi_bdk_ffi_rust_future_complete_void(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
179
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_func_create_descriptor(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
180
+ 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);
181
+ 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);
182
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_func_export_wallet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
183
+ 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);
184
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_func_version(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
185
+ 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);
186
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_mnemonic_language(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
187
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_mnemonic_to_seed_hex(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
188
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_mnemonic_to_string(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
189
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_mnemonic_word_count(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
190
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_mnemonic_words(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
191
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_psbt_extract_tx_hex(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
192
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_psbt_fee_amount(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
193
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_psbt_fee_rate(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
194
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_psbt_get_utxo_for(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
195
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_psbt_to_base64(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
196
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_psbt_txid(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
197
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_txbuilder_add_data(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
198
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_txbuilder_add_global_xpubs(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
199
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_txbuilder_add_recipient(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
200
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_txbuilder_add_unspendable(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
201
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_txbuilder_add_utxo(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
202
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_txbuilder_add_utxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
203
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_txbuilder_allow_dust(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
204
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_txbuilder_change_policy(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
205
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_txbuilder_current_height(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
206
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_txbuilder_do_not_spend_change(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
207
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_txbuilder_drain_to(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
208
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_txbuilder_drain_wallet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
209
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_txbuilder_enable_rbf(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
210
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_txbuilder_enable_rbf_with_sequence(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
211
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_txbuilder_exclude_below_confirmations(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
212
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_txbuilder_exclude_unconfirmed(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
213
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_txbuilder_fee_absolute(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
214
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_txbuilder_fee_rate(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
215
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_txbuilder_finish(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
216
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_txbuilder_include_output_redeem_witness_script(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
217
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_txbuilder_manually_selected_only(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
218
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_txbuilder_nlocktime(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
219
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_txbuilder_only_spend_change(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
220
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_txbuilder_only_witness_utxo(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
221
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_txbuilder_ordering(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
222
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_txbuilder_policy_path(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
223
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_txbuilder_set_exact_sequence(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
224
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_txbuilder_set_recipients(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
225
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_txbuilder_sighash(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
226
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_txbuilder_tx_version(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
227
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_txbuilder_unspendable(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
228
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_broadcast_with_electrum(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
229
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_broadcast_with_esplora(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
230
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_build_fee_bump(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
231
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_calculate_fee(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
232
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_calculate_fee_rate(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
233
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_cancel_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
234
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_checkpoints(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
235
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_derivation_index(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
236
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_derivation_of_spk(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
237
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_descriptor_checksum(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
238
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_drain(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
239
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_finalize_psbt(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
240
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_full_scan_with_electrum(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
241
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_full_scan_with_esplora(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
242
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_get_balance(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
243
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_get_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
244
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_get_utxo(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
245
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_insert_txout(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
246
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_is_mine(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
247
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_keychains(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
248
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_latest_checkpoint(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
249
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_list_output(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
250
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_list_unspent(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
251
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_list_unused_addresses(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
252
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_mark_used(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
253
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_network(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
254
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_next_derivation_index(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
255
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_next_unused_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
256
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_peek_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
257
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_persist(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
258
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_policies(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
259
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_public_descriptor(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
260
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_reveal_addresses_to(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
261
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_reveal_next_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
262
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_send(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
263
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_sent_and_received(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
264
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_sign(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
265
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_sync_with_electrum(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
266
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_sync_with_esplora(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
267
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_transactions(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
268
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_tx_details(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
269
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_unmark_used(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
270
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_constructor_mnemonic_from_entropy(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
271
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_constructor_mnemonic_from_entropy_in(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
272
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_constructor_mnemonic_from_string(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
273
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_constructor_mnemonic_from_string_in(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
274
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_constructor_mnemonic_new(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
275
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_constructor_psbt_new(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
276
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_constructor_txbuilder_new(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
277
+ jsi::Value cpp_uniffi_bdk_ffi_checksum_constructor_wallet_new(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
278
+ jsi::Value cpp_ffi_bdk_ffi_uniffi_contract_version(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
279
+ jsi::Value cpp_uniffi_internal_fn_method_mnemonic_ffi__bless_pointer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
280
+ jsi::Value cpp_uniffi_internal_fn_method_psbt_ffi__bless_pointer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
281
+ jsi::Value cpp_uniffi_internal_fn_method_txbuilder_ffi__bless_pointer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
282
+ jsi::Value cpp_uniffi_internal_fn_method_wallet_ffi__bless_pointer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
283
+
284
+ public:
285
+ NativeBdkFfi(jsi::Runtime &rt, std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker);
286
+ virtual ~NativeBdkFfi();
287
+
288
+ /**
289
+ * The entry point into the crate.
290
+ *
291
+ * React Native must call `NativeBdkFfi.registerModule(rt, callInvoker)` before using
292
+ * the Javascript interface.
293
+ */
294
+ static void registerModule(jsi::Runtime &rt, std::shared_ptr<react::CallInvoker> callInvoker);
295
+
296
+ /**
297
+ * Some cleanup into the crate goes here.
298
+ *
299
+ * Current implementation is empty, however, this is not guaranteed to always be the case.
300
+ *
301
+ * Clients should call `NativeBdkFfi.unregisterModule(rt)` after final use where possible.
302
+ */
303
+ static void unregisterModule(jsi::Runtime &rt);
304
+
305
+ virtual jsi::Value get(jsi::Runtime& rt, const jsi::PropNameID& name);
306
+ virtual void set(jsi::Runtime& rt,const jsi::PropNameID& name,const jsi::Value& value);
307
+ virtual std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime& rt);
308
+ };
@@ -0,0 +1,16 @@
1
+ // Generated by uniffi-bindgen-react-native
2
+ #include "react-native-bdk-sdk.h"
3
+ #include "generated/bdk_ffi.hpp"
4
+
5
+ namespace bdksdk {
6
+ using namespace facebook;
7
+
8
+ uint8_t installRustCrate(jsi::Runtime &runtime, std::shared_ptr<react::CallInvoker> callInvoker) {
9
+ NativeBdkFfi::registerModule(runtime, callInvoker);
10
+ return true;
11
+ }
12
+
13
+ uint8_t cleanupRustCrate(jsi::Runtime &runtime) {
14
+ return false;
15
+ }
16
+ }
@@ -0,0 +1,15 @@
1
+ #ifndef BDKSDK_H
2
+ #define BDKSDK_H
3
+ // Generated by uniffi-bindgen-react-native
4
+ #include <cstdint>
5
+ #include <jsi/jsi.h>
6
+ #include <ReactCommon/CallInvoker.h>
7
+
8
+ namespace bdksdk {
9
+ using namespace facebook;
10
+
11
+ uint8_t installRustCrate(jsi::Runtime &runtime, std::shared_ptr<react::CallInvoker> callInvoker);
12
+ uint8_t cleanupRustCrate(jsi::Runtime &runtime);
13
+ }
14
+
15
+ #endif /* BDKSDK_H */
package/ios/BdkSdk.h ADDED
@@ -0,0 +1,16 @@
1
+ // Generated by uniffi-bindgen-react-native
2
+ #ifdef __cplusplus
3
+ #import "react-native-bdk-sdk.h"
4
+ #endif
5
+
6
+ #ifdef RCT_NEW_ARCH_ENABLED
7
+ #import "RNBdkReactNativeSpec.h"
8
+
9
+ @interface BdkSdk : NSObject <NativeBdkSdkSpec>
10
+ #else
11
+ #import <React/RCTBridgeModule.h>
12
+
13
+ @interface BdkSdk : NSObject <RCTBridgeModule>
14
+ #endif
15
+
16
+ @end
package/ios/BdkSdk.mm ADDED
@@ -0,0 +1,66 @@
1
+ // Generated by uniffi-bindgen-react-native
2
+ #import "BdkSdk.h"
3
+
4
+ namespace uniffi_generated {
5
+ using namespace facebook::react;
6
+ /**
7
+ * ObjC++ class for module 'NativeBdkSdk'
8
+ */
9
+ class JSI_EXPORT NativeBdkSdkSpecJSI : public ObjCTurboModule {
10
+ public:
11
+ NativeBdkSdkSpecJSI(const ObjCTurboModule::InitParams &params);
12
+ std::shared_ptr<CallInvoker> callInvoker;
13
+ };
14
+
15
+ static facebook::jsi::Value __hostFunction_BdkSdk_installRustCrate(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
16
+ auto& tm = static_cast<NativeBdkSdkSpecJSI&>(turboModule);
17
+ auto jsInvoker = tm.callInvoker;
18
+ uint8_t result = bdksdk::installRustCrate(rt, jsInvoker);
19
+ return facebook::jsi::Value(rt, result);
20
+ }
21
+ static facebook::jsi::Value __hostFunction_BdkSdk_cleanupRustCrate(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
22
+ uint8_t result = bdksdk::cleanupRustCrate(rt);
23
+ return facebook::jsi::Value(rt, result);
24
+ }
25
+
26
+ NativeBdkSdkSpecJSI::NativeBdkSdkSpecJSI(const ObjCTurboModule::InitParams &params)
27
+ : ObjCTurboModule(params), callInvoker(params.jsInvoker) {
28
+ this->methodMap_["installRustCrate"] = MethodMetadata {1, __hostFunction_BdkSdk_installRustCrate};
29
+ this->methodMap_["cleanupRustCrate"] = MethodMetadata {1, __hostFunction_BdkSdk_cleanupRustCrate};
30
+ }
31
+ } // namespace uniffi_generated
32
+
33
+ @implementation BdkSdk
34
+ RCT_EXPORT_MODULE()
35
+
36
+ // Don't compile this code when we build for the old architecture.
37
+ #ifdef RCT_NEW_ARCH_ENABLED
38
+
39
+ // Automated testing checks bdksdk
40
+ // by comparing the whole line here.
41
+ /*
42
+ - (NSNumber *)multiply:(double)a b:(double)b {
43
+ NSNumber *result = @(bdksdk::multiply(a, b));
44
+ }
45
+ */
46
+
47
+ - (NSNumber *)installRustCrate {
48
+ @throw [NSException exceptionWithName:@"UnreachableException"
49
+ reason:@"This method should never be called."
50
+ userInfo:nil];
51
+ }
52
+
53
+ - (NSNumber *)cleanupRustCrate {
54
+ @throw [NSException exceptionWithName:@"UnreachableException"
55
+ reason:@"This method should never be called."
56
+ userInfo:nil];
57
+ }
58
+
59
+ - (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:
60
+ (const facebook::react::ObjCTurboModule::InitParams &)params
61
+ {
62
+ return std::make_shared<uniffi_generated::NativeBdkSdkSpecJSI>(params);
63
+ }
64
+ #endif
65
+
66
+ @end
@@ -0,0 +1,46 @@
1
+ /**
2
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
+ *
4
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
5
+ * once the code is regenerated.
6
+ *
7
+ * @generated by codegen project: GenerateModuleObjCpp
8
+ *
9
+ * We create an umbrella header (and corresponding implementation) here since
10
+ * Cxx compilation in BUCK has a limitation: source-code producing genrule()s
11
+ * must have a single output. More files => more genrule()s => slower builds.
12
+ */
13
+
14
+ #import "RNBdkReactNativeSpec.h"
15
+
16
+
17
+ @implementation NativeBdkSdkSpecBase
18
+
19
+
20
+ - (void)setEventEmitterCallback:(EventEmitterCallbackWrapper *)eventEmitterCallbackWrapper
21
+ {
22
+ _eventEmitterCallback = std::move(eventEmitterCallbackWrapper->_eventEmitterCallback);
23
+ }
24
+ @end
25
+
26
+
27
+ namespace facebook::react {
28
+
29
+ static facebook::jsi::Value __hostFunction_NativeBdkSdkSpecJSI_installRustCrate(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
30
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, BooleanKind, "installRustCrate", @selector(installRustCrate), args, count);
31
+ }
32
+
33
+ static facebook::jsi::Value __hostFunction_NativeBdkSdkSpecJSI_cleanupRustCrate(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
34
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, BooleanKind, "cleanupRustCrate", @selector(cleanupRustCrate), args, count);
35
+ }
36
+
37
+ NativeBdkSdkSpecJSI::NativeBdkSdkSpecJSI(const ObjCTurboModule::InitParams &params)
38
+ : ObjCTurboModule(params) {
39
+
40
+ methodMap_["installRustCrate"] = MethodMetadata {0, __hostFunction_NativeBdkSdkSpecJSI_installRustCrate};
41
+
42
+
43
+ methodMap_["cleanupRustCrate"] = MethodMetadata {0, __hostFunction_NativeBdkSdkSpecJSI_cleanupRustCrate};
44
+
45
+ }
46
+ } // namespace facebook::react
@@ -0,0 +1,63 @@
1
+ /**
2
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
+ *
4
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
5
+ * once the code is regenerated.
6
+ *
7
+ * @generated by codegen project: GenerateModuleObjCpp
8
+ *
9
+ * We create an umbrella header (and corresponding implementation) here since
10
+ * Cxx compilation in BUCK has a limitation: source-code producing genrule()s
11
+ * must have a single output. More files => more genrule()s => slower builds.
12
+ */
13
+
14
+ #ifndef __cplusplus
15
+ #error This file must be compiled as Obj-C++. If you are importing it, you must change your file extension to .mm.
16
+ #endif
17
+
18
+ // Avoid multiple includes of RNBdkReactNativeSpec symbols
19
+ #ifndef RNBdkReactNativeSpec_H
20
+ #define RNBdkReactNativeSpec_H
21
+
22
+ #import <Foundation/Foundation.h>
23
+ #import <RCTRequired/RCTRequired.h>
24
+ #import <RCTTypeSafety/RCTConvertHelpers.h>
25
+ #import <RCTTypeSafety/RCTTypedModuleConstants.h>
26
+ #import <React/RCTBridgeModule.h>
27
+ #import <React/RCTCxxConvert.h>
28
+ #import <React/RCTManagedPointer.h>
29
+ #import <ReactCommon/RCTTurboModule.h>
30
+ #import <optional>
31
+ #import <vector>
32
+
33
+
34
+ NS_ASSUME_NONNULL_BEGIN
35
+
36
+ @protocol NativeBdkSdkSpec <RCTBridgeModule, RCTTurboModule>
37
+
38
+ - (NSNumber *)installRustCrate;
39
+ - (NSNumber *)cleanupRustCrate;
40
+
41
+ @end
42
+
43
+ @interface NativeBdkSdkSpecBase : NSObject {
44
+ @protected
45
+ facebook::react::EventEmitterCallback _eventEmitterCallback;
46
+ }
47
+ - (void)setEventEmitterCallback:(EventEmitterCallbackWrapper *)eventEmitterCallbackWrapper;
48
+
49
+
50
+ @end
51
+
52
+ namespace facebook::react {
53
+ /**
54
+ * ObjC++ class for module 'NativeBdkSdk'
55
+ */
56
+ class JSI_EXPORT NativeBdkSdkSpecJSI : public ObjCTurboModule {
57
+ public:
58
+ NativeBdkSdkSpecJSI(const ObjCTurboModule::InitParams &params);
59
+ };
60
+ } // namespace facebook::react
61
+
62
+ NS_ASSUME_NONNULL_END
63
+ #endif // RNBdkReactNativeSpec_H
@@ -0,0 +1,45 @@
1
+ /**
2
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
+ *
4
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
5
+ * once the code is regenerated.
6
+ *
7
+ * @generated by codegen project: GenerateModuleH.js
8
+ */
9
+
10
+ #pragma once
11
+
12
+ #include <ReactCommon/TurboModule.h>
13
+ #include <react/bridging/Bridging.h>
14
+
15
+ namespace facebook::react {
16
+
17
+
18
+ template <typename T>
19
+ class JSI_EXPORT NativeBdkSdkCxxSpec : public TurboModule {
20
+ public:
21
+ static constexpr std::string_view kModuleName = "BdkSdk";
22
+
23
+ protected:
24
+ NativeBdkSdkCxxSpec(std::shared_ptr<CallInvoker> jsInvoker) : TurboModule(std::string{NativeBdkSdkCxxSpec::kModuleName}, jsInvoker) {
25
+ methodMap_["installRustCrate"] = MethodMetadata {.argCount = 0, .invoker = __installRustCrate};
26
+ methodMap_["cleanupRustCrate"] = MethodMetadata {.argCount = 0, .invoker = __cleanupRustCrate};
27
+ }
28
+
29
+ private:
30
+ static jsi::Value __installRustCrate(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
31
+ static_assert(
32
+ bridging::getParameterCount(&T::installRustCrate) == 1,
33
+ "Expected installRustCrate(...) to have 1 parameters");
34
+ return bridging::callFromJs<bool>(rt, &T::installRustCrate, static_cast<NativeBdkSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
35
+ }
36
+
37
+ static jsi::Value __cleanupRustCrate(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
38
+ static_assert(
39
+ bridging::getParameterCount(&T::cleanupRustCrate) == 1,
40
+ "Expected cleanupRustCrate(...) to have 1 parameters");
41
+ return bridging::callFromJs<bool>(rt, &T::cleanupRustCrate, static_cast<NativeBdkSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
42
+ }
43
+ };
44
+
45
+ } // namespace facebook::react
@@ -0,0 +1,22 @@
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateComponentDescriptorCpp.js
9
+ */
10
+
11
+ #include <react/renderer/components/RNBdkReactNativeSpec/ComponentDescriptors.h>
12
+ #include <react/renderer/core/ConcreteComponentDescriptor.h>
13
+ #include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
14
+
15
+ namespace facebook::react {
16
+
17
+ void RNBdkReactNativeSpec_registerComponentDescriptorsFromCodegen(
18
+ std::shared_ptr<const ComponentDescriptorProviderRegistry> registry) {
19
+
20
+ }
21
+
22
+ } // namespace facebook::react