@secondts/bark-react-native 0.13.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = exports.WalletProperties = exports.WalletOpenArgs = exports.WalletNotification_Tags = exports.WalletNotification = exports.Wallet = exports.Vtxo = exports.RoundState = exports.PendingBoard = exports.OutPoint = exports.OnchainWallet = exports.OnchainBalance = exports.OffboardResult = exports.NotificationHolder = exports.Network = exports.Movement = exports.LogLevel = exports.LightningSendStatus_Tags = exports.LightningSendStatus = exports.LightningSend = exports.LightningReceive = exports.LightningInvoice = exports.FeeEstimate = exports.ExitVtxo = exports.ExitTransactionStatus = exports.ExitProgressStatus = exports.ExitClaimTransaction = exports.Exception_Tags = exports.Exception = exports.Destination = exports.CustomOnchainWalletCallbacksImpl = exports.CpfpParams = exports.Config = exports.BlockRef = exports.BarkLoggerImpl = exports.Balance = exports.ArkInfo = exports.AddressWithIndex = void 0;
6
+ exports.default = exports.WalletProperties = exports.WalletOpenArgs = exports.WalletNotification_Tags = exports.WalletNotification = exports.Wallet = exports.Vtxo = exports.RoundState = exports.RecoveryReport = exports.RecoveryBucket = exports.PendingBoard = exports.OutPoint = exports.OnchainWallet = exports.OnchainBalance = exports.OffboardResult = exports.NotificationHolder = exports.Network = exports.Movement = exports.LogLevel = exports.LightningSendStatus_Tags = exports.LightningSendStatus = exports.LightningSend = exports.LightningReceive = exports.LightningInvoice = exports.FeeEstimate = exports.ExitVtxo = exports.ExitTransactionStatus = exports.ExitProgressStatus = exports.ExitClaimTransaction = exports.Exception_Tags = exports.Exception = exports.Destination = exports.CustomOnchainWalletCallbacksImpl = exports.CpfpParams = exports.Config = exports.BlockRef = exports.BarkLoggerImpl = exports.Balance = exports.ArkInfo = exports.AddressWithIndex = void 0;
7
7
  exports.extractTxFromPsbt = extractTxFromPsbt;
8
8
  exports.generateMnemonic = generateMnemonic;
9
9
  exports.initWallet = initWallet;
@@ -665,7 +665,8 @@ const FfiConverterTypeLightningReceive = (() => {
665
665
  amountSats: _uniffiBindgenReactNative.FfiConverterUInt64.read(from),
666
666
  state: FfiConverterString.read(from),
667
667
  paymentPreimage: FfiConverterOptionalString.read(from),
668
- settledAt: FfiConverterOptionalInt64.read(from)
668
+ settledAt: FfiConverterOptionalInt64.read(from),
669
+ claimDestination: FfiConverterOptionalString.read(from)
669
670
  };
670
671
  }
671
672
  write(value, into) {
@@ -675,9 +676,10 @@ const FfiConverterTypeLightningReceive = (() => {
675
676
  FfiConverterString.write(value.state, into);
676
677
  FfiConverterOptionalString.write(value.paymentPreimage, into);
677
678
  FfiConverterOptionalInt64.write(value.settledAt, into);
679
+ FfiConverterOptionalString.write(value.claimDestination, into);
678
680
  }
679
681
  allocationSize(value) {
680
- return FfiConverterString.allocationSize(value.paymentHash) + FfiConverterString.allocationSize(value.invoice) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.amountSats) + FfiConverterString.allocationSize(value.state) + FfiConverterOptionalString.allocationSize(value.paymentPreimage) + FfiConverterOptionalInt64.allocationSize(value.settledAt);
682
+ return FfiConverterString.allocationSize(value.paymentHash) + FfiConverterString.allocationSize(value.invoice) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.amountSats) + FfiConverterString.allocationSize(value.state) + FfiConverterOptionalString.allocationSize(value.paymentPreimage) + FfiConverterOptionalInt64.allocationSize(value.settledAt) + FfiConverterOptionalString.allocationSize(value.claimDestination);
681
683
  }
682
684
  }
683
685
  return new FFIConverter();
@@ -922,6 +924,99 @@ const FfiConverterTypePendingBoard = (() => {
922
924
  return new FFIConverter();
923
925
  })();
924
926
 
