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,944 @@
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
+
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // @ts-nocheck
7
+
8
+ import {
9
+ type StructuralEquality as UniffiStructuralEquality,
10
+ type UniffiForeignFuture as RuntimeUniffiForeignFuture,
11
+ type UniffiRustCallStatus,
12
+ type UniffiGcObject,
13
+ type UniffiRustFutureContinuationCallback as RuntimeUniffiRustFutureContinuationCallback,
14
+ type UniffiResult,
15
+ } from "uniffi-bindgen-react-native";
16
+
17
+ interface NativeModuleInterface {
18
+ ubrn_uniffi_internal_fn_func_ffi__string_to_byte_length(
19
+ string: string,
20
+ uniffi_out_err: UniffiRustCallStatus
21
+ ): number;
22
+ ubrn_uniffi_internal_fn_func_ffi__string_to_arraybuffer(
23
+ string: string,
24
+ uniffi_out_err: UniffiRustCallStatus
25
+ ): Uint8Array;
26
+ ubrn_uniffi_internal_fn_func_ffi__arraybuffer_to_string(
27
+ buffer: Uint8Array,
28
+ uniffi_out_err: UniffiRustCallStatus
29
+ ): string;
30
+ ubrn_uniffi_bdk_ffi_fn_clone_mnemonic(
31
+ handle: bigint,
32
+ uniffi_out_err: UniffiRustCallStatus
33
+ ): bigint;
34
+ ubrn_uniffi_bdk_ffi_fn_free_mnemonic(
35
+ handle: bigint,
36
+ uniffi_out_err: UniffiRustCallStatus
37
+ ): void;
38
+ ubrn_uniffi_bdk_ffi_fn_constructor_mnemonic_from_entropy(
39
+ entropy: Uint8Array,
40
+ uniffi_out_err: UniffiRustCallStatus
41
+ ): bigint;
42
+ ubrn_uniffi_bdk_ffi_fn_constructor_mnemonic_from_entropy_in(
43
+ entropy: Uint8Array,
44
+ language: Uint8Array,
45
+ uniffi_out_err: UniffiRustCallStatus
46
+ ): bigint;
47
+ ubrn_uniffi_bdk_ffi_fn_constructor_mnemonic_from_string(
48
+ mnemonic: Uint8Array,
49
+ uniffi_out_err: UniffiRustCallStatus
50
+ ): bigint;
51
+ ubrn_uniffi_bdk_ffi_fn_constructor_mnemonic_from_string_in(
52
+ mnemonic: Uint8Array,
53
+ language: Uint8Array,
54
+ uniffi_out_err: UniffiRustCallStatus
55
+ ): bigint;
56
+ ubrn_uniffi_bdk_ffi_fn_constructor_mnemonic_new(
57
+ wordCount: Uint8Array,
58
+ uniffi_out_err: UniffiRustCallStatus
59
+ ): bigint;
60
+ ubrn_uniffi_bdk_ffi_fn_method_mnemonic_language(
61
+ ptr: bigint,
62
+ uniffi_out_err: UniffiRustCallStatus
63
+ ): Uint8Array;
64
+ ubrn_uniffi_bdk_ffi_fn_method_mnemonic_to_seed_hex(
65
+ ptr: bigint,
66
+ passphrase: Uint8Array,
67
+ uniffi_out_err: UniffiRustCallStatus
68
+ ): Uint8Array;
69
+ ubrn_uniffi_bdk_ffi_fn_method_mnemonic_to_string(
70
+ ptr: bigint,
71
+ uniffi_out_err: UniffiRustCallStatus
72
+ ): Uint8Array;
73
+ ubrn_uniffi_bdk_ffi_fn_method_mnemonic_word_count(
74
+ ptr: bigint,
75
+ uniffi_out_err: UniffiRustCallStatus
76
+ ): number;
77
+ ubrn_uniffi_bdk_ffi_fn_method_mnemonic_words(
78
+ ptr: bigint,
79
+ uniffi_out_err: UniffiRustCallStatus
80
+ ): Uint8Array;
81
+ ubrn_uniffi_bdk_ffi_fn_clone_psbt(
82
+ handle: bigint,
83
+ uniffi_out_err: UniffiRustCallStatus
84
+ ): bigint;
85
+ ubrn_uniffi_bdk_ffi_fn_free_psbt(
86
+ handle: bigint,
87
+ uniffi_out_err: UniffiRustCallStatus
88
+ ): void;
89
+ ubrn_uniffi_bdk_ffi_fn_constructor_psbt_new(
90
+ psbtBase64: Uint8Array,
91
+ uniffi_out_err: UniffiRustCallStatus
92
+ ): bigint;
93
+ ubrn_uniffi_bdk_ffi_fn_method_psbt_extract_tx_hex(
94
+ ptr: bigint,
95
+ uniffi_out_err: UniffiRustCallStatus
96
+ ): Uint8Array;
97
+ ubrn_uniffi_bdk_ffi_fn_method_psbt_fee_amount(
98
+ ptr: bigint,
99
+ uniffi_out_err: UniffiRustCallStatus
100
+ ): Uint8Array;
101
+ ubrn_uniffi_bdk_ffi_fn_method_psbt_fee_rate(
102
+ ptr: bigint,
103
+ uniffi_out_err: UniffiRustCallStatus
104
+ ): Uint8Array;
105
+ ubrn_uniffi_bdk_ffi_fn_method_psbt_get_utxo_for(
106
+ ptr: bigint,
107
+ inputIndex: bigint,
108
+ uniffi_out_err: UniffiRustCallStatus
109
+ ): Uint8Array;
110
+ ubrn_uniffi_bdk_ffi_fn_method_psbt_to_base64(
111
+ ptr: bigint,
112
+ uniffi_out_err: UniffiRustCallStatus
113
+ ): Uint8Array;
114
+ ubrn_uniffi_bdk_ffi_fn_method_psbt_txid(
115
+ ptr: bigint,
116
+ uniffi_out_err: UniffiRustCallStatus
117
+ ): Uint8Array;
118
+ ubrn_uniffi_bdk_ffi_fn_clone_txbuilder(
119
+ handle: bigint,
120
+ uniffi_out_err: UniffiRustCallStatus
121
+ ): bigint;
122
+ ubrn_uniffi_bdk_ffi_fn_free_txbuilder(
123
+ handle: bigint,
124
+ uniffi_out_err: UniffiRustCallStatus
125
+ ): void;
126
+ ubrn_uniffi_bdk_ffi_fn_constructor_txbuilder_new(
127
+ uniffi_out_err: UniffiRustCallStatus
128
+ ): bigint;
129
+ ubrn_uniffi_bdk_ffi_fn_method_txbuilder_add_data(
130
+ ptr: bigint,
131
+ data: Uint8Array,
132
+ uniffi_out_err: UniffiRustCallStatus
133
+ ): void;
134
+ ubrn_uniffi_bdk_ffi_fn_method_txbuilder_add_global_xpubs(
135
+ ptr: bigint,
136
+ uniffi_out_err: UniffiRustCallStatus
137
+ ): void;
138
+ ubrn_uniffi_bdk_ffi_fn_method_txbuilder_add_recipient(
139
+ ptr: bigint,
140
+ address: Uint8Array,
141
+ amountSats: bigint,
142
+ uniffi_out_err: UniffiRustCallStatus
143
+ ): void;
144
+ ubrn_uniffi_bdk_ffi_fn_method_txbuilder_add_unspendable(
145
+ ptr: bigint,
146
+ outpoint: Uint8Array,
147
+ uniffi_out_err: UniffiRustCallStatus
148
+ ): void;
149
+ ubrn_uniffi_bdk_ffi_fn_method_txbuilder_add_utxo(
150
+ ptr: bigint,
151
+ outpoint: Uint8Array,
152
+ uniffi_out_err: UniffiRustCallStatus
153
+ ): void;
154
+ ubrn_uniffi_bdk_ffi_fn_method_txbuilder_add_utxos(
155
+ ptr: bigint,
156
+ outpoints: Uint8Array,
157
+ uniffi_out_err: UniffiRustCallStatus
158
+ ): void;
159
+ ubrn_uniffi_bdk_ffi_fn_method_txbuilder_allow_dust(
160
+ ptr: bigint,
161
+ allow: number,
162
+ uniffi_out_err: UniffiRustCallStatus
163
+ ): void;
164
+ ubrn_uniffi_bdk_ffi_fn_method_txbuilder_change_policy(
165
+ ptr: bigint,
166
+ policy: Uint8Array,
167
+ uniffi_out_err: UniffiRustCallStatus
168
+ ): void;
169
+ ubrn_uniffi_bdk_ffi_fn_method_txbuilder_current_height(
170
+ ptr: bigint,
171
+ height: number,
172
+ uniffi_out_err: UniffiRustCallStatus
173
+ ): void;
174
+ ubrn_uniffi_bdk_ffi_fn_method_txbuilder_do_not_spend_change(
175
+ ptr: bigint,
176
+ uniffi_out_err: UniffiRustCallStatus
177
+ ): void;
178
+ ubrn_uniffi_bdk_ffi_fn_method_txbuilder_drain_to(
179
+ ptr: bigint,
180
+ address: Uint8Array,
181
+ uniffi_out_err: UniffiRustCallStatus
182
+ ): void;
183
+ ubrn_uniffi_bdk_ffi_fn_method_txbuilder_drain_wallet(
184
+ ptr: bigint,
185
+ uniffi_out_err: UniffiRustCallStatus
186
+ ): void;
187
+ ubrn_uniffi_bdk_ffi_fn_method_txbuilder_enable_rbf(
188
+ ptr: bigint,
189
+ uniffi_out_err: UniffiRustCallStatus
190
+ ): void;
191
+ ubrn_uniffi_bdk_ffi_fn_method_txbuilder_enable_rbf_with_sequence(
192
+ ptr: bigint,
193
+ nsequence: number,
194
+ uniffi_out_err: UniffiRustCallStatus
195
+ ): void;
196
+ ubrn_uniffi_bdk_ffi_fn_method_txbuilder_exclude_below_confirmations(
197
+ ptr: bigint,
198
+ minConfirms: number,
199
+ uniffi_out_err: UniffiRustCallStatus
200
+ ): void;
201
+ ubrn_uniffi_bdk_ffi_fn_method_txbuilder_exclude_unconfirmed(
202
+ ptr: bigint,
203
+ uniffi_out_err: UniffiRustCallStatus
204
+ ): void;
205
+ ubrn_uniffi_bdk_ffi_fn_method_txbuilder_fee_absolute(
206
+ ptr: bigint,
207
+ feeSats: bigint,
208
+ uniffi_out_err: UniffiRustCallStatus
209
+ ): void;
210
+ ubrn_uniffi_bdk_ffi_fn_method_txbuilder_fee_rate(
211
+ ptr: bigint,
212
+ satPerVbyte: number,
213
+ uniffi_out_err: UniffiRustCallStatus
214
+ ): void;
215
+ ubrn_uniffi_bdk_ffi_fn_method_txbuilder_finish(
216
+ ptr: bigint,
217
+ wallet: bigint,
218
+ uniffi_out_err: UniffiRustCallStatus
219
+ ): bigint;
220
+ ubrn_uniffi_bdk_ffi_fn_method_txbuilder_include_output_redeem_witness_script(
221
+ ptr: bigint,
222
+ uniffi_out_err: UniffiRustCallStatus
223
+ ): void;
224
+ ubrn_uniffi_bdk_ffi_fn_method_txbuilder_manually_selected_only(
225
+ ptr: bigint,
226
+ uniffi_out_err: UniffiRustCallStatus
227
+ ): void;
228
+ ubrn_uniffi_bdk_ffi_fn_method_txbuilder_nlocktime(
229
+ ptr: bigint,
230
+ lockHeight: number,
231
+ uniffi_out_err: UniffiRustCallStatus
232
+ ): void;
233
+ ubrn_uniffi_bdk_ffi_fn_method_txbuilder_only_spend_change(
234
+ ptr: bigint,
235
+ uniffi_out_err: UniffiRustCallStatus
236
+ ): void;
237
+ ubrn_uniffi_bdk_ffi_fn_method_txbuilder_only_witness_utxo(
238
+ ptr: bigint,
239
+ uniffi_out_err: UniffiRustCallStatus
240
+ ): void;
241
+ ubrn_uniffi_bdk_ffi_fn_method_txbuilder_ordering(
242
+ ptr: bigint,
243
+ ordering: Uint8Array,
244
+ uniffi_out_err: UniffiRustCallStatus
245
+ ): void;
246
+ ubrn_uniffi_bdk_ffi_fn_method_txbuilder_policy_path(
247
+ ptr: bigint,
248
+ pathMapJson: Uint8Array,
249
+ keychain: Uint8Array,
250
+ uniffi_out_err: UniffiRustCallStatus
251
+ ): void;
252
+ ubrn_uniffi_bdk_ffi_fn_method_txbuilder_set_exact_sequence(
253
+ ptr: bigint,
254
+ nsequence: number,
255
+ uniffi_out_err: UniffiRustCallStatus
256
+ ): void;
257
+ ubrn_uniffi_bdk_ffi_fn_method_txbuilder_set_recipients(
258
+ ptr: bigint,
259
+ recipients: Uint8Array,
260
+ uniffi_out_err: UniffiRustCallStatus
261
+ ): void;
262
+ ubrn_uniffi_bdk_ffi_fn_method_txbuilder_sighash(
263
+ ptr: bigint,
264
+ sighashType: number,
265
+ uniffi_out_err: UniffiRustCallStatus
266
+ ): void;
267
+ ubrn_uniffi_bdk_ffi_fn_method_txbuilder_tx_version(
268
+ ptr: bigint,
269
+ version: number,
270
+ uniffi_out_err: UniffiRustCallStatus
271
+ ): void;
272
+ ubrn_uniffi_bdk_ffi_fn_method_txbuilder_unspendable(
273
+ ptr: bigint,
274
+ outpoints: Uint8Array,
275
+ uniffi_out_err: UniffiRustCallStatus
276
+ ): void;
277
+ ubrn_uniffi_bdk_ffi_fn_clone_wallet(
278
+ handle: bigint,
279
+ uniffi_out_err: UniffiRustCallStatus
280
+ ): bigint;
281
+ ubrn_uniffi_bdk_ffi_fn_free_wallet(
282
+ handle: bigint,
283
+ uniffi_out_err: UniffiRustCallStatus
284
+ ): void;
285
+ ubrn_uniffi_bdk_ffi_fn_constructor_wallet_new(
286
+ descriptor: Uint8Array,
287
+ changeDescriptor: Uint8Array,
288
+ network: Uint8Array,
289
+ dbPath: Uint8Array,
290
+ uniffi_out_err: UniffiRustCallStatus
291
+ ): bigint;
292
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_broadcast_with_electrum(
293
+ ptr: bigint,
294
+ url: Uint8Array,
295
+ psbt: bigint,
296
+ uniffi_out_err: UniffiRustCallStatus
297
+ ): Uint8Array;
298
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_broadcast_with_esplora(
299
+ ptr: bigint,
300
+ url: Uint8Array,
301
+ psbt: bigint
302
+ ): bigint;
303
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_build_fee_bump(
304
+ ptr: bigint,
305
+ txid: Uint8Array,
306
+ newFeeRate: number,
307
+ uniffi_out_err: UniffiRustCallStatus
308
+ ): bigint;
309
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_calculate_fee(
310
+ ptr: bigint,
311
+ txHex: Uint8Array,
312
+ uniffi_out_err: UniffiRustCallStatus
313
+ ): bigint;
314
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_calculate_fee_rate(
315
+ ptr: bigint,
316
+ txHex: Uint8Array,
317
+ uniffi_out_err: UniffiRustCallStatus
318
+ ): number;
319
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_cancel_tx(
320
+ ptr: bigint,
321
+ txHex: Uint8Array,
322
+ uniffi_out_err: UniffiRustCallStatus
323
+ ): void;
324
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_checkpoints(
325
+ ptr: bigint,
326
+ uniffi_out_err: UniffiRustCallStatus
327
+ ): Uint8Array;
328
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_derivation_index(
329
+ ptr: bigint,
330
+ keychain: Uint8Array,
331
+ uniffi_out_err: UniffiRustCallStatus
332
+ ): Uint8Array;
333
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_derivation_of_spk(
334
+ ptr: bigint,
335
+ scriptHex: Uint8Array,
336
+ uniffi_out_err: UniffiRustCallStatus
337
+ ): Uint8Array;
338
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_descriptor_checksum(
339
+ ptr: bigint,
340
+ keychain: Uint8Array,
341
+ uniffi_out_err: UniffiRustCallStatus
342
+ ): Uint8Array;
343
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_drain(
344
+ ptr: bigint,
345
+ address: Uint8Array,
346
+ feeRate: number,
347
+ esploraUrl: Uint8Array
348
+ ): bigint;
349
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_finalize_psbt(
350
+ ptr: bigint,
351
+ psbt: bigint,
352
+ uniffi_out_err: UniffiRustCallStatus
353
+ ): number;
354
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_full_scan_with_electrum(
355
+ ptr: bigint,
356
+ url: Uint8Array,
357
+ stopGap: bigint,
358
+ uniffi_out_err: UniffiRustCallStatus
359
+ ): void;
360
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_full_scan_with_esplora(
361
+ ptr: bigint,
362
+ url: Uint8Array,
363
+ stopGap: bigint
364
+ ): bigint;
365
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_get_balance(
366
+ ptr: bigint,
367
+ uniffi_out_err: UniffiRustCallStatus
368
+ ): Uint8Array;
369
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_get_tx(
370
+ ptr: bigint,
371
+ txid: Uint8Array,
372
+ uniffi_out_err: UniffiRustCallStatus
373
+ ): Uint8Array;
374
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_get_utxo(
375
+ ptr: bigint,
376
+ outpoint: Uint8Array,
377
+ uniffi_out_err: UniffiRustCallStatus
378
+ ): Uint8Array;
379
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_insert_txout(
380
+ ptr: bigint,
381
+ outpoint: Uint8Array,
382
+ txout: Uint8Array,
383
+ uniffi_out_err: UniffiRustCallStatus
384
+ ): void;
385
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_is_mine(
386
+ ptr: bigint,
387
+ scriptHex: Uint8Array,
388
+ uniffi_out_err: UniffiRustCallStatus
389
+ ): number;
390
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_keychains(
391
+ ptr: bigint,
392
+ uniffi_out_err: UniffiRustCallStatus
393
+ ): Uint8Array;
394
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_latest_checkpoint(
395
+ ptr: bigint,
396
+ uniffi_out_err: UniffiRustCallStatus
397
+ ): Uint8Array;
398
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_list_output(
399
+ ptr: bigint,
400
+ uniffi_out_err: UniffiRustCallStatus
401
+ ): Uint8Array;
402
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_list_unspent(
403
+ ptr: bigint,
404
+ uniffi_out_err: UniffiRustCallStatus
405
+ ): Uint8Array;
406
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_list_unused_addresses(
407
+ ptr: bigint,
408
+ keychain: Uint8Array,
409
+ uniffi_out_err: UniffiRustCallStatus
410
+ ): Uint8Array;
411
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_mark_used(
412
+ ptr: bigint,
413
+ keychain: Uint8Array,
414
+ index: number,
415
+ uniffi_out_err: UniffiRustCallStatus
416
+ ): number;
417
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_network(
418
+ ptr: bigint,
419
+ uniffi_out_err: UniffiRustCallStatus
420
+ ): Uint8Array;
421
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_next_derivation_index(
422
+ ptr: bigint,
423
+ keychain: Uint8Array,
424
+ uniffi_out_err: UniffiRustCallStatus
425
+ ): number;
426
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_next_unused_address(
427
+ ptr: bigint,
428
+ keychain: Uint8Array,
429
+ uniffi_out_err: UniffiRustCallStatus
430
+ ): Uint8Array;
431
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_peek_address(
432
+ ptr: bigint,
433
+ keychain: Uint8Array,
434
+ index: number,
435
+ uniffi_out_err: UniffiRustCallStatus
436
+ ): Uint8Array;
437
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_persist(
438
+ ptr: bigint,
439
+ uniffi_out_err: UniffiRustCallStatus
440
+ ): number;
441
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_policies(
442
+ ptr: bigint,
443
+ keychain: Uint8Array,
444
+ uniffi_out_err: UniffiRustCallStatus
445
+ ): Uint8Array;
446
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_public_descriptor(
447
+ ptr: bigint,
448
+ keychain: Uint8Array,
449
+ uniffi_out_err: UniffiRustCallStatus
450
+ ): Uint8Array;
451
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_reveal_addresses_to(
452
+ ptr: bigint,
453
+ keychain: Uint8Array,
454
+ index: number,
455
+ uniffi_out_err: UniffiRustCallStatus
456
+ ): Uint8Array;
457
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_reveal_next_address(
458
+ ptr: bigint,
459
+ keychain: Uint8Array,
460
+ uniffi_out_err: UniffiRustCallStatus
461
+ ): Uint8Array;
462
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_send(
463
+ ptr: bigint,
464
+ address: Uint8Array,
465
+ amountSats: bigint,
466
+ feeRate: number,
467
+ esploraUrl: Uint8Array
468
+ ): bigint;
469
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_sent_and_received(
470
+ ptr: bigint,
471
+ txHex: Uint8Array,
472
+ uniffi_out_err: UniffiRustCallStatus
473
+ ): Uint8Array;
474
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_sign(
475
+ ptr: bigint,
476
+ psbt: bigint,
477
+ uniffi_out_err: UniffiRustCallStatus
478
+ ): number;
479
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_sync_with_electrum(
480
+ ptr: bigint,
481
+ url: Uint8Array,
482
+ stopGap: bigint,
483
+ uniffi_out_err: UniffiRustCallStatus
484
+ ): void;
485
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_sync_with_esplora(
486
+ ptr: bigint,
487
+ url: Uint8Array,
488
+ stopGap: bigint
489
+ ): bigint;
490
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_transactions(
491
+ ptr: bigint,
492
+ uniffi_out_err: UniffiRustCallStatus
493
+ ): Uint8Array;
494
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_tx_details(
495
+ ptr: bigint,
496
+ txid: Uint8Array,
497
+ uniffi_out_err: UniffiRustCallStatus
498
+ ): Uint8Array;
499
+ ubrn_uniffi_bdk_ffi_fn_method_wallet_unmark_used(
500
+ ptr: bigint,
501
+ keychain: Uint8Array,
502
+ index: number,
503
+ uniffi_out_err: UniffiRustCallStatus
504
+ ): number;
505
+ ubrn_uniffi_bdk_ffi_fn_func_create_descriptor(
506
+ mnemonic: bigint,
507
+ template: Uint8Array,
508
+ keychain: Uint8Array,
509
+ network: Uint8Array,
510
+ uniffi_out_err: UniffiRustCallStatus
511
+ ): Uint8Array;
512
+ ubrn_uniffi_bdk_ffi_fn_func_create_public_descriptor(
513
+ xpub: Uint8Array,
514
+ template: Uint8Array,
515
+ keychain: Uint8Array,
516
+ network: Uint8Array,
517
+ uniffi_out_err: UniffiRustCallStatus
518
+ ): Uint8Array;
519
+ ubrn_uniffi_bdk_ffi_fn_func_create_single_key_descriptor(
520
+ key: Uint8Array,
521
+ template: Uint8Array,
522
+ network: Uint8Array,
523
+ uniffi_out_err: UniffiRustCallStatus
524
+ ): Uint8Array;
525
+ ubrn_uniffi_bdk_ffi_fn_func_export_wallet(
526
+ wallet: bigint,
527
+ label: Uint8Array,
528
+ includeBlockHeight: number,
529
+ uniffi_out_err: UniffiRustCallStatus
530
+ ): Uint8Array;
531
+ ubrn_uniffi_bdk_ffi_fn_func_is_valid_address(
532
+ address: Uint8Array,
533
+ network: Uint8Array,
534
+ uniffi_out_err: UniffiRustCallStatus
535
+ ): number;
536
+ ubrn_uniffi_bdk_ffi_fn_func_version(
537
+ uniffi_out_err: UniffiRustCallStatus
538
+ ): Uint8Array;
539
+ ubrn_uniffi_bdk_ffi_fn_func_wallet_name_from_descriptor(
540
+ descriptor: Uint8Array,
541
+ changeDescriptor: Uint8Array,
542
+ network: Uint8Array,
543
+ uniffi_out_err: UniffiRustCallStatus
544
+ ): Uint8Array;
545
+ ubrn_ffi_bdk_ffi_rust_future_poll_u8(
546
+ handle: bigint,
547
+ callback: UniffiRustFutureContinuationCallback,
548
+ callbackData: bigint
549
+ ): void;
550
+ ubrn_ffi_bdk_ffi_rust_future_cancel_u8(handle: bigint): void;
551
+ ubrn_ffi_bdk_ffi_rust_future_free_u8(handle: bigint): void;
552
+ ubrn_ffi_bdk_ffi_rust_future_complete_u8(
553
+ handle: bigint,
554
+ uniffi_out_err: UniffiRustCallStatus
555
+ ): number;
556
+ ubrn_ffi_bdk_ffi_rust_future_poll_i8(
557
+ handle: bigint,
558
+ callback: UniffiRustFutureContinuationCallback,
559
+ callbackData: bigint
560
+ ): void;
561
+ ubrn_ffi_bdk_ffi_rust_future_cancel_i8(handle: bigint): void;
562
+ ubrn_ffi_bdk_ffi_rust_future_free_i8(handle: bigint): void;
563
+ ubrn_ffi_bdk_ffi_rust_future_complete_i8(
564
+ handle: bigint,
565
+ uniffi_out_err: UniffiRustCallStatus
566
+ ): number;
567
+ ubrn_ffi_bdk_ffi_rust_future_poll_u16(
568
+ handle: bigint,
569
+ callback: UniffiRustFutureContinuationCallback,
570
+ callbackData: bigint
571
+ ): void;
572
+ ubrn_ffi_bdk_ffi_rust_future_cancel_u16(handle: bigint): void;
573
+ ubrn_ffi_bdk_ffi_rust_future_free_u16(handle: bigint): void;
574
+ ubrn_ffi_bdk_ffi_rust_future_complete_u16(
575
+ handle: bigint,
576
+ uniffi_out_err: UniffiRustCallStatus
577
+ ): number;
578
+ ubrn_ffi_bdk_ffi_rust_future_poll_i16(
579
+ handle: bigint,
580
+ callback: UniffiRustFutureContinuationCallback,
581
+ callbackData: bigint
582
+ ): void;
583
+ ubrn_ffi_bdk_ffi_rust_future_cancel_i16(handle: bigint): void;
584
+ ubrn_ffi_bdk_ffi_rust_future_free_i16(handle: bigint): void;
585
+ ubrn_ffi_bdk_ffi_rust_future_complete_i16(
586
+ handle: bigint,
587
+ uniffi_out_err: UniffiRustCallStatus
588
+ ): number;
589
+ ubrn_ffi_bdk_ffi_rust_future_poll_u32(
590
+ handle: bigint,
591
+ callback: UniffiRustFutureContinuationCallback,
592
+ callbackData: bigint
593
+ ): void;
594
+ ubrn_ffi_bdk_ffi_rust_future_cancel_u32(handle: bigint): void;
595
+ ubrn_ffi_bdk_ffi_rust_future_free_u32(handle: bigint): void;
596
+ ubrn_ffi_bdk_ffi_rust_future_complete_u32(
597
+ handle: bigint,
598
+ uniffi_out_err: UniffiRustCallStatus
599
+ ): number;
600
+ ubrn_ffi_bdk_ffi_rust_future_poll_i32(
601
+ handle: bigint,
602
+ callback: UniffiRustFutureContinuationCallback,
603
+ callbackData: bigint
604
+ ): void;
605
+ ubrn_ffi_bdk_ffi_rust_future_cancel_i32(handle: bigint): void;
606
+ ubrn_ffi_bdk_ffi_rust_future_free_i32(handle: bigint): void;
607
+ ubrn_ffi_bdk_ffi_rust_future_complete_i32(
608
+ handle: bigint,
609
+ uniffi_out_err: UniffiRustCallStatus
610
+ ): number;
611
+ ubrn_ffi_bdk_ffi_rust_future_poll_u64(
612
+ handle: bigint,
613
+ callback: UniffiRustFutureContinuationCallback,
614
+ callbackData: bigint
615
+ ): void;
616
+ ubrn_ffi_bdk_ffi_rust_future_cancel_u64(handle: bigint): void;
617
+ ubrn_ffi_bdk_ffi_rust_future_free_u64(handle: bigint): void;
618
+ ubrn_ffi_bdk_ffi_rust_future_complete_u64(
619
+ handle: bigint,
620
+ uniffi_out_err: UniffiRustCallStatus
621
+ ): bigint;
622
+ ubrn_ffi_bdk_ffi_rust_future_poll_i64(
623
+ handle: bigint,
624
+ callback: UniffiRustFutureContinuationCallback,
625
+ callbackData: bigint
626
+ ): void;
627
+ ubrn_ffi_bdk_ffi_rust_future_cancel_i64(handle: bigint): void;
628
+ ubrn_ffi_bdk_ffi_rust_future_free_i64(handle: bigint): void;
629
+ ubrn_ffi_bdk_ffi_rust_future_complete_i64(
630
+ handle: bigint,
631
+ uniffi_out_err: UniffiRustCallStatus
632
+ ): bigint;
633
+ ubrn_ffi_bdk_ffi_rust_future_poll_f32(
634
+ handle: bigint,
635
+ callback: UniffiRustFutureContinuationCallback,
636
+ callbackData: bigint
637
+ ): void;
638
+ ubrn_ffi_bdk_ffi_rust_future_cancel_f32(handle: bigint): void;
639
+ ubrn_ffi_bdk_ffi_rust_future_free_f32(handle: bigint): void;
640
+ ubrn_ffi_bdk_ffi_rust_future_complete_f32(
641
+ handle: bigint,
642
+ uniffi_out_err: UniffiRustCallStatus
643
+ ): number;
644
+ ubrn_ffi_bdk_ffi_rust_future_poll_f64(
645
+ handle: bigint,
646
+ callback: UniffiRustFutureContinuationCallback,
647
+ callbackData: bigint
648
+ ): void;
649
+ ubrn_ffi_bdk_ffi_rust_future_cancel_f64(handle: bigint): void;
650
+ ubrn_ffi_bdk_ffi_rust_future_free_f64(handle: bigint): void;
651
+ ubrn_ffi_bdk_ffi_rust_future_complete_f64(
652
+ handle: bigint,
653
+ uniffi_out_err: UniffiRustCallStatus
654
+ ): number;
655
+ ubrn_ffi_bdk_ffi_rust_future_poll_rust_buffer(
656
+ handle: bigint,
657
+ callback: UniffiRustFutureContinuationCallback,
658
+ callbackData: bigint
659
+ ): void;
660
+ ubrn_ffi_bdk_ffi_rust_future_cancel_rust_buffer(handle: bigint): void;
661
+ ubrn_ffi_bdk_ffi_rust_future_free_rust_buffer(handle: bigint): void;
662
+ ubrn_ffi_bdk_ffi_rust_future_complete_rust_buffer(
663
+ handle: bigint,
664
+ uniffi_out_err: UniffiRustCallStatus
665
+ ): Uint8Array;
666
+ ubrn_ffi_bdk_ffi_rust_future_poll_void(
667
+ handle: bigint,
668
+ callback: UniffiRustFutureContinuationCallback,
669
+ callbackData: bigint
670
+ ): void;
671
+ ubrn_ffi_bdk_ffi_rust_future_cancel_void(handle: bigint): void;
672
+ ubrn_ffi_bdk_ffi_rust_future_free_void(handle: bigint): void;
673
+ ubrn_ffi_bdk_ffi_rust_future_complete_void(
674
+ handle: bigint,
675
+ uniffi_out_err: UniffiRustCallStatus
676
+ ): void;
677
+ ubrn_uniffi_bdk_ffi_checksum_func_create_descriptor(): number;
678
+ ubrn_uniffi_bdk_ffi_checksum_func_create_public_descriptor(): number;
679
+ ubrn_uniffi_bdk_ffi_checksum_func_create_single_key_descriptor(): number;
680
+ ubrn_uniffi_bdk_ffi_checksum_func_export_wallet(): number;
681
+ ubrn_uniffi_bdk_ffi_checksum_func_is_valid_address(): number;
682
+ ubrn_uniffi_bdk_ffi_checksum_func_version(): number;
683
+ ubrn_uniffi_bdk_ffi_checksum_func_wallet_name_from_descriptor(): number;
684
+ ubrn_uniffi_bdk_ffi_checksum_method_mnemonic_language(): number;
685
+ ubrn_uniffi_bdk_ffi_checksum_method_mnemonic_to_seed_hex(): number;
686
+ ubrn_uniffi_bdk_ffi_checksum_method_mnemonic_to_string(): number;
687
+ ubrn_uniffi_bdk_ffi_checksum_method_mnemonic_word_count(): number;
688
+ ubrn_uniffi_bdk_ffi_checksum_method_mnemonic_words(): number;
689
+ ubrn_uniffi_bdk_ffi_checksum_method_psbt_extract_tx_hex(): number;
690
+ ubrn_uniffi_bdk_ffi_checksum_method_psbt_fee_amount(): number;
691
+ ubrn_uniffi_bdk_ffi_checksum_method_psbt_fee_rate(): number;
692
+ ubrn_uniffi_bdk_ffi_checksum_method_psbt_get_utxo_for(): number;
693
+ ubrn_uniffi_bdk_ffi_checksum_method_psbt_to_base64(): number;
694
+ ubrn_uniffi_bdk_ffi_checksum_method_psbt_txid(): number;
695
+ ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_add_data(): number;
696
+ ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_add_global_xpubs(): number;
697
+ ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_add_recipient(): number;
698
+ ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_add_unspendable(): number;
699
+ ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_add_utxo(): number;
700
+ ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_add_utxos(): number;
701
+ ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_allow_dust(): number;
702
+ ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_change_policy(): number;
703
+ ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_current_height(): number;
704
+ ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_do_not_spend_change(): number;
705
+ ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_drain_to(): number;
706
+ ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_drain_wallet(): number;
707
+ ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_enable_rbf(): number;
708
+ ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_enable_rbf_with_sequence(): number;
709
+ ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_exclude_below_confirmations(): number;
710
+ ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_exclude_unconfirmed(): number;
711
+ ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_fee_absolute(): number;
712
+ ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_fee_rate(): number;
713
+ ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_finish(): number;
714
+ ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_include_output_redeem_witness_script(): number;
715
+ ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_manually_selected_only(): number;
716
+ ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_nlocktime(): number;
717
+ ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_only_spend_change(): number;
718
+ ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_only_witness_utxo(): number;
719
+ ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_ordering(): number;
720
+ ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_policy_path(): number;
721
+ ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_set_exact_sequence(): number;
722
+ ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_set_recipients(): number;
723
+ ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_sighash(): number;
724
+ ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_tx_version(): number;
725
+ ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_unspendable(): number;
726
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_broadcast_with_electrum(): number;
727
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_broadcast_with_esplora(): number;
728
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_build_fee_bump(): number;
729
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_calculate_fee(): number;
730
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_calculate_fee_rate(): number;
731
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_cancel_tx(): number;
732
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_checkpoints(): number;
733
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_derivation_index(): number;
734
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_derivation_of_spk(): number;
735
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_descriptor_checksum(): number;
736
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_drain(): number;
737
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_finalize_psbt(): number;
738
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_full_scan_with_electrum(): number;
739
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_full_scan_with_esplora(): number;
740
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_get_balance(): number;
741
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_get_tx(): number;
742
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_get_utxo(): number;
743
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_insert_txout(): number;
744
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_is_mine(): number;
745
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_keychains(): number;
746
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_latest_checkpoint(): number;
747
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_list_output(): number;
748
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_list_unspent(): number;
749
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_list_unused_addresses(): number;
750
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_mark_used(): number;
751
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_network(): number;
752
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_next_derivation_index(): number;
753
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_next_unused_address(): number;
754
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_peek_address(): number;
755
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_persist(): number;
756
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_policies(): number;
757
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_public_descriptor(): number;
758
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_reveal_addresses_to(): number;
759
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_reveal_next_address(): number;
760
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_send(): number;
761
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_sent_and_received(): number;
762
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_sign(): number;
763
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_sync_with_electrum(): number;
764
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_sync_with_esplora(): number;
765
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_transactions(): number;
766
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_tx_details(): number;
767
+ ubrn_uniffi_bdk_ffi_checksum_method_wallet_unmark_used(): number;
768
+ ubrn_uniffi_bdk_ffi_checksum_constructor_mnemonic_from_entropy(): number;
769
+ ubrn_uniffi_bdk_ffi_checksum_constructor_mnemonic_from_entropy_in(): number;
770
+ ubrn_uniffi_bdk_ffi_checksum_constructor_mnemonic_from_string(): number;
771
+ ubrn_uniffi_bdk_ffi_checksum_constructor_mnemonic_from_string_in(): number;
772
+ ubrn_uniffi_bdk_ffi_checksum_constructor_mnemonic_new(): number;
773
+ ubrn_uniffi_bdk_ffi_checksum_constructor_psbt_new(): number;
774
+ ubrn_uniffi_bdk_ffi_checksum_constructor_txbuilder_new(): number;
775
+ ubrn_uniffi_bdk_ffi_checksum_constructor_wallet_new(): number;
776
+ ubrn_ffi_bdk_ffi_uniffi_contract_version(): number;
777
+ ubrn_uniffi_internal_fn_method_mnemonic_ffi__bless_pointer(
778
+ pointer: bigint,
779
+ uniffi_out_err: UniffiRustCallStatus
780
+ ): UniffiGcObject;
781
+ ubrn_uniffi_internal_fn_method_psbt_ffi__bless_pointer(
782
+ pointer: bigint,
783
+ uniffi_out_err: UniffiRustCallStatus
784
+ ): UniffiGcObject;
785
+ ubrn_uniffi_internal_fn_method_txbuilder_ffi__bless_pointer(
786
+ pointer: bigint,
787
+ uniffi_out_err: UniffiRustCallStatus
788
+ ): UniffiGcObject;
789
+ ubrn_uniffi_internal_fn_method_wallet_ffi__bless_pointer(
790
+ pointer: bigint,
791
+ uniffi_out_err: UniffiRustCallStatus
792
+ ): UniffiGcObject;
793
+ }
794
+
795
+ // Casting globalThis to any allows us to look for `NativeBdkFfi`
796
+ // if it was added via JSI.
797
+ //
798
+ // We use a getter here rather than simply `globalThis.NativeBdkFfi` so that
799
+ // if/when the startup sequence isn't just so, an empty value isn't inadvertantly cached.
800
+ const getter: () => NativeModuleInterface = () =>
801
+ (globalThis as any).NativeBdkFfi;
802
+ export default getter;
803
+
804
+ // Structs and function types for calling back into Typescript from Rust.
805
+ export type UniffiRustFutureContinuationCallback = (
806
+ data: bigint,
807
+ pollResult: number
808
+ ) => void;
809
+ export type UniffiForeignFutureDroppedCallback = (handle: bigint) => void;
810
+ type UniffiCallbackInterfaceFree = (handle: bigint) => void;
811
+ type UniffiCallbackInterfaceClone = (handle: bigint) => UniffiResult<void>;
812
+ export type UniffiForeignFutureDroppedCallbackStruct = {
813
+ handle: bigint;
814
+ free: UniffiForeignFutureDroppedCallback;
815
+ };
816
+ export type UniffiForeignFutureResultU8 = {
817
+ returnValue: number;
818
+ callStatus: UniffiRustCallStatus;
819
+ };
820
+ export type UniffiForeignFutureCompleteU8 = (
821
+ callbackData: bigint,
822
+ result: UniffiForeignFutureResultU8
823
+ ) => void;
824
+ export type UniffiForeignFutureResultI8 = {
825
+ returnValue: number;
826
+ callStatus: UniffiRustCallStatus;
827
+ };
828
+ export type UniffiForeignFutureCompleteI8 = (
829
+ callbackData: bigint,
830
+ result: UniffiForeignFutureResultI8
831
+ ) => void;
832
+ export type UniffiForeignFutureResultU16 = {
833
+ returnValue: number;
834
+ callStatus: UniffiRustCallStatus;
835
+ };
836
+ export type UniffiForeignFutureCompleteU16 = (
837
+ callbackData: bigint,
838
+ result: UniffiForeignFutureResultU16
839
+ ) => void;
840
+ export type UniffiForeignFutureResultI16 = {
841
+ returnValue: number;
842
+ callStatus: UniffiRustCallStatus;
843
+ };
844
+ export type UniffiForeignFutureCompleteI16 = (
845
+ callbackData: bigint,
846
+ result: UniffiForeignFutureResultI16
847
+ ) => void;
848
+ export type UniffiForeignFutureResultU32 = {
849
+ returnValue: number;
850
+ callStatus: UniffiRustCallStatus;
851
+ };
852
+ export type UniffiForeignFutureCompleteU32 = (
853
+ callbackData: bigint,
854
+ result: UniffiForeignFutureResultU32
855
+ ) => void;
856
+ export type UniffiForeignFutureResultI32 = {
857
+ returnValue: number;
858
+ callStatus: UniffiRustCallStatus;
859
+ };
860
+ export type UniffiForeignFutureCompleteI32 = (
861
+ callbackData: bigint,
862
+ result: UniffiForeignFutureResultI32
863
+ ) => void;
864
+ export type UniffiForeignFutureResultU64 = {
865
+ returnValue: bigint;
866
+ callStatus: UniffiRustCallStatus;
867
+ };
868
+ export type UniffiForeignFutureCompleteU64 = (
869
+ callbackData: bigint,
870
+ result: UniffiForeignFutureResultU64
871
+ ) => void;
872
+ export type UniffiForeignFutureResultI64 = {
873
+ returnValue: bigint;
874
+ callStatus: UniffiRustCallStatus;
875
+ };
876
+ export type UniffiForeignFutureCompleteI64 = (
877
+ callbackData: bigint,
878
+ result: UniffiForeignFutureResultI64
879
+ ) => void;
880
+ export type UniffiForeignFutureResultF32 = {
881
+ returnValue: number;
882
+ callStatus: UniffiRustCallStatus;
883
+ };
884
+ export type UniffiForeignFutureCompleteF32 = (
885
+ callbackData: bigint,
886
+ result: UniffiForeignFutureResultF32
887
+ ) => void;
888
+ export type UniffiForeignFutureResultF64 = {
889
+ returnValue: number;
890
+ callStatus: UniffiRustCallStatus;
891
+ };
892
+ export type UniffiForeignFutureCompleteF64 = (
893
+ callbackData: bigint,
894
+ result: UniffiForeignFutureResultF64
895
+ ) => void;
896
+ export type UniffiForeignFutureResultRustBuffer = {
897
+ returnValue: Uint8Array;
898
+ callStatus: UniffiRustCallStatus;
899
+ };
900
+ export type UniffiForeignFutureCompleteRustBuffer = (
901
+ callbackData: bigint,
902
+ result: UniffiForeignFutureResultRustBuffer
903
+ ) => void;
904
+ export type UniffiForeignFutureResultVoid = {
905
+ callStatus: UniffiRustCallStatus;
906
+ };
907
+ export type UniffiForeignFutureCompleteVoid = (
908
+ callbackData: bigint,
909
+ result: UniffiForeignFutureResultVoid
910
+ ) => void;
911
+
912
+ // UniffiRustFutureContinuationCallback is generated as part of the component interface's
913
+ // ffi_definitions. However, we need it in the runtime.
914
+ // We could:
915
+ // (a) do some complicated template logic to ensure the declaration is not generated here (possible)
916
+ // (b) import the generated declaration into the runtime (m a y b e) or…
917
+ // (c) generate the declaration anyway, and use a different declaration in the runtime.
918
+ //
919
+ // We chose (c) here as the simplest. In addition, we perform a compile time check that
920
+ // the two versions of `UniffiRustFutureContinuationCallback` are structurally equivalent.
921
+ //
922
+ // If you see the error:
923
+ // ```
924
+ // Type 'true' is not assignable to type 'false'.(2322)
925
+ // ```
926
+ // Then a new version of uniffi has changed the signature of the callback. Most likely, code in
927
+ // `typescript/src/async-rust-call.ts` will need to be changed.
928
+ //
929
+ // If you see the error:
930
+ // ```
931
+ // Cannot find name 'UniffiRustFutureContinuationCallback'. Did you mean 'RuntimeUniffiRustFutureContinuationCallback'?(2552)
932
+ // ```
933
+ // then you may not be using callbacks or promises, and uniffi is now not generating Futures and callbacks.
934
+ // You should not generate this if that is the case.
935
+ //
936
+ // ('You' being the bindings generator maintainer).
937
+ const isRustFutureContinuationCallbackTypeCompatible: UniffiStructuralEquality<
938
+ RuntimeUniffiRustFutureContinuationCallback,
939
+ UniffiRustFutureContinuationCallback
940
+ > = true;
941
+ const isUniffiForeignFutureTypeCompatible: UniffiStructuralEquality<
942
+ RuntimeUniffiForeignFuture,
943
+ UniffiForeignFuture
944
+ > = true;