@secondts/bark-react-native 0.24.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,
51
189
  uniffi_out_err: UniffiRustCallStatus
52
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,
205
+ uniffi_out_err: UniffiRustCallStatus
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,546 +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
504
+ ): bigint;
505
+ ubrn_uniffi_bark_ffi_fn_method_wallet_has_pending_exits(
506
+ uniffiSelf: bigint
321
507
  ): 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;
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,
515
+ uniffiSelf: bigint,
331
516
  vtxoBase64: Uint8Array,
332
517
  args: Uint8Array
333
518
  ): bigint;
334
519
  ubrn_uniffi_bark_ffi_fn_method_wallet_import_vtxos(
335
- ptr: bigint,
520
+ uniffiSelf: bigint,
336
521
  encodedVtxos: Uint8Array,
337
522
  args: Uint8Array
338
523
  ): bigint;
339
524
  ubrn_uniffi_bark_ffi_fn_method_wallet_is_invoice_paid(
340
- ptr: bigint,
525
+ uniffiSelf: bigint,
341
526
  paymentHash: Uint8Array
342
527
  ): bigint;
343
528
  ubrn_uniffi_bark_ffi_fn_method_wallet_lightning_receive_state(
344
- ptr: bigint,
529
+ uniffiSelf: bigint,
345
530
  paymentHash: Uint8Array
346
531
  ): bigint;
347
532
  ubrn_uniffi_bark_ffi_fn_method_wallet_lightning_send_state(
348
- ptr: bigint,
533
+ uniffiSelf: bigint,
349
534
  paymentHash: Uint8Array
350
535
  ): bigint;
351
536
  ubrn_uniffi_bark_ffi_fn_method_wallet_list_claimable_exits(
352
- ptr: bigint
537
+ uniffiSelf: bigint
353
538
  ): bigint;
354
539
  ubrn_uniffi_bark_ffi_fn_method_wallet_lock_vtxos(
355
- ptr: bigint,
540
+ uniffiSelf: bigint,
356
541
  vtxoIds: Uint8Array,
357
542
  holder: Uint8Array
358
543
  ): bigint;
359
544
  ubrn_uniffi_bark_ffi_fn_method_wallet_mailbox_authorization(
360
- ptr: bigint,
545
+ uniffiSelf: bigint,
546
+ expirySecs: number,
361
547
  uniffi_out_err: UniffiRustCallStatus
362
548
  ): Uint8Array;
363
549
  ubrn_uniffi_bark_ffi_fn_method_wallet_mailbox_identifier(
364
- ptr: bigint,
550
+ uniffiSelf: bigint,
365
551
  uniffi_out_err: UniffiRustCallStatus
366
552
  ): Uint8Array;
367
- ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance(ptr: bigint): bigint;
553
+ ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance(uniffiSelf: bigint): bigint;
368
554
  ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance_delegated(
369
- ptr: bigint
555
+ uniffiSelf: bigint
370
556
  ): bigint;
371
557
  ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance_refresh(
372
- ptr: bigint
558
+ uniffiSelf: bigint
373
559
  ): 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;
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;
376
562
  ubrn_uniffi_bark_ffi_fn_method_wallet_new_address_with_index(
377
- ptr: bigint
563
+ uniffiSelf: bigint
378
564
  ): bigint;
379
565
  ubrn_uniffi_bark_ffi_fn_method_wallet_next_round_start_time(
380
- ptr: bigint
566
+ uniffiSelf: bigint
381
567
  ): bigint;
382
568
  ubrn_uniffi_bark_ffi_fn_method_wallet_notifications(
383
- ptr: bigint,
569
+ uniffiSelf: bigint,
384
570
  uniffi_out_err: UniffiRustCallStatus
385
571
  ): bigint;
386
572
  ubrn_uniffi_bark_ffi_fn_method_wallet_offboard_all(
387
- ptr: bigint,
573
+ uniffiSelf: bigint,
388
574
  bitcoinAddress: Uint8Array
389
575
  ): bigint;
390
576
  ubrn_uniffi_bark_ffi_fn_method_wallet_offboard_vtxos(
391
- ptr: bigint,
577
+ uniffiSelf: bigint,
392
578
  vtxoIds: Uint8Array,
393
579
  bitcoinAddress: Uint8Array
394
580
  ): bigint;