927
+ /**
928
+ * One bucket of a [`RecoveryReport`].
929
+ *
930
+ * `total_sats` only sums the VTXOs whose amount is known, so it can
931
+ * under-count `failed`, where a VTXO may have failed before being fetched.
932
+ * `vtxo_ids` is sorted, since upstream buckets them unordered.
933
+ */
934
+
935
+ /**
936
+ * Generated factory for {@link RecoveryBucket} record objects.
937
+ */
938
+ const RecoveryBucket = exports.RecoveryBucket = (() => {
939
+ const defaults = () => ({});
940
+ const create = (() => {
941
+ return (0, _uniffiBindgenReactNative.uniffiCreateRecord)(defaults);
942
+ })();
943
+ return Object.freeze({
944
+ create,
945
+ new: create,
946
+ defaults: () => Object.freeze(defaults())
947
+ });
948
+ })();
949
+ const FfiConverterTypeRecoveryBucket = (() => {
950
+ class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray {
951
+ read(from) {
952
+ return {
953
+ vtxoIds: FfiConverterArrayString.read(from),
954
+ totalSats: _uniffiBindgenReactNative.FfiConverterUInt64.read(from)
955
+ };
956
+ }
957
+ write(value, into) {
958
+ FfiConverterArrayString.write(value.vtxoIds, into);
959
+ _uniffiBindgenReactNative.FfiConverterUInt64.write(value.totalSats, into);
960
+ }
961
+ allocationSize(value) {
962
+ return FfiConverterArrayString.allocationSize(value.vtxoIds) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.totalSats);
963
+ }
964
+ }
965
+ return new FFIConverter();
966
+ })();
967
+
968
+ /**
969
+ * Outcome of a recovery scan: every VTXO id the scan looked at, bucketed by
970
+ * what was decided about it.
971
+ *
972
+ * `skipped` vs `failed` is the load-bearing distinction: a `skipped` VTXO was
973
+ * decided not to be spendable (spent, exited, or reported non-spendable),
974
+ * while a `failed` one could not be decided because of an error, so its funds
975
+ * may still be missing. `failed` is retryable via `recover_vtxos`; a `foreign`
976
+ * id instead sits beyond the key-derivation gap limit and needs a wider scan.
977
+ */
978
+
979
+ /**
980
+ * Generated factory for {@link RecoveryReport} record objects.
981
+ */
982
+ const RecoveryReport = exports.RecoveryReport = (() => {
983
+ const defaults = () => ({});
984
+ const create = (() => {
985
+ return (0, _uniffiBindgenReactNative.uniffiCreateRecord)(defaults);
986
+ })();
987
+ return Object.freeze({
988
+ create,
989
+ new: create,
990
+ defaults: () => Object.freeze(defaults())
991
+ });
992
+ })();
993
+ const FfiConverterTypeRecoveryReport = (() => {
994
+ class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray {
995
+ read(from) {
996
+ return {
997
+ recovered: FfiConverterTypeRecoveryBucket.read(from),
998
+ skipped: FfiConverterTypeRecoveryBucket.read(from),
999
+ foreign: FfiConverterTypeRecoveryBucket.read(from),
1000
+ failed: FfiConverterTypeRecoveryBucket.read(from),
1001
+ exited: FfiConverterTypeRecoveryBucket.read(from),
1002
+ isComplete: _uniffiBindgenReactNative.FfiConverterBool.read(from)
1003
+ };
1004
+ }
1005
+ write(value, into) {
1006
+ FfiConverterTypeRecoveryBucket.write(value.recovered, into);
1007
+ FfiConverterTypeRecoveryBucket.write(value.skipped, into);
1008
+ FfiConverterTypeRecoveryBucket.write(value.foreign, into);
1009
+ FfiConverterTypeRecoveryBucket.write(value.failed, into);
1010
+ FfiConverterTypeRecoveryBucket.write(value.exited, into);
1011
+ _uniffiBindgenReactNative.FfiConverterBool.write(value.isComplete, into);
1012
+ }
1013
+ allocationSize(value) {
1014
+ return FfiConverterTypeRecoveryBucket.allocationSize(value.recovered) + FfiConverterTypeRecoveryBucket.allocationSize(value.skipped) + FfiConverterTypeRecoveryBucket.allocationSize(value.foreign) + FfiConverterTypeRecoveryBucket.allocationSize(value.failed) + FfiConverterTypeRecoveryBucket.allocationSize(value.exited) + _uniffiBindgenReactNative.FfiConverterBool.allocationSize(value.isComplete);
1015
+ }
1016
+ }
1017
+ return new FFIConverter();
1018
+ })();
1019
+
925
1020
  /**
926
1021
  * A pending round state
927
1022
  */
