@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.
@@ -1,45 +1,47 @@
1
1
  // This file was autogenerated by some hot garbage in the `uniffi-bindgen-react-native` crate.
2
2
  // Trust me, you don't want to mess with it!
3
+
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // @ts-nocheck
3
7
  import nativeModule, {
4
8
  type UniffiRustFutureContinuationCallback,
5
- type UniffiForeignFuture,
6
- type UniffiForeignFutureStructU8,
9
+ type UniffiForeignFutureDroppedCallback,
10
+ type UniffiForeignFutureDroppedCallbackStruct,
11
+ type UniffiForeignFutureResultU8,
7
12
  type UniffiForeignFutureCompleteU8,
8
- type UniffiForeignFutureStructI8,
13
+ type UniffiForeignFutureResultI8,
9
14
  type UniffiForeignFutureCompleteI8,
10
- type UniffiForeignFutureStructU16,
15
+ type UniffiForeignFutureResultU16,
11
16
  type UniffiForeignFutureCompleteU16,
12
- type UniffiForeignFutureStructI16,
17
+ type UniffiForeignFutureResultI16,
13
18
  type UniffiForeignFutureCompleteI16,
14
- type UniffiForeignFutureStructU32,
19
+ type UniffiForeignFutureResultU32,
15
20
  type UniffiForeignFutureCompleteU32,
16
- type UniffiForeignFutureStructI32,
21
+ type UniffiForeignFutureResultI32,
17
22
  type UniffiForeignFutureCompleteI32,
18
- type UniffiForeignFutureStructU64,
23
+ type UniffiForeignFutureResultU64,
19
24
  type UniffiForeignFutureCompleteU64,
20
- type UniffiForeignFutureStructI64,
25
+ type UniffiForeignFutureResultI64,
21
26
  type UniffiForeignFutureCompleteI64,
22
- type UniffiForeignFutureStructF32,
27
+ type UniffiForeignFutureResultF32,
23
28
  type UniffiForeignFutureCompleteF32,
24
- type UniffiForeignFutureStructF64,
29
+ type UniffiForeignFutureResultF64,
25
30
  type UniffiForeignFutureCompleteF64,
26
- type UniffiForeignFutureStructPointer,
27
- type UniffiForeignFutureCompletePointer,
28
- type UniffiForeignFutureStructRustBuffer,
31
+ type UniffiForeignFutureResultRustBuffer,
29
32
  type UniffiForeignFutureCompleteRustBuffer,
30
- type UniffiForeignFutureStructVoid,
33
+ type UniffiForeignFutureResultVoid,
31
34
  type UniffiForeignFutureCompleteVoid,
32
35
  type UniffiVTableCallbackInterfaceCustomOnchainWalletCallbacks,
33
36
  } from "./bark-ffi";
34
37
  import {
35
38
  type FfiConverter,
36
39
  type UniffiByteArray,
40
+ type UniffiGcObject,
37
41
  type UniffiHandle,
38
42
  type UniffiObjectFactory,
39
43
  type UniffiReferenceHolder,
40
- type UniffiRustArcPtr,
41
44
  type UniffiRustCallStatus,
42
- type UnsafeMutableRawPointer,
43
45
  AbstractFfiConverterByteArray,
44
46
  FfiConverterArray,
45
47
  FfiConverterBool,
@@ -502,6 +504,9 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks: {
502
504
  // CustomOnchainWalletCallbacks: this will throw a stale handle error if the handle isn't found.
503
505
  FfiConverterTypeCustomOnchainWalletCallbacks.drop(uniffiHandle);
504
506
  },
507
+ uniffiClone: (uniffiHandle: UniffiHandle): UniffiHandle => {
508
+ return FfiConverterTypeCustomOnchainWalletCallbacks.clone(uniffiHandle);
509
+ },
505
510
  },
506
511
  register: () => {
507
512
  nativeModule().ubrn_uniffi_bark_ffi_fn_init_callback_vtable_customonchainwalletcallbacks(
@@ -641,6 +646,12 @@ export type ArkInfo = {
641
646
  * Whether the Ark server requires anti-DoS measures for lightning receives
642
647
  */
643
648
  lnReceiveAntiDosRequired: boolean;
649
+ /**
650
+ * Fee schedule as JSON string
651
+ * Contains board, offboard, refresh, lightning send/receive fee details.
652
+ * Parse this JSON to access the full fee schedule for all operations.
653
+ */
654
+ feeScheduleJson: string;
644
655
  };
645
656
 
646
657
  /**
@@ -690,6 +701,7 @@ const FfiConverterTypeArkInfo = (() => {
690
701
  minBoardAmountSats: FfiConverterUInt64.read(from),
691
702
  offboardFeerateSatPerVb: FfiConverterUInt64.read(from),
692
703
  lnReceiveAntiDosRequired: FfiConverterBool.read(from),
704
+ feeScheduleJson: FfiConverterString.read(from),
693
705
  };
694
706
  }
695
707
  write(value: TypeName, into: RustBuffer): void {
@@ -707,6 +719,7 @@ const FfiConverterTypeArkInfo = (() => {
707
719
  FfiConverterUInt64.write(value.minBoardAmountSats, into);
708
720
  FfiConverterUInt64.write(value.offboardFeerateSatPerVb, into);
709
721
  FfiConverterBool.write(value.lnReceiveAntiDosRequired, into);
722
+ FfiConverterString.write(value.feeScheduleJson, into);
710
723
  }
711
724
  allocationSize(value: TypeName): number {
712
725
  return (
@@ -723,7 +736,8 @@ const FfiConverterTypeArkInfo = (() => {
723
736
  FfiConverterUInt16.allocationSize(value.maxUserInvoiceCltvDelta) +
724
737
  FfiConverterUInt64.allocationSize(value.minBoardAmountSats) +
725
738
  FfiConverterUInt64.allocationSize(value.offboardFeerateSatPerVb) +
726
- FfiConverterBool.allocationSize(value.lnReceiveAntiDosRequired)
739
+ FfiConverterBool.allocationSize(value.lnReceiveAntiDosRequired) +
740
+ FfiConverterString.allocationSize(value.feeScheduleJson)
727
741
  );
728
742
  }
729
743
  }
@@ -2391,6 +2405,7 @@ export enum BarkError_Tags {
2391
2405
  Internal = "Internal",
2392
2406
  OnchainWalletRequired = "OnchainWalletRequired",
2393
2407
  InvalidVtxoId = "InvalidVtxoId",
2408
+ ServerPubkeyChanged = "ServerPubkeyChanged",
2394
2409
  }
2395
2410
  /**
2396
2411
  * Error types that can occur when using the Bark wallet
@@ -2880,6 +2895,46 @@ export const BarkError = (() => {
2880
2895
  }
2881
2896
  }
2882
2897
 
2898
+ type ServerPubkeyChanged__interface = {
2899
+ tag: BarkError_Tags.ServerPubkeyChanged;
2900
+ inner: Readonly<{ errorMessage: string }>;
2901
+ };
2902
+
2903
+ class ServerPubkeyChanged_
2904
+ extends UniffiError
2905
+ implements ServerPubkeyChanged__interface
2906
+ {
2907
+ /**
2908
+ * @private
2909
+ * This field is private and should not be used, use `tag` instead.
2910
+ */
2911
+ readonly [uniffiTypeNameSymbol] = "BarkError";
2912
+ readonly tag = BarkError_Tags.ServerPubkeyChanged;
2913
+ readonly inner: Readonly<{ errorMessage: string }>;
2914
+ constructor(inner: { errorMessage: string }) {
2915
+ super("BarkError", "ServerPubkeyChanged");
2916
+ this.inner = Object.freeze(inner);
2917
+ }
2918
+
2919
+ static new(inner: { errorMessage: string }): ServerPubkeyChanged_ {
2920
+ return new ServerPubkeyChanged_(inner);
2921
+ }
2922
+
2923
+ static instanceOf(obj: any): obj is ServerPubkeyChanged_ {
2924
+ return obj.tag === BarkError_Tags.ServerPubkeyChanged;
2925
+ }
2926
+
2927
+ static hasInner(obj: any): obj is ServerPubkeyChanged_ {
2928
+ return ServerPubkeyChanged_.instanceOf(obj);
2929
+ }
2930
+
2931
+ static getInner(
2932
+ obj: ServerPubkeyChanged_
2933
+ ): Readonly<{ errorMessage: string }> {
2934
+ return obj.inner;
2935
+ }
2936
+ }
2937
+
2883
2938
  function instanceOf(obj: any): obj is BarkError {
2884
2939
  return obj[uniffiTypeNameSymbol] === "BarkError";
2885
2940
  }
@@ -2899,6 +2954,7 @@ export const BarkError = (() => {
2899
2954
  Internal: Internal_,
2900
2955
  OnchainWalletRequired: OnchainWalletRequired_,
2901
2956
  InvalidVtxoId: InvalidVtxoId_,
2957
+ ServerPubkeyChanged: ServerPubkeyChanged_,
2902
2958
  });
2903
2959
  })();
2904
2960
 