395
581
  ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_address(
396
- ptr: bigint,
582
+ uniffiSelf: bigint,
397
583
  lightningAddress: Uint8Array,
398
584
  amountSats: bigint,
399
585
  comment: Uint8Array,
400
586
  wait: number
401
587
  ): bigint;
402
588
  ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_invoice(
403
- ptr: bigint,
589
+ uniffiSelf: bigint,
404
590
  invoice: Uint8Array,
405
591
  amountSats: Uint8Array,
406
592
  wait: number
407
593
  ): bigint;
408
594
  ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_offer(
409
- ptr: bigint,
595
+ uniffiSelf: bigint,
410
596
  offer: Uint8Array,
411
597
  amountSats: Uint8Array,
412
598
  wait: number
413
599
  ): bigint;
414
600
  ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lnurl(
415
- ptr: bigint,
601
+ uniffiSelf: bigint,
416
602
  lnurl: Uint8Array,
417
603
  amountSats: bigint,
418
604
  comment: Uint8Array,
419
605
  wait: number
420
606
  ): bigint;
421
607
  ubrn_uniffi_bark_ffi_fn_method_wallet_peek_address(
422
- ptr: bigint,
608
+ uniffiSelf: bigint,
423
609
  index: number
424
610
  ): bigint;
425
611
  ubrn_uniffi_bark_ffi_fn_method_wallet_pending_board_vtxos(
426
- ptr: bigint
612
+ uniffiSelf: bigint
613
+ ): bigint;
614
+ ubrn_uniffi_bark_ffi_fn_method_wallet_pending_boards(
615
+ uniffiSelf: bigint
427
616
  ): bigint;
428
- ubrn_uniffi_bark_ffi_fn_method_wallet_pending_boards(ptr: bigint): bigint;
429
617
  ubrn_uniffi_bark_ffi_fn_method_wallet_pending_exits_total_sats(
430
- ptr: bigint
618
+ uniffiSelf: bigint
431
619
  ): bigint;
432
620
  ubrn_uniffi_bark_ffi_fn_method_wallet_pending_lightning_receives(
433
- ptr: bigint
621
+ uniffiSelf: bigint
434
622
  ): bigint;
435
623
  ubrn_uniffi_bark_ffi_fn_method_wallet_pending_lightning_send_vtxos(
436
- ptr: bigint
624
+ uniffiSelf: bigint
437
625
  ): bigint;
438
626
  ubrn_uniffi_bark_ffi_fn_method_wallet_pending_lightning_sends(
439
- ptr: bigint
627
+ uniffiSelf: bigint
440
628
  ): bigint;
441
629
  ubrn_uniffi_bark_ffi_fn_method_wallet_pending_round_input_vtxos(
442
- ptr: bigint
630
+ uniffiSelf: bigint
443
631
  ): bigint;
444
632
  ubrn_uniffi_bark_ffi_fn_method_wallet_pending_round_states(
445
- ptr: bigint
633
+ uniffiSelf: bigint
446
634
  ): bigint;
447
635
  ubrn_uniffi_bark_ffi_fn_method_wallet_progress_exits(
448
- ptr: bigint,
636
+ uniffiSelf: bigint,
449
637
  feeRateSatPerVb: Uint8Array
450
638
  ): bigint;
451
639
  ubrn_uniffi_bark_ffi_fn_method_wallet_progress_pending_rounds(
452
- ptr: bigint
640
+ uniffiSelf: bigint
453
641
  ): bigint;
454
- ubrn_uniffi_bark_ffi_fn_method_wallet_properties(ptr: bigint): bigint;
642
+ ubrn_uniffi_bark_ffi_fn_method_wallet_properties(uniffiSelf: bigint): bigint;
455
643
  ubrn_uniffi_bark_ffi_fn_method_wallet_recover_vtxos(
456
- ptr: bigint,
644
+ uniffiSelf: bigint,
457
645
  vtxoIds: Uint8Array,
458
646
  gapLimit: Uint8Array
459
647
  ): bigint;
460
648
  ubrn_uniffi_bark_ffi_fn_method_wallet_recovery_report(
461
- ptr: bigint,
649
+ uniffiSelf: bigint,
462
650
  uniffi_out_err: UniffiRustCallStatus
463
651
  ): Uint8Array;
464
652
  ubrn_uniffi_bark_ffi_fn_method_wallet_recovery_status(
465
- ptr: bigint,
653
+ uniffiSelf: bigint,
466
654
  uniffi_out_err: UniffiRustCallStatus
467
655
  ): Uint8Array;
468
- 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;
469
659
  ubrn_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos(
470
- ptr: bigint,
660
+ uniffiSelf: bigint,
471
661
  vtxoIds: Uint8Array
472
662
  ): bigint;
473
663
  ubrn_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos_delegated(
474
- ptr: bigint,
664
+ uniffiSelf: bigint,
475
665
  vtxoIds: Uint8Array
476
666
  ): bigint;
477
667
  ubrn_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos_scheduled(
478
- ptr: bigint,
668
+ uniffiSelf: bigint,
479
669
  vtxoIds: Uint8Array,
480
670
  scheduledHeight: number
481
671
  ): bigint;
482
- 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;
483
673
  ubrn_uniffi_bark_ffi_fn_method_wallet_send_arkoor_payment(
484
- ptr: bigint,
674
+ uniffiSelf: bigint,
485
675
  arkAddress: Uint8Array,
486
676
  amountSats: bigint
487
677
  ): bigint;
488
678
  ubrn_uniffi_bark_ffi_fn_method_wallet_send_onchain(
489
- ptr: bigint,
679
+ uniffiSelf: bigint,
490
680
  address: Uint8Array,
491
681
  amountSats: bigint
492
682
  ): bigint;
493
683
  ubrn_uniffi_bark_ffi_fn_method_wallet_sign_exit_claim_inputs(
494
- ptr: bigint,
684
+ uniffiSelf: bigint,
495
685
  psbtBase64: Uint8Array
496
686
  ): bigint;
497
- 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;
498
690
  ubrn_uniffi_bark_ffi_fn_method_wallet_start_exit_for_entire_wallet(
499
- ptr: bigint
691
+ uniffiSelf: bigint
500
692
  ): bigint;
501
693
  ubrn_uniffi_bark_ffi_fn_method_wallet_start_exit_for_vtxos(
502
- ptr: bigint,
694
+ uniffiSelf: bigint,
503
695
  vtxoIds: Uint8Array
504
696
  ): bigint;
505
697
  ubrn_uniffi_bark_ffi_fn_method_wallet_start_exit_for_vtxos_including_non_standard(
506
- ptr: bigint,
698
+ uniffiSelf: bigint,
507
699
  vtxoIds: Uint8Array
508
700
  ): 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;
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;
511
705
  ubrn_uniffi_bark_ffi_fn_method_wallet_stuck_failed_lightning_sends(
512
- ptr: bigint
706
+ uniffiSelf: bigint
513
707
  ): 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;
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;
516
710
  ubrn_uniffi_bark_ffi_fn_method_wallet_sync_force_exited_vtxos(
517
- ptr: bigint
711
+ uniffiSelf: bigint
518
712
  ): bigint;
519
713
  ubrn_uniffi_bark_ffi_fn_method_wallet_sync_pending_boards(
520
- ptr: bigint
714
+ uniffiSelf: bigint
521
715
  ): bigint;
522
716
  ubrn_uniffi_bark_ffi_fn_method_wallet_try_claim_all_lightning_receives(
523
- ptr: bigint,
717
+ uniffiSelf: bigint,
524
718
  wait: number
525
719
  ): bigint;
526
720
  ubrn_uniffi_bark_ffi_fn_method_wallet_try_claim_lightning_receive(
527
- ptr: bigint,
721
+ uniffiSelf: bigint,
528
722
  paymentHash: Uint8Array,
529
723
  wait: number
530
724
  ): bigint;
531
725
  ubrn_uniffi_bark_ffi_fn_method_wallet_unlock_vtxos(
532
- ptr: bigint,
726
+ uniffiSelf: bigint,
533
727
  vtxoIds: Uint8Array,
534
728
  expectedHolder: Uint8Array
535
729
  ): bigint;
536
730
  ubrn_uniffi_bark_ffi_fn_method_wallet_validate_arkoor_address(
537
- ptr: bigint,
731
+ uniffiSelf: bigint,
538
732
  address: Uint8Array
539
733
  ): bigint;
540
734
  ubrn_uniffi_bark_ffi_fn_method_wallet_vtxo_encoded(
541
- ptr: bigint,
735
+ uniffiSelf: bigint,
542
736
  vtxoId: Uint8Array
543
737
  ): 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;
738
+ ubrn_uniffi_bark_ffi_fn_method_wallet_vtxos(uniffiSelf: bigint): bigint;
739
+ ubrn_ffi_bark_ffi_uniffi_contract_version(): number;
710
740
  ubrn_uniffi_bark_ffi_checksum_func_default_vtxo_key_gap_limit(): number;
711
741
  ubrn_uniffi_bark_ffi_checksum_func_extract_tx_from_psbt(): number;
712
742
  ubrn_uniffi_bark_ffi_checksum_func_generate_mnemonic(): number;
743
+ ubrn_uniffi_bark_ffi_checksum_func_init_wallet(): number;
713
744
  ubrn_uniffi_bark_ffi_checksum_func_max_vtxo_key_gap_limit(): number;
745
+ ubrn_uniffi_bark_ffi_checksum_func_set_logger(): number;
714
746
  ubrn_uniffi_bark_ffi_checksum_func_validate_ark_address(): number;
715
747
  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;
748
+ ubrn_uniffi_bark_ffi_checksum_method_barklogger_log(): number;
720
749
  ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance(): number;
721
750
  ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx(): number;
722
751
  ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx(): number;
@@ -727,7 +756,10 @@ interface NativeModuleInterface {
727
756
  ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp(): number;
728
757
  ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp(): number;
729
758
  ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_sync(): number;
730
- 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;
731
763
  ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_balance(): number;
732
764
  ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_evict_tx(): number;
733
765
  ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_fee_rates(): number;
@@ -738,6 +770,7 @@ interface NativeModuleInterface {
738
770
  ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_tip_height(): number;
739
771
  ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_transactions(): number;
740
772
  ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_utxos(): number;
773
+ ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open(): number;
741
774
  ubrn_uniffi_bark_ffi_checksum_method_wallet_all_exits_claimable_at_height(): number;
742
775
  ubrn_uniffi_bark_ffi_checksum_method_wallet_all_vtxos(): number;
743
776
  ubrn_uniffi_bark_ffi_checksum_method_wallet_allow_lightning_send_to_exit(): number;
@@ -842,23 +875,19 @@ interface NativeModuleInterface {
842
875
  ubrn_uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address(): number;
843
876
  ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxo_encoded(): number;
844
877
  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(
878
+ ubrn_uniffi_internal_fn_method_onchainwallet_ffi__bless_pointer(
850
879
  pointer: bigint,
851
880
  uniffi_out_err: UniffiRustCallStatus
852
881
  ): UniffiGcObject;
853
- ubrn_uniffi_internal_fn_method_customonchainwalletcallbacks_ffi__bless_pointer(
882
+ ubrn_uniffi_internal_fn_method_barklogger_ffi__bless_pointer(
854
883
  pointer: bigint,
855
884
  uniffi_out_err: UniffiRustCallStatus
856
885
  ): UniffiGcObject;
857
- ubrn_uniffi_internal_fn_method_barklogger_ffi__bless_pointer(
886
+ ubrn_uniffi_internal_fn_method_customonchainwalletcallbacks_ffi__bless_pointer(
858
887
  pointer: bigint,
859
888
  uniffi_out_err: UniffiRustCallStatus
860
889
  ): UniffiGcObject;
861
- ubrn_uniffi_internal_fn_method_onchainwallet_ffi__bless_pointer(
890
+ ubrn_uniffi_internal_fn_method_notificationholder_ffi__bless_pointer(
862
891
  pointer: bigint,
863
892
  uniffi_out_err: UniffiRustCallStatus
864
893
  ): UniffiGcObject;
@@ -866,13 +895,14 @@ interface NativeModuleInterface {
866
895
  pointer: bigint,
867
896
  uniffi_out_err: UniffiRustCallStatus
868
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;
869
904
  }
870
905
 
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
906
  const getter: () => NativeModuleInterface = () =>
877
907
  (globalThis as any).NativeBark;
878
908
  export default getter;
@@ -883,203 +913,91 @@ export type UniffiRustFutureContinuationCallback = (
883
913
  pollResult: number
884
914
  ) => void;
885
915
  export type UniffiForeignFutureDroppedCallback = (handle: bigint) => void;
886
- type UniffiCallbackInterfaceFree = (handle: bigint) => void;
887
- type UniffiCallbackInterfaceClone = (handle: bigint) => UniffiResult<void>;
888
916
  export type UniffiForeignFutureDroppedCallbackStruct = {
889
917
  handle: bigint;
890
918
  free: UniffiForeignFutureDroppedCallback;
891
919
  };
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;
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;
982
934
  };
983
- export type UniffiForeignFutureCompleteVoid = (
984
- callbackData: bigint,
985
- result: UniffiForeignFutureResultVoid
986
- ) => void;
987
- type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod0 = (
935
+ type UniffiCallbackInterfaceBarkCustomOnchainWalletCallbacksMethod0 = (
988
936
  uniffiHandle: bigint
989
937
  ) => bigint;
990
- type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod1 = (
938
+ type UniffiCallbackInterfaceBarkCustomOnchainWalletCallbacksMethod1 = (
991
939
  uniffiHandle: bigint,
992
940
  destinations: Uint8Array,
993
941
  feeRateSatPerVb: bigint
994
942
  ) => Uint8Array;
995
- type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod2 = (
943
+ type UniffiCallbackInterfaceBarkCustomOnchainWalletCallbacksMethod2 = (
996
944
  uniffiHandle: bigint,
997
945
  address: Uint8Array,
998
946
  feeRateSatPerVb: bigint
999
947
  ) => Uint8Array;
1000
- type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod3 = (
948
+ type UniffiCallbackInterfaceBarkCustomOnchainWalletCallbacksMethod3 = (
1001
949
  uniffiHandle: bigint,
1002
950
  psbtBase64: Uint8Array
1003
951
  ) => Uint8Array;
1004
- type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod4 = (
952
+ type UniffiCallbackInterfaceBarkCustomOnchainWalletCallbacksMethod4 = (
1005
953
  uniffiHandle: bigint,
1006
954
  scriptPubkeyHex: Uint8Array
1007
955
  ) => number;
1008
- type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod5 = (
956
+ type UniffiCallbackInterfaceBarkCustomOnchainWalletCallbacksMethod5 = (
1009
957
  uniffiHandle: bigint,
1010
958
  txHex: Uint8Array
1011
959
  ) => UniffiResult<void>;
1012
- type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod6 = (
960
+ type UniffiCallbackInterfaceBarkCustomOnchainWalletCallbacksMethod6 = (
1013
961
  uniffiHandle: bigint,
1014
962
  txid: Uint8Array
1015
963
  ) => UniffiResult<void>;
1016
- type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7 = (
964
+ type UniffiCallbackInterfaceBarkCustomOnchainWalletCallbacksMethod7 = (
1017
965
  uniffiHandle: bigint,
1018
966
  params: Uint8Array
1019
967
  ) => Uint8Array;
1020
- type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod8 = (
968
+ type UniffiCallbackInterfaceBarkCustomOnchainWalletCallbacksMethod8 = (
1021
969
  uniffiHandle: bigint,
1022
970
  txHex: Uint8Array
1023
971
  ) => UniffiResult<void>;
1024
- type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod9 = (
972
+ type UniffiCallbackInterfaceBarkCustomOnchainWalletCallbacksMethod9 = (
1025
973
  uniffiHandle: bigint
1026
974
  ) => UniffiResult<void>;
1027
- type UniffiCallbackInterfaceBarkLoggerMethod0 = (
1028
- uniffiHandle: bigint,
1029
- level: Uint8Array,
1030
- target: Uint8Array,
1031
- message: Uint8Array
975
+ type UniffiCallbackInterfaceCloneBarkCustomOnchainWalletCallbacks = (
976
+ handle: bigint
1032
977
  ) => 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;
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;
1051
994
  };
1052
995
 
1053
996
  // UniffiRustFutureContinuationCallback is generated as part of the component interface's
1054
997
  // 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).
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.
1078
1000
  const isRustFutureContinuationCallbackTypeCompatible: UniffiStructuralEquality<
1079
1001
  RuntimeUniffiRustFutureContinuationCallback,
1080
1002
  UniffiRustFutureContinuationCallback
1081
1003
  > = true;
1082
- const isUniffiForeignFutureTypeCompatible: UniffiStructuralEquality<
1083
- RuntimeUniffiForeignFuture,
1084
- UniffiForeignFuture
1085
- > = true;