@@ -982,7 +1077,8 @@ const FfiConverterTypeVtxo = (() => {
982
1077
  kind: FfiConverterString.read(from),
983
1078
  state: FfiConverterString.read(from),
984
1079
  exitDepth: _uniffiBindgenReactNative.FfiConverterUInt32.read(from),
985
- exitTxWeightWu: _uniffiBindgenReactNative.FfiConverterUInt64.read(from)
1080
+ exitTxWeightWu: _uniffiBindgenReactNative.FfiConverterUInt64.read(from),
1081
+ registered: _uniffiBindgenReactNative.FfiConverterBool.read(from)
986
1082
  };
987
1083
  }
988
1084
  write(value, into) {
@@ -993,9 +1089,10 @@ const FfiConverterTypeVtxo = (() => {
993
1089
  FfiConverterString.write(value.state, into);
994
1090
  _uniffiBindgenReactNative.FfiConverterUInt32.write(value.exitDepth, into);
995
1091
  _uniffiBindgenReactNative.FfiConverterUInt64.write(value.exitTxWeightWu, into);
1092
+ _uniffiBindgenReactNative.FfiConverterBool.write(value.registered, into);
996
1093
  }
997
1094
  allocationSize(value) {
998
- return FfiConverterString.allocationSize(value.id) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.amountSats) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.expiryHeight) + FfiConverterString.allocationSize(value.kind) + FfiConverterString.allocationSize(value.state) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.exitDepth) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.exitTxWeightWu);
1095
+ return FfiConverterString.allocationSize(value.id) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.amountSats) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.expiryHeight) + FfiConverterString.allocationSize(value.kind) + FfiConverterString.allocationSize(value.state) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.exitDepth) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.exitTxWeightWu) + _uniffiBindgenReactNative.FfiConverterBool.allocationSize(value.registered);
999
1096
  }
1000
1097
  }
1001
1098
  return new FFIConverter();
@@ -1015,7 +1112,8 @@ const WalletOpenArgs = exports.WalletOpenArgs = (() => {
1015
1112
  runDaemon: true,
1016
1113
  onchain: undefined,
1017
1114
  createIfNotExists: true,
1018
- createWithoutServer: false
1115
+ createWithoutServer: false,
1116
+ skipRecovery: false
1019
1117
  });
