@secondts/bark-react-native 0.1.2-beta.29 → 0.1.2-beta.31

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.
@@ -20,118 +20,114 @@ extern "C" {
20
20
  int8_t poll_result
21
21
  );
22
22
  typedef void
23
- (*UniffiForeignFutureFree)(
23
+ (*UniffiForeignFutureDroppedCallback)(
24
24
  uint64_t handle
25
25
  );
26
26
  typedef void
27
27
  (*UniffiCallbackInterfaceFree)(
28
28
  uint64_t handle
29
- );typedef struct UniffiForeignFuture {
29
+ );
30
+ typedef uint64_t
31
+ (*UniffiCallbackInterfaceClone)(
32
+ uint64_t handle
33
+ );typedef struct UniffiForeignFutureDroppedCallbackStruct {
30
34
  uint64_t handle;
31
- UniffiForeignFutureFree free;
32
- } UniffiForeignFuture;typedef struct UniffiForeignFutureStructU8 {
35
+ UniffiForeignFutureDroppedCallback free;
36
+ } UniffiForeignFutureDroppedCallbackStruct;typedef struct UniffiForeignFutureResultU8 {
33
37
  uint8_t return_value;
34
38
  RustCallStatus call_status;
35
- } UniffiForeignFutureStructU8;
39
+ } UniffiForeignFutureResultU8;
36
40
  typedef void
37
41
  (*UniffiForeignFutureCompleteU8)(
38
42
  uint64_t callback_data,
39
- UniffiForeignFutureStructU8 result
40
- );typedef struct UniffiForeignFutureStructI8 {
43
+ UniffiForeignFutureResultU8 result
44
+ );typedef struct UniffiForeignFutureResultI8 {
41
45
  int8_t return_value;
42
46
  RustCallStatus call_status;
43
- } UniffiForeignFutureStructI8;
47
+ } UniffiForeignFutureResultI8;
44
48
  typedef void
45
49
  (*UniffiForeignFutureCompleteI8)(
46
50
  uint64_t callback_data,
47
- UniffiForeignFutureStructI8 result
48
- );typedef struct UniffiForeignFutureStructU16 {
51
+ UniffiForeignFutureResultI8 result
52
+ );typedef struct UniffiForeignFutureResultU16 {
49
53
  uint16_t return_value;
50
54
  RustCallStatus call_status;
51
- } UniffiForeignFutureStructU16;
55
+ } UniffiForeignFutureResultU16;
52
56
  typedef void
53
57
  (*UniffiForeignFutureCompleteU16)(
54
58
  uint64_t callback_data,
55
- UniffiForeignFutureStructU16 result
56
- );typedef struct UniffiForeignFutureStructI16 {
59
+ UniffiForeignFutureResultU16 result
60
+ );typedef struct UniffiForeignFutureResultI16 {
57
61
  int16_t return_value;
58
62
  RustCallStatus call_status;
59
- } UniffiForeignFutureStructI16;
63
+ } UniffiForeignFutureResultI16;
60
64
  typedef void
61
65
  (*UniffiForeignFutureCompleteI16)(
62
66
  uint64_t callback_data,
63
- UniffiForeignFutureStructI16 result
64
- );typedef struct UniffiForeignFutureStructU32 {
67
+ UniffiForeignFutureResultI16 result
68
+ );typedef struct UniffiForeignFutureResultU32 {
65
69
  uint32_t return_value;
66
70
  RustCallStatus call_status;
67
- } UniffiForeignFutureStructU32;
71
+ } UniffiForeignFutureResultU32;
68
72
  typedef void
69
73
  (*UniffiForeignFutureCompleteU32)(
70
74
  uint64_t callback_data,
71
- UniffiForeignFutureStructU32 result
72
- );typedef struct UniffiForeignFutureStructI32 {
75
+ UniffiForeignFutureResultU32 result
76
+ );typedef struct UniffiForeignFutureResultI32 {
73
77
  int32_t return_value;
74
78
  RustCallStatus call_status;
75
- } UniffiForeignFutureStructI32;
79
+ } UniffiForeignFutureResultI32;
76
80
  typedef void
77
81
  (*UniffiForeignFutureCompleteI32)(
78
82
  uint64_t callback_data,
79
- UniffiForeignFutureStructI32 result
80
- );typedef struct UniffiForeignFutureStructU64 {
83
+ UniffiForeignFutureResultI32 result
84
+ );typedef struct UniffiForeignFutureResultU64 {
81
85
  uint64_t return_value;
82
86
  RustCallStatus call_status;
83
- } UniffiForeignFutureStructU64;
87
+ } UniffiForeignFutureResultU64;
84
88
  typedef void
85
89
  (*UniffiForeignFutureCompleteU64)(
86
90
  uint64_t callback_data,
87
- UniffiForeignFutureStructU64 result
88
- );typedef struct UniffiForeignFutureStructI64 {
91
+ UniffiForeignFutureResultU64 result
92
+ );typedef struct UniffiForeignFutureResultI64 {
89
93
  int64_t return_value;
90
94
  RustCallStatus call_status;
91
- } UniffiForeignFutureStructI64;
95
+ } UniffiForeignFutureResultI64;
92
96
  typedef void
93
97
  (*UniffiForeignFutureCompleteI64)(
94
98
  uint64_t callback_data,
95
- UniffiForeignFutureStructI64 result
96
- );typedef struct UniffiForeignFutureStructF32 {
99
+ UniffiForeignFutureResultI64 result
100
+ );typedef struct UniffiForeignFutureResultF32 {
97
101
  float return_value;
98
102
  RustCallStatus call_status;
99
- } UniffiForeignFutureStructF32;
103
+ } UniffiForeignFutureResultF32;
100
104
  typedef void
101
105
  (*UniffiForeignFutureCompleteF32)(
102
106
  uint64_t callback_data,
103
- UniffiForeignFutureStructF32 result
104
- );typedef struct UniffiForeignFutureStructF64 {
107
+ UniffiForeignFutureResultF32 result
108
+ );typedef struct UniffiForeignFutureResultF64 {
105
109
  double return_value;
106
110
  RustCallStatus call_status;
107
- } UniffiForeignFutureStructF64;
111
+ } UniffiForeignFutureResultF64;
108
112
  typedef void
109
113
  (*UniffiForeignFutureCompleteF64)(
110
114
  uint64_t callback_data,
111
- UniffiForeignFutureStructF64 result
112
- );typedef struct UniffiForeignFutureStructPointer {
113
- void * return_value;
114
- RustCallStatus call_status;
115
- } UniffiForeignFutureStructPointer;
116
- typedef void
117
- (*UniffiForeignFutureCompletePointer)(
118
- uint64_t callback_data,
119
- UniffiForeignFutureStructPointer result
120
- );typedef struct UniffiForeignFutureStructRustBuffer {
115
+ UniffiForeignFutureResultF64 result
116
+ );typedef struct UniffiForeignFutureResultRustBuffer {
121
117
  RustBuffer return_value;
122
118
  RustCallStatus call_status;
123
- } UniffiForeignFutureStructRustBuffer;
119
+ } UniffiForeignFutureResultRustBuffer;
124
120
  typedef void
125
121
  (*UniffiForeignFutureCompleteRustBuffer)(
126
122
  uint64_t callback_data,
127
- UniffiForeignFutureStructRustBuffer result
128
- );typedef struct UniffiForeignFutureStructVoid {
123
+ UniffiForeignFutureResultRustBuffer result
124
+ );typedef struct UniffiForeignFutureResultVoid {
129
125
  RustCallStatus call_status;
130
- } UniffiForeignFutureStructVoid;
126
+ } UniffiForeignFutureResultVoid;
131
127
  typedef void
132
128
  (*UniffiForeignFutureCompleteVoid)(
133
129
  uint64_t callback_data,
134
- UniffiForeignFutureStructVoid result
130
+ UniffiForeignFutureResultVoid result
135
131
  );
136
132
  typedef void
