@secondts/bark-react-native 0.9.0 → 0.11.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.
@@ -7,7 +7,7 @@
7
7
  /* eslint-disable */
8
8
  // @ts-nocheck
9
9
  import nativeModule from "./bark-ffi.js";
10
- import { AbstractFfiConverterByteArray, FfiConverterArray, FfiConverterBool, FfiConverterInt32, FfiConverterInt64, FfiConverterObject, FfiConverterObjectWithCallbacks, FfiConverterOptional, FfiConverterUInt16, FfiConverterUInt32, FfiConverterUInt64, FfiConverterUInt8, UniffiAbstractObject, UniffiEnum, UniffiError, UniffiInternalError, UniffiResult, UniffiRustCaller, destructorGuardSymbol, pointerLiteralSymbol, uniffiCreateFfiConverterString, uniffiCreateRecord, uniffiRustCallAsync, uniffiTraitInterfaceCall, uniffiTraitInterfaceCallWithError, uniffiTypeNameSymbol } from "uniffi-bindgen-react-native";
10
+ import { AbstractFfiConverterByteArray, FfiConverterArray, FfiConverterBool, FfiConverterInt32, FfiConverterInt64, FfiConverterObject, FfiConverterObjectWithCallbacks, FfiConverterOptional, FfiConverterUInt16, FfiConverterUInt32, FfiConverterUInt64, FfiConverterUInt8, UniffiAbstractObject, UniffiEnum, UniffiError, UniffiInternalError, UniffiResult, UniffiRustCaller, destructorGuardSymbol, pointerLiteralSymbol, uniffiCreateFfiConverterString, uniffiCreateRecord, uniffiRustCallAsync, uniffiTraitInterfaceCall, uniffiTraitInterfaceCallWithError, uniffiTypeNameSymbol, variantOrdinalSymbol } from "uniffi-bindgen-react-native";
11
11
 
12
12
  // Get converters from the other files, if any.
13
13
  const uniffiCaller = new UniffiRustCaller(() => ({
@@ -35,7 +35,7 @@ process?.env?.NODE_ENV !== "production" || false;
35
35
  * Hex-encoded signed transaction ready for broadcasting
36
36
  */
37
37
  export function extractTxFromPsbt(psbtBase64) /*throws*/{
38
- return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
38
+ return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
39
39
  return nativeModule().ubrn_uniffi_bark_ffi_fn_func_extract_tx_from_psbt(FfiConverterString.lower(psbtBase64), callStatus);
40
40
  }, /*liftString:*/FfiConverterString.lift));
41
41
  }
@@ -43,7 +43,7 @@ export function extractTxFromPsbt(psbtBase64) /*throws*/{
43
43
  * Generate a new 12-word BIP39 mnemonic
44
44
  */
45
45
  export function generateMnemonic() /*throws*/{
46
- return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
46
+ return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
47
47
  return nativeModule().ubrn_uniffi_bark_ffi_fn_func_generate_mnemonic(callStatus);
48
48
  }, /*liftString:*/FfiConverterString.lift));
49
49
  }
@@ -55,7 +55,7 @@ export function generateMnemonic() /*throws*/{
55
55
  * use Wallet::validate_arkoor_address() instead.
56
56
  */
57
57
  export function validateArkAddress(address) /*throws*/{
58
- return FfiConverterBool.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
58
+ return FfiConverterBool.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
59
59
  return nativeModule().ubrn_uniffi_bark_ffi_fn_func_validate_ark_address(FfiConverterString.lower(address), callStatus);
60
60
  }, /*liftString:*/FfiConverterString.lift));
61
61
  }
@@ -63,7 +63,7 @@ export function validateArkAddress(address) /*throws*/{
63
63
  * Validate a BIP39 mnemonic phrase
64
64
  */
65
65
  export function validateMnemonic(mnemonic) /*throws*/{
66
- return FfiConverterBool.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
66
+ return FfiConverterBool.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
67
67
  return nativeModule().ubrn_uniffi_bark_ffi_fn_func_validate_mnemonic(FfiConverterString.lower(mnemonic), callStatus);
68
68
  }, /*liftString:*/FfiConverterString.lift));
69
69
  }
@@ -74,10 +74,28 @@ export function validateMnemonic(mnemonic) /*throws*/{
74
74
  * will return an error.
75
75
  */
76
76
  export function setLogger(logger, maxLevel) /*throws*/{
77
- uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
77
+ uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
78
78
  nativeModule().ubrn_uniffi_bark_ffi_fn_func_set_logger(FfiConverterTypeBarkLogger.lower(logger), FfiConverterTypeLogLevel.lower(maxLevel), callStatus);
79
79
  }, /*liftString:*/FfiConverterString.lift);
80
80
  }
81
+ /**
82
+ * Low-level function to initialize a wallet
83
+ *
84
+ * You probably want to use [`Wallet::open`] instead.
85
+ */
86
+ export async function initWallet(network, mnemonicOrSeed, config, datadir, allowUnreachableServer, asyncOpts_) /*throws*/{
87
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
88
+ try {
89
+ return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
90
+ return nativeModule().ubrn_uniffi_bark_ffi_fn_func_init_wallet(FfiConverterTypeNetwork.lower(network), FfiConverterString.lower(mnemonicOrSeed), FfiConverterTypeConfig.lower(config), FfiConverterString.lower(datadir), FfiConverterBool.lower(allowUnreachableServer));
91
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
92
+ } catch (__error) {
93
+ if (uniffiIsDebug && __error instanceof Error) {
94
+ __error.stack = __stack;
95
+ }
96
+ throw __error;
97
+ }
98
+ }
81
99
  /**
82
100
  * Generated factory for {@link AddressWithIndex} record objects.
83
101
  */
@@ -270,7 +288,6 @@ const FfiConverterTypeConfig = (() => {
270
288
  bitcoindCookiefile: FfiConverterOptionalString.read(from),
271
289
  bitcoindUser: FfiConverterOptionalString.read(from),
272
290
  bitcoindPass: FfiConverterOptionalString.read(from),
273
- network: FfiConverterTypeNetwork.read(from),
274
291
  vtxoRefreshExpiryThreshold: FfiConverterOptionalUInt32.read(from),
275
292
  vtxoExitMargin: FfiConverterOptionalUInt16.read(from),
276
293
  htlcRecvClaimDelta: FfiConverterOptionalUInt16.read(from),
@@ -279,7 +296,8 @@ const FfiConverterTypeConfig = (() => {
279
296
  daemonSyncIntervalSecs: FfiConverterOptionalUInt64.read(from),
280
297
  offboardRequiredConfirmations: FfiConverterOptionalUInt32.read(from),
281
298
  daemonManualSync: FfiConverterOptionalBool.read(from),
282
- lightningReceiveClaimRetries: FfiConverterOptionalUInt8.read(from)
299
+ lightningReceiveClaimRetries: FfiConverterOptionalUInt8.read(from),
300
+ userAgent: FfiConverterOptionalString.read(from)
283
301
  };
284
302
  }
285
303
  write(value, into) {
@@ -290,7 +308,6 @@ const FfiConverterTypeConfig = (() => {
290
308
  FfiConverterOptionalString.write(value.bitcoindCookiefile, into);
291
309
  FfiConverterOptionalString.write(value.bitcoindUser, into);
292
310
  FfiConverterOptionalString.write(value.bitcoindPass, into);
293
- FfiConverterTypeNetwork.write(value.network, into);
294
311
  FfiConverterOptionalUInt32.write(value.vtxoRefreshExpiryThreshold, into);
295
312
  FfiConverterOptionalUInt16.write(value.vtxoExitMargin, into);
296
313
  FfiConverterOptionalUInt16.write(value.htlcRecvClaimDelta, into);
@@ -300,9 +317,10 @@ const FfiConverterTypeConfig = (() => {
300
317
  FfiConverterOptionalUInt32.write(value.offboardRequiredConfirmations, into);
301
318
  FfiConverterOptionalBool.write(value.daemonManualSync, into);
302
319
  FfiConverterOptionalUInt8.write(value.lightningReceiveClaimRetries, into);
320
+ FfiConverterOptionalString.write(value.userAgent, into);
303
321
  }
304
322
  allocationSize(value) {
305
- return FfiConverterString.allocationSize(value.serverAddress) + FfiConverterOptionalString.allocationSize(value.serverAccessToken) + FfiConverterOptionalString.allocationSize(value.esploraAddress) + FfiConverterOptionalString.allocationSize(value.bitcoindAddress) + FfiConverterOptionalString.allocationSize(value.bitcoindCookiefile) + FfiConverterOptionalString.allocationSize(value.bitcoindUser) + FfiConverterOptionalString.allocationSize(value.bitcoindPass) + FfiConverterTypeNetwork.allocationSize(value.network) + FfiConverterOptionalUInt32.allocationSize(value.vtxoRefreshExpiryThreshold) + FfiConverterOptionalUInt16.allocationSize(value.vtxoExitMargin) + FfiConverterOptionalUInt16.allocationSize(value.htlcRecvClaimDelta) + FfiConverterOptionalUInt64.allocationSize(value.fallbackFeeRate) + FfiConverterOptionalUInt32.allocationSize(value.roundTxRequiredConfirmations) + FfiConverterOptionalUInt64.allocationSize(value.daemonSyncIntervalSecs) + FfiConverterOptionalUInt32.allocationSize(value.offboardRequiredConfirmations) + FfiConverterOptionalBool.allocationSize(value.daemonManualSync) + FfiConverterOptionalUInt8.allocationSize(value.lightningReceiveClaimRetries);
323
+ return FfiConverterString.allocationSize(value.serverAddress) + FfiConverterOptionalString.allocationSize(value.serverAccessToken) + FfiConverterOptionalString.allocationSize(value.esploraAddress) + FfiConverterOptionalString.allocationSize(value.bitcoindAddress) + FfiConverterOptionalString.allocationSize(value.bitcoindCookiefile) + FfiConverterOptionalString.allocationSize(value.bitcoindUser) + FfiConverterOptionalString.allocationSize(value.bitcoindPass) + FfiConverterOptionalUInt32.allocationSize(value.vtxoRefreshExpiryThreshold) + FfiConverterOptionalUInt16.allocationSize(value.vtxoExitMargin) + FfiConverterOptionalUInt16.allocationSize(value.htlcRecvClaimDelta) + FfiConverterOptionalUInt64.allocationSize(value.fallbackFeeRate) + FfiConverterOptionalUInt32.allocationSize(value.roundTxRequiredConfirmations) + FfiConverterOptionalUInt64.allocationSize(value.daemonSyncIntervalSecs) + FfiConverterOptionalUInt32.allocationSize(value.offboardRequiredConfirmations) + FfiConverterOptionalBool.allocationSize(value.daemonManualSync) + FfiConverterOptionalUInt8.allocationSize(value.lightningReceiveClaimRetries) + FfiConverterOptionalString.allocationSize(value.userAgent);
306
324
  }
307
325
  }
308
326
  return new FFIConverter();
@@ -724,7 +742,10 @@ const FfiConverterTypeMovement = (() => {
724
742
  exitedVtxoIds: FfiConverterArrayString.read(from),
725
743
  createdAt: FfiConverterString.read(from),
726
744
  updatedAt: FfiConverterString.read(from),
727
- completedAt: FfiConverterOptionalString.read(from)
745
+ completedAt: FfiConverterOptionalString.read(from),
746
+ paymentHash: FfiConverterOptionalString.read(from),
747
+ lightningInvoice: FfiConverterOptionalString.read(from),
748
+ lightningOffer: FfiConverterOptionalString.read(from)
728
749
  };
729
750
  }
730
751
  write(value, into) {
@@ -744,9 +765,12 @@ const FfiConverterTypeMovement = (() => {
744
765
  FfiConverterString.write(value.createdAt, into);
745
766
  FfiConverterString.write(value.updatedAt, into);
746
767
  FfiConverterOptionalString.write(value.completedAt, into);
768
+ FfiConverterOptionalString.write(value.paymentHash, into);
769
+ FfiConverterOptionalString.write(value.lightningInvoice, into);
770
+ FfiConverterOptionalString.write(value.lightningOffer, into);
747
771
  }
748
772
  allocationSize(value) {
749
- return FfiConverterUInt32.allocationSize(value.id) + FfiConverterString.allocationSize(value.status) + FfiConverterString.allocationSize(value.subsystemName) + FfiConverterString.allocationSize(value.subsystemKind) + FfiConverterString.allocationSize(value.metadataJson) + FfiConverterInt64.allocationSize(value.intendedBalanceSats) + FfiConverterInt64.allocationSize(value.effectiveBalanceSats) + FfiConverterUInt64.allocationSize(value.offchainFeeSats) + FfiConverterArrayString.allocationSize(value.sentToAddresses) + FfiConverterArrayString.allocationSize(value.receivedOnAddresses) + FfiConverterArrayString.allocationSize(value.inputVtxoIds) + FfiConverterArrayString.allocationSize(value.outputVtxoIds) + FfiConverterArrayString.allocationSize(value.exitedVtxoIds) + FfiConverterString.allocationSize(value.createdAt) + FfiConverterString.allocationSize(value.updatedAt) + FfiConverterOptionalString.allocationSize(value.completedAt);
773
+ return FfiConverterUInt32.allocationSize(value.id) + FfiConverterString.allocationSize(value.status) + FfiConverterString.allocationSize(value.subsystemName) + FfiConverterString.allocationSize(value.subsystemKind) + FfiConverterString.allocationSize(value.metadataJson) + FfiConverterInt64.allocationSize(value.intendedBalanceSats) + FfiConverterInt64.allocationSize(value.effectiveBalanceSats) + FfiConverterUInt64.allocationSize(value.offchainFeeSats) + FfiConverterArrayString.allocationSize(value.sentToAddresses) + FfiConverterArrayString.allocationSize(value.receivedOnAddresses) + FfiConverterArrayString.allocationSize(value.inputVtxoIds) + FfiConverterArrayString.allocationSize(value.outputVtxoIds) + FfiConverterArrayString.allocationSize(value.exitedVtxoIds) + FfiConverterString.allocationSize(value.createdAt) + FfiConverterString.allocationSize(value.updatedAt) + FfiConverterOptionalString.allocationSize(value.completedAt) + FfiConverterOptionalString.allocationSize(value.paymentHash) + FfiConverterOptionalString.allocationSize(value.lightningInvoice) + FfiConverterOptionalString.allocationSize(value.lightningOffer);
750
774
  }
751
775
  }
752
776
  return new FFIConverter();
@@ -965,6 +989,56 @@ const FfiConverterTypeVtxo = (() => {
965
989
  }
966
990
  return new FFIConverter();
967
991
  })();
992
+
993
+ /**
994
+ * Optional arguments for [`Wallet::open`], mirroring [`bark::OpenWalletArgs`].
995
+ *
996
+ * Every field has a default, so callers only set what they need.
997
+ */
998
+
999
+ /**
1000
+ * Generated factory for {@link WalletOpenArgs} record objects.
1001
+ */
1002
+ export const WalletOpenArgs = (() => {
1003
+ const defaults = () => ({
1004
+ runDaemon: true,
1005
+ onchain: undefined,
1006
+ createIfNotExists: true,
1007
+ createWithoutServer: false
1008
+ });
1009
+ const create = (() => {
1010
+ return uniffiCreateRecord(defaults);
1011
+ })();
1012
+ return Object.freeze({
1013
+ create,
1014
+ new: create,
1015
+ defaults: () => Object.freeze(defaults())
1016
+ });
1017
+ })();
1018
+ const FfiConverterTypeWalletOpenArgs = (() => {
1019
+ class FFIConverter extends AbstractFfiConverterByteArray {
1020
+ read(from) {
1021
+ return {
1022
+ runDaemon: FfiConverterBool.read(from),
1023
+ datadir: FfiConverterString.read(from),
1024
+ onchain: FfiConverterOptionalTypeOnchainWallet.read(from),
1025
+ createIfNotExists: FfiConverterBool.read(from),
1026
+ createWithoutServer: FfiConverterBool.read(from)
1027
+ };
1028
+ }
1029
+ write(value, into) {
1030
+ FfiConverterBool.write(value.runDaemon, into);
1031
+ FfiConverterString.write(value.datadir, into);
1032
+ FfiConverterOptionalTypeOnchainWallet.write(value.onchain, into);
1033
+ FfiConverterBool.write(value.createIfNotExists, into);
1034
+ FfiConverterBool.write(value.createWithoutServer, into);
1035
+ }
1036
+ allocationSize(value) {
1037
+ return FfiConverterBool.allocationSize(value.runDaemon) + FfiConverterString.allocationSize(value.datadir) + FfiConverterOptionalTypeOnchainWallet.allocationSize(value.onchain) + FfiConverterBool.allocationSize(value.createIfNotExists) + FfiConverterBool.allocationSize(value.createWithoutServer);
1038
+ }
1039
+ }
1040
+ return new FFIConverter();
1041
+ })();
968
1042
  /**
969
1043
  * Generated factory for {@link WalletProperties} record objects.
970
1044
  */
@@ -1004,669 +1078,84 @@ const stringConverter = {
1004
1078
  };
1005
1079
  const FfiConverterString = uniffiCreateFfiConverterString(stringConverter);
1006
1080
 
1007
- // Error type: BarkError
1008
-
1009
- // Enum: BarkError
1010
- export let BarkError_Tags = /*#__PURE__*/function (BarkError_Tags) {
1011
- BarkError_Tags["Network"] = "Network";
1012
- BarkError_Tags["Database"] = "Database";
1013
- BarkError_Tags["InvalidMnemonic"] = "InvalidMnemonic";
1014
- BarkError_Tags["InvalidAddress"] = "InvalidAddress";
1015
- BarkError_Tags["InvalidInvoice"] = "InvalidInvoice";
1016
- BarkError_Tags["InvalidPsbt"] = "InvalidPsbt";
1017
- BarkError_Tags["InvalidTransaction"] = "InvalidTransaction";
1018
- BarkError_Tags["InsufficientFunds"] = "InsufficientFunds";
1019
- BarkError_Tags["NotFound"] = "NotFound";
1020
- BarkError_Tags["ServerConnection"] = "ServerConnection";
1021
- BarkError_Tags["Internal"] = "Internal";
1022
- BarkError_Tags["OnchainWalletRequired"] = "OnchainWalletRequired";
1023
- BarkError_Tags["InvalidVtxoId"] = "InvalidVtxoId";
1024
- BarkError_Tags["ServerPubkeyChanged"] = "ServerPubkeyChanged";
1025
- return BarkError_Tags;
1081
+ // Flat error type: Exception
1082
+ export let Exception_Tags = /*#__PURE__*/function (Exception_Tags) {
1083
+ Exception_Tags["Inner"] = "Inner";
1084
+ return Exception_Tags;
1026
1085
  }({});
1027
1086
  /**
1028
- * Error types that can occur when using the Bark wallet FFI
1087
+ * The single error type surfaced across the Bark FFI.
1088
+ *
1089
+ * It is a thin, single-variant wrapper around [`anyhow::Error`]. uniffi error
1090
+ * types must be enums (callback interfaces require `ConvertError`, which
1091
+ * objects cannot provide), and `flat_error` tells uniffi to carry only the
1092
+ * `Display` string across the boundary — so the rich anyhow context collapses
1093
+ * to a single message on the foreign side.
1029
1094
  */
1030
- export const BarkError = (() => {
1031
- class Network_ extends UniffiError {
1032
- /**
1033
- * @private
1034
- * This field is private and should not be used, use `tag` instead.
1035
- */
1036
- [uniffiTypeNameSymbol] = "BarkError";
1037
- tag = BarkError_Tags.Network;
1038
- constructor(inner) {
1039
- super("BarkError", "Network");
1040
- this.inner = Object.freeze(inner);
1041
- }
1042
- static new(inner) {
1043
- return new Network_(inner);
1044
- }
1045
- static instanceOf(obj) {
1046
- return obj.tag === BarkError_Tags.Network;
1047
- }
1048
- static hasInner(obj) {
1049
- return Network_.instanceOf(obj);
1050
- }
1051
- static getInner(obj) {
1052
- return obj.inner;
1053
- }
1054
- }
1055
- class Database_ extends UniffiError {
1056
- /**
1057
- * @private
1058
- * This field is private and should not be used, use `tag` instead.
1059
- */
1060
- [uniffiTypeNameSymbol] = "BarkError";
1061
- tag = BarkError_Tags.Database;
1062
- constructor(inner) {
1063
- super("BarkError", "Database");
1064
- this.inner = Object.freeze(inner);
1065
- }
1066
- static new(inner) {
1067
- return new Database_(inner);
1068
- }
1069
- static instanceOf(obj) {
1070
- return obj.tag === BarkError_Tags.Database;
1071
- }
1072
- static hasInner(obj) {
1073
- return Database_.instanceOf(obj);
1074
- }
1075
- static getInner(obj) {
1076
- return obj.inner;
1077
- }
1078
- }
1079
- class InvalidMnemonic_ extends UniffiError {
1095
+ export const Exception = (() => {
1096
+ class Inner extends UniffiError {
1080
1097
  /**
1081
1098
  * @private
1082
- * This field is private and should not be used, use `tag` instead.
1099
+ * This field is private and should not be used.
1083
1100
  */
1084
- [uniffiTypeNameSymbol] = "BarkError";
1085
- tag = BarkError_Tags.InvalidMnemonic;
1086
- constructor(inner) {
1087
- super("BarkError", "InvalidMnemonic");
1088
- this.inner = Object.freeze(inner);
1089
- }
1090
- static new(inner) {
1091
- return new InvalidMnemonic_(inner);
1092
- }
1093
- static instanceOf(obj) {
1094
- return obj.tag === BarkError_Tags.InvalidMnemonic;
1095
- }
1096
- static hasInner(obj) {
1097
- return InvalidMnemonic_.instanceOf(obj);
1098
- }
1099
- static getInner(obj) {
1100
- return obj.inner;
1101
- }
1102
- }
1103
- class InvalidAddress_ extends UniffiError {
1101
+ [uniffiTypeNameSymbol] = "Exception";
1104
1102
  /**
1105
1103
  * @private
1106
- * This field is private and should not be used, use `tag` instead.
1104
+ * This field is private and should not be used.
1107
1105
  */
1108
- [uniffiTypeNameSymbol] = "BarkError";
1109
- tag = BarkError_Tags.InvalidAddress;
1110
- constructor(inner) {
1111
- super("BarkError", "InvalidAddress");
1112
- this.inner = Object.freeze(inner);
1113
- }
1114
- static new(inner) {
1115
- return new InvalidAddress_(inner);
1116
- }
1117
- static instanceOf(obj) {
1118
- return obj.tag === BarkError_Tags.InvalidAddress;
1119
- }
1120
- static hasInner(obj) {
1121
- return InvalidAddress_.instanceOf(obj);
1106
+ [variantOrdinalSymbol] = 1;
1107
+ tag = Exception_Tags.Inner;
1108
+ constructor(message) {
1109
+ super("Exception", "Inner", message);
1122
1110
  }
1123
- static getInner(obj) {
1124
- return obj.inner;
1111
+ static instanceOf(e) {
1112
+ return instanceOf(e) && e[variantOrdinalSymbol] === 1;
1125
1113
  }
1126
1114
  }
1127
- class InvalidInvoice_ extends UniffiError {
1128
- /**
1129
- * @private
1130
- * This field is private and should not be used, use `tag` instead.
1131
- */
1132
- [uniffiTypeNameSymbol] = "BarkError";
1133
- tag = BarkError_Tags.InvalidInvoice;
1134
- constructor(inner) {
1135
- super("BarkError", "InvalidInvoice");
1136
- this.inner = Object.freeze(inner);
1137
- }
1138
- static new(inner) {
1139
- return new InvalidInvoice_(inner);
1140
- }
1141
- static instanceOf(obj) {
1142
- return obj.tag === BarkError_Tags.InvalidInvoice;
1143
- }
1144
- static hasInner(obj) {
1145
- return InvalidInvoice_.instanceOf(obj);
1146
- }
1147
- static getInner(obj) {
1148
- return obj.inner;
1149
- }
1150
- }
1151
- class InvalidPsbt_ extends UniffiError {
1152
- /**
1153
- * @private
1154
- * This field is private and should not be used, use `tag` instead.
1155
- */
1156
- [uniffiTypeNameSymbol] = "BarkError";
1157
- tag = BarkError_Tags.InvalidPsbt;
1158
- constructor(inner) {
1159
- super("BarkError", "InvalidPsbt");
1160
- this.inner = Object.freeze(inner);
1161
- }
1162
- static new(inner) {
1163
- return new InvalidPsbt_(inner);
1164
- }
1165
- static instanceOf(obj) {
1166
- return obj.tag === BarkError_Tags.InvalidPsbt;
1167
- }
1168
- static hasInner(obj) {
1169
- return InvalidPsbt_.instanceOf(obj);
1170
- }
1171
- static getInner(obj) {
1172
- return obj.inner;
1173
- }
1174
- }
1175
- class InvalidTransaction_ extends UniffiError {
1176
- /**
1177
- * @private
1178
- * This field is private and should not be used, use `tag` instead.
1179
- */
1180
- [uniffiTypeNameSymbol] = "BarkError";
1181
- tag = BarkError_Tags.InvalidTransaction;
1182
- constructor(inner) {
1183
- super("BarkError", "InvalidTransaction");
1184
- this.inner = Object.freeze(inner);
1185
- }
1186
- static new(inner) {
1187
- return new InvalidTransaction_(inner);
1188
- }
1189
- static instanceOf(obj) {
1190
- return obj.tag === BarkError_Tags.InvalidTransaction;
1191
- }
1192
- static hasInner(obj) {
1193
- return InvalidTransaction_.instanceOf(obj);
1194
- }
1195
- static getInner(obj) {
1196
- return obj.inner;
1197
- }
1198
- }
1199
- class InsufficientFunds_ extends UniffiError {
1200
- /**
1201
- * @private
1202
- * This field is private and should not be used, use `tag` instead.
1203
- */
1204
- [uniffiTypeNameSymbol] = "BarkError";
1205
- tag = BarkError_Tags.InsufficientFunds;
1206
- constructor(inner) {
1207
- super("BarkError", "InsufficientFunds");
1208
- this.inner = Object.freeze(inner);
1209
- }
1210
- static new(inner) {
1211
- return new InsufficientFunds_(inner);
1212
- }
1213
- static instanceOf(obj) {
1214
- return obj.tag === BarkError_Tags.InsufficientFunds;
1215
- }
1216
- static hasInner(obj) {
1217
- return InsufficientFunds_.instanceOf(obj);
1218
- }
1219
- static getInner(obj) {
1220
- return obj.inner;
1221
- }
1222
- }
1223
- class NotFound_ extends UniffiError {
1224
- /**
1225
- * @private
1226
- * This field is private and should not be used, use `tag` instead.
1227
- */
1228
- [uniffiTypeNameSymbol] = "BarkError";
1229
- tag = BarkError_Tags.NotFound;
1230
- constructor(inner) {
1231
- super("BarkError", "NotFound");
1232
- this.inner = Object.freeze(inner);
1233
- }
1234
- static new(inner) {
1235
- return new NotFound_(inner);
1236
- }
1237
- static instanceOf(obj) {
1238
- return obj.tag === BarkError_Tags.NotFound;
1239
- }
1240
- static hasInner(obj) {
1241
- return NotFound_.instanceOf(obj);
1242
- }
1243
- static getInner(obj) {
1244
- return obj.inner;
1245
- }
1246
- }
1247
- class ServerConnection_ extends UniffiError {
1248
- /**
1249
- * @private
1250
- * This field is private and should not be used, use `tag` instead.
1251
- */
1252
- [uniffiTypeNameSymbol] = "BarkError";
1253
- tag = BarkError_Tags.ServerConnection;
1254
- constructor(inner) {
1255
- super("BarkError", "ServerConnection");
1256
- this.inner = Object.freeze(inner);
1257
- }
1258
- static new(inner) {
1259
- return new ServerConnection_(inner);
1260
- }
1261
- static instanceOf(obj) {
1262
- return obj.tag === BarkError_Tags.ServerConnection;
1263
- }
1264
- static hasInner(obj) {
1265
- return ServerConnection_.instanceOf(obj);
1266
- }
1267
- static getInner(obj) {
1268
- return obj.inner;
1269
- }
1270
- }
1271
- class Internal_ extends UniffiError {
1272
- /**
1273
- * @private
1274
- * This field is private and should not be used, use `tag` instead.
1275
- */
1276
- [uniffiTypeNameSymbol] = "BarkError";
1277
- tag = BarkError_Tags.Internal;
1278
- constructor(inner) {
1279
- super("BarkError", "Internal");
1280
- this.inner = Object.freeze(inner);
1281
- }
1282
- static new(inner) {
1283
- return new Internal_(inner);
1284
- }
1285
- static instanceOf(obj) {
1286
- return obj.tag === BarkError_Tags.Internal;
1287
- }
1288
- static hasInner(obj) {
1289
- return Internal_.instanceOf(obj);
1290
- }
1291
- static getInner(obj) {
1292
- return obj.inner;
1293
- }
1294
- }
1295
- class OnchainWalletRequired_ extends UniffiError {
1296
- /**
1297
- * @private
1298
- * This field is private and should not be used, use `tag` instead.
1299
- */
1300
- [uniffiTypeNameSymbol] = "BarkError";
1301
- tag = BarkError_Tags.OnchainWalletRequired;
1302
- constructor(inner) {
1303
- super("BarkError", "OnchainWalletRequired");
1304
- this.inner = Object.freeze(inner);
1305
- }
1306
- static new(inner) {
1307
- return new OnchainWalletRequired_(inner);
1308
- }
1309
- static instanceOf(obj) {
1310
- return obj.tag === BarkError_Tags.OnchainWalletRequired;
1311
- }
1312
- static hasInner(obj) {
1313
- return OnchainWalletRequired_.instanceOf(obj);
1314
- }
1315
- static getInner(obj) {
1316
- return obj.inner;
1317
- }
1318
- }
1319
- class InvalidVtxoId_ extends UniffiError {
1320
- /**
1321
- * @private
1322
- * This field is private and should not be used, use `tag` instead.
1323
- */
1324
- [uniffiTypeNameSymbol] = "BarkError";
1325
- tag = BarkError_Tags.InvalidVtxoId;
1326
- constructor(inner) {
1327
- super("BarkError", "InvalidVtxoId");
1328
- this.inner = Object.freeze(inner);
1329
- }
1330
- static new(inner) {
1331
- return new InvalidVtxoId_(inner);
1332
- }
1333
- static instanceOf(obj) {
1334
- return obj.tag === BarkError_Tags.InvalidVtxoId;
1335
- }
1336
- static hasInner(obj) {
1337
- return InvalidVtxoId_.instanceOf(obj);
1338
- }
1339
- static getInner(obj) {
1340
- return obj.inner;
1341
- }
1342
- }
1343
- class ServerPubkeyChanged_ extends UniffiError {
1344
- /**
1345
- * @private
1346
- * This field is private and should not be used, use `tag` instead.
1347
- */
1348
- [uniffiTypeNameSymbol] = "BarkError";
1349
- tag = BarkError_Tags.ServerPubkeyChanged;
1350
- constructor(inner) {
1351
- super("BarkError", "ServerPubkeyChanged");
1352
- this.inner = Object.freeze(inner);
1353
- }
1354
- static new(inner) {
1355
- return new ServerPubkeyChanged_(inner);
1356
- }
1357
- static instanceOf(obj) {
1358
- return obj.tag === BarkError_Tags.ServerPubkeyChanged;
1359
- }
1360
- static hasInner(obj) {
1361
- return ServerPubkeyChanged_.instanceOf(obj);
1362
- }
1363
- static getInner(obj) {
1364
- return obj.inner;
1365
- }
1366
- }
1367
- function instanceOf(obj) {
1368
- return obj[uniffiTypeNameSymbol] === "BarkError";
1115
+
1116
+ // Utility function which does not rely on instanceof.
1117
+ function instanceOf(e) {
1118
+ return e[uniffiTypeNameSymbol] === "Exception";
1369
1119
  }
1370
- return Object.freeze({
1371
- instanceOf,
1372
- Network: Network_,
1373
- Database: Database_,
1374
- InvalidMnemonic: InvalidMnemonic_,
1375
- InvalidAddress: InvalidAddress_,
1376
- InvalidInvoice: InvalidInvoice_,
1377
- InvalidPsbt: InvalidPsbt_,
1378
- InvalidTransaction: InvalidTransaction_,
1379
- InsufficientFunds: InsufficientFunds_,
1380
- NotFound: NotFound_,
1381
- ServerConnection: ServerConnection_,
1382
- Internal: Internal_,
1383
- OnchainWalletRequired: OnchainWalletRequired_,
1384
- InvalidVtxoId: InvalidVtxoId_,
1385
- ServerPubkeyChanged: ServerPubkeyChanged_
1386
- });
1120
+ return {
1121
+ Inner,
1122
+ instanceOf
1123
+ };
1387
1124
  })();
1388
1125
 
1126
+ // Union type for Exception error type.
1127
+
1389
1128
  /**
1390
- * Error types that can occur when using the Bark wallet FFI
1129
+ * The single error type surfaced across the Bark FFI.
1130
+ *
1131
+ * It is a thin, single-variant wrapper around [`anyhow::Error`]. uniffi error
1132
+ * types must be enums (callback interfaces require `ConvertError`, which
1133
+ * objects cannot provide), and `flat_error` tells uniffi to carry only the
1134
+ * `Display` string across the boundary — so the rich anyhow context collapses
1135
+ * to a single message on the foreign side.
1391
1136
  */
1392
1137
 
1393
- // FfiConverter for enum BarkError
1394
- const FfiConverterTypeBarkError = (() => {
1395
- const ordinalConverter = FfiConverterInt32;
1396
- class FFIConverter extends AbstractFfiConverterByteArray {
1138
+ const FfiConverterTypeError = (() => {
1139
+ const intConverter = FfiConverterInt32;
1140
+ class FfiConverter extends AbstractFfiConverterByteArray {
1397
1141
  read(from) {
1398
- switch (ordinalConverter.read(from)) {
1142
+ switch (intConverter.read(from)) {
1399
1143
  case 1:
1400
- return new BarkError.Network({
1401
- errorMessage: FfiConverterString.read(from)
1402
- });
1403
- case 2:
1404
- return new BarkError.Database({
1405
- errorMessage: FfiConverterString.read(from)
1406
- });
1407
- case 3:
1408
- return new BarkError.InvalidMnemonic({
1409
- errorMessage: FfiConverterString.read(from)
1410
- });
1411
- case 4:
1412
- return new BarkError.InvalidAddress({
1413
- errorMessage: FfiConverterString.read(from)
1414
- });
1415
- case 5:
1416
- return new BarkError.InvalidInvoice({
1417
- errorMessage: FfiConverterString.read(from)
1418
- });
1419
- case 6:
1420
- return new BarkError.InvalidPsbt({
1421
- errorMessage: FfiConverterString.read(from)
1422
- });
1423
- case 7:
1424
- return new BarkError.InvalidTransaction({
1425
- errorMessage: FfiConverterString.read(from)
1426
- });
1427
- case 8:
1428
- return new BarkError.InsufficientFunds({
1429
- errorMessage: FfiConverterString.read(from)
1430
- });
1431
- case 9:
1432
- return new BarkError.NotFound({
1433
- errorMessage: FfiConverterString.read(from)
1434
- });
1435
- case 10:
1436
- return new BarkError.ServerConnection({
1437
- errorMessage: FfiConverterString.read(from)
1438
- });
1439
- case 11:
1440
- return new BarkError.Internal({
1441
- errorMessage: FfiConverterString.read(from)
1442
- });
1443
- case 12:
1444
- return new BarkError.OnchainWalletRequired({
1445
- errorMessage: FfiConverterString.read(from)
1446
- });
1447
- case 13:
1448
- return new BarkError.InvalidVtxoId({
1449
- errorMessage: FfiConverterString.read(from)
1450
- });
1451
- case 14:
1452
- return new BarkError.ServerPubkeyChanged({
1453
- errorMessage: FfiConverterString.read(from)
1454
- });
1144
+ return new Exception.Inner(FfiConverterString.read(from));
1455
1145
  default:
1456
1146
  throw new UniffiInternalError.UnexpectedEnumCase();
1457
1147
  }
1458
1148
  }
1459
1149
  write(value, into) {
1460
- switch (value.tag) {
1461
- case BarkError_Tags.Network:
1462
- {
1463
- ordinalConverter.write(1, into);
1464
- const inner = value.inner;
1465
- FfiConverterString.write(inner.errorMessage, into);
1466
- return;
1467
- }
1468
- case BarkError_Tags.Database:
1469
- {
1470
- ordinalConverter.write(2, into);
1471
- const inner = value.inner;
1472
- FfiConverterString.write(inner.errorMessage, into);
1473
- return;
1474
- }
1475
- case BarkError_Tags.InvalidMnemonic:
1476
- {
1477
- ordinalConverter.write(3, into);
1478
- const inner = value.inner;
1479
- FfiConverterString.write(inner.errorMessage, into);
1480
- return;
1481
- }
1482
- case BarkError_Tags.InvalidAddress:
1483
- {
1484
- ordinalConverter.write(4, into);
1485
- const inner = value.inner;
1486
- FfiConverterString.write(inner.errorMessage, into);
1487
- return;
1488
- }
1489
- case BarkError_Tags.InvalidInvoice:
1490
- {
1491
- ordinalConverter.write(5, into);
1492
- const inner = value.inner;
1493
- FfiConverterString.write(inner.errorMessage, into);
1494
- return;
1495
- }
1496
- case BarkError_Tags.InvalidPsbt:
1497
- {
1498
- ordinalConverter.write(6, into);
1499
- const inner = value.inner;
1500
- FfiConverterString.write(inner.errorMessage, into);
1501
- return;
1502
- }
1503
- case BarkError_Tags.InvalidTransaction:
1504
- {
1505
- ordinalConverter.write(7, into);
1506
- const inner = value.inner;
1507
- FfiConverterString.write(inner.errorMessage, into);
1508
- return;
1509
- }
1510
- case BarkError_Tags.InsufficientFunds:
1511
- {
1512
- ordinalConverter.write(8, into);
1513
- const inner = value.inner;
1514
- FfiConverterString.write(inner.errorMessage, into);
1515
- return;
1516
- }
1517
- case BarkError_Tags.NotFound:
1518
- {
1519
- ordinalConverter.write(9, into);
1520
- const inner = value.inner;
1521
- FfiConverterString.write(inner.errorMessage, into);
1522
- return;
1523
- }
1524
- case BarkError_Tags.ServerConnection:
1525
- {
1526
- ordinalConverter.write(10, into);
1527
- const inner = value.inner;
1528
- FfiConverterString.write(inner.errorMessage, into);
1529
- return;
1530
- }
1531
- case BarkError_Tags.Internal:
1532
- {
1533
- ordinalConverter.write(11, into);
1534
- const inner = value.inner;
1535
- FfiConverterString.write(inner.errorMessage, into);
1536
- return;
1537
- }
1538
- case BarkError_Tags.OnchainWalletRequired:
1539
- {
1540
- ordinalConverter.write(12, into);
1541
- const inner = value.inner;
1542
- FfiConverterString.write(inner.errorMessage, into);
1543
- return;
1544
- }
1545
- case BarkError_Tags.InvalidVtxoId:
1546
- {
1547
- ordinalConverter.write(13, into);
1548
- const inner = value.inner;
1549
- FfiConverterString.write(inner.errorMessage, into);
1550
- return;
1551
- }
1552
- case BarkError_Tags.ServerPubkeyChanged:
1553
- {
1554
- ordinalConverter.write(14, into);
1555
- const inner = value.inner;
1556
- FfiConverterString.write(inner.errorMessage, into);
1557
- return;
1558
- }
1559
- default:
1560
- // Throwing from here means that BarkError_Tags hasn't matched an ordinal.
1561
- throw new UniffiInternalError.UnexpectedEnumCase();
1562
- }
1150
+ const obj = value;
1151
+ const index = obj[variantOrdinalSymbol];
1152
+ intConverter.write(index, into);
1563
1153
  }
1564
1154
  allocationSize(value) {
1565
- switch (value.tag) {
1566
- case BarkError_Tags.Network:
1567
- {
1568
- const inner = value.inner;
1569
- let size = ordinalConverter.allocationSize(1);
1570
- size += FfiConverterString.allocationSize(inner.errorMessage);
1571
- return size;
1572
- }
1573
- case BarkError_Tags.Database:
1574
- {
1575
- const inner = value.inner;
1576
- let size = ordinalConverter.allocationSize(2);
1577
- size += FfiConverterString.allocationSize(inner.errorMessage);
1578
- return size;
1579
- }
1580
- case BarkError_Tags.InvalidMnemonic:
1581
- {
1582
- const inner = value.inner;
1583
- let size = ordinalConverter.allocationSize(3);
1584
- size += FfiConverterString.allocationSize(inner.errorMessage);
1585
- return size;
1586
- }
1587
- case BarkError_Tags.InvalidAddress:
1588
- {
1589
- const inner = value.inner;
1590
- let size = ordinalConverter.allocationSize(4);
1591
- size += FfiConverterString.allocationSize(inner.errorMessage);
1592
- return size;
1593
- }
1594
- case BarkError_Tags.InvalidInvoice:
1595
- {
1596
- const inner = value.inner;
1597
- let size = ordinalConverter.allocationSize(5);
1598
- size += FfiConverterString.allocationSize(inner.errorMessage);
1599
- return size;
1600
- }
1601
- case BarkError_Tags.InvalidPsbt:
1602
- {
1603
- const inner = value.inner;
1604
- let size = ordinalConverter.allocationSize(6);
1605
- size += FfiConverterString.allocationSize(inner.errorMessage);
1606
- return size;
1607
- }
1608
- case BarkError_Tags.InvalidTransaction:
1609
- {
1610
- const inner = value.inner;
1611
- let size = ordinalConverter.allocationSize(7);
1612
- size += FfiConverterString.allocationSize(inner.errorMessage);
1613
- return size;
1614
- }
1615
- case BarkError_Tags.InsufficientFunds:
1616
- {
1617
- const inner = value.inner;
1618
- let size = ordinalConverter.allocationSize(8);
1619
- size += FfiConverterString.allocationSize(inner.errorMessage);
1620
- return size;
1621
- }
1622
- case BarkError_Tags.NotFound:
1623
- {
1624
- const inner = value.inner;
1625
- let size = ordinalConverter.allocationSize(9);
1626
- size += FfiConverterString.allocationSize(inner.errorMessage);
1627
- return size;
1628
- }
1629
- case BarkError_Tags.ServerConnection:
1630
- {
1631
- const inner = value.inner;
1632
- let size = ordinalConverter.allocationSize(10);
1633
- size += FfiConverterString.allocationSize(inner.errorMessage);
1634
- return size;
1635
- }
1636
- case BarkError_Tags.Internal:
1637
- {
1638
- const inner = value.inner;
1639
- let size = ordinalConverter.allocationSize(11);
1640
- size += FfiConverterString.allocationSize(inner.errorMessage);
1641
- return size;
1642
- }
1643
- case BarkError_Tags.OnchainWalletRequired:
1644
- {
1645
- const inner = value.inner;
1646
- let size = ordinalConverter.allocationSize(12);
1647
- size += FfiConverterString.allocationSize(inner.errorMessage);
1648
- return size;
1649
- }
1650
- case BarkError_Tags.InvalidVtxoId:
1651
- {
1652
- const inner = value.inner;
1653
- let size = ordinalConverter.allocationSize(13);
1654
- size += FfiConverterString.allocationSize(inner.errorMessage);
1655
- return size;
1656
- }
1657
- case BarkError_Tags.ServerPubkeyChanged:
1658
- {
1659
- const inner = value.inner;
1660
- let size = ordinalConverter.allocationSize(14);
1661
- size += FfiConverterString.allocationSize(inner.errorMessage);
1662
- return size;
1663
- }
1664
- default:
1665
- throw new UniffiInternalError.UnexpectedEnumCase();
1666
- }
1155
+ return intConverter.allocationSize(0);
1667
1156
  }
1668
1157
  }
1669
- return new FFIConverter();
1158
+ return new FfiConverter();
1670
1159
  })();
1671
1160
 
1672
1161
  // Enum: LightningSendStatus
@@ -2235,7 +1724,7 @@ export class CustomOnchainWalletCallbacksImpl extends UniffiAbstractObject {
2235
1724
  * Get the wallet balance in satoshis
2236
1725
  */
2237
1726
  getBalance() /*throws*/{
2238
- return FfiConverterUInt64.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
1727
+ return FfiConverterUInt64.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
2239
1728
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_balance(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), callStatus);
2240
1729
  }, /*liftString:*/FfiConverterString.lift));
2241
1730
  }
@@ -2251,7 +1740,7 @@ export class CustomOnchainWalletCallbacksImpl extends UniffiAbstractObject {
2251
1740
  * Base64-encoded PSBT
2252
1741
  */
2253
1742
  prepareTx(destinations, feeRateSatPerVb) /*throws*/{
2254
- return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
1743
+ return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
2255
1744
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_prepare_tx(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterArrayTypeDestination.lower(destinations), FfiConverterUInt64.lower(feeRateSatPerVb), callStatus);
2256
1745
  }, /*liftString:*/FfiConverterString.lift));
2257
1746
  }
@@ -2267,7 +1756,7 @@ export class CustomOnchainWalletCallbacksImpl extends UniffiAbstractObject {
2267
1756
  * Base64-encoded PSBT
2268
1757
  */
2269
1758
  prepareDrainTx(address, feeRateSatPerVb) /*throws*/{
2270
- return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
1759
+ return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
2271
1760
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_prepare_drain_tx(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterString.lower(address), FfiConverterUInt64.lower(feeRateSatPerVb), callStatus);
2272
1761
  }, /*liftString:*/FfiConverterString.lift));
2273
1762
  }
@@ -2282,7 +1771,7 @@ export class CustomOnchainWalletCallbacksImpl extends UniffiAbstractObject {
2282
1771
  * Base64-encoded fully signed PSBT (all witnesses filled in)
2283
1772
  */
2284
1773
  finishPsbt(psbtBase64) /*throws*/{
2285
- return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
1774
+ return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
2286
1775
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_finish_psbt(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterString.lower(psbtBase64), callStatus);
2287
1776
  }, /*liftString:*/FfiConverterString.lift));
2288
1777
  }
@@ -2297,7 +1786,7 @@ export class CustomOnchainWalletCallbacksImpl extends UniffiAbstractObject {
2297
1786
  * Hex-encoded transaction, or null if not found
2298
1787
  */
2299
1788
  getWalletTx(txid) /*throws*/{
2300
- return FfiConverterOptionalString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
1789
+ return FfiConverterOptionalString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
2301
1790
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_wallet_tx(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterString.lower(txid), callStatus);
2302
1791
  }, /*liftString:*/FfiConverterString.lift));
2303
1792
  }
@@ -2312,7 +1801,7 @@ export class CustomOnchainWalletCallbacksImpl extends UniffiAbstractObject {
2312
1801
  * Block reference with height and hash, or null if unconfirmed
2313
1802
  */
2314
1803
  getWalletTxConfirmedBlock(txid) /*throws*/{
2315
- return FfiConverterOptionalTypeBlockRef.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
1804
+ return FfiConverterOptionalTypeBlockRef.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
2316
1805
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterString.lower(txid), callStatus);
2317
1806
  }, /*liftString:*/FfiConverterString.lift));
2318
1807
  }
@@ -2327,7 +1816,7 @@ export class CustomOnchainWalletCallbacksImpl extends UniffiAbstractObject {
2327
1816
  * Hex-encoded spending transaction, or null if unspent
2328
1817
  */
2329
1818
  getSpendingTx(outpoint) /*throws*/{
2330
- return FfiConverterOptionalString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
1819
+ return FfiConverterOptionalString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
2331
1820
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_spending_tx(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterTypeOutPoint.lower(outpoint), callStatus);
2332
1821
  }, /*liftString:*/FfiConverterString.lift));
2333
1822
  }
@@ -2342,7 +1831,7 @@ export class CustomOnchainWalletCallbacksImpl extends UniffiAbstractObject {
2342
1831
  * Hex-encoded signed CPFP transaction
2343
1832
  */
2344
1833
  makeSignedP2aCpfp(params) /*throws*/{
2345
- return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
1834
+ return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
2346
1835
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_make_signed_p2a_cpfp(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterTypeCpfpParams.lower(params), callStatus);
2347
1836
  }, /*liftString:*/FfiConverterString.lift));
2348
1837
  }
@@ -2354,11 +1843,25 @@ export class CustomOnchainWalletCallbacksImpl extends UniffiAbstractObject {
2354
1843
  * * `tx_hex` - Hex-encoded transaction
2355
1844
  */
2356
1845
  storeSignedP2aCpfp(txHex) /*throws*/{
2357
- uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
1846
+ uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
2358
1847
  nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_store_signed_p2a_cpfp(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterString.lower(txHex), callStatus);
2359
1848
  }, /*liftString:*/FfiConverterString.lift);
2360
1849
  }
2361
1850
 
1851
+ /**
1852
+ * Sync the wallet with the chain.
1853
+ *
1854
+ * Called by Bark (e.g. the background daemon) to ask the wallet to refresh
1855
+ * its view of the chain before reading balances or building transactions.
1856
+ * Implementations bring their own chain backend up to date — Bark's chain
1857
+ * source is intentionally not passed across the FFI boundary.
1858
+ */
1859
+ sync() /*throws*/{
1860
+ uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
1861
+ nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_sync(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), callStatus);
1862
+ }, /*liftString:*/FfiConverterString.lift);
1863
+ }
1864
+
2362
1865
  /**
2363
1866
  * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
2364
1867
  */