@@ -2969,6 +3025,10 @@ const FfiConverterTypeBarkError = (() => {
2969
3025
  return new BarkError.InvalidVtxoId({
2970
3026
  errorMessage: FfiConverterString.read(from),
2971
3027
  });
3028
+ case 14:
3029
+ return new BarkError.ServerPubkeyChanged({
3030
+ errorMessage: FfiConverterString.read(from),
3031
+ });
2972
3032
  default:
2973
3033
  throw new UniffiInternalError.UnexpectedEnumCase();
2974
3034
  }
@@ -3053,6 +3113,12 @@ const FfiConverterTypeBarkError = (() => {
3053
3113
  FfiConverterString.write(inner.errorMessage, into);
3054
3114
  return;
3055
3115
  }
3116
+ case BarkError_Tags.ServerPubkeyChanged: {
3117
+ ordinalConverter.write(14, into);
3118
+ const inner = value.inner;
3119
+ FfiConverterString.write(inner.errorMessage, into);
3120
+ return;
3121
+ }
3056
3122
  default:
3057
3123
  // Throwing from here means that BarkError_Tags hasn't matched an ordinal.
3058
3124
  throw new UniffiInternalError.UnexpectedEnumCase();
@@ -3138,6 +3204,12 @@ const FfiConverterTypeBarkError = (() => {
3138
3204
  size += FfiConverterString.allocationSize(inner.errorMessage);
3139
3205
  return size;
3140
3206
  }
3207
+ case BarkError_Tags.ServerPubkeyChanged: {
3208
+ const inner = value.inner;
3209
+ let size = ordinalConverter.allocationSize(14);
3210
+ size += FfiConverterString.allocationSize(inner.errorMessage);
3211
+ return size;
3212
+ }
3141
3213
  default:
3142
3214
  throw new UniffiInternalError.UnexpectedEnumCase();
3143
3215
  }
@@ -3237,10 +3309,10 @@ export class OnchainWallet
3237
3309
  implements OnchainWalletInterface
3238
3310
  {
3239
3311
  readonly [uniffiTypeNameSymbol] = "OnchainWallet";
3240
- readonly [destructorGuardSymbol]: UniffiRustArcPtr;
3241
- readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
3312
+ readonly [destructorGuardSymbol]: UniffiGcObject;
3313
+ readonly [pointerLiteralSymbol]: UniffiHandle;
3242
3314
  // No primary constructor declared for this class.
3243
- private constructor(pointer: UnsafeMutableRawPointer) {
3315
+ private constructor(pointer: UniffiHandle) {
3244
3316
  super();
3245
3317
  this[pointerLiteralSymbol] = pointer;
3246
3318
  this[destructorGuardSymbol] =
@@ -3254,7 +3326,7 @@ export class OnchainWallet
3254
3326
  * (Dart/Swift/Kotlin) and want to integrate it with Bark for boarding and exits.
3255
3327
  * Your implementation must handle all wallet operations via the callbacks interface.
3256
3328
  */
3257
- public static custom(
3329
+ static custom(
3258
3330
  callbacks: CustomOnchainWalletCallbacks
3259
3331
  ): OnchainWalletInterface /*throws*/ {
3260
3332
  return FfiConverterTypeOnchainWallet.lift(
@@ -3279,7 +3351,7 @@ export class OnchainWallet
3279
3351
  * The wallet uses BDK for onchain operations
3280
3352
  * and the same chain source configuration as the Bark wallet (esplora_address or bitcoind_*).
3281
3353
  */
3282
- public static default_(
3354
+ static default_(
3283
3355
  mnemonic: string,
3284
3356
  config: Config,
3285
3357
  datadir: string
@@ -3305,7 +3377,7 @@ export class OnchainWallet
3305
3377
  /**
3306
3378
  * Get the onchain wallet balance
3307
3379
  */
3308
- public balance(): OnchainBalance /*throws*/ {
3380
+ balance(): OnchainBalance /*throws*/ {
3309
3381
  return FfiConverterTypeOnchainBalance.lift(
3310
3382
  uniffiCaller.rustCallWithError(
3311
3383
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -3325,7 +3397,7 @@ export class OnchainWallet
3325
3397
  /**
3326
3398
  * Generate a new Bitcoin address
3327
3399
  */
3328
- public newAddress(): string /*throws*/ {
3400
+ newAddress(): string /*throws*/ {
3329
3401
  return FfiConverterString.lift(
3330
3402
  uniffiCaller.rustCallWithError(
3331
3403
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -3346,7 +3418,7 @@ export class OnchainWallet
3346
3418
  * Send Bitcoin to an address
3347
3419
  * Returns the transaction ID
3348
3420
  */
3349
- public send(
3421
+ send(
3350
3422
  address: string,
3351
3423
  amountSats: /*u64*/ bigint,
3352
3424
  feeRateSatPerVb: /*u64*/ bigint
@@ -3374,7 +3446,7 @@ export class OnchainWallet
3374
3446
  * Sync the onchain wallet with the blockchain
3375
3447
  * Returns the amount synced in satoshis
3376
3448
  */
3377
- public sync(): /*u64*/ bigint /*throws*/ {
3449
+ sync(): /*u64*/ bigint /*throws*/ {
3378
3450
  return FfiConverterUInt64.lift(
3379
3451
  uniffiCaller.rustCallWithError(
3380
3452
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -3412,7 +3484,7 @@ export class OnchainWallet
3412
3484
  const uniffiTypeOnchainWalletObjectFactory: UniffiObjectFactory<OnchainWalletInterface> =
3413
3485
  (() => {
3414
3486
  return {
3415
- create(pointer: UnsafeMutableRawPointer): OnchainWalletInterface {
3487
+ create(pointer: UniffiHandle): OnchainWalletInterface {
3416
3488
  const instance = Object.create(OnchainWallet.prototype);
3417
3489
  instance[pointerLiteralSymbol] = pointer;
3418
3490
  instance[destructorGuardSymbol] = this.bless(pointer);
@@ -3420,7 +3492,7 @@ const uniffiTypeOnchainWalletObjectFactory: UniffiObjectFactory<OnchainWalletInt
3420
3492
  return instance;
3421
3493
  },
3422
3494
 
3423
- bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr {
3495
+ bless(p: UniffiHandle): UniffiGcObject {
3424
3496
  return uniffiCaller.rustCall(
3425
3497
  /*caller:*/ (status) =>
3426
3498
  nativeModule().ubrn_uniffi_internal_fn_method_onchainwallet_ffi__bless_pointer(
@@ -3431,18 +3503,18 @@ const uniffiTypeOnchainWalletObjectFactory: UniffiObjectFactory<OnchainWalletInt
3431
3503
  );
3432
3504
  },
3433
3505
 
3434
- unbless(ptr: UniffiRustArcPtr) {
3506
+ unbless(ptr: UniffiGcObject) {
3435
3507
  ptr.markDestroyed();
3436
3508
  },
3437
3509
 
3438
- pointer(obj: OnchainWalletInterface): UnsafeMutableRawPointer {
3510
+ pointer(obj: OnchainWalletInterface): UniffiHandle {
3439
3511
  if ((obj as any)[destructorGuardSymbol] === undefined) {
3440
3512
  throw new UniffiInternalError.UnexpectedNullPointer();
3441
3513
  }
3442
3514
  return (obj as any)[pointerLiteralSymbol];
3443
3515
  },
3444
3516
 
3445
- clonePointer(obj: OnchainWalletInterface): UnsafeMutableRawPointer {
3517
+ clonePointer(obj: OnchainWalletInterface): UniffiHandle {
3446
3518
  const pointer = this.pointer(obj);
3447
3519
  return uniffiCaller.rustCall(
3448
3520
  /*caller:*/ (callStatus) =>
@@ -3454,7 +3526,7 @@ const uniffiTypeOnchainWalletObjectFactory: UniffiObjectFactory<OnchainWalletInt
3454
3526
  );
3455
3527
  },
3456
3528
 
3457
- freePointer(pointer: UnsafeMutableRawPointer): void {
3529
+ freePointer(pointer: UniffiHandle): void {
3458
3530
  uniffiCaller.rustCall(
3459
3531
  /*caller:*/ (callStatus) =>
3460
3532
  nativeModule().ubrn_uniffi_bark_ffi_fn_free_onchainwallet(
@@ -3569,6 +3641,60 @@ export interface WalletInterface {
3569
3641
  address: string,
3570
3642
  feeRateSatPerVb: /*u64*/ bigint | undefined
3571
3643
  ): /*throws*/ ExitClaimTransaction;
3644
+ /**
3645
+ * Estimate the fee for a board operation
3646
+ *
3647
+ * # Arguments
3648
+ *
3649
+ * * `amount_sats` - Amount to board in sats
3650
+ *
3651
+ * Returns the estimated fee in sats
3652
+ */
3653
+ estimateBoardFee(amountSats: /*u64*/ bigint): /*throws*/ /*u64*/ bigint;
3654
+ /**
3655
+ * Estimate the fee for a lightning receive
3656
+ *
3657
+ * # Arguments
3658
+ *
3659
+ * * `amount_sats` - Amount to receive in sats
3660
+ *
3661
+ * Returns the estimated fee in sats
3662
+ */
3663
+ estimateLightningReceiveFee(
3664
+ amountSats: /*u64*/ bigint
3665
+ ): /*throws*/ /*u64*/ bigint;
3666
+ /**
3667
+ * Estimate the fee for a lightning send
3668
+ *
3669
+ * # Arguments
3670
+ *
3671
+ * * `amount_sats` - Amount to send in sats
3672
+ *
3673
+ * Returns the estimated fee in sats
3674
+ */
3675
+ estimateLightningSendFee(
3676
+ amountSats: /*u64*/ bigint
3677
+ ): /*throws*/ /*u64*/ bigint;
3678
+ /**
3679
+ * Estimate the fee for an offboard operation
3680
+ *
3681
+ * # Arguments
3682
+ *
3683
+ * * `amount_sats` - Amount to offboard in sats
3684
+ *
3685
+ * Returns the estimated fee in sats
3686
+ */
3687
+ estimateOffboardFee(amountSats: /*u64*/ bigint): /*throws*/ /*u64*/ bigint;
3688
+ /**
3689
+ * Estimate the fee for a refresh operation
3690
+ *
3691
+ * # Arguments
3692
+ *
3693
+ * * `vtxo_ids` - VTXOs to refresh
3694
+ *
3695
+ * Returns the estimated fee in sats
3696
+ */
3697
+ estimateRefreshFee(vtxoIds: Array<string>): /*throws*/ /*u64*/ bigint;
3572
3698
  /**
3573
3699
  * Get the wallet's BIP32 fingerprint
3574
3700
  */
@@ -3626,6 +3752,17 @@ export interface WalletInterface {
3626
3752
  * Get all wallet movements (transaction history)
3627
3753
  */
3628
3754
  history(): /*throws*/ Array<Movement>;
3755
+ /**
3756
+ * Import a serialized VTXO into the wallet
3757
+ *
3758
+ * Allows recovering VTXOs by importing their serialized form.
3759
+ * The VTXO data should be base64-encoded.
3760
+ *
3761
+ * # Arguments
3762
+ *
3763
+ * * `vtxo_base64` - Base64-encoded serialized VTXO
3764
+ */
3765
+ importVtxo(vtxoBase64: string): /*throws*/ void;
3629
3766
  /**
3630
3767
  * Get lightning receive status by payment hash
3631
3768
  *
@@ -3642,6 +3779,15 @@ export interface WalletInterface {
3642
3779
  * Returns exits ready to be drained to onchain wallet.
3643
3780
  */
3644
3781
  listClaimableExits(): /*throws*/ Array<ExitVtxo>;
3782
+ /**
3783
+ * Create a new authorization for your server mailbox
3784
+ *
3785
+ * This generates an authorization token that can be used to manage
3786
+ * your server mailbox. Useful for delegating mailbox access.
3787
+ *
3788
+ * Returns the mailbox authorization as a hex-encoded string.
3789
+ */
3790
+ mailboxAuthorization(): /*throws*/ string;
3645
3791
  /**
3646
3792
  * Get the mailbox identifier for push notifications
3647
3793
  *
@@ -3879,10 +4025,10 @@ export interface WalletInterface {
3879
4025
  */
3880
4026
  export class Wallet extends UniffiAbstractObject implements WalletInterface {
3881
4027
  readonly [uniffiTypeNameSymbol] = "Wallet";
3882
- readonly [destructorGuardSymbol]: UniffiRustArcPtr;
3883
- readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
4028
+ readonly [destructorGuardSymbol]: UniffiGcObject;
4029
+ readonly [pointerLiteralSymbol]: UniffiHandle;
3884
4030
  // No primary constructor declared for this class.
3885
- private constructor(pointer: UnsafeMutableRawPointer) {
4031
+ private constructor(pointer: UniffiHandle) {
3886
4032
  super();
3887
4033
  this[pointerLiteralSymbol] = pointer;
3888
4034
  this[destructorGuardSymbol] = uniffiTypeWalletObjectFactory.bless(pointer);
@@ -3891,7 +4037,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
3891
4037
  /**
3892
4038
  * Create a new Bark wallet
3893
4039
  */
3894
- public static create(
4040
+ static create(
3895
4041
  mnemonic: string,
3896
4042
  config: Config,
3897
4043
  datadir: string,
@@ -3919,7 +4065,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
3919
4065
  /**
3920
4066
  * Create a new Bark wallet WITH onchain capabilities
3921
4067
  */
3922
- public static createWithOnchain(
4068
+ static createWithOnchain(
3923
4069
  mnemonic: string,
3924
4070
  config: Config,
3925
4071
  datadir: string,
@@ -3949,7 +4095,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
3949
4095
  /**
3950
4096
  * Open an existing Bark wallet
3951
4097
  */
3952
- public static open(
4098
+ static open(
3953
4099
  mnemonic: string,
3954
4100
  config: Config,
3955
4101
  datadir: string
@@ -3975,7 +4121,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
3975
4121
  /**
3976
4122
  * Open an existing Bark wallet WITH onchain capabilities
3977
4123
  */
3978
- public static openWithOnchain(
4124
+ static openWithOnchain(
3979
4125
  mnemonic: string,
3980
4126
  config: Config,
3981
4127
  datadir: string,
@@ -4005,7 +4151,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4005
4151
  *
4006
4152
  * Returns null if no exits or any exit has undetermined claimability.
4007
4153
  */
4008
- public allExitsClaimableAtHeight(): /*u32*/ number | undefined /*throws*/ {
4154
+ allExitsClaimableAtHeight(): /*u32*/ number | undefined /*throws*/ {
4009
4155
  return FfiConverterOptionalUInt32.lift(
4010
4156
  uniffiCaller.rustCallWithError(
4011
4157
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -4025,7 +4171,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4025
4171
  /**
4026
4172
  * Get all VTXOs (including spent)
4027
4173
  */
4028
- public allVtxos(): Array<Vtxo> /*throws*/ {
4174
+ allVtxos(): Array<Vtxo> /*throws*/ {
4029
4175
  return FfiConverterArrayTypeVtxo.lift(
4030
4176
  uniffiCaller.rustCallWithError(
4031
4177
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -4045,7 +4191,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4045
4191
  /**
4046
4192
  * Get Ark server info (null if not connected)
4047
4193
  */
4048
- public arkInfo(): ArkInfo | undefined {
4194
+ arkInfo(): ArkInfo | undefined {
4049
4195
  return FfiConverterOptionalTypeArkInfo.lift(
4050
4196
  uniffiCaller.rustCall(
4051
4197
  /*caller:*/ (callStatus) => {
@@ -4059,7 +4205,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4059
4205
  );
4060
4206
  }
4061
4207
 
4062
- public balance(): Balance /*throws*/ {
4208
+ balance(): Balance /*throws*/ {
4063
4209
  return FfiConverterTypeBalance.lift(
4064
4210
  uniffiCaller.rustCallWithError(
4065
4211
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -4079,9 +4225,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4079
4225
  /**
4080
4226
  * Board all funds from onchain wallet into Ark
4081
4227
  */
4082
- public boardAll(
4083
- onchainWallet: OnchainWalletInterface
4084
- ): PendingBoard /*throws*/ {
4228
+ boardAll(onchainWallet: OnchainWalletInterface): PendingBoard /*throws*/ {
4085
4229
  return FfiConverterTypePendingBoard.lift(
4086
4230
  uniffiCaller.rustCallWithError(
4087
4231
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -4102,7 +4246,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4102
4246
  /**
4103
4247
  * Board a specific amount from onchain wallet into Ark
4104
4248
  */
4105
- public boardAmount(
4249
+ boardAmount(
4106
4250
  onchainWallet: OnchainWalletInterface,
4107
4251
  amountSats: /*u64*/ bigint
4108
4252
  ): PendingBoard /*throws*/ {
@@ -4124,9 +4268,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4124
4268
  );
4125
4269
  }
4126
4270
 
4127
- public bolt11Invoice(
4128
- amountSats: /*u64*/ bigint
4129
- ): LightningInvoice /*throws*/ {
4271
+ bolt11Invoice(amountSats: /*u64*/ bigint): LightningInvoice /*throws*/ {
4130
4272
  return FfiConverterTypeLightningInvoice.lift(
4131
4273
  uniffiCaller.rustCallWithError(
4132
4274
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -4156,7 +4298,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4156
4298
  *
4157
4299
  * Returns the transaction ID (txid) of the broadcasted transaction
4158
4300
  */
4159
- public broadcastTx(txHex: string): string /*throws*/ {
4301
+ broadcastTx(txHex: string): string /*throws*/ {
4160
4302
  return FfiConverterString.lift(
4161
4303
  uniffiCaller.rustCallWithError(
4162
4304
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -4177,7 +4319,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4177
4319
  /**
4178
4320
  * Cancel all pending rounds
4179
4321
  */
4180
- public cancelAllPendingRounds(): void /*throws*/ {
4322
+ cancelAllPendingRounds(): void /*throws*/ {
4181
4323
  uniffiCaller.rustCallWithError(
4182
4324
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
4183
4325
  FfiConverterTypeBarkError
@@ -4195,7 +4337,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4195
4337
  /**
4196
4338
  * Cancel a specific pending round
4197
4339
  */
4198
- public cancelPendingRound(roundId: /*u32*/ number): void /*throws*/ {
4340
+ cancelPendingRound(roundId: /*u32*/ number): void /*throws*/ {
4199
4341
  uniffiCaller.rustCallWithError(
4200
4342
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
4201
4343
  FfiConverterTypeBarkError
@@ -4221,7 +4363,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4221
4363
  *
4222
4364
  * Returns the preimage if payment is successful, null if still pending
4223
4365
  */
4224
- public checkLightningPayment(
4366
+ checkLightningPayment(
4225
4367
  paymentHash: string,
4226
4368
  wait: boolean
4227
4369
  ): string | undefined /*throws*/ {
@@ -4246,7 +4388,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4246
4388
  /**
4247
4389
  * Get claimable lightning receive balance
4248
4390
  */
4249
- public claimableLightningReceiveBalanceSats(): /*u64*/ bigint /*throws*/ {
4391
+ claimableLightningReceiveBalanceSats(): /*u64*/ bigint /*throws*/ {
4250
4392
  return FfiConverterUInt64.lift(
4251
4393
  uniffiCaller.rustCallWithError(
4252
4394
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -4266,7 +4408,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4266
4408
  /**
4267
4409
  * Get wallet config
4268
4410
  */
4269
- public config(): Config {
4411
+ config(): Config {
4270
4412
  return FfiConverterTypeConfig.lift(
4271
4413
  uniffiCaller.rustCall(
4272
4414
  /*caller:*/ (callStatus) => {
@@ -4292,7 +4434,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4292
4434
  * * `address` - Bitcoin address to send claimed funds to
4293
4435
  * * `fee_rate_sat_per_vb` - Optional fee rate override in sats/vB
4294
4436
  */
4295
- public drainExits(
4437
+ drainExits(
4296
4438
  vtxoIds: Array<string>,
4297
4439
  address: string,
4298
4440
  feeRateSatPerVb: /*u64*/ bigint | undefined
@@ -4316,10 +4458,149 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4316
4458
  );
4317
4459
  }
4318
4460
 
4461
+ /**
4462
+ * Estimate the fee for a board operation
4463
+ *
4464
+ * # Arguments
4465
+ *
4466
+ * * `amount_sats` - Amount to board in sats
4467
+ *
4468
+ * Returns the estimated fee in sats
4469
+ */
4470
+ estimateBoardFee(amountSats: /*u64*/ bigint): /*u64*/ bigint /*throws*/ {
4471
+ return FfiConverterUInt64.lift(
4472
+ uniffiCaller.rustCallWithError(
4473
+ /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
4474
+ FfiConverterTypeBarkError
4475
+ ),
4476
+ /*caller:*/ (callStatus) => {
4477
+ return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_board_fee(
4478
+ uniffiTypeWalletObjectFactory.clonePointer(this),
4479
+ FfiConverterUInt64.lower(amountSats),
4480
+ callStatus
4481
+ );
4482
+ },
4483
+ /*liftString:*/ FfiConverterString.lift
4484
+ )
4485
+ );
4486
+ }
4487
+
4488
+ /**
4489
+ * Estimate the fee for a lightning receive
4490
+ *
4491
+ * # Arguments
4492
+ *
4493
+ * * `amount_sats` - Amount to receive in sats
4494
+ *
4495
+ * Returns the estimated fee in sats
4496
+ */
4497
+ estimateLightningReceiveFee(
4498
+ amountSats: /*u64*/ bigint
4499
+ ): /*u64*/ bigint /*throws*/ {
4500
+ return FfiConverterUInt64.lift(
4501
+ uniffiCaller.rustCallWithError(
4502
+ /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
4503
+ FfiConverterTypeBarkError
4504
+ ),
4505
+ /*caller:*/ (callStatus) => {
4506
+ return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_lightning_receive_fee(
4507
+ uniffiTypeWalletObjectFactory.clonePointer(this),
4508
+ FfiConverterUInt64.lower(amountSats),
4509
+ callStatus
4510
+ );
4511
+ },
4512
+ /*liftString:*/ FfiConverterString.lift
4513
+ )
4514
+ );
4515
+ }
4516
+
4517
+ /**
4518
+ * Estimate the fee for a lightning send
4519
+ *
4520
+ * # Arguments
4521
+ *
4522
+ * * `amount_sats` - Amount to send in sats
4523
+ *
4524
+ * Returns the estimated fee in sats
4525
+ */
4526
+ estimateLightningSendFee(
4527
+ amountSats: /*u64*/ bigint
4528
+ ): /*u64*/ bigint /*throws*/ {
4529
+ return FfiConverterUInt64.lift(
4530
+ uniffiCaller.rustCallWithError(
4531
+ /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
4532
+ FfiConverterTypeBarkError
4533
+ ),
4534
+ /*caller:*/ (callStatus) => {
4535
+ return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_lightning_send_fee(
4536
+ uniffiTypeWalletObjectFactory.clonePointer(this),
4537
+ FfiConverterUInt64.lower(amountSats),
4538
+ callStatus
4539
+ );
4540
+ },
4541
+ /*liftString:*/ FfiConverterString.lift
4542
+ )
4543
+ );
4544
+ }
4545
+
4546
+ /**
4547
+ * Estimate the fee for an offboard operation
4548
+ *
4549
+ * # Arguments
4550
+ *
4551
+ * * `amount_sats` - Amount to offboard in sats
4552
+ *
4553
+ * Returns the estimated fee in sats
4554
+ */
4555
+ estimateOffboardFee(amountSats: /*u64*/ bigint): /*u64*/ bigint /*throws*/ {
4556
+ return FfiConverterUInt64.lift(
4557
+ uniffiCaller.rustCallWithError(
4558
+ /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
4559
+ FfiConverterTypeBarkError
4560
+ ),
4561
+ /*caller:*/ (callStatus) => {
4562
+ return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_offboard_fee(
4563
+ uniffiTypeWalletObjectFactory.clonePointer(this),
4564
+ FfiConverterUInt64.lower(amountSats),
4565
+ callStatus
4566
+ );
4567
+ },
4568
+ /*liftString:*/ FfiConverterString.lift
4569
+ )
4570
+ );
4571
+ }
4572
+
4573
+ /**
4574
+ * Estimate the fee for a refresh operation
4575
+ *
4576
+ * # Arguments
4577
+ *
4578
+ * * `vtxo_ids` - VTXOs to refresh
4579
+ *
4580
+ * Returns the estimated fee in sats
4581
+ */
4582
+ estimateRefreshFee(vtxoIds: Array<string>): /*u64*/ bigint /*throws*/ {
4583
+ return FfiConverterUInt64.lift(
4584
+ uniffiCaller.rustCallWithError(
4585
+ /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
4586
+ FfiConverterTypeBarkError
4587
+ ),
4588
+ /*caller:*/ (callStatus) => {
4589
+ return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_refresh_fee(
4590
+ uniffiTypeWalletObjectFactory.clonePointer(this),
4591
+ FfiConverterArrayString.lower(vtxoIds),
4592
+ callStatus
4593
+ );
4594
+ },
4595
+ /*liftString:*/ FfiConverterString.lift
4596
+ )
4597
+ );
4598
+ }
4599
+
4319
4600
  /**
4320
4601
  * Get the wallet's BIP32 fingerprint
4321
4602
  */
4322
- public fingerprint(): string {
4603
+ fingerprint(): string {
4323
4604
  return FfiConverterString.lift(
4324
4605
  uniffiCaller.rustCall(
4325
4606
  /*caller:*/ (callStatus) => {
@@ -4344,7 +4625,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4344
4625
  * * `include_history` - Whether to include full state machine history
4345
4626
  * * `include_transactions` - Whether to include transaction details
4346
4627
  */
4347
- public getExitStatus(
4628
+ getExitStatus(
4348
4629
  vtxoId: string,
4349
4630
  includeHistory: boolean,
4350
4631
  includeTransactions: boolean
@@ -4371,7 +4652,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4371
4652
  /**
4372
4653
  * Get all VTXOs currently in exit process
4373
4654
  */
4374
- public getExitVtxos(): Array<ExitVtxo> /*throws*/ {
4655
+ getExitVtxos(): Array<ExitVtxo> /*throws*/ {
4375
4656
  return FfiConverterArrayTypeExitVtxo.lift(
4376
4657
  uniffiCaller.rustCallWithError(
4377
4658
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -4391,9 +4672,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4391
4672
  /**
4392
4673
  * Get VTXOs expiring within threshold blocks
4393
4674
  */
4394
- public getExpiringVtxos(
4395
- thresholdBlocks: /*u32*/ number
4396
- ): Array<Vtxo> /*throws*/ {
4675
+ getExpiringVtxos(thresholdBlocks: /*u32*/ number): Array<Vtxo> /*throws*/ {
4397
4676
  return FfiConverterArrayTypeVtxo.lift(
4398
4677
  uniffiCaller.rustCallWithError(
4399
4678
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -4416,9 +4695,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4416
4695
  *
4417
4696
  * Returns null if there are no spendable VTXOs.
4418
4697
  */
4419
- public getFirstExpiringVtxoBlockheight(): /*u32*/
4420
- | number
4421
- | undefined /*throws*/ {
4698
+ getFirstExpiringVtxoBlockheight(): /*u32*/ number | undefined /*throws*/ {
4422
4699
  return FfiConverterOptionalUInt32.lift(
4423
4700
  uniffiCaller.rustCallWithError(
4424
4701
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -4441,9 +4718,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4441
4718
  * This is calculated as the first expiring VTXO height minus the refresh threshold.
4442
4719
  * Returns null if there are no VTXOs to refresh.
4443
4720
  */
4444
- public getNextRequiredRefreshBlockheight(): /*u32*/
4445
- | number
4446
- | undefined /*throws*/ {
4721
+ getNextRequiredRefreshBlockheight(): /*u32*/ number | undefined /*throws*/ {
4447
4722
  return FfiConverterOptionalUInt32.lift(
4448
4723
  uniffiCaller.rustCallWithError(
4449
4724
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -4463,7 +4738,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4463
4738
  /**
4464
4739
  * Get a specific VTXO by ID
4465
4740
  */
4466
- public getVtxoById(vtxoId: string): Vtxo /*throws*/ {
4741
+ getVtxoById(vtxoId: string): Vtxo /*throws*/ {
4467
4742
  return FfiConverterTypeVtxo.lift(
4468
4743
  uniffiCaller.rustCallWithError(
4469
4744
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -4484,7 +4759,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4484
4759
  /**
4485
4760
  * Get VTXOs that should be refreshed
4486
4761
  */
4487
- public getVtxosToRefresh(): Array<Vtxo> /*throws*/ {
4762
+ getVtxosToRefresh(): Array<Vtxo> /*throws*/ {
4488
4763
  return FfiConverterArrayTypeVtxo.lift(
4489
4764
  uniffiCaller.rustCallWithError(
4490
4765
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -4504,7 +4779,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4504
4779
  /**
4505
4780
  * Check if any exits are pending
4506
4781
  */
4507
- public hasPendingExits(): boolean /*throws*/ {
4782
+ hasPendingExits(): boolean /*throws*/ {
4508
4783
  return FfiConverterBool.lift(
4509
4784
  uniffiCaller.rustCallWithError(
4510
4785
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -4524,7 +4799,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4524
4799
  /**
4525
4800
  * Get all wallet movements (transaction history)
4526
4801
  */
4527
- public history(): Array<Movement> /*throws*/ {
4802
+ history(): Array<Movement> /*throws*/ {
4528
4803
  return FfiConverterArrayTypeMovement.lift(
4529
4804
  uniffiCaller.rustCallWithError(
4530
4805
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -4541,6 +4816,32 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4541
4816
  );
4542
4817
  }
4543
4818
 
4819
+ /**
4820
+ * Import a serialized VTXO into the wallet
4821
+ *
4822
+ * Allows recovering VTXOs by importing their serialized form.
4823
+ * The VTXO data should be base64-encoded.
4824
+ *
4825
+ * # Arguments
4826
+ *
4827
+ * * `vtxo_base64` - Base64-encoded serialized VTXO
4828
+ */
4829
+ importVtxo(vtxoBase64: string): void /*throws*/ {
4830
+ uniffiCaller.rustCallWithError(
4831
+ /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
4832
+ FfiConverterTypeBarkError
4833
+ ),
4834
+ /*caller:*/ (callStatus) => {
4835
+ nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_import_vtxo(
4836
+ uniffiTypeWalletObjectFactory.clonePointer(this),
4837
+ FfiConverterString.lower(vtxoBase64),
4838
+ callStatus
4839
+ );
4840
+ },
4841
+ /*liftString:*/ FfiConverterString.lift
4842
+ );
4843
+ }
4844
+
4544
4845
  /**
4545
4846
  * Get lightning receive status by payment hash
4546
4847
  *
@@ -4548,7 +4849,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4548
4849
  *
4549
4850
  * * `payment_hash` - Payment hash as hex string
4550
4851
  */
4551
- public lightningReceiveStatus(
4852
+ lightningReceiveStatus(
4552
4853
  paymentHash: string
4553
4854
  ): LightningReceive | undefined /*throws*/ {
4554
4855
  return FfiConverterOptionalTypeLightningReceive.lift(
@@ -4573,7 +4874,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4573
4874
  *
4574
4875
  * Returns exits ready to be drained to onchain wallet.
4575
4876
  */
4576
- public listClaimableExits(): Array<ExitVtxo> /*throws*/ {
4877
+ listClaimableExits(): Array<ExitVtxo> /*throws*/ {
4577
4878
  return FfiConverterArrayTypeExitVtxo.lift(
4578
4879
  uniffiCaller.rustCallWithError(
4579
4880
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -4590,6 +4891,31 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4590
4891
  );
4591
4892
  }
4592
4893
 
4894
+ /**
4895
+ * Create a new authorization for your server mailbox
4896
+ *
4897
+ * This generates an authorization token that can be used to manage
4898
+ * your server mailbox. Useful for delegating mailbox access.
4899
+ *
4900
+ * Returns the mailbox authorization as a hex-encoded string.
4901
+ */
4902
+ mailboxAuthorization(): string /*throws*/ {
4903
+ return FfiConverterString.lift(
4904
+ uniffiCaller.rustCallWithError(
4905
+ /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
4906
+ FfiConverterTypeBarkError
4907
+ ),
4908
+ /*caller:*/ (callStatus) => {
4909
+ return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_mailbox_authorization(
4910
+ uniffiTypeWalletObjectFactory.clonePointer(this),
4911
+ callStatus
4912
+ );
4913
+ },
4914
+ /*liftString:*/ FfiConverterString.lift
4915
+ )
4916
+ );
4917
+ }
4918
+
4593
4919
  /**
4594
4920
  * Get the mailbox identifier for push notifications
4595
4921
  *
@@ -4600,7 +4926,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4600
4926
  *
4601
4927
  * Returns the mailbox identifier as a hex-encoded public key.
4602
4928
  */
4603
- public mailboxIdentifier(): string /*throws*/ {
4929
+ mailboxIdentifier(): string /*throws*/ {
4604
4930
  return FfiConverterString.lift(
4605
4931
  uniffiCaller.rustCallWithError(
4606
4932
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -4617,7 +4943,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4617
4943
  );
4618
4944
  }
4619
4945
 
4620
- public maintenance(): void /*throws*/ {
4946
+ maintenance(): void /*throws*/ {
4621
4947
  uniffiCaller.rustCallWithError(
4622
4948
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
4623
4949
  FfiConverterTypeBarkError
@@ -4638,7 +4964,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4638
4964
  * This schedules refresh operations but doesn't wait for completion.
4639
4965
  * Use this when you want to queue operations without blocking.
4640
4966
  */
4641
- public maintenanceDelegated(): void /*throws*/ {
4967
+ maintenanceDelegated(): void /*throws*/ {
4642
4968
  uniffiCaller.rustCallWithError(
4643
4969
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
4644
4970
  FfiConverterTypeBarkError
@@ -4656,7 +4982,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4656
4982
  /**
4657
4983
  * Perform maintenance refresh
4658
4984
  */
4659
- public maintenanceRefresh(): string | undefined /*throws*/ {
4985
+ maintenanceRefresh(): string | undefined /*throws*/ {
4660
4986
  return FfiConverterOptionalString.lift(
4661
4987
  uniffiCaller.rustCallWithError(
4662
4988
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -4678,7 +5004,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4678
5004
  *
4679
5005
  * More thorough than maintenance() - also syncs onchain wallet and exits.
4680
5006
  */
4681
- public maintenanceWithOnchain(
5007
+ maintenanceWithOnchain(
4682
5008
  onchainWallet: OnchainWalletInterface
4683
5009
  ): void /*throws*/ {
4684
5010
  uniffiCaller.rustCallWithError(
@@ -4699,7 +5025,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4699
5025
  /**
4700
5026
  * Perform maintenance with onchain wallet in delegated mode
4701
5027
  */
4702
- public maintenanceWithOnchainDelegated(
5028
+ maintenanceWithOnchainDelegated(
4703
5029
  onchainWallet: OnchainWalletInterface
4704
5030
  ): void /*throws*/ {
4705
5031
  uniffiCaller.rustCallWithError(
@@ -4722,9 +5048,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4722
5048
  *
4723
5049
  * Returns the round ID if a refresh was scheduled, null otherwise.
4724
5050
  */
4725
- public maybeScheduleMaintenanceRefresh(): /*u32*/
4726
- | number
4727
- | undefined /*throws*/ {
5051
+ maybeScheduleMaintenanceRefresh(): /*u32*/ number | undefined /*throws*/ {
4728
5052
  return FfiConverterOptionalUInt32.lift(
4729
5053
  uniffiCaller.rustCallWithError(
4730
5054
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -4744,7 +5068,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4744
5068
  /**
4745
5069
  * Get the Bitcoin network this wallet is using
4746
5070
  */
4747
- public network(): Network /*throws*/ {
5071
+ network(): Network /*throws*/ {
4748
5072
  return FfiConverterTypeNetwork.lift(
4749
5073
  uniffiCaller.rustCallWithError(
4750
5074
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -4761,7 +5085,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4761
5085
  );
4762
5086
  }
4763
5087
 
4764
- public newAddress(): string /*throws*/ {
5088
+ newAddress(): string /*throws*/ {
4765
5089
  return FfiConverterString.lift(
4766
5090
  uniffiCaller.rustCallWithError(
4767
5091
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -4781,7 +5105,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4781
5105
  /**
4782
5106
  * Generate a new address and return it with its index
4783
5107
  */
4784
- public newAddressWithIndex(): AddressWithIndex /*throws*/ {
5108
+ newAddressWithIndex(): AddressWithIndex /*throws*/ {
4785
5109
  return FfiConverterTypeAddressWithIndex.lift(
4786
5110
  uniffiCaller.rustCallWithError(
4787
5111
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -4802,7 +5126,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4802
5126
  * Get the timestamp when the next round will start (Unix timestamp in seconds)
4803
5127
  * Returns an error if the server hasn't provided round timing info
4804
5128
  */
4805
- public nextRoundStartTime(): /*u64*/ bigint /*throws*/ {
5129
+ nextRoundStartTime(): /*u64*/ bigint /*throws*/ {
4806
5130
  return FfiConverterUInt64.lift(
4807
5131
  uniffiCaller.rustCallWithError(
4808
5132
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -4819,7 +5143,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4819
5143
  );
4820
5144
  }
4821
5145
 
4822
- public offboardAll(bitcoinAddress: string): OffboardResult /*throws*/ {
5146
+ offboardAll(bitcoinAddress: string): OffboardResult /*throws*/ {
4823
5147
  return FfiConverterTypeOffboardResult.lift(
4824
5148
  uniffiCaller.rustCallWithError(
4825
5149
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -4840,7 +5164,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4840
5164
  /**
4841
5165
  * Offboard specific VTXOs to a Bitcoin address
4842
5166
  */
4843
- public offboardVtxos(
5167
+ offboardVtxos(
4844
5168
  vtxoIds: Array<string>,
4845
5169
  bitcoinAddress: string
4846
5170
  ): string /*throws*/ {
@@ -4862,7 +5186,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4862
5186
  );
4863
5187
  }
4864
5188
 
4865
- public payLightningAddress(
5189
+ payLightningAddress(
4866
5190
  lightningAddress: string,
4867
5191
  amountSats: /*u64*/ bigint,
4868
5192
  comment: string | undefined
@@ -4886,7 +5210,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4886
5210
  );
4887
5211
  }
4888
5212
 
4889
- public payLightningInvoice(
5213
+ payLightningInvoice(
4890
5214
  invoice: string,
4891
5215
  amountSats: /*u64*/ bigint | undefined
4892
5216
  ): LightningSend /*throws*/ {
@@ -4916,7 +5240,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4916
5240
  * * `offer` - BOLT12 offer string
4917
5241
  * * `amount_sats` - Optional amount in sats (required if offer doesn't specify amount)
4918
5242
  */
4919
- public payLightningOffer(
5243
+ payLightningOffer(
4920
5244
  offer: string,
4921
5245
  amountSats: /*u64*/ bigint | undefined
4922
5246
  ): LightningSend /*throws*/ {
@@ -4941,7 +5265,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4941
5265
  /**
4942
5266
  * Peek at an address at a specific index
4943
5267
  */
4944
- public peakAddress(index: /*u32*/ number): string /*throws*/ {
5268
+ peakAddress(index: /*u32*/ number): string /*throws*/ {
4945
5269
  return FfiConverterString.lift(
4946
5270
  uniffiCaller.rustCallWithError(
4947
5271
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -4962,7 +5286,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4962
5286
  /**
4963
5287
  * Get all VTXOs that are part of pending boards
4964
5288
  */
4965
- public pendingBoardVtxos(): Array<Vtxo> /*throws*/ {
5289
+ pendingBoardVtxos(): Array<Vtxo> /*throws*/ {
4966
5290
  return FfiConverterArrayTypeVtxo.lift(
4967
5291
  uniffiCaller.rustCallWithError(
4968
5292
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -4982,7 +5306,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4982
5306
  /**
4983
5307
  * Get all pending board operations
4984
5308
  */
4985
- public pendingBoards(): Array<PendingBoard> /*throws*/ {
5309
+ pendingBoards(): Array<PendingBoard> /*throws*/ {
4986
5310
  return FfiConverterArrayTypePendingBoard.lift(
4987
5311
  uniffiCaller.rustCallWithError(
4988
5312
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -5002,7 +5326,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
5002
5326
  /**
5003
5327
  * Get total amount in pending exits (sats)
5004
5328
  */
5005
- public pendingExitsTotalSats(): /*u64*/ bigint /*throws*/ {
5329
+ pendingExitsTotalSats(): /*u64*/ bigint /*throws*/ {
5006
5330
  return FfiConverterUInt64.lift(
5007
5331
  uniffiCaller.rustCallWithError(
5008
5332
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -5022,7 +5346,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
5022
5346
  /**
5023
5347
  * Get all pending lightning receives
5024
5348
  */
5025
- public pendingLightningReceives(): Array<LightningReceive> /*throws*/ {
5349
+ pendingLightningReceives(): Array<LightningReceive> /*throws*/ {
5026
5350
  return FfiConverterArrayTypeLightningReceive.lift(
5027
5351
  uniffiCaller.rustCallWithError(
5028
5352
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -5042,7 +5366,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
5042
5366
  /**
5043
5367
  * Get VTXOs locked in pending Lightning sends
5044
5368
  */
5045
- public pendingLightningSendVtxos(): Array<Vtxo> /*throws*/ {
5369
+ pendingLightningSendVtxos(): Array<Vtxo> /*throws*/ {
5046
5370
  return FfiConverterArrayTypeVtxo.lift(
5047
5371
  uniffiCaller.rustCallWithError(
5048
5372
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -5062,7 +5386,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
5062
5386
  /**
5063
5387
  * Get all pending lightning sends
5064
5388
  */
5065
- public pendingLightningSends(): Array<LightningSend> /*throws*/ {
5389
+ pendingLightningSends(): Array<LightningSend> /*throws*/ {
5066
5390
  return FfiConverterArrayTypeLightningSend.lift(
5067
5391
  uniffiCaller.rustCallWithError(
5068
5392
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -5082,7 +5406,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
5082
5406
  /**
5083
5407
  * Get VTXOs being used as inputs in pending rounds
5084
5408
  */
5085
- public pendingRoundInputVtxos(): Array<Vtxo> /*throws*/ {
5409
+ pendingRoundInputVtxos(): Array<Vtxo> /*throws*/ {
5086
5410
  return FfiConverterArrayTypeVtxo.lift(
5087
5411
  uniffiCaller.rustCallWithError(
5088
5412
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -5102,7 +5426,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
5102
5426
  /**
5103
5427
  * Get all pending round states
5104
5428
  */
5105
- public pendingRoundStates(): Array<RoundState> /*throws*/ {
5429
+ pendingRoundStates(): Array<RoundState> /*throws*/ {
5106
5430
  return FfiConverterArrayTypeRoundState.lift(
5107
5431
  uniffiCaller.rustCallWithError(
5108
5432
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -5130,7 +5454,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
5130
5454
  * * `onchain_wallet` - Onchain wallet for building exit transactions
5131
5455
  * * `fee_rate_sat_per_vb` - Optional fee rate override in sats/vB
5132
5456
  */
5133
- public progressExits(
5457
+ progressExits(
5134
5458
  onchainWallet: OnchainWalletInterface,
5135
5459
  feeRateSatPerVb: /*u64*/ bigint | undefined
5136
5460
  ): Array<ExitProgressStatus> /*throws*/ {
@@ -5157,7 +5481,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
5157
5481
  *
5158
5482
  * Advances the state of all pending rounds. Call periodically.
5159
5483
  */
5160
- public progressPendingRounds(): void /*throws*/ {
5484
+ progressPendingRounds(): void /*throws*/ {
5161
5485
  uniffiCaller.rustCallWithError(
5162
5486
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
5163
5487
  FfiConverterTypeBarkError
@@ -5175,7 +5499,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
5175
5499
  /**
5176
5500
  * Get wallet properties
5177
5501
  */
5178
- public properties(): WalletProperties /*throws*/ {
5502
+ properties(): WalletProperties /*throws*/ {
5179
5503
  return FfiConverterTypeWalletProperties.lift(
5180
5504
  uniffiCaller.rustCallWithError(
5181
5505
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -5197,7 +5521,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
5197
5521
  *
5198
5522
  * Re-establishes connection if it was lost.
5199
5523
  */
5200
- public refreshServer(): void /*throws*/ {
5524
+ refreshServer(): void /*throws*/ {
5201
5525
  uniffiCaller.rustCallWithError(
5202
5526
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
5203
5527
  FfiConverterTypeBarkError
@@ -5215,7 +5539,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
5215
5539
  /**
5216
5540
  * Refresh specific VTXOs
5217
5541
  */
5218
- public refreshVtxos(vtxoIds: Array<string>): string | undefined /*throws*/ {
5542
+ refreshVtxos(vtxoIds: Array<string>): string | undefined /*throws*/ {
5219
5543
  return FfiConverterOptionalString.lift(
5220
5544
  uniffiCaller.rustCallWithError(
5221
5545
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -5238,7 +5562,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
5238
5562
  *
5239
5563
  * Returns the round state if a refresh was scheduled, null otherwise.
5240
5564
  */
5241
- public refreshVtxosDelegated(
5565
+ refreshVtxosDelegated(
5242
5566
  vtxoIds: Array<string>
5243
5567
  ): RoundState | undefined /*throws*/ {
5244
5568
  return FfiConverterOptionalTypeRoundState.lift(
@@ -5258,7 +5582,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
5258
5582
  );
5259
5583
  }
5260
5584
 
5261
- public sendArkoorPayment(
5585
+ sendArkoorPayment(
5262
5586
  arkAddress: string,
5263
5587
  amountSats: /*u64*/ bigint
5264
5588
  ): string /*throws*/ {
@@ -5280,10 +5604,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
5280
5604
  );
5281
5605
  }
5282
5606
 
5283
- public sendOnchain(
5284
- address: string,
5285
- amountSats: /*u64*/ bigint
5286
- ): string /*throws*/ {
5607
+ sendOnchain(address: string, amountSats: /*u64*/ bigint): string /*throws*/ {
5287
5608
  return FfiConverterString.lift(
5288
5609
  uniffiCaller.rustCallWithError(
5289
5610
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -5314,7 +5635,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
5314
5635
  *
5315
5636
  * Returns the signed PSBT
5316
5637
  */
5317
- public signExitClaimInputs(psbtBase64: string): string /*throws*/ {
5638
+ signExitClaimInputs(psbtBase64: string): string /*throws*/ {
5318
5639
  return FfiConverterString.lift(
5319
5640
  uniffiCaller.rustCallWithError(
5320
5641
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -5335,7 +5656,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
5335
5656
  /**
5336
5657
  * Get all spendable VTXOs
5337
5658
  */
5338
- public spendableVtxos(): Array<Vtxo> /*throws*/ {
5659
+ spendableVtxos(): Array<Vtxo> /*throws*/ {
5339
5660
  return FfiConverterArrayTypeVtxo.lift(
5340
5661
  uniffiCaller.rustCallWithError(
5341
5662
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -5355,7 +5676,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
5355
5676
  /**
5356
5677
  * Start unilateral exit for the entire wallet
5357
5678
  */
5358
- public startExitForEntireWallet(): void /*throws*/ {
5679
+ startExitForEntireWallet(): void /*throws*/ {
5359
5680
  uniffiCaller.rustCallWithError(
5360
5681
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
5361
5682
  FfiConverterTypeBarkError
@@ -5375,7 +5696,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
5375
5696
  *
5376
5697
  * Marks specific VTXOs for exit. Call progress_exits() to actually advance them.
5377
5698
  */
5378
- public startExitForVtxos(vtxoIds: Array<string>): void /*throws*/ {
5699
+ startExitForVtxos(vtxoIds: Array<string>): void /*throws*/ {
5379
5700
  uniffiCaller.rustCallWithError(
5380
5701
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
5381
5702
  FfiConverterTypeBarkError
@@ -5396,7 +5717,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
5396
5717
  * Note: Bark's sync() handles errors internally with logging.
5397
5718
  * The Throws annotation is for forward compatibility only.
5398
5719
  */
5399
- public sync(): void /*throws*/ {
5720
+ sync(): void /*throws*/ {
5400
5721
  uniffiCaller.rustCallWithError(
5401
5722
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
5402
5723
  FfiConverterTypeBarkError
@@ -5414,7 +5735,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
5414
5735
  /**
5415
5736
  * Sync exit state (checks status but doesn't progress)
5416
5737
  */
5417
- public syncExits(onchainWallet: OnchainWalletInterface): void /*throws*/ {
5738
+ syncExits(onchainWallet: OnchainWalletInterface): void /*throws*/ {
5418
5739
  uniffiCaller.rustCallWithError(
5419
5740
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
5420
5741
  FfiConverterTypeBarkError
@@ -5433,7 +5754,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
5433
5754
  /**
5434
5755
  * Sync pending board transactions
5435
5756
  */
5436
- public syncPendingBoards(): void /*throws*/ {
5757
+ syncPendingBoards(): void /*throws*/ {
5437
5758
  uniffiCaller.rustCallWithError(
5438
5759
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
5439
5760
  FfiConverterTypeBarkError
@@ -5448,7 +5769,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
5448
5769
  );
5449
5770
  }
5450
5771
 
5451
- public tryClaimAllLightningReceives(wait: boolean): void /*throws*/ {
5772
+ tryClaimAllLightningReceives(wait: boolean): void /*throws*/ {
5452
5773
  uniffiCaller.rustCallWithError(
5453
5774
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
5454
5775
  FfiConverterTypeBarkError
@@ -5472,7 +5793,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
5472
5793
  * * `payment_hash` - Payment hash as hex string
5473
5794
  * * `wait` - Whether to wait for claim to complete
5474
5795
  */
5475
- public tryClaimLightningReceive(
5796
+ tryClaimLightningReceive(
5476
5797
  paymentHash: string,
5477
5798
  wait: boolean
5478
5799
  ): void /*throws*/ {
@@ -5499,7 +5820,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
5499
5820
  * belongs to the currently connected Ark server.
5500
5821
  * For basic format validation only, use validate_ark_address() instead.
5501
5822
  */
5502
- public validateArkoorAddress(address: string): boolean /*throws*/ {
5823
+ validateArkoorAddress(address: string): boolean /*throws*/ {
5503
5824
  return FfiConverterBool.lift(
5504
5825
  uniffiCaller.rustCallWithError(
5505
5826
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -5517,7 +5838,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
5517
5838
  );
5518
5839
  }
5519
5840
 
5520
- public vtxos(): Array<Vtxo> /*throws*/ {
5841
+ vtxos(): Array<Vtxo> /*throws*/ {
5521
5842
  return FfiConverterArrayTypeVtxo.lift(
5522
5843
  uniffiCaller.rustCallWithError(
5523
5844
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -5555,7 +5876,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
5555
5876
  const uniffiTypeWalletObjectFactory: UniffiObjectFactory<WalletInterface> =
5556
5877
  (() => {
5557
5878
  return {
5558
- create(pointer: UnsafeMutableRawPointer): WalletInterface {
5879
+ create(pointer: UniffiHandle): WalletInterface {
5559
5880
  const instance = Object.create(Wallet.prototype);
5560
5881
  instance[pointerLiteralSymbol] = pointer;
5561
5882
  instance[destructorGuardSymbol] = this.bless(pointer);
@@ -5563,7 +5884,7 @@ const uniffiTypeWalletObjectFactory: UniffiObjectFactory<WalletInterface> =
5563
5884
  return instance;
5564
5885
  },
5565
5886
 
5566
- bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr {
5887
+ bless(p: UniffiHandle): UniffiGcObject {
5567
5888
  return uniffiCaller.rustCall(
5568
5889
  /*caller:*/ (status) =>
5569
5890
  nativeModule().ubrn_uniffi_internal_fn_method_wallet_ffi__bless_pointer(
@@ -5574,18 +5895,18 @@ const uniffiTypeWalletObjectFactory: UniffiObjectFactory<WalletInterface> =
5574
5895
  );
5575
5896
  },
5576
5897
 
5577
- unbless(ptr: UniffiRustArcPtr) {
5898
+ unbless(ptr: UniffiGcObject) {
5578
5899
  ptr.markDestroyed();
5579
5900
  },
5580
5901
 
5581
- pointer(obj: WalletInterface): UnsafeMutableRawPointer {
5902
+ pointer(obj: WalletInterface): UniffiHandle {
5582
5903
  if ((obj as any)[destructorGuardSymbol] === undefined) {
5583
5904
  throw new UniffiInternalError.UnexpectedNullPointer();
5584
5905
  }
5585
5906
  return (obj as any)[pointerLiteralSymbol];
5586
5907
  },
5587
5908
 
5588
- clonePointer(obj: WalletInterface): UnsafeMutableRawPointer {
5909
+ clonePointer(obj: WalletInterface): UniffiHandle {
5589
5910
  const pointer = this.pointer(obj);
5590
5911
  return uniffiCaller.rustCall(
5591
5912
  /*caller:*/ (callStatus) =>
@@ -5597,7 +5918,7 @@ const uniffiTypeWalletObjectFactory: UniffiObjectFactory<WalletInterface> =
5597
5918
  );
5598
5919
  },
5599
5920
 
5600
- freePointer(pointer: UnsafeMutableRawPointer): void {
5921
+ freePointer(pointer: UniffiHandle): void {
5601
5922
  uniffiCaller.rustCall(
5602
5923
  /*caller:*/ (callStatus) =>
5603
5924
  nativeModule().ubrn_uniffi_bark_ffi_fn_free_wallet(
@@ -5720,7 +6041,7 @@ const FfiConverterOptionalArrayString = new FfiConverterOptional(
5720
6041
  */
5721
6042
  function uniffiEnsureInitialized() {
5722
6043
  // Get the bindings contract version from our ComponentInterface
5723
- const bindingsContractVersion = 29;
6044
+ const bindingsContractVersion = 30;
5724
6045
  // Get the scaffolding contract version by calling the into the dylib
5725
6046
  const scaffoldingContractVersion =
5726
6047
  nativeModule().ubrn_ffi_bark_ffi_uniffi_contract_version();
@@ -5764,7 +6085,7 @@ function uniffiEnsureInitialized() {
5764
6085
  }
5765
6086
  if (
5766
6087
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_balance() !==
5767
- 43979
6088
+ 22016
5768
6089
  ) {
5769
6090
  throw new UniffiInternalError.ApiChecksumMismatch(
5770
6091
  "uniffi_bark_ffi_checksum_method_onchainwallet_balance"
@@ -5772,7 +6093,7 @@ function uniffiEnsureInitialized() {
5772
6093
  }
5773
6094
  if (
5774
6095
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_new_address() !==
5775
- 25417
6096
+ 41946
5776
6097
  ) {
5777
6098
  throw new UniffiInternalError.ApiChecksumMismatch(
5778
6099
  "uniffi_bark_ffi_checksum_method_onchainwallet_new_address"
@@ -5780,7 +6101,7 @@ function uniffiEnsureInitialized() {
5780
6101
  }
5781
6102
  if (
5782
6103
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_send() !==
5783
- 10499
6104
+ 33716
5784
6105
  ) {
5785
6106
  throw new UniffiInternalError.ApiChecksumMismatch(
5786
6107
  "uniffi_bark_ffi_checksum_method_onchainwallet_send"
@@ -5788,7 +6109,7 @@ function uniffiEnsureInitialized() {
5788
6109
  }
5789
6110
  if (
5790
6111
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_sync() !==
5791
- 16855
6112
+ 30454
5792
6113
  ) {
5793
6114
  throw new UniffiInternalError.ApiChecksumMismatch(
5794
6115
  "uniffi_bark_ffi_checksum_method_onchainwallet_sync"
@@ -5796,7 +6117,7 @@ function uniffiEnsureInitialized() {
5796
6117
  }
5797
6118
  if (
5798
6119
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_exits_claimable_at_height() !==
5799
- 30496
6120
+ 24892
5800
6121
  ) {
5801
6122
  throw new UniffiInternalError.ApiChecksumMismatch(
5802
6123
  "uniffi_bark_ffi_checksum_method_wallet_all_exits_claimable_at_height"
@@ -5804,7 +6125,7 @@ function uniffiEnsureInitialized() {
5804
6125
  }
5805
6126
  if (
5806
6127
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_vtxos() !==
5807
- 36339
6128
+ 48937
5808
6129
  ) {
5809
6130
  throw new UniffiInternalError.ApiChecksumMismatch(
5810
6131
  "uniffi_bark_ffi_checksum_method_wallet_all_vtxos"
@@ -5812,7 +6133,7 @@ function uniffiEnsureInitialized() {
5812
6133
  }
5813
6134
  if (
5814
6135
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_ark_info() !==
5815
- 6789
6136
+ 36948
5816
6137
  ) {
5817
6138
  throw new UniffiInternalError.ApiChecksumMismatch(
5818
6139
  "uniffi_bark_ffi_checksum_method_wallet_ark_info"
@@ -5820,7 +6141,7 @@ function uniffiEnsureInitialized() {
5820
6141
  }
5821
6142
  if (
5822
6143
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_balance() !==
5823
- 50185
6144
+ 11221
5824
6145
  ) {
5825
6146
  throw new UniffiInternalError.ApiChecksumMismatch(
5826
6147
  "uniffi_bark_ffi_checksum_method_wallet_balance"
@@ -5828,7 +6149,7 @@ function uniffiEnsureInitialized() {
5828
6149
  }
5829
6150
  if (
5830
6151
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_all() !==
5831
- 9249
6152
+ 41101
5832
6153
  ) {
5833
6154
  throw new UniffiInternalError.ApiChecksumMismatch(
5834
6155
  "uniffi_bark_ffi_checksum_method_wallet_board_all"
@@ -5836,7 +6157,7 @@ function uniffiEnsureInitialized() {
5836
6157
  }
5837
6158
  if (
5838
6159
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_amount() !==
5839
- 6984
6160
+ 42163
5840
6161
  ) {
5841
6162
  throw new UniffiInternalError.ApiChecksumMismatch(
5842
6163
  "uniffi_bark_ffi_checksum_method_wallet_board_amount"
@@ -5844,7 +6165,7 @@ function uniffiEnsureInitialized() {
5844
6165
  }
5845
6166
  if (
5846
6167
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice() !==
5847
- 50261
6168
+ 64551
5848
6169
  ) {
5849
6170
  throw new UniffiInternalError.ApiChecksumMismatch(
5850
6171
  "uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice"
@@ -5852,7 +6173,7 @@ function uniffiEnsureInitialized() {
5852
6173
  }
5853
6174
  if (
5854
6175
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_broadcast_tx() !==
5855
- 14471
6176
+ 32920
5856
6177
  ) {
5857
6178
  throw new UniffiInternalError.ApiChecksumMismatch(
5858
6179
  "uniffi_bark_ffi_checksum_method_wallet_broadcast_tx"
@@ -5860,7 +6181,7 @@ function uniffiEnsureInitialized() {
5860
6181
  }
5861
6182
  if (
5862
6183
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds() !==
5863
- 18107
6184
+ 8095
5864
6185
  ) {
5865
6186
  throw new UniffiInternalError.ApiChecksumMismatch(
5866
6187
  "uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds"
@@ -5868,7 +6189,7 @@ function uniffiEnsureInitialized() {
5868
6189
  }
5869
6190
  if (
5870
6191
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round() !==
5871
- 4859
6192
+ 3417
5872
6193
  ) {
5873
6194
  throw new UniffiInternalError.ApiChecksumMismatch(
5874
6195
  "uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round"
@@ -5876,7 +6197,7 @@ function uniffiEnsureInitialized() {
5876
6197
  }
5877
6198
  if (
5878
6199
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment() !==
5879
- 8903
6200
+ 13160
5880
6201
  ) {
5881
6202
  throw new UniffiInternalError.ApiChecksumMismatch(
5882
6203
  "uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment"
@@ -5884,7 +6205,7 @@ function uniffiEnsureInitialized() {
5884
6205
  }
5885
6206
  if (
5886
6207
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_claimable_lightning_receive_balance_sats() !==
5887
- 47596
6208
+ 64974
5888
6209
  ) {
5889
6210
  throw new UniffiInternalError.ApiChecksumMismatch(
5890
6211
  "uniffi_bark_ffi_checksum_method_wallet_claimable_lightning_receive_balance_sats"
@@ -5892,7 +6213,7 @@ function uniffiEnsureInitialized() {
5892
6213
  }
5893
6214
  if (
5894
6215
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_config() !==
5895
- 63421
6216
+ 57616
5896
6217
  ) {
5897
6218
  throw new UniffiInternalError.ApiChecksumMismatch(
5898
6219
  "uniffi_bark_ffi_checksum_method_wallet_config"
@@ -5900,15 +6221,55 @@ function uniffiEnsureInitialized() {
5900
6221
  }
5901
6222
  if (
5902
6223
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_drain_exits() !==
5903
- 63428
6224
+ 16953
5904
6225
  ) {
5905
6226
  throw new UniffiInternalError.ApiChecksumMismatch(
5906
6227
  "uniffi_bark_ffi_checksum_method_wallet_drain_exits"
5907
6228
  );
5908
6229
  }
6230
+ if (
6231
+ nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee() !==
6232
+ 59472
6233
+ ) {
6234
+ throw new UniffiInternalError.ApiChecksumMismatch(
6235
+ "uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee"
6236
+ );
6237
+ }
6238
+ if (
6239
+ nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee() !==
6240
+ 2303
6241
+ ) {
6242
+ throw new UniffiInternalError.ApiChecksumMismatch(
6243
+ "uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee"
6244
+ );
6245
+ }
6246
+ if (
6247
+ nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee() !==
6248
+ 1211
6249
+ ) {
6250
+ throw new UniffiInternalError.ApiChecksumMismatch(
6251
+ "uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee"
6252
+ );
6253
+ }
6254
+ if (
6255
+ nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee() !==
6256
+ 40730
6257
+ ) {
6258
+ throw new UniffiInternalError.ApiChecksumMismatch(
6259
+ "uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee"
6260
+ );
6261
+ }
6262
+ if (
6263
+ nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee() !==
6264
+ 57066
6265
+ ) {
6266
+ throw new UniffiInternalError.ApiChecksumMismatch(
6267
+ "uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee"
6268
+ );
6269
+ }
5909
6270
  if (
5910
6271
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_fingerprint() !==
5911
- 2456
6272
+ 60041
5912
6273
  ) {
5913
6274
  throw new UniffiInternalError.ApiChecksumMismatch(
5914
6275
  "uniffi_bark_ffi_checksum_method_wallet_fingerprint"
@@ -5916,7 +6277,7 @@ function uniffiEnsureInitialized() {
5916
6277
  }
5917
6278
  if (
5918
6279
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_status() !==
5919
- 13877
6280
+ 27512
5920
6281
  ) {
5921
6282
  throw new UniffiInternalError.ApiChecksumMismatch(
5922
6283
  "uniffi_bark_ffi_checksum_method_wallet_get_exit_status"
@@ -5924,7 +6285,7 @@ function uniffiEnsureInitialized() {
5924
6285
  }
5925
6286
  if (
5926
6287
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_vtxos() !==
5927
- 55034
6288
+ 24545
5928
6289
  ) {
5929
6290
  throw new UniffiInternalError.ApiChecksumMismatch(
5930
6291
  "uniffi_bark_ffi_checksum_method_wallet_get_exit_vtxos"
@@ -5932,7 +6293,7 @@ function uniffiEnsureInitialized() {
5932
6293
  }
5933
6294
  if (
5934
6295
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_expiring_vtxos() !==
5935
- 151
6296
+ 19482
5936
6297
  ) {
5937
6298
  throw new UniffiInternalError.ApiChecksumMismatch(
5938
6299
  "uniffi_bark_ffi_checksum_method_wallet_get_expiring_vtxos"
@@ -5940,7 +6301,7 @@ function uniffiEnsureInitialized() {
5940
6301
  }
5941
6302
  if (
5942
6303
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_first_expiring_vtxo_blockheight() !==
5943
- 58234
6304
+ 41108
5944
6305
  ) {
5945
6306
  throw new UniffiInternalError.ApiChecksumMismatch(
5946
6307
  "uniffi_bark_ffi_checksum_method_wallet_get_first_expiring_vtxo_blockheight"
@@ -5948,7 +6309,7 @@ function uniffiEnsureInitialized() {
5948
6309
  }
5949
6310
  if (
5950
6311
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_next_required_refresh_blockheight() !==
5951
- 59124
6312
+ 29762
5952
6313
  ) {
5953
6314
  throw new UniffiInternalError.ApiChecksumMismatch(
5954
6315
  "uniffi_bark_ffi_checksum_method_wallet_get_next_required_refresh_blockheight"
@@ -5956,7 +6317,7 @@ function uniffiEnsureInitialized() {
5956
6317
  }
5957
6318
  if (
5958
6319
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxo_by_id() !==
5959
- 45689
6320
+ 41126
5960
6321
  ) {
5961
6322
  throw new UniffiInternalError.ApiChecksumMismatch(
5962
6323
  "uniffi_bark_ffi_checksum_method_wallet_get_vtxo_by_id"
@@ -5964,7 +6325,7 @@ function uniffiEnsureInitialized() {
5964
6325
  }
5965
6326
  if (
5966
6327
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxos_to_refresh() !==
5967
- 24989
6328
+ 55019
5968
6329
  ) {
5969
6330
  throw new UniffiInternalError.ApiChecksumMismatch(
5970
6331
  "uniffi_bark_ffi_checksum_method_wallet_get_vtxos_to_refresh"
@@ -5972,7 +6333,7 @@ function uniffiEnsureInitialized() {
5972
6333
  }
5973
6334
  if (
5974
6335
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_has_pending_exits() !==
5975
- 60454
6336
+ 40981
5976
6337
  ) {
5977
6338
  throw new UniffiInternalError.ApiChecksumMismatch(
5978
6339
  "uniffi_bark_ffi_checksum_method_wallet_has_pending_exits"
@@ -5980,15 +6341,23 @@ function uniffiEnsureInitialized() {
5980
6341
  }
5981
6342
  if (
5982
6343
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_history() !==
5983
- 4822
6344
+ 21880
5984
6345
  ) {
5985
6346
  throw new UniffiInternalError.ApiChecksumMismatch(
5986
6347
  "uniffi_bark_ffi_checksum_method_wallet_history"
5987
6348
  );
5988
6349
  }
6350
+ if (
6351
+ nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_import_vtxo() !==
6352
+ 31318
6353
+ ) {
6354
+ throw new UniffiInternalError.ApiChecksumMismatch(
6355
+ "uniffi_bark_ffi_checksum_method_wallet_import_vtxo"
6356
+ );
6357
+ }
5989
6358
  if (
5990
6359
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status() !==
5991
- 14282
6360
+ 26106
5992
6361
  ) {
5993
6362
  throw new UniffiInternalError.ApiChecksumMismatch(
5994
6363
  "uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status"
@@ -5996,15 +6365,23 @@ function uniffiEnsureInitialized() {
5996
6365
  }
5997
6366
  if (
5998
6367
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits() !==
5999
- 51047
6368
+ 62145
6000
6369
  ) {
6001
6370
  throw new UniffiInternalError.ApiChecksumMismatch(
6002
6371
  "uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits"
6003
6372
  );
6004
6373
  }
6374
+ if (
6375
+ nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization() !==
6376
+ 8915
6377
+ ) {
6378
+ throw new UniffiInternalError.ApiChecksumMismatch(
6379
+ "uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization"
6380
+ );
6381
+ }
6005
6382
  if (
6006
6383
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier() !==
6007
- 37148
6384
+ 32893
6008
6385
  ) {
6009
6386
  throw new UniffiInternalError.ApiChecksumMismatch(
6010
6387
  "uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier"
@@ -6012,7 +6389,7 @@ function uniffiEnsureInitialized() {
6012
6389
  }
6013
6390
  if (
6014
6391
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance() !==
6015
- 21349
6392
+ 9626
6016
6393
  ) {
6017
6394
  throw new UniffiInternalError.ApiChecksumMismatch(
6018
6395
  "uniffi_bark_ffi_checksum_method_wallet_maintenance"
@@ -6020,7 +6397,7 @@ function uniffiEnsureInitialized() {
6020
6397
  }
6021
6398
  if (
6022
6399
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_delegated() !==
6023
- 46080
6400
+ 27348
6024
6401
  ) {
6025
6402
  throw new UniffiInternalError.ApiChecksumMismatch(
6026
6403
  "uniffi_bark_ffi_checksum_method_wallet_maintenance_delegated"
@@ -6028,7 +6405,7 @@ function uniffiEnsureInitialized() {
6028
6405
  }
6029
6406
  if (
6030
6407
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh() !==
6031
- 17108
6408
+ 29994
6032
6409
  ) {
6033
6410
  throw new UniffiInternalError.ApiChecksumMismatch(
6034
6411
  "uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh"
@@ -6036,7 +6413,7 @@ function uniffiEnsureInitialized() {
6036
6413
  }
6037
6414
  if (
6038
6415
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain() !==
6039
- 13241
6416
+ 335
6040
6417
  ) {
6041
6418
  throw new UniffiInternalError.ApiChecksumMismatch(
6042
6419
  "uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain"
@@ -6044,7 +6421,7 @@ function uniffiEnsureInitialized() {
6044
6421
  }
6045
6422
  if (
6046
6423
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated() !==
6047
- 51786
6424
+ 7216
6048
6425
  ) {
6049
6426
  throw new UniffiInternalError.ApiChecksumMismatch(
6050
6427
  "uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated"
@@ -6052,7 +6429,7 @@ function uniffiEnsureInitialized() {
6052
6429
  }
6053
6430
  if (
6054
6431
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maybe_schedule_maintenance_refresh() !==
6055
- 30042
6432
+ 32397
6056
6433
  ) {
6057
6434
  throw new UniffiInternalError.ApiChecksumMismatch(
6058
6435
  "uniffi_bark_ffi_checksum_method_wallet_maybe_schedule_maintenance_refresh"
@@ -6060,7 +6437,7 @@ function uniffiEnsureInitialized() {
6060
6437
  }
6061
6438
  if (
6062
6439
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_network() !==
6063
- 61729
6440
+ 33991
6064
6441
  ) {
6065
6442
  throw new UniffiInternalError.ApiChecksumMismatch(
6066
6443
  "uniffi_bark_ffi_checksum_method_wallet_network"
@@ -6068,7 +6445,7 @@ function uniffiEnsureInitialized() {
6068
6445
  }
6069
6446
  if (
6070
6447
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address() !==
6071
- 23909
6448
+ 25174
6072
6449
  ) {
6073
6450
  throw new UniffiInternalError.ApiChecksumMismatch(
6074
6451
  "uniffi_bark_ffi_checksum_method_wallet_new_address"
@@ -6076,7 +6453,7 @@ function uniffiEnsureInitialized() {
6076
6453
  }
6077
6454
  if (
6078
6455
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address_with_index() !==
6079
- 42180
6456
+ 52446
6080
6457
  ) {
6081
6458
  throw new UniffiInternalError.ApiChecksumMismatch(
6082
6459
  "uniffi_bark_ffi_checksum_method_wallet_new_address_with_index"
@@ -6084,7 +6461,7 @@ function uniffiEnsureInitialized() {
6084
6461
  }
6085
6462
  if (
6086
6463
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_next_round_start_time() !==
6087
- 61507
6464
+ 55091
6088
6465
  ) {
6089
6466
  throw new UniffiInternalError.ApiChecksumMismatch(
6090
6467
  "uniffi_bark_ffi_checksum_method_wallet_next_round_start_time"
@@ -6092,7 +6469,7 @@ function uniffiEnsureInitialized() {
6092
6469
  }
6093
6470
  if (
6094
6471
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_all() !==
6095
- 9225
6472
+ 61123
6096
6473
  ) {
6097
6474
  throw new UniffiInternalError.ApiChecksumMismatch(
6098
6475
  "uniffi_bark_ffi_checksum_method_wallet_offboard_all"
@@ -6100,7 +6477,7 @@ function uniffiEnsureInitialized() {
6100
6477
  }
6101
6478
  if (
6102
6479
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos() !==
6103
- 53819
6480
+ 19001
6104
6481
  ) {
6105
6482
  throw new UniffiInternalError.ApiChecksumMismatch(
6106
6483
  "uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos"
@@ -6108,7 +6485,7 @@ function uniffiEnsureInitialized() {
6108
6485
  }
6109
6486
  if (
6110
6487
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address() !==
6111
- 14966
6488
+ 39952
6112
6489
  ) {
6113
6490
  throw new UniffiInternalError.ApiChecksumMismatch(
6114
6491
  "uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address"
@@ -6116,7 +6493,7 @@ function uniffiEnsureInitialized() {
6116
6493
  }
6117
6494
  if (
6118
6495
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice() !==
6119
- 10704
6496
+ 31286
6120
6497
  ) {
6121
6498
  throw new UniffiInternalError.ApiChecksumMismatch(
6122
6499
  "uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice"
@@ -6124,7 +6501,7 @@ function uniffiEnsureInitialized() {
6124
6501
  }
6125
6502
  if (
6126
6503
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer() !==
6127
- 32875
6504
+ 37035
6128
6505
  ) {
6129
6506
  throw new UniffiInternalError.ApiChecksumMismatch(
6130
6507
  "uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer"
@@ -6132,7 +6509,7 @@ function uniffiEnsureInitialized() {
6132
6509
  }
6133
6510
  if (
6134
6511
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_peak_address() !==
6135
- 9176
6512
+ 23469
6136
6513
  ) {
6137
6514
  throw new UniffiInternalError.ApiChecksumMismatch(
6138
6515
  "uniffi_bark_ffi_checksum_method_wallet_peak_address"
@@ -6140,7 +6517,7 @@ function uniffiEnsureInitialized() {
6140
6517
  }
6141
6518
  if (
6142
6519
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos() !==
6143
- 58457
6520
+ 58145
6144
6521
  ) {
6145
6522
  throw new UniffiInternalError.ApiChecksumMismatch(
6146
6523
  "uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos"
@@ -6148,7 +6525,7 @@ function uniffiEnsureInitialized() {
6148
6525
  }
6149
6526
  if (
6150
6527
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_boards() !==
6151
- 59350
6528
+ 36109
6152
6529
  ) {
6153
6530
  throw new UniffiInternalError.ApiChecksumMismatch(
6154
6531
  "uniffi_bark_ffi_checksum_method_wallet_pending_boards"
@@ -6156,7 +6533,7 @@ function uniffiEnsureInitialized() {
6156
6533
  }
6157
6534
  if (
6158
6535
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_exits_total_sats() !==
6159
- 50026
6536
+ 47419
6160
6537
  ) {
6161
6538
  throw new UniffiInternalError.ApiChecksumMismatch(
6162
6539
  "uniffi_bark_ffi_checksum_method_wallet_pending_exits_total_sats"
@@ -6164,7 +6541,7 @@ function uniffiEnsureInitialized() {
6164
6541
  }
6165
6542
  if (
6166
6543
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_receives() !==
6167
- 22341
6544
+ 14491
6168
6545
  ) {
6169
6546
  throw new UniffiInternalError.ApiChecksumMismatch(
6170
6547
  "uniffi_bark_ffi_checksum_method_wallet_pending_lightning_receives"
@@ -6172,7 +6549,7 @@ function uniffiEnsureInitialized() {
6172
6549
  }
6173
6550
  if (
6174
6551
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_send_vtxos() !==
6175
- 9022
6552
+ 57377
6176
6553
  ) {
6177
6554
  throw new UniffiInternalError.ApiChecksumMismatch(
6178
6555
  "uniffi_bark_ffi_checksum_method_wallet_pending_lightning_send_vtxos"
@@ -6180,7 +6557,7 @@ function uniffiEnsureInitialized() {
6180
6557
  }
6181
6558
  if (
6182
6559
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_sends() !==
6183
- 363
6560
+ 51186
6184
6561
  ) {
6185
6562
  throw new UniffiInternalError.ApiChecksumMismatch(
6186
6563
  "uniffi_bark_ffi_checksum_method_wallet_pending_lightning_sends"
@@ -6188,7 +6565,7 @@ function uniffiEnsureInitialized() {
6188
6565
  }
6189
6566
  if (
6190
6567
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos() !==
6191
- 47165
6568
+ 20996
6192
6569
  ) {
6193
6570
  throw new UniffiInternalError.ApiChecksumMismatch(
6194
6571
  "uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos"
@@ -6196,7 +6573,7 @@ function uniffiEnsureInitialized() {
6196
6573
  }
6197
6574
  if (
6198
6575
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_states() !==
6199
- 20536
6576
+ 19530
6200
6577
  ) {
6201
6578
  throw new UniffiInternalError.ApiChecksumMismatch(
6202
6579
  "uniffi_bark_ffi_checksum_method_wallet_pending_round_states"
@@ -6204,7 +6581,7 @@ function uniffiEnsureInitialized() {
6204
6581
  }
6205
6582
  if (
6206
6583
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_exits() !==
6207
- 4371
6584
+ 43190
6208
6585
  ) {
6209
6586
  throw new UniffiInternalError.ApiChecksumMismatch(
6210
6587
  "uniffi_bark_ffi_checksum_method_wallet_progress_exits"
@@ -6212,7 +6589,7 @@ function uniffiEnsureInitialized() {
6212
6589
  }
6213
6590
  if (
6214
6591
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_pending_rounds() !==
6215
- 13446
6592
+ 17062
6216
6593
  ) {
6217
6594
  throw new UniffiInternalError.ApiChecksumMismatch(
6218
6595
  "uniffi_bark_ffi_checksum_method_wallet_progress_pending_rounds"
@@ -6220,7 +6597,7 @@ function uniffiEnsureInitialized() {
6220
6597
  }
6221
6598
  if (
6222
6599
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_properties() !==
6223
- 49722
6600
+ 34715
6224
6601
  ) {
6225
6602
  throw new UniffiInternalError.ApiChecksumMismatch(
6226
6603
  "uniffi_bark_ffi_checksum_method_wallet_properties"
@@ -6228,7 +6605,7 @@ function uniffiEnsureInitialized() {
6228
6605
  }
6229
6606
  if (
6230
6607
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_server() !==
6231
- 25816
6608
+ 705
6232
6609
  ) {
6233
6610
  throw new UniffiInternalError.ApiChecksumMismatch(
6234
6611
  "uniffi_bark_ffi_checksum_method_wallet_refresh_server"
@@ -6236,7 +6613,7 @@ function uniffiEnsureInitialized() {
6236
6613
  }
6237
6614
  if (
6238
6615
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos() !==
6239
- 19664
6616
+ 720
6240
6617
  ) {
6241
6618
  throw new UniffiInternalError.ApiChecksumMismatch(
6242
6619
  "uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos"
@@ -6244,7 +6621,7 @@ function uniffiEnsureInitialized() {
6244
6621
  }
6245
6622
  if (
6246
6623
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated() !==
6247
- 52548
6624
+ 44124
6248
6625
  ) {
6249
6626
  throw new UniffiInternalError.ApiChecksumMismatch(
6250
6627
  "uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated"
@@ -6252,7 +6629,7 @@ function uniffiEnsureInitialized() {
6252
6629
  }
6253
6630
  if (
6254
6631
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment() !==
6255
- 56067
6632
+ 8472
6256
6633
  ) {
6257
6634
  throw new UniffiInternalError.ApiChecksumMismatch(
6258
6635
  "uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment"
@@ -6260,7 +6637,7 @@ function uniffiEnsureInitialized() {
6260
6637
  }
6261
6638
  if (
6262
6639
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_onchain() !==
6263
- 59921
6640
+ 51641
6264
6641
  ) {
6265
6642
  throw new UniffiInternalError.ApiChecksumMismatch(
6266
6643
  "uniffi_bark_ffi_checksum_method_wallet_send_onchain"
@@ -6268,7 +6645,7 @@ function uniffiEnsureInitialized() {
6268
6645
  }
6269
6646
  if (
6270
6647
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sign_exit_claim_inputs() !==
6271
- 19527
6648
+ 31570
6272
6649
  ) {
6273
6650
  throw new UniffiInternalError.ApiChecksumMismatch(
6274
6651
  "uniffi_bark_ffi_checksum_method_wallet_sign_exit_claim_inputs"
@@ -6276,7 +6653,7 @@ function uniffiEnsureInitialized() {
6276
6653
  }
6277
6654
  if (
6278
6655
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_spendable_vtxos() !==
6279
- 44569
6656
+ 48976
6280
6657
  ) {
6281
6658
  throw new UniffiInternalError.ApiChecksumMismatch(
6282
6659
  "uniffi_bark_ffi_checksum_method_wallet_spendable_vtxos"
@@ -6284,7 +6661,7 @@ function uniffiEnsureInitialized() {
6284
6661
  }
6285
6662
  if (
6286
6663
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_entire_wallet() !==
6287
- 56070
6664
+ 50435
6288
6665
  ) {
6289
6666
  throw new UniffiInternalError.ApiChecksumMismatch(
6290
6667
  "uniffi_bark_ffi_checksum_method_wallet_start_exit_for_entire_wallet"
@@ -6292,14 +6669,14 @@ function uniffiEnsureInitialized() {
6292
6669
  }
6293
6670
  if (
6294
6671
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos() !==
6295
- 34429
6672
+ 12580
6296
6673
  ) {
6297
6674
  throw new UniffiInternalError.ApiChecksumMismatch(
6298
6675
  "uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos"
6299
6676
  );
6300
6677
  }
6301
6678
  if (
6302
- nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync() !== 44981
6679
+ nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync() !== 3312
6303
6680
  ) {
6304
6681
  throw new UniffiInternalError.ApiChecksumMismatch(
6305
6682
  "uniffi_bark_ffi_checksum_method_wallet_sync"
@@ -6307,7 +6684,7 @@ function uniffiEnsureInitialized() {
6307
6684
  }
6308
6685
  if (
6309
6686
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_exits() !==
6310
- 40932
6687
+ 5469
6311
6688
  ) {
6312
6689
  throw new UniffiInternalError.ApiChecksumMismatch(
6313
6690
  "uniffi_bark_ffi_checksum_method_wallet_sync_exits"
@@ -6315,7 +6692,7 @@ function uniffiEnsureInitialized() {
6315
6692
  }
6316
6693
  if (
6317
6694
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards() !==
6318
- 23775
6695
+ 8863
6319
6696
  ) {
6320
6697
  throw new UniffiInternalError.ApiChecksumMismatch(
6321
6698
  "uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards"
@@ -6323,7 +6700,7 @@ function uniffiEnsureInitialized() {
6323
6700
  }
6324
6701
  if (
6325
6702
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives() !==
6326
- 44879
6703
+ 53132
6327
6704
  ) {
6328
6705
  throw new UniffiInternalError.ApiChecksumMismatch(
6329
6706
  "uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives"
@@ -6331,7 +6708,7 @@ function uniffiEnsureInitialized() {
6331
6708
  }
6332
6709
  if (
6333
6710
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive() !==
6334
- 57107
6711
+ 60644
6335
6712
  ) {
6336
6713
  throw new UniffiInternalError.ApiChecksumMismatch(
6337
6714
  "uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive"
@@ -6339,14 +6716,14 @@ function uniffiEnsureInitialized() {
6339
6716
  }
6340
6717
  if (
6341
6718
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address() !==
6342
- 45893
6719
+ 16628
6343
6720
  ) {
6344
6721
  throw new UniffiInternalError.ApiChecksumMismatch(
6345
6722
  "uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address"
6346
6723
  );
6347
6724
  }
6348
6725
  if (
6349
- nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxos() !== 21445
6726
+ nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxos() !== 16778
6350
6727
  ) {
6351
6728
  throw new UniffiInternalError.ApiChecksumMismatch(
6352
6729
  "uniffi_bark_ffi_checksum_method_wallet_vtxos"
@@ -6402,7 +6779,7 @@ function uniffiEnsureInitialized() {
6402
6779
  }
6403
6780
  if (
6404
6781
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance() !==
6405
- 59833
6782
+ 17287
6406
6783
  ) {
6407
6784
  throw new UniffiInternalError.ApiChecksumMismatch(
6408
6785
  "uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance"
@@ -6410,7 +6787,7 @@ function uniffiEnsureInitialized() {
6410
6787
  }
6411
6788
  if (
6412
6789
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx() !==
6413
- 7923
6790
+ 44054
6414
6791
  ) {
6415
6792
  throw new UniffiInternalError.ApiChecksumMismatch(
6416
6793
  "uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx"
@@ -6418,7 +6795,7 @@ function uniffiEnsureInitialized() {
6418
6795
  }
6419
6796
  if (
6420
6797
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx() !==
6421
- 35049
6798
+ 7162
6422
6799
  ) {
6423
6800
  throw new UniffiInternalError.ApiChecksumMismatch(
6424
6801
  "uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx"
@@ -6426,7 +6803,7 @@ function uniffiEnsureInitialized() {
6426
6803
  }
6427
6804
  if (
6428
6805
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_tx() !==
6429
- 13359
6806
+ 60386
6430
6807
  ) {
6431
6808
  throw new UniffiInternalError.ApiChecksumMismatch(
6432
6809
  "uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_tx"
@@ -6434,7 +6811,7 @@ function uniffiEnsureInitialized() {
6434
6811
  }
6435
6812
  if (
6436
6813
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx() !==
6437
- 30315
6814
+ 24800
6438
6815
  ) {
6439
6816
  throw new UniffiInternalError.ApiChecksumMismatch(
6440
6817
  "uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx"
@@ -6442,7 +6819,7 @@ function uniffiEnsureInitialized() {
6442
6819
  }
6443
6820
  if (
6444
6821
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block() !==
6445
- 45270
6822
+ 908
6446
6823
  ) {
6447
6824
  throw new UniffiInternalError.ApiChecksumMismatch(
6448
6825
  "uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block"
@@ -6450,7 +6827,7 @@ function uniffiEnsureInitialized() {
6450
6827
  }
6451
6828
  if (
6452
6829
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx() !==
6453
- 32028
6830
+ 62027
6454
6831
  ) {
6455
6832
  throw new UniffiInternalError.ApiChecksumMismatch(
6456
6833
  "uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx"
@@ -6458,7 +6835,7 @@ function uniffiEnsureInitialized() {
6458
6835
  }
6459
6836
  if (
6460
6837
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp() !==
6461
- 48670
6838
+ 51567
6462
6839
  ) {
6463
6840
  throw new UniffiInternalError.ApiChecksumMismatch(
6464
6841
  "uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp"
@@ -6466,7 +6843,7 @@ function uniffiEnsureInitialized() {
6466
6843
  }
6467
6844
  if (
6468
6845
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp() !==
6469
- 57492
6846
+ 35734
6470
6847
  ) {
6471
6848
  throw new UniffiInternalError.ApiChecksumMismatch(
6472
6849
  "uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp"