@secondts/bark-react-native 0.23.0 → 0.25.0

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.
@@ -12,123 +12,301 @@ import {
12
12
  type UniffiGcObject,
13
13
  type UniffiRustFutureContinuationCallback as RuntimeUniffiRustFutureContinuationCallback,
14
14
  type UniffiResult,
15
- } from "uniffi-bindgen-react-native";
15
+ } from "@ubjs/core";
16
16
 
17
17
  interface NativeModuleInterface {
18
18
  ubrn_uniffi_internal_fn_func_ffi__string_to_byte_length(
19
19
  string: string,
20
20
  uniffi_out_err: UniffiRustCallStatus
21
21
  ): number;
22
- ubrn_uniffi_internal_fn_func_ffi__string_to_arraybuffer(
22
+ ubrn_uniffi_internal_fn_func_ffi__string_to_buffer(
23
23
  string: string,
24
24
  uniffi_out_err: UniffiRustCallStatus
25
25
  ): Uint8Array;
26
- ubrn_uniffi_internal_fn_func_ffi__arraybuffer_to_string(
26
+ ubrn_uniffi_internal_fn_func_ffi__string_from_buffer(
27
27
  buffer: Uint8Array,
28
28
  uniffi_out_err: UniffiRustCallStatus
29
29
  ): string;
30
- ubrn_uniffi_bark_ffi_fn_clone_notificationholder(
30
+ ubrn_uniffi_internal_fn_func_ffi__read_string_from_buffer(
31
+ buffer: any,
32
+ offset: number,
33
+ length: number
34
+ ): string;
35
+ ubrn_ffi_bark_ffi_rust_future_poll_u8(
36
+ handle: bigint,
37
+ callback: UniffiRustFutureContinuationCallback,
38
+ callbackData: bigint
39
+ ): void;
40
+ ubrn_ffi_bark_ffi_rust_future_cancel_u8(handle: bigint): void;
41
+ ubrn_ffi_bark_ffi_rust_future_complete_u8(
42
+ handle: bigint,
43
+ uniffi_out_err: UniffiRustCallStatus
44
+ ): number;
45
+ ubrn_ffi_bark_ffi_rust_future_free_u8(handle: bigint): void;
46
+ ubrn_ffi_bark_ffi_rust_future_poll_i8(
47
+ handle: bigint,
48
+ callback: UniffiRustFutureContinuationCallback,
49
+ callbackData: bigint
50
+ ): void;
51
+ ubrn_ffi_bark_ffi_rust_future_cancel_i8(handle: bigint): void;
52
+ ubrn_ffi_bark_ffi_rust_future_complete_i8(
53
+ handle: bigint,
54
+ uniffi_out_err: UniffiRustCallStatus
55
+ ): number;
56
+ ubrn_ffi_bark_ffi_rust_future_free_i8(handle: bigint): void;
57
+ ubrn_ffi_bark_ffi_rust_future_poll_u16(
58
+ handle: bigint,
59
+ callback: UniffiRustFutureContinuationCallback,
60
+ callbackData: bigint
61
+ ): void;
62
+ ubrn_ffi_bark_ffi_rust_future_cancel_u16(handle: bigint): void;
63
+ ubrn_ffi_bark_ffi_rust_future_complete_u16(
64
+ handle: bigint,
65
+ uniffi_out_err: UniffiRustCallStatus
66
+ ): number;
67
+ ubrn_ffi_bark_ffi_rust_future_free_u16(handle: bigint): void;
68
+ ubrn_ffi_bark_ffi_rust_future_poll_i16(
69
+ handle: bigint,
70
+ callback: UniffiRustFutureContinuationCallback,
71
+ callbackData: bigint
72
+ ): void;
73
+ ubrn_ffi_bark_ffi_rust_future_cancel_i16(handle: bigint): void;
74
+ ubrn_ffi_bark_ffi_rust_future_complete_i16(
75
+ handle: bigint,
76
+ uniffi_out_err: UniffiRustCallStatus
77
+ ): number;
78
+ ubrn_ffi_bark_ffi_rust_future_free_i16(handle: bigint): void;
79
+ ubrn_ffi_bark_ffi_rust_future_poll_u32(
80
+ handle: bigint,
81
+ callback: UniffiRustFutureContinuationCallback,
82
+ callbackData: bigint
83
+ ): void;
84
+ ubrn_ffi_bark_ffi_rust_future_cancel_u32(handle: bigint): void;
85
+ ubrn_ffi_bark_ffi_rust_future_complete_u32(
86
+ handle: bigint,
87
+ uniffi_out_err: UniffiRustCallStatus
88
+ ): number;
89
+ ubrn_ffi_bark_ffi_rust_future_free_u32(handle: bigint): void;
90
+ ubrn_ffi_bark_ffi_rust_future_poll_i32(
91
+ handle: bigint,
92
+ callback: UniffiRustFutureContinuationCallback,
93
+ callbackData: bigint
94
+ ): void;
95
+ ubrn_ffi_bark_ffi_rust_future_cancel_i32(handle: bigint): void;
96
+ ubrn_ffi_bark_ffi_rust_future_complete_i32(
97
+ handle: bigint,
98
+ uniffi_out_err: UniffiRustCallStatus
99
+ ): number;
100
+ ubrn_ffi_bark_ffi_rust_future_free_i32(handle: bigint): void;
101
+ ubrn_ffi_bark_ffi_rust_future_poll_u64(
102
+ handle: bigint,
103
+ callback: UniffiRustFutureContinuationCallback,
104
+ callbackData: bigint
105
+ ): void;
106
+ ubrn_ffi_bark_ffi_rust_future_cancel_u64(handle: bigint): void;
107
+ ubrn_ffi_bark_ffi_rust_future_complete_u64(
31
108
  handle: bigint,
32
109
  uniffi_out_err: UniffiRustCallStatus
33
110
  ): bigint;
34
- ubrn_uniffi_bark_ffi_fn_free_notificationholder(
111
+ ubrn_ffi_bark_ffi_rust_future_free_u64(handle: bigint): void;
112
+ ubrn_ffi_bark_ffi_rust_future_poll_i64(
113
+ handle: bigint,
114
+ callback: UniffiRustFutureContinuationCallback,
115
+ callbackData: bigint
116
+ ): void;
117
+ ubrn_ffi_bark_ffi_rust_future_cancel_i64(handle: bigint): void;
118
+ ubrn_ffi_bark_ffi_rust_future_complete_i64(
35
119
  handle: bigint,
36
120
  uniffi_out_err: UniffiRustCallStatus
121
+ ): bigint;
122
+ ubrn_ffi_bark_ffi_rust_future_free_i64(handle: bigint): void;
123
+ ubrn_ffi_bark_ffi_rust_future_poll_f32(
124
+ handle: bigint,
125
+ callback: UniffiRustFutureContinuationCallback,
126
+ callbackData: bigint
37
127
  ): void;
38
- ubrn_uniffi_bark_ffi_fn_method_notificationholder_cancel_next_notification_wait(
39
- ptr: bigint,
128
+ ubrn_ffi_bark_ffi_rust_future_cancel_f32(handle: bigint): void;
129
+ ubrn_ffi_bark_ffi_rust_future_complete_f32(
130
+ handle: bigint,
40
131
  uniffi_out_err: UniffiRustCallStatus
132
+ ): number;
133
+ ubrn_ffi_bark_ffi_rust_future_free_f32(handle: bigint): void;
134
+ ubrn_ffi_bark_ffi_rust_future_poll_f64(
135
+ handle: bigint,
136
+ callback: UniffiRustFutureContinuationCallback,
137
+ callbackData: bigint
41
138
  ): void;
42
- ubrn_uniffi_bark_ffi_fn_method_notificationholder_next_notification(
43
- ptr: bigint
139
+ ubrn_ffi_bark_ffi_rust_future_cancel_f64(handle: bigint): void;
140
+ ubrn_ffi_bark_ffi_rust_future_complete_f64(
141
+ handle: bigint,
142
+ uniffi_out_err: UniffiRustCallStatus
143
+ ): number;
144
+ ubrn_ffi_bark_ffi_rust_future_free_f64(handle: bigint): void;
145
+ ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer(
146
+ handle: bigint,
147
+ callback: UniffiRustFutureContinuationCallback,
148
+ callbackData: bigint
149
+ ): void;
150
+ ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer(handle: bigint): void;
151
+ ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer(
152
+ handle: bigint,
153
+ uniffi_out_err: UniffiRustCallStatus
154
+ ): Uint8Array;
155
+ ubrn_ffi_bark_ffi_rust_future_free_rust_buffer(handle: bigint): void;
156
+ ubrn_ffi_bark_ffi_rust_future_poll_void(
157
+ handle: bigint,
158
+ callback: UniffiRustFutureContinuationCallback,
159
+ callbackData: bigint
160
+ ): void;
161
+ ubrn_ffi_bark_ffi_rust_future_cancel_void(handle: bigint): void;
162
+ ubrn_ffi_bark_ffi_rust_future_complete_void(
163
+ handle: bigint,
164
+ uniffi_out_err: UniffiRustCallStatus
165
+ ): void;
166
+ ubrn_ffi_bark_ffi_rust_future_free_void(handle: bigint): void;
167
+ ubrn_uniffi_bark_ffi_fn_clone_barklogger(
168
+ ptr: bigint,
169
+ uniffi_out_err: UniffiRustCallStatus
44
170
  ): bigint;
171
+ ubrn_uniffi_bark_ffi_fn_free_barklogger(
172
+ ptr: bigint,
173
+ uniffi_out_err: UniffiRustCallStatus
174
+ ): void;
45
175
  ubrn_uniffi_bark_ffi_fn_clone_customonchainwalletcallbacks(
46
- handle: bigint,
176
+ ptr: bigint,
47
177
  uniffi_out_err: UniffiRustCallStatus
48
178
  ): bigint;
49
179
  ubrn_uniffi_bark_ffi_fn_free_customonchainwalletcallbacks(
50
- handle: bigint,
180
+ ptr: bigint,
181
+ uniffi_out_err: UniffiRustCallStatus
182
+ ): void;
183
+ ubrn_uniffi_bark_ffi_fn_clone_notificationholder(
184
+ ptr: bigint,
185
+ uniffi_out_err: UniffiRustCallStatus
186
+ ): bigint;
187
+ ubrn_uniffi_bark_ffi_fn_free_notificationholder(
188
+ ptr: bigint,
189
+ uniffi_out_err: UniffiRustCallStatus
190
+ ): void;
191
+ ubrn_uniffi_bark_ffi_fn_clone_onchainwallet(
192
+ ptr: bigint,
193
+ uniffi_out_err: UniffiRustCallStatus
194
+ ): bigint;
195
+ ubrn_uniffi_bark_ffi_fn_free_onchainwallet(
196
+ ptr: bigint,
197
+ uniffi_out_err: UniffiRustCallStatus
198
+ ): void;
199
+ ubrn_uniffi_bark_ffi_fn_clone_wallet(
200
+ ptr: bigint,
201
+ uniffi_out_err: UniffiRustCallStatus
202
+ ): bigint;
203
+ ubrn_uniffi_bark_ffi_fn_free_wallet(
204
+ ptr: bigint,
51
205
  uniffi_out_err: UniffiRustCallStatus
52
206
  ): void;
207
+ ubrn_uniffi_bark_ffi_fn_init_callback_vtable_barklogger(
208
+ vtable: UniffiVTableCallbackInterfaceBarkBarkLogger
209
+ ): void;
53
210
  ubrn_uniffi_bark_ffi_fn_init_callback_vtable_customonchainwalletcallbacks(
54
- vtable: UniffiVTableCallbackInterfaceCustomOnchainWalletCallbacks
211
+ vtable: UniffiVTableCallbackInterfaceBarkCustomOnchainWalletCallbacks
212
+ ): void;
213
+ ubrn_uniffi_bark_ffi_fn_func_default_vtxo_key_gap_limit(
214
+ uniffi_out_err: UniffiRustCallStatus
215
+ ): number;
216
+ ubrn_uniffi_bark_ffi_fn_func_extract_tx_from_psbt(
217
+ psbtBase64: Uint8Array,
218
+ uniffi_out_err: UniffiRustCallStatus
219
+ ): Uint8Array;
220
+ ubrn_uniffi_bark_ffi_fn_func_generate_mnemonic(
221
+ uniffi_out_err: UniffiRustCallStatus
222
+ ): Uint8Array;
223
+ ubrn_uniffi_bark_ffi_fn_func_init_wallet(
224
+ network: Uint8Array,
225
+ mnemonicOrSeed: Uint8Array,
226
+ config: Uint8Array,
227
+ datadir: Uint8Array,
228
+ allowUnreachableServer: number
229
+ ): bigint;
230
+ ubrn_uniffi_bark_ffi_fn_func_max_vtxo_key_gap_limit(
231
+ uniffi_out_err: UniffiRustCallStatus
232
+ ): number;
233
+ ubrn_uniffi_bark_ffi_fn_func_set_logger(
234
+ logger: bigint,
235
+ maxLevel: Uint8Array,
236
+ uniffi_out_err: UniffiRustCallStatus
237
+ ): void;
238
+ ubrn_uniffi_bark_ffi_fn_func_validate_ark_address(
239
+ address: Uint8Array,
240
+ uniffi_out_err: UniffiRustCallStatus
241
+ ): number;
242
+ ubrn_uniffi_bark_ffi_fn_func_validate_mnemonic(
243
+ mnemonic: Uint8Array,
244
+ uniffi_out_err: UniffiRustCallStatus
245
+ ): number;
246
+ ubrn_uniffi_bark_ffi_fn_method_barklogger_log(
247
+ uniffiSelf: bigint,
248
+ level: Uint8Array,
249
+ target: Uint8Array,
250
+ message: Uint8Array,
251
+ uniffi_out_err: UniffiRustCallStatus
55
252
  ): void;
56
253
  ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_balance(
57
- ptr: bigint,
254
+ uniffiSelf: bigint,
58
255
  uniffi_out_err: UniffiRustCallStatus
59
256
  ): bigint;
60
257
  ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_prepare_tx(
61
- ptr: bigint,
258
+ uniffiSelf: bigint,
62
259
  destinations: Uint8Array,
63
260
  feeRateSatPerVb: bigint,
64
261
  uniffi_out_err: UniffiRustCallStatus
65
262
  ): Uint8Array;
66
263
  ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_prepare_drain_tx(
67
- ptr: bigint,
264
+ uniffiSelf: bigint,
68
265
  address: Uint8Array,
69
266
  feeRateSatPerVb: bigint,
70
267
  uniffi_out_err: UniffiRustCallStatus
71
268
  ): Uint8Array;
72
269
  ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_finish_psbt(
73
- ptr: bigint,
270
+ uniffiSelf: bigint,
74
271
  psbtBase64: Uint8Array,
75
272
  uniffi_out_err: UniffiRustCallStatus
76
273
  ): Uint8Array;
77
274
  ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_is_mine(
78
- ptr: bigint,
275
+ uniffiSelf: bigint,
79
276
  scriptPubkeyHex: Uint8Array,
80
277
  uniffi_out_err: UniffiRustCallStatus
81
278
  ): number;
82
279
  ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_register_tx(
83
- ptr: bigint,
280
+ uniffiSelf: bigint,
84
281
  txHex: Uint8Array,
85
282
  uniffi_out_err: UniffiRustCallStatus
86
283
  ): void;
87
284
  ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_evict_tx(
88
- ptr: bigint,
285
+ uniffiSelf: bigint,
89
286
  txid: Uint8Array,
90
287
  uniffi_out_err: UniffiRustCallStatus
91
288
  ): void;
92
289
  ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_make_signed_p2a_cpfp(
93
- ptr: bigint,
290
+ uniffiSelf: bigint,
94
291
  params: Uint8Array,
95
292
  uniffi_out_err: UniffiRustCallStatus
96
293
  ): Uint8Array;
97
294
  ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_store_signed_p2a_cpfp(
98
- ptr: bigint,
295
+ uniffiSelf: bigint,
99
296
  txHex: Uint8Array,
100
297
  uniffi_out_err: UniffiRustCallStatus
101
298
  ): void;
102
299
  ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_sync(
103
- ptr: bigint,
300
+ uniffiSelf: bigint,
104
301
  uniffi_out_err: UniffiRustCallStatus
105
302
  ): void;
106
- ubrn_uniffi_bark_ffi_fn_clone_barklogger(
107
- handle: bigint,
108
- uniffi_out_err: UniffiRustCallStatus
109
- ): bigint;
110
- ubrn_uniffi_bark_ffi_fn_free_barklogger(
111
- handle: bigint,
112
- uniffi_out_err: UniffiRustCallStatus
113
- ): void;
114
- ubrn_uniffi_bark_ffi_fn_init_callback_vtable_barklogger(
115
- vtable: UniffiVTableCallbackInterfaceBarkLogger
116
- ): void;
117
- ubrn_uniffi_bark_ffi_fn_method_barklogger_log(
118
- ptr: bigint,
119
- level: Uint8Array,
120
- target: Uint8Array,
121
- message: Uint8Array,
303
+ ubrn_uniffi_bark_ffi_fn_method_notificationholder_cancel_next_notification_wait(
304
+ uniffiSelf: bigint,
122
305
  uniffi_out_err: UniffiRustCallStatus
123
306
  ): void;
124
- ubrn_uniffi_bark_ffi_fn_clone_onchainwallet(
125
- handle: bigint,
126
- uniffi_out_err: UniffiRustCallStatus
307
+ ubrn_uniffi_bark_ffi_fn_method_notificationholder_next_notification(
308
+ uniffiSelf: bigint
127
309
  ): bigint;
128
- ubrn_uniffi_bark_ffi_fn_free_onchainwallet(
129
- handle: bigint,
130
- uniffi_out_err: UniffiRustCallStatus
131
- ): void;
132
310
  ubrn_uniffi_bark_ffi_fn_constructor_onchainwallet_custom(
133
311
  callbacks: bigint,
134
312
  uniffi_out_err: UniffiRustCallStatus
@@ -139,37 +317,39 @@ interface NativeModuleInterface {
139
317
  config: Uint8Array,
140
318
  datadir: Uint8Array
141
319
  ): bigint;
142
- ubrn_uniffi_bark_ffi_fn_method_onchainwallet_balance(ptr: bigint): bigint;
320
+ ubrn_uniffi_bark_ffi_fn_method_onchainwallet_balance(
321
+ uniffiSelf: bigint
322
+ ): bigint;
143
323
  ubrn_uniffi_bark_ffi_fn_method_onchainwallet_evict_tx(
144
- ptr: bigint,
324
+ uniffiSelf: bigint,
145
325
  txid: Uint8Array
146
326
  ): bigint;
147
- ubrn_uniffi_bark_ffi_fn_method_onchainwallet_fee_rates(ptr: bigint): bigint;
327
+ ubrn_uniffi_bark_ffi_fn_method_onchainwallet_fee_rates(
328
+ uniffiSelf: bigint
329
+ ): bigint;
148
330
  ubrn_uniffi_bark_ffi_fn_method_onchainwallet_initial_scan(
149
- ptr: bigint,
331
+ uniffiSelf: bigint,
150
332
  birthdayHeight: Uint8Array
151
333
  ): bigint;
152
- ubrn_uniffi_bark_ffi_fn_method_onchainwallet_new_address(ptr: bigint): bigint;
334
+ ubrn_uniffi_bark_ffi_fn_method_onchainwallet_new_address(
335
+ uniffiSelf: bigint
336
+ ): bigint;
153
337
  ubrn_uniffi_bark_ffi_fn_method_onchainwallet_send(
154
- ptr: bigint,
338
+ uniffiSelf: bigint,
155
339
  address: Uint8Array,
156
340
  amountSats: bigint,
157
341
  feeRateSatPerVb: bigint
158
342
  ): bigint;
159
- ubrn_uniffi_bark_ffi_fn_method_onchainwallet_sync(ptr: bigint): bigint;
160
- ubrn_uniffi_bark_ffi_fn_method_onchainwallet_tip_height(ptr: bigint): bigint;
343
+ ubrn_uniffi_bark_ffi_fn_method_onchainwallet_sync(uniffiSelf: bigint): bigint;
344
+ ubrn_uniffi_bark_ffi_fn_method_onchainwallet_tip_height(
345
+ uniffiSelf: bigint
346
+ ): bigint;
161
347
  ubrn_uniffi_bark_ffi_fn_method_onchainwallet_transactions(
162
- ptr: bigint
348
+ uniffiSelf: bigint
163
349
  ): bigint;
164
- ubrn_uniffi_bark_ffi_fn_method_onchainwallet_utxos(ptr: bigint): bigint;
165
- ubrn_uniffi_bark_ffi_fn_clone_wallet(
166
- handle: bigint,
167
- uniffi_out_err: UniffiRustCallStatus
350
+ ubrn_uniffi_bark_ffi_fn_method_onchainwallet_utxos(
351
+ uniffiSelf: bigint
168
352
  ): bigint;
169
- ubrn_uniffi_bark_ffi_fn_free_wallet(
170
- handle: bigint,
171
- uniffi_out_err: UniffiRustCallStatus
172
- ): void;
173
353
  ubrn_uniffi_bark_ffi_fn_constructor_wallet_open(
174
354
  network: Uint8Array,
175
355
  mnemonicOrSeed: Uint8Array,
@@ -177,531 +357,395 @@ interface NativeModuleInterface {
177
357
  args: Uint8Array
178
358
  ): bigint;
179
359
  ubrn_uniffi_bark_ffi_fn_method_wallet_all_exits_claimable_at_height(
180
- ptr: bigint
360
+ uniffiSelf: bigint
181
361
  ): bigint;
182
- ubrn_uniffi_bark_ffi_fn_method_wallet_all_vtxos(ptr: bigint): bigint;
362
+ ubrn_uniffi_bark_ffi_fn_method_wallet_all_vtxos(uniffiSelf: bigint): bigint;
183
363
  ubrn_uniffi_bark_ffi_fn_method_wallet_allow_lightning_send_to_exit(
184
- ptr: bigint,
364
+ uniffiSelf: bigint,
185
365
  paymentHash: Uint8Array
186
366
  ): bigint;
187
- ubrn_uniffi_bark_ffi_fn_method_wallet_ark_info(ptr: bigint): bigint;
367
+ ubrn_uniffi_bark_ffi_fn_method_wallet_ark_info(uniffiSelf: bigint): bigint;
188
368
  ubrn_uniffi_bark_ffi_fn_method_wallet_attempt_lightning_receive_exit(
189
- ptr: bigint,
369
+ uniffiSelf: bigint,
190
370
  paymentHash: Uint8Array
191
371
  ): bigint;
192
- ubrn_uniffi_bark_ffi_fn_method_wallet_balance(ptr: bigint): bigint;
193
- ubrn_uniffi_bark_ffi_fn_method_wallet_board_all(ptr: bigint): bigint;
372
+ ubrn_uniffi_bark_ffi_fn_method_wallet_balance(uniffiSelf: bigint): bigint;
373
+ ubrn_uniffi_bark_ffi_fn_method_wallet_board_all(uniffiSelf: bigint): bigint;
194
374
  ubrn_uniffi_bark_ffi_fn_method_wallet_board_amount(
195
- ptr: bigint,
375
+ uniffiSelf: bigint,
196
376
  amountSats: bigint
197
377
  ): bigint;
198
378
  ubrn_uniffi_bark_ffi_fn_method_wallet_board_funding_address(
199
- ptr: bigint
379
+ uniffiSelf: bigint
200
380
  ): bigint;
201
381
  ubrn_uniffi_bark_ffi_fn_method_wallet_board_psbt(
202
- ptr: bigint,
382
+ uniffiSelf: bigint,
203
383
  psbtBase64: Uint8Array,
204
384
  keypairIndex: number,
205
385
  expiryHeight: number
206
386
  ): bigint;
207
387
  ubrn_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice(
208
- ptr: bigint,
388
+ uniffiSelf: bigint,
209
389
  amountSats: bigint,
210
390
  description: Uint8Array,
211
391
  token: Uint8Array
212
392
  ): bigint;
213
393
  ubrn_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice_for_address(
214
- ptr: bigint,
394
+ uniffiSelf: bigint,
215
395
  amountSats: bigint,
216
396
  claimDestination: Uint8Array,
217
397
  description: Uint8Array,
218
398
  token: Uint8Array
219
399
  ): bigint;
220
400
  ubrn_uniffi_bark_ffi_fn_method_wallet_broadcast_tx(
221
- ptr: bigint,
401
+ uniffiSelf: bigint,
222
402
  txHex: Uint8Array
223
403
  ): bigint;
224
404
  ubrn_uniffi_bark_ffi_fn_method_wallet_cancel_all_pending_rounds(
225
- ptr: bigint
405
+ uniffiSelf: bigint
226
406
  ): bigint;
227
407
  ubrn_uniffi_bark_ffi_fn_method_wallet_cancel_exit(
228
- ptr: bigint,
408
+ uniffiSelf: bigint,
229
409
  vtxoId: Uint8Array
230
410
  ): bigint;
231
411
  ubrn_uniffi_bark_ffi_fn_method_wallet_cancel_lightning_receive(
232
- ptr: bigint,
412
+ uniffiSelf: bigint,
233
413
  paymentHash: Uint8Array
234
414
  ): bigint;
235
415
  ubrn_uniffi_bark_ffi_fn_method_wallet_cancel_pending_round(
236
- ptr: bigint,
416
+ uniffiSelf: bigint,
237
417
  roundId: number
238
418
  ): bigint;
239
419
  ubrn_uniffi_bark_ffi_fn_method_wallet_check_lightning_payment(
240
- ptr: bigint,
420
+ uniffiSelf: bigint,
241
421
  paymentHash: Uint8Array,
242
422
  wait: number
243
423
  ): bigint;
244
424
  ubrn_uniffi_bark_ffi_fn_method_wallet_claimable_lightning_receive_balance_sats(
245
- ptr: bigint
425
+ uniffiSelf: bigint
246
426
  ): bigint;
247
- ubrn_uniffi_bark_ffi_fn_method_wallet_config(ptr: bigint): bigint;
427
+ ubrn_uniffi_bark_ffi_fn_method_wallet_config(uniffiSelf: bigint): bigint;
248
428
  ubrn_uniffi_bark_ffi_fn_method_wallet_drain_exits(
249
- ptr: bigint,
429
+ uniffiSelf: bigint,
250
430
  vtxoIds: Uint8Array,
431
+ drainAll: number,
251
432
  address: Uint8Array,
252
433
  feeRateSatPerVb: Uint8Array
253
434
  ): bigint;
254
435
  ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_arkoor_payment_fee(
255
- ptr: bigint,
436
+ uniffiSelf: bigint,
256
437
  amountSats: bigint
257
438
  ): bigint;
258
439
  ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_board_fee(
259
- ptr: bigint,
440
+ uniffiSelf: bigint,
260
441
  amountSats: bigint
261
442
  ): bigint;
262
443
  ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_emergency_exit_fee(
263
- ptr: bigint,
444
+ uniffiSelf: bigint,
264
445
  vtxoIds: Uint8Array,
265
446
  feeRateSatPerVb: Uint8Array,
266
447
  destination: Uint8Array
267
448
  ): bigint;
268
449
  ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_lightning_receive_fee(
269
- ptr: bigint,
450
+ uniffiSelf: bigint,
270
451
  amountSats: bigint
271
452
  ): bigint;
272
453
  ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_lightning_send_fee(
273
- ptr: bigint,
454
+ uniffiSelf: bigint,
274
455
  amountSats: bigint
275
456
  ): bigint;
276
457
  ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_offboard_all_fee(
277
- ptr: bigint,
458
+ uniffiSelf: bigint,
278
459
  address: Uint8Array
279
460
  ): bigint;
280
461
  ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_offboard_fee(
281
- ptr: bigint,
462
+ uniffiSelf: bigint,
282
463
  address: Uint8Array,
283
464
  vtxoIds: Uint8Array
284
465
  ): bigint;
285
466
  ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_refresh_fee(
286
- ptr: bigint,
467
+ uniffiSelf: bigint,
287
468
  vtxoIds: Uint8Array
288
469
  ): bigint;
289
470
  ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_send_onchain_fee(
290
- ptr: bigint,
471
+ uniffiSelf: bigint,
291
472
  address: Uint8Array,
292
473
  amountSats: bigint
293
474
  ): bigint;
294
475
  ubrn_uniffi_bark_ffi_fn_method_wallet_fingerprint(
295
- ptr: bigint,
476
+ uniffiSelf: bigint,
296
477
  uniffi_out_err: UniffiRustCallStatus
297
478
  ): Uint8Array;
298
479
  ubrn_uniffi_bark_ffi_fn_method_wallet_get_exit_status(
299
- ptr: bigint,
480
+ uniffiSelf: bigint,
300
481
  vtxoId: Uint8Array,
301
482
  includeHistory: number,
302
483
  includeTransactions: number
303
484
  ): bigint;
304
- ubrn_uniffi_bark_ffi_fn_method_wallet_get_exit_vtxos(ptr: bigint): bigint;
485
+ ubrn_uniffi_bark_ffi_fn_method_wallet_get_exit_vtxos(
486
+ uniffiSelf: bigint
487
+ ): bigint;
305
488
  ubrn_uniffi_bark_ffi_fn_method_wallet_get_expiring_vtxos(
306
- ptr: bigint,
489
+ uniffiSelf: bigint,
307
490
  thresholdBlocks: number
308
491
  ): bigint;
309
492
  ubrn_uniffi_bark_ffi_fn_method_wallet_get_first_expiring_vtxo_blockheight(
310
- ptr: bigint
493
+ uniffiSelf: bigint
311
494
  ): bigint;
312
495
  ubrn_uniffi_bark_ffi_fn_method_wallet_get_next_required_refresh_blockheight(
313
- ptr: bigint
496
+ uniffiSelf: bigint
314
497
  ): bigint;
315
498
  ubrn_uniffi_bark_ffi_fn_method_wallet_get_vtxo_by_id(
316
- ptr: bigint,
499
+ uniffiSelf: bigint,
317
500
  vtxoId: Uint8Array
318
501
  ): bigint;
319
502
  ubrn_uniffi_bark_ffi_fn_method_wallet_get_vtxos_to_refresh(
320
- ptr: bigint
503
+ uniffiSelf: bigint
321
504
  ): bigint;
322
- ubrn_uniffi_bark_ffi_fn_method_wallet_has_pending_exits(ptr: bigint): bigint;
323
- ubrn_uniffi_bark_ffi_fn_method_wallet_history(ptr: bigint): bigint;
505
+ ubrn_uniffi_bark_ffi_fn_method_wallet_has_pending_exits(
506
+ uniffiSelf: bigint
507
+ ): bigint;
508
+ ubrn_uniffi_bark_ffi_fn_method_wallet_history(uniffiSelf: bigint): bigint;
324
509
  ubrn_uniffi_bark_ffi_fn_method_wallet_history_by_payment_method(
325
- ptr: bigint,
510
+ uniffiSelf: bigint,
326
511
  paymentMethodType: Uint8Array,
327
512
  paymentMethodValue: Uint8Array
328
513
  ): bigint;
329
514
  ubrn_uniffi_bark_ffi_fn_method_wallet_import_vtxo(
330
- ptr: bigint,
331
- vtxoBase64: Uint8Array
515
+ uniffiSelf: bigint,
516
+ vtxoBase64: Uint8Array,
517
+ args: Uint8Array
518
+ ): bigint;
519
+ ubrn_uniffi_bark_ffi_fn_method_wallet_import_vtxos(
520
+ uniffiSelf: bigint,
521
+ encodedVtxos: Uint8Array,
522
+ args: Uint8Array
332
523
  ): bigint;
333
524
  ubrn_uniffi_bark_ffi_fn_method_wallet_is_invoice_paid(
334
- ptr: bigint,
525
+ uniffiSelf: bigint,
335
526
  paymentHash: Uint8Array
336
527
  ): bigint;
337
528
  ubrn_uniffi_bark_ffi_fn_method_wallet_lightning_receive_state(
338
- ptr: bigint,
529
+ uniffiSelf: bigint,
339
530
  paymentHash: Uint8Array
340
531
  ): bigint;
341
532
  ubrn_uniffi_bark_ffi_fn_method_wallet_lightning_send_state(
342
- ptr: bigint,
533
+ uniffiSelf: bigint,
343
534
  paymentHash: Uint8Array
344
535
  ): bigint;
345
536
  ubrn_uniffi_bark_ffi_fn_method_wallet_list_claimable_exits(
346
- ptr: bigint
537
+ uniffiSelf: bigint
347
538
  ): bigint;
348
539
  ubrn_uniffi_bark_ffi_fn_method_wallet_lock_vtxos(
349
- ptr: bigint,
540
+ uniffiSelf: bigint,
350
541
  vtxoIds: Uint8Array,
351
542
  holder: Uint8Array
352
543
  ): bigint;
353
544
  ubrn_uniffi_bark_ffi_fn_method_wallet_mailbox_authorization(
354
- ptr: bigint,
545
+ uniffiSelf: bigint,
546
+ expirySecs: number,
355
547
  uniffi_out_err: UniffiRustCallStatus
356
548
  ): Uint8Array;
357
549
  ubrn_uniffi_bark_ffi_fn_method_wallet_mailbox_identifier(
358
- ptr: bigint,
550
+ uniffiSelf: bigint,
359
551
  uniffi_out_err: UniffiRustCallStatus
360
552
  ): Uint8Array;
361
- ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance(ptr: bigint): bigint;
553
+ ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance(uniffiSelf: bigint): bigint;
362
554
  ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance_delegated(
363
- ptr: bigint
555
+ uniffiSelf: bigint
364
556
  ): bigint;
365
557
  ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance_refresh(
366
- ptr: bigint
558
+ uniffiSelf: bigint
367
559
  ): bigint;
368
- ubrn_uniffi_bark_ffi_fn_method_wallet_network(ptr: bigint): bigint;
369
- ubrn_uniffi_bark_ffi_fn_method_wallet_new_address(ptr: bigint): bigint;
560
+ ubrn_uniffi_bark_ffi_fn_method_wallet_network(uniffiSelf: bigint): bigint;
561
+ ubrn_uniffi_bark_ffi_fn_method_wallet_new_address(uniffiSelf: bigint): bigint;
370
562
  ubrn_uniffi_bark_ffi_fn_method_wallet_new_address_with_index(
371
- ptr: bigint
563
+ uniffiSelf: bigint
372
564
  ): bigint;
373
565
  ubrn_uniffi_bark_ffi_fn_method_wallet_next_round_start_time(
374
- ptr: bigint
566
+ uniffiSelf: bigint
375
567
  ): bigint;
376
568
  ubrn_uniffi_bark_ffi_fn_method_wallet_notifications(
377
- ptr: bigint,
569
+ uniffiSelf: bigint,
378
570
  uniffi_out_err: UniffiRustCallStatus
379
571
  ): bigint;
380
572
  ubrn_uniffi_bark_ffi_fn_method_wallet_offboard_all(
381
- ptr: bigint,
573
+ uniffiSelf: bigint,
382
574
  bitcoinAddress: Uint8Array
383
575
  ): bigint;
384
576
  ubrn_uniffi_bark_ffi_fn_method_wallet_offboard_vtxos(
385
- ptr: bigint,
577
+ uniffiSelf: bigint,
386
578
  vtxoIds: Uint8Array,
387
579
  bitcoinAddress: Uint8Array
388
580
  ): bigint;
389
581
  ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_address(
390
- ptr: bigint,
582
+ uniffiSelf: bigint,
391
583
  lightningAddress: Uint8Array,
392
584
  amountSats: bigint,
393
585
  comment: Uint8Array,
394
586
  wait: number
395
587
  ): bigint;
396
588
  ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_invoice(
397
- ptr: bigint,
589
+ uniffiSelf: bigint,
398
590
  invoice: Uint8Array,
399
591
  amountSats: Uint8Array,
400
592
  wait: number
401
593
  ): bigint;
402
594
  ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_offer(
403
- ptr: bigint,
595
+ uniffiSelf: bigint,
404
596
  offer: Uint8Array,
405
597
  amountSats: Uint8Array,
406
598
  wait: number
407
599
  ): bigint;
408
600
  ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lnurl(
409
- ptr: bigint,
601
+ uniffiSelf: bigint,
410
602
  lnurl: Uint8Array,
411
603
  amountSats: bigint,
412
604
  comment: Uint8Array,
413
605
  wait: number
414
606
  ): bigint;
415
607
  ubrn_uniffi_bark_ffi_fn_method_wallet_peek_address(
416
- ptr: bigint,
608
+ uniffiSelf: bigint,
417
609
  index: number
418
610
  ): bigint;
419
611
  ubrn_uniffi_bark_ffi_fn_method_wallet_pending_board_vtxos(
420
- ptr: bigint
612
+ uniffiSelf: bigint
613
+ ): bigint;
614
+ ubrn_uniffi_bark_ffi_fn_method_wallet_pending_boards(
615
+ uniffiSelf: bigint
421
616
  ): bigint;
422
- ubrn_uniffi_bark_ffi_fn_method_wallet_pending_boards(ptr: bigint): bigint;
423
617
  ubrn_uniffi_bark_ffi_fn_method_wallet_pending_exits_total_sats(
424
- ptr: bigint
618
+ uniffiSelf: bigint
425
619
  ): bigint;
426
620
  ubrn_uniffi_bark_ffi_fn_method_wallet_pending_lightning_receives(
427
- ptr: bigint
621
+ uniffiSelf: bigint
428
622
  ): bigint;
429
623
  ubrn_uniffi_bark_ffi_fn_method_wallet_pending_lightning_send_vtxos(
430
- ptr: bigint
624
+ uniffiSelf: bigint
431
625
  ): bigint;
432
626
  ubrn_uniffi_bark_ffi_fn_method_wallet_pending_lightning_sends(
433
- ptr: bigint
627
+ uniffiSelf: bigint
434
628
  ): bigint;
435
629
  ubrn_uniffi_bark_ffi_fn_method_wallet_pending_round_input_vtxos(
436
- ptr: bigint
630
+ uniffiSelf: bigint
437
631
  ): bigint;
438
632
  ubrn_uniffi_bark_ffi_fn_method_wallet_pending_round_states(
439
- ptr: bigint
633
+ uniffiSelf: bigint
440
634
  ): bigint;
441
635
  ubrn_uniffi_bark_ffi_fn_method_wallet_progress_exits(
442
- ptr: bigint,
636
+ uniffiSelf: bigint,
443
637
  feeRateSatPerVb: Uint8Array
444
638
  ): bigint;
445
639
  ubrn_uniffi_bark_ffi_fn_method_wallet_progress_pending_rounds(
446
- ptr: bigint
640
+ uniffiSelf: bigint
447
641
  ): bigint;
448
- ubrn_uniffi_bark_ffi_fn_method_wallet_properties(ptr: bigint): bigint;
642
+ ubrn_uniffi_bark_ffi_fn_method_wallet_properties(uniffiSelf: bigint): bigint;
449
643
  ubrn_uniffi_bark_ffi_fn_method_wallet_recover_vtxos(
450
- ptr: bigint,
451
- vtxoIds: Uint8Array
644
+ uniffiSelf: bigint,
645
+ vtxoIds: Uint8Array,
646
+ gapLimit: Uint8Array
452
647
  ): bigint;
453
648
  ubrn_uniffi_bark_ffi_fn_method_wallet_recovery_report(
454
- ptr: bigint,
649
+ uniffiSelf: bigint,
455
650
  uniffi_out_err: UniffiRustCallStatus
456
651
  ): Uint8Array;
457
652
  ubrn_uniffi_bark_ffi_fn_method_wallet_recovery_status(
458
- ptr: bigint,
653
+ uniffiSelf: bigint,
459
654
  uniffi_out_err: UniffiRustCallStatus
460
655
  ): Uint8Array;
461
- ubrn_uniffi_bark_ffi_fn_method_wallet_refresh_server(ptr: bigint): bigint;
656
+ ubrn_uniffi_bark_ffi_fn_method_wallet_refresh_server(
657
+ uniffiSelf: bigint
658
+ ): bigint;
462
659
  ubrn_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos(
463
- ptr: bigint,
660
+ uniffiSelf: bigint,
464
661
  vtxoIds: Uint8Array
465
662
  ): bigint;
466
663
  ubrn_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos_delegated(
467
- ptr: bigint,
664
+ uniffiSelf: bigint,
468
665
  vtxoIds: Uint8Array
469
666
  ): bigint;
470
667
  ubrn_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos_scheduled(
471
- ptr: bigint,
668
+ uniffiSelf: bigint,
472
669
  vtxoIds: Uint8Array,
473
670
  scheduledHeight: number
474
671
  ): bigint;
475
- ubrn_uniffi_bark_ffi_fn_method_wallet_run_daemon(ptr: bigint): bigint;
672
+ ubrn_uniffi_bark_ffi_fn_method_wallet_run_daemon(uniffiSelf: bigint): bigint;
476
673
  ubrn_uniffi_bark_ffi_fn_method_wallet_send_arkoor_payment(
477
- ptr: bigint,
674
+ uniffiSelf: bigint,
478
675
  arkAddress: Uint8Array,
479
676
  amountSats: bigint
480
677
  ): bigint;
481
678
  ubrn_uniffi_bark_ffi_fn_method_wallet_send_onchain(
482
- ptr: bigint,
679
+ uniffiSelf: bigint,
483
680
  address: Uint8Array,
484
681
  amountSats: bigint
485
682
  ): bigint;
486
683
  ubrn_uniffi_bark_ffi_fn_method_wallet_sign_exit_claim_inputs(
487
- ptr: bigint,
684
+ uniffiSelf: bigint,
488
685
  psbtBase64: Uint8Array
489
686
  ): bigint;
490
- ubrn_uniffi_bark_ffi_fn_method_wallet_spendable_vtxos(ptr: bigint): bigint;
687
+ ubrn_uniffi_bark_ffi_fn_method_wallet_spendable_vtxos(
688
+ uniffiSelf: bigint
689
+ ): bigint;
491
690
  ubrn_uniffi_bark_ffi_fn_method_wallet_start_exit_for_entire_wallet(
492
- ptr: bigint
691
+ uniffiSelf: bigint
493
692
  ): bigint;
494
693
  ubrn_uniffi_bark_ffi_fn_method_wallet_start_exit_for_vtxos(
495
- ptr: bigint,
694
+ uniffiSelf: bigint,
496
695
  vtxoIds: Uint8Array
497
696
  ): bigint;
498
697
  ubrn_uniffi_bark_ffi_fn_method_wallet_start_exit_for_vtxos_including_non_standard(
499
- ptr: bigint,
698
+ uniffiSelf: bigint,
500
699
  vtxoIds: Uint8Array
501
700
  ): bigint;
502
- ubrn_uniffi_bark_ffi_fn_method_wallet_stop_daemon(ptr: bigint): bigint;
503
- ubrn_uniffi_bark_ffi_fn_method_wallet_stop_daemon_wait(ptr: bigint): bigint;
701
+ ubrn_uniffi_bark_ffi_fn_method_wallet_stop_daemon(uniffiSelf: bigint): bigint;
702
+ ubrn_uniffi_bark_ffi_fn_method_wallet_stop_daemon_wait(
703
+ uniffiSelf: bigint
704
+ ): bigint;
504
705
  ubrn_uniffi_bark_ffi_fn_method_wallet_stuck_failed_lightning_sends(
505
- ptr: bigint
706
+ uniffiSelf: bigint
506
707
  ): bigint;
507
- ubrn_uniffi_bark_ffi_fn_method_wallet_sync(ptr: bigint): bigint;
508
- ubrn_uniffi_bark_ffi_fn_method_wallet_sync_exits(ptr: bigint): bigint;
708
+ ubrn_uniffi_bark_ffi_fn_method_wallet_sync(uniffiSelf: bigint): bigint;
709
+ ubrn_uniffi_bark_ffi_fn_method_wallet_sync_exits(uniffiSelf: bigint): bigint;
509
710
  ubrn_uniffi_bark_ffi_fn_method_wallet_sync_force_exited_vtxos(
510
- ptr: bigint
711
+ uniffiSelf: bigint
511
712
  ): bigint;
512
713
  ubrn_uniffi_bark_ffi_fn_method_wallet_sync_pending_boards(
513
- ptr: bigint
714
+ uniffiSelf: bigint
514
715
  ): bigint;
515
716
  ubrn_uniffi_bark_ffi_fn_method_wallet_try_claim_all_lightning_receives(
516
- ptr: bigint,
717
+ uniffiSelf: bigint,
517
718
  wait: number
518
719
  ): bigint;
519
720
  ubrn_uniffi_bark_ffi_fn_method_wallet_try_claim_lightning_receive(
520
- ptr: bigint,
721
+ uniffiSelf: bigint,
521
722
  paymentHash: Uint8Array,
522
723
  wait: number
523
724
  ): bigint;
524
725
  ubrn_uniffi_bark_ffi_fn_method_wallet_unlock_vtxos(
525
- ptr: bigint,
726
+ uniffiSelf: bigint,
526
727
  vtxoIds: Uint8Array,
527
728
  expectedHolder: Uint8Array
528
729
  ): bigint;
529
730
  ubrn_uniffi_bark_ffi_fn_method_wallet_validate_arkoor_address(
530
- ptr: bigint,
731
+ uniffiSelf: bigint,
531
732
  address: Uint8Array
532
733
  ): bigint;
533
734
  ubrn_uniffi_bark_ffi_fn_method_wallet_vtxo_encoded(
534
- ptr: bigint,
735
+ uniffiSelf: bigint,
535
736
  vtxoId: Uint8Array
536
737
  ): bigint;
537
- ubrn_uniffi_bark_ffi_fn_method_wallet_vtxos(ptr: bigint): bigint;
538
- ubrn_uniffi_bark_ffi_fn_func_extract_tx_from_psbt(
539
- psbtBase64: Uint8Array,
540
- uniffi_out_err: UniffiRustCallStatus
541
- ): Uint8Array;
542
- ubrn_uniffi_bark_ffi_fn_func_generate_mnemonic(
543
- uniffi_out_err: UniffiRustCallStatus
544
- ): Uint8Array;
545
- ubrn_uniffi_bark_ffi_fn_func_validate_ark_address(
546
- address: Uint8Array,
547
- uniffi_out_err: UniffiRustCallStatus
548
- ): number;
549
- ubrn_uniffi_bark_ffi_fn_func_validate_mnemonic(
550
- mnemonic: Uint8Array,
551
- uniffi_out_err: UniffiRustCallStatus
552
- ): number;
553
- ubrn_uniffi_bark_ffi_fn_func_set_logger(
554
- logger: bigint,
555
- maxLevel: Uint8Array,
556
- uniffi_out_err: UniffiRustCallStatus
557
- ): void;
558
- ubrn_uniffi_bark_ffi_fn_func_init_wallet(
559
- network: Uint8Array,
560
- mnemonicOrSeed: Uint8Array,
561
- config: Uint8Array,
562
- datadir: Uint8Array,
563
- allowUnreachableServer: number
564
- ): bigint;
565
- ubrn_ffi_bark_ffi_rust_future_poll_u8(
566
- handle: bigint,
567
- callback: UniffiRustFutureContinuationCallback,
568
- callbackData: bigint
569
- ): void;
570
- ubrn_ffi_bark_ffi_rust_future_cancel_u8(handle: bigint): void;
571
- ubrn_ffi_bark_ffi_rust_future_free_u8(handle: bigint): void;
572
- ubrn_ffi_bark_ffi_rust_future_complete_u8(
573
- handle: bigint,
574
- uniffi_out_err: UniffiRustCallStatus
575
- ): number;
576
- ubrn_ffi_bark_ffi_rust_future_poll_i8(
577
- handle: bigint,
578
- callback: UniffiRustFutureContinuationCallback,
579
- callbackData: bigint
580
- ): void;
581
- ubrn_ffi_bark_ffi_rust_future_cancel_i8(handle: bigint): void;
582
- ubrn_ffi_bark_ffi_rust_future_free_i8(handle: bigint): void;
583
- ubrn_ffi_bark_ffi_rust_future_complete_i8(
584
- handle: bigint,
585
- uniffi_out_err: UniffiRustCallStatus
586
- ): number;
587
- ubrn_ffi_bark_ffi_rust_future_poll_u16(
588
- handle: bigint,
589
- callback: UniffiRustFutureContinuationCallback,
590
- callbackData: bigint
591
- ): void;
592
- ubrn_ffi_bark_ffi_rust_future_cancel_u16(handle: bigint): void;
593
- ubrn_ffi_bark_ffi_rust_future_free_u16(handle: bigint): void;
594
- ubrn_ffi_bark_ffi_rust_future_complete_u16(
595
- handle: bigint,
596
- uniffi_out_err: UniffiRustCallStatus
597
- ): number;
598
- ubrn_ffi_bark_ffi_rust_future_poll_i16(
599
- handle: bigint,
600
- callback: UniffiRustFutureContinuationCallback,
601
- callbackData: bigint
602
- ): void;
603
- ubrn_ffi_bark_ffi_rust_future_cancel_i16(handle: bigint): void;
604
- ubrn_ffi_bark_ffi_rust_future_free_i16(handle: bigint): void;
605
- ubrn_ffi_bark_ffi_rust_future_complete_i16(
606
- handle: bigint,
607
- uniffi_out_err: UniffiRustCallStatus
608
- ): number;
609
- ubrn_ffi_bark_ffi_rust_future_poll_u32(
610
- handle: bigint,
611
- callback: UniffiRustFutureContinuationCallback,
612
- callbackData: bigint
613
- ): void;
614
- ubrn_ffi_bark_ffi_rust_future_cancel_u32(handle: bigint): void;
615
- ubrn_ffi_bark_ffi_rust_future_free_u32(handle: bigint): void;
616
- ubrn_ffi_bark_ffi_rust_future_complete_u32(
617
- handle: bigint,
618
- uniffi_out_err: UniffiRustCallStatus
619
- ): number;
620
- ubrn_ffi_bark_ffi_rust_future_poll_i32(
621
- handle: bigint,
622
- callback: UniffiRustFutureContinuationCallback,
623
- callbackData: bigint
624
- ): void;
625
- ubrn_ffi_bark_ffi_rust_future_cancel_i32(handle: bigint): void;
626
- ubrn_ffi_bark_ffi_rust_future_free_i32(handle: bigint): void;
627
- ubrn_ffi_bark_ffi_rust_future_complete_i32(
628
- handle: bigint,
629
- uniffi_out_err: UniffiRustCallStatus
630
- ): number;
631
- ubrn_ffi_bark_ffi_rust_future_poll_u64(
632
- handle: bigint,
633
- callback: UniffiRustFutureContinuationCallback,
634
- callbackData: bigint
635
- ): void;
636
- ubrn_ffi_bark_ffi_rust_future_cancel_u64(handle: bigint): void;
637
- ubrn_ffi_bark_ffi_rust_future_free_u64(handle: bigint): void;
638
- ubrn_ffi_bark_ffi_rust_future_complete_u64(
639
- handle: bigint,
640
- uniffi_out_err: UniffiRustCallStatus
641
- ): bigint;
642
- ubrn_ffi_bark_ffi_rust_future_poll_i64(
643
- handle: bigint,
644
- callback: UniffiRustFutureContinuationCallback,
645
- callbackData: bigint
646
- ): void;
647
- ubrn_ffi_bark_ffi_rust_future_cancel_i64(handle: bigint): void;
648
- ubrn_ffi_bark_ffi_rust_future_free_i64(handle: bigint): void;
649
- ubrn_ffi_bark_ffi_rust_future_complete_i64(
650
- handle: bigint,
651
- uniffi_out_err: UniffiRustCallStatus
652
- ): bigint;
653
- ubrn_ffi_bark_ffi_rust_future_poll_f32(
654
- handle: bigint,
655
- callback: UniffiRustFutureContinuationCallback,
656
- callbackData: bigint
657
- ): void;
658
- ubrn_ffi_bark_ffi_rust_future_cancel_f32(handle: bigint): void;
659
- ubrn_ffi_bark_ffi_rust_future_free_f32(handle: bigint): void;
660
- ubrn_ffi_bark_ffi_rust_future_complete_f32(
661
- handle: bigint,
662
- uniffi_out_err: UniffiRustCallStatus
663
- ): number;
664
- ubrn_ffi_bark_ffi_rust_future_poll_f64(
665
- handle: bigint,
666
- callback: UniffiRustFutureContinuationCallback,
667
- callbackData: bigint
668
- ): void;
669
- ubrn_ffi_bark_ffi_rust_future_cancel_f64(handle: bigint): void;
670
- ubrn_ffi_bark_ffi_rust_future_free_f64(handle: bigint): void;
671
- ubrn_ffi_bark_ffi_rust_future_complete_f64(
672
- handle: bigint,
673
- uniffi_out_err: UniffiRustCallStatus
674
- ): number;
675
- ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer(
676
- handle: bigint,
677
- callback: UniffiRustFutureContinuationCallback,
678
- callbackData: bigint
679
- ): void;
680
- ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer(handle: bigint): void;
681
- ubrn_ffi_bark_ffi_rust_future_free_rust_buffer(handle: bigint): void;
682
- ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer(
683
- handle: bigint,
684
- uniffi_out_err: UniffiRustCallStatus
685
- ): Uint8Array;
686
- ubrn_ffi_bark_ffi_rust_future_poll_void(
687
- handle: bigint,
688
- callback: UniffiRustFutureContinuationCallback,
689
- callbackData: bigint
690
- ): void;
691
- ubrn_ffi_bark_ffi_rust_future_cancel_void(handle: bigint): void;
692
- ubrn_ffi_bark_ffi_rust_future_free_void(handle: bigint): void;
693
- ubrn_ffi_bark_ffi_rust_future_complete_void(
694
- handle: bigint,
695
- uniffi_out_err: UniffiRustCallStatus
696
- ): void;
738
+ ubrn_uniffi_bark_ffi_fn_method_wallet_vtxos(uniffiSelf: bigint): bigint;
739
+ ubrn_ffi_bark_ffi_uniffi_contract_version(): number;
740
+ ubrn_uniffi_bark_ffi_checksum_func_default_vtxo_key_gap_limit(): number;
697
741
  ubrn_uniffi_bark_ffi_checksum_func_extract_tx_from_psbt(): number;
698
742
  ubrn_uniffi_bark_ffi_checksum_func_generate_mnemonic(): number;
743
+ ubrn_uniffi_bark_ffi_checksum_func_init_wallet(): number;
744
+ ubrn_uniffi_bark_ffi_checksum_func_max_vtxo_key_gap_limit(): number;
745
+ ubrn_uniffi_bark_ffi_checksum_func_set_logger(): number;
699
746
  ubrn_uniffi_bark_ffi_checksum_func_validate_ark_address(): number;
700
747
  ubrn_uniffi_bark_ffi_checksum_func_validate_mnemonic(): number;
701
- ubrn_uniffi_bark_ffi_checksum_func_set_logger(): number;
702
- ubrn_uniffi_bark_ffi_checksum_func_init_wallet(): number;
703
- ubrn_uniffi_bark_ffi_checksum_method_notificationholder_cancel_next_notification_wait(): number;
704
- ubrn_uniffi_bark_ffi_checksum_method_notificationholder_next_notification(): number;
748
+ ubrn_uniffi_bark_ffi_checksum_method_barklogger_log(): number;
705
749
  ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance(): number;
706
750
  ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx(): number;
707
751
  ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx(): number;
@@ -712,7 +756,10 @@ interface NativeModuleInterface {
712
756
  ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp(): number;
713
757
  ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp(): number;
714
758
  ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_sync(): number;
715
- ubrn_uniffi_bark_ffi_checksum_method_barklogger_log(): number;
759
+ ubrn_uniffi_bark_ffi_checksum_method_notificationholder_cancel_next_notification_wait(): number;
760
+ ubrn_uniffi_bark_ffi_checksum_method_notificationholder_next_notification(): number;
761
+ ubrn_uniffi_bark_ffi_checksum_constructor_onchainwallet_custom(): number;
762
+ ubrn_uniffi_bark_ffi_checksum_constructor_onchainwallet_default(): number;
716
763
  ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_balance(): number;
717
764
  ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_evict_tx(): number;
718
765
  ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_fee_rates(): number;
@@ -723,6 +770,7 @@ interface NativeModuleInterface {
723
770
  ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_tip_height(): number;
724
771
  ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_transactions(): number;
725
772
  ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_utxos(): number;
773
+ ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open(): number;
726
774
  ubrn_uniffi_bark_ffi_checksum_method_wallet_all_exits_claimable_at_height(): number;
727
775
  ubrn_uniffi_bark_ffi_checksum_method_wallet_all_vtxos(): number;
728
776
  ubrn_uniffi_bark_ffi_checksum_method_wallet_allow_lightning_send_to_exit(): number;
@@ -765,6 +813,7 @@ interface NativeModuleInterface {
765
813
  ubrn_uniffi_bark_ffi_checksum_method_wallet_history(): number;
766
814
  ubrn_uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method(): number;
767
815
  ubrn_uniffi_bark_ffi_checksum_method_wallet_import_vtxo(): number;
816
+ ubrn_uniffi_bark_ffi_checksum_method_wallet_import_vtxos(): number;
768
817
  ubrn_uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid(): number;
769
818
  ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_state(): number;
770
819
  ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_send_state(): number;
@@ -826,23 +875,19 @@ interface NativeModuleInterface {
826
875
  ubrn_uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address(): number;
827
876
  ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxo_encoded(): number;
828
877
  ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxos(): number;
829
- ubrn_uniffi_bark_ffi_checksum_constructor_onchainwallet_custom(): number;
830
- ubrn_uniffi_bark_ffi_checksum_constructor_onchainwallet_default(): number;
831
- ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open(): number;
832
- ubrn_ffi_bark_ffi_uniffi_contract_version(): number;
833
- ubrn_uniffi_internal_fn_method_notificationholder_ffi__bless_pointer(
878
+ ubrn_uniffi_internal_fn_method_onchainwallet_ffi__bless_pointer(
834
879
  pointer: bigint,
835
880
  uniffi_out_err: UniffiRustCallStatus
836
881
  ): UniffiGcObject;
837
- ubrn_uniffi_internal_fn_method_customonchainwalletcallbacks_ffi__bless_pointer(
882
+ ubrn_uniffi_internal_fn_method_barklogger_ffi__bless_pointer(
838
883
  pointer: bigint,
839
884
  uniffi_out_err: UniffiRustCallStatus
840
885
  ): UniffiGcObject;
841
- ubrn_uniffi_internal_fn_method_barklogger_ffi__bless_pointer(
886
+ ubrn_uniffi_internal_fn_method_customonchainwalletcallbacks_ffi__bless_pointer(
842
887
  pointer: bigint,
843
888
  uniffi_out_err: UniffiRustCallStatus
844
889
  ): UniffiGcObject;
845
- ubrn_uniffi_internal_fn_method_onchainwallet_ffi__bless_pointer(
890
+ ubrn_uniffi_internal_fn_method_notificationholder_ffi__bless_pointer(
846
891
  pointer: bigint,
847
892
  uniffi_out_err: UniffiRustCallStatus
848
893
  ): UniffiGcObject;
@@ -850,13 +895,14 @@ interface NativeModuleInterface {
850
895
  pointer: bigint,
851
896
  uniffi_out_err: UniffiRustCallStatus
852
897
  ): UniffiGcObject;
898
+ // Codegen call sites use these via `nativeModule().rustbuffer_alloc(...)`
899
+ // and `nativeModule().rustbuffer_free(...)`. The JSI host object exposes
900
+ // them as properties; see `props["rustbuffer_alloc"]` / `props["rustbuffer_free"]`
901
+ // in the C++ wrapper template.
902
+ rustbuffer_alloc(n: number): Uint8Array;
903
+ rustbuffer_free(view: Uint8Array): void;
853
904
  }
854
905
 
855
- // Casting globalThis to any allows us to look for `NativeBark`
856
- // if it was added via JSI.
857
- //
858
- // We use a getter here rather than simply `globalThis.NativeBark` so that
859
- // if/when the startup sequence isn't just so, an empty value isn't inadvertantly cached.
860
906
  const getter: () => NativeModuleInterface = () =>
861
907
  (globalThis as any).NativeBark;
862
908
  export default getter;
@@ -867,203 +913,91 @@ export type UniffiRustFutureContinuationCallback = (
867
913
  pollResult: number
868
914
  ) => void;
869
915
  export type UniffiForeignFutureDroppedCallback = (handle: bigint) => void;
870
- type UniffiCallbackInterfaceFree = (handle: bigint) => void;
871
- type UniffiCallbackInterfaceClone = (handle: bigint) => UniffiResult<void>;
872
916
  export type UniffiForeignFutureDroppedCallbackStruct = {
873
917
  handle: bigint;
874
918
  free: UniffiForeignFutureDroppedCallback;
875
919
  };
876
- export type UniffiForeignFutureResultU8 = {
877
- returnValue: number;
878
- callStatus: UniffiRustCallStatus;
879
- };
880
- export type UniffiForeignFutureCompleteU8 = (
881
- callbackData: bigint,
882
- result: UniffiForeignFutureResultU8
883
- ) => void;
884
- export type UniffiForeignFutureResultI8 = {
885
- returnValue: number;
886
- callStatus: UniffiRustCallStatus;
887
- };
888
- export type UniffiForeignFutureCompleteI8 = (
889
- callbackData: bigint,
890
- result: UniffiForeignFutureResultI8
891
- ) => void;
892
- export type UniffiForeignFutureResultU16 = {
893
- returnValue: number;
894
- callStatus: UniffiRustCallStatus;
895
- };
896
- export type UniffiForeignFutureCompleteU16 = (
897
- callbackData: bigint,
898
- result: UniffiForeignFutureResultU16
899
- ) => void;
900
- export type UniffiForeignFutureResultI16 = {
901
- returnValue: number;
902
- callStatus: UniffiRustCallStatus;
903
- };
904
- export type UniffiForeignFutureCompleteI16 = (
905
- callbackData: bigint,
906
- result: UniffiForeignFutureResultI16
907
- ) => void;
908
- export type UniffiForeignFutureResultU32 = {
909
- returnValue: number;
910
- callStatus: UniffiRustCallStatus;
911
- };
912
- export type UniffiForeignFutureCompleteU32 = (
913
- callbackData: bigint,
914
- result: UniffiForeignFutureResultU32
915
- ) => void;
916
- export type UniffiForeignFutureResultI32 = {
917
- returnValue: number;
918
- callStatus: UniffiRustCallStatus;
919
- };
920
- export type UniffiForeignFutureCompleteI32 = (
921
- callbackData: bigint,
922
- result: UniffiForeignFutureResultI32
923
- ) => void;
924
- export type UniffiForeignFutureResultU64 = {
925
- returnValue: bigint;
926
- callStatus: UniffiRustCallStatus;
927
- };
928
- export type UniffiForeignFutureCompleteU64 = (
929
- callbackData: bigint,
930
- result: UniffiForeignFutureResultU64
931
- ) => void;
932
- export type UniffiForeignFutureResultI64 = {
933
- returnValue: bigint;
934
- callStatus: UniffiRustCallStatus;
935
- };
936
- export type UniffiForeignFutureCompleteI64 = (
937
- callbackData: bigint,
938
- result: UniffiForeignFutureResultI64
939
- ) => void;
940
- export type UniffiForeignFutureResultF32 = {
941
- returnValue: number;
942
- callStatus: UniffiRustCallStatus;
943
- };
944
- export type UniffiForeignFutureCompleteF32 = (
945
- callbackData: bigint,
946
- result: UniffiForeignFutureResultF32
947
- ) => void;
948
- export type UniffiForeignFutureResultF64 = {
949
- returnValue: number;
950
- callStatus: UniffiRustCallStatus;
951
- };
952
- export type UniffiForeignFutureCompleteF64 = (
953
- callbackData: bigint,
954
- result: UniffiForeignFutureResultF64
955
- ) => void;
956
- export type UniffiForeignFutureResultRustBuffer = {
957
- returnValue: Uint8Array;
958
- callStatus: UniffiRustCallStatus;
959
- };
960
- export type UniffiForeignFutureCompleteRustBuffer = (
961
- callbackData: bigint,
962
- result: UniffiForeignFutureResultRustBuffer
963
- ) => void;
964
- export type UniffiForeignFutureResultVoid = {
965
- callStatus: UniffiRustCallStatus;
920
+ type UniffiCallbackInterfaceBarkBarkLoggerMethod0 = (
921
+ uniffiHandle: bigint,
922
+ level: Uint8Array,
923
+ target: Uint8Array,
924
+ message: Uint8Array
925
+ ) => UniffiResult<void>;
926
+ type UniffiCallbackInterfaceCloneBarkBarkLogger = (
927
+ handle: bigint
928
+ ) => UniffiResult<void>;
929
+ type UniffiCallbackInterfaceFreeBarkBarkLogger = (handle: bigint) => void;
930
+ export type UniffiVTableCallbackInterfaceBarkBarkLogger = {
931
+ uniffi_free: UniffiCallbackInterfaceFreeBarkBarkLogger;
932
+ uniffi_clone: UniffiCallbackInterfaceCloneBarkBarkLogger;
933
+ log: UniffiCallbackInterfaceBarkBarkLoggerMethod0;
966
934
  };
967
- export type UniffiForeignFutureCompleteVoid = (
968
- callbackData: bigint,
969
- result: UniffiForeignFutureResultVoid
970
- ) => void;
971
- type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod0 = (
935
+ type UniffiCallbackInterfaceBarkCustomOnchainWalletCallbacksMethod0 = (
972
936
  uniffiHandle: bigint
973
937
  ) => bigint;
974
- type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod1 = (
938
+ type UniffiCallbackInterfaceBarkCustomOnchainWalletCallbacksMethod1 = (
975
939
  uniffiHandle: bigint,
976
940
  destinations: Uint8Array,
977
941
  feeRateSatPerVb: bigint
978
942
  ) => Uint8Array;
979
- type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod2 = (
943
+ type UniffiCallbackInterfaceBarkCustomOnchainWalletCallbacksMethod2 = (
980
944
  uniffiHandle: bigint,
981
945
  address: Uint8Array,
982
946
  feeRateSatPerVb: bigint
983
947
  ) => Uint8Array;
984
- type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod3 = (
948
+ type UniffiCallbackInterfaceBarkCustomOnchainWalletCallbacksMethod3 = (
985
949
  uniffiHandle: bigint,
986
950
  psbtBase64: Uint8Array
987
951
  ) => Uint8Array;
988
- type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod4 = (
952
+ type UniffiCallbackInterfaceBarkCustomOnchainWalletCallbacksMethod4 = (
989
953
  uniffiHandle: bigint,
990
954
  scriptPubkeyHex: Uint8Array
991
955
  ) => number;
992
- type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod5 = (
956
+ type UniffiCallbackInterfaceBarkCustomOnchainWalletCallbacksMethod5 = (
993
957
  uniffiHandle: bigint,
994
958
  txHex: Uint8Array
995
959
  ) => UniffiResult<void>;
996
- type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod6 = (
960
+ type UniffiCallbackInterfaceBarkCustomOnchainWalletCallbacksMethod6 = (
997
961
  uniffiHandle: bigint,
998
962
  txid: Uint8Array
999
963
  ) => UniffiResult<void>;
1000
- type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7 = (
964
+ type UniffiCallbackInterfaceBarkCustomOnchainWalletCallbacksMethod7 = (
1001
965
  uniffiHandle: bigint,
1002
966
  params: Uint8Array
1003
967
  ) => Uint8Array;
1004
- type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod8 = (
968
+ type UniffiCallbackInterfaceBarkCustomOnchainWalletCallbacksMethod8 = (
1005
969
  uniffiHandle: bigint,
1006
970
  txHex: Uint8Array
1007
971
  ) => UniffiResult<void>;
1008
- type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod9 = (
972
+ type UniffiCallbackInterfaceBarkCustomOnchainWalletCallbacksMethod9 = (
1009
973
  uniffiHandle: bigint
1010
974
  ) => UniffiResult<void>;
1011
- type UniffiCallbackInterfaceBarkLoggerMethod0 = (
1012
- uniffiHandle: bigint,
1013
- level: Uint8Array,
1014
- target: Uint8Array,
1015
- message: Uint8Array
975
+ type UniffiCallbackInterfaceCloneBarkCustomOnchainWalletCallbacks = (
976
+ handle: bigint
1016
977
  ) => UniffiResult<void>;
1017
- export type UniffiVTableCallbackInterfaceCustomOnchainWalletCallbacks = {
1018
- uniffiFree: UniffiCallbackInterfaceFree;
1019
- uniffiClone: UniffiCallbackInterfaceClone;
1020
- getBalance: UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod0;
1021
- prepareTx: UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod1;
1022
- prepareDrainTx: UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod2;
1023
- finishPsbt: UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod3;
1024
- isMine: UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod4;
1025
- registerTx: UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod5;
1026
- evictTx: UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod6;
1027
- makeSignedP2aCpfp: UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7;
1028
- storeSignedP2aCpfp: UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod8;
1029
- sync: UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod9;
1030
- };
1031
- export type UniffiVTableCallbackInterfaceBarkLogger = {
1032
- uniffiFree: UniffiCallbackInterfaceFree;
1033
- uniffiClone: UniffiCallbackInterfaceClone;
1034
- log: UniffiCallbackInterfaceBarkLoggerMethod0;
978
+ type UniffiCallbackInterfaceFreeBarkCustomOnchainWalletCallbacks = (
979
+ handle: bigint
980
+ ) => void;
981
+ export type UniffiVTableCallbackInterfaceBarkCustomOnchainWalletCallbacks = {
982
+ uniffi_free: UniffiCallbackInterfaceFreeBarkCustomOnchainWalletCallbacks;
983
+ uniffi_clone: UniffiCallbackInterfaceCloneBarkCustomOnchainWalletCallbacks;
984
+ get_balance: UniffiCallbackInterfaceBarkCustomOnchainWalletCallbacksMethod0;
985
+ prepare_tx: UniffiCallbackInterfaceBarkCustomOnchainWalletCallbacksMethod1;
986
+ prepare_drain_tx: UniffiCallbackInterfaceBarkCustomOnchainWalletCallbacksMethod2;
987
+ finish_psbt: UniffiCallbackInterfaceBarkCustomOnchainWalletCallbacksMethod3;
988
+ is_mine: UniffiCallbackInterfaceBarkCustomOnchainWalletCallbacksMethod4;
989
+ register_tx: UniffiCallbackInterfaceBarkCustomOnchainWalletCallbacksMethod5;
990
+ evict_tx: UniffiCallbackInterfaceBarkCustomOnchainWalletCallbacksMethod6;
991
+ make_signed_p2a_cpfp: UniffiCallbackInterfaceBarkCustomOnchainWalletCallbacksMethod7;
992
+ store_signed_p2a_cpfp: UniffiCallbackInterfaceBarkCustomOnchainWalletCallbacksMethod8;
993
+ sync: UniffiCallbackInterfaceBarkCustomOnchainWalletCallbacksMethod9;
1035
994
  };
1036
995
 
1037
996
  // UniffiRustFutureContinuationCallback is generated as part of the component interface's
1038
997
  // ffi_definitions. However, we need it in the runtime.
1039
- // We could:
1040
- // (a) do some complicated template logic to ensure the declaration is not generated here (possible)
1041
- // (b) import the generated declaration into the runtime (m a y b e) or…
1042
- // (c) generate the declaration anyway, and use a different declaration in the runtime.
1043
- //
1044
- // We chose (c) here as the simplest. In addition, we perform a compile time check that
1045
- // the two versions of `UniffiRustFutureContinuationCallback` are structurally equivalent.
1046
- //
1047
- // If you see the error:
1048
- // ```
1049
- // Type 'true' is not assignable to type 'false'.(2322)
1050
- // ```
1051
- // Then a new version of uniffi has changed the signature of the callback. Most likely, code in
1052
- // `typescript/src/async-rust-call.ts` will need to be changed.
1053
- //
1054
- // If you see the error:
1055
- // ```
1056
- // Cannot find name 'UniffiRustFutureContinuationCallback'. Did you mean 'RuntimeUniffiRustFutureContinuationCallback'?(2552)
1057
- // ```
1058
- // then you may not be using callbacks or promises, and uniffi is now not generating Futures and callbacks.
1059
- // You should not generate this if that is the case.
1060
- //
1061
- // ('You' being the bindings generator maintainer).
998
+ // We chose to generate the declaration anyway, and use a different declaration in the runtime.
999
+ // We perform a compile time check that the two versions are structurally equivalent.
1062
1000
  const isRustFutureContinuationCallbackTypeCompatible: UniffiStructuralEquality<
1063
1001
  RuntimeUniffiRustFutureContinuationCallback,
1064
1002
  UniffiRustFutureContinuationCallback
1065
1003
  > = true;
1066
- const isUniffiForeignFutureTypeCompatible: UniffiStructuralEquality<
1067
- RuntimeUniffiForeignFuture,
1068
- UniffiForeignFuture
1069
- > = true;