react-native-bdk-sdk 0.1.2 → 0.1.4

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.
@@ -82,7 +82,7 @@ const uniffiIsDebug =
82
82
  * Uses Bip44/49/84/86 descriptor templates.
83
83
  */
84
84
  export function createDescriptor(
85
- mnemonic: MnemonicInterface,
85
+ mnemonic: MnemonicLike,
86
86
  template: DescriptorTemplate,
87
87
  keychain: KeychainKind,
88
88
  network: Network
@@ -165,7 +165,7 @@ export function createSingleKeyDescriptor(
165
165
  * Mirrors bdk_wallet::export::FullyNodedExport.
166
166
  */
167
167
  export function exportWallet(
168
- wallet: WalletInterface,
168
+ wallet: WalletLike,
169
169
  label: string,
170
170
  includeBlockHeight: boolean
171
171
  ): string /*throws*/ {
@@ -263,21 +263,8 @@ export const AddressInfo = (() => {
263
263
  );
264
264
  })();
265
265
  return Object.freeze({
266
- /**
267
- * Create a frozen instance of {@link AddressInfo}, with defaults specified
268
- * in Rust, in the {@link bdk_ffi} crate.
269
- */
270
266
  create,
271
-
272
- /**
273
- * Create a frozen instance of {@link AddressInfo}, with defaults specified
274
- * in Rust, in the {@link bdk_ffi} crate.
275
- */
276
267
  new: create,
277
-
278
- /**
279
- * Defaults specified in the {@link bdk_ffi} crate.
280
- */
281
268
  defaults: () => Object.freeze(defaults()) as Partial<AddressInfo>,
282
269
  });
283
270
  })();
@@ -348,21 +335,8 @@ export const Balance = (() => {
348
335
  return uniffiCreateRecord<Balance, ReturnType<typeof defaults>>(defaults);
349
336
  })();
350
337
  return Object.freeze({
351
- /**
352
- * Create a frozen instance of {@link Balance}, with defaults specified
353
- * in Rust, in the {@link bdk_ffi} crate.
354
- */
355
338
  create,
356
-
357
- /**
358
- * Create a frozen instance of {@link Balance}, with defaults specified
359
- * in Rust, in the {@link bdk_ffi} crate.
360
- */
361
339
  new: create,
362
-
363
- /**
364
- * Defaults specified in the {@link bdk_ffi} crate.
365
- */
366
340
  defaults: () => Object.freeze(defaults()) as Partial<Balance>,
367
341
  });
368
342
  })();
@@ -419,21 +393,8 @@ export const BlockId = (() => {
419
393
  return uniffiCreateRecord<BlockId, ReturnType<typeof defaults>>(defaults);
420
394
  })();
421
395
  return Object.freeze({
422
- /**
423
- * Create a frozen instance of {@link BlockId}, with defaults specified
424
- * in Rust, in the {@link bdk_ffi} crate.
425
- */
426
396
  create,
427
-
428
- /**
429
- * Create a frozen instance of {@link BlockId}, with defaults specified
430
- * in Rust, in the {@link bdk_ffi} crate.
431
- */
432
397
  new: create,
433
-
434
- /**
435
- * Defaults specified in the {@link bdk_ffi} crate.
436
- */
437
398
  defaults: () => Object.freeze(defaults()) as Partial<BlockId>,
438
399
  });
439
400
  })();
@@ -489,21 +450,8 @@ export const ConfirmationBlockTime = (() => {
489
450
  >(defaults);
490
451
  })();
491
452
  return Object.freeze({
492
- /**
493
- * Create a frozen instance of {@link ConfirmationBlockTime}, with defaults specified
494
- * in Rust, in the {@link bdk_ffi} crate.
495
- */
496
453
  create,
497
-
498
- /**
499
- * Create a frozen instance of {@link ConfirmationBlockTime}, with defaults specified
500
- * in Rust, in the {@link bdk_ffi} crate.
501
- */
502
454
  new: create,
503
-
504
- /**
505
- * Defaults specified in the {@link bdk_ffi} crate.
506
- */
507
455
  defaults: () => Object.freeze(defaults()) as Partial<ConfirmationBlockTime>,
508
456
  });
509
457
  })();
@@ -553,21 +501,8 @@ export const DerivationInfo = (() => {
553
501
  );
554
502
  })();
555
503
  return Object.freeze({
556
- /**
557
- * Create a frozen instance of {@link DerivationInfo}, with defaults specified
558
- * in Rust, in the {@link bdk_ffi} crate.
559
- */
560
504
  create,
561
-
562
- /**
563
- * Create a frozen instance of {@link DerivationInfo}, with defaults specified
564
- * in Rust, in the {@link bdk_ffi} crate.
565
- */
566
505
  new: create,
567
-
568
- /**
569
- * Defaults specified in the {@link bdk_ffi} crate.
570
- */
571
506
  defaults: () => Object.freeze(defaults()) as Partial<DerivationInfo>,
572
507
  });
573
508
  })();
@@ -617,21 +552,8 @@ export const KeychainInfo = (() => {
617
552
  );
618
553
  })();
619
554
  return Object.freeze({
620
- /**
621
- * Create a frozen instance of {@link KeychainInfo}, with defaults specified
622
- * in Rust, in the {@link bdk_ffi} crate.
623
- */
624
555
  create,
625
-
626
- /**
627
- * Create a frozen instance of {@link KeychainInfo}, with defaults specified
628
- * in Rust, in the {@link bdk_ffi} crate.
629
- */
630
556
  new: create,
631
-
632
- /**
633
- * Defaults specified in the {@link bdk_ffi} crate.
634
- */
635
557
  defaults: () => Object.freeze(defaults()) as Partial<KeychainInfo>,
636
558
  });
637
559
  })();
@@ -671,7 +593,7 @@ export type LocalOutput = {
671
593
  /**
672
594
  * None when the output is unconfirmed.
673
595
  */
674
- confirmationBlockTime: ConfirmationBlockTime | undefined;
596
+ confirmationBlockTime?: ConfirmationBlockTime;
675
597
  };
676
598
 
677
599
  /**
@@ -685,21 +607,8 @@ export const LocalOutput = (() => {
685
607
  );
686
608
  })();
687
609
  return Object.freeze({
688
- /**
689
- * Create a frozen instance of {@link LocalOutput}, with defaults specified
690
- * in Rust, in the {@link bdk_ffi} crate.
691
- */
692
610
  create,
693
-
694
- /**
695
- * Create a frozen instance of {@link LocalOutput}, with defaults specified
696
- * in Rust, in the {@link bdk_ffi} crate.
697
- */
698
611
  new: create,
699
-
700
- /**
701
- * Defaults specified in the {@link bdk_ffi} crate.
702
- */
703
612
  defaults: () => Object.freeze(defaults()) as Partial<LocalOutput>,
704
613
  });
705
614
  })();
@@ -762,21 +671,8 @@ export const OutPoint = (() => {
762
671
  return uniffiCreateRecord<OutPoint, ReturnType<typeof defaults>>(defaults);
763
672
  })();
764
673
  return Object.freeze({
765
- /**
766
- * Create a frozen instance of {@link OutPoint}, with defaults specified
767
- * in Rust, in the {@link bdk_ffi} crate.
768
- */
769
674
  create,
770
-
771
- /**
772
- * Create a frozen instance of {@link OutPoint}, with defaults specified
773
- * in Rust, in the {@link bdk_ffi} crate.
774
- */
775
675
  new: create,
776
-
777
- /**
778
- * Defaults specified in the {@link bdk_ffi} crate.
779
- */
780
676
  defaults: () => Object.freeze(defaults()) as Partial<OutPoint>,
781
677
  });
782
678
  })();
@@ -824,21 +720,8 @@ export const Recipient = (() => {
824
720
  return uniffiCreateRecord<Recipient, ReturnType<typeof defaults>>(defaults);
825
721
  })();
826
722
  return Object.freeze({
827
- /**
828
- * Create a frozen instance of {@link Recipient}, with defaults specified
829
- * in Rust, in the {@link bdk_ffi} crate.
830
- */
831
723
  create,
832
-
833
- /**
834
- * Create a frozen instance of {@link Recipient}, with defaults specified
835
- * in Rust, in the {@link bdk_ffi} crate.
836
- */
837
724
  new: create,
838
-
839
- /**
840
- * Defaults specified in the {@link bdk_ffi} crate.
841
- */
842
725
  defaults: () => Object.freeze(defaults()) as Partial<Recipient>,
843
726
  });
844
727
  })();
@@ -891,21 +774,8 @@ export const SentAndReceived = (() => {
891
774
  );
892
775
  })();
893
776
  return Object.freeze({
894
- /**
895
- * Create a frozen instance of {@link SentAndReceived}, with defaults specified
896
- * in Rust, in the {@link bdk_ffi} crate.
897
- */
898
777
  create,
899
-
900
- /**
901
- * Create a frozen instance of {@link SentAndReceived}, with defaults specified
902
- * in Rust, in the {@link bdk_ffi} crate.
903
- */
904
778
  new: create,
905
-
906
- /**
907
- * Defaults specified in the {@link bdk_ffi} crate.
908
- */
909
779
  defaults: () => Object.freeze(defaults()) as Partial<SentAndReceived>,
910
780
  });
911
781
  })();
@@ -949,11 +819,11 @@ export type TxDetails = {
949
819
  /**
950
820
  * Fee paid in satoshis. None if some inputs are unknown.
951
821
  */
952
- fee: /*u64*/ bigint | undefined;
822
+ fee?: /*u64*/ bigint;
953
823
  /**
954
824
  * Fee rate in sat/vbyte. None if some inputs are unknown.
955
825
  */
956
- feeRate: /*f64*/ number | undefined;
826
+ feeRate?: /*f64*/ number;
957
827
  /**
958
828
  * Net change to wallet balance in satoshis (positive = received more than sent).
959
829
  */
@@ -961,7 +831,7 @@ export type TxDetails = {
961
831
  /**
962
832
  * None when unconfirmed.
963
833
  */
964
- confirmationBlockTime: ConfirmationBlockTime | undefined;
834
+ confirmationBlockTime?: ConfirmationBlockTime;
965
835
  /**
966
836
  * The full serialized transaction as hex.
967
837
  */
@@ -977,21 +847,8 @@ export const TxDetails = (() => {
977
847
  return uniffiCreateRecord<TxDetails, ReturnType<typeof defaults>>(defaults);
978
848
  })();
979
849
  return Object.freeze({
980
- /**
981
- * Create a frozen instance of {@link TxDetails}, with defaults specified
982
- * in Rust, in the {@link bdk_ffi} crate.
983
- */
984
850
  create,
985
-
986
- /**
987
- * Create a frozen instance of {@link TxDetails}, with defaults specified
988
- * in Rust, in the {@link bdk_ffi} crate.
989
- */
990
851
  new: create,
991
-
992
- /**
993
- * Defaults specified in the {@link bdk_ffi} crate.
994
- */
995
852
  defaults: () => Object.freeze(defaults()) as Partial<TxDetails>,
996
853
  });
997
854
  })();