137
133
  (*UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod0)(
@@ -188,6 +184,8 @@ extern "C" {
188
184
  RustBuffer tx_hex,
189
185
  void * uniffi_out_return, RustCallStatus* rust_call_status
190
186
  );typedef struct UniffiVTableCallbackInterfaceCustomOnchainWalletCallbacks {
187
+ UniffiCallbackInterfaceFree uniffi_free;
188
+ UniffiCallbackInterfaceClone uniffi_clone;
191
189
  UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod0 get_balance;
192
190
  UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod1 prepare_tx;
193
191
  UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod2 prepare_drain_tx;
@@ -197,404 +195,437 @@ extern "C" {
197
195
  UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod6 get_spending_tx;
198
196
  UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7 make_signed_p2a_cpfp;
199
197
  UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod8 store_signed_p2a_cpfp;
200
- UniffiCallbackInterfaceFree uniffi_free;
201
198
  } UniffiVTableCallbackInterfaceCustomOnchainWalletCallbacks;
202
- void * uniffi_bark_ffi_fn_clone_onchainwallet(
203
- void * ptr,
199
+ /*handle*/ uint64_t uniffi_bark_ffi_fn_clone_onchainwallet(
200
+ /*handle*/ uint64_t handle,
204
201
  RustCallStatus *uniffi_out_err
205
202
  );
206
203
  void uniffi_bark_ffi_fn_free_onchainwallet(
207
- void * ptr,
204
+ /*handle*/ uint64_t handle,
208
205
  RustCallStatus *uniffi_out_err
209
206
  );
210
- void * uniffi_bark_ffi_fn_constructor_onchainwallet_custom(
207
+ /*handle*/ uint64_t uniffi_bark_ffi_fn_constructor_onchainwallet_custom(
211
208
  uint64_t callbacks,
212
209
  RustCallStatus *uniffi_out_err
213
210
  );
214
- void * uniffi_bark_ffi_fn_constructor_onchainwallet_default(
211
+ /*handle*/ uint64_t uniffi_bark_ffi_fn_constructor_onchainwallet_default(
215
212
  RustBuffer mnemonic,
216
213
  RustBuffer config,
217
214
  RustBuffer datadir,
218
215
  RustCallStatus *uniffi_out_err
219
216
  );
220
217
  RustBuffer uniffi_bark_ffi_fn_method_onchainwallet_balance(
221
- void * ptr,
218
+ /*handle*/ uint64_t ptr,
222
219
  RustCallStatus *uniffi_out_err
223
220
  );
224
221
  RustBuffer uniffi_bark_ffi_fn_method_onchainwallet_new_address(
225
- void * ptr,
222
+ /*handle*/ uint64_t ptr,
226
223
  RustCallStatus *uniffi_out_err
227
224
  );
228
225
  RustBuffer uniffi_bark_ffi_fn_method_onchainwallet_send(
229
- void * ptr,
226
+ /*handle*/ uint64_t ptr,
230
227
  RustBuffer address,
231
228
  uint64_t amount_sats,
232
229
  uint64_t fee_rate_sat_per_vb,
233
230
  RustCallStatus *uniffi_out_err
234
231
  );
235
232
  uint64_t uniffi_bark_ffi_fn_method_onchainwallet_sync(
236
- void * ptr,
233
+ /*handle*/ uint64_t ptr,
237
234
  RustCallStatus *uniffi_out_err
238
235
  );
239
- void * uniffi_bark_ffi_fn_clone_wallet(
240
- void * ptr,
236
+ /*handle*/ uint64_t uniffi_bark_ffi_fn_clone_wallet(
237
+ /*handle*/ uint64_t handle,
241
238
  RustCallStatus *uniffi_out_err
242
239
  );
243
240
  void uniffi_bark_ffi_fn_free_wallet(
244
- void * ptr,
241
+ /*handle*/ uint64_t handle,
245
242
  RustCallStatus *uniffi_out_err
246
243
  );
247
- void * uniffi_bark_ffi_fn_constructor_wallet_create(
244
+ /*handle*/ uint64_t uniffi_bark_ffi_fn_constructor_wallet_create(
248
245
  RustBuffer mnemonic,
249
246
  RustBuffer config,
250
247
  RustBuffer datadir,
251
248
  int8_t force_rescan,
252
249
  RustCallStatus *uniffi_out_err
253
250
  );
254
- void * uniffi_bark_ffi_fn_constructor_wallet_create_with_onchain(
251
+ /*handle*/ uint64_t uniffi_bark_ffi_fn_constructor_wallet_create_with_onchain(
255
252
  RustBuffer mnemonic,
256
253
  RustBuffer config,
257
254
  RustBuffer datadir,
258
- void * onchain_wallet,
255
+ /*handle*/ uint64_t onchain_wallet,
259
256
  int8_t force_rescan,
260
257
  RustCallStatus *uniffi_out_err
261
258
  );
262
- void * uniffi_bark_ffi_fn_constructor_wallet_open(
259
+ /*handle*/ uint64_t uniffi_bark_ffi_fn_constructor_wallet_open(
263
260
  RustBuffer mnemonic,
264
261
  RustBuffer config,
265
262
  RustBuffer datadir,
266
263
  RustCallStatus *uniffi_out_err
267
264
  );
268
- void * uniffi_bark_ffi_fn_constructor_wallet_open_with_onchain(
265
+ /*handle*/ uint64_t uniffi_bark_ffi_fn_constructor_wallet_open_with_onchain(
269
266
  RustBuffer mnemonic,
270
267
  RustBuffer config,
271
268
  RustBuffer datadir,
272
- void * onchain_wallet,
269
+ /*handle*/ uint64_t onchain_wallet,
273
270
  RustCallStatus *uniffi_out_err
274
271
  );
275
272
  RustBuffer uniffi_bark_ffi_fn_method_wallet_all_exits_claimable_at_height(
276
- void * ptr,
273
+ /*handle*/ uint64_t ptr,
277
274
  RustCallStatus *uniffi_out_err
278
275
  );
279
276
  RustBuffer uniffi_bark_ffi_fn_method_wallet_all_vtxos(
280
- void * ptr,
277
+ /*handle*/ uint64_t ptr,
281
278
  RustCallStatus *uniffi_out_err
282
279
  );
283
280
  RustBuffer uniffi_bark_ffi_fn_method_wallet_ark_info(
284
- void * ptr,
281
+ /*handle*/ uint64_t ptr,
285
282
  RustCallStatus *uniffi_out_err
286
283
  );
287
284
  RustBuffer uniffi_bark_ffi_fn_method_wallet_balance(
288
- void * ptr,
285
+ /*handle*/ uint64_t ptr,
289
286
  RustCallStatus *uniffi_out_err
290
287
  );
291
288
  RustBuffer uniffi_bark_ffi_fn_method_wallet_board_all(
292
- void * ptr,
293
- void * onchain_wallet,
289
+ /*handle*/ uint64_t ptr,
290
+ /*handle*/ uint64_t onchain_wallet,
294
291
  RustCallStatus *uniffi_out_err
295
292
  );
296
293
  RustBuffer uniffi_bark_ffi_fn_method_wallet_board_amount(
297
- void * ptr,
298
- void * onchain_wallet,
294
+ /*handle*/ uint64_t ptr,
295
+ /*handle*/ uint64_t onchain_wallet,
299
296
  uint64_t amount_sats,
300
297
  RustCallStatus *uniffi_out_err
301
298
  );
302
299
  RustBuffer uniffi_bark_ffi_fn_method_wallet_bolt11_invoice(
303
- void * ptr,
300
+ /*handle*/ uint64_t ptr,
304
301
  uint64_t amount_sats,
305
302
  RustCallStatus *uniffi_out_err
306
303
  );
307
304
  RustBuffer uniffi_bark_ffi_fn_method_wallet_broadcast_tx(
308
- void * ptr,
305
+ /*handle*/ uint64_t ptr,
309
306
  RustBuffer tx_hex,
310
307
  RustCallStatus *uniffi_out_err
311
308
  );
312
309
  void uniffi_bark_ffi_fn_method_wallet_cancel_all_pending_rounds(
313
- void * ptr,
310
+ /*handle*/ uint64_t ptr,
314
311
  RustCallStatus *uniffi_out_err
315
312
  );
316
313
  void uniffi_bark_ffi_fn_method_wallet_cancel_pending_round(
317
- void * ptr,
314
+ /*handle*/ uint64_t ptr,
318
315
  uint32_t round_id,
319
316
  RustCallStatus *uniffi_out_err
320
317
  );
321
318
  RustBuffer uniffi_bark_ffi_fn_method_wallet_check_lightning_payment(
322
- void * ptr,
319
+ /*handle*/ uint64_t ptr,
323
320
  RustBuffer payment_hash,
324
321
  int8_t wait,
325
322
  RustCallStatus *uniffi_out_err
326
323
  );
327
324
  uint64_t uniffi_bark_ffi_fn_method_wallet_claimable_lightning_receive_balance_sats(
328
- void * ptr,
325
+ /*handle*/ uint64_t ptr,
329
326
  RustCallStatus *uniffi_out_err
330
327
  );
331
328
  RustBuffer uniffi_bark_ffi_fn_method_wallet_config(
332
- void * ptr,
329
+ /*handle*/ uint64_t ptr,
333
330
  RustCallStatus *uniffi_out_err
334
331
  );
335
332
  RustBuffer uniffi_bark_ffi_fn_method_wallet_drain_exits(
336
- void * ptr,
333
+ /*handle*/ uint64_t ptr,
337
334
  RustBuffer vtxo_ids,
338
335
  RustBuffer address,
339
336
  RustBuffer fee_rate_sat_per_vb,
340
337
  RustCallStatus *uniffi_out_err
341
338
  );
339
+ uint64_t uniffi_bark_ffi_fn_method_wallet_estimate_board_fee(
340
+ /*handle*/ uint64_t ptr,
341
+ uint64_t amount_sats,
342
+ RustCallStatus *uniffi_out_err
343
+ );
344
+ uint64_t uniffi_bark_ffi_fn_method_wallet_estimate_lightning_receive_fee(
345
+ /*handle*/ uint64_t ptr,
346
+ uint64_t amount_sats,
347
+ RustCallStatus *uniffi_out_err
348
+ );
349
+ uint64_t uniffi_bark_ffi_fn_method_wallet_estimate_lightning_send_fee(
350
+ /*handle*/ uint64_t ptr,
351
+ uint64_t amount_sats,
352
+ RustCallStatus *uniffi_out_err
353
+ );
354
+ uint64_t uniffi_bark_ffi_fn_method_wallet_estimate_offboard_fee(
355
+ /*handle*/ uint64_t ptr,
356
+ uint64_t amount_sats,
357
+ RustCallStatus *uniffi_out_err
358
+ );
359
+ uint64_t uniffi_bark_ffi_fn_method_wallet_estimate_refresh_fee(
360
+ /*handle*/ uint64_t ptr,
361
+ RustBuffer vtxo_ids,
362
+ RustCallStatus *uniffi_out_err
363
+ );
342
364
  RustBuffer uniffi_bark_ffi_fn_method_wallet_fingerprint(
343
- void * ptr,
365
+ /*handle*/ uint64_t ptr,
344
366
  RustCallStatus *uniffi_out_err
345
367
  );
346
368
  RustBuffer uniffi_bark_ffi_fn_method_wallet_get_exit_status(
347
- void * ptr,
369
+ /*handle*/ uint64_t ptr,
348
370
  RustBuffer vtxo_id,
349
371
  int8_t include_history,
350
372
  int8_t include_transactions,
351
373
  RustCallStatus *uniffi_out_err
352
374
  );
353
375
  RustBuffer uniffi_bark_ffi_fn_method_wallet_get_exit_vtxos(
354
- void * ptr,
376
+ /*handle*/ uint64_t ptr,
355
377
  RustCallStatus *uniffi_out_err
356
378
  );
357
379
  RustBuffer uniffi_bark_ffi_fn_method_wallet_get_expiring_vtxos(
358
- void * ptr,
380
+ /*handle*/ uint64_t ptr,
359
381
  uint32_t threshold_blocks,
360
382
  RustCallStatus *uniffi_out_err
361
383
  );
362
384
  RustBuffer uniffi_bark_ffi_fn_method_wallet_get_first_expiring_vtxo_blockheight(
363
- void * ptr,
385
+ /*handle*/ uint64_t ptr,
364
386
  RustCallStatus *uniffi_out_err
365
387
  );
366
388
  RustBuffer uniffi_bark_ffi_fn_method_wallet_get_next_required_refresh_blockheight(
367
- void * ptr,
389
+ /*handle*/ uint64_t ptr,
368
390
  RustCallStatus *uniffi_out_err
369
391
  );
370
392
  RustBuffer uniffi_bark_ffi_fn_method_wallet_get_vtxo_by_id(
371
- void * ptr,
393
+ /*handle*/ uint64_t ptr,
372
394
  RustBuffer vtxo_id,
373
395
  RustCallStatus *uniffi_out_err
374
396
  );
375
397
  RustBuffer uniffi_bark_ffi_fn_method_wallet_get_vtxos_to_refresh(
376
- void * ptr,
398
+ /*handle*/ uint64_t ptr,
377
399
  RustCallStatus *uniffi_out_err
378
400
  );
379
401
  int8_t uniffi_bark_ffi_fn_method_wallet_has_pending_exits(
380
- void * ptr,
402
+ /*handle*/ uint64_t ptr,
381
403
  RustCallStatus *uniffi_out_err
382
404
  );
383
405
  RustBuffer uniffi_bark_ffi_fn_method_wallet_history(
384
- void * ptr,
406
+ /*handle*/ uint64_t ptr,
407
+ RustCallStatus *uniffi_out_err
408
+ );
409
+ void uniffi_bark_ffi_fn_method_wallet_import_vtxo(
410
+ /*handle*/ uint64_t ptr,
411
+ RustBuffer vtxo_base64,
385
412
  RustCallStatus *uniffi_out_err
386
413
  );
387
414
  RustBuffer uniffi_bark_ffi_fn_method_wallet_lightning_receive_status(
388
- void * ptr,
415
+ /*handle*/ uint64_t ptr,
389
416
  RustBuffer payment_hash,
390
417
  RustCallStatus *uniffi_out_err
391
418
  );
392
419
  RustBuffer uniffi_bark_ffi_fn_method_wallet_list_claimable_exits(
393
- void * ptr,
420
+ /*handle*/ uint64_t ptr,
421
+ RustCallStatus *uniffi_out_err
422
+ );
423
+ RustBuffer uniffi_bark_ffi_fn_method_wallet_mailbox_authorization(
424
+ /*handle*/ uint64_t ptr,
394
425
  RustCallStatus *uniffi_out_err
395
426
  );
396
427
  RustBuffer uniffi_bark_ffi_fn_method_wallet_mailbox_identifier(
397
- void * ptr,
428
+ /*handle*/ uint64_t ptr,
398
429
  RustCallStatus *uniffi_out_err
399
430
  );
400
431
  void uniffi_bark_ffi_fn_method_wallet_maintenance(
401
- void * ptr,
432
+ /*handle*/ uint64_t ptr,
402
433
  RustCallStatus *uniffi_out_err
403
434
  );
404
435
  void uniffi_bark_ffi_fn_method_wallet_maintenance_delegated(
405
- void * ptr,
436
+ /*handle*/ uint64_t ptr,
406
437
  RustCallStatus *uniffi_out_err
407
438
  );
408
439
  RustBuffer uniffi_bark_ffi_fn_method_wallet_maintenance_refresh(
409
- void * ptr,
440
+ /*handle*/ uint64_t ptr,
410
441
  RustCallStatus *uniffi_out_err
411
442
  );
412
443
  void uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain(
413
- void * ptr,
414
- void * onchain_wallet,
444
+ /*handle*/ uint64_t ptr,
445
+ /*handle*/ uint64_t onchain_wallet,
415
446
  RustCallStatus *uniffi_out_err
416
447
  );
417
448
  void uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain_delegated(
418
- void * ptr,
419
- void * onchain_wallet,
449
+ /*handle*/ uint64_t ptr,
450
+ /*handle*/ uint64_t onchain_wallet,
420
451
  RustCallStatus *uniffi_out_err
421
452
  );
422
453
  RustBuffer uniffi_bark_ffi_fn_method_wallet_maybe_schedule_maintenance_refresh(
423
- void * ptr,
454
+ /*handle*/ uint64_t ptr,
424
455
  RustCallStatus *uniffi_out_err
425
456
  );
426
457
  RustBuffer uniffi_bark_ffi_fn_method_wallet_network(
427
- void * ptr,
458
+ /*handle*/ uint64_t ptr,
428
459
  RustCallStatus *uniffi_out_err
429
460
  );
430
461
  RustBuffer uniffi_bark_ffi_fn_method_wallet_new_address(
431
- void * ptr,
462
+ /*handle*/ uint64_t ptr,
432
463
  RustCallStatus *uniffi_out_err
433
464
  );
434
465
  RustBuffer uniffi_bark_ffi_fn_method_wallet_new_address_with_index(
435
- void * ptr,
466
+ /*handle*/ uint64_t ptr,
436
467
  RustCallStatus *uniffi_out_err
437
468
  );
438
469
  uint64_t uniffi_bark_ffi_fn_method_wallet_next_round_start_time(
439
- void * ptr,
470
+ /*handle*/ uint64_t ptr,
440
471
  RustCallStatus *uniffi_out_err
441
472
  );
442
473
  RustBuffer uniffi_bark_ffi_fn_method_wallet_offboard_all(
443
- void * ptr,
474
+ /*handle*/ uint64_t ptr,
444
475
  RustBuffer bitcoin_address,
445
476
  RustCallStatus *uniffi_out_err
446
477
  );
447
478
  RustBuffer uniffi_bark_ffi_fn_method_wallet_offboard_vtxos(
448
- void * ptr,
479
+ /*handle*/ uint64_t ptr,
449
480
  RustBuffer vtxo_ids,
450
481
  RustBuffer bitcoin_address,
451
482
  RustCallStatus *uniffi_out_err
452
483
  );
453
484
  RustBuffer uniffi_bark_ffi_fn_method_wallet_pay_lightning_address(
454
- void * ptr,
485
+ /*handle*/ uint64_t ptr,
455
486
  RustBuffer lightning_address,
456
487
  uint64_t amount_sats,
457
488
  RustBuffer comment,
458
489
  RustCallStatus *uniffi_out_err
459
490
  );
460
491
  RustBuffer uniffi_bark_ffi_fn_method_wallet_pay_lightning_invoice(
461
- void * ptr,
492
+ /*handle*/ uint64_t ptr,
462
493
  RustBuffer invoice,
463
494
  RustBuffer amount_sats,
464
495
  RustCallStatus *uniffi_out_err
465
496
  );
466
497
  RustBuffer uniffi_bark_ffi_fn_method_wallet_pay_lightning_offer(
467
- void * ptr,
498
+ /*handle*/ uint64_t ptr,
468
499
  RustBuffer offer,
469
500
  RustBuffer amount_sats,
470
501
  RustCallStatus *uniffi_out_err
471
502
  );
472
503
  RustBuffer uniffi_bark_ffi_fn_method_wallet_peak_address(
473
- void * ptr,
504
+ /*handle*/ uint64_t ptr,
474
505
  uint32_t index,
475
506
  RustCallStatus *uniffi_out_err
476
507
  );
477
508
  RustBuffer uniffi_bark_ffi_fn_method_wallet_pending_board_vtxos(
478
- void * ptr,
509
+ /*handle*/ uint64_t ptr,
479
510
  RustCallStatus *uniffi_out_err
480
511
  );
481
512
  RustBuffer uniffi_bark_ffi_fn_method_wallet_pending_boards(
482
- void * ptr,
513
+ /*handle*/ uint64_t ptr,
483
514
  RustCallStatus *uniffi_out_err
484
515
  );
485
516
  uint64_t uniffi_bark_ffi_fn_method_wallet_pending_exits_total_sats(
486
- void * ptr,
517
+ /*handle*/ uint64_t ptr,
487
518
  RustCallStatus *uniffi_out_err
488
519
  );
489
520
  RustBuffer uniffi_bark_ffi_fn_method_wallet_pending_lightning_receives(
490
- void * ptr,
521
+ /*handle*/ uint64_t ptr,
491
522
  RustCallStatus *uniffi_out_err
492
523
  );
493
524
  RustBuffer uniffi_bark_ffi_fn_method_wallet_pending_lightning_send_vtxos(
494
- void * ptr,
525
+ /*handle*/ uint64_t ptr,
495
526
  RustCallStatus *uniffi_out_err
496
527
  );
497
528
  RustBuffer uniffi_bark_ffi_fn_method_wallet_pending_lightning_sends(
498
- void * ptr,
529
+ /*handle*/ uint64_t ptr,
499
530
  RustCallStatus *uniffi_out_err
500
531
  );
501
532
  RustBuffer uniffi_bark_ffi_fn_method_wallet_pending_round_input_vtxos(
502
- void * ptr,
533
+ /*handle*/ uint64_t ptr,
503
534
  RustCallStatus *uniffi_out_err
504
535
  );
505
536
  RustBuffer uniffi_bark_ffi_fn_method_wallet_pending_round_states(
506
- void * ptr,
537
+ /*handle*/ uint64_t ptr,
507
538
  RustCallStatus *uniffi_out_err
508
539
  );
509
540
  RustBuffer uniffi_bark_ffi_fn_method_wallet_progress_exits(
510
- void * ptr,
511
- void * onchain_wallet,
541
+ /*handle*/ uint64_t ptr,
542
+ /*handle*/ uint64_t onchain_wallet,
512
543
  RustBuffer fee_rate_sat_per_vb,
513
544
  RustCallStatus *uniffi_out_err
514
545
  );
515
546
  void uniffi_bark_ffi_fn_method_wallet_progress_pending_rounds(
516
- void * ptr,
547
+ /*handle*/ uint64_t ptr,
517
548
  RustCallStatus *uniffi_out_err
518
549
  );
519
550
  RustBuffer uniffi_bark_ffi_fn_method_wallet_properties(
520
- void * ptr,
551
+ /*handle*/ uint64_t ptr,
521
552
  RustCallStatus *uniffi_out_err
522
553
  );
523
554
  void uniffi_bark_ffi_fn_method_wallet_refresh_server(
524
- void * ptr,
555
+ /*handle*/ uint64_t ptr,
525
556
  RustCallStatus *uniffi_out_err
526
557
  );
527
558
  RustBuffer uniffi_bark_ffi_fn_method_wallet_refresh_vtxos(
528
- void * ptr,
559
+ /*handle*/ uint64_t ptr,
529
560
  RustBuffer vtxo_ids,
530
561
  RustCallStatus *uniffi_out_err
531
562
  );
532
563
  RustBuffer uniffi_bark_ffi_fn_method_wallet_refresh_vtxos_delegated(
533
- void * ptr,
564
+ /*handle*/ uint64_t ptr,
534
565
  RustBuffer vtxo_ids,
535
566
  RustCallStatus *uniffi_out_err
536
567
  );
537
568
  RustBuffer uniffi_bark_ffi_fn_method_wallet_send_arkoor_payment(
538
- void * ptr,
569
+ /*handle*/ uint64_t ptr,
539
570
  RustBuffer ark_address,
540
571
  uint64_t amount_sats,
541
572
  RustCallStatus *uniffi_out_err
542
573
  );
543
574
  RustBuffer uniffi_bark_ffi_fn_method_wallet_send_onchain(
544
- void * ptr,
575
+ /*handle*/ uint64_t ptr,
545
576
  RustBuffer address,
546
577
  uint64_t amount_sats,
547
578
  RustCallStatus *uniffi_out_err
548
579
  );
549
580
  RustBuffer uniffi_bark_ffi_fn_method_wallet_sign_exit_claim_inputs(
550
- void * ptr,
581
+ /*handle*/ uint64_t ptr,
551
582
  RustBuffer psbt_base64,
552
583
  RustCallStatus *uniffi_out_err
553
584
  );
554
585
  RustBuffer uniffi_bark_ffi_fn_method_wallet_spendable_vtxos(
555
- void * ptr,
586
+ /*handle*/ uint64_t ptr,
556
587
  RustCallStatus *uniffi_out_err
557
588
  );
558
589
  void uniffi_bark_ffi_fn_method_wallet_start_exit_for_entire_wallet(
559
- void * ptr,
590
+ /*handle*/ uint64_t ptr,
560
591
  RustCallStatus *uniffi_out_err
561
592
  );
562
593
  void uniffi_bark_ffi_fn_method_wallet_start_exit_for_vtxos(
563
- void * ptr,
594
+ /*handle*/ uint64_t ptr,
564
595
  RustBuffer vtxo_ids,
565
596
  RustCallStatus *uniffi_out_err
566
597
  );
567
598
  void uniffi_bark_ffi_fn_method_wallet_sync(
568
- void * ptr,
599
+ /*handle*/ uint64_t ptr,
569
600
  RustCallStatus *uniffi_out_err
570
601
  );
571
602
  void uniffi_bark_ffi_fn_method_wallet_sync_exits(
572
- void * ptr,
573
- void * onchain_wallet,
603
+ /*handle*/ uint64_t ptr,
604
+ /*handle*/ uint64_t onchain_wallet,
574
605
  RustCallStatus *uniffi_out_err
575
606
  );
576
607
  void uniffi_bark_ffi_fn_method_wallet_sync_pending_boards(
577
- void * ptr,
608
+ /*handle*/ uint64_t ptr,
578
609
  RustCallStatus *uniffi_out_err
579
610
  );
580
611
  void uniffi_bark_ffi_fn_method_wallet_try_claim_all_lightning_receives(
581
- void * ptr,
612
+ /*handle*/ uint64_t ptr,
582
613
  int8_t wait,
583
614
  RustCallStatus *uniffi_out_err
584
615
  );
585
616
  void uniffi_bark_ffi_fn_method_wallet_try_claim_lightning_receive(
586
- void * ptr,
617
+ /*handle*/ uint64_t ptr,
587
618
  RustBuffer payment_hash,
588
619
  int8_t wait,
589
620
  RustCallStatus *uniffi_out_err
590
621
  );
591
622
  int8_t uniffi_bark_ffi_fn_method_wallet_validate_arkoor_address(
592
- void * ptr,
623
+ /*handle*/ uint64_t ptr,
593
624
  RustBuffer address,
594
625
  RustCallStatus *uniffi_out_err
595
626
  );
596
627
  RustBuffer uniffi_bark_ffi_fn_method_wallet_vtxos(
597
- void * ptr,
628
+ /*handle*/ uint64_t ptr,
598
629
  RustCallStatus *uniffi_out_err
599
630
  );
600
631
  void uniffi_bark_ffi_fn_init_callback_vtable_customonchainwalletcallbacks(
@@ -781,21 +812,6 @@ extern "C" {
781
812
  /*handle*/ uint64_t handle,
782
813
  RustCallStatus *uniffi_out_err
783
814
  );
784
- void ffi_bark_ffi_rust_future_poll_pointer(
785
- /*handle*/ uint64_t handle,
786
- UniffiRustFutureContinuationCallback callback,
787
- /*handle*/ uint64_t callback_data
788
- );
789
- void ffi_bark_ffi_rust_future_cancel_pointer(
790
- /*handle*/ uint64_t handle
791
- );
792
- void ffi_bark_ffi_rust_future_free_pointer(
793
- /*handle*/ uint64_t handle
794
- );
795
- void * ffi_bark_ffi_rust_future_complete_pointer(
796
- /*handle*/ uint64_t handle,
797
- RustCallStatus *uniffi_out_err
798
- );
799
815
  void ffi_bark_ffi_rust_future_poll_rust_buffer(
800
816
  /*handle*/ uint64_t handle,
801
817
  UniffiRustFutureContinuationCallback callback,
@@ -870,6 +886,16 @@ extern "C" {
870
886
  );
871
887
  uint16_t uniffi_bark_ffi_checksum_method_wallet_drain_exits(
872
888
  );
889
+ uint16_t uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee(
890
+ );
891
+ uint16_t uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee(
892
+ );
893
+ uint16_t uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee(
894
+ );
895
+ uint16_t uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee(
896
+ );
897
+ uint16_t uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee(
898
+ );
873
899
  uint16_t uniffi_bark_ffi_checksum_method_wallet_fingerprint(
874
900
  );
875
901
  uint16_t uniffi_bark_ffi_checksum_method_wallet_get_exit_status(
@@ -890,10 +916,14 @@ extern "C" {
890
916
  );
891
917
  uint16_t uniffi_bark_ffi_checksum_method_wallet_history(
892
918
  );
919
+ uint16_t uniffi_bark_ffi_checksum_method_wallet_import_vtxo(
920
+ );
893
921
  uint16_t uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status(
894
922
  );
895
923
  uint16_t uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits(
896
924
  );
925
+ uint16_t uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization(
926
+ );
897
927
  uint16_t uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier(
898
928
  );
899
929
  uint16_t uniffi_bark_ffi_checksum_method_wallet_maintenance(
@@ -1306,7 +1336,7 @@ namespace uniffi::bark::cb::rustfuturecontinuationcallback {
1306
1336
  rs_pollResult);
1307
1337
  }
1308
1338
 
1309
- static UniffiRustFutureContinuationCallback
1339
+ [[maybe_unused]] static UniffiRustFutureContinuationCallback
1310
1340
  makeCallbackFunction( // uniffi::bark::cb::rustfuturecontinuationcallback
1311
1341
  jsi::Runtime &rt,
1312
1342
  std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
@@ -1353,49 +1383,9 @@ namespace uniffi::bark::cb::rustfuturecontinuationcallback {
1353
1383
  rsLambda = nullptr;
1354
1384
  }
1355
1385
  } // namespace uniffi::bark::cb::rustfuturecontinuationcallback
1356
- // Implementation of callback function calling from JS to Rust ForeignFutureFree,
1357
- // passed from Rust to JS as part of async callbacks.
1358
- namespace uniffi::bark {
1359
- using CallInvoker = uniffi_runtime::UniffiCallInvoker;
1360
-
1361
- template <> struct Bridging<UniffiForeignFutureFree> {
1362
- static jsi::Value toJs(jsi::Runtime &rt, std::shared_ptr<CallInvoker> callInvoker, UniffiForeignFutureFree rsCallback) {
1363
- return jsi::Function::createFromHostFunction(
1364
- rt,
1365
- jsi::PropNameID::forAscii(rt, "--ForeignFutureFree"),
1366
- 1,
1367
- [rsCallback, callInvoker](
1368
- jsi::Runtime &rt,
1369
- const jsi::Value &thisValue,
1370
- const jsi::Value *arguments,
1371
- size_t count) -> jsi::Value
1372
- {
1373
- return intoRust(rt, callInvoker, thisValue, arguments, count, rsCallback);
1374
- }
1375
- );
1376
- }
1377
-
1378
- static jsi::Value intoRust(
1379
- jsi::Runtime &rt,
1380
- std::shared_ptr<CallInvoker> callInvoker,
1381
- const jsi::Value &thisValue,
1382
- const jsi::Value *args,
1383
- size_t count,
1384
- UniffiForeignFutureFree func) {
1385
- // Convert the arguments into the Rust, with Bridging<T>::fromJs,
1386
- // then call the rs_callback with those arguments.
1387
- func(uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0])
1388
- );
1389
-
1390
-
1391
- return jsi::Value::undefined();
1392
- }
1393
- };
1394
- } // namespace uniffi::bark
1395
- // Implementation of free callback function CallbackInterfaceFree
1396
-
1386
+ // Implementation of callback function calling from Rust to JS ForeignFutureDroppedCallback
1397
1387
 
1398
- // Callback function: uniffi::bark::st::foreignfuture::foreignfuture::free::UniffiCallbackInterfaceFree
1388
+ // Callback function: uniffi::bark::cb::foreignfuturedroppedcallback::UniffiForeignFutureDroppedCallback
1399
1389
  //
1400
1390
  // We have the following constraints:
1401
1391
  // - we need to pass a function pointer to Rust.
@@ -1407,7 +1397,7 @@ template <> struct Bridging<UniffiForeignFutureFree> {
1407
1397
  //
1408
1398
  // We then give the `callback` function pointer to Rust which will call the lambda sometime in the
1409
1399
  // future.
1410
- namespace uniffi::bark::st::foreignfuture::foreignfuture::free {
1400
+ namespace uniffi::bark::cb::foreignfuturedroppedcallback {
1411
1401
  using namespace facebook;
1412
1402
 
1413
1403
  // We need to store a lambda in a global so we can call it from
@@ -1438,7 +1428,7 @@ namespace uniffi::bark::st::foreignfuture::foreignfuture::free {
1438
1428
 
1439
1429
 
1440
1430
  } catch (const jsi::JSError &error) {
1441
- std::cout << "Error in callback UniffiCallbackInterfaceFree: "
1431
+ std::cout << "Error in callback UniffiForeignFutureDroppedCallback: "
1442
1432
  << error.what() << std::endl;
1443
1433
  throw error;
1444
1434
  }
@@ -1464,8 +1454,8 @@ namespace uniffi::bark::st::foreignfuture::foreignfuture::free {
1464
1454
  rs_handle);
1465
1455
  }
1466
1456
 
1467
- static UniffiCallbackInterfaceFree
1468
- makeCallbackFunction( // uniffi::bark::st::foreignfuture::foreignfuture::free
1457
+ [[maybe_unused]] static UniffiForeignFutureDroppedCallback
1458
+ makeCallbackFunction( // uniffi::bark::cb::foreignfuturedroppedcallback
1469
1459
  jsi::Runtime &rt,
1470
1460
  std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
1471
1461
  const jsi::Value &value) {
@@ -1508,7 +1498,9 @@ namespace uniffi::bark::st::foreignfuture::foreignfuture::free {
1508
1498
  // then the pointer will no longer be left dangling.
1509
1499
  rsLambda = nullptr;
1510
1500
  }
1511
- } // namespace uniffi::bark::st::foreignfuture::foreignfuture::free
1501
+ } // namespace uniffi::bark::cb::foreignfuturedroppedcallback
1502
+ // Implementation of free callback function CallbackInterfaceFree
1503
+
1512
1504
 
1513
1505
  // Callback function: uniffi::bark::st::vtablecallbackinterfacecustomonchainwalletcallbacks::vtablecallbackinterfacecustomonchainwalletcallbacks::free::UniffiCallbackInterfaceFree
1514
1506
  //
@@ -1579,7 +1571,7 @@ namespace uniffi::bark::st::vtablecallbackinterfacecustomonchainwalletcallbacks:
1579
1571
  rs_handle);
1580
1572
  }
1581
1573
 
1582
- static UniffiCallbackInterfaceFree
1574
+ [[maybe_unused]] static UniffiCallbackInterfaceFree
1583
1575
  makeCallbackFunction( // uniffi::bark::st::vtablecallbackinterfacecustomonchainwalletcallbacks::vtablecallbackinterfacecustomonchainwalletcallbacks::free
1584
1576
  jsi::Runtime &rt,
1585
1577
  std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
@@ -1628,28 +1620,28 @@ namespace uniffi::bark {
1628
1620
  using namespace facebook;
1629
1621
  using CallInvoker = uniffi_runtime::UniffiCallInvoker;
1630
1622
 
1631
- template <> struct Bridging<UniffiForeignFuture> {
1632
- static UniffiForeignFuture fromJs(jsi::Runtime &rt,
1623
+ template <> struct Bridging<UniffiForeignFutureDroppedCallbackStruct> {
1624
+ static UniffiForeignFutureDroppedCallbackStruct fromJs(jsi::Runtime &rt,
1633
1625
  std::shared_ptr<CallInvoker> callInvoker,
1634
1626
  const jsi::Value &jsValue
1635
1627
  ) {
1636
1628
  // Check if the input is an object
1637
1629
  if (!jsValue.isObject()) {
1638
- throw jsi::JSError(rt, "Expected an object for UniffiForeignFuture");
1630
+ throw jsi::JSError(rt, "Expected an object for UniffiForeignFutureDroppedCallbackStruct");
1639
1631
  }
1640
1632
 
1641
1633
  // Get the object from the jsi::Value
1642
1634
  auto jsObject = jsValue.getObject(rt);
1643
1635
 
1644
1636
  // Create the vtable struct
1645
- UniffiForeignFuture rsObject;
1637
+ UniffiForeignFutureDroppedCallbackStruct rsObject;
1646
1638
 
1647
1639
  // Create the vtable from the js callbacks.
1648
1640
  rsObject.handle = uniffi_jsi::Bridging<uint64_t>::fromJs(
1649
1641
  rt, callInvoker,
1650
1642
  jsObject.getProperty(rt, "handle")
1651
1643
  );
1652
- rsObject.free = uniffi::bark::st::foreignfuture::foreignfuture::free::makeCallbackFunction(
1644
+ rsObject.free = uniffi::bark::cb::foreignfuturedroppedcallback::makeCallbackFunction(
1653
1645
  rt, callInvoker, jsObject.getProperty(rt, "free")
1654
1646
  );
1655
1647
 
@@ -1662,21 +1654,21 @@ namespace uniffi::bark {
1662
1654
  using namespace facebook;
1663
1655
  using CallInvoker = uniffi_runtime::UniffiCallInvoker;
1664
1656
 
1665
- template <> struct Bridging<UniffiForeignFutureStructU8> {
1666
- static UniffiForeignFutureStructU8 fromJs(jsi::Runtime &rt,
1657
+ template <> struct Bridging<UniffiForeignFutureResultU8> {
1658
+ static UniffiForeignFutureResultU8 fromJs(jsi::Runtime &rt,
1667
1659
  std::shared_ptr<CallInvoker> callInvoker,
1668
1660
  const jsi::Value &jsValue
1669
1661
  ) {
1670
1662
  // Check if the input is an object
1671
1663
  if (!jsValue.isObject()) {
1672
- throw jsi::JSError(rt, "Expected an object for UniffiForeignFutureStructU8");
1664
+ throw jsi::JSError(rt, "Expected an object for UniffiForeignFutureResultU8");
1673
1665
  }
1674
1666
 
1675
1667
  // Get the object from the jsi::Value
1676
1668
  auto jsObject = jsValue.getObject(rt);
1677
1669
 
1678
1670
  // Create the vtable struct
1679
- UniffiForeignFutureStructU8 rsObject;
1671
+ UniffiForeignFutureResultU8 rsObject;
1680
1672
 
1681
1673
  // Create the vtable from the js callbacks.
1682
1674
  rsObject.return_value = uniffi_jsi::Bridging<uint8_t>::fromJs(
@@ -1724,7 +1716,7 @@ template <> struct Bridging<UniffiForeignFutureCompleteU8> {
1724
1716
  UniffiForeignFutureCompleteU8 func) {
1725
1717
  // Convert the arguments into the Rust, with Bridging<T>::fromJs,
1726
1718
  // then call the rs_callback with those arguments.
1727
- func(uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<UniffiForeignFutureStructU8>::fromJs(rt, callInvoker, args[1])
1719
+ func(uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<UniffiForeignFutureResultU8>::fromJs(rt, callInvoker, args[1])
1728
1720
  );
1729
1721
 
1730
1722
 
@@ -1736,21 +1728,21 @@ namespace uniffi::bark {
1736
1728
  using namespace facebook;
1737
1729
  using CallInvoker = uniffi_runtime::UniffiCallInvoker;
1738
1730
 
1739
- template <> struct Bridging<UniffiForeignFutureStructI8> {
1740
- static UniffiForeignFutureStructI8 fromJs(jsi::Runtime &rt,
1731
+ template <> struct Bridging<UniffiForeignFutureResultI8> {
1732
+ static UniffiForeignFutureResultI8 fromJs(jsi::Runtime &rt,
1741
1733
  std::shared_ptr<CallInvoker> callInvoker,
1742
1734
  const jsi::Value &jsValue
1743
1735
  ) {
1744
1736
  // Check if the input is an object
1745
1737
  if (!jsValue.isObject()) {
1746
- throw jsi::JSError(rt, "Expected an object for UniffiForeignFutureStructI8");
1738
+ throw jsi::JSError(rt, "Expected an object for UniffiForeignFutureResultI8");
1747
1739
  }
1748
1740
 
1749
1741
  // Get the object from the jsi::Value
1750
1742
  auto jsObject = jsValue.getObject(rt);
1751
1743
 
1752
1744
  // Create the vtable struct
1753
- UniffiForeignFutureStructI8 rsObject;
1745
+ UniffiForeignFutureResultI8 rsObject;
1754
1746
 
1755
1747
  // Create the vtable from the js callbacks.
1756
1748
  rsObject.return_value = uniffi_jsi::Bridging<int8_t>::fromJs(
@@ -1798,7 +1790,7 @@ template <> struct Bridging<UniffiForeignFutureCompleteI8> {
1798
1790
  UniffiForeignFutureCompleteI8 func) {
1799
1791
  // Convert the arguments into the Rust, with Bridging<T>::fromJs,
1800
1792
  // then call the rs_callback with those arguments.
1801
- func(uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<UniffiForeignFutureStructI8>::fromJs(rt, callInvoker, args[1])
1793
+ func(uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<UniffiForeignFutureResultI8>::fromJs(rt, callInvoker, args[1])
1802
1794
  );
1803
1795
 
1804
1796
 
@@ -1810,21 +1802,21 @@ namespace uniffi::bark {
1810
1802
  using namespace facebook;
1811
1803
  using CallInvoker = uniffi_runtime::UniffiCallInvoker;
1812
1804
 
1813
- template <> struct Bridging<UniffiForeignFutureStructU16> {
1814
- static UniffiForeignFutureStructU16 fromJs(jsi::Runtime &rt,
1805
+ template <> struct Bridging<UniffiForeignFutureResultU16> {
1806
+ static UniffiForeignFutureResultU16 fromJs(jsi::Runtime &rt,
1815
1807
  std::shared_ptr<CallInvoker> callInvoker,
1816
1808
  const jsi::Value &jsValue
1817
1809
  ) {
1818
1810
  // Check if the input is an object
1819
1811
  if (!jsValue.isObject()) {
1820
- throw jsi::JSError(rt, "Expected an object for UniffiForeignFutureStructU16");
1812
+ throw jsi::JSError(rt, "Expected an object for UniffiForeignFutureResultU16");
1821
1813
  }
1822
1814
 
1823
1815
  // Get the object from the jsi::Value
1824
1816
  auto jsObject = jsValue.getObject(rt);
1825
1817
 
1826
1818
  // Create the vtable struct
1827
- UniffiForeignFutureStructU16 rsObject;
1819
+ UniffiForeignFutureResultU16 rsObject;
1828
1820
 
1829
1821
  // Create the vtable from the js callbacks.
1830
1822
  rsObject.return_value = uniffi_jsi::Bridging<uint16_t>::fromJs(
@@ -1872,7 +1864,7 @@ template <> struct Bridging<UniffiForeignFutureCompleteU16> {
1872
1864
  UniffiForeignFutureCompleteU16 func) {
1873
1865
  // Convert the arguments into the Rust, with Bridging<T>::fromJs,
1874
1866
  // then call the rs_callback with those arguments.
1875
- func(uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<UniffiForeignFutureStructU16>::fromJs(rt, callInvoker, args[1])
1867
+ func(uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<UniffiForeignFutureResultU16>::fromJs(rt, callInvoker, args[1])
1876
1868
  );
1877
1869
 
1878
1870
 
@@ -1884,21 +1876,21 @@ namespace uniffi::bark {
1884
1876
  using namespace facebook;
1885
1877
  using CallInvoker = uniffi_runtime::UniffiCallInvoker;
1886
1878
 
1887
- template <> struct Bridging<UniffiForeignFutureStructI16> {
1888
- static UniffiForeignFutureStructI16 fromJs(jsi::Runtime &rt,
1879
+ template <> struct Bridging<UniffiForeignFutureResultI16> {
1880
+ static UniffiForeignFutureResultI16 fromJs(jsi::Runtime &rt,
1889
1881
  std::shared_ptr<CallInvoker> callInvoker,
1890
1882
  const jsi::Value &jsValue
1891
1883
  ) {
1892
1884
  // Check if the input is an object
1893
1885
  if (!jsValue.isObject()) {
1894
- throw jsi::JSError(rt, "Expected an object for UniffiForeignFutureStructI16");
1886
+ throw jsi::JSError(rt, "Expected an object for UniffiForeignFutureResultI16");
1895
1887
  }
1896
1888
 
1897
1889
  // Get the object from the jsi::Value
1898
1890
  auto jsObject = jsValue.getObject(rt);
1899
1891
 
1900
1892
  // Create the vtable struct
1901
- UniffiForeignFutureStructI16 rsObject;
1893
+ UniffiForeignFutureResultI16 rsObject;
1902
1894
 
1903
1895
  // Create the vtable from the js callbacks.
1904
1896
  rsObject.return_value = uniffi_jsi::Bridging<int16_t>::fromJs(
@@ -1946,7 +1938,7 @@ template <> struct Bridging<UniffiForeignFutureCompleteI16> {
1946
1938
  UniffiForeignFutureCompleteI16 func) {
1947
1939
  // Convert the arguments into the Rust, with Bridging<T>::fromJs,
1948
1940
  // then call the rs_callback with those arguments.
1949
- func(uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<UniffiForeignFutureStructI16>::fromJs(rt, callInvoker, args[1])
1941
+ func(uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<UniffiForeignFutureResultI16>::fromJs(rt, callInvoker, args[1])
1950
1942
  );
1951
1943
 
1952
1944
 
@@ -1958,21 +1950,21 @@ namespace uniffi::bark {
1958
1950
  using namespace facebook;
1959
1951
  using CallInvoker = uniffi_runtime::UniffiCallInvoker;
1960
1952
 
1961
- template <> struct Bridging<UniffiForeignFutureStructU32> {
1962
- static UniffiForeignFutureStructU32 fromJs(jsi::Runtime &rt,
1953
+ template <> struct Bridging<UniffiForeignFutureResultU32> {
1954
+ static UniffiForeignFutureResultU32 fromJs(jsi::Runtime &rt,
1963
1955
  std::shared_ptr<CallInvoker> callInvoker,
1964
1956
  const jsi::Value &jsValue
1965
1957
  ) {
1966
1958
  // Check if the input is an object
1967
1959
  if (!jsValue.isObject()) {
1968
- throw jsi::JSError(rt, "Expected an object for UniffiForeignFutureStructU32");
1960
+ throw jsi::JSError(rt, "Expected an object for UniffiForeignFutureResultU32");
1969
1961
  }
1970
1962
 
1971
1963
  // Get the object from the jsi::Value
1972
1964
  auto jsObject = jsValue.getObject(rt);
1973
1965
 
1974
1966
  // Create the vtable struct
1975
- UniffiForeignFutureStructU32 rsObject;
1967
+ UniffiForeignFutureResultU32 rsObject;
1976
1968
 
1977
1969
  // Create the vtable from the js callbacks.
1978
1970
  rsObject.return_value = uniffi_jsi::Bridging<uint32_t>::fromJs(
@@ -2020,7 +2012,7 @@ template <> struct Bridging<UniffiForeignFutureCompleteU32> {
2020
2012
  UniffiForeignFutureCompleteU32 func) {
2021
2013
  // Convert the arguments into the Rust, with Bridging<T>::fromJs,
2022
2014
  // then call the rs_callback with those arguments.
2023
- func(uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<UniffiForeignFutureStructU32>::fromJs(rt, callInvoker, args[1])
2015
+ func(uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<UniffiForeignFutureResultU32>::fromJs(rt, callInvoker, args[1])
2024
2016
  );
2025
2017
 
2026
2018
 
@@ -2032,21 +2024,21 @@ namespace uniffi::bark {
2032
2024
  using namespace facebook;
2033
2025
  using CallInvoker = uniffi_runtime::UniffiCallInvoker;
2034
2026
 
2035
- template <> struct Bridging<UniffiForeignFutureStructI32> {
2036
- static UniffiForeignFutureStructI32 fromJs(jsi::Runtime &rt,
2027
+ template <> struct Bridging<UniffiForeignFutureResultI32> {
2028
+ static UniffiForeignFutureResultI32 fromJs(jsi::Runtime &rt,
2037
2029
  std::shared_ptr<CallInvoker> callInvoker,
2038
2030
  const jsi::Value &jsValue
2039
2031
  ) {
2040
2032
  // Check if the input is an object
2041
2033
  if (!jsValue.isObject()) {
2042
- throw jsi::JSError(rt, "Expected an object for UniffiForeignFutureStructI32");
2034
+ throw jsi::JSError(rt, "Expected an object for UniffiForeignFutureResultI32");
2043
2035
  }
2044
2036
 
2045
2037
  // Get the object from the jsi::Value
2046
2038
  auto jsObject = jsValue.getObject(rt);
2047
2039
 
2048
2040
  // Create the vtable struct
2049
- UniffiForeignFutureStructI32 rsObject;
2041
+ UniffiForeignFutureResultI32 rsObject;
2050
2042
 
2051
2043
  // Create the vtable from the js callbacks.
2052
2044
  rsObject.return_value = uniffi_jsi::Bridging<int32_t>::fromJs(
@@ -2094,7 +2086,7 @@ template <> struct Bridging<UniffiForeignFutureCompleteI32> {
2094
2086
  UniffiForeignFutureCompleteI32 func) {
2095
2087
  // Convert the arguments into the Rust, with Bridging<T>::fromJs,
2096
2088
  // then call the rs_callback with those arguments.
2097
- func(uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<UniffiForeignFutureStructI32>::fromJs(rt, callInvoker, args[1])
2089
+ func(uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<UniffiForeignFutureResultI32>::fromJs(rt, callInvoker, args[1])
2098
2090
  );
2099
2091
 
2100
2092
 
@@ -2106,21 +2098,21 @@ namespace uniffi::bark {
2106
2098
  using namespace facebook;
2107
2099
  using CallInvoker = uniffi_runtime::UniffiCallInvoker;
2108
2100
 
2109
- template <> struct Bridging<UniffiForeignFutureStructU64> {
2110
- static UniffiForeignFutureStructU64 fromJs(jsi::Runtime &rt,
2101
+ template <> struct Bridging<UniffiForeignFutureResultU64> {
2102
+ static UniffiForeignFutureResultU64 fromJs(jsi::Runtime &rt,
2111
2103
  std::shared_ptr<CallInvoker> callInvoker,
2112
2104
  const jsi::Value &jsValue
2113
2105
  ) {
2114
2106
  // Check if the input is an object
2115
2107
  if (!jsValue.isObject()) {
2116
- throw jsi::JSError(rt, "Expected an object for UniffiForeignFutureStructU64");
2108
+ throw jsi::JSError(rt, "Expected an object for UniffiForeignFutureResultU64");
2117
2109
  }
2118
2110
 
2119
2111
  // Get the object from the jsi::Value
2120
2112
  auto jsObject = jsValue.getObject(rt);
2121
2113
 
2122
2114
  // Create the vtable struct
2123
- UniffiForeignFutureStructU64 rsObject;
2115
+ UniffiForeignFutureResultU64 rsObject;
2124
2116
 
2125
2117
  // Create the vtable from the js callbacks.
2126
2118
  rsObject.return_value = uniffi_jsi::Bridging<uint64_t>::fromJs(
@@ -2168,7 +2160,7 @@ template <> struct Bridging<UniffiForeignFutureCompleteU64> {
2168
2160
  UniffiForeignFutureCompleteU64 func) {
2169
2161
  // Convert the arguments into the Rust, with Bridging<T>::fromJs,
2170
2162
  // then call the rs_callback with those arguments.
2171
- func(uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<UniffiForeignFutureStructU64>::fromJs(rt, callInvoker, args[1])
2163
+ func(uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<UniffiForeignFutureResultU64>::fromJs(rt, callInvoker, args[1])
2172
2164
  );
2173
2165
 
2174
2166
 
@@ -2180,21 +2172,21 @@ namespace uniffi::bark {
2180
2172
  using namespace facebook;
2181
2173
  using CallInvoker = uniffi_runtime::UniffiCallInvoker;
2182
2174
 
2183
- template <> struct Bridging<UniffiForeignFutureStructI64> {
2184
- static UniffiForeignFutureStructI64 fromJs(jsi::Runtime &rt,
2175
+ template <> struct Bridging<UniffiForeignFutureResultI64> {
2176
+ static UniffiForeignFutureResultI64 fromJs(jsi::Runtime &rt,
2185
2177
  std::shared_ptr<CallInvoker> callInvoker,
2186
2178
  const jsi::Value &jsValue
2187
2179
  ) {
2188
2180
  // Check if the input is an object
2189
2181
  if (!jsValue.isObject()) {
2190
- throw jsi::JSError(rt, "Expected an object for UniffiForeignFutureStructI64");
2182
+ throw jsi::JSError(rt, "Expected an object for UniffiForeignFutureResultI64");
2191
2183
  }
2192
2184
 
2193
2185
  // Get the object from the jsi::Value
2194
2186
  auto jsObject = jsValue.getObject(rt);
2195
2187
 
2196
2188
  // Create the vtable struct
2197
- UniffiForeignFutureStructI64 rsObject;
2189
+ UniffiForeignFutureResultI64 rsObject;
2198
2190
 
2199
2191
  // Create the vtable from the js callbacks.
2200
2192
  rsObject.return_value = uniffi_jsi::Bridging<int64_t>::fromJs(
@@ -2242,7 +2234,7 @@ template <> struct Bridging<UniffiForeignFutureCompleteI64> {
2242
2234
  UniffiForeignFutureCompleteI64 func) {
2243
2235
  // Convert the arguments into the Rust, with Bridging<T>::fromJs,
2244
2236
  // then call the rs_callback with those arguments.
2245
- func(uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<UniffiForeignFutureStructI64>::fromJs(rt, callInvoker, args[1])
2237
+ func(uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<UniffiForeignFutureResultI64>::fromJs(rt, callInvoker, args[1])
2246
2238
  );
2247
2239
 
2248
2240
 
@@ -2254,21 +2246,21 @@ namespace uniffi::bark {
2254
2246
  using namespace facebook;
2255
2247
  using CallInvoker = uniffi_runtime::UniffiCallInvoker;
2256
2248
 
2257
- template <> struct Bridging<UniffiForeignFutureStructF32> {
2258
- static UniffiForeignFutureStructF32 fromJs(jsi::Runtime &rt,
2249
+ template <> struct Bridging<UniffiForeignFutureResultF32> {
2250
+ static UniffiForeignFutureResultF32 fromJs(jsi::Runtime &rt,
2259
2251
  std::shared_ptr<CallInvoker> callInvoker,
2260
2252
  const jsi::Value &jsValue
2261
2253
  ) {
2262
2254
  // Check if the input is an object
2263
2255
  if (!jsValue.isObject()) {
2264
- throw jsi::JSError(rt, "Expected an object for UniffiForeignFutureStructF32");
2256
+ throw jsi::JSError(rt, "Expected an object for UniffiForeignFutureResultF32");
2265
2257
  }
2266
2258
 
2267
2259
  // Get the object from the jsi::Value
2268
2260
  auto jsObject = jsValue.getObject(rt);
2269
2261
 
2270
2262
  // Create the vtable struct
2271
- UniffiForeignFutureStructF32 rsObject;
2263
+ UniffiForeignFutureResultF32 rsObject;
2272
2264
 
2273
2265
  // Create the vtable from the js callbacks.
2274
2266
  rsObject.return_value = uniffi_jsi::Bridging<float>::fromJs(
@@ -2316,7 +2308,7 @@ template <> struct Bridging<UniffiForeignFutureCompleteF32> {
2316
2308
  UniffiForeignFutureCompleteF32 func) {
2317
2309
  // Convert the arguments into the Rust, with Bridging<T>::fromJs,
2318
2310
  // then call the rs_callback with those arguments.
2319
- func(uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<UniffiForeignFutureStructF32>::fromJs(rt, callInvoker, args[1])
2311
+ func(uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<UniffiForeignFutureResultF32>::fromJs(rt, callInvoker, args[1])
2320
2312
  );
2321
2313
 
2322
2314
 
@@ -2328,21 +2320,21 @@ namespace uniffi::bark {
2328
2320
  using namespace facebook;
2329
2321
  using CallInvoker = uniffi_runtime::UniffiCallInvoker;
2330
2322
 
2331
- template <> struct Bridging<UniffiForeignFutureStructF64> {
2332
- static UniffiForeignFutureStructF64 fromJs(jsi::Runtime &rt,
2323
+ template <> struct Bridging<UniffiForeignFutureResultF64> {
2324
+ static UniffiForeignFutureResultF64 fromJs(jsi::Runtime &rt,
2333
2325
  std::shared_ptr<CallInvoker> callInvoker,
2334
2326
  const jsi::Value &jsValue
2335
2327
  ) {
2336
2328
  // Check if the input is an object
2337
2329
  if (!jsValue.isObject()) {
2338
- throw jsi::JSError(rt, "Expected an object for UniffiForeignFutureStructF64");
2330
+ throw jsi::JSError(rt, "Expected an object for UniffiForeignFutureResultF64");
2339
2331
  }
2340
2332
 
2341
2333
  // Get the object from the jsi::Value
2342
2334
  auto jsObject = jsValue.getObject(rt);
2343
2335
 
2344
2336
  // Create the vtable struct
2345
- UniffiForeignFutureStructF64 rsObject;
2337
+ UniffiForeignFutureResultF64 rsObject;
2346
2338
 
2347
2339
  // Create the vtable from the js callbacks.
2348
2340
  rsObject.return_value = uniffi_jsi::Bridging<double>::fromJs(
@@ -2390,7 +2382,7 @@ template <> struct Bridging<UniffiForeignFutureCompleteF64> {
2390
2382
  UniffiForeignFutureCompleteF64 func) {
2391
2383
  // Convert the arguments into the Rust, with Bridging<T>::fromJs,
2392
2384
  // then call the rs_callback with those arguments.
2393
- func(uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<UniffiForeignFutureStructF64>::fromJs(rt, callInvoker, args[1])
2385
+ func(uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<UniffiForeignFutureResultF64>::fromJs(rt, callInvoker, args[1])
2394
2386
  );
2395
2387
 
2396
2388
 
@@ -2402,95 +2394,21 @@ namespace uniffi::bark {
2402
2394
  using namespace facebook;
2403
2395
  using CallInvoker = uniffi_runtime::UniffiCallInvoker;
2404
2396
 
2405
- template <> struct Bridging<UniffiForeignFutureStructPointer> {
2406
- static UniffiForeignFutureStructPointer fromJs(jsi::Runtime &rt,
2397
+ template <> struct Bridging<UniffiForeignFutureResultRustBuffer> {
2398
+ static UniffiForeignFutureResultRustBuffer fromJs(jsi::Runtime &rt,
2407
2399
  std::shared_ptr<CallInvoker> callInvoker,
2408
2400
  const jsi::Value &jsValue
2409
2401
  ) {
2410
2402
  // Check if the input is an object
2411
2403
  if (!jsValue.isObject()) {
2412
- throw jsi::JSError(rt, "Expected an object for UniffiForeignFutureStructPointer");
2404
+ throw jsi::JSError(rt, "Expected an object for UniffiForeignFutureResultRustBuffer");
2413
2405
  }
2414
2406
 
2415
2407
  // Get the object from the jsi::Value
2416
2408
  auto jsObject = jsValue.getObject(rt);
2417
2409
 
2418
2410
  // Create the vtable struct
2419
- UniffiForeignFutureStructPointer rsObject;
2420
-
2421
- // Create the vtable from the js callbacks.
2422
- rsObject.return_value = uniffi_jsi::Bridging<void *>::fromJs(
2423
- rt, callInvoker,
2424
- jsObject.getProperty(rt, "returnValue")
2425
- );
2426
- rsObject.call_status = uniffi::bark::Bridging<RustCallStatus>::fromJs(
2427
- rt, callInvoker,
2428
- jsObject.getProperty(rt, "callStatus")
2429
- );
2430
-
2431
- return rsObject;
2432
- }
2433
- };
2434
-
2435
- } // namespace uniffi::bark
2436
- // Implementation of callback function calling from JS to Rust ForeignFutureCompletePointer,
2437
- // passed from Rust to JS as part of async callbacks.
2438
- namespace uniffi::bark {
2439
- using CallInvoker = uniffi_runtime::UniffiCallInvoker;
2440
-
2441
- template <> struct Bridging<UniffiForeignFutureCompletePointer> {
2442
- static jsi::Value toJs(jsi::Runtime &rt, std::shared_ptr<CallInvoker> callInvoker, UniffiForeignFutureCompletePointer rsCallback) {
2443
- return jsi::Function::createFromHostFunction(
2444
- rt,
2445
- jsi::PropNameID::forAscii(rt, "--ForeignFutureCompletePointer"),
2446
- 2,
2447
- [rsCallback, callInvoker](
2448
- jsi::Runtime &rt,
2449
- const jsi::Value &thisValue,
2450
- const jsi::Value *arguments,
2451
- size_t count) -> jsi::Value
2452
- {
2453
- return intoRust(rt, callInvoker, thisValue, arguments, count, rsCallback);
2454
- }
2455
- );
2456
- }
2457
-
2458
- static jsi::Value intoRust(
2459
- jsi::Runtime &rt,
2460
- std::shared_ptr<CallInvoker> callInvoker,
2461
- const jsi::Value &thisValue,
2462
- const jsi::Value *args,
2463
- size_t count,
2464
- UniffiForeignFutureCompletePointer func) {
2465
- // Convert the arguments into the Rust, with Bridging<T>::fromJs,
2466
- // then call the rs_callback with those arguments.
2467
- func(uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<UniffiForeignFutureStructPointer>::fromJs(rt, callInvoker, args[1])
2468
- );
2469
-
2470
-
2471
- return jsi::Value::undefined();
2472
- }
2473
- };
2474
- } // namespace uniffi::bark
2475
- namespace uniffi::bark {
2476
- using namespace facebook;
2477
- using CallInvoker = uniffi_runtime::UniffiCallInvoker;
2478
-
2479
- template <> struct Bridging<UniffiForeignFutureStructRustBuffer> {
2480
- static UniffiForeignFutureStructRustBuffer fromJs(jsi::Runtime &rt,
2481
- std::shared_ptr<CallInvoker> callInvoker,
2482
- const jsi::Value &jsValue
2483
- ) {
2484
- // Check if the input is an object
2485
- if (!jsValue.isObject()) {
2486
- throw jsi::JSError(rt, "Expected an object for UniffiForeignFutureStructRustBuffer");
2487
- }
2488
-
2489
- // Get the object from the jsi::Value
2490
- auto jsObject = jsValue.getObject(rt);
2491
-
2492
- // Create the vtable struct
2493
- UniffiForeignFutureStructRustBuffer rsObject;
2411
+ UniffiForeignFutureResultRustBuffer rsObject;
2494
2412
 
2495
2413
  // Create the vtable from the js callbacks.
2496
2414
  rsObject.return_value = uniffi::bark::Bridging<RustBuffer>::fromJs(
@@ -2538,7 +2456,7 @@ template <> struct Bridging<UniffiForeignFutureCompleteRustBuffer> {
2538
2456
  UniffiForeignFutureCompleteRustBuffer func) {
2539
2457
  // Convert the arguments into the Rust, with Bridging<T>::fromJs,
2540
2458
  // then call the rs_callback with those arguments.
2541
- func(uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<UniffiForeignFutureStructRustBuffer>::fromJs(rt, callInvoker, args[1])
2459
+ func(uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<UniffiForeignFutureResultRustBuffer>::fromJs(rt, callInvoker, args[1])
2542
2460
  );
2543
2461
 
2544
2462
 
@@ -2550,21 +2468,21 @@ namespace uniffi::bark {
2550
2468
  using namespace facebook;
2551
2469
  using CallInvoker = uniffi_runtime::UniffiCallInvoker;
2552
2470
 
2553
- template <> struct Bridging<UniffiForeignFutureStructVoid> {
2554
- static UniffiForeignFutureStructVoid fromJs(jsi::Runtime &rt,
2471
+ template <> struct Bridging<UniffiForeignFutureResultVoid> {
2472
+ static UniffiForeignFutureResultVoid fromJs(jsi::Runtime &rt,
2555
2473
  std::shared_ptr<CallInvoker> callInvoker,
2556
2474
  const jsi::Value &jsValue
2557
2475
  ) {
2558
2476
  // Check if the input is an object
2559
2477
  if (!jsValue.isObject()) {
2560
- throw jsi::JSError(rt, "Expected an object for UniffiForeignFutureStructVoid");
2478
+ throw jsi::JSError(rt, "Expected an object for UniffiForeignFutureResultVoid");
2561
2479
  }
2562
2480
 
2563
2481
  // Get the object from the jsi::Value
2564
2482
  auto jsObject = jsValue.getObject(rt);
2565
2483
 
2566
2484
  // Create the vtable struct
2567
- UniffiForeignFutureStructVoid rsObject;
2485
+ UniffiForeignFutureResultVoid rsObject;
2568
2486
 
2569
2487
  // Create the vtable from the js callbacks.
2570
2488
  rsObject.call_status = uniffi::bark::Bridging<RustCallStatus>::fromJs(
@@ -2608,7 +2526,7 @@ template <> struct Bridging<UniffiForeignFutureCompleteVoid> {
2608
2526
  UniffiForeignFutureCompleteVoid func) {
2609
2527
  // Convert the arguments into the Rust, with Bridging<T>::fromJs,
2610
2528
  // then call the rs_callback with those arguments.
2611
- func(uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<UniffiForeignFutureStructVoid>::fromJs(rt, callInvoker, args[1])
2529
+ func(uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<UniffiForeignFutureResultVoid>::fromJs(rt, callInvoker, args[1])
2612
2530
  );
2613
2531
 
2614
2532
 
@@ -2616,9 +2534,136 @@ template <> struct Bridging<UniffiForeignFutureCompleteVoid> {
2616
2534
  }
2617
2535
  };
2618
2536
  } // namespace uniffi::bark
2619
- // Implementation of callback function calling from Rust to JS CallbackInterfaceCustomOnchainWalletCallbacksMethod0
2537
+ // Implementation of CallbackInterfaceClone for vtable field uniffi_clone in VTableCallbackInterfaceCustomOnchainWalletCallbacks
2538
+
2539
+
2540
+ // Callback function: uniffi::bark::cb::callbackinterfaceclone::vtablecallbackinterfacecustomonchainwalletcallbacks::UniffiCallbackInterfaceClone
2541
+ //
2542
+ // We have the following constraints:
2543
+ // - we need to pass a function pointer to Rust.
2544
+ // - we need a jsi::Runtime and jsi::Function to call into JS.
2545
+ // - function pointers can't store state, so we can't use a lamda.
2546
+ //
2547
+ // For this, we store a lambda as a global, as `rsLambda`. The `callback` function calls
2548
+ // the lambda, which itself calls the `body` which then calls into JS.
2549
+ //
2550
+ // We then give the `callback` function pointer to Rust which will call the lambda sometime in the
2551
+ // future.
2552
+ namespace uniffi::bark::cb::callbackinterfaceclone::vtablecallbackinterfacecustomonchainwalletcallbacks {
2553
+ using namespace facebook;
2554
+
2555
+ // We need to store a lambda in a global so we can call it from
2556
+ // a function pointer. The function pointer is passed to Rust.
2557
+ static std::function<void(uint64_t, uint64_t*)> rsLambda = nullptr;
2558
+
2559
+ // This is the main body of the callback. It's called from the lambda,
2560
+ // which itself is called from the callback function which is passed to Rust.
2561
+ static void body(jsi::Runtime &rt,
2562
+ std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
2563
+ std::shared_ptr<jsi::Value> callbackValue
2564
+ ,uint64_t rs_handle
2565
+ , uint64_t* uniffi_direct_return) {
2566
+
2567
+ // Convert the arguments from Rust, into jsi::Values.
2568
+ // We'll use the Bridging class to do this…
2569
+ auto js_handle = uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, rs_handle);
2570
+
2571
+ // Now we are ready to call the callback.
2572
+ // We are already on the JS thread, because this `body` function was
2573
+ // invoked from the CallInvoker.
2574
+ try {
2575
+ // Getting the callback function
2576
+ auto cb = callbackValue->asObject(rt).asFunction(rt);
2577
+ auto uniffiResult = cb.call(rt, js_handle
2578
+ );
2579
+
2580
+
2581
+
2582
+
2583
+ // Write the direct return value back to the caller.
2584
+ if (uniffi_direct_return != nullptr) {
2585
+ *uniffi_direct_return = uniffi_jsi::Bridging<uint64_t>::fromJs(
2586
+ rt, callInvoker, uniffiResult
2587
+ );
2588
+ }
2589
+ } catch (const jsi::JSError &error) {
2590
+ std::cout << "Error in callback UniffiCallbackInterfaceClone: "
2591
+ << error.what() << std::endl;
2592
+ throw error;
2593
+ }
2594
+ }
2595
+
2596
+ static uint64_t callback(uint64_t rs_handle) {
2597
+ // If the runtime has shutdown, then there is no point in trying to
2598
+ // call into Javascript. BUT how do we tell if the runtime has shutdown?
2599
+ //
2600
+ // Answer: the module destructor calls into callback `cleanup` method,
2601
+ // which nulls out the rsLamda.
2602
+ //
2603
+ // If rsLamda is null, then there is no runtime to call into.
2604
+ if (rsLambda == nullptr) {
2605
+ // This only occurs when destructors are calling into Rust free/drop,
2606
+ // which causes the JS callback to be dropped.
2607
+ return 0;
2608
+ }
2609
+ uint64_t uniffi_result = 0;
2610
+
2611
+ // The runtime, the actual callback jsi::funtion, and the callInvoker
2612
+ // are all in the lambda.
2613
+ rsLambda(
2614
+ rs_handle,
2615
+ &uniffi_result);
2616
+ return uniffi_result;
2617
+ }
2618
+
2619
+ [[maybe_unused]] static UniffiCallbackInterfaceClone
2620
+ makeCallbackFunction( // uniffi::bark::cb::callbackinterfaceclone::vtablecallbackinterfacecustomonchainwalletcallbacks
2621
+ jsi::Runtime &rt,
2622
+ std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
2623
+ const jsi::Value &value) {
2624
+ if (rsLambda != nullptr) {
2625
+ // `makeCallbackFunction` is called in two circumstances:
2626
+ //
2627
+ // 1. at startup, when initializing callback interface vtables.
2628
+ // 2. when polling futures. This happens at least once per future that is
2629
+ // exposed to Javascript. We know that this is always the same function,
2630
+ // `uniffiFutureContinuationCallback` in `async-rust-calls.ts`.
2631
+ //
2632
+ // We can therefore return the callback function without making anything
2633
+ // new if we've been initialized already.
2634
+ return callback;
2635
+ }
2636
+ auto callbackFunction = value.asObject(rt).asFunction(rt);
2637
+ auto callbackValue = std::make_shared<jsi::Value>(rt, callbackFunction);
2638
+ rsLambda = [&rt, callInvoker, callbackValue](uint64_t rs_handle, uint64_t* uniffi_direct_return) {
2639
+ // We immediately make a lambda which will do the work of transforming the
2640
+ // arguments into JSI values and calling the callback.
2641
+ uniffi_runtime::UniffiCallFunc jsLambda = [
2642
+ callInvoker,
2643
+ callbackValue
2644
+ , rs_handle, uniffi_direct_return](jsi::Runtime &rt) mutable {
2645
+ body(rt, callInvoker, callbackValue
2646
+ , rs_handle, uniffi_direct_return);
2647
+ };
2648
+ // We'll then call that lambda from the callInvoker which will
2649
+ // look after calling it on the correct thread.
2650
+ callInvoker->invokeBlocking(rt, jsLambda);
2651
+ };
2652
+ return callback;
2653
+ }
2654
+
2655
+ // This method is called from the destructor of NativeBark, which only happens
2656
+ // when the jsi::Runtime is being destroyed.
2657
+ static void cleanup() {
2658
+ // The lambda holds a reference to the the Runtime, so when this is nulled out,
2659
+ // then the pointer will no longer be left dangling.
2660
+ rsLambda = nullptr;
2661
+ }
2662
+ } // namespace uniffi::bark::cb::callbackinterfaceclone::vtablecallbackinterfacecustomonchainwalletcallbacks
2663
+ // Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod0 for vtable field get_balance in VTableCallbackInterfaceCustomOnchainWalletCallbacks
2620
2664
 
2621
- // Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod0::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod0
2665
+
2666
+ // Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod0::vtablecallbackinterfacecustomonchainwalletcallbacks::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod0
2622
2667
  //
2623
2668
  // We have the following constraints:
2624
2669
  // - we need to pass a function pointer to Rust.
@@ -2630,7 +2675,7 @@ template <> struct Bridging<UniffiForeignFutureCompleteVoid> {
2630
2675
  //
2631
2676
  // We then give the `callback` function pointer to Rust which will call the lambda sometime in the
2632
2677
  // future.
2633
- namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod0 {
2678
+ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod0::vtablecallbackinterfacecustomonchainwalletcallbacks {
2634
2679
  using namespace facebook;
2635
2680
 
2636
2681
  // We need to store a lambda in a global so we can call it from
@@ -2667,7 +2712,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod0
2667
2712
  }
2668
2713
 
2669
2714
 
2670
- // return type is MutReference(UInt64)
2715
+ // return type is UInt64
2671
2716
  // Finally, we need to copy the return value back into the Rust pointer.
2672
2717
  *rs_uniffiOutReturn =
2673
2718
  uniffi_jsi::Bridging<
@@ -2703,8 +2748,8 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod0
2703
2748
  rs_uniffiOutReturn, uniffi_call_status);
2704
2749
  }
2705
2750
 
2706
- static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod0
2707
- makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod0
2751
+ [[maybe_unused]] static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod0
2752
+ makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod0::vtablecallbackinterfacecustomonchainwalletcallbacks
2708
2753
  jsi::Runtime &rt,
2709
2754
  std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
2710
2755
  const jsi::Value &value) {
@@ -2748,10 +2793,11 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod0
2748
2793
  // then the pointer will no longer be left dangling.
2749
2794
  rsLambda = nullptr;
2750
2795
  }
2751
- } // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod0
2752
- // Implementation of callback function calling from Rust to JS CallbackInterfaceCustomOnchainWalletCallbacksMethod1
2796
+ } // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod0::vtablecallbackinterfacecustomonchainwalletcallbacks
2797
+ // Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod1 for vtable field prepare_tx in VTableCallbackInterfaceCustomOnchainWalletCallbacks
2798
+
2753
2799
 
2754
- // Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod1::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod1
2800
+ // Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod1::vtablecallbackinterfacecustomonchainwalletcallbacks::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod1
2755
2801
  //
2756
2802
  // We have the following constraints:
2757
2803
  // - we need to pass a function pointer to Rust.
@@ -2763,7 +2809,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod0
2763
2809
  //
2764
2810
  // We then give the `callback` function pointer to Rust which will call the lambda sometime in the
2765
2811
  // future.
2766
- namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod1 {
2812
+ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod1::vtablecallbackinterfacecustomonchainwalletcallbacks {
2767
2813
  using namespace facebook;
2768
2814
 
2769
2815
  // We need to store a lambda in a global so we can call it from
@@ -2804,7 +2850,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod1
2804
2850
  }
2805
2851
 
2806
2852
 
2807
- // return type is MutReference(RustBuffer(None))
2853
+ // return type is RustBuffer(None)
2808
2854
  // Finally, we need to copy the return value back into the Rust pointer.
2809
2855
  *rs_uniffiOutReturn =
2810
2856
  uniffi::bark::Bridging<
@@ -2842,8 +2888,8 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod1
2842
2888
  rs_uniffiOutReturn, uniffi_call_status);
2843
2889
  }
2844
2890
 
2845
- static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod1
2846
- makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod1
2891
+ [[maybe_unused]] static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod1
2892
+ makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod1::vtablecallbackinterfacecustomonchainwalletcallbacks
2847
2893
  jsi::Runtime &rt,
2848
2894
  std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
2849
2895
  const jsi::Value &value) {
@@ -2891,10 +2937,11 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod1
2891
2937
  // then the pointer will no longer be left dangling.
2892
2938
  rsLambda = nullptr;
2893
2939
  }
2894
- } // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod1
2895
- // Implementation of callback function calling from Rust to JS CallbackInterfaceCustomOnchainWalletCallbacksMethod2
2940
+ } // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod1::vtablecallbackinterfacecustomonchainwalletcallbacks
2941
+ // Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod2 for vtable field prepare_drain_tx in VTableCallbackInterfaceCustomOnchainWalletCallbacks
2942
+
2896
2943
 
2897
- // Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod2::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod2
2944
+ // Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod2::vtablecallbackinterfacecustomonchainwalletcallbacks::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod2
2898
2945
  //
2899
2946
  // We have the following constraints:
2900
2947
  // - we need to pass a function pointer to Rust.
@@ -2906,7 +2953,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod1
2906
2953
  //
2907
2954
  // We then give the `callback` function pointer to Rust which will call the lambda sometime in the
2908
2955
  // future.
2909
- namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod2 {
2956
+ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod2::vtablecallbackinterfacecustomonchainwalletcallbacks {
2910
2957
  using namespace facebook;
2911
2958
 
2912
2959
  // We need to store a lambda in a global so we can call it from
@@ -2947,7 +2994,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod2
2947
2994
  }
2948
2995
 
2949
2996
 
2950
- // return type is MutReference(RustBuffer(None))
2997
+ // return type is RustBuffer(None)
2951
2998
  // Finally, we need to copy the return value back into the Rust pointer.
2952
2999
  *rs_uniffiOutReturn =
2953
3000
  uniffi::bark::Bridging<
@@ -2985,8 +3032,8 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod2
2985
3032
  rs_uniffiOutReturn, uniffi_call_status);
2986
3033
  }
2987
3034
 
2988
- static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod2
2989
- makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod2
3035
+ [[maybe_unused]] static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod2
3036
+ makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod2::vtablecallbackinterfacecustomonchainwalletcallbacks
2990
3037
  jsi::Runtime &rt,
2991
3038
  std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
2992
3039
  const jsi::Value &value) {
@@ -3034,10 +3081,11 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod2
3034
3081
  // then the pointer will no longer be left dangling.
3035
3082
  rsLambda = nullptr;
3036
3083
  }
3037
- } // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod2
3038
- // Implementation of callback function calling from Rust to JS CallbackInterfaceCustomOnchainWalletCallbacksMethod3
3084
+ } // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod2::vtablecallbackinterfacecustomonchainwalletcallbacks
3085
+ // Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod3 for vtable field finish_tx in VTableCallbackInterfaceCustomOnchainWalletCallbacks
3039
3086
 
3040
- // Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod3::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod3
3087
+
3088
+ // Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod3::vtablecallbackinterfacecustomonchainwalletcallbacks::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod3
3041
3089
  //
3042
3090
  // We have the following constraints:
3043
3091
  // - we need to pass a function pointer to Rust.
@@ -3049,7 +3097,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod2
3049
3097
  //
3050
3098
  // We then give the `callback` function pointer to Rust which will call the lambda sometime in the
3051
3099
  // future.
3052
- namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod3 {
3100
+ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod3::vtablecallbackinterfacecustomonchainwalletcallbacks {
3053
3101
  using namespace facebook;
3054
3102
 
3055
3103
  // We need to store a lambda in a global so we can call it from
@@ -3088,7 +3136,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod3
3088
3136
  }
3089
3137
 
3090
3138
 
3091
- // return type is MutReference(RustBuffer(None))
3139
+ // return type is RustBuffer(None)
3092
3140
  // Finally, we need to copy the return value back into the Rust pointer.
3093
3141
  *rs_uniffiOutReturn =
3094
3142
  uniffi::bark::Bridging<
@@ -3125,8 +3173,8 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod3
3125
3173
  rs_uniffiOutReturn, uniffi_call_status);
3126
3174
  }
3127
3175
 
3128
- static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod3
3129
- makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod3
3176
+ [[maybe_unused]] static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod3
3177
+ makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod3::vtablecallbackinterfacecustomonchainwalletcallbacks
3130
3178
  jsi::Runtime &rt,
3131
3179
  std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
3132
3180
  const jsi::Value &value) {
@@ -3172,10 +3220,11 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod3
3172
3220
  // then the pointer will no longer be left dangling.
3173
3221
  rsLambda = nullptr;
3174
3222
  }
3175
- } // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod3
3176
- // Implementation of callback function calling from Rust to JS CallbackInterfaceCustomOnchainWalletCallbacksMethod4
3223
+ } // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod3::vtablecallbackinterfacecustomonchainwalletcallbacks
3224
+ // Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod4 for vtable field get_wallet_tx in VTableCallbackInterfaceCustomOnchainWalletCallbacks
3225
+
3177
3226
 
3178
- // Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod4
3227
+ // Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4::vtablecallbackinterfacecustomonchainwalletcallbacks::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod4
3179
3228
  //
3180
3229
  // We have the following constraints:
3181
3230
  // - we need to pass a function pointer to Rust.
@@ -3187,7 +3236,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod3
3187
3236
  //
3188
3237
  // We then give the `callback` function pointer to Rust which will call the lambda sometime in the
3189
3238
  // future.
3190
- namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4 {
3239
+ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4::vtablecallbackinterfacecustomonchainwalletcallbacks {
3191
3240
  using namespace facebook;
3192
3241
 
3193
3242
  // We need to store a lambda in a global so we can call it from
@@ -3226,7 +3275,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4
3226
3275
  }
3227
3276
 
3228
3277
 
3229
- // return type is MutReference(RustBuffer(None))
3278
+ // return type is RustBuffer(None)
3230
3279
  // Finally, we need to copy the return value back into the Rust pointer.
3231
3280
  *rs_uniffiOutReturn =
3232
3281
  uniffi::bark::Bridging<
@@ -3263,8 +3312,8 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4
3263
3312
  rs_uniffiOutReturn, uniffi_call_status);
3264
3313
  }
3265
3314
 
3266
- static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod4
3267
- makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4
3315
+ [[maybe_unused]] static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod4
3316
+ makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4::vtablecallbackinterfacecustomonchainwalletcallbacks
3268
3317
  jsi::Runtime &rt,
3269
3318
  std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
3270
3319
  const jsi::Value &value) {
@@ -3310,10 +3359,11 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4
3310
3359
  // then the pointer will no longer be left dangling.
3311
3360
  rsLambda = nullptr;
3312
3361
  }
3313
- } // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4
3314
- // Implementation of callback function calling from Rust to JS CallbackInterfaceCustomOnchainWalletCallbacksMethod5
3362
+ } // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4::vtablecallbackinterfacecustomonchainwalletcallbacks
3363
+ // Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod5 for vtable field get_wallet_tx_confirmed_block in VTableCallbackInterfaceCustomOnchainWalletCallbacks
3315
3364
 
3316
- // Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod5
3365
+
3366
+ // Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5::vtablecallbackinterfacecustomonchainwalletcallbacks::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod5
3317
3367
  //
3318
3368
  // We have the following constraints:
3319
3369
  // - we need to pass a function pointer to Rust.
@@ -3325,7 +3375,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4
3325
3375
  //
3326
3376
  // We then give the `callback` function pointer to Rust which will call the lambda sometime in the
3327
3377
  // future.
3328
- namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5 {
3378
+ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5::vtablecallbackinterfacecustomonchainwalletcallbacks {
3329
3379
  using namespace facebook;
3330
3380
 
3331
3381
  // We need to store a lambda in a global so we can call it from
@@ -3364,7 +3414,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5
3364
3414
  }
3365
3415
 
3366
3416
 
3367
- // return type is MutReference(RustBuffer(None))
3417
+ // return type is RustBuffer(None)
3368
3418
  // Finally, we need to copy the return value back into the Rust pointer.
3369
3419
  *rs_uniffiOutReturn =
3370
3420
  uniffi::bark::Bridging<
@@ -3401,8 +3451,8 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5
3401
3451
  rs_uniffiOutReturn, uniffi_call_status);
3402
3452
  }
3403
3453
 
3404
- static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod5
3405
- makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5
3454
+ [[maybe_unused]] static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod5
3455
+ makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5::vtablecallbackinterfacecustomonchainwalletcallbacks
3406
3456
  jsi::Runtime &rt,
3407
3457
  std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
3408
3458
  const jsi::Value &value) {
@@ -3448,10 +3498,11 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5
3448
3498
  // then the pointer will no longer be left dangling.
3449
3499
  rsLambda = nullptr;
3450
3500
  }
3451
- } // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5
3452
- // Implementation of callback function calling from Rust to JS CallbackInterfaceCustomOnchainWalletCallbacksMethod6
3501
+ } // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5::vtablecallbackinterfacecustomonchainwalletcallbacks
3502
+ // Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod6 for vtable field get_spending_tx in VTableCallbackInterfaceCustomOnchainWalletCallbacks
3503
+
3453
3504
 
3454
- // Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod6
3505
+ // Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::vtablecallbackinterfacecustomonchainwalletcallbacks::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod6
3455
3506
  //
3456
3507
  // We have the following constraints:
3457
3508
  // - we need to pass a function pointer to Rust.
@@ -3463,7 +3514,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5
3463
3514
  //
3464
3515
  // We then give the `callback` function pointer to Rust which will call the lambda sometime in the
3465
3516
  // future.
3466
- namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6 {
3517
+ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::vtablecallbackinterfacecustomonchainwalletcallbacks {
3467
3518
  using namespace facebook;
3468
3519
 
3469
3520
  // We need to store a lambda in a global so we can call it from
@@ -3502,7 +3553,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6
3502
3553
  }
3503
3554
 
3504
3555
 
3505
- // return type is MutReference(RustBuffer(None))
3556
+ // return type is RustBuffer(None)
3506
3557
  // Finally, we need to copy the return value back into the Rust pointer.
3507
3558
  *rs_uniffiOutReturn =
3508
3559
  uniffi::bark::Bridging<
@@ -3539,8 +3590,8 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6
3539
3590
  rs_uniffiOutReturn, uniffi_call_status);
3540
3591
  }
3541
3592
 
3542
- static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod6
3543
- makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6
3593
+ [[maybe_unused]] static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod6
3594
+ makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::vtablecallbackinterfacecustomonchainwalletcallbacks
3544
3595
  jsi::Runtime &rt,
3545
3596
  std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
3546
3597
  const jsi::Value &value) {
@@ -3586,10 +3637,11 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6
3586
3637
  // then the pointer will no longer be left dangling.
3587
3638
  rsLambda = nullptr;
3588
3639
  }
3589
- } // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6
3590
- // Implementation of callback function calling from Rust to JS CallbackInterfaceCustomOnchainWalletCallbacksMethod7
3640
+ } // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::vtablecallbackinterfacecustomonchainwalletcallbacks
3641
+ // Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod7 for vtable field make_signed_p2a_cpfp in VTableCallbackInterfaceCustomOnchainWalletCallbacks
3591
3642
 
3592
- // Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7
3643
+
3644
+ // Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7
3593
3645
  //
3594
3646
  // We have the following constraints:
3595
3647
  // - we need to pass a function pointer to Rust.
@@ -3601,7 +3653,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6
3601
3653
  //
3602
3654
  // We then give the `callback` function pointer to Rust which will call the lambda sometime in the
3603
3655
  // future.
3604
- namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7 {
3656
+ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks {
3605
3657
  using namespace facebook;
3606
3658
 
3607
3659
  // We need to store a lambda in a global so we can call it from
@@ -3640,7 +3692,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7
3640
3692
  }
3641
3693
 
3642
3694
 
3643
- // return type is MutReference(RustBuffer(None))
3695
+ // return type is RustBuffer(None)
3644
3696
  // Finally, we need to copy the return value back into the Rust pointer.
3645
3697
  *rs_uniffiOutReturn =
3646
3698
  uniffi::bark::Bridging<
@@ -3677,8 +3729,8 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7
3677
3729
  rs_uniffiOutReturn, uniffi_call_status);
3678
3730
  }
3679
3731
 
3680
- static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7
3681
- makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7
3732
+ [[maybe_unused]] static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7
3733
+ makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks
3682
3734
  jsi::Runtime &rt,
3683
3735
  std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
3684
3736
  const jsi::Value &value) {
@@ -3724,10 +3776,11 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7
3724
3776
  // then the pointer will no longer be left dangling.
3725
3777
  rsLambda = nullptr;
3726
3778
  }
3727
- } // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7
3728
- // Implementation of callback function calling from Rust to JS CallbackInterfaceCustomOnchainWalletCallbacksMethod8
3779
+ } // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks
3780
+ // Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod8 for vtable field store_signed_p2a_cpfp in VTableCallbackInterfaceCustomOnchainWalletCallbacks
3781
+
3729
3782
 
3730
- // Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod8
3783
+ // Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod8
3731
3784
  //
3732
3785
  // We have the following constraints:
3733
3786
  // - we need to pass a function pointer to Rust.
@@ -3739,7 +3792,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7
3739
3792
  //
3740
3793
  // We then give the `callback` function pointer to Rust which will call the lambda sometime in the
3741
3794
  // future.
3742
- namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8 {
3795
+ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks {
3743
3796
  using namespace facebook;
3744
3797
 
3745
3798
  // We need to store a lambda in a global so we can call it from
@@ -3807,8 +3860,8 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8
3807
3860
  rs_uniffiOutReturn, uniffi_call_status);
3808
3861
  }
3809
3862
 
3810
- static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod8
3811
- makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8
3863
+ [[maybe_unused]] static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod8
3864
+ makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks
3812
3865
  jsi::Runtime &rt,
3813
3866
  std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
3814
3867
  const jsi::Value &value) {
@@ -3854,7 +3907,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8
3854
3907
  // then the pointer will no longer be left dangling.
3855
3908
  rsLambda = nullptr;
3856
3909
  }
3857
- } // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8
3910
+ } // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks
3858
3911
  namespace uniffi::bark {
3859
3912
  using namespace facebook;
3860
3913
  using CallInvoker = uniffi_runtime::UniffiCallInvoker;
@@ -3876,36 +3929,39 @@ template <> struct Bridging<UniffiVTableCallbackInterfaceCustomOnchainWalletCall
3876
3929
  UniffiVTableCallbackInterfaceCustomOnchainWalletCallbacks rsObject;
3877
3930
 
3878
3931
  // Create the vtable from the js callbacks.
3879
- rsObject.get_balance = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod0::makeCallbackFunction(
3932
+ rsObject.uniffi_free = uniffi::bark::st::vtablecallbackinterfacecustomonchainwalletcallbacks::vtablecallbackinterfacecustomonchainwalletcallbacks::free::makeCallbackFunction(
3933
+ rt, callInvoker, jsObject.getProperty(rt, "uniffiFree")
3934
+ );
3935
+ rsObject.uniffi_clone = uniffi::bark::cb::callbackinterfaceclone::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
3936
+ rt, callInvoker, jsObject.getProperty(rt, "uniffiClone")
3937
+ );
3938
+ rsObject.get_balance = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod0::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
3880
3939
  rt, callInvoker, jsObject.getProperty(rt, "getBalance")
3881
3940
  );
3882
- rsObject.prepare_tx = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod1::makeCallbackFunction(
3941
+ rsObject.prepare_tx = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod1::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
3883
3942
  rt, callInvoker, jsObject.getProperty(rt, "prepareTx")
3884
3943
  );
3885
- rsObject.prepare_drain_tx = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod2::makeCallbackFunction(
3944
+ rsObject.prepare_drain_tx = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod2::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
3886
3945
  rt, callInvoker, jsObject.getProperty(rt, "prepareDrainTx")
3887
3946
  );
3888
- rsObject.finish_tx = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod3::makeCallbackFunction(
3947
+ rsObject.finish_tx = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod3::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
3889
3948
  rt, callInvoker, jsObject.getProperty(rt, "finishTx")
3890
3949
  );
3891
- rsObject.get_wallet_tx = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4::makeCallbackFunction(
3950
+ rsObject.get_wallet_tx = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
3892
3951
  rt, callInvoker, jsObject.getProperty(rt, "getWalletTx")
3893
3952
  );
3894
- rsObject.get_wallet_tx_confirmed_block = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5::makeCallbackFunction(
3953
+ rsObject.get_wallet_tx_confirmed_block = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
3895
3954
  rt, callInvoker, jsObject.getProperty(rt, "getWalletTxConfirmedBlock")
3896
3955
  );
3897
- rsObject.get_spending_tx = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::makeCallbackFunction(
3956
+ rsObject.get_spending_tx = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
3898
3957
  rt, callInvoker, jsObject.getProperty(rt, "getSpendingTx")
3899
3958
  );
3900
- rsObject.make_signed_p2a_cpfp = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::makeCallbackFunction(
3959
+ rsObject.make_signed_p2a_cpfp = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
3901
3960
  rt, callInvoker, jsObject.getProperty(rt, "makeSignedP2aCpfp")
3902
3961
  );
3903
- rsObject.store_signed_p2a_cpfp = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::makeCallbackFunction(
3962
+ rsObject.store_signed_p2a_cpfp = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
3904
3963
  rt, callInvoker, jsObject.getProperty(rt, "storeSignedP2aCpfp")
3905
3964
  );
3906
- rsObject.uniffi_free = uniffi::bark::st::vtablecallbackinterfacecustomonchainwalletcallbacks::vtablecallbackinterfacecustomonchainwalletcallbacks::free::makeCallbackFunction(
3907
- rt, callInvoker, jsObject.getProperty(rt, "uniffiFree")
3908
- );
3909
3965
 
3910
3966
  return rsObject;
3911
3967
  }
@@ -4191,6 +4247,46 @@ NativeBark::NativeBark(
4191
4247
  return this->cpp_uniffi_bark_ffi_fn_method_wallet_drain_exits(rt, thisVal, args, count);
4192
4248
  }
4193
4249
  );
4250
+ props["ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_board_fee"] = jsi::Function::createFromHostFunction(
4251
+ rt,
4252
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_board_fee"),
4253
+ 2,
4254
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
4255
+ return this->cpp_uniffi_bark_ffi_fn_method_wallet_estimate_board_fee(rt, thisVal, args, count);
4256
+ }
4257
+ );
4258
+ props["ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_lightning_receive_fee"] = jsi::Function::createFromHostFunction(
4259
+ rt,
4260
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_lightning_receive_fee"),
4261
+ 2,
4262
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
4263
+ return this->cpp_uniffi_bark_ffi_fn_method_wallet_estimate_lightning_receive_fee(rt, thisVal, args, count);
4264
+ }
4265
+ );
4266
+ props["ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_lightning_send_fee"] = jsi::Function::createFromHostFunction(
4267
+ rt,
4268
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_lightning_send_fee"),
4269
+ 2,
4270
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
4271
+ return this->cpp_uniffi_bark_ffi_fn_method_wallet_estimate_lightning_send_fee(rt, thisVal, args, count);
4272
+ }
4273
+ );
4274
+ props["ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_offboard_fee"] = jsi::Function::createFromHostFunction(
4275
+ rt,
4276
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_offboard_fee"),
4277
+ 2,
4278
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
4279
+ return this->cpp_uniffi_bark_ffi_fn_method_wallet_estimate_offboard_fee(rt, thisVal, args, count);
4280
+ }
4281
+ );
4282
+ props["ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_refresh_fee"] = jsi::Function::createFromHostFunction(
4283
+ rt,
4284
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_refresh_fee"),
4285
+ 2,
4286
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
4287
+ return this->cpp_uniffi_bark_ffi_fn_method_wallet_estimate_refresh_fee(rt, thisVal, args, count);
4288
+ }
4289
+ );
4194
4290
  props["ubrn_uniffi_bark_ffi_fn_method_wallet_fingerprint"] = jsi::Function::createFromHostFunction(
4195
4291
  rt,
4196
4292
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_fingerprint"),
@@ -4271,6 +4367,14 @@ NativeBark::NativeBark(
4271
4367
  return this->cpp_uniffi_bark_ffi_fn_method_wallet_history(rt, thisVal, args, count);
4272
4368
  }
4273
4369
  );
4370
+ props["ubrn_uniffi_bark_ffi_fn_method_wallet_import_vtxo"] = jsi::Function::createFromHostFunction(
4371
+ rt,
4372
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_import_vtxo"),
4373
+ 2,
4374
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
4375
+ return this->cpp_uniffi_bark_ffi_fn_method_wallet_import_vtxo(rt, thisVal, args, count);
4376
+ }
4377
+ );
4274
4378
  props["ubrn_uniffi_bark_ffi_fn_method_wallet_lightning_receive_status"] = jsi::Function::createFromHostFunction(
4275
4379
  rt,
4276
4380
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_lightning_receive_status"),
@@ -4287,6 +4391,14 @@ NativeBark::NativeBark(
4287
4391
  return this->cpp_uniffi_bark_ffi_fn_method_wallet_list_claimable_exits(rt, thisVal, args, count);
4288
4392
  }
4289
4393
  );
4394
+ props["ubrn_uniffi_bark_ffi_fn_method_wallet_mailbox_authorization"] = jsi::Function::createFromHostFunction(
4395
+ rt,
4396
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_mailbox_authorization"),
4397
+ 1,
4398
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
4399
+ return this->cpp_uniffi_bark_ffi_fn_method_wallet_mailbox_authorization(rt, thisVal, args, count);
4400
+ }
4401
+ );
4290
4402
  props["ubrn_uniffi_bark_ffi_fn_method_wallet_mailbox_identifier"] = jsi::Function::createFromHostFunction(
4291
4403
  rt,
4292
4404
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_mailbox_identifier"),
@@ -4855,6 +4967,46 @@ NativeBark::NativeBark(
4855
4967
  return this->cpp_uniffi_bark_ffi_checksum_method_wallet_drain_exits(rt, thisVal, args, count);
4856
4968
  }
4857
4969
  );
4970
+ props["ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee"] = jsi::Function::createFromHostFunction(
4971
+ rt,
4972
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee"),
4973
+ 0,
4974
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
4975
+ return this->cpp_uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee(rt, thisVal, args, count);
4976
+ }
4977
+ );
4978
+ props["ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee"] = jsi::Function::createFromHostFunction(
4979
+ rt,
4980
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee"),
4981
+ 0,
4982
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
4983
+ return this->cpp_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee(rt, thisVal, args, count);
4984
+ }
4985
+ );
4986
+ props["ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee"] = jsi::Function::createFromHostFunction(
4987
+ rt,
4988
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee"),
4989
+ 0,
4990
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
4991
+ return this->cpp_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee(rt, thisVal, args, count);
4992
+ }
4993
+ );
4994
+ props["ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee"] = jsi::Function::createFromHostFunction(
4995
+ rt,
4996
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee"),
4997
+ 0,
4998
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
4999
+ return this->cpp_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee(rt, thisVal, args, count);
5000
+ }
5001
+ );
5002
+ props["ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee"] = jsi::Function::createFromHostFunction(
5003
+ rt,
5004
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee"),
5005
+ 0,
5006
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
5007
+ return this->cpp_uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee(rt, thisVal, args, count);
5008
+ }
5009
+ );
4858
5010
  props["ubrn_uniffi_bark_ffi_checksum_method_wallet_fingerprint"] = jsi::Function::createFromHostFunction(
4859
5011
  rt,
4860
5012
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_fingerprint"),
@@ -4935,6 +5087,14 @@ NativeBark::NativeBark(
4935
5087
  return this->cpp_uniffi_bark_ffi_checksum_method_wallet_history(rt, thisVal, args, count);
4936
5088
  }
4937
5089
  );
5090
+ props["ubrn_uniffi_bark_ffi_checksum_method_wallet_import_vtxo"] = jsi::Function::createFromHostFunction(
5091
+ rt,
5092
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_import_vtxo"),
5093
+ 0,
5094
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
5095
+ return this->cpp_uniffi_bark_ffi_checksum_method_wallet_import_vtxo(rt, thisVal, args, count);
5096
+ }
5097
+ );
4938
5098
  props["ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status"] = jsi::Function::createFromHostFunction(
4939
5099
  rt,
4940
5100
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status"),
@@ -4951,6 +5111,14 @@ NativeBark::NativeBark(
4951
5111
  return this->cpp_uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits(rt, thisVal, args, count);
4952
5112
  }
4953
5113
  );
5114
+ props["ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization"] = jsi::Function::createFromHostFunction(
5115
+ rt,
5116
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization"),
5117
+ 0,
5118
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
5119
+ return this->cpp_uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization(rt, thisVal, args, count);
5120
+ }
5121
+ );
4954
5122
  props["ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier"] = jsi::Function::createFromHostFunction(
4955
5123
  rt,
4956
5124
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier"),
@@ -5484,26 +5652,20 @@ void NativeBark::set(jsi::Runtime& rt, const jsi::PropNameID& name, const jsi::V
5484
5652
  NativeBark::~NativeBark() {
5485
5653
  // Cleanup for callback function RustFutureContinuationCallback
5486
5654
  uniffi::bark::cb::rustfuturecontinuationcallback::cleanup();
5655
+ // Cleanup for callback function ForeignFutureDroppedCallback
5656
+ uniffi::bark::cb::foreignfuturedroppedcallback::cleanup();
5487
5657
  // Cleanup for "free" callback function CallbackInterfaceFree
5488
- uniffi::bark::st::foreignfuture::foreignfuture::free::cleanup();uniffi::bark::st::vtablecallbackinterfacecustomonchainwalletcallbacks::vtablecallbackinterfacecustomonchainwalletcallbacks::free::cleanup();
5489
- // Cleanup for callback function CallbackInterfaceCustomOnchainWalletCallbacksMethod0
5490
- uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod0::cleanup();
5491
- // Cleanup for callback function CallbackInterfaceCustomOnchainWalletCallbacksMethod1
5492
- uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod1::cleanup();
5493
- // Cleanup for callback function CallbackInterfaceCustomOnchainWalletCallbacksMethod2
5494
- uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod2::cleanup();
5495
- // Cleanup for callback function CallbackInterfaceCustomOnchainWalletCallbacksMethod3
5496
- uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod3::cleanup();
5497
- // Cleanup for callback function CallbackInterfaceCustomOnchainWalletCallbacksMethod4
5498
- uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4::cleanup();
5499
- // Cleanup for callback function CallbackInterfaceCustomOnchainWalletCallbacksMethod5
5500
- uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5::cleanup();
5501
- // Cleanup for callback function CallbackInterfaceCustomOnchainWalletCallbacksMethod6
5502
- uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::cleanup();
5503
- // Cleanup for callback function CallbackInterfaceCustomOnchainWalletCallbacksMethod7
5504
- uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::cleanup();
5505
- // Cleanup for callback function CallbackInterfaceCustomOnchainWalletCallbacksMethod8
5506
- uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::cleanup();
5658
+ uniffi::bark::st::vtablecallbackinterfacecustomonchainwalletcallbacks::vtablecallbackinterfacecustomonchainwalletcallbacks::free::cleanup();
5659
+ uniffi::bark::cb::callbackinterfaceclone::vtablecallbackinterfacecustomonchainwalletcallbacks::cleanup();
5660
+ uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod0::vtablecallbackinterfacecustomonchainwalletcallbacks::cleanup();
5661
+ uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod1::vtablecallbackinterfacecustomonchainwalletcallbacks::cleanup();
5662
+ uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod2::vtablecallbackinterfacecustomonchainwalletcallbacks::cleanup();
5663
+ uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod3::vtablecallbackinterfacecustomonchainwalletcallbacks::cleanup();
5664
+ uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4::vtablecallbackinterfacecustomonchainwalletcallbacks::cleanup();
5665
+ uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5::vtablecallbackinterfacecustomonchainwalletcallbacks::cleanup();
5666
+ uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::vtablecallbackinterfacecustomonchainwalletcallbacks::cleanup();
5667
+ uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks::cleanup();
5668
+ uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks::cleanup();
5507
5669
  }
5508
5670
 
5509
5671
  // Utility functions for serialization/deserialization of strings.
@@ -5520,9 +5682,8 @@ jsi::Value NativeBark::cpp_uniffi_internal_fn_func_ffi__arraybuffer_to_string(js
5520
5682
  }jsi::Value NativeBark::cpp_uniffi_internal_fn_method_onchainwallet_ffi__bless_pointer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5521
5683
  auto pointer = uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]);
5522
5684
  auto static destructor = [](uint64_t p) {
5523
- auto pointer = reinterpret_cast<void *>(static_cast<uintptr_t>(p));
5524
5685
  RustCallStatus status = {0};
5525
- uniffi_bark_ffi_fn_free_onchainwallet(pointer, &status);
5686
+ uniffi_bark_ffi_fn_free_onchainwallet(p, &status);
5526
5687
  };
5527
5688
  auto ptrObj = std::make_shared<uniffi_jsi::DestructibleObject>(pointer, destructor);
5528
5689
  auto obj = jsi::Object::createFromHostObject(rt, ptrObj);
@@ -5530,9 +5691,8 @@ jsi::Value NativeBark::cpp_uniffi_internal_fn_func_ffi__arraybuffer_to_string(js
5530
5691
  }jsi::Value NativeBark::cpp_uniffi_internal_fn_method_wallet_ffi__bless_pointer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5531
5692
  auto pointer = uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]);
5532
5693
  auto static destructor = [](uint64_t p) {
5533
- auto pointer = reinterpret_cast<void *>(static_cast<uintptr_t>(p));
5534
5694
  RustCallStatus status = {0};
5535
- uniffi_bark_ffi_fn_free_wallet(pointer, &status);
5695
+ uniffi_bark_ffi_fn_free_wallet(p, &status);
5536
5696
  };
5537
5697
  auto ptrObj = std::make_shared<uniffi_jsi::DestructibleObject>(pointer, destructor);
5538
5698
  auto obj = jsi::Object::createFromHostObject(rt, ptrObj);
@@ -5542,17 +5702,17 @@ jsi::Value NativeBark::cpp_uniffi_internal_fn_func_ffi__arraybuffer_to_string(js
5542
5702
  // Methods calling directly into the uniffi generated C API of the Rust crate.
5543
5703
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_clone_onchainwallet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5544
5704
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5545
- auto value = uniffi_bark_ffi_fn_clone_onchainwallet(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
5705
+ auto value = uniffi_bark_ffi_fn_clone_onchainwallet(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
5546
5706
  &status
5547
5707
  );
5548
5708
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
5549
5709
 
5550
5710
 
5551
- return uniffi_jsi::Bridging<void *>::toJs(rt, callInvoker, value);
5711
+ return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
5552
5712
  }
5553
5713
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_free_onchainwallet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5554
5714
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5555
- uniffi_bark_ffi_fn_free_onchainwallet(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
5715
+ uniffi_bark_ffi_fn_free_onchainwallet(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
5556
5716
  &status
5557
5717
  );
5558
5718
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -5568,7 +5728,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_constructor_onchainwallet_custom(j
5568
5728
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
5569
5729
 
5570
5730
 
5571
- return uniffi_jsi::Bridging<void *>::toJs(rt, callInvoker, value);
5731
+ return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
5572
5732
  }
5573
5733
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_constructor_onchainwallet_default(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5574
5734
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
@@ -5578,11 +5738,11 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_constructor_onchainwallet_default(
5578
5738
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
5579
5739
 
5580
5740
 
5581
- return uniffi_jsi::Bridging<void *>::toJs(rt, callInvoker, value);
5741
+ return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
5582
5742
  }
5583
5743
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_onchainwallet_balance(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5584
5744
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5585
- auto value = uniffi_bark_ffi_fn_method_onchainwallet_balance(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
5745
+ auto value = uniffi_bark_ffi_fn_method_onchainwallet_balance(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
5586
5746
  &status
5587
5747
  );
5588
5748
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -5592,7 +5752,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_onchainwallet_balance(jsi::
5592
5752
  }
5593
5753
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_onchainwallet_new_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5594
5754
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5595
- auto value = uniffi_bark_ffi_fn_method_onchainwallet_new_address(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
5755
+ auto value = uniffi_bark_ffi_fn_method_onchainwallet_new_address(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
5596
5756
  &status
5597
5757
  );
5598
5758
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -5602,7 +5762,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_onchainwallet_new_address(j
5602
5762
  }
5603
5763
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_onchainwallet_send(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5604
5764
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5605
- auto value = uniffi_bark_ffi_fn_method_onchainwallet_send(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[2]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[3]),
5765
+ auto value = uniffi_bark_ffi_fn_method_onchainwallet_send(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[2]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[3]),
5606
5766
  &status
5607
5767
  );
5608
5768
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -5612,7 +5772,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_onchainwallet_send(jsi::Run
5612
5772
  }
5613
5773
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_onchainwallet_sync(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5614
5774
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5615
- auto value = uniffi_bark_ffi_fn_method_onchainwallet_sync(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
5775
+ auto value = uniffi_bark_ffi_fn_method_onchainwallet_sync(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
5616
5776
  &status
5617
5777
  );
5618
5778
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -5622,17 +5782,17 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_onchainwallet_sync(jsi::Run
5622
5782
  }
5623
5783
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_clone_wallet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5624
5784
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5625
- auto value = uniffi_bark_ffi_fn_clone_wallet(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
5785
+ auto value = uniffi_bark_ffi_fn_clone_wallet(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
5626
5786
  &status
5627
5787
  );
5628
5788
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
5629
5789
 
5630
5790
 
5631
- return uniffi_jsi::Bridging<void *>::toJs(rt, callInvoker, value);
5791
+ return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
5632
5792
  }
5633
5793
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_free_wallet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5634
5794
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5635
- uniffi_bark_ffi_fn_free_wallet(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
5795
+ uniffi_bark_ffi_fn_free_wallet(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
5636
5796
  &status
5637
5797
  );
5638
5798
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -5648,17 +5808,17 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_constructor_wallet_create(jsi::Run
5648
5808
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
5649
5809
 
5650
5810
 
5651
- return uniffi_jsi::Bridging<void *>::toJs(rt, callInvoker, value);
5811
+ return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
5652
5812
  }
5653
5813
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_constructor_wallet_create_with_onchain(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5654
5814
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5655
- auto value = uniffi_bark_ffi_fn_constructor_wallet_create_with_onchain(uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]), uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[3]), uniffi_jsi::Bridging<int8_t>::fromJs(rt, callInvoker, args[4]),
5815
+ auto value = uniffi_bark_ffi_fn_constructor_wallet_create_with_onchain(uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[3]), uniffi_jsi::Bridging<int8_t>::fromJs(rt, callInvoker, args[4]),
5656
5816
  &status
5657
5817
  );
5658
5818
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
5659
5819
 
5660
5820
 
5661
- return uniffi_jsi::Bridging<void *>::toJs(rt, callInvoker, value);
5821
+ return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
5662
5822
  }
5663
5823
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_constructor_wallet_open(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5664
5824
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
@@ -5668,21 +5828,21 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_constructor_wallet_open(jsi::Runti
5668
5828
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
5669
5829
 
5670
5830
 
5671
- return uniffi_jsi::Bridging<void *>::toJs(rt, callInvoker, value);
5831
+ return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
5672
5832
  }
5673
5833
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_constructor_wallet_open_with_onchain(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5674
5834
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5675
- auto value = uniffi_bark_ffi_fn_constructor_wallet_open_with_onchain(uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]), uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[3]),
5835
+ auto value = uniffi_bark_ffi_fn_constructor_wallet_open_with_onchain(uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[3]),
5676
5836
  &status
5677
5837
  );
5678
5838
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
5679
5839
 
5680
5840
 
5681
- return uniffi_jsi::Bridging<void *>::toJs(rt, callInvoker, value);
5841
+ return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
5682
5842
  }
5683
5843
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_all_exits_claimable_at_height(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5684
5844
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5685
- auto value = uniffi_bark_ffi_fn_method_wallet_all_exits_claimable_at_height(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
5845
+ auto value = uniffi_bark_ffi_fn_method_wallet_all_exits_claimable_at_height(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
5686
5846
  &status
5687
5847
  );
5688
5848
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -5692,7 +5852,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_all_exits_claimable_
5692
5852
  }
5693
5853
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_all_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5694
5854
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5695
- auto value = uniffi_bark_ffi_fn_method_wallet_all_vtxos(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
5855
+ auto value = uniffi_bark_ffi_fn_method_wallet_all_vtxos(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
5696
5856
  &status
5697
5857
  );
5698
5858
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -5702,7 +5862,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_all_vtxos(jsi::Runti
5702
5862
  }
5703
5863
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_ark_info(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5704
5864
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5705
- auto value = uniffi_bark_ffi_fn_method_wallet_ark_info(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
5865
+ auto value = uniffi_bark_ffi_fn_method_wallet_ark_info(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
5706
5866
  &status
5707
5867
  );
5708
5868
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -5712,7 +5872,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_ark_info(jsi::Runtim
5712
5872
  }
5713
5873
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_balance(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5714
5874
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5715
- auto value = uniffi_bark_ffi_fn_method_wallet_balance(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
5875
+ auto value = uniffi_bark_ffi_fn_method_wallet_balance(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
5716
5876
  &status
5717
5877
  );
5718
5878
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -5722,7 +5882,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_balance(jsi::Runtime
5722
5882
  }
5723
5883
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_board_all(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5724
5884
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5725
- auto value = uniffi_bark_ffi_fn_method_wallet_board_all(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[1]),
5885
+ auto value = uniffi_bark_ffi_fn_method_wallet_board_all(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[1]),
5726
5886
  &status
5727
5887
  );
5728
5888
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -5732,7 +5892,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_board_all(jsi::Runti
5732
5892
  }
5733
5893
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_board_amount(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5734
5894
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5735
- auto value = uniffi_bark_ffi_fn_method_wallet_board_amount(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[2]),
5895
+ auto value = uniffi_bark_ffi_fn_method_wallet_board_amount(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[2]),
5736
5896
  &status
5737
5897
  );
5738
5898
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -5742,7 +5902,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_board_amount(jsi::Ru
5742
5902
  }
5743
5903
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5744
5904
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5745
- auto value = uniffi_bark_ffi_fn_method_wallet_bolt11_invoice(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[1]),
5905
+ auto value = uniffi_bark_ffi_fn_method_wallet_bolt11_invoice(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[1]),
5746
5906
  &status
5747
5907
  );
5748
5908
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -5752,7 +5912,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice(jsi::
5752
5912
  }
5753
5913
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_broadcast_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5754
5914
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5755
- auto value = uniffi_bark_ffi_fn_method_wallet_broadcast_tx(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
5915
+ auto value = uniffi_bark_ffi_fn_method_wallet_broadcast_tx(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
5756
5916
  &status
5757
5917
  );
5758
5918
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -5762,7 +5922,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_broadcast_tx(jsi::Ru
5762
5922
  }
5763
5923
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_cancel_all_pending_rounds(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5764
5924
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5765
- uniffi_bark_ffi_fn_method_wallet_cancel_all_pending_rounds(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
5925
+ uniffi_bark_ffi_fn_method_wallet_cancel_all_pending_rounds(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
5766
5926
  &status
5767
5927
  );
5768
5928
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -5772,7 +5932,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_cancel_all_pending_r
5772
5932
  }
5773
5933
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_cancel_pending_round(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5774
5934
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5775
- uniffi_bark_ffi_fn_method_wallet_cancel_pending_round(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging<uint32_t>::fromJs(rt, callInvoker, args[1]),
5935
+ uniffi_bark_ffi_fn_method_wallet_cancel_pending_round(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging<uint32_t>::fromJs(rt, callInvoker, args[1]),
5776
5936
  &status
5777
5937
  );
5778
5938
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -5782,7 +5942,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_cancel_pending_round
5782
5942
  }
5783
5943
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_check_lightning_payment(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5784
5944
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5785
- auto value = uniffi_bark_ffi_fn_method_wallet_check_lightning_payment(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<int8_t>::fromJs(rt, callInvoker, args[2]),
5945
+ auto value = uniffi_bark_ffi_fn_method_wallet_check_lightning_payment(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<int8_t>::fromJs(rt, callInvoker, args[2]),
5786
5946
  &status
5787
5947
  );
5788
5948
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -5792,7 +5952,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_check_lightning_paym
5792
5952
  }
5793
5953
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_claimable_lightning_receive_balance_sats(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5794
5954
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5795
- auto value = uniffi_bark_ffi_fn_method_wallet_claimable_lightning_receive_balance_sats(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
5955
+ auto value = uniffi_bark_ffi_fn_method_wallet_claimable_lightning_receive_balance_sats(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
5796
5956
  &status
5797
5957
  );
5798
5958
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -5802,7 +5962,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_claimable_lightning_
5802
5962
  }
5803
5963
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_config(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5804
5964
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5805
- auto value = uniffi_bark_ffi_fn_method_wallet_config(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
5965
+ auto value = uniffi_bark_ffi_fn_method_wallet_config(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
5806
5966
  &status
5807
5967
  );
5808
5968
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -5812,7 +5972,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_config(jsi::Runtime&
5812
5972
  }
5813
5973
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_drain_exits(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5814
5974
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5815
- auto value = uniffi_bark_ffi_fn_method_wallet_drain_exits(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[3]),
5975
+ auto value = uniffi_bark_ffi_fn_method_wallet_drain_exits(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[3]),
5816
5976
  &status
5817
5977
  );
5818
5978
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -5820,9 +5980,59 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_drain_exits(jsi::Run
5820
5980
 
5821
5981
  return uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
5822
5982
  }
5983
+ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_estimate_board_fee(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5984
+ RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5985
+ auto value = uniffi_bark_ffi_fn_method_wallet_estimate_board_fee(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[1]),
5986
+ &status
5987
+ );
5988
+ uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
5989
+
5990
+
5991
+ return uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, value);
5992
+ }
5993
+ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_estimate_lightning_receive_fee(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5994
+ RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5995
+ auto value = uniffi_bark_ffi_fn_method_wallet_estimate_lightning_receive_fee(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[1]),
5996
+ &status
5997
+ );
5998
+ uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
5999
+
6000
+
6001
+ return uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, value);
6002
+ }
6003
+ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_estimate_lightning_send_fee(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6004
+ RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6005
+ auto value = uniffi_bark_ffi_fn_method_wallet_estimate_lightning_send_fee(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[1]),
6006
+ &status
6007
+ );
6008
+ uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
6009
+
6010
+
6011
+ return uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, value);
6012
+ }
6013
+ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_estimate_offboard_fee(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6014
+ RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6015
+ auto value = uniffi_bark_ffi_fn_method_wallet_estimate_offboard_fee(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[1]),
6016
+ &status
6017
+ );
6018
+ uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
6019
+
6020
+
6021
+ return uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, value);
6022
+ }
6023
+ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_estimate_refresh_fee(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6024
+ RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6025
+ auto value = uniffi_bark_ffi_fn_method_wallet_estimate_refresh_fee(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
6026
+ &status
6027
+ );
6028
+ uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
6029
+
6030
+
6031
+ return uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, value);
6032
+ }
5823
6033
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_fingerprint(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5824
6034
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5825
- auto value = uniffi_bark_ffi_fn_method_wallet_fingerprint(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
6035
+ auto value = uniffi_bark_ffi_fn_method_wallet_fingerprint(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
5826
6036
  &status
5827
6037
  );
5828
6038
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -5832,7 +6042,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_fingerprint(jsi::Run
5832
6042
  }
5833
6043
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_get_exit_status(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5834
6044
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5835
- auto value = uniffi_bark_ffi_fn_method_wallet_get_exit_status(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<int8_t>::fromJs(rt, callInvoker, args[2]), uniffi_jsi::Bridging<int8_t>::fromJs(rt, callInvoker, args[3]),
6045
+ auto value = uniffi_bark_ffi_fn_method_wallet_get_exit_status(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<int8_t>::fromJs(rt, callInvoker, args[2]), uniffi_jsi::Bridging<int8_t>::fromJs(rt, callInvoker, args[3]),
5836
6046
  &status
5837
6047
  );
5838
6048
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -5842,7 +6052,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_get_exit_status(jsi:
5842
6052
  }
5843
6053
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_get_exit_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5844
6054
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5845
- auto value = uniffi_bark_ffi_fn_method_wallet_get_exit_vtxos(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
6055
+ auto value = uniffi_bark_ffi_fn_method_wallet_get_exit_vtxos(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
5846
6056
  &status
5847
6057
  );
5848
6058
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -5852,7 +6062,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_get_exit_vtxos(jsi::
5852
6062
  }
5853
6063
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_get_expiring_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5854
6064
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5855
- auto value = uniffi_bark_ffi_fn_method_wallet_get_expiring_vtxos(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging<uint32_t>::fromJs(rt, callInvoker, args[1]),
6065
+ auto value = uniffi_bark_ffi_fn_method_wallet_get_expiring_vtxos(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging<uint32_t>::fromJs(rt, callInvoker, args[1]),
5856
6066
  &status
5857
6067
  );
5858
6068
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -5862,7 +6072,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_get_expiring_vtxos(j
5862
6072
  }
5863
6073
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_get_first_expiring_vtxo_blockheight(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5864
6074
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5865
- auto value = uniffi_bark_ffi_fn_method_wallet_get_first_expiring_vtxo_blockheight(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
6075
+ auto value = uniffi_bark_ffi_fn_method_wallet_get_first_expiring_vtxo_blockheight(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
5866
6076
  &status
5867
6077
  );
5868
6078
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -5872,7 +6082,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_get_first_expiring_v
5872
6082
  }
5873
6083
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_get_next_required_refresh_blockheight(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5874
6084
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5875
- auto value = uniffi_bark_ffi_fn_method_wallet_get_next_required_refresh_blockheight(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
6085
+ auto value = uniffi_bark_ffi_fn_method_wallet_get_next_required_refresh_blockheight(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
5876
6086
  &status
5877
6087
  );
5878
6088
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -5882,7 +6092,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_get_next_required_re
5882
6092
  }
5883
6093
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_get_vtxo_by_id(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5884
6094
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5885
- auto value = uniffi_bark_ffi_fn_method_wallet_get_vtxo_by_id(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
6095
+ auto value = uniffi_bark_ffi_fn_method_wallet_get_vtxo_by_id(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
5886
6096
  &status
5887
6097
  );
5888
6098
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -5892,7 +6102,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_get_vtxo_by_id(jsi::
5892
6102
  }
5893
6103
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_get_vtxos_to_refresh(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5894
6104
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5895
- auto value = uniffi_bark_ffi_fn_method_wallet_get_vtxos_to_refresh(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
6105
+ auto value = uniffi_bark_ffi_fn_method_wallet_get_vtxos_to_refresh(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
5896
6106
  &status
5897
6107
  );
5898
6108
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -5902,7 +6112,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_get_vtxos_to_refresh
5902
6112
  }
5903
6113
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_has_pending_exits(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5904
6114
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5905
- auto value = uniffi_bark_ffi_fn_method_wallet_has_pending_exits(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
6115
+ auto value = uniffi_bark_ffi_fn_method_wallet_has_pending_exits(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
5906
6116
  &status
5907
6117
  );
5908
6118
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -5912,7 +6122,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_has_pending_exits(js
5912
6122
  }
5913
6123
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_history(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5914
6124
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5915
- auto value = uniffi_bark_ffi_fn_method_wallet_history(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
6125
+ auto value = uniffi_bark_ffi_fn_method_wallet_history(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
5916
6126
  &status
5917
6127
  );
5918
6128
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -5920,9 +6130,19 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_history(jsi::Runtime
5920
6130
 
5921
6131
  return uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
5922
6132
  }
6133
+ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_import_vtxo(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6134
+ RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6135
+ uniffi_bark_ffi_fn_method_wallet_import_vtxo(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
6136
+ &status
6137
+ );
6138
+ uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
6139
+
6140
+
6141
+ return jsi::Value::undefined();
6142
+ }
5923
6143
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_lightning_receive_status(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5924
6144
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5925
- auto value = uniffi_bark_ffi_fn_method_wallet_lightning_receive_status(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
6145
+ auto value = uniffi_bark_ffi_fn_method_wallet_lightning_receive_status(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
5926
6146
  &status
5927
6147
  );
5928
6148
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -5932,7 +6152,17 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_lightning_receive_st
5932
6152
  }
5933
6153
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_list_claimable_exits(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5934
6154
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5935
- auto value = uniffi_bark_ffi_fn_method_wallet_list_claimable_exits(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
6155
+ auto value = uniffi_bark_ffi_fn_method_wallet_list_claimable_exits(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
6156
+ &status
6157
+ );
6158
+ uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
6159
+
6160
+
6161
+ return uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
6162
+ }
6163
+ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_mailbox_authorization(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6164
+ RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6165
+ auto value = uniffi_bark_ffi_fn_method_wallet_mailbox_authorization(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
5936
6166
  &status
5937
6167
  );
5938
6168
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -5942,7 +6172,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_list_claimable_exits
5942
6172
  }
5943
6173
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_mailbox_identifier(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5944
6174
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5945
- auto value = uniffi_bark_ffi_fn_method_wallet_mailbox_identifier(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
6175
+ auto value = uniffi_bark_ffi_fn_method_wallet_mailbox_identifier(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
5946
6176
  &status
5947
6177
  );
5948
6178
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -5952,7 +6182,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_mailbox_identifier(j
5952
6182
  }
5953
6183
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_maintenance(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5954
6184
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5955
- uniffi_bark_ffi_fn_method_wallet_maintenance(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
6185
+ uniffi_bark_ffi_fn_method_wallet_maintenance(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
5956
6186
  &status
5957
6187
  );
5958
6188
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -5962,7 +6192,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_maintenance(jsi::Run
5962
6192
  }
5963
6193
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_maintenance_delegated(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5964
6194
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5965
- uniffi_bark_ffi_fn_method_wallet_maintenance_delegated(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
6195
+ uniffi_bark_ffi_fn_method_wallet_maintenance_delegated(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
5966
6196
  &status
5967
6197
  );
5968
6198
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -5972,7 +6202,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_maintenance_delegate
5972
6202
  }
5973
6203
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_maintenance_refresh(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5974
6204
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5975
- auto value = uniffi_bark_ffi_fn_method_wallet_maintenance_refresh(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
6205
+ auto value = uniffi_bark_ffi_fn_method_wallet_maintenance_refresh(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
5976
6206
  &status
5977
6207
  );
5978
6208
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -5982,7 +6212,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_maintenance_refresh(
5982
6212
  }
5983
6213
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5984
6214
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5985
- uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[1]),
6215
+ uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[1]),
5986
6216
  &status
5987
6217
  );
5988
6218
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -5992,7 +6222,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_maintenance_with_onc
5992
6222
  }
5993
6223
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain_delegated(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5994
6224
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
5995
- uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain_delegated(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[1]),
6225
+ uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain_delegated(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[1]),
5996
6226
  &status
5997
6227
  );
5998
6228
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6002,7 +6232,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_maintenance_with_onc
6002
6232
  }
6003
6233
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_maybe_schedule_maintenance_refresh(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6004
6234
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6005
- auto value = uniffi_bark_ffi_fn_method_wallet_maybe_schedule_maintenance_refresh(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
6235
+ auto value = uniffi_bark_ffi_fn_method_wallet_maybe_schedule_maintenance_refresh(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
6006
6236
  &status
6007
6237
  );
6008
6238
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6012,7 +6242,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_maybe_schedule_maint
6012
6242
  }
6013
6243
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_network(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6014
6244
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6015
- auto value = uniffi_bark_ffi_fn_method_wallet_network(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
6245
+ auto value = uniffi_bark_ffi_fn_method_wallet_network(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
6016
6246
  &status
6017
6247
  );
6018
6248
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6022,7 +6252,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_network(jsi::Runtime
6022
6252
  }
6023
6253
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_new_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6024
6254
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6025
- auto value = uniffi_bark_ffi_fn_method_wallet_new_address(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
6255
+ auto value = uniffi_bark_ffi_fn_method_wallet_new_address(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
6026
6256
  &status
6027
6257
  );
6028
6258
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6032,7 +6262,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_new_address(jsi::Run
6032
6262
  }
6033
6263
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_new_address_with_index(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6034
6264
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6035
- auto value = uniffi_bark_ffi_fn_method_wallet_new_address_with_index(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
6265
+ auto value = uniffi_bark_ffi_fn_method_wallet_new_address_with_index(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
6036
6266
  &status
6037
6267
  );
6038
6268
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6042,7 +6272,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_new_address_with_ind
6042
6272
  }
6043
6273
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_next_round_start_time(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6044
6274
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6045
- auto value = uniffi_bark_ffi_fn_method_wallet_next_round_start_time(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
6275
+ auto value = uniffi_bark_ffi_fn_method_wallet_next_round_start_time(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
6046
6276
  &status
6047
6277
  );
6048
6278
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6052,7 +6282,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_next_round_start_tim
6052
6282
  }
6053
6283
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_offboard_all(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6054
6284
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6055
- auto value = uniffi_bark_ffi_fn_method_wallet_offboard_all(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
6285
+ auto value = uniffi_bark_ffi_fn_method_wallet_offboard_all(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
6056
6286
  &status
6057
6287
  );
6058
6288
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6062,7 +6292,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_offboard_all(jsi::Ru
6062
6292
  }
6063
6293
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_offboard_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6064
6294
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6065
- auto value = uniffi_bark_ffi_fn_method_wallet_offboard_vtxos(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]),
6295
+ auto value = uniffi_bark_ffi_fn_method_wallet_offboard_vtxos(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]),
6066
6296
  &status
6067
6297
  );
6068
6298
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6072,7 +6302,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_offboard_vtxos(jsi::
6072
6302
  }
6073
6303
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_pay_lightning_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6074
6304
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6075
- auto value = uniffi_bark_ffi_fn_method_wallet_pay_lightning_address(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[2]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[3]),
6305
+ auto value = uniffi_bark_ffi_fn_method_wallet_pay_lightning_address(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[2]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[3]),
6076
6306
  &status
6077
6307
  );
6078
6308
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6082,7 +6312,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_pay_lightning_addres
6082
6312
  }
6083
6313
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_pay_lightning_invoice(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6084
6314
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6085
- auto value = uniffi_bark_ffi_fn_method_wallet_pay_lightning_invoice(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]),
6315
+ auto value = uniffi_bark_ffi_fn_method_wallet_pay_lightning_invoice(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]),
6086
6316
  &status
6087
6317
  );
6088
6318
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6092,7 +6322,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_pay_lightning_invoic
6092
6322
  }
6093
6323
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_pay_lightning_offer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6094
6324
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6095
- auto value = uniffi_bark_ffi_fn_method_wallet_pay_lightning_offer(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]),
6325
+ auto value = uniffi_bark_ffi_fn_method_wallet_pay_lightning_offer(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]),
6096
6326
  &status
6097
6327
  );
6098
6328
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6102,7 +6332,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_pay_lightning_offer(
6102
6332
  }
6103
6333
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_peak_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6104
6334
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6105
- auto value = uniffi_bark_ffi_fn_method_wallet_peak_address(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging<uint32_t>::fromJs(rt, callInvoker, args[1]),
6335
+ auto value = uniffi_bark_ffi_fn_method_wallet_peak_address(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging<uint32_t>::fromJs(rt, callInvoker, args[1]),
6106
6336
  &status
6107
6337
  );
6108
6338
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6112,7 +6342,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_peak_address(jsi::Ru
6112
6342
  }
6113
6343
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_pending_board_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6114
6344
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6115
- auto value = uniffi_bark_ffi_fn_method_wallet_pending_board_vtxos(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
6345
+ auto value = uniffi_bark_ffi_fn_method_wallet_pending_board_vtxos(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
6116
6346
  &status
6117
6347
  );
6118
6348
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6122,7 +6352,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_pending_board_vtxos(
6122
6352
  }
6123
6353
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_pending_boards(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6124
6354
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6125
- auto value = uniffi_bark_ffi_fn_method_wallet_pending_boards(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
6355
+ auto value = uniffi_bark_ffi_fn_method_wallet_pending_boards(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
6126
6356
  &status
6127
6357
  );
6128
6358
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6132,7 +6362,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_pending_boards(jsi::
6132
6362
  }
6133
6363
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_pending_exits_total_sats(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6134
6364
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6135
- auto value = uniffi_bark_ffi_fn_method_wallet_pending_exits_total_sats(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
6365
+ auto value = uniffi_bark_ffi_fn_method_wallet_pending_exits_total_sats(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
6136
6366
  &status
6137
6367
  );
6138
6368
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6142,7 +6372,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_pending_exits_total_
6142
6372
  }
6143
6373
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_pending_lightning_receives(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6144
6374
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6145
- auto value = uniffi_bark_ffi_fn_method_wallet_pending_lightning_receives(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
6375
+ auto value = uniffi_bark_ffi_fn_method_wallet_pending_lightning_receives(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
6146
6376
  &status
6147
6377
  );
6148
6378
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6152,7 +6382,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_pending_lightning_re
6152
6382
  }
6153
6383
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_pending_lightning_send_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6154
6384
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6155
- auto value = uniffi_bark_ffi_fn_method_wallet_pending_lightning_send_vtxos(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
6385
+ auto value = uniffi_bark_ffi_fn_method_wallet_pending_lightning_send_vtxos(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
6156
6386
  &status
6157
6387
  );
6158
6388
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6162,7 +6392,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_pending_lightning_se
6162
6392
  }
6163
6393
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_pending_lightning_sends(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6164
6394
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6165
- auto value = uniffi_bark_ffi_fn_method_wallet_pending_lightning_sends(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
6395
+ auto value = uniffi_bark_ffi_fn_method_wallet_pending_lightning_sends(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
6166
6396
  &status
6167
6397
  );
6168
6398
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6172,7 +6402,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_pending_lightning_se
6172
6402
  }
6173
6403
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_pending_round_input_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6174
6404
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6175
- auto value = uniffi_bark_ffi_fn_method_wallet_pending_round_input_vtxos(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
6405
+ auto value = uniffi_bark_ffi_fn_method_wallet_pending_round_input_vtxos(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
6176
6406
  &status
6177
6407
  );
6178
6408
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6182,7 +6412,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_pending_round_input_
6182
6412
  }
6183
6413
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_pending_round_states(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6184
6414
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6185
- auto value = uniffi_bark_ffi_fn_method_wallet_pending_round_states(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
6415
+ auto value = uniffi_bark_ffi_fn_method_wallet_pending_round_states(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
6186
6416
  &status
6187
6417
  );
6188
6418
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6192,7 +6422,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_pending_round_states
6192
6422
  }
6193
6423
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_progress_exits(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6194
6424
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6195
- auto value = uniffi_bark_ffi_fn_method_wallet_progress_exits(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[1]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]),
6425
+ auto value = uniffi_bark_ffi_fn_method_wallet_progress_exits(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[1]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]),
6196
6426
  &status
6197
6427
  );
6198
6428
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6202,7 +6432,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_progress_exits(jsi::
6202
6432
  }
6203
6433
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_progress_pending_rounds(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6204
6434
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6205
- uniffi_bark_ffi_fn_method_wallet_progress_pending_rounds(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
6435
+ uniffi_bark_ffi_fn_method_wallet_progress_pending_rounds(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
6206
6436
  &status
6207
6437
  );
6208
6438
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6212,7 +6442,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_progress_pending_rou
6212
6442
  }
6213
6443
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_properties(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6214
6444
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6215
- auto value = uniffi_bark_ffi_fn_method_wallet_properties(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
6445
+ auto value = uniffi_bark_ffi_fn_method_wallet_properties(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
6216
6446
  &status
6217
6447
  );
6218
6448
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6222,7 +6452,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_properties(jsi::Runt
6222
6452
  }
6223
6453
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_refresh_server(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6224
6454
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6225
- uniffi_bark_ffi_fn_method_wallet_refresh_server(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
6455
+ uniffi_bark_ffi_fn_method_wallet_refresh_server(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
6226
6456
  &status
6227
6457
  );
6228
6458
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6232,7 +6462,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_refresh_server(jsi::
6232
6462
  }
6233
6463
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6234
6464
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6235
- auto value = uniffi_bark_ffi_fn_method_wallet_refresh_vtxos(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
6465
+ auto value = uniffi_bark_ffi_fn_method_wallet_refresh_vtxos(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
6236
6466
  &status
6237
6467
  );
6238
6468
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6242,7 +6472,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos(jsi::R
6242
6472
  }
6243
6473
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos_delegated(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6244
6474
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6245
- auto value = uniffi_bark_ffi_fn_method_wallet_refresh_vtxos_delegated(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
6475
+ auto value = uniffi_bark_ffi_fn_method_wallet_refresh_vtxos_delegated(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
6246
6476
  &status
6247
6477
  );
6248
6478
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6252,7 +6482,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos_delega
6252
6482
  }
6253
6483
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_send_arkoor_payment(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6254
6484
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6255
- auto value = uniffi_bark_ffi_fn_method_wallet_send_arkoor_payment(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[2]),
6485
+ auto value = uniffi_bark_ffi_fn_method_wallet_send_arkoor_payment(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[2]),
6256
6486
  &status
6257
6487
  );
6258
6488
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6262,7 +6492,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_send_arkoor_payment(
6262
6492
  }
6263
6493
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_send_onchain(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6264
6494
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6265
- auto value = uniffi_bark_ffi_fn_method_wallet_send_onchain(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[2]),
6495
+ auto value = uniffi_bark_ffi_fn_method_wallet_send_onchain(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[2]),
6266
6496
  &status
6267
6497
  );
6268
6498
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6272,7 +6502,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_send_onchain(jsi::Ru
6272
6502
  }
6273
6503
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_sign_exit_claim_inputs(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6274
6504
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6275
- auto value = uniffi_bark_ffi_fn_method_wallet_sign_exit_claim_inputs(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
6505
+ auto value = uniffi_bark_ffi_fn_method_wallet_sign_exit_claim_inputs(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
6276
6506
  &status
6277
6507
  );
6278
6508
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6282,7 +6512,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_sign_exit_claim_inpu
6282
6512
  }
6283
6513
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_spendable_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6284
6514
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6285
- auto value = uniffi_bark_ffi_fn_method_wallet_spendable_vtxos(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
6515
+ auto value = uniffi_bark_ffi_fn_method_wallet_spendable_vtxos(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
6286
6516
  &status
6287
6517
  );
6288
6518
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6292,7 +6522,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_spendable_vtxos(jsi:
6292
6522
  }
6293
6523
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_start_exit_for_entire_wallet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6294
6524
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6295
- uniffi_bark_ffi_fn_method_wallet_start_exit_for_entire_wallet(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
6525
+ uniffi_bark_ffi_fn_method_wallet_start_exit_for_entire_wallet(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
6296
6526
  &status
6297
6527
  );
6298
6528
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6302,7 +6532,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_start_exit_for_entir
6302
6532
  }
6303
6533
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_start_exit_for_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6304
6534
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6305
- uniffi_bark_ffi_fn_method_wallet_start_exit_for_vtxos(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
6535
+ uniffi_bark_ffi_fn_method_wallet_start_exit_for_vtxos(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
6306
6536
  &status
6307
6537
  );
6308
6538
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6312,7 +6542,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_start_exit_for_vtxos
6312
6542
  }
6313
6543
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_sync(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6314
6544
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6315
- uniffi_bark_ffi_fn_method_wallet_sync(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
6545
+ uniffi_bark_ffi_fn_method_wallet_sync(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
6316
6546
  &status
6317
6547
  );
6318
6548
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6322,7 +6552,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_sync(jsi::Runtime& r
6322
6552
  }
6323
6553
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_sync_exits(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6324
6554
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6325
- uniffi_bark_ffi_fn_method_wallet_sync_exits(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[1]),
6555
+ uniffi_bark_ffi_fn_method_wallet_sync_exits(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[1]),
6326
6556
  &status
6327
6557
  );
6328
6558
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6332,7 +6562,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_sync_exits(jsi::Runt
6332
6562
  }
6333
6563
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_sync_pending_boards(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6334
6564
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6335
- uniffi_bark_ffi_fn_method_wallet_sync_pending_boards(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
6565
+ uniffi_bark_ffi_fn_method_wallet_sync_pending_boards(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
6336
6566
  &status
6337
6567
  );
6338
6568
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6342,7 +6572,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_sync_pending_boards(
6342
6572
  }
6343
6573
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_try_claim_all_lightning_receives(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6344
6574
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6345
- uniffi_bark_ffi_fn_method_wallet_try_claim_all_lightning_receives(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging<int8_t>::fromJs(rt, callInvoker, args[1]),
6575
+ uniffi_bark_ffi_fn_method_wallet_try_claim_all_lightning_receives(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging<int8_t>::fromJs(rt, callInvoker, args[1]),
6346
6576
  &status
6347
6577
  );
6348
6578
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6352,7 +6582,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_try_claim_all_lightn
6352
6582
  }
6353
6583
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_try_claim_lightning_receive(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6354
6584
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6355
- uniffi_bark_ffi_fn_method_wallet_try_claim_lightning_receive(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<int8_t>::fromJs(rt, callInvoker, args[2]),
6585
+ uniffi_bark_ffi_fn_method_wallet_try_claim_lightning_receive(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<int8_t>::fromJs(rt, callInvoker, args[2]),
6356
6586
  &status
6357
6587
  );
6358
6588
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6362,7 +6592,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_try_claim_lightning_
6362
6592
  }
6363
6593
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_validate_arkoor_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6364
6594
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6365
- auto value = uniffi_bark_ffi_fn_method_wallet_validate_arkoor_address(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
6595
+ auto value = uniffi_bark_ffi_fn_method_wallet_validate_arkoor_address(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
6366
6596
  &status
6367
6597
  );
6368
6598
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6372,7 +6602,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_validate_arkoor_addr
6372
6602
  }
6373
6603
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6374
6604
  RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
6375
- auto value = uniffi_bark_ffi_fn_method_wallet_vtxos(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
6605
+ auto value = uniffi_bark_ffi_fn_method_wallet_vtxos(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
6376
6606
  &status
6377
6607
  );
6378
6608
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
@@ -6588,6 +6818,41 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_drain_exits(js
6588
6818
  );
6589
6819
 
6590
6820
 
6821
+ return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
6822
+ }
6823
+ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6824
+ auto value = uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee(
6825
+ );
6826
+
6827
+
6828
+ return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
6829
+ }
6830
+ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6831
+ auto value = uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee(
6832
+ );
6833
+
6834
+
6835
+ return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
6836
+ }
6837
+ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6838
+ auto value = uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee(
6839
+ );
6840
+
6841
+
6842
+ return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
6843
+ }
6844
+ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6845
+ auto value = uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee(
6846
+ );
6847
+
6848
+
6849
+ return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
6850
+ }
6851
+ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6852
+ auto value = uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee(
6853
+ );
6854
+
6855
+
6591
6856
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
6592
6857
  }
6593
6858
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_fingerprint(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
@@ -6658,6 +6923,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_history(jsi::R
6658
6923
  );
6659
6924
 
6660
6925
 
6926
+ return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
6927
+ }
6928
+ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_import_vtxo(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6929
+ auto value = uniffi_bark_ffi_checksum_method_wallet_import_vtxo(
6930
+ );
6931
+
6932
+
6661
6933
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
6662
6934
  }
6663
6935
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
@@ -6672,6 +6944,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_list_claimable
6672
6944
  );
6673
6945
 
6674
6946
 
6947
+ return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
6948
+ }
6949
+ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6950
+ auto value = uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization(
6951
+ );
6952
+
6953
+
6675
6954
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
6676
6955
  }
6677
6956
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {