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