@@ -1066,21 +923,8 @@ export const TxOut = (() => {
1066
923
  return uniffiCreateRecord<TxOut, ReturnType<typeof defaults>>(defaults);
1067
924
  })();
1068
925
  return Object.freeze({
1069
- /**
1070
- * Create a frozen instance of {@link TxOut}, with defaults specified
1071
- * in Rust, in the {@link bdk_ffi} crate.
1072
- */
1073
926
  create,
1074
-
1075
- /**
1076
- * Create a frozen instance of {@link TxOut}, with defaults specified
1077
- * in Rust, in the {@link bdk_ffi} crate.
1078
- */
1079
927
  new: create,
1080
-
1081
- /**
1082
- * Defaults specified in the {@link bdk_ffi} crate.
1083
- */
1084
928
  defaults: () => Object.freeze(defaults()) as Partial<TxOut>,
1085
929
  });
1086
930
  })();
@@ -3260,7 +3104,7 @@ const FfiConverterTypeWordCount = (() => {
3260
3104
  * BIP-39 mnemonic phrase for key generation.
3261
3105
  * Backed by bdk_wallet::keys::bip39::Mnemonic (requires `keys-bip39` feature).
3262
3106
  */
3263
- export interface MnemonicInterface {
3107
+ export interface MnemonicLike {
3264
3108
  /**
3265
3109
  * The language of this mnemonic.
3266
3110
  */
@@ -3282,15 +3126,16 @@ export interface MnemonicInterface {
3282
3126
  */
3283
3127
  words(): Array<string>;
3284
3128
  }
3129
+ /**
3130
+ * @deprecated Use `MnemonicLike` instead.
3131
+ */
3132
+ export type MnemonicInterface = MnemonicLike;
3285
3133
 
3286
3134
  /**
3287
3135
  * BIP-39 mnemonic phrase for key generation.
3288
3136
  * Backed by bdk_wallet::keys::bip39::Mnemonic (requires `keys-bip39` feature).
3289
3137
  */
3290
- export class Mnemonic
3291
- extends UniffiAbstractObject
3292
- implements MnemonicInterface
3293
- {
3138
+ export class Mnemonic extends UniffiAbstractObject implements MnemonicLike {
3294
3139
  readonly [uniffiTypeNameSymbol] = "Mnemonic";
3295
3140
  readonly [destructorGuardSymbol]: UniffiGcObject;
3296
3141
  readonly [pointerLiteralSymbol]: UniffiHandle;
@@ -3319,9 +3164,7 @@ export class Mnemonic
3319
3164
  /**
3320
3165
  * Create a mnemonic from raw entropy bytes (16–32 bytes).
3321
3166
  */
3322
- static fromEntropy(
3323
- entropy: Array</*u8*/ number>
3324
- ): MnemonicInterface /*throws*/ {
3167
+ static fromEntropy(entropy: Array</*u8*/ number>): MnemonicLike /*throws*/ {
3325
3168
  return FfiConverterTypeMnemonic.lift(
3326
3169
  uniffiCaller.rustCallWithError(
3327
3170
  /*liftError:*/ FfiConverterTypeBdkError.lift.bind(
@@ -3344,7 +3187,7 @@ export class Mnemonic
3344
3187
  static fromEntropyIn(
3345
3188
  entropy: Array</*u8*/ number>,
3346
3189
  language: Language
3347
- ): MnemonicInterface /*throws*/ {
3190
+ ): MnemonicLike /*throws*/ {
3348
3191
  return FfiConverterTypeMnemonic.lift(
3349
3192
  uniffiCaller.rustCallWithError(
3350
3193
  /*liftError:*/ FfiConverterTypeBdkError.lift.bind(
@@ -3365,7 +3208,7 @@ export class Mnemonic
3365
3208
  /**
3366
3209
  * Parse an existing mnemonic string (auto-detects language).
3367
3210
  */
3368
- static fromString(mnemonic: string): MnemonicInterface /*throws*/ {
3211
+ static fromString(mnemonic: string): MnemonicLike /*throws*/ {
3369
3212
  return FfiConverterTypeMnemonic.lift(
3370
3213
  uniffiCaller.rustCallWithError(
3371
3214
  /*liftError:*/ FfiConverterTypeBdkError.lift.bind(
@@ -3388,7 +3231,7 @@ export class Mnemonic
3388
3231
  static fromStringIn(
3389
3232
  mnemonic: string,
3390
3233
  language: Language
3391
- ): MnemonicInterface /*throws*/ {
3234
+ ): MnemonicLike /*throws*/ {
3392
3235
  return FfiConverterTypeMnemonic.lift(
3393
3236
  uniffiCaller.rustCallWithError(
3394
3237
  /*liftError:*/ FfiConverterTypeBdkError.lift.bind(
@@ -3510,10 +3353,10 @@ export class Mnemonic
3510
3353
  }
3511
3354
  }
3512
3355
 
3513
- const uniffiTypeMnemonicObjectFactory: UniffiObjectFactory<MnemonicInterface> =
3356
+ const uniffiTypeMnemonicObjectFactory: UniffiObjectFactory<MnemonicLike> =
3514
3357
  (() => {
3515
3358
  return {
3516
- create(pointer: UniffiHandle): MnemonicInterface {
3359
+ create(pointer: UniffiHandle): MnemonicLike {
3517
3360
  const instance = Object.create(Mnemonic.prototype);
3518
3361
  instance[pointerLiteralSymbol] = pointer;
3519
3362
  instance[destructorGuardSymbol] = this.bless(pointer);
@@ -3536,14 +3379,14 @@ const uniffiTypeMnemonicObjectFactory: UniffiObjectFactory<MnemonicInterface> =
3536
3379
  ptr.markDestroyed();
3537
3380
  },
3538
3381
 
3539
- pointer(obj: MnemonicInterface): UniffiHandle {
3382
+ pointer(obj: MnemonicLike): UniffiHandle {
3540
3383
  if ((obj as any)[destructorGuardSymbol] === undefined) {
3541
3384
  throw new UniffiInternalError.UnexpectedNullPointer();
3542
3385
  }
3543
3386
  return (obj as any)[pointerLiteralSymbol];
3544
3387
  },
3545
3388
 
3546
- clonePointer(obj: MnemonicInterface): UniffiHandle {
3389
+ clonePointer(obj: MnemonicLike): UniffiHandle {
3547
3390
  const pointer = this.pointer(obj);
3548
3391
  return uniffiCaller.rustCall(
3549
3392
  /*caller:*/ (callStatus) =>
@@ -3566,14 +3409,14 @@ const uniffiTypeMnemonicObjectFactory: UniffiObjectFactory<MnemonicInterface> =
3566
3409
  );
3567
3410
  },
3568
3411
 
3569
- isConcreteType(obj: any): obj is MnemonicInterface {
3412
+ isConcreteType(obj: any): obj is MnemonicLike {
3570
3413
  return (
3571
3414
  obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === "Mnemonic"
3572
3415
  );
3573
3416
  },
3574
3417
  };
3575
3418
  })();
3576
- // FfiConverter for MnemonicInterface
3419
+ // FfiConverter for MnemonicLike
3577
3420
  const FfiConverterTypeMnemonic = new FfiConverterObject(
3578
3421
  uniffiTypeMnemonicObjectFactory
3579
3422
  );
@@ -3582,7 +3425,7 @@ const FfiConverterTypeMnemonic = new FfiConverterObject(
3582
3425
  * A Partially Signed Bitcoin Transaction (BIP-174 / BIP-370).
3583
3426
  * Mirrors bitcoin::Psbt with added PsbtUtils trait methods.
3584
3427
  */
3585
- export interface PsbtInterface {
3428
+ export interface PsbtLike {
3586
3429
  /**
3587
3430
  * Extract the fully-signed transaction as raw hex.
3588
3431
  * Only valid after all inputs are finalized.
@@ -3612,12 +3455,16 @@ export interface PsbtInterface {
3612
3455
  */
3613
3456
  txid(): /*throws*/ string;
3614
3457
  }
3458
+ /**
3459
+ * @deprecated Use `PsbtLike` instead.
3460
+ */
3461
+ export type PsbtInterface = PsbtLike;
3615
3462
 
3616
3463
  /**
3617
3464
  * A Partially Signed Bitcoin Transaction (BIP-174 / BIP-370).
3618
3465
  * Mirrors bitcoin::Psbt with added PsbtUtils trait methods.
3619
3466
  */
3620
- export class Psbt extends UniffiAbstractObject implements PsbtInterface {
3467
+ export class Psbt extends UniffiAbstractObject implements PsbtLike {
3621
3468
  readonly [uniffiTypeNameSymbol] = "Psbt";
3622
3469
  readonly [destructorGuardSymbol]: UniffiGcObject;
3623
3470
  readonly [pointerLiteralSymbol]: UniffiHandle;
@@ -3773,9 +3620,9 @@ export class Psbt extends UniffiAbstractObject implements PsbtInterface {
3773
3620
  }
3774
3621
  }
3775
3622
 
3776
- const uniffiTypePsbtObjectFactory: UniffiObjectFactory<PsbtInterface> = (() => {
3623
+ const uniffiTypePsbtObjectFactory: UniffiObjectFactory<PsbtLike> = (() => {
3777
3624
  return {
3778
- create(pointer: UniffiHandle): PsbtInterface {
3625
+ create(pointer: UniffiHandle): PsbtLike {
3779
3626
  const instance = Object.create(Psbt.prototype);
3780
3627
  instance[pointerLiteralSymbol] = pointer;
3781
3628
  instance[destructorGuardSymbol] = this.bless(pointer);
@@ -3798,14 +3645,14 @@ const uniffiTypePsbtObjectFactory: UniffiObjectFactory<PsbtInterface> = (() => {
3798
3645
  ptr.markDestroyed();
3799
3646
  },
3800
3647
 
3801
- pointer(obj: PsbtInterface): UniffiHandle {
3648
+ pointer(obj: PsbtLike): UniffiHandle {
3802
3649
  if ((obj as any)[destructorGuardSymbol] === undefined) {
3803
3650
  throw new UniffiInternalError.UnexpectedNullPointer();
3804
3651
  }
3805
3652
  return (obj as any)[pointerLiteralSymbol];
3806
3653
  },
3807
3654
 
3808
- clonePointer(obj: PsbtInterface): UniffiHandle {
3655
+ clonePointer(obj: PsbtLike): UniffiHandle {
3809
3656
  const pointer = this.pointer(obj);
3810
3657
  return uniffiCaller.rustCall(
3811
3658
  /*caller:*/ (callStatus) =>
@@ -3822,12 +3669,12 @@ const uniffiTypePsbtObjectFactory: UniffiObjectFactory<PsbtInterface> = (() => {
3822
3669
  );
3823
3670
  },
3824
3671
 
3825
- isConcreteType(obj: any): obj is PsbtInterface {
3672
+ isConcreteType(obj: any): obj is PsbtLike {
3826
3673
  return obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === "Psbt";
3827
3674
  },
3828
3675
  };
3829
3676
  })();
3830
- // FfiConverter for PsbtInterface
3677
+ // FfiConverter for PsbtLike
3831
3678
  const FfiConverterTypePsbt = new FfiConverterObject(
3832
3679
  uniffiTypePsbtObjectFactory
3833
3680
  );
@@ -3837,7 +3684,7 @@ const FfiConverterTypePsbt = new FfiConverterObject(
3837
3684
  * Create one, configure it, then call finish(wallet) to produce a PSBT.
3838
3685
  * Mirrors bdk_wallet::TxBuilder (without lifetime / generic coin selection).
3839
3686
  */
3840
- export interface TxBuilderInterface {
3687
+ export interface TxBuilderLike {
3841
3688
  /**
3842
3689
  * Attach OP_RETURN data to the transaction.
3843
3690
  */
@@ -3914,7 +3761,7 @@ export interface TxBuilderInterface {
3914
3761
  * Build the transaction into a PSBT. The wallet is used for coin
3915
3762
  * selection and script resolution — the PSBT is NOT signed here.
3916
3763
  */
3917
- finish(wallet: WalletInterface): /*throws*/ PsbtInterface;
3764
+ finish(wallet: WalletLike): /*throws*/ PsbtLike;
3918
3765
  /**
3919
3766
  * Include the redeemScript / witnessScript in PSBT outputs.
3920
3767
  */
@@ -3965,16 +3812,17 @@ export interface TxBuilderInterface {
3965
3812
  */
3966
3813
  unspendable(outpoints: Array<OutPoint>): void;
3967
3814
  }
3815
+ /**
3816
+ * @deprecated Use `TxBuilderLike` instead.
3817
+ */
3818
+ export type TxBuilderInterface = TxBuilderLike;
3968
3819
 
3969
3820
  /**
3970
3821
  * Fluent builder for constructing Bitcoin transactions.
3971
3822
  * Create one, configure it, then call finish(wallet) to produce a PSBT.
3972
3823
  * Mirrors bdk_wallet::TxBuilder (without lifetime / generic coin selection).
3973
3824
  */
3974
- export class TxBuilder
3975
- extends UniffiAbstractObject
3976
- implements TxBuilderInterface
3977
- {
3825
+ export class TxBuilder extends UniffiAbstractObject implements TxBuilderLike {
3978
3826
  readonly [uniffiTypeNameSymbol] = "TxBuilder";
3979
3827
  readonly [destructorGuardSymbol]: UniffiGcObject;
3980
3828
  readonly [pointerLiteralSymbol]: UniffiHandle;
@@ -4290,7 +4138,7 @@ export class TxBuilder
4290
4138
  * Build the transaction into a PSBT. The wallet is used for coin
4291
4139
  * selection and script resolution — the PSBT is NOT signed here.
4292
4140
  */
4293
- finish(wallet: WalletInterface): PsbtInterface /*throws*/ {
4141
+ finish(wallet: WalletLike): PsbtLike /*throws*/ {
4294
4142
  return FfiConverterTypePsbt.lift(
4295
4143
  uniffiCaller.rustCallWithError(
4296
4144
  /*liftError:*/ FfiConverterTypeBdkError.lift.bind(
@@ -4516,10 +4364,10 @@ export class TxBuilder
4516
4364
  }
4517
4365
  }
4518
4366
 
4519
- const uniffiTypeTxBuilderObjectFactory: UniffiObjectFactory<TxBuilderInterface> =
4367
+ const uniffiTypeTxBuilderObjectFactory: UniffiObjectFactory<TxBuilderLike> =
4520
4368
  (() => {
4521
4369
  return {
4522
- create(pointer: UniffiHandle): TxBuilderInterface {
4370
+ create(pointer: UniffiHandle): TxBuilderLike {
4523
4371
  const instance = Object.create(TxBuilder.prototype);
4524
4372
  instance[pointerLiteralSymbol] = pointer;
4525
4373
  instance[destructorGuardSymbol] = this.bless(pointer);
@@ -4542,14 +4390,14 @@ const uniffiTypeTxBuilderObjectFactory: UniffiObjectFactory<TxBuilderInterface>
4542
4390
  ptr.markDestroyed();
4543
4391
  },
4544
4392
 
4545
- pointer(obj: TxBuilderInterface): UniffiHandle {
4393
+ pointer(obj: TxBuilderLike): UniffiHandle {
4546
4394
  if ((obj as any)[destructorGuardSymbol] === undefined) {
4547
4395
  throw new UniffiInternalError.UnexpectedNullPointer();
4548
4396
  }
4549
4397
  return (obj as any)[pointerLiteralSymbol];
4550
4398
  },
4551
4399
 
4552
- clonePointer(obj: TxBuilderInterface): UniffiHandle {
4400
+ clonePointer(obj: TxBuilderLike): UniffiHandle {
4553
4401
  const pointer = this.pointer(obj);
4554
4402
  return uniffiCaller.rustCall(
4555
4403
  /*caller:*/ (callStatus) =>
@@ -4572,7 +4420,7 @@ const uniffiTypeTxBuilderObjectFactory: UniffiObjectFactory<TxBuilderInterface>
4572
4420
  );
4573
4421
  },
4574
4422
 
4575
- isConcreteType(obj: any): obj is TxBuilderInterface {
4423
+ isConcreteType(obj: any): obj is TxBuilderLike {
4576
4424
  return (
4577
4425
  obj[destructorGuardSymbol] &&
4578
4426
  obj[uniffiTypeNameSymbol] === "TxBuilder"
@@ -4580,32 +4428,33 @@ const uniffiTypeTxBuilderObjectFactory: UniffiObjectFactory<TxBuilderInterface>
4580
4428
  },
4581
4429
  };
4582
4430
  })();
4583
- // FfiConverter for TxBuilderInterface
4431
+ // FfiConverter for TxBuilderLike
4584
4432
  const FfiConverterTypeTxBuilder = new FfiConverterObject(
4585
4433
  uniffiTypeTxBuilderObjectFactory
4586
4434
  );
4587
4435
 
4588
- export interface WalletInterface {
4436
+ export interface WalletLike {
4589
4437
  /**
4590
4438
  * Broadcast a finalized PSBT via Electrum. Returns the txid.
4591
4439
  */
4592
- broadcastWithElectrum(url: string, psbt: PsbtInterface): /*throws*/ string;
4440
+ broadcastWithElectrum(
4441
+ url: string,
4442
+ psbt: PsbtLike,
4443
+ asyncOpts_?: { signal: AbortSignal }
4444
+ ): /*throws*/ Promise<string>;
4593
4445
  /**
4594
4446
  * Broadcast a finalized PSBT via Esplora. Returns the txid.
4595
4447
  */
4596
4448
  broadcastWithEsplora(
4597
4449
  url: string,
4598
- psbt: PsbtInterface,
4450
+ psbt: PsbtLike,
4599
4451
  asyncOpts_?: { signal: AbortSignal }
4600
4452
  ): /*throws*/ Promise<string>;
4601
4453
  /**
4602
4454
  * Build an RBF fee-bump PSBT for an unconfirmed transaction.
4603
4455
  * Mirrors Wallet::build_fee_bump().
4604
4456
  */
4605
- buildFeeBump(
4606
- txid: string,
4607
- newFeeRate: /*f64*/ number
4608
- ): /*throws*/ PsbtInterface;
4457
+ buildFeeBump(txid: string, newFeeRate: /*f64*/ number): /*throws*/ PsbtLike;
4609
4458
  /**
4610
4459
  * Calculate the fee paid by a raw transaction (hex). Returns satoshis.
4611
4460
  * Mirrors Wallet::calculate_fee().
@@ -4656,11 +4505,15 @@ export interface WalletInterface {
4656
4505
  * Returns true if fully finalized.
4657
4506
  * Mirrors Wallet::finalize_psbt() with default SignOptions.
4658
4507
  */
4659
- finalizePsbt(psbt: PsbtInterface): /*throws*/ boolean;
4508
+ finalizePsbt(psbt: PsbtLike): /*throws*/ boolean;
4660
4509
  /**
4661
4510
  * Full scan via an Electrum TCP/TLS server.
4662
4511
  */
4663
- fullScanWithElectrum(url: string, stopGap: /*u64*/ bigint): /*throws*/ void;
4512
+ fullScanWithElectrum(
4513
+ url: string,
4514
+ stopGap: /*u64*/ bigint,
4515
+ asyncOpts_?: { signal: AbortSignal }
4516
+ ): /*throws*/ Promise<void>;
4664
4517
  /**
4665
4518
  * Full scan via an Esplora HTTP server (discovers all used addresses).
4666
4519
  * Uses Wallet::start_full_scan() + bdk_esplora client internally.
@@ -4796,11 +4649,15 @@ export interface WalletInterface {
4796
4649
  * Returns true if the PSBT is fully finalized after signing.
4797
4650
  * Mirrors Wallet::sign() with default SignOptions.
4798
4651
  */
4799
- sign(psbt: PsbtInterface): /*throws*/ boolean;
4652
+ sign(psbt: PsbtLike): /*throws*/ boolean;
4800
4653
  /**
4801
4654
  * Incremental sync via Electrum.
4802
4655
  */
4803
- syncWithElectrum(url: string, stopGap: /*u64*/ bigint): /*throws*/ void;
4656
+ syncWithElectrum(
4657
+ url: string,
4658
+ stopGap: /*u64*/ bigint,
4659
+ asyncOpts_?: { signal: AbortSignal }
4660
+ ): /*throws*/ Promise<void>;
4804
4661
  /**
4805
4662
  * Incremental sync via Esplora (only checks revealed SPKs + UTXOs + unconfirmed).
4806
4663
  * Uses Wallet::start_sync_with_revealed_spks() + bdk_esplora client internally.
@@ -4826,8 +4683,12 @@ export interface WalletInterface {
4826
4683
  */
4827
4684
  unmarkUsed(keychain: KeychainKind, index: /*u32*/ number): boolean;
4828
4685
  }
4686
+ /**
4687
+ * @deprecated Use `WalletLike` instead.
4688
+ */
4689
+ export type WalletInterface = WalletLike;
4829
4690
 
4830
- export class Wallet extends UniffiAbstractObject implements WalletInterface {
4691
+ export class Wallet extends UniffiAbstractObject implements WalletLike {
4831
4692
  readonly [uniffiTypeNameSymbol] = "Wallet";
4832
4693
  readonly [destructorGuardSymbol]: UniffiGcObject;
4833
4694
  readonly [pointerLiteralSymbol]: UniffiHandle;
@@ -4865,23 +4726,43 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4865
4726
  /**
4866
4727
  * Broadcast a finalized PSBT via Electrum. Returns the txid.
4867
4728
  */
4868
- broadcastWithElectrum(url: string, psbt: PsbtInterface): string /*throws*/ {
4869
- return FfiConverterString.lift(
4870
- uniffiCaller.rustCallWithError(
4871
- /*liftError:*/ FfiConverterTypeBdkError.lift.bind(
4872
- FfiConverterTypeBdkError
4873
- ),
4874
- /*caller:*/ (callStatus) => {
4729
+ async broadcastWithElectrum(
4730
+ url: string,
4731
+ psbt: PsbtLike,
4732
+ asyncOpts_?: { signal: AbortSignal }
4733
+ ): Promise<string> /*throws*/ {
4734
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
4735
+ try {
4736
+ return await uniffiRustCallAsync(
4737
+ /*rustCaller:*/ uniffiCaller,
4738
+ /*rustFutureFunc:*/ () => {
4875
4739
  return nativeModule().ubrn_uniffi_bdk_ffi_fn_method_wallet_broadcast_with_electrum(
4876
4740
  uniffiTypeWalletObjectFactory.clonePointer(this),
4877
4741
  FfiConverterString.lower(url),
4878
- FfiConverterTypePsbt.lower(psbt),
4879
- callStatus
4742
+ FfiConverterTypePsbt.lower(psbt)
4880
4743
  );
4881
4744
  },
4882
- /*liftString:*/ FfiConverterString.lift
4883
- )
4884
- );
4745
+ /*pollFunc:*/ nativeModule()
4746
+ .ubrn_ffi_bdk_ffi_rust_future_poll_rust_buffer,
4747
+ /*cancelFunc:*/ nativeModule()
4748
+ .ubrn_ffi_bdk_ffi_rust_future_cancel_rust_buffer,
4749
+ /*completeFunc:*/ nativeModule()
4750
+ .ubrn_ffi_bdk_ffi_rust_future_complete_rust_buffer,
4751
+ /*freeFunc:*/ nativeModule()
4752
+ .ubrn_ffi_bdk_ffi_rust_future_free_rust_buffer,
4753
+ /*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString),
4754
+ /*liftString:*/ FfiConverterString.lift,
4755
+ /*asyncOpts:*/ asyncOpts_,
4756
+ /*errorHandler:*/ FfiConverterTypeBdkError.lift.bind(
4757
+ FfiConverterTypeBdkError
4758
+ )
4759
+ );
4760
+ } catch (__error: any) {
4761
+ if (uniffiIsDebug && __error instanceof Error) {
4762
+ __error.stack = __stack;
4763
+ }
4764
+ throw __error;
4765
+ }
4885
4766
  }
4886
4767
 
4887
4768
  /**
@@ -4889,7 +4770,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4889
4770
  */
4890
4771
  async broadcastWithEsplora(
4891
4772
  url: string,
4892
- psbt: PsbtInterface,
4773
+ psbt: PsbtLike,
4893
4774
  asyncOpts_?: { signal: AbortSignal }
4894
4775
  ): Promise<string> /*throws*/ {
4895
4776
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
@@ -4930,10 +4811,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4930
4811
  * Build an RBF fee-bump PSBT for an unconfirmed transaction.
4931
4812
  * Mirrors Wallet::build_fee_bump().
4932
4813
  */
4933
- buildFeeBump(
4934
- txid: string,
4935
- newFeeRate: /*f64*/ number
4936
- ): PsbtInterface /*throws*/ {
4814
+ buildFeeBump(txid: string, newFeeRate: /*f64*/ number): PsbtLike /*throws*/ {
4937
4815
  return FfiConverterTypePsbt.lift(
4938
4816
  uniffiCaller.rustCallWithError(
4939
4817
  /*liftError:*/ FfiConverterTypeBdkError.lift.bind(
@@ -5144,7 +5022,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
5144
5022
  * Returns true if fully finalized.
5145
5023
  * Mirrors Wallet::finalize_psbt() with default SignOptions.
5146
5024
  */
5147
- finalizePsbt(psbt: PsbtInterface): boolean /*throws*/ {
5025
+ finalizePsbt(psbt: PsbtLike): boolean /*throws*/ {
5148
5026
  return FfiConverterBool.lift(
5149
5027
  uniffiCaller.rustCallWithError(
5150
5028
  /*liftError:*/ FfiConverterTypeBdkError.lift.bind(
@@ -5165,21 +5043,40 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
5165
5043
  /**
5166
5044
  * Full scan via an Electrum TCP/TLS server.
5167
5045
  */
5168
- fullScanWithElectrum(url: string, stopGap: /*u64*/ bigint): void /*throws*/ {
5169
- uniffiCaller.rustCallWithError(
5170
- /*liftError:*/ FfiConverterTypeBdkError.lift.bind(
5171
- FfiConverterTypeBdkError
5172
- ),
5173
- /*caller:*/ (callStatus) => {
5174
- nativeModule().ubrn_uniffi_bdk_ffi_fn_method_wallet_full_scan_with_electrum(
5175
- uniffiTypeWalletObjectFactory.clonePointer(this),
5176
- FfiConverterString.lower(url),
5177
- FfiConverterUInt64.lower(stopGap),
5178
- callStatus
5179
- );
5180
- },
5181
- /*liftString:*/ FfiConverterString.lift
5182
- );
5046
+ async fullScanWithElectrum(
5047
+ url: string,
5048
+ stopGap: /*u64*/ bigint,
5049
+ asyncOpts_?: { signal: AbortSignal }
5050
+ ): Promise<void> /*throws*/ {
5051
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
5052
+ try {
5053
+ return await uniffiRustCallAsync(
5054
+ /*rustCaller:*/ uniffiCaller,
5055
+ /*rustFutureFunc:*/ () => {
5056
+ return nativeModule().ubrn_uniffi_bdk_ffi_fn_method_wallet_full_scan_with_electrum(
5057
+ uniffiTypeWalletObjectFactory.clonePointer(this),
5058
+ FfiConverterString.lower(url),
5059
+ FfiConverterUInt64.lower(stopGap)
5060
+ );
5061
+ },
5062
+ /*pollFunc:*/ nativeModule().ubrn_ffi_bdk_ffi_rust_future_poll_void,
5063
+ /*cancelFunc:*/ nativeModule().ubrn_ffi_bdk_ffi_rust_future_cancel_void,
5064
+ /*completeFunc:*/ nativeModule()
5065
+ .ubrn_ffi_bdk_ffi_rust_future_complete_void,
5066
+ /*freeFunc:*/ nativeModule().ubrn_ffi_bdk_ffi_rust_future_free_void,
5067
+ /*liftFunc:*/ (_v) => {},
5068
+ /*liftString:*/ FfiConverterString.lift,
5069
+ /*asyncOpts:*/ asyncOpts_,
5070
+ /*errorHandler:*/ FfiConverterTypeBdkError.lift.bind(
5071
+ FfiConverterTypeBdkError
5072
+ )
5073
+ );
5074
+ } catch (__error: any) {
5075
+ if (uniffiIsDebug && __error instanceof Error) {
5076
+ __error.stack = __stack;
5077
+ }
5078
+ throw __error;
5079
+ }
5183
5080
  }
5184
5081
 
5185
5082
  /**
@@ -5715,7 +5612,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
5715
5612
  * Returns true if the PSBT is fully finalized after signing.
5716
5613
  * Mirrors Wallet::sign() with default SignOptions.
5717
5614
  */
5718
- sign(psbt: PsbtInterface): boolean /*throws*/ {
5615
+ sign(psbt: PsbtLike): boolean /*throws*/ {
5719
5616
  return FfiConverterBool.lift(
5720
5617
  uniffiCaller.rustCallWithError(
5721
5618
  /*liftError:*/ FfiConverterTypeBdkError.lift.bind(
@@ -5736,21 +5633,40 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
5736
5633
  /**
5737
5634
  * Incremental sync via Electrum.
5738
5635
  */
5739
- syncWithElectrum(url: string, stopGap: /*u64*/ bigint): void /*throws*/ {
5740
- uniffiCaller.rustCallWithError(
5741
- /*liftError:*/ FfiConverterTypeBdkError.lift.bind(
5742
- FfiConverterTypeBdkError
5743
- ),
5744
- /*caller:*/ (callStatus) => {
5745
- nativeModule().ubrn_uniffi_bdk_ffi_fn_method_wallet_sync_with_electrum(
5746
- uniffiTypeWalletObjectFactory.clonePointer(this),
5747
- FfiConverterString.lower(url),
5748
- FfiConverterUInt64.lower(stopGap),
5749
- callStatus
5750
- );
5751
- },
5752
- /*liftString:*/ FfiConverterString.lift
5753
- );
5636
+ async syncWithElectrum(
5637
+ url: string,
5638
+ stopGap: /*u64*/ bigint,
5639
+ asyncOpts_?: { signal: AbortSignal }
5640
+ ): Promise<void> /*throws*/ {
5641
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
5642
+ try {
5643
+ return await uniffiRustCallAsync(
5644
+ /*rustCaller:*/ uniffiCaller,
5645
+ /*rustFutureFunc:*/ () => {
5646
+ return nativeModule().ubrn_uniffi_bdk_ffi_fn_method_wallet_sync_with_electrum(
5647
+ uniffiTypeWalletObjectFactory.clonePointer(this),
5648
+ FfiConverterString.lower(url),
5649
+ FfiConverterUInt64.lower(stopGap)
5650
+ );
5651
+ },
5652
+ /*pollFunc:*/ nativeModule().ubrn_ffi_bdk_ffi_rust_future_poll_void,
5653
+ /*cancelFunc:*/ nativeModule().ubrn_ffi_bdk_ffi_rust_future_cancel_void,
5654
+ /*completeFunc:*/ nativeModule()
5655
+ .ubrn_ffi_bdk_ffi_rust_future_complete_void,
5656
+ /*freeFunc:*/ nativeModule().ubrn_ffi_bdk_ffi_rust_future_free_void,
5657
+ /*liftFunc:*/ (_v) => {},
5658
+ /*liftString:*/ FfiConverterString.lift,
5659
+ /*asyncOpts:*/ asyncOpts_,
5660
+ /*errorHandler:*/ FfiConverterTypeBdkError.lift.bind(
5661
+ FfiConverterTypeBdkError
5662
+ )
5663
+ );
5664
+ } catch (__error: any) {
5665
+ if (uniffiIsDebug && __error instanceof Error) {
5666
+ __error.stack = __stack;
5667
+ }
5668
+ throw __error;
5669
+ }
5754
5670
  }
5755
5671
 
5756
5672
  /**
@@ -5874,70 +5790,69 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
5874
5790
  }
5875
5791
  }
5876
5792
 
5877
- const uniffiTypeWalletObjectFactory: UniffiObjectFactory<WalletInterface> =
5878
- (() => {
5879
- return {
5880
- create(pointer: UniffiHandle): WalletInterface {
5881
- const instance = Object.create(Wallet.prototype);
5882
- instance[pointerLiteralSymbol] = pointer;
5883
- instance[destructorGuardSymbol] = this.bless(pointer);
5884
- instance[uniffiTypeNameSymbol] = "Wallet";
5885
- return instance;
5886
- },
5793
+ const uniffiTypeWalletObjectFactory: UniffiObjectFactory<WalletLike> = (() => {
5794
+ return {
5795
+ create(pointer: UniffiHandle): WalletLike {
5796
+ const instance = Object.create(Wallet.prototype);
5797
+ instance[pointerLiteralSymbol] = pointer;
5798
+ instance[destructorGuardSymbol] = this.bless(pointer);
5799
+ instance[uniffiTypeNameSymbol] = "Wallet";
5800
+ return instance;
5801
+ },
5887
5802
 
5888
- bless(p: UniffiHandle): UniffiGcObject {
5889
- return uniffiCaller.rustCall(
5890
- /*caller:*/ (status) =>
5891
- nativeModule().ubrn_uniffi_internal_fn_method_wallet_ffi__bless_pointer(
5892
- p,
5893
- status
5894
- ),
5895
- /*liftString:*/ FfiConverterString.lift
5896
- );
5897
- },
5803
+ bless(p: UniffiHandle): UniffiGcObject {
5804
+ return uniffiCaller.rustCall(
5805
+ /*caller:*/ (status) =>
5806
+ nativeModule().ubrn_uniffi_internal_fn_method_wallet_ffi__bless_pointer(
5807
+ p,
5808
+ status
5809
+ ),
5810
+ /*liftString:*/ FfiConverterString.lift
5811
+ );
5812
+ },
5898
5813
 
5899
- unbless(ptr: UniffiGcObject) {
5900
- ptr.markDestroyed();
5901
- },
5814
+ unbless(ptr: UniffiGcObject) {
5815
+ ptr.markDestroyed();
5816
+ },
5902
5817
 
5903
- pointer(obj: WalletInterface): UniffiHandle {
5904
- if ((obj as any)[destructorGuardSymbol] === undefined) {
5905
- throw new UniffiInternalError.UnexpectedNullPointer();
5906
- }
5907
- return (obj as any)[pointerLiteralSymbol];
5908
- },
5818
+ pointer(obj: WalletLike): UniffiHandle {
5819
+ if ((obj as any)[destructorGuardSymbol] === undefined) {
5820
+ throw new UniffiInternalError.UnexpectedNullPointer();
5821
+ }
5822
+ return (obj as any)[pointerLiteralSymbol];
5823
+ },
5909
5824
 
5910
- clonePointer(obj: WalletInterface): UniffiHandle {
5911
- const pointer = this.pointer(obj);
5912
- return uniffiCaller.rustCall(
5913
- /*caller:*/ (callStatus) =>
5914
- nativeModule().ubrn_uniffi_bdk_ffi_fn_clone_wallet(
5915
- pointer,
5916
- callStatus
5917
- ),
5918
- /*liftString:*/ FfiConverterString.lift
5919
- );
5920
- },
5825
+ clonePointer(obj: WalletLike): UniffiHandle {
5826
+ const pointer = this.pointer(obj);
5827
+ return uniffiCaller.rustCall(
5828
+ /*caller:*/ (callStatus) =>
5829
+ nativeModule().ubrn_uniffi_bdk_ffi_fn_clone_wallet(
5830
+ pointer,
5831
+ callStatus
5832
+ ),
5833
+ /*liftString:*/ FfiConverterString.lift
5834
+ );
5835
+ },
5921
5836
 
5922
- freePointer(pointer: UniffiHandle): void {
5923
- uniffiCaller.rustCall(
5924
- /*caller:*/ (callStatus) =>
5925
- nativeModule().ubrn_uniffi_bdk_ffi_fn_free_wallet(
5926
- pointer,
5927
- callStatus
5928
- ),
5929
- /*liftString:*/ FfiConverterString.lift
5930
- );
5931
- },
5837
+ freePointer(pointer: UniffiHandle): void {
5838
+ uniffiCaller.rustCall(
5839
+ /*caller:*/ (callStatus) =>
5840
+ nativeModule().ubrn_uniffi_bdk_ffi_fn_free_wallet(
5841
+ pointer,
5842
+ callStatus
5843
+ ),
5844
+ /*liftString:*/ FfiConverterString.lift
5845
+ );
5846
+ },
5932
5847
 
5933
- isConcreteType(obj: any): obj is WalletInterface {
5934
- return (
5935
- obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === "Wallet"
5936
- );
5937
- },
5938
- };
5939
- })();
5940
- // FfiConverter for WalletInterface
5848
+ isConcreteType(obj: any): obj is WalletLike {
5849
+ return (
5850
+ obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === "Wallet"
5851
+ );
5852
+ },
5853
+ };
5854
+ })();
5855
+ // FfiConverter for WalletLike
5941
5856
  const FfiConverterTypeWallet = new FfiConverterObject(
5942
5857
  uniffiTypeWalletObjectFactory
5943
5858
  );
@@ -6102,7 +6017,7 @@ function uniffiEnsureInitialized() {
6102
6017
  }
6103
6018
  if (
6104
6019
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_mnemonic_language() !==
6105
- 21218
6020
+ 59902
6106
6021
  ) {
6107
6022
  throw new UniffiInternalError.ApiChecksumMismatch(
6108
6023
  "uniffi_bdk_ffi_checksum_method_mnemonic_language"
@@ -6110,7 +6025,7 @@ function uniffiEnsureInitialized() {
6110
6025
  }
6111
6026
  if (
6112
6027
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_mnemonic_to_seed_hex() !==
6113
- 4827
6028
+ 33743
6114
6029
  ) {
6115
6030
  throw new UniffiInternalError.ApiChecksumMismatch(
6116
6031
  "uniffi_bdk_ffi_checksum_method_mnemonic_to_seed_hex"
@@ -6118,7 +6033,7 @@ function uniffiEnsureInitialized() {
6118
6033
  }
6119
6034
  if (
6120
6035
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_mnemonic_to_string() !==
6121
- 9706
6036
+ 8571
6122
6037
  ) {
6123
6038
  throw new UniffiInternalError.ApiChecksumMismatch(
6124
6039
  "uniffi_bdk_ffi_checksum_method_mnemonic_to_string"
@@ -6126,7 +6041,7 @@ function uniffiEnsureInitialized() {
6126
6041
  }
6127
6042
  if (
6128
6043
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_mnemonic_word_count() !==
6129
- 43660
6044
+ 23669
6130
6045
  ) {
6131
6046
  throw new UniffiInternalError.ApiChecksumMismatch(
6132
6047
  "uniffi_bdk_ffi_checksum_method_mnemonic_word_count"
@@ -6134,7 +6049,7 @@ function uniffiEnsureInitialized() {
6134
6049
  }
6135
6050
  if (
6136
6051
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_mnemonic_words() !==
6137
- 43060
6052
+ 27352
6138
6053
  ) {
6139
6054
  throw new UniffiInternalError.ApiChecksumMismatch(
6140
6055
  "uniffi_bdk_ffi_checksum_method_mnemonic_words"
@@ -6142,7 +6057,7 @@ function uniffiEnsureInitialized() {
6142
6057
  }
6143
6058
  if (
6144
6059
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_psbt_extract_tx_hex() !==
6145
- 55644
6060
+ 11167
6146
6061
  ) {
6147
6062
  throw new UniffiInternalError.ApiChecksumMismatch(
6148
6063
  "uniffi_bdk_ffi_checksum_method_psbt_extract_tx_hex"
@@ -6150,14 +6065,14 @@ function uniffiEnsureInitialized() {
6150
6065
  }
6151
6066
  if (
6152
6067
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_psbt_fee_amount() !==
6153
- 56607
6068
+ 44530
6154
6069
  ) {
6155
6070
  throw new UniffiInternalError.ApiChecksumMismatch(
6156
6071
  "uniffi_bdk_ffi_checksum_method_psbt_fee_amount"
6157
6072
  );
6158
6073
  }
6159
6074
  if (
6160
- nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_psbt_fee_rate() !== 60372
6075
+ nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_psbt_fee_rate() !== 7329
6161
6076
  ) {
6162
6077
  throw new UniffiInternalError.ApiChecksumMismatch(
6163
6078
  "uniffi_bdk_ffi_checksum_method_psbt_fee_rate"
@@ -6165,7 +6080,7 @@ function uniffiEnsureInitialized() {
6165
6080
  }
6166
6081
  if (
6167
6082
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_psbt_get_utxo_for() !==
6168
- 21092
6083
+ 1731
6169
6084
  ) {
6170
6085
  throw new UniffiInternalError.ApiChecksumMismatch(
6171
6086
  "uniffi_bdk_ffi_checksum_method_psbt_get_utxo_for"
@@ -6173,14 +6088,14 @@ function uniffiEnsureInitialized() {
6173
6088
  }
6174
6089
  if (
6175
6090
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_psbt_to_base64() !==
6176
- 51389
6091
+ 47613
6177
6092
  ) {
6178
6093
  throw new UniffiInternalError.ApiChecksumMismatch(
6179
6094
  "uniffi_bdk_ffi_checksum_method_psbt_to_base64"
6180
6095
  );
6181
6096
  }
6182
6097
  if (
6183
- nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_psbt_txid() !== 48234
6098
+ nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_psbt_txid() !== 56652
6184
6099
  ) {
6185
6100
  throw new UniffiInternalError.ApiChecksumMismatch(
6186
6101
  "uniffi_bdk_ffi_checksum_method_psbt_txid"
@@ -6188,7 +6103,7 @@ function uniffiEnsureInitialized() {
6188
6103
  }
6189
6104
  if (
6190
6105
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_add_data() !==
6191
- 24171
6106
+ 57070
6192
6107
  ) {
6193
6108
  throw new UniffiInternalError.ApiChecksumMismatch(
6194
6109
  "uniffi_bdk_ffi_checksum_method_txbuilder_add_data"
@@ -6196,7 +6111,7 @@ function uniffiEnsureInitialized() {
6196
6111
  }
6197
6112
  if (
6198
6113
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_add_global_xpubs() !==
6199
- 49750
6114
+ 53720
6200
6115
  ) {
6201
6116
  throw new UniffiInternalError.ApiChecksumMismatch(
6202
6117
  "uniffi_bdk_ffi_checksum_method_txbuilder_add_global_xpubs"
@@ -6204,7 +6119,7 @@ function uniffiEnsureInitialized() {
6204
6119
  }
6205
6120
  if (
6206
6121
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_add_recipient() !==
6207
- 4691
6122
+ 55150
6208
6123
  ) {
6209
6124
  throw new UniffiInternalError.ApiChecksumMismatch(
6210
6125
  "uniffi_bdk_ffi_checksum_method_txbuilder_add_recipient"
@@ -6212,7 +6127,7 @@ function uniffiEnsureInitialized() {
6212
6127
  }
6213
6128
  if (
6214
6129
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_add_unspendable() !==
6215
- 34998
6130
+ 56609
6216
6131
  ) {
6217
6132
  throw new UniffiInternalError.ApiChecksumMismatch(
6218
6133
  "uniffi_bdk_ffi_checksum_method_txbuilder_add_unspendable"
@@ -6220,7 +6135,7 @@ function uniffiEnsureInitialized() {
6220
6135
  }
6221
6136
  if (
6222
6137
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_add_utxo() !==
6223
- 20705
6138
+ 10770
6224
6139
  ) {
6225
6140
  throw new UniffiInternalError.ApiChecksumMismatch(
6226
6141
  "uniffi_bdk_ffi_checksum_method_txbuilder_add_utxo"
@@ -6228,7 +6143,7 @@ function uniffiEnsureInitialized() {
6228
6143
  }
6229
6144
  if (
6230
6145
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_add_utxos() !==
6231
- 35571
6146
+ 8534
6232
6147
  ) {
6233
6148
  throw new UniffiInternalError.ApiChecksumMismatch(
6234
6149
  "uniffi_bdk_ffi_checksum_method_txbuilder_add_utxos"
@@ -6236,7 +6151,7 @@ function uniffiEnsureInitialized() {
6236
6151
  }
6237
6152
  if (
6238
6153
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_allow_dust() !==
6239
- 56022
6154
+ 43752
6240
6155
  ) {
6241
6156
  throw new UniffiInternalError.ApiChecksumMismatch(
6242
6157
  "uniffi_bdk_ffi_checksum_method_txbuilder_allow_dust"
@@ -6244,7 +6159,7 @@ function uniffiEnsureInitialized() {
6244
6159
  }
6245
6160
  if (
6246
6161
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_change_policy() !==
6247
- 46342
6162
+ 6977
6248
6163
  ) {
6249
6164
  throw new UniffiInternalError.ApiChecksumMismatch(
6250
6165
  "uniffi_bdk_ffi_checksum_method_txbuilder_change_policy"
@@ -6252,7 +6167,7 @@ function uniffiEnsureInitialized() {
6252
6167
  }
6253
6168
  if (
6254
6169
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_current_height() !==
6255
- 46986
6170
+ 62295
6256
6171
  ) {
6257
6172
  throw new UniffiInternalError.ApiChecksumMismatch(
6258
6173
  "uniffi_bdk_ffi_checksum_method_txbuilder_current_height"
@@ -6260,7 +6175,7 @@ function uniffiEnsureInitialized() {
6260
6175
  }
6261
6176
  if (
6262
6177
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_do_not_spend_change() !==
6263
- 50138
6178
+ 13462
6264
6179
  ) {
6265
6180
  throw new UniffiInternalError.ApiChecksumMismatch(
6266
6181
  "uniffi_bdk_ffi_checksum_method_txbuilder_do_not_spend_change"
@@ -6268,7 +6183,7 @@ function uniffiEnsureInitialized() {
6268
6183
  }
6269
6184
  if (
6270
6185
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_drain_to() !==
6271
- 33757
6186
+ 33773
6272
6187
  ) {
6273
6188
  throw new UniffiInternalError.ApiChecksumMismatch(
6274
6189
  "uniffi_bdk_ffi_checksum_method_txbuilder_drain_to"
@@ -6276,7 +6191,7 @@ function uniffiEnsureInitialized() {
6276
6191
  }
6277
6192
  if (
6278
6193
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_drain_wallet() !==
6279
- 46414
6194
+ 48711
6280
6195
  ) {
6281
6196
  throw new UniffiInternalError.ApiChecksumMismatch(
6282
6197
  "uniffi_bdk_ffi_checksum_method_txbuilder_drain_wallet"
@@ -6284,7 +6199,7 @@ function uniffiEnsureInitialized() {
6284
6199
  }
6285
6200
  if (
6286
6201
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_enable_rbf() !==
6287
- 16464
6202
+ 31683
6288
6203
  ) {
6289
6204
  throw new UniffiInternalError.ApiChecksumMismatch(
6290
6205
  "uniffi_bdk_ffi_checksum_method_txbuilder_enable_rbf"
@@ -6292,7 +6207,7 @@ function uniffiEnsureInitialized() {
6292
6207
  }
6293
6208
  if (
6294
6209
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_enable_rbf_with_sequence() !==
6295
- 21779
6210
+ 7301
6296
6211
  ) {
6297
6212
  throw new UniffiInternalError.ApiChecksumMismatch(
6298
6213
  "uniffi_bdk_ffi_checksum_method_txbuilder_enable_rbf_with_sequence"
@@ -6300,7 +6215,7 @@ function uniffiEnsureInitialized() {
6300
6215
  }
6301
6216
  if (
6302
6217
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_exclude_below_confirmations() !==
6303
- 8223
6218
+ 61197
6304
6219
  ) {
6305
6220
  throw new UniffiInternalError.ApiChecksumMismatch(
6306
6221
  "uniffi_bdk_ffi_checksum_method_txbuilder_exclude_below_confirmations"
@@ -6308,7 +6223,7 @@ function uniffiEnsureInitialized() {
6308
6223
  }
6309
6224
  if (
6310
6225
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_exclude_unconfirmed() !==
6311
- 63153
6226
+ 59334
6312
6227
  ) {
6313
6228
  throw new UniffiInternalError.ApiChecksumMismatch(
6314
6229
  "uniffi_bdk_ffi_checksum_method_txbuilder_exclude_unconfirmed"
@@ -6316,7 +6231,7 @@ function uniffiEnsureInitialized() {
6316
6231
  }
6317
6232
  if (
6318
6233
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_fee_absolute() !==
6319
- 18715
6234
+ 38654
6320
6235
  ) {
6321
6236
  throw new UniffiInternalError.ApiChecksumMismatch(
6322
6237
  "uniffi_bdk_ffi_checksum_method_txbuilder_fee_absolute"
@@ -6324,7 +6239,7 @@ function uniffiEnsureInitialized() {
6324
6239
  }
6325
6240
  if (
6326
6241
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_fee_rate() !==
6327
- 61803
6242
+ 2789
6328
6243
  ) {
6329
6244
  throw new UniffiInternalError.ApiChecksumMismatch(
6330
6245
  "uniffi_bdk_ffi_checksum_method_txbuilder_fee_rate"
@@ -6332,7 +6247,7 @@ function uniffiEnsureInitialized() {
6332
6247
  }
6333
6248
  if (
6334
6249
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_finish() !==
6335
- 34471
6250
+ 35410
6336
6251
  ) {
6337
6252
  throw new UniffiInternalError.ApiChecksumMismatch(
6338
6253
  "uniffi_bdk_ffi_checksum_method_txbuilder_finish"
@@ -6340,7 +6255,7 @@ function uniffiEnsureInitialized() {
6340
6255
  }
6341
6256
  if (
6342
6257
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_include_output_redeem_witness_script() !==
6343
- 41756
6258
+ 1428
6344
6259
  ) {
6345
6260
  throw new UniffiInternalError.ApiChecksumMismatch(
6346
6261
  "uniffi_bdk_ffi_checksum_method_txbuilder_include_output_redeem_witness_script"
@@ -6348,7 +6263,7 @@ function uniffiEnsureInitialized() {
6348
6263
  }
6349
6264
  if (
6350
6265
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_manually_selected_only() !==
6351
- 61274
6266
+ 15817
6352
6267
  ) {
6353
6268
  throw new UniffiInternalError.ApiChecksumMismatch(
6354
6269
  "uniffi_bdk_ffi_checksum_method_txbuilder_manually_selected_only"
@@ -6356,7 +6271,7 @@ function uniffiEnsureInitialized() {
6356
6271
  }
6357
6272
  if (
6358
6273
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_nlocktime() !==
6359
- 33063
6274
+ 5541
6360
6275
  ) {
6361
6276
  throw new UniffiInternalError.ApiChecksumMismatch(
6362
6277
  "uniffi_bdk_ffi_checksum_method_txbuilder_nlocktime"
@@ -6364,7 +6279,7 @@ function uniffiEnsureInitialized() {
6364
6279
  }
6365
6280
  if (
6366
6281
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_only_spend_change() !==
6367
- 4190
6282
+ 34933
6368
6283
  ) {
6369
6284
  throw new UniffiInternalError.ApiChecksumMismatch(
6370
6285
  "uniffi_bdk_ffi_checksum_method_txbuilder_only_spend_change"
@@ -6372,7 +6287,7 @@ function uniffiEnsureInitialized() {
6372
6287
  }
6373
6288
  if (
6374
6289
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_only_witness_utxo() !==
6375
- 16994
6290
+ 50325
6376
6291
  ) {
6377
6292
  throw new UniffiInternalError.ApiChecksumMismatch(
6378
6293
  "uniffi_bdk_ffi_checksum_method_txbuilder_only_witness_utxo"
@@ -6380,7 +6295,7 @@ function uniffiEnsureInitialized() {
6380
6295
  }
6381
6296
  if (
6382
6297
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_ordering() !==
6383
- 46942
6298
+ 27106
6384
6299
  ) {
6385
6300
  throw new UniffiInternalError.ApiChecksumMismatch(
6386
6301
  "uniffi_bdk_ffi_checksum_method_txbuilder_ordering"
@@ -6388,7 +6303,7 @@ function uniffiEnsureInitialized() {
6388
6303
  }
6389
6304
  if (
6390
6305
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_policy_path() !==
6391
- 3595
6306
+ 18350
6392
6307
  ) {
6393
6308
  throw new UniffiInternalError.ApiChecksumMismatch(
6394
6309
  "uniffi_bdk_ffi_checksum_method_txbuilder_policy_path"
@@ -6396,7 +6311,7 @@ function uniffiEnsureInitialized() {
6396
6311
  }
6397
6312
  if (
6398
6313
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_set_exact_sequence() !==
6399
- 63261
6314
+ 25054
6400
6315
  ) {
6401
6316
  throw new UniffiInternalError.ApiChecksumMismatch(
6402
6317
  "uniffi_bdk_ffi_checksum_method_txbuilder_set_exact_sequence"
@@ -6404,7 +6319,7 @@ function uniffiEnsureInitialized() {
6404
6319
  }
6405
6320
  if (
6406
6321
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_set_recipients() !==
6407
- 28721
6322
+ 45616
6408
6323
  ) {
6409
6324
  throw new UniffiInternalError.ApiChecksumMismatch(
6410
6325
  "uniffi_bdk_ffi_checksum_method_txbuilder_set_recipients"
@@ -6412,7 +6327,7 @@ function uniffiEnsureInitialized() {
6412
6327
  }
6413
6328
  if (
6414
6329
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_sighash() !==
6415
- 22878
6330
+ 56408
6416
6331
  ) {
6417
6332
  throw new UniffiInternalError.ApiChecksumMismatch(
6418
6333
  "uniffi_bdk_ffi_checksum_method_txbuilder_sighash"
@@ -6420,7 +6335,7 @@ function uniffiEnsureInitialized() {
6420
6335
  }
6421
6336
  if (
6422
6337
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_tx_version() !==
6423
- 13770
6338
+ 32700
6424
6339
  ) {
6425
6340
  throw new UniffiInternalError.ApiChecksumMismatch(
6426
6341
  "uniffi_bdk_ffi_checksum_method_txbuilder_tx_version"
@@ -6428,7 +6343,7 @@ function uniffiEnsureInitialized() {
6428
6343
  }
6429
6344
  if (
6430
6345
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_txbuilder_unspendable() !==
6431
- 28900
6346
+ 10665
6432
6347
  ) {
6433
6348
  throw new UniffiInternalError.ApiChecksumMismatch(
6434
6349
  "uniffi_bdk_ffi_checksum_method_txbuilder_unspendable"
@@ -6436,7 +6351,7 @@ function uniffiEnsureInitialized() {
6436
6351
  }
6437
6352
  if (
6438
6353
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_broadcast_with_electrum() !==
6439
- 14979
6354
+ 60979
6440
6355
  ) {
6441
6356
  throw new UniffiInternalError.ApiChecksumMismatch(
6442
6357
  "uniffi_bdk_ffi_checksum_method_wallet_broadcast_with_electrum"
@@ -6444,7 +6359,7 @@ function uniffiEnsureInitialized() {
6444
6359
  }
6445
6360
  if (
6446
6361
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_broadcast_with_esplora() !==
6447
- 28791
6362
+ 37423
6448
6363
  ) {
6449
6364
  throw new UniffiInternalError.ApiChecksumMismatch(
6450
6365
  "uniffi_bdk_ffi_checksum_method_wallet_broadcast_with_esplora"
@@ -6452,7 +6367,7 @@ function uniffiEnsureInitialized() {
6452
6367
  }
6453
6368
  if (
6454
6369
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_build_fee_bump() !==
6455
- 47809
6370
+ 36133
6456
6371
  ) {
6457
6372
  throw new UniffiInternalError.ApiChecksumMismatch(
6458
6373
  "uniffi_bdk_ffi_checksum_method_wallet_build_fee_bump"
@@ -6460,7 +6375,7 @@ function uniffiEnsureInitialized() {
6460
6375
  }
6461
6376
  if (
6462
6377
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_calculate_fee() !==
6463
- 46069
6378
+ 47950
6464
6379
  ) {
6465
6380
  throw new UniffiInternalError.ApiChecksumMismatch(
6466
6381
  "uniffi_bdk_ffi_checksum_method_wallet_calculate_fee"
@@ -6468,7 +6383,7 @@ function uniffiEnsureInitialized() {
6468
6383
  }
6469
6384
  if (
6470
6385
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_calculate_fee_rate() !==
6471
- 23249
6386
+ 64903
6472
6387
  ) {
6473
6388
  throw new UniffiInternalError.ApiChecksumMismatch(
6474
6389
  "uniffi_bdk_ffi_checksum_method_wallet_calculate_fee_rate"
@@ -6476,7 +6391,7 @@ function uniffiEnsureInitialized() {
6476
6391
  }
6477
6392
  if (
6478
6393
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_cancel_tx() !==
6479
- 58967
6394
+ 39828
6480
6395
  ) {
6481
6396
  throw new UniffiInternalError.ApiChecksumMismatch(
6482
6397
  "uniffi_bdk_ffi_checksum_method_wallet_cancel_tx"
@@ -6484,7 +6399,7 @@ function uniffiEnsureInitialized() {
6484
6399
  }
6485
6400
  if (
6486
6401
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_checkpoints() !==
6487
- 55082
6402
+ 44342
6488
6403
  ) {
6489
6404
  throw new UniffiInternalError.ApiChecksumMismatch(
6490
6405
  "uniffi_bdk_ffi_checksum_method_wallet_checkpoints"
@@ -6492,7 +6407,7 @@ function uniffiEnsureInitialized() {
6492
6407
  }
6493
6408
  if (
6494
6409
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_derivation_index() !==
6495
- 63256
6410
+ 14373
6496
6411
  ) {
6497
6412
  throw new UniffiInternalError.ApiChecksumMismatch(
6498
6413
  "uniffi_bdk_ffi_checksum_method_wallet_derivation_index"
@@ -6500,7 +6415,7 @@ function uniffiEnsureInitialized() {
6500
6415
  }
6501
6416
  if (
6502
6417
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_derivation_of_spk() !==
6503
- 22939
6418
+ 44475
6504
6419
  ) {
6505
6420
  throw new UniffiInternalError.ApiChecksumMismatch(
6506
6421
  "uniffi_bdk_ffi_checksum_method_wallet_derivation_of_spk"
@@ -6508,14 +6423,14 @@ function uniffiEnsureInitialized() {
6508
6423
  }
6509
6424
  if (
6510
6425
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_descriptor_checksum() !==
6511
- 64735
6426
+ 25926
6512
6427
  ) {
6513
6428
  throw new UniffiInternalError.ApiChecksumMismatch(
6514
6429
  "uniffi_bdk_ffi_checksum_method_wallet_descriptor_checksum"
6515
6430
  );
6516
6431
  }
6517
6432
  if (
6518
- nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_drain() !== 24840
6433
+ nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_drain() !== 47076
6519
6434
  ) {
6520
6435
  throw new UniffiInternalError.ApiChecksumMismatch(
6521
6436
  "uniffi_bdk_ffi_checksum_method_wallet_drain"
@@ -6523,7 +6438,7 @@ function uniffiEnsureInitialized() {
6523
6438
  }
6524
6439
  if (
6525
6440
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_finalize_psbt() !==
6526
- 22273
6441
+ 43414
6527
6442
  ) {
6528
6443
  throw new UniffiInternalError.ApiChecksumMismatch(
6529
6444
  "uniffi_bdk_ffi_checksum_method_wallet_finalize_psbt"
@@ -6531,7 +6446,7 @@ function uniffiEnsureInitialized() {
6531
6446
  }
6532
6447
  if (
6533
6448
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_full_scan_with_electrum() !==
6534
- 15611
6449
+ 45470
6535
6450
  ) {
6536
6451
  throw new UniffiInternalError.ApiChecksumMismatch(
6537
6452
  "uniffi_bdk_ffi_checksum_method_wallet_full_scan_with_electrum"
@@ -6539,7 +6454,7 @@ function uniffiEnsureInitialized() {
6539
6454
  }
6540
6455
  if (
6541
6456
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_full_scan_with_esplora() !==
6542
- 43655
6457
+ 39717
6543
6458
  ) {
6544
6459
  throw new UniffiInternalError.ApiChecksumMismatch(
6545
6460
  "uniffi_bdk_ffi_checksum_method_wallet_full_scan_with_esplora"
@@ -6547,14 +6462,14 @@ function uniffiEnsureInitialized() {
6547
6462
  }
6548
6463
  if (
6549
6464
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_get_balance() !==
6550
- 18605
6465
+ 22733
6551
6466
  ) {
6552
6467
  throw new UniffiInternalError.ApiChecksumMismatch(
6553
6468
  "uniffi_bdk_ffi_checksum_method_wallet_get_balance"
6554
6469
  );
6555
6470
  }
6556
6471
  if (
6557
- nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_get_tx() !== 58042
6472
+ nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_get_tx() !== 59477
6558
6473
  ) {
6559
6474
  throw new UniffiInternalError.ApiChecksumMismatch(
6560
6475
  "uniffi_bdk_ffi_checksum_method_wallet_get_tx"
@@ -6562,7 +6477,7 @@ function uniffiEnsureInitialized() {
6562
6477
  }
6563
6478
  if (
6564
6479
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_get_utxo() !==
6565
- 47916
6480
+ 35239
6566
6481
  ) {
6567
6482
  throw new UniffiInternalError.ApiChecksumMismatch(
6568
6483
  "uniffi_bdk_ffi_checksum_method_wallet_get_utxo"
@@ -6570,7 +6485,7 @@ function uniffiEnsureInitialized() {
6570
6485
  }
6571
6486
  if (
6572
6487
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_insert_txout() !==
6573
- 33605
6488
+ 32676
6574
6489
  ) {
6575
6490
  throw new UniffiInternalError.ApiChecksumMismatch(
6576
6491
  "uniffi_bdk_ffi_checksum_method_wallet_insert_txout"
@@ -6578,7 +6493,7 @@ function uniffiEnsureInitialized() {
6578
6493
  }
6579
6494
  if (
6580
6495
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_is_mine() !==
6581
- 27949
6496
+ 45210
6582
6497
  ) {
6583
6498
  throw new UniffiInternalError.ApiChecksumMismatch(
6584
6499
  "uniffi_bdk_ffi_checksum_method_wallet_is_mine"
@@ -6586,7 +6501,7 @@ function uniffiEnsureInitialized() {
6586
6501
  }
6587
6502
  if (
6588
6503
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_keychains() !==
6589
- 1009
6504
+ 22099
6590
6505
  ) {
6591
6506
  throw new UniffiInternalError.ApiChecksumMismatch(
6592
6507
  "uniffi_bdk_ffi_checksum_method_wallet_keychains"
@@ -6594,7 +6509,7 @@ function uniffiEnsureInitialized() {
6594
6509
  }
6595
6510
  if (
6596
6511
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_latest_checkpoint() !==
6597
- 5951
6512
+ 37521
6598
6513
  ) {
6599
6514
  throw new UniffiInternalError.ApiChecksumMismatch(
6600
6515
  "uniffi_bdk_ffi_checksum_method_wallet_latest_checkpoint"
@@ -6602,7 +6517,7 @@ function uniffiEnsureInitialized() {
6602
6517
  }
6603
6518
  if (
6604
6519
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_list_output() !==
6605
- 35186
6520
+ 21768
6606
6521
  ) {
6607
6522
  throw new UniffiInternalError.ApiChecksumMismatch(
6608
6523
  "uniffi_bdk_ffi_checksum_method_wallet_list_output"
@@ -6610,7 +6525,7 @@ function uniffiEnsureInitialized() {
6610
6525
  }
6611
6526
  if (
6612
6527
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_list_unspent() !==
6613
- 590
6528
+ 13240
6614
6529
  ) {
6615
6530
  throw new UniffiInternalError.ApiChecksumMismatch(
6616
6531
  "uniffi_bdk_ffi_checksum_method_wallet_list_unspent"
@@ -6618,7 +6533,7 @@ function uniffiEnsureInitialized() {
6618
6533
  }
6619
6534
  if (
6620
6535
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_list_unused_addresses() !==
6621
- 63031
6536
+ 11229
6622
6537
  ) {
6623
6538
  throw new UniffiInternalError.ApiChecksumMismatch(
6624
6539
  "uniffi_bdk_ffi_checksum_method_wallet_list_unused_addresses"
@@ -6626,7 +6541,7 @@ function uniffiEnsureInitialized() {
6626
6541
  }
6627
6542
  if (
6628
6543
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_mark_used() !==
6629
- 53427
6544
+ 63278
6630
6545
  ) {
6631
6546
  throw new UniffiInternalError.ApiChecksumMismatch(
6632
6547
  "uniffi_bdk_ffi_checksum_method_wallet_mark_used"
@@ -6634,7 +6549,7 @@ function uniffiEnsureInitialized() {
6634
6549
  }
6635
6550
  if (
6636
6551
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_network() !==
6637
- 18889
6552
+ 50311
6638
6553
  ) {
6639
6554
  throw new UniffiInternalError.ApiChecksumMismatch(
6640
6555
  "uniffi_bdk_ffi_checksum_method_wallet_network"
@@ -6642,7 +6557,7 @@ function uniffiEnsureInitialized() {
6642
6557
  }
6643
6558
  if (
6644
6559
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_next_derivation_index() !==
6645
- 28145
6560
+ 50867
6646
6561
  ) {
6647
6562
  throw new UniffiInternalError.ApiChecksumMismatch(
6648
6563
  "uniffi_bdk_ffi_checksum_method_wallet_next_derivation_index"
@@ -6650,7 +6565,7 @@ function uniffiEnsureInitialized() {
6650
6565
  }
6651
6566
  if (
6652
6567
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_next_unused_address() !==
6653
- 58812
6568
+ 51015
6654
6569
  ) {
6655
6570
  throw new UniffiInternalError.ApiChecksumMismatch(
6656
6571
  "uniffi_bdk_ffi_checksum_method_wallet_next_unused_address"
@@ -6658,7 +6573,7 @@ function uniffiEnsureInitialized() {
6658
6573
  }
6659
6574
  if (
6660
6575
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_peek_address() !==
6661
- 56579
6576
+ 10883
6662
6577
  ) {
6663
6578
  throw new UniffiInternalError.ApiChecksumMismatch(
6664
6579
  "uniffi_bdk_ffi_checksum_method_wallet_peek_address"
@@ -6666,7 +6581,7 @@ function uniffiEnsureInitialized() {
6666
6581
  }
6667
6582
  if (
6668
6583
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_persist() !==
6669
- 18685
6584
+ 34809
6670
6585
  ) {
6671
6586
  throw new UniffiInternalError.ApiChecksumMismatch(
6672
6587
  "uniffi_bdk_ffi_checksum_method_wallet_persist"
@@ -6674,7 +6589,7 @@ function uniffiEnsureInitialized() {
6674
6589
  }
6675
6590
  if (
6676
6591
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_policies() !==
6677
- 64896
6592
+ 31626
6678
6593
  ) {
6679
6594
  throw new UniffiInternalError.ApiChecksumMismatch(
6680
6595
  "uniffi_bdk_ffi_checksum_method_wallet_policies"
@@ -6682,7 +6597,7 @@ function uniffiEnsureInitialized() {
6682
6597
  }
6683
6598
  if (
6684
6599
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_public_descriptor() !==
6685
- 19031
6600
+ 58604
6686
6601
  ) {
6687
6602
  throw new UniffiInternalError.ApiChecksumMismatch(
6688
6603
  "uniffi_bdk_ffi_checksum_method_wallet_public_descriptor"
@@ -6690,7 +6605,7 @@ function uniffiEnsureInitialized() {
6690
6605
  }
6691
6606
  if (
6692
6607
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_reveal_addresses_to() !==
6693
- 55968
6608
+ 12682
6694
6609
  ) {
6695
6610
  throw new UniffiInternalError.ApiChecksumMismatch(
6696
6611
  "uniffi_bdk_ffi_checksum_method_wallet_reveal_addresses_to"
@@ -6698,14 +6613,14 @@ function uniffiEnsureInitialized() {
6698
6613
  }
6699
6614
  if (
6700
6615
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_reveal_next_address() !==
6701
- 61535
6616
+ 25820
6702
6617
  ) {
6703
6618
  throw new UniffiInternalError.ApiChecksumMismatch(
6704
6619
  "uniffi_bdk_ffi_checksum_method_wallet_reveal_next_address"
6705
6620
  );
6706
6621
  }
6707
6622
  if (
6708
- nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_send() !== 51484
6623
+ nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_send() !== 4457
6709
6624
  ) {
6710
6625
  throw new UniffiInternalError.ApiChecksumMismatch(
6711
6626
  "uniffi_bdk_ffi_checksum_method_wallet_send"
@@ -6713,14 +6628,14 @@ function uniffiEnsureInitialized() {
6713
6628
  }
6714
6629
  if (
6715
6630
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_sent_and_received() !==
6716
- 31024
6631
+ 949
6717
6632
  ) {
6718
6633
  throw new UniffiInternalError.ApiChecksumMismatch(
6719
6634
  "uniffi_bdk_ffi_checksum_method_wallet_sent_and_received"
6720
6635
  );
6721
6636
  }
6722
6637
  if (
6723
- nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_sign() !== 49926
6638
+ nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_sign() !== 32193
6724
6639
  ) {
6725
6640
  throw new UniffiInternalError.ApiChecksumMismatch(
6726
6641
  "uniffi_bdk_ffi_checksum_method_wallet_sign"
@@ -6728,7 +6643,7 @@ function uniffiEnsureInitialized() {
6728
6643
  }
6729
6644
  if (
6730
6645
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_sync_with_electrum() !==
6731
- 58815
6646
+ 38866
6732
6647
  ) {
6733
6648
  throw new UniffiInternalError.ApiChecksumMismatch(
6734
6649
  "uniffi_bdk_ffi_checksum_method_wallet_sync_with_electrum"
@@ -6736,7 +6651,7 @@ function uniffiEnsureInitialized() {
6736
6651
  }
6737
6652
  if (
6738
6653
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_sync_with_esplora() !==
6739
- 55793
6654
+ 28111
6740
6655
  ) {
6741
6656
  throw new UniffiInternalError.ApiChecksumMismatch(
6742
6657
  "uniffi_bdk_ffi_checksum_method_wallet_sync_with_esplora"
@@ -6744,7 +6659,7 @@ function uniffiEnsureInitialized() {
6744
6659
  }
6745
6660
  if (
6746
6661
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_transactions() !==
6747
- 13072
6662
+ 33179
6748
6663
  ) {
6749
6664
  throw new UniffiInternalError.ApiChecksumMismatch(
6750
6665
  "uniffi_bdk_ffi_checksum_method_wallet_transactions"
@@ -6752,7 +6667,7 @@ function uniffiEnsureInitialized() {
6752
6667
  }
6753
6668
  if (
6754
6669
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_tx_details() !==
6755
- 60609
6670
+ 15355
6756
6671
  ) {
6757
6672
  throw new UniffiInternalError.ApiChecksumMismatch(
6758
6673
  "uniffi_bdk_ffi_checksum_method_wallet_tx_details"
@@ -6760,7 +6675,7 @@ function uniffiEnsureInitialized() {
6760
6675
  }
6761
6676
  if (
6762
6677
  nativeModule().ubrn_uniffi_bdk_ffi_checksum_method_wallet_unmark_used() !==
6763
- 25591
6678
+ 46731
6764
6679
  ) {
6765
6680
  throw new UniffiInternalError.ApiChecksumMismatch(
6766
6681
  "uniffi_bdk_ffi_checksum_method_wallet_unmark_used"