@@ -2430,7 +1933,7 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks = {
2430
1933
  const uniffiHandleError = (code, errBuf) => {
2431
1934
  UniffiResult.writeError(uniffiResult, code, errBuf);
2432
1935
  };
2433
- uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
1936
+ uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/Exception.instanceOf, /*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError), /*lowerString:*/FfiConverterString.lower);
2434
1937
  return uniffiResult;
2435
1938
  },
2436
1939
  prepareTx: (uniffiHandle, destinations, feeRateSatPerVb) => {
@@ -2445,7 +1948,7 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks = {
2445
1948
  const uniffiHandleError = (code, errBuf) => {
2446
1949
  UniffiResult.writeError(uniffiResult, code, errBuf);
2447
1950
  };
2448
- uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
1951
+ uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/Exception.instanceOf, /*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError), /*lowerString:*/FfiConverterString.lower);
2449
1952
  return uniffiResult;
2450
1953
  },
2451
1954
  prepareDrainTx: (uniffiHandle, address, feeRateSatPerVb) => {
@@ -2460,7 +1963,7 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks = {
2460
1963
  const uniffiHandleError = (code, errBuf) => {
2461
1964
  UniffiResult.writeError(uniffiResult, code, errBuf);
2462
1965
  };
2463
- uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
1966
+ uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/Exception.instanceOf, /*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError), /*lowerString:*/FfiConverterString.lower);
2464
1967
  return uniffiResult;
2465
1968
  },
2466
1969
  finishPsbt: (uniffiHandle, psbtBase64) => {
@@ -2475,7 +1978,7 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks = {
2475
1978
  const uniffiHandleError = (code, errBuf) => {
2476
1979
  UniffiResult.writeError(uniffiResult, code, errBuf);
2477
1980
  };
2478
- uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
1981
+ uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/Exception.instanceOf, /*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError), /*lowerString:*/FfiConverterString.lower);
2479
1982
  return uniffiResult;
2480
1983
  },
2481
1984
  getWalletTx: (uniffiHandle, txid) => {
@@ -2490,7 +1993,7 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks = {
2490
1993
  const uniffiHandleError = (code, errBuf) => {
2491
1994
  UniffiResult.writeError(uniffiResult, code, errBuf);
2492
1995
  };
2493
- uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
1996
+ uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/Exception.instanceOf, /*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError), /*lowerString:*/FfiConverterString.lower);
2494
1997
  return uniffiResult;
2495
1998
  },
2496
1999
  getWalletTxConfirmedBlock: (uniffiHandle, txid) => {
@@ -2505,7 +2008,7 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks = {
2505
2008
  const uniffiHandleError = (code, errBuf) => {
2506
2009
  UniffiResult.writeError(uniffiResult, code, errBuf);
2507
2010
  };
2508
- uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
2011
+ uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/Exception.instanceOf, /*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError), /*lowerString:*/FfiConverterString.lower);
2509
2012
  return uniffiResult;
2510
2013
  },
2511
2014
  getSpendingTx: (uniffiHandle, outpoint) => {
@@ -2520,7 +2023,7 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks = {
2520
2023
  const uniffiHandleError = (code, errBuf) => {
2521
2024
  UniffiResult.writeError(uniffiResult, code, errBuf);
2522
2025
  };
2523
- uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
2026
+ uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/Exception.instanceOf, /*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError), /*lowerString:*/FfiConverterString.lower);
2524
2027
  return uniffiResult;
2525
2028
  },
2526
2029
  makeSignedP2aCpfp: (uniffiHandle, params) => {
@@ -2535,7 +2038,7 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks = {
2535
2038
  const uniffiHandleError = (code, errBuf) => {
2536
2039
  UniffiResult.writeError(uniffiResult, code, errBuf);
2537
2040
  };
2538
- uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
2041
+ uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/Exception.instanceOf, /*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError), /*lowerString:*/FfiConverterString.lower);
2539
2042
  return uniffiResult;
2540
2043
  },
2541
2044
  storeSignedP2aCpfp: (uniffiHandle, txHex) => {
@@ -2548,7 +2051,20 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks = {
2548
2051
  const uniffiHandleError = (code, errBuf) => {
2549
2052
  UniffiResult.writeError(uniffiResult, code, errBuf);
2550
2053
  };
2551
- uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
2054
+ uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/Exception.instanceOf, /*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError), /*lowerString:*/FfiConverterString.lower);
2055
+ return uniffiResult;
2056
+ },
2057
+ sync: uniffiHandle => {
2058
+ const uniffiMakeCall = () => {
2059
+ const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
2060
+ return jsCallback.sync();
2061
+ };
2062
+ const uniffiResult = UniffiResult.ready();
2063
+ const uniffiHandleSuccess = obj => {};
2064
+ const uniffiHandleError = (code, errBuf) => {
2065
+ UniffiResult.writeError(uniffiResult, code, errBuf);
2066
+ };
2067
+ uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/Exception.instanceOf, /*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError), /*lowerString:*/FfiConverterString.lower);
2552
2068
  return uniffiResult;
2553
2069
  },