1020
1118
  const create = (() => {
1021
1119
  return (0, _uniffiBindgenReactNative.uniffiCreateRecord)(defaults);
@@ -1034,7 +1132,8 @@ const FfiConverterTypeWalletOpenArgs = (() => {
1034
1132
  datadir: FfiConverterString.read(from),
1035
1133
  onchain: FfiConverterOptionalTypeOnchainWallet.read(from),
1036
1134
  createIfNotExists: _uniffiBindgenReactNative.FfiConverterBool.read(from),
1037
- createWithoutServer: _uniffiBindgenReactNative.FfiConverterBool.read(from)
1135
+ createWithoutServer: _uniffiBindgenReactNative.FfiConverterBool.read(from),
1136
+ skipRecovery: _uniffiBindgenReactNative.FfiConverterBool.read(from)
1038
1137
  };
1039
1138
  }
1040
1139
  write(value, into) {
@@ -1043,9 +1142,10 @@ const FfiConverterTypeWalletOpenArgs = (() => {
1043
1142
  FfiConverterOptionalTypeOnchainWallet.write(value.onchain, into);
1044
1143
  _uniffiBindgenReactNative.FfiConverterBool.write(value.createIfNotExists, into);
1045
1144
  _uniffiBindgenReactNative.FfiConverterBool.write(value.createWithoutServer, into);
1145
+ _uniffiBindgenReactNative.FfiConverterBool.write(value.skipRecovery, into);
1046
1146
  }
1047
1147
  allocationSize(value) {
1048
- return _uniffiBindgenReactNative.FfiConverterBool.allocationSize(value.runDaemon) + FfiConverterString.allocationSize(value.datadir) + FfiConverterOptionalTypeOnchainWallet.allocationSize(value.onchain) + _uniffiBindgenReactNative.FfiConverterBool.allocationSize(value.createIfNotExists) + _uniffiBindgenReactNative.FfiConverterBool.allocationSize(value.createWithoutServer);
1148
+ return _uniffiBindgenReactNative.FfiConverterBool.allocationSize(value.runDaemon) + FfiConverterString.allocationSize(value.datadir) + FfiConverterOptionalTypeOnchainWallet.allocationSize(value.onchain) + _uniffiBindgenReactNative.FfiConverterBool.allocationSize(value.createIfNotExists) + _uniffiBindgenReactNative.FfiConverterBool.allocationSize(value.createWithoutServer) + _uniffiBindgenReactNative.FfiConverterBool.allocationSize(value.skipRecovery);
1049
1149
  }
1050
1150
  }
1051
1151
  return new FFIConverter();
@@ -2523,6 +2623,36 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
2523
2623
  throw __error;
2524
2624
  }
2525
2625
  }
2626
+
2627
+ /**
2628
+ * Create an invoice whose claimed VTXO is delivered to `claim_destination`
2629
+ * (an Ark address), letting that wallet receive while offline.
2630
+ *
2631
+ * The claim is signed directly to that address's own policy, so this wallet
2632
+ * has no custodial control and cannot redirect the payment. It can still
2633
+ * strand it: delivering the signed output to the destination's mailbox is a
2634
+ * separate step only this wallet can perform, and the recipient has no
2635
+ * independent way to recover the funds until it happens. Delivery resumes
2636
+ * automatically on restart, so a crash recovers on its own — but running
2637
+ * this for someone else means they trust you to stay online and eventually
2638
+ * deliver, not that they trust you with custody.
2639
+ *
2640
+ * A `claim_destination` owned by this wallet is claimed locally instead of
2641
+ * going through its mailbox.
2642
+ */
2643
+ async bolt11InvoiceForAddress(amountSats, claimDestination, description = undefined, token = undefined, asyncOpts_) /*throws*/{
2644
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
2645
+ try {
2646
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2647
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice_for_address(uniffiTypeWalletObjectFactory.clonePointer(this), _uniffiBindgenReactNative.FfiConverterUInt64.lower(amountSats), FfiConverterString.lower(claimDestination), FfiConverterOptionalString.lower(description), FfiConverterOptionalString.lower(token));
2648
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeLightningInvoice.lift.bind(FfiConverterTypeLightningInvoice), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
2649
+ } catch (__error) {
2650
+ if (uniffiIsDebug && __error instanceof Error) {
2651
+ __error.stack = __stack;
2652
+ }
2653
+ throw __error;
2654
+ }
2655
+ }
2526
2656
  async broadcastTx(txHex, asyncOpts_) /*throws*/{
2527
2657
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
2528
2658
  try {
@@ -3295,6 +3425,42 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
3295
3425
  throw __error;
3296
3426
  }
3297
3427
  }
3428
+
3429
+ /**
3430
+ * Recover the given VTXO ids from the server, importing the ones this
3431
+ * wallet owns that are still spendable. Use it to retry ids a previous
3432
+ * scan reported as `failed`.
3433
+ */
3434
+ async recoverVtxos(vtxoIds, asyncOpts_) /*throws*/{
3435
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3436
+ try {
3437
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3438
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_recover_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterArrayString.lower(vtxoIds));
3439
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeRecoveryReport.lift.bind(FfiConverterTypeRecoveryReport), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3440
+ } catch (__error) {
3441
+ if (uniffiIsDebug && __error instanceof Error) {
3442
+ __error.stack = __stack;
3443
+ }
3444
+ throw __error;
3445
+ }
3446
+ }
3447
+
3448
+ /**
3449
+ * Result of the seed-recovery scan that ran during `Wallet::open`, or none
3450
+ * if no report was produced.
3451
+ *
3452
+ * Recovery only runs on the open that creates the wallet locally, and not
3453
+ * at all when `WalletOpenArgs.skip_recovery` is set, so this is empty on
3454
+ * every subsequent open. It is also empty when the scan itself failed
3455
+ * outright — bark logs that and lets open succeed, so an empty result does
3456
+ * not prove no funds are missing. `isComplete == false` means funds may
3457
+ * still be missing; retry the report's `failed` ids with `recoverVtxos`.
3458
+ */
3459
+ recoveryReport() {
3460
+ return FfiConverterOptionalTypeRecoveryReport.lift(uniffiCaller.rustCall(/*caller:*/callStatus => {
3461
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_recovery_report(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
3462
+ }, /*liftString:*/FfiConverterString.lift));
3463
+ }
3298
3464
  async refreshServer(asyncOpts_) /*throws*/{
3299
3465
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
3300
3466
  try {
@@ -3335,6 +3501,26 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
3335
3501
  }
3336
3502
  }
3337
3503
 
3504
+ /**
3505
+ * Schedule a delegated refresh for `scheduled_height` instead of the next
3506
+ * round. The refresh fee is priced against the VTXO's remaining lifetime at
3507
+ * that height, and the server charges less the closer a VTXO is to expiry,
3508
+ * so scheduling further out never costs more than refreshing now.
3509
+ */
3510
+ async refreshVtxosScheduled(vtxoIds, scheduledHeight, asyncOpts_) /*throws*/{
3511
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3512
+ try {
3513
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3514
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos_scheduled(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterArrayString.lower(vtxoIds), _uniffiBindgenReactNative.FfiConverterUInt32.lower(scheduledHeight));
3515
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalTypeRoundState.lift.bind(FfiConverterOptionalTypeRoundState), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3516
+ } catch (__error) {
3517
+ if (uniffiIsDebug && __error instanceof Error) {
3518
+ __error.stack = __stack;
3519
+ }
3520
+ throw __error;
3521
+ }
3522
+ }
3523
+
3338
3524
  /**
3339
3525
  * Start the background daemon. The onchain wallet used by the daemon is
3340
3526
  * the one supplied to `Wallet::open` (see `WalletOpenArgs.onchain`).
@@ -3653,6 +3839,9 @@ const FfiConverterOptionalTypeArkInfo = new _uniffiBindgenReactNative.FfiConvert
3653
3839
  // FfiConverter for ExitTransactionStatus | undefined
3654
3840
  const FfiConverterOptionalTypeExitTransactionStatus = new _uniffiBindgenReactNative.FfiConverterOptional(FfiConverterTypeExitTransactionStatus);
3655
3841
 
3842
+ // FfiConverter for RecoveryReport | undefined
3843
+ const FfiConverterOptionalTypeRecoveryReport = new _uniffiBindgenReactNative.FfiConverterOptional(FfiConverterTypeRecoveryReport);
3844
+
3656
3845
  // FfiConverter for RoundState | undefined
3657
3846
  const FfiConverterOptionalTypeRoundState = new _uniffiBindgenReactNative.FfiConverterOptional(FfiConverterTypeRoundState);
3658
3847
 
@@ -3821,6 +4010,9 @@ function uniffiEnsureInitialized() {
3821
4010
  if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice() !== 54959) {
3822
4011
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice");
3823
4012
  }
4013
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice_for_address() !== 56368) {
4014
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice_for_address");
4015
+ }
3824
4016
  if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_broadcast_tx() !== 46367) {
3825
4017
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_broadcast_tx");
3826
4018
  }
@@ -4001,6 +4193,12 @@ function uniffiEnsureInitialized() {
4001
4193
  if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_properties() !== 9773) {
4002
4194
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_properties");
4003
4195
  }
4196
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_recover_vtxos() !== 640) {
4197
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_recover_vtxos");
4198
+ }
4199
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_recovery_report() !== 54899) {
4200
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_recovery_report");
4201
+ }
4004
4202
  if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_server() !== 41162) {
4005
4203
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_refresh_server");
4006
4204
  }
@@ -4010,6 +4208,9 @@ function uniffiEnsureInitialized() {
4010
4208
  if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated() !== 61476) {
4011
4209
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated");
4012
4210
  }
4211
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_scheduled() !== 50488) {
4212
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_scheduled");
4213
+ }
4013
4214
  if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_run_daemon() !== 9520) {
4014
4215
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_run_daemon");
4015
4216
  }
@@ -4107,6 +4308,8 @@ var _default = exports.default = Object.freeze({
4107
4308
  FfiConverterTypeOnchainWallet,
4108
4309
  FfiConverterTypeOutPoint,
4109
4310
  FfiConverterTypePendingBoard,
4311
+ FfiConverterTypeRecoveryBucket,
4312
+ FfiConverterTypeRecoveryReport,
4110
4313
  FfiConverterTypeRoundState,
4111
4314
  FfiConverterTypeVtxo,
4112
4315
  FfiConverterTypeWallet,