2554
2070
  uniffiFree: uniffiHandle => {
@@ -2629,7 +2145,7 @@ export class NotificationHolder extends UniffiAbstractObject {
2629
2145
  * (cancellation only affects the current wait; the stream lives on)
2630
2146
  * - The wallet's notification source was shut down permanently
2631
2147
  *
2632
- * Returns `Err(BarkError::Internal)` if called concurrently on the same holder.
2148
+ * Returns an error if called concurrently on the same holder.
2633
2149
  *
2634
2150
  * After a cancellation this method can be called again normally — the
2635
2151
  * underlying `NotificationStream` is preserved in `self.stream` and a
@@ -2640,7 +2156,7 @@ export class NotificationHolder extends UniffiAbstractObject {
2640
2156
  try {
2641
2157
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2642
2158
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_notificationholder_next_notification(uniffiTypeNotificationHolderObjectFactory.clonePointer(this));
2643
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalTypeWalletNotification.lift.bind(FfiConverterOptionalTypeWalletNotification), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2159
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalTypeWalletNotification.lift.bind(FfiConverterOptionalTypeWalletNotification), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
2644
2160
  } catch (__error) {
2645
2161
  if (uniffiIsDebug && __error instanceof Error) {
2646
2162
  __error.stack = __stack;
@@ -2729,7 +2245,7 @@ export class OnchainWallet extends UniffiAbstractObject {
2729
2245
  * Callback-backed wallet for foreign-language implementations.
2730
2246
  */
2731
2247
  static custom(callbacks) /*throws*/{
2732
- return FfiConverterTypeOnchainWallet.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2248
+ return FfiConverterTypeOnchainWallet.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
2733
2249
  return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_onchainwallet_custom(FfiConverterTypeCustomOnchainWalletCallbacks.lower(callbacks), callStatus);
2734
2250
  }, /*liftString:*/FfiConverterString.lift));
2735
2251
  }
@@ -2737,12 +2253,12 @@ export class OnchainWallet extends UniffiAbstractObject {
2737
2253
  /**
2738
2254
  * BDK-backed wallet. Opens the shared sqlite cache.
2739
2255
  */
2740
- static async default_(mnemonic, config, datadir, asyncOpts_) /*throws*/{
2256
+ static async default_(network, mnemonic, config, datadir, asyncOpts_) /*throws*/{
2741
2257
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
2742
2258
  try {
2743
2259
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2744
- return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_onchainwallet_default(FfiConverterString.lower(mnemonic), FfiConverterTypeConfig.lower(config), FfiConverterString.lower(datadir));
2745
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterTypeOnchainWallet.lift.bind(FfiConverterTypeOnchainWallet), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2260
+ return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_onchainwallet_default(FfiConverterTypeNetwork.lower(network), FfiConverterString.lower(mnemonic), FfiConverterTypeConfig.lower(config), FfiConverterString.lower(datadir));
2261
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterTypeOnchainWallet.lift.bind(FfiConverterTypeOnchainWallet), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
2746
2262
  } catch (__error) {
2747
2263
  if (uniffiIsDebug && __error instanceof Error) {
2748
2264
  __error.stack = __stack;
@@ -2755,7 +2271,7 @@ export class OnchainWallet extends UniffiAbstractObject {
2755
2271
  try {
2756
2272
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2757
2273
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_onchainwallet_balance(uniffiTypeOnchainWalletObjectFactory.clonePointer(this));
2758
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeOnchainBalance.lift.bind(FfiConverterTypeOnchainBalance), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2274
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeOnchainBalance.lift.bind(FfiConverterTypeOnchainBalance), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
2759
2275
  } catch (__error) {
2760
2276
  if (uniffiIsDebug && __error instanceof Error) {
2761
2277
  __error.stack = __stack;
@@ -2768,7 +2284,7 @@ export class OnchainWallet extends UniffiAbstractObject {
2768
2284
  try {
2769
2285
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2770
2286
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_onchainwallet_new_address(uniffiTypeOnchainWalletObjectFactory.clonePointer(this));
2771
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2287
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
2772
2288
  } catch (__error) {
2773
2289
  if (uniffiIsDebug && __error instanceof Error) {
2774
2290
  __error.stack = __stack;
@@ -2781,7 +2297,7 @@ export class OnchainWallet extends UniffiAbstractObject {
2781
2297
  try {
2782
2298
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2783
2299
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_onchainwallet_send(uniffiTypeOnchainWalletObjectFactory.clonePointer(this), FfiConverterString.lower(address), FfiConverterUInt64.lower(amountSats), FfiConverterUInt64.lower(feeRateSatPerVb));
2784
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2300
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
2785
2301
  } catch (__error) {
2786
2302
  if (uniffiIsDebug && __error instanceof Error) {
2787
2303
  __error.stack = __stack;
@@ -2794,7 +2310,7 @@ export class OnchainWallet extends UniffiAbstractObject {
2794
2310
  try {
2795
2311
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2796
2312
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_onchainwallet_sync(uniffiTypeOnchainWalletObjectFactory.clonePointer(this));
2797
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterUInt64.lift.bind(FfiConverterUInt64), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2313
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterUInt64.lift.bind(FfiConverterUInt64), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
2798
2314
  } catch (__error) {
2799
2315
  if (uniffiIsDebug && __error instanceof Error) {
2800
2316
  __error.stack = __stack;
@@ -2890,68 +2406,22 @@ export class Wallet extends UniffiAbstractObject {
2890
2406
  this[pointerLiteralSymbol] = pointer;
2891
2407
  this[destructorGuardSymbol] = uniffiTypeWalletObjectFactory.bless(pointer);
2892
2408
  }
2893
- static async create(mnemonic, config, datadir, forceRescan, asyncOpts_) /*throws*/{
2894
- const __stack = uniffiIsDebug ? new Error().stack : undefined;
2895
- try {
2896
- return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2897
- return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_wallet_create(FfiConverterString.lower(mnemonic), FfiConverterTypeConfig.lower(config), FfiConverterString.lower(datadir), FfiConverterBool.lower(forceRescan));
2898
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterTypeWallet.lift.bind(FfiConverterTypeWallet), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2899
- } catch (__error) {
2900
- if (uniffiIsDebug && __error instanceof Error) {
2901
- __error.stack = __stack;
2902
- }
2903
- throw __error;
2904
- }
2905
- }
2906
- static async createWithOnchain(mnemonic, config, datadir, onchainWallet, forceRescan, asyncOpts_) /*throws*/{
2907
- const __stack = uniffiIsDebug ? new Error().stack : undefined;
2908
- try {
2909
- return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2910
- return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_wallet_create_with_onchain(FfiConverterString.lower(mnemonic), FfiConverterTypeConfig.lower(config), FfiConverterString.lower(datadir), FfiConverterTypeOnchainWallet.lower(onchainWallet), FfiConverterBool.lower(forceRescan));
2911
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterTypeWallet.lift.bind(FfiConverterTypeWallet), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2912
- } catch (__error) {
2913
- if (uniffiIsDebug && __error instanceof Error) {
2914
- __error.stack = __stack;
2915
- }
2916
- throw __error;
2917
- }
2918
- }
2919
- static async open(mnemonic, config, datadir, asyncOpts_) /*throws*/{
2920
- const __stack = uniffiIsDebug ? new Error().stack : undefined;
2921
- try {
2922
- return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2923
- return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_wallet_open(FfiConverterString.lower(mnemonic), FfiConverterTypeConfig.lower(config), FfiConverterString.lower(datadir));
2924
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterTypeWallet.lift.bind(FfiConverterTypeWallet), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2925
- } catch (__error) {
2926
- if (uniffiIsDebug && __error instanceof Error) {
2927
- __error.stack = __stack;
2928
- }
2929
- throw __error;
2930
- }
2931
- }
2932
2409
 
2933
2410
  /**
2934
- * Open an existing wallet and start running the daemon.
2411
+ * Open a wallet (creating it first if `create_if_not_exists` is set),
2412
+ * mirroring [`bark::Wallet::open`]: a single entry point with everything
2413
+ * else optional (see [`WalletOpenArgs`]). For the explicit
2414
+ * initialize-but-don't-open path, use the top-level `create_wallet`.
2415
+ *
2416
+ * `mnemonic_or_seed` accepts either a BIP-39 mnemonic phrase or a 64-byte
2417
+ * hex-encoded seed.
2935
2418
  */
2936
- static async openWithDaemon(mnemonic, config, datadir, onchainWallet, asyncOpts_) /*throws*/{
2419
+ static async open(network, mnemonicOrSeed, config, args, asyncOpts_) /*throws*/{
2937
2420
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
2938
2421
  try {
2939
2422
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2940
- return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_wallet_open_with_daemon(FfiConverterString.lower(mnemonic), FfiConverterTypeConfig.lower(config), FfiConverterString.lower(datadir), FfiConverterOptionalTypeOnchainWallet.lower(onchainWallet));
2941
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterTypeWallet.lift.bind(FfiConverterTypeWallet), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2942
- } catch (__error) {
2943
- if (uniffiIsDebug && __error instanceof Error) {
2944
- __error.stack = __stack;
2945
- }
2946
- throw __error;
2947
- }
2948
- }
2949
- static async openWithOnchain(mnemonic, config, datadir, onchainWallet, asyncOpts_) /*throws*/{
2950
- const __stack = uniffiIsDebug ? new Error().stack : undefined;
2951
- try {
2952
- return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2953
- return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_wallet_open_with_onchain(FfiConverterString.lower(mnemonic), FfiConverterTypeConfig.lower(config), FfiConverterString.lower(datadir), FfiConverterTypeOnchainWallet.lower(onchainWallet));
2954
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterTypeWallet.lift.bind(FfiConverterTypeWallet), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2423
+ return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_wallet_open(FfiConverterTypeNetwork.lower(network), FfiConverterString.lower(mnemonicOrSeed), FfiConverterTypeConfig.lower(config), FfiConverterTypeWalletOpenArgs.lower(args));
2424
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterTypeWallet.lift.bind(FfiConverterTypeWallet), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
2955
2425
  } catch (__error) {
2956
2426
  if (uniffiIsDebug && __error instanceof Error) {
2957
2427
  __error.stack = __stack;
@@ -2964,7 +2434,7 @@ export class Wallet extends UniffiAbstractObject {
2964
2434
  try {
2965
2435
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2966
2436
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_all_exits_claimable_at_height(uniffiTypeWalletObjectFactory.clonePointer(this));
2967
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalUInt32.lift.bind(FfiConverterOptionalUInt32), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2437
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalUInt32.lift.bind(FfiConverterOptionalUInt32), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
2968
2438
  } catch (__error) {
2969
2439
  if (uniffiIsDebug && __error instanceof Error) {
2970
2440
  __error.stack = __stack;
@@ -2977,7 +2447,7 @@ export class Wallet extends UniffiAbstractObject {
2977
2447
  try {
2978
2448
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2979
2449
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_all_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this));
2980
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2450
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
2981
2451
  } catch (__error) {
2982
2452
  if (uniffiIsDebug && __error instanceof Error) {
2983
2453
  __error.stack = __stack;
@@ -2990,7 +2460,7 @@ export class Wallet extends UniffiAbstractObject {
2990
2460
  try {
2991
2461
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2992
2462
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_allow_lightning_send_to_exit(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash));
2993
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2463
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
2994
2464
  } catch (__error) {
2995
2465
  if (uniffiIsDebug && __error instanceof Error) {
2996
2466
  __error.stack = __stack;
@@ -3016,7 +2486,7 @@ export class Wallet extends UniffiAbstractObject {
3016
2486
  try {
3017
2487
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3018
2488
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_attempt_lightning_receive_exit(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash));
3019
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2489
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3020
2490
  } catch (__error) {
3021
2491
  if (uniffiIsDebug && __error instanceof Error) {
3022
2492
  __error.stack = __stack;
@@ -3029,7 +2499,7 @@ export class Wallet extends UniffiAbstractObject {
3029
2499
  try {
3030
2500
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3031
2501
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_balance(uniffiTypeWalletObjectFactory.clonePointer(this));
3032
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeBalance.lift.bind(FfiConverterTypeBalance), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2502
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeBalance.lift.bind(FfiConverterTypeBalance), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3033
2503
  } catch (__error) {
3034
2504
  if (uniffiIsDebug && __error instanceof Error) {
3035
2505
  __error.stack = __stack;
@@ -3042,7 +2512,7 @@ export class Wallet extends UniffiAbstractObject {
3042
2512
  try {
3043
2513
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3044
2514
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_board_all(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterTypeOnchainWallet.lower(onchainWallet));
3045
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypePendingBoard.lift.bind(FfiConverterTypePendingBoard), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2515
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypePendingBoard.lift.bind(FfiConverterTypePendingBoard), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3046
2516
  } catch (__error) {
3047
2517
  if (uniffiIsDebug && __error instanceof Error) {
3048
2518
  __error.stack = __stack;
@@ -3055,7 +2525,7 @@ export class Wallet extends UniffiAbstractObject {
3055
2525
  try {
3056
2526
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3057
2527
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_board_amount(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterTypeOnchainWallet.lower(onchainWallet), FfiConverterUInt64.lower(amountSats));
3058
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypePendingBoard.lift.bind(FfiConverterTypePendingBoard), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2528
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypePendingBoard.lift.bind(FfiConverterTypePendingBoard), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3059
2529
  } catch (__error) {
3060
2530
  if (uniffiIsDebug && __error instanceof Error) {
3061
2531
  __error.stack = __stack;
@@ -3068,7 +2538,7 @@ export class Wallet extends UniffiAbstractObject {
3068
2538
  try {
3069
2539
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3070
2540
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterUInt64.lower(amountSats), FfiConverterOptionalString.lower(description));
3071
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeLightningInvoice.lift.bind(FfiConverterTypeLightningInvoice), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2541
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeLightningInvoice.lift.bind(FfiConverterTypeLightningInvoice), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3072
2542
  } catch (__error) {
3073
2543
  if (uniffiIsDebug && __error instanceof Error) {
3074
2544
  __error.stack = __stack;
@@ -3081,7 +2551,7 @@ export class Wallet extends UniffiAbstractObject {
3081
2551
  try {
3082
2552
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3083
2553
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_broadcast_tx(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(txHex));
3084
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2554
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3085
2555
  } catch (__error) {
3086
2556
  if (uniffiIsDebug && __error instanceof Error) {
3087
2557
  __error.stack = __stack;
@@ -3094,7 +2564,7 @@ export class Wallet extends UniffiAbstractObject {
3094
2564
  try {
3095
2565
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3096
2566
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_cancel_all_pending_rounds(uniffiTypeWalletObjectFactory.clonePointer(this));
3097
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2567
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3098
2568
  } catch (__error) {
3099
2569
  if (uniffiIsDebug && __error instanceof Error) {
3100
2570
  __error.stack = __stack;
@@ -3107,7 +2577,7 @@ export class Wallet extends UniffiAbstractObject {
3107
2577
  try {
3108
2578
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3109
2579
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_cancel_lightning_receive(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash));
3110
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2580
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3111
2581
  } catch (__error) {
3112
2582
  if (uniffiIsDebug && __error instanceof Error) {
3113
2583
  __error.stack = __stack;
@@ -3120,7 +2590,7 @@ export class Wallet extends UniffiAbstractObject {
3120
2590
  try {
3121
2591
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3122
2592
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_cancel_pending_round(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterUInt32.lower(roundId));
3123
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2593
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3124
2594
  } catch (__error) {
3125
2595
  if (uniffiIsDebug && __error instanceof Error) {
3126
2596
  __error.stack = __stack;
@@ -3128,12 +2598,12 @@ export class Wallet extends UniffiAbstractObject {
3128
2598
  throw __error;
3129
2599
  }
3130
2600
  }
3131
- async checkLightningPayment(paymentHash, wait, asyncOpts_) /*throws*/{
2601
+ async checkLightningPayment(paymentHash, wait = false, asyncOpts_) /*throws*/{
3132
2602
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
3133
2603
  try {
3134
2604
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3135
2605
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_check_lightning_payment(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash), FfiConverterBool.lower(wait));
3136
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeLightningSendStatus.lift.bind(FfiConverterTypeLightningSendStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2606
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeLightningSendStatus.lift.bind(FfiConverterTypeLightningSendStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3137
2607
  } catch (__error) {
3138
2608
  if (uniffiIsDebug && __error instanceof Error) {
3139
2609
  __error.stack = __stack;
@@ -3146,7 +2616,7 @@ export class Wallet extends UniffiAbstractObject {
3146
2616
  try {
3147
2617
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3148
2618
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_claimable_lightning_receive_balance_sats(uniffiTypeWalletObjectFactory.clonePointer(this));
3149
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterUInt64.lift.bind(FfiConverterUInt64), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2619
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterUInt64.lift.bind(FfiConverterUInt64), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3150
2620
  } catch (__error) {
3151
2621
  if (uniffiIsDebug && __error instanceof Error) {
3152
2622
  __error.stack = __stack;
@@ -3172,7 +2642,7 @@ export class Wallet extends UniffiAbstractObject {
3172
2642
  try {
3173
2643
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3174
2644
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_drain_exits(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterArrayString.lower(vtxoIds), FfiConverterString.lower(address), FfiConverterOptionalUInt64.lower(feeRateSatPerVb));
3175
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeExitClaimTransaction.lift.bind(FfiConverterTypeExitClaimTransaction), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2645
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeExitClaimTransaction.lift.bind(FfiConverterTypeExitClaimTransaction), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3176
2646
  } catch (__error) {
3177
2647
  if (uniffiIsDebug && __error instanceof Error) {
3178
2648
  __error.stack = __stack;
@@ -3185,7 +2655,7 @@ export class Wallet extends UniffiAbstractObject {
3185
2655
  try {
3186
2656
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3187
2657
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_arkoor_payment_fee(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterUInt64.lower(amountSats));
3188
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2658
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3189
2659
  } catch (__error) {
3190
2660
  if (uniffiIsDebug && __error instanceof Error) {
3191
2661
  __error.stack = __stack;
@@ -3198,7 +2668,7 @@ export class Wallet extends UniffiAbstractObject {
3198
2668
  try {
3199
2669
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3200
2670
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_board_fee(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterUInt64.lower(amountSats));
3201
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2671
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3202
2672
  } catch (__error) {
3203
2673
  if (uniffiIsDebug && __error instanceof Error) {
3204
2674
  __error.stack = __stack;
@@ -3211,7 +2681,7 @@ export class Wallet extends UniffiAbstractObject {
3211
2681
  try {
3212
2682
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3213
2683
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_lightning_receive_fee(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterUInt64.lower(amountSats));
3214
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2684
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3215
2685
  } catch (__error) {
3216
2686
  if (uniffiIsDebug && __error instanceof Error) {
3217
2687
  __error.stack = __stack;
@@ -3224,7 +2694,7 @@ export class Wallet extends UniffiAbstractObject {
3224
2694
  try {
3225
2695
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3226
2696
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_lightning_send_fee(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterUInt64.lower(amountSats));
3227
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2697
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3228
2698
  } catch (__error) {
3229
2699
  if (uniffiIsDebug && __error instanceof Error) {
3230
2700
  __error.stack = __stack;
@@ -3237,7 +2707,7 @@ export class Wallet extends UniffiAbstractObject {
3237
2707
  try {
3238
2708
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3239
2709
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_offboard_all_fee(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(address));
3240
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2710
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3241
2711
  } catch (__error) {
3242
2712
  if (uniffiIsDebug && __error instanceof Error) {
3243
2713
  __error.stack = __stack;
@@ -3250,7 +2720,7 @@ export class Wallet extends UniffiAbstractObject {
3250
2720
  try {
3251
2721
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3252
2722
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_offboard_fee(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(address), FfiConverterArrayString.lower(vtxoIds));
3253
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2723
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3254
2724
  } catch (__error) {
3255
2725
  if (uniffiIsDebug && __error instanceof Error) {
3256
2726
  __error.stack = __stack;
@@ -3263,7 +2733,7 @@ export class Wallet extends UniffiAbstractObject {
3263
2733
  try {
3264
2734
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3265
2735
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_refresh_fee(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterArrayString.lower(vtxoIds));
3266
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2736
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3267
2737
  } catch (__error) {
3268
2738
  if (uniffiIsDebug && __error instanceof Error) {
3269
2739
  __error.stack = __stack;
@@ -3276,7 +2746,7 @@ export class Wallet extends UniffiAbstractObject {
3276
2746
  try {
3277
2747
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3278
2748
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_send_onchain_fee(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(address), FfiConverterUInt64.lower(amountSats));
3279
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2749
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3280
2750
  } catch (__error) {
3281
2751
  if (uniffiIsDebug && __error instanceof Error) {
3282
2752
  __error.stack = __stack;
@@ -3294,7 +2764,7 @@ export class Wallet extends UniffiAbstractObject {
3294
2764
  try {
3295
2765
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3296
2766
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_get_exit_status(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(vtxoId), FfiConverterBool.lower(includeHistory), FfiConverterBool.lower(includeTransactions));
3297
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalTypeExitTransactionStatus.lift.bind(FfiConverterOptionalTypeExitTransactionStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2767
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalTypeExitTransactionStatus.lift.bind(FfiConverterOptionalTypeExitTransactionStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3298
2768
  } catch (__error) {
3299
2769
  if (uniffiIsDebug && __error instanceof Error) {
3300
2770
  __error.stack = __stack;
@@ -3307,7 +2777,7 @@ export class Wallet extends UniffiAbstractObject {
3307
2777
  try {
3308
2778
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3309
2779
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_get_exit_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this));
3310
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeExitVtxo.lift.bind(FfiConverterArrayTypeExitVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2780
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeExitVtxo.lift.bind(FfiConverterArrayTypeExitVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3311
2781
  } catch (__error) {
3312
2782
  if (uniffiIsDebug && __error instanceof Error) {
3313
2783
  __error.stack = __stack;
@@ -3320,7 +2790,7 @@ export class Wallet extends UniffiAbstractObject {
3320
2790
  try {
3321
2791
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3322
2792
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_get_expiring_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterUInt32.lower(thresholdBlocks));
3323
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2793
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3324
2794
  } catch (__error) {
3325
2795
  if (uniffiIsDebug && __error instanceof Error) {
3326
2796
  __error.stack = __stack;
@@ -3333,7 +2803,7 @@ export class Wallet extends UniffiAbstractObject {
3333
2803
  try {
3334
2804
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3335
2805
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_get_first_expiring_vtxo_blockheight(uniffiTypeWalletObjectFactory.clonePointer(this));
3336
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalUInt32.lift.bind(FfiConverterOptionalUInt32), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2806
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalUInt32.lift.bind(FfiConverterOptionalUInt32), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3337
2807
  } catch (__error) {
3338
2808
  if (uniffiIsDebug && __error instanceof Error) {
3339
2809
  __error.stack = __stack;
@@ -3346,7 +2816,7 @@ export class Wallet extends UniffiAbstractObject {
3346
2816
  try {
3347
2817
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3348
2818
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_get_next_required_refresh_blockheight(uniffiTypeWalletObjectFactory.clonePointer(this));
3349
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalUInt32.lift.bind(FfiConverterOptionalUInt32), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2819
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalUInt32.lift.bind(FfiConverterOptionalUInt32), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3350
2820
  } catch (__error) {
3351
2821
  if (uniffiIsDebug && __error instanceof Error) {
3352
2822
  __error.stack = __stack;
@@ -3359,7 +2829,7 @@ export class Wallet extends UniffiAbstractObject {
3359
2829
  try {
3360
2830
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3361
2831
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_get_vtxo_by_id(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(vtxoId));
3362
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeVtxo.lift.bind(FfiConverterTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2832
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeVtxo.lift.bind(FfiConverterTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3363
2833
  } catch (__error) {
3364
2834
  if (uniffiIsDebug && __error instanceof Error) {
3365
2835
  __error.stack = __stack;
@@ -3372,7 +2842,7 @@ export class Wallet extends UniffiAbstractObject {
3372
2842
  try {
3373
2843
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3374
2844
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_get_vtxos_to_refresh(uniffiTypeWalletObjectFactory.clonePointer(this));
3375
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2845
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3376
2846
  } catch (__error) {
3377
2847
  if (uniffiIsDebug && __error instanceof Error) {
3378
2848
  __error.stack = __stack;
@@ -3385,7 +2855,7 @@ export class Wallet extends UniffiAbstractObject {
3385
2855
  try {
3386
2856
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3387
2857
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_has_pending_exits(uniffiTypeWalletObjectFactory.clonePointer(this));
3388
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_i8, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_i8, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_i8, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_i8, /*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2858
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_i8, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_i8, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_i8, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_i8, /*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3389
2859
  } catch (__error) {
3390
2860
  if (uniffiIsDebug && __error instanceof Error) {
3391
2861
  __error.stack = __stack;
@@ -3398,7 +2868,7 @@ export class Wallet extends UniffiAbstractObject {
3398
2868
  try {
3399
2869
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3400
2870
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_history(uniffiTypeWalletObjectFactory.clonePointer(this));
3401
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeMovement.lift.bind(FfiConverterArrayTypeMovement), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2871
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeMovement.lift.bind(FfiConverterArrayTypeMovement), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3402
2872
  } catch (__error) {
3403
2873
  if (uniffiIsDebug && __error instanceof Error) {
3404
2874
  __error.stack = __stack;
@@ -3411,7 +2881,7 @@ export class Wallet extends UniffiAbstractObject {
3411
2881
  try {
3412
2882
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3413
2883
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_history_by_payment_method(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentMethodType), FfiConverterString.lower(paymentMethodValue));
3414
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeMovement.lift.bind(FfiConverterArrayTypeMovement), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2884
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeMovement.lift.bind(FfiConverterArrayTypeMovement), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3415
2885
  } catch (__error) {
3416
2886
  if (uniffiIsDebug && __error instanceof Error) {
3417
2887
  __error.stack = __stack;
@@ -3424,7 +2894,7 @@ export class Wallet extends UniffiAbstractObject {
3424
2894
  try {
3425
2895
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3426
2896
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_import_vtxo(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(vtxoBase64));
3427
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2897
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3428
2898
  } catch (__error) {
3429
2899
  if (uniffiIsDebug && __error instanceof Error) {
3430
2900
  __error.stack = __stack;
@@ -3437,7 +2907,7 @@ export class Wallet extends UniffiAbstractObject {
3437
2907
  try {
3438
2908
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3439
2909
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_is_invoice_paid(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash));
3440
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_i8, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_i8, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_i8, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_i8, /*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2910
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_i8, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_i8, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_i8, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_i8, /*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3441
2911
  } catch (__error) {
3442
2912
  if (uniffiIsDebug && __error instanceof Error) {
3443
2913
  __error.stack = __stack;
@@ -3450,7 +2920,7 @@ export class Wallet extends UniffiAbstractObject {
3450
2920
  try {
3451
2921
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3452
2922
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_lightning_receive_status(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash));
3453
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalTypeLightningReceive.lift.bind(FfiConverterOptionalTypeLightningReceive), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2923
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalTypeLightningReceive.lift.bind(FfiConverterOptionalTypeLightningReceive), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3454
2924
  } catch (__error) {
3455
2925
  if (uniffiIsDebug && __error instanceof Error) {
3456
2926
  __error.stack = __stack;
@@ -3463,7 +2933,7 @@ export class Wallet extends UniffiAbstractObject {
3463
2933
  try {
3464
2934
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3465
2935
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_lightning_send_state(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash));
3466
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeLightningSendStatus.lift.bind(FfiConverterTypeLightningSendStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2936
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeLightningSendStatus.lift.bind(FfiConverterTypeLightningSendStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3467
2937
  } catch (__error) {
3468
2938
  if (uniffiIsDebug && __error instanceof Error) {
3469
2939
  __error.stack = __stack;
@@ -3476,7 +2946,7 @@ export class Wallet extends UniffiAbstractObject {
3476
2946
  try {
3477
2947
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3478
2948
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_list_claimable_exits(uniffiTypeWalletObjectFactory.clonePointer(this));
3479
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeExitVtxo.lift.bind(FfiConverterArrayTypeExitVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2949
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeExitVtxo.lift.bind(FfiConverterArrayTypeExitVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3480
2950
  } catch (__error) {
3481
2951
  if (uniffiIsDebug && __error instanceof Error) {
3482
2952
  __error.stack = __stack;
@@ -3485,12 +2955,12 @@ export class Wallet extends UniffiAbstractObject {
3485
2955
  }
3486
2956
  }
3487
2957
  mailboxAuthorization() /*throws*/{
3488
- return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2958
+ return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
3489
2959
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_mailbox_authorization(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
3490
2960
  }, /*liftString:*/FfiConverterString.lift));
3491
2961
  }
3492
2962
  mailboxIdentifier() /*throws*/{
3493
- return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2963
+ return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
3494
2964
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_mailbox_identifier(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
3495
2965
  }, /*liftString:*/FfiConverterString.lift));
3496
2966
  }
@@ -3499,7 +2969,7 @@ export class Wallet extends UniffiAbstractObject {
3499
2969
  try {
3500
2970
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3501
2971
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance(uniffiTypeWalletObjectFactory.clonePointer(this));
3502
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2972
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3503
2973
  } catch (__error) {
3504
2974
  if (uniffiIsDebug && __error instanceof Error) {
3505
2975
  __error.stack = __stack;
@@ -3512,7 +2982,7 @@ export class Wallet extends UniffiAbstractObject {
3512
2982
  try {
3513
2983
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3514
2984
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance_delegated(uniffiTypeWalletObjectFactory.clonePointer(this));
3515
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2985
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3516
2986
  } catch (__error) {
3517
2987
  if (uniffiIsDebug && __error instanceof Error) {
3518
2988
  __error.stack = __stack;
@@ -3525,7 +2995,7 @@ export class Wallet extends UniffiAbstractObject {
3525
2995
  try {
3526
2996
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3527
2997
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance_refresh(uniffiTypeWalletObjectFactory.clonePointer(this));
3528
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalString.lift.bind(FfiConverterOptionalString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2998
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalString.lift.bind(FfiConverterOptionalString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3529
2999
  } catch (__error) {
3530
3000
  if (uniffiIsDebug && __error instanceof Error) {
3531
3001
  __error.stack = __stack;
@@ -3538,7 +3008,7 @@ export class Wallet extends UniffiAbstractObject {
3538
3008
  try {
3539
3009
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3540
3010
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterTypeOnchainWallet.lower(onchainWallet));
3541
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3011
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3542
3012
  } catch (__error) {
3543
3013
  if (uniffiIsDebug && __error instanceof Error) {
3544
3014
  __error.stack = __stack;
@@ -3551,20 +3021,7 @@ export class Wallet extends UniffiAbstractObject {
3551
3021
  try {
3552
3022
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3553
3023
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain_delegated(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterTypeOnchainWallet.lower(onchainWallet));
3554
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3555
- } catch (__error) {
3556
- if (uniffiIsDebug && __error instanceof Error) {
3557
- __error.stack = __stack;
3558
- }
3559
- throw __error;
3560
- }
3561
- }
3562
- async maybeScheduleMaintenanceRefresh(asyncOpts_) /*throws*/{
3563
- const __stack = uniffiIsDebug ? new Error().stack : undefined;
3564
- try {
3565
- return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3566
- return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_maybe_schedule_maintenance_refresh(uniffiTypeWalletObjectFactory.clonePointer(this));
3567
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalUInt32.lift.bind(FfiConverterOptionalUInt32), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3024
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3568
3025
  } catch (__error) {
3569
3026
  if (uniffiIsDebug && __error instanceof Error) {
3570
3027
  __error.stack = __stack;
@@ -3577,7 +3034,7 @@ export class Wallet extends UniffiAbstractObject {
3577
3034
  try {
3578
3035
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3579
3036
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_network(uniffiTypeWalletObjectFactory.clonePointer(this));
3580
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeNetwork.lift.bind(FfiConverterTypeNetwork), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3037
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeNetwork.lift.bind(FfiConverterTypeNetwork), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3581
3038
  } catch (__error) {
3582
3039
  if (uniffiIsDebug && __error instanceof Error) {
3583
3040
  __error.stack = __stack;
@@ -3590,7 +3047,7 @@ export class Wallet extends UniffiAbstractObject {
3590
3047
  try {
3591
3048
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3592
3049
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_new_address(uniffiTypeWalletObjectFactory.clonePointer(this));
3593
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3050
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3594
3051
  } catch (__error) {
3595
3052
  if (uniffiIsDebug && __error instanceof Error) {
3596
3053
  __error.stack = __stack;
@@ -3603,7 +3060,7 @@ export class Wallet extends UniffiAbstractObject {
3603
3060
  try {
3604
3061
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3605
3062
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_new_address_with_index(uniffiTypeWalletObjectFactory.clonePointer(this));
3606
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeAddressWithIndex.lift.bind(FfiConverterTypeAddressWithIndex), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3063
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeAddressWithIndex.lift.bind(FfiConverterTypeAddressWithIndex), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3607
3064
  } catch (__error) {
3608
3065
  if (uniffiIsDebug && __error instanceof Error) {
3609
3066
  __error.stack = __stack;
@@ -3616,7 +3073,7 @@ export class Wallet extends UniffiAbstractObject {
3616
3073
  try {
3617
3074
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3618
3075
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_next_round_start_time(uniffiTypeWalletObjectFactory.clonePointer(this));
3619
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterUInt64.lift.bind(FfiConverterUInt64), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3076
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterUInt64.lift.bind(FfiConverterUInt64), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3620
3077
  } catch (__error) {
3621
3078
  if (uniffiIsDebug && __error instanceof Error) {
3622
3079
  __error.stack = __stack;
@@ -3634,7 +3091,7 @@ export class Wallet extends UniffiAbstractObject {
3634
3091
  try {
3635
3092
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3636
3093
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_offboard_all(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(bitcoinAddress));
3637
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeOffboardResult.lift.bind(FfiConverterTypeOffboardResult), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3094
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeOffboardResult.lift.bind(FfiConverterTypeOffboardResult), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3638
3095
  } catch (__error) {
3639
3096
  if (uniffiIsDebug && __error instanceof Error) {
3640
3097
  __error.stack = __stack;
@@ -3647,7 +3104,7 @@ export class Wallet extends UniffiAbstractObject {
3647
3104
  try {
3648
3105
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3649
3106
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_offboard_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterArrayString.lower(vtxoIds), FfiConverterString.lower(bitcoinAddress));
3650
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3107
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3651
3108
  } catch (__error) {
3652
3109
  if (uniffiIsDebug && __error instanceof Error) {
3653
3110
  __error.stack = __stack;
@@ -3659,12 +3116,12 @@ export class Wallet extends UniffiAbstractObject {
3659
3116
  /**
3660
3117
  * Pay to a Lightning Address (LNURL). UniFFI-only — lnurl-rs is not wasm-compatible.
3661
3118
  */
3662
- async payLightningAddress(lightningAddress, amountSats, comment, wait, asyncOpts_) /*throws*/{
3119
+ async payLightningAddress(lightningAddress, amountSats, comment, wait = false, asyncOpts_) /*throws*/{
3663
3120
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
3664
3121
  try {
3665
3122
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3666
3123
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_address(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(lightningAddress), FfiConverterUInt64.lower(amountSats), FfiConverterOptionalString.lower(comment), FfiConverterBool.lower(wait));
3667
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeLightningSendStatus.lift.bind(FfiConverterTypeLightningSendStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3124
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeLightningSendStatus.lift.bind(FfiConverterTypeLightningSendStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3668
3125
  } catch (__error) {
3669
3126
  if (uniffiIsDebug && __error instanceof Error) {
3670
3127
  __error.stack = __stack;
@@ -3672,12 +3129,12 @@ export class Wallet extends UniffiAbstractObject {
3672
3129
  throw __error;
3673
3130
  }
3674
3131
  }
3675
- async payLightningInvoice(invoice, amountSats, wait, asyncOpts_) /*throws*/{
3132
+ async payLightningInvoice(invoice, amountSats, wait = false, asyncOpts_) /*throws*/{
3676
3133
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
3677
3134
  try {
3678
3135
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3679
3136
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_invoice(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(invoice), FfiConverterOptionalUInt64.lower(amountSats), FfiConverterBool.lower(wait));
3680
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeLightningSendStatus.lift.bind(FfiConverterTypeLightningSendStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3137
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeLightningSendStatus.lift.bind(FfiConverterTypeLightningSendStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3681
3138
  } catch (__error) {
3682
3139
  if (uniffiIsDebug && __error instanceof Error) {
3683
3140
  __error.stack = __stack;
@@ -3685,12 +3142,32 @@ export class Wallet extends UniffiAbstractObject {
3685
3142
  throw __error;
3686
3143
  }
3687
3144
  }
3688
- async payLightningOffer(offer, amountSats, wait, asyncOpts_) /*throws*/{
3145
+ async payLightningOffer(offer, amountSats, wait = false, asyncOpts_) /*throws*/{
3689
3146
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
3690
3147
  try {
3691
3148
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3692
3149
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_offer(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(offer), FfiConverterOptionalUInt64.lower(amountSats), FfiConverterBool.lower(wait));
3693
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeLightningSendStatus.lift.bind(FfiConverterTypeLightningSendStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3150
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeLightningSendStatus.lift.bind(FfiConverterTypeLightningSendStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3151
+ } catch (__error) {
3152
+ if (uniffiIsDebug && __error instanceof Error) {
3153
+ __error.stack = __stack;
3154
+ }
3155
+ throw __error;
3156
+ }
3157
+ }
3158
+
3159
+ /**
3160
+ * Pay a raw LNURL-pay link (`lnurl1…`). UniFFI-only — lnurl-rs is not wasm-compatible.
3161
+ *
3162
+ * Resolves the LNURL-pay endpoint to a BOLT11 invoice and pays it. Errors
3163
+ * if the link decodes to a non-pay LNURL (auth, withdraw, channel).
3164
+ */
3165
+ async payLnurl(lnurl, amountSats, comment, wait = false, asyncOpts_) /*throws*/{
3166
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3167
+ try {
3168
+ return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3169
+ return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lnurl(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(lnurl), FfiConverterUInt64.lower(amountSats), FfiConverterOptionalString.lower(comment), FfiConverterBool.lower(wait));
3170
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeLightningSendStatus.lift.bind(FfiConverterTypeLightningSendStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3694
3171
  } catch (__error) {
3695
3172
  if (uniffiIsDebug && __error instanceof Error) {
3696
3173
  __error.stack = __stack;
@@ -3703,7 +3180,7 @@ export class Wallet extends UniffiAbstractObject {
3703
3180
  try {
3704
3181
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3705
3182
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_peek_address(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterUInt32.lower(index));
3706
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3183
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3707
3184
  } catch (__error) {
3708
3185
  if (uniffiIsDebug && __error instanceof Error) {
3709
3186
  __error.stack = __stack;
@@ -3716,7 +3193,7 @@ export class Wallet extends UniffiAbstractObject {
3716
3193
  try {
3717
3194
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3718
3195
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_board_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this));
3719
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3196
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3720
3197
  } catch (__error) {
3721
3198
  if (uniffiIsDebug && __error instanceof Error) {
3722
3199
  __error.stack = __stack;
@@ -3729,7 +3206,7 @@ export class Wallet extends UniffiAbstractObject {
3729
3206
  try {
3730
3207
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3731
3208
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_boards(uniffiTypeWalletObjectFactory.clonePointer(this));
3732
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypePendingBoard.lift.bind(FfiConverterArrayTypePendingBoard), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3209
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypePendingBoard.lift.bind(FfiConverterArrayTypePendingBoard), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3733
3210
  } catch (__error) {
3734
3211
  if (uniffiIsDebug && __error instanceof Error) {
3735
3212
  __error.stack = __stack;
@@ -3742,7 +3219,7 @@ export class Wallet extends UniffiAbstractObject {
3742
3219
  try {
3743
3220
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3744
3221
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_exits_total_sats(uniffiTypeWalletObjectFactory.clonePointer(this));
3745
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterUInt64.lift.bind(FfiConverterUInt64), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3222
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterUInt64.lift.bind(FfiConverterUInt64), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3746
3223
  } catch (__error) {
3747
3224
  if (uniffiIsDebug && __error instanceof Error) {
3748
3225
  __error.stack = __stack;
@@ -3755,7 +3232,7 @@ export class Wallet extends UniffiAbstractObject {
3755
3232
  try {
3756
3233
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3757
3234
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_lightning_receives(uniffiTypeWalletObjectFactory.clonePointer(this));
3758
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeLightningReceive.lift.bind(FfiConverterArrayTypeLightningReceive), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3235
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeLightningReceive.lift.bind(FfiConverterArrayTypeLightningReceive), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3759
3236
  } catch (__error) {
3760
3237
  if (uniffiIsDebug && __error instanceof Error) {
3761
3238
  __error.stack = __stack;
@@ -3768,7 +3245,7 @@ export class Wallet extends UniffiAbstractObject {
3768
3245
  try {
3769
3246
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3770
3247
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_lightning_send_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this));
3771
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3248
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3772
3249
  } catch (__error) {
3773
3250
  if (uniffiIsDebug && __error instanceof Error) {
3774
3251
  __error.stack = __stack;
@@ -3781,7 +3258,7 @@ export class Wallet extends UniffiAbstractObject {
3781
3258
  try {
3782
3259
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3783
3260
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_lightning_sends(uniffiTypeWalletObjectFactory.clonePointer(this));
3784
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeLightningSend.lift.bind(FfiConverterArrayTypeLightningSend), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3261
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeLightningSend.lift.bind(FfiConverterArrayTypeLightningSend), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3785
3262
  } catch (__error) {
3786
3263
  if (uniffiIsDebug && __error instanceof Error) {
3787
3264
  __error.stack = __stack;
@@ -3794,7 +3271,7 @@ export class Wallet extends UniffiAbstractObject {
3794
3271
  try {
3795
3272
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3796
3273
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_round_input_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this));
3797
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3274
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3798
3275
  } catch (__error) {
3799
3276
  if (uniffiIsDebug && __error instanceof Error) {
3800
3277
  __error.stack = __stack;
@@ -3807,7 +3284,7 @@ export class Wallet extends UniffiAbstractObject {
3807
3284
  try {
3808
3285
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3809
3286
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_round_states(uniffiTypeWalletObjectFactory.clonePointer(this));
3810
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeRoundState.lift.bind(FfiConverterArrayTypeRoundState), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3287
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeRoundState.lift.bind(FfiConverterArrayTypeRoundState), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3811
3288
  } catch (__error) {
3812
3289
  if (uniffiIsDebug && __error instanceof Error) {
3813
3290
  __error.stack = __stack;
@@ -3820,7 +3297,7 @@ export class Wallet extends UniffiAbstractObject {
3820
3297
  try {
3821
3298
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3822
3299
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_progress_exits(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterTypeOnchainWallet.lower(onchainWallet), FfiConverterOptionalUInt64.lower(feeRateSatPerVb));
3823
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeExitProgressStatus.lift.bind(FfiConverterArrayTypeExitProgressStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3300
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeExitProgressStatus.lift.bind(FfiConverterArrayTypeExitProgressStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3824
3301
  } catch (__error) {
3825
3302
  if (uniffiIsDebug && __error instanceof Error) {
3826
3303
  __error.stack = __stack;
@@ -3833,7 +3310,7 @@ export class Wallet extends UniffiAbstractObject {
3833
3310
  try {
3834
3311
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3835
3312
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_progress_pending_rounds(uniffiTypeWalletObjectFactory.clonePointer(this));
3836
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3313
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3837
3314
  } catch (__error) {
3838
3315
  if (uniffiIsDebug && __error instanceof Error) {
3839
3316
  __error.stack = __stack;
@@ -3846,7 +3323,7 @@ export class Wallet extends UniffiAbstractObject {
3846
3323
  try {
3847
3324
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3848
3325
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_properties(uniffiTypeWalletObjectFactory.clonePointer(this));
3849
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeWalletProperties.lift.bind(FfiConverterTypeWalletProperties), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3326
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeWalletProperties.lift.bind(FfiConverterTypeWalletProperties), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3850
3327
  } catch (__error) {
3851
3328
  if (uniffiIsDebug && __error instanceof Error) {
3852
3329
  __error.stack = __stack;
@@ -3859,7 +3336,7 @@ export class Wallet extends UniffiAbstractObject {
3859
3336
  try {
3860
3337
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3861
3338
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_refresh_server(uniffiTypeWalletObjectFactory.clonePointer(this));
3862
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3339
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3863
3340
  } catch (__error) {
3864
3341
  if (uniffiIsDebug && __error instanceof Error) {
3865
3342
  __error.stack = __stack;
@@ -3872,7 +3349,7 @@ export class Wallet extends UniffiAbstractObject {
3872
3349
  try {
3873
3350
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3874
3351
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterArrayString.lower(vtxoIds));
3875
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalString.lift.bind(FfiConverterOptionalString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3352
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalString.lift.bind(FfiConverterOptionalString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3876
3353
  } catch (__error) {
3877
3354
  if (uniffiIsDebug && __error instanceof Error) {
3878
3355
  __error.stack = __stack;
@@ -3885,7 +3362,7 @@ export class Wallet extends UniffiAbstractObject {
3885
3362
  try {
3886
3363
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3887
3364
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos_delegated(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterArrayString.lower(vtxoIds));
3888
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalTypeRoundState.lift.bind(FfiConverterOptionalTypeRoundState), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3365
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalTypeRoundState.lift.bind(FfiConverterOptionalTypeRoundState), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3889
3366
  } catch (__error) {
3890
3367
  if (uniffiIsDebug && __error instanceof Error) {
3891
3368
  __error.stack = __stack;
@@ -3898,7 +3375,7 @@ export class Wallet extends UniffiAbstractObject {
3898
3375
  try {
3899
3376
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3900
3377
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_run_daemon(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterOptionalTypeOnchainWallet.lower(onchainWallet));
3901
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3378
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3902
3379
  } catch (__error) {
3903
3380
  if (uniffiIsDebug && __error instanceof Error) {
3904
3381
  __error.stack = __stack;
@@ -3911,7 +3388,7 @@ export class Wallet extends UniffiAbstractObject {
3911
3388
  try {
3912
3389
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3913
3390
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_send_arkoor_payment(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(arkAddress), FfiConverterUInt64.lower(amountSats));
3914
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3391
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3915
3392
  } catch (__error) {
3916
3393
  if (uniffiIsDebug && __error instanceof Error) {
3917
3394
  __error.stack = __stack;
@@ -3924,7 +3401,7 @@ export class Wallet extends UniffiAbstractObject {
3924
3401
  try {
3925
3402
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3926
3403
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_send_onchain(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(address), FfiConverterUInt64.lower(amountSats));
3927
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3404
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3928
3405
  } catch (__error) {
3929
3406
  if (uniffiIsDebug && __error instanceof Error) {
3930
3407
  __error.stack = __stack;
@@ -3937,7 +3414,7 @@ export class Wallet extends UniffiAbstractObject {
3937
3414
  try {
3938
3415
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3939
3416
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_sign_exit_claim_inputs(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(psbtBase64));
3940
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3417
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3941
3418
  } catch (__error) {
3942
3419
  if (uniffiIsDebug && __error instanceof Error) {
3943
3420
  __error.stack = __stack;
@@ -3950,7 +3427,7 @@ export class Wallet extends UniffiAbstractObject {
3950
3427
  try {
3951
3428
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3952
3429
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_spendable_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this));
3953
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3430
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3954
3431
  } catch (__error) {
3955
3432
  if (uniffiIsDebug && __error instanceof Error) {
3956
3433
  __error.stack = __stack;
@@ -3963,7 +3440,7 @@ export class Wallet extends UniffiAbstractObject {
3963
3440
  try {
3964
3441
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3965
3442
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_start_exit_for_entire_wallet(uniffiTypeWalletObjectFactory.clonePointer(this));
3966
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3443
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3967
3444
  } catch (__error) {
3968
3445
  if (uniffiIsDebug && __error instanceof Error) {
3969
3446
  __error.stack = __stack;
@@ -3976,7 +3453,7 @@ export class Wallet extends UniffiAbstractObject {
3976
3453
  try {
3977
3454
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3978
3455
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_start_exit_for_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterArrayString.lower(vtxoIds));
3979
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3456
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3980
3457
  } catch (__error) {
3981
3458
  if (uniffiIsDebug && __error instanceof Error) {
3982
3459
  __error.stack = __stack;
@@ -3989,7 +3466,7 @@ export class Wallet extends UniffiAbstractObject {
3989
3466
  try {
3990
3467
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3991
3468
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_stop_daemon(uniffiTypeWalletObjectFactory.clonePointer(this));
3992
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3469
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3993
3470
  } catch (__error) {
3994
3471
  if (uniffiIsDebug && __error instanceof Error) {
3995
3472
  __error.stack = __stack;
@@ -4002,7 +3479,7 @@ export class Wallet extends UniffiAbstractObject {
4002
3479
  try {
4003
3480
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
4004
3481
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_stuck_failed_lightning_sends(uniffiTypeWalletObjectFactory.clonePointer(this));
4005
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeLightningSend.lift.bind(FfiConverterArrayTypeLightningSend), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3482
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeLightningSend.lift.bind(FfiConverterArrayTypeLightningSend), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
4006
3483
  } catch (__error) {
4007
3484
  if (uniffiIsDebug && __error instanceof Error) {
4008
3485
  __error.stack = __stack;
@@ -4015,7 +3492,7 @@ export class Wallet extends UniffiAbstractObject {
4015
3492
  try {
4016
3493
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
4017
3494
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_sync(uniffiTypeWalletObjectFactory.clonePointer(this));
4018
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3495
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
4019
3496
  } catch (__error) {
4020
3497
  if (uniffiIsDebug && __error instanceof Error) {
4021
3498
  __error.stack = __stack;
@@ -4028,7 +3505,28 @@ export class Wallet extends UniffiAbstractObject {
4028
3505
  try {
4029
3506
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
4030
3507
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_sync_exits(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterTypeOnchainWallet.lower(onchainWallet));
4031
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3508
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3509
+ } catch (__error) {
3510
+ if (uniffiIsDebug && __error instanceof Error) {
3511
+ __error.stack = __stack;
3512
+ }
3513
+ throw __error;
3514
+ }
3515
+ }
3516
+
3517
+ /**
3518
+ * Scan for VTXOs that were force-exited on-chain without the user asking
3519
+ * and route them into the unilateral-exit flow so the funds can be claimed.
3520
+ *
3521
+ * This already runs automatically as part of [`Self::sync`]; call it
3522
+ * directly to trigger the scan on demand.
3523
+ */
3524
+ async syncForceExitedVtxos(asyncOpts_) /*throws*/{
3525
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3526
+ try {
3527
+ return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3528
+ return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_sync_force_exited_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this));
3529
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
4032
3530
  } catch (__error) {
4033
3531
  if (uniffiIsDebug && __error instanceof Error) {
4034
3532
  __error.stack = __stack;
@@ -4041,7 +3539,7 @@ export class Wallet extends UniffiAbstractObject {
4041
3539
  try {
4042
3540
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
4043
3541
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_sync_pending_boards(uniffiTypeWalletObjectFactory.clonePointer(this));
4044
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3542
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
4045
3543
  } catch (__error) {
4046
3544
  if (uniffiIsDebug && __error instanceof Error) {
4047
3545
  __error.stack = __stack;
@@ -4049,12 +3547,12 @@ export class Wallet extends UniffiAbstractObject {
4049
3547
  throw __error;
4050
3548
  }
4051
3549
  }
4052
- async tryClaimAllLightningReceives(wait, asyncOpts_) /*throws*/{
3550
+ async tryClaimAllLightningReceives(wait = false, asyncOpts_) /*throws*/{
4053
3551
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
4054
3552
  try {
4055
3553
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
4056
3554
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_try_claim_all_lightning_receives(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterBool.lower(wait));
4057
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeLightningReceive.lift.bind(FfiConverterArrayTypeLightningReceive), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3555
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeLightningReceive.lift.bind(FfiConverterArrayTypeLightningReceive), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
4058
3556
  } catch (__error) {
4059
3557
  if (uniffiIsDebug && __error instanceof Error) {
4060
3558
  __error.stack = __stack;
@@ -4062,12 +3560,12 @@ export class Wallet extends UniffiAbstractObject {
4062
3560
  throw __error;
4063
3561
  }
4064
3562
  }
4065
- async tryClaimLightningReceive(paymentHash, wait, asyncOpts_) /*throws*/{
3563
+ async tryClaimLightningReceive(paymentHash, wait = false, asyncOpts_) /*throws*/{
4066
3564
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
4067
3565
  try {
4068
3566
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
4069
3567
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_try_claim_lightning_receive(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash), FfiConverterBool.lower(wait));
4070
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3568
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
4071
3569
  } catch (__error) {
4072
3570
  if (uniffiIsDebug && __error instanceof Error) {
4073
3571
  __error.stack = __stack;
@@ -4080,7 +3578,7 @@ export class Wallet extends UniffiAbstractObject {
4080
3578
  try {
4081
3579
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
4082
3580
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_validate_arkoor_address(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(address));
4083
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_i8, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_i8, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_i8, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_i8, /*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3581
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_i8, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_i8, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_i8, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_i8, /*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
4084
3582
  } catch (__error) {
4085
3583
  if (uniffiIsDebug && __error instanceof Error) {
4086
3584
  __error.stack = __stack;
@@ -4093,7 +3591,7 @@ export class Wallet extends UniffiAbstractObject {
4093
3591
  try {
4094
3592
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
4095
3593
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this));
4096
- }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3594
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
4097
3595
  } catch (__error) {
4098
3596
  if (uniffiIsDebug && __error instanceof Error) {
4099
3597
  __error.stack = __stack;
@@ -4244,360 +3742,357 @@ function uniffiEnsureInitialized() {
4244
3742
  if (bindingsContractVersion !== scaffoldingContractVersion) {
4245
3743
  throw new UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion, bindingsContractVersion);
4246
3744
  }
4247
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_func_extract_tx_from_psbt() !== 16937) {
3745
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_func_extract_tx_from_psbt() !== 8893) {
4248
3746
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_extract_tx_from_psbt");
4249
3747
  }
4250
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_func_generate_mnemonic() !== 10284) {
3748
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_func_generate_mnemonic() !== 65033) {
4251
3749
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_generate_mnemonic");
4252
3750
  }
4253
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_func_validate_ark_address() !== 6717) {
3751
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_func_validate_ark_address() !== 43084) {
4254
3752
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_validate_ark_address");
4255
3753
  }
4256
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_func_validate_mnemonic() !== 2618) {
3754
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_func_validate_mnemonic() !== 33507) {
4257
3755
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_validate_mnemonic");
4258
3756
  }
4259
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_func_set_logger() !== 376) {
3757
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_func_set_logger() !== 16477) {
4260
3758
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_set_logger");
4261
3759
  }
3760
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_func_init_wallet() !== 41495) {
3761
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_init_wallet");
3762
+ }
4262
3763
  if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_notificationholder_cancel_next_notification_wait() !== 45269) {
4263
3764
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_notificationholder_cancel_next_notification_wait");
4264
3765
  }
4265
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_notificationholder_next_notification() !== 320) {
3766
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_notificationholder_next_notification() !== 25507) {
4266
3767
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_notificationholder_next_notification");
4267
3768
  }
4268
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance() !== 38086) {
3769
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance() !== 34190) {
4269
3770
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance");
4270
3771
  }
4271
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx() !== 25200) {
3772
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx() !== 25026) {
4272
3773
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx");
4273
3774
  }
4274
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx() !== 29583) {
3775
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx() !== 53416) {
4275
3776
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx");
4276
3777
  }
4277
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_psbt() !== 10227) {
3778
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_psbt() !== 39878) {
4278
3779
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_psbt");
4279
3780
  }
4280
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx() !== 10525) {
3781
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx() !== 40848) {
4281
3782
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx");
4282
3783
  }
4283
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block() !== 57629) {
3784
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block() !== 20505) {
4284
3785
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block");
4285
3786
  }
4286
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx() !== 36118) {
3787
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx() !== 24154) {
4287
3788
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx");
4288
3789
  }
4289
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp() !== 38903) {
3790
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp() !== 58200) {
4290
3791
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp");
4291
3792
  }
4292
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp() !== 41506) {
3793
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp() !== 64815) {
4293
3794
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp");
4294
3795
  }
4295
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_barklogger_log() !== 8627) {
3796
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_sync() !== 29018) {
3797
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_sync");
3798
+ }
3799
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_barklogger_log() !== 30279) {
4296
3800
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_barklogger_log");
4297
3801
  }
4298
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_balance() !== 10540) {
3802
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_balance() !== 39213) {
4299
3803
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_balance");
4300
3804
  }
4301
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_new_address() !== 27918) {
3805
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_new_address() !== 7405) {
4302
3806
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_new_address");
4303
3807
  }
4304
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_send() !== 12509) {
3808
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_send() !== 30495) {
4305
3809
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_send");
4306
3810
  }
4307
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_sync() !== 38870) {
3811
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_sync() !== 4373) {
4308
3812
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_sync");
4309
3813
  }
4310
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_exits_claimable_at_height() !== 35095) {
3814
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_exits_claimable_at_height() !== 59034) {
4311
3815
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_all_exits_claimable_at_height");
4312
3816
  }
4313
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_vtxos() !== 38449) {
3817
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_vtxos() !== 62209) {
4314
3818
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_all_vtxos");
4315
3819
  }
4316
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_allow_lightning_send_to_exit() !== 44140) {
3820
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_allow_lightning_send_to_exit() !== 50764) {
4317
3821
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_allow_lightning_send_to_exit");
4318
3822
  }
4319
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_ark_info() !== 37357) {
3823
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_ark_info() !== 54388) {
4320
3824
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_ark_info");
4321
3825
  }
4322
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_attempt_lightning_receive_exit() !== 32877) {
3826
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_attempt_lightning_receive_exit() !== 62153) {
4323
3827
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_attempt_lightning_receive_exit");
4324
3828
  }
4325
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_balance() !== 26361) {
3829
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_balance() !== 37345) {
4326
3830
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_balance");
4327
3831
  }
4328
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_all() !== 26567) {
3832
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_all() !== 58611) {
4329
3833
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_board_all");
4330
3834
  }
4331
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_amount() !== 40800) {
3835
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_amount() !== 51838) {
4332
3836
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_board_amount");
4333
3837
  }
4334
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice() !== 18425) {
3838
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice() !== 43491) {
4335
3839
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice");
4336
3840
  }
4337
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_broadcast_tx() !== 48884) {
3841
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_broadcast_tx() !== 46367) {
4338
3842
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_broadcast_tx");
4339
3843
  }
4340
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds() !== 49283) {
3844
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds() !== 53455) {
4341
3845
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds");
4342
3846
  }
4343
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_lightning_receive() !== 7354) {
3847
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_lightning_receive() !== 49444) {
4344
3848
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_cancel_lightning_receive");
4345
3849
  }
4346
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round() !== 21817) {
3850
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round() !== 13433) {
4347
3851
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round");
4348
3852
  }
4349
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment() !== 33087) {
3853
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment() !== 50033) {
4350
3854
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment");
4351
3855
  }
4352
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_claimable_lightning_receive_balance_sats() !== 57824) {
3856
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_claimable_lightning_receive_balance_sats() !== 7743) {
4353
3857
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_claimable_lightning_receive_balance_sats");
4354
3858
  }
4355
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_config() !== 35661) {
3859
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_config() !== 23594) {
4356
3860
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_config");
4357
3861
  }
4358
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_drain_exits() !== 61748) {
3862
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_drain_exits() !== 47845) {
4359
3863
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_drain_exits");
4360
3864
  }
4361
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_arkoor_payment_fee() !== 54949) {
3865
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_arkoor_payment_fee() !== 35980) {
4362
3866
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_arkoor_payment_fee");
4363
3867
  }
4364
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee() !== 2350) {
3868
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee() !== 55967) {
4365
3869
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee");
4366
3870
  }
4367
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee() !== 35587) {
3871
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee() !== 33637) {
4368
3872
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee");
4369
3873
  }
4370
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee() !== 16837) {
3874
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee() !== 11290) {
4371
3875
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee");
4372
3876
  }
4373
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_all_fee() !== 18596) {
3877
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_all_fee() !== 24629) {
4374
3878
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_all_fee");
4375
3879
  }
4376
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee() !== 13570) {
3880
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee() !== 37073) {
4377
3881
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee");
4378
3882
  }
4379
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee() !== 51683) {
3883
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee() !== 18182) {
4380
3884
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee");
4381
3885
  }
4382
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_send_onchain_fee() !== 53725) {
3886
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_send_onchain_fee() !== 1027) {
4383
3887
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_send_onchain_fee");
4384
3888
  }
4385
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_fingerprint() !== 31048) {
3889
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_fingerprint() !== 51021) {
4386
3890
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_fingerprint");
4387
3891
  }
4388
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_status() !== 849) {
3892
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_status() !== 33054) {
4389
3893
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_exit_status");
4390
3894
  }
4391
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_vtxos() !== 62832) {
3895
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_vtxos() !== 20147) {
4392
3896
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_exit_vtxos");
4393
3897
  }
4394
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_expiring_vtxos() !== 62926) {
3898
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_expiring_vtxos() !== 39689) {
4395
3899
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_expiring_vtxos");
4396
3900
  }
4397
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_first_expiring_vtxo_blockheight() !== 9891) {
3901
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_first_expiring_vtxo_blockheight() !== 33536) {
4398
3902
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_first_expiring_vtxo_blockheight");
4399
3903
  }
4400
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_next_required_refresh_blockheight() !== 60321) {
3904
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_next_required_refresh_blockheight() !== 58530) {
4401
3905
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_next_required_refresh_blockheight");
4402
3906
  }
4403
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxo_by_id() !== 54348) {
3907
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxo_by_id() !== 34050) {
4404
3908
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_vtxo_by_id");
4405
3909
  }
4406
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxos_to_refresh() !== 56166) {
3910
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxos_to_refresh() !== 52553) {
4407
3911
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_vtxos_to_refresh");
4408
3912
  }
4409
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_has_pending_exits() !== 31064) {
3913
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_has_pending_exits() !== 19790) {
4410
3914
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_has_pending_exits");
4411
3915
  }
4412
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_history() !== 49526) {
3916
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_history() !== 10552) {
4413
3917
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_history");
4414
3918
  }
4415
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method() !== 49277) {
3919
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method() !== 11845) {
4416
3920
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method");
4417
3921
  }
4418
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_import_vtxo() !== 58528) {
3922
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_import_vtxo() !== 42571) {
4419
3923
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_import_vtxo");
4420
3924
  }
4421
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid() !== 43344) {
3925
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid() !== 31079) {
4422
3926
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid");
4423
3927
  }
4424
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status() !== 37213) {
3928
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status() !== 27695) {
4425
3929
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status");
4426
3930
  }
4427
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_send_state() !== 37487) {
3931
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_send_state() !== 5687) {
4428
3932
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_lightning_send_state");
4429
3933
  }
4430
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits() !== 46928) {
3934
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits() !== 58660) {
4431
3935
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits");
4432
3936
  }
4433
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization() !== 37256) {
3937
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization() !== 52372) {
4434
3938
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization");
4435
3939
  }
4436
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier() !== 4339) {
3940
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier() !== 15231) {
4437
3941
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier");
4438
3942
  }
4439
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance() !== 42287) {
3943
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance() !== 33161) {
4440
3944
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance");
4441
3945
  }
4442
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_delegated() !== 20659) {
3946
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_delegated() !== 31668) {
4443
3947
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance_delegated");
4444
3948
  }
4445
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh() !== 13823) {
3949
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh() !== 34548) {
4446
3950
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh");
4447
3951
  }
4448
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain() !== 41935) {
3952
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain() !== 16119) {
4449
3953
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain");
4450
3954
  }
4451
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated() !== 23897) {
3955
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated() !== 40766) {
4452
3956
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated");
4453
3957
  }
4454
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maybe_schedule_maintenance_refresh() !== 24944) {
4455
- throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maybe_schedule_maintenance_refresh");
4456
- }
4457
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_network() !== 28437) {
3958
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_network() !== 2007) {
4458
3959
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_network");
4459
3960
  }
4460
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address() !== 46889) {
3961
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address() !== 65478) {
4461
3962
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_new_address");
4462
3963
  }
4463
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address_with_index() !== 26065) {
3964
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address_with_index() !== 37344) {
4464
3965
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_new_address_with_index");
4465
3966
  }
4466
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_next_round_start_time() !== 18913) {
3967
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_next_round_start_time() !== 20748) {
4467
3968
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_next_round_start_time");
4468
3969
  }
4469
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_notifications() !== 4292) {
3970
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_notifications() !== 8597) {
4470
3971
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_notifications");
4471
3972
  }
4472
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_all() !== 33338) {
3973
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_all() !== 7986) {
4473
3974
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_offboard_all");
4474
3975
  }
4475
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos() !== 45323) {
3976
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos() !== 26775) {
4476
3977
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos");
4477
3978
  }
4478
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address() !== 2440) {
3979
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address() !== 19392) {
4479
3980
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address");
4480
3981
  }
4481
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice() !== 18714) {
3982
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice() !== 26921) {
4482
3983
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice");
4483
3984
  }
4484
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer() !== 31129) {
3985
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer() !== 25462) {
4485
3986
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer");
4486
3987
  }
4487
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_peek_address() !== 55042) {
3988
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lnurl() !== 25859) {
3989
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pay_lnurl");
3990
+ }
3991
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_peek_address() !== 31847) {
4488
3992
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_peek_address");
4489
3993
  }
4490
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos() !== 25647) {
3994
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos() !== 53566) {
4491
3995
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos");
4492
3996
  }
4493
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_boards() !== 41590) {
3997
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_boards() !== 61501) {
4494
3998
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_boards");
4495
3999
  }
4496
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_exits_total_sats() !== 8001) {
4000
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_exits_total_sats() !== 38418) {
4497
4001
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_exits_total_sats");
4498
4002
  }
4499
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_receives() !== 59673) {
4003
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_receives() !== 26676) {
4500
4004
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_lightning_receives");
4501
4005
  }
4502
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_send_vtxos() !== 43740) {
4006
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_send_vtxos() !== 62766) {
4503
4007
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_lightning_send_vtxos");
4504
4008
  }
4505
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_sends() !== 47848) {
4009
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_sends() !== 8847) {
4506
4010
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_lightning_sends");
4507
4011
  }
4508
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos() !== 21093) {
4012
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos() !== 54307) {
4509
4013
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos");
4510
4014
  }
4511
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_states() !== 3426) {
4015
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_states() !== 11480) {
4512
4016
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_round_states");
4513
4017
  }
4514
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_exits() !== 27512) {
4018
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_exits() !== 7089) {
4515
4019
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_progress_exits");
4516
4020
  }
4517
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_pending_rounds() !== 2915) {
4021
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_pending_rounds() !== 43537) {
4518
4022
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_progress_pending_rounds");
4519
4023
  }
4520
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_properties() !== 47133) {
4024
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_properties() !== 9773) {
4521
4025
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_properties");
4522
4026
  }
4523
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_server() !== 2646) {
4027
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_server() !== 41162) {
4524
4028
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_refresh_server");
4525
4029
  }
4526
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos() !== 18792) {
4030
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos() !== 52101) {
4527
4031
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos");
4528
4032
  }
4529
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated() !== 32568) {
4033
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated() !== 61476) {
4530
4034
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated");
4531
4035
  }
4532
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_run_daemon() !== 62932) {
4036
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_run_daemon() !== 3475) {
4533
4037
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_run_daemon");
4534
4038
  }
4535
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment() !== 50386) {
4039
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment() !== 46166) {
4536
4040
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment");
4537
4041
  }
4538
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_onchain() !== 38644) {
4042
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_onchain() !== 42570) {
4539
4043
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_send_onchain");
4540
4044
  }
4541
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sign_exit_claim_inputs() !== 53765) {
4045
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sign_exit_claim_inputs() !== 12930) {
4542
4046
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sign_exit_claim_inputs");
4543
4047
  }
4544
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_spendable_vtxos() !== 65142) {
4048
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_spendable_vtxos() !== 22755) {
4545
4049
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_spendable_vtxos");
4546
4050
  }
4547
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_entire_wallet() !== 31961) {
4051
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_entire_wallet() !== 6525) {
4548
4052
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_start_exit_for_entire_wallet");
4549
4053
  }
4550
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos() !== 34614) {
4054
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos() !== 56154) {
4551
4055
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos");
4552
4056
  }
4553
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_stop_daemon() !== 27848) {
4057
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_stop_daemon() !== 7109) {
4554
4058
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_stop_daemon");
4555
4059
  }
4556
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends() !== 51351) {
4060
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends() !== 31451) {
4557
4061
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends");
4558
4062
  }
4559
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync() !== 38360) {
4063
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync() !== 2151) {
4560
4064
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sync");
4561
4065
  }
4562
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_exits() !== 47734) {
4066
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_exits() !== 22078) {
4563
4067
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sync_exits");
4564
4068
  }
4565
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards() !== 49211) {
4069
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_force_exited_vtxos() !== 25363) {
4070
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sync_force_exited_vtxos");
4071
+ }
4072
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards() !== 63453) {
4566
4073
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards");
4567
4074
  }
4568
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives() !== 63130) {
4075
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives() !== 14560) {
4569
4076
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives");
4570
4077
  }
4571
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive() !== 9806) {
4078
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive() !== 45229) {
4572
4079
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive");
4573
4080
  }
4574
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address() !== 55064) {
4081
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address() !== 10861) {
4575
4082
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address");
4576
4083
  }
4577
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxos() !== 5883) {
4084
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxos() !== 33207) {
4578
4085
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_vtxos");
4579
4086
  }
4580
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_onchainwallet_custom() !== 1549) {
4087
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_onchainwallet_custom() !== 33645) {
4581
4088
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_onchainwallet_custom");
4582
4089
  }
4583
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_onchainwallet_default() !== 3877) {
4090
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_onchainwallet_default() !== 61714) {
4584
4091
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_onchainwallet_default");
4585
4092
  }
4586
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_create() !== 60393) {
4587
- throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_wallet_create");
4588
- }
4589
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_create_with_onchain() !== 55243) {
4590
- throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_wallet_create_with_onchain");
4591
- }
4592
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open() !== 36564) {
4093
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open() !== 37541) {
4593
4094
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_wallet_open");
4594
4095
  }
4595
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open_with_daemon() !== 9668) {
4596
- throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_wallet_open_with_daemon");
4597
- }
4598
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open_with_onchain() !== 39500) {
4599
- throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_wallet_open_with_onchain");
4600
- }
4601
4096
  uniffiCallbackInterfaceBarkLogger.register();
4602
4097
  uniffiCallbackInterfaceCustomOnchainWalletCallbacks.register();
4603
4098
  }
@@ -4607,13 +4102,13 @@ export default Object.freeze({
4607
4102
  FfiConverterTypeAddressWithIndex,
4608
4103
  FfiConverterTypeArkInfo,
4609
4104
  FfiConverterTypeBalance,
4610
- FfiConverterTypeBarkError,
4611
4105
  FfiConverterTypeBarkLogger,
4612
4106
  FfiConverterTypeBlockRef,
4613
4107
  FfiConverterTypeConfig,
4614
4108
  FfiConverterTypeCpfpParams,
4615
4109
  FfiConverterTypeCustomOnchainWalletCallbacks,
4616
4110
  FfiConverterTypeDestination,
4111
+ FfiConverterTypeError,
4617
4112
  FfiConverterTypeExitClaimTransaction,
4618
4113
  FfiConverterTypeExitProgressStatus,
4619
4114
  FfiConverterTypeExitTransactionStatus,
@@ -4636,6 +4131,7 @@ export default Object.freeze({
4636
4131
  FfiConverterTypeVtxo,
4637
4132
  FfiConverterTypeWallet,
4638
4133
  FfiConverterTypeWalletNotification,
4134
+ FfiConverterTypeWalletOpenArgs,
4639
4135
  FfiConverterTypeWalletProperties
4640
4136
  }
4641
4137
  });