@secondts/bark-react-native 0.2.0-beta.2 → 0.3.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.
Files changed (38) hide show
  1. package/README.md +2 -2
  2. package/cpp/generated/bark.cpp +1885 -1182
  3. package/cpp/generated/bark.hpp +63 -0
  4. package/lib/commonjs/WalletNotifications.js +82 -0
  5. package/lib/commonjs/WalletNotifications.js.map +1 -0
  6. package/lib/commonjs/generated/bark-ffi.js.map +1 -1
  7. package/lib/commonjs/generated/bark.js +1540 -442
  8. package/lib/commonjs/generated/bark.js.map +1 -1
  9. package/lib/commonjs/index.js +13 -1
  10. package/lib/commonjs/index.js.map +1 -1
  11. package/lib/module/WalletNotifications.js +77 -0
  12. package/lib/module/WalletNotifications.js.map +1 -0
  13. package/lib/module/generated/bark-ffi.js.map +1 -1
  14. package/lib/module/generated/bark.js +1539 -442
  15. package/lib/module/generated/bark.js.map +1 -1
  16. package/lib/module/index.js +3 -0
  17. package/lib/module/index.js.map +1 -1
  18. package/lib/typescript/commonjs/src/WalletNotifications.d.ts +41 -0
  19. package/lib/typescript/commonjs/src/WalletNotifications.d.ts.map +1 -0
  20. package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts +147 -84
  21. package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts.map +1 -1
  22. package/lib/typescript/commonjs/src/generated/bark.d.ts +822 -185
  23. package/lib/typescript/commonjs/src/generated/bark.d.ts.map +1 -1
  24. package/lib/typescript/commonjs/src/index.d.ts +1 -0
  25. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  26. package/lib/typescript/module/src/WalletNotifications.d.ts +41 -0
  27. package/lib/typescript/module/src/WalletNotifications.d.ts.map +1 -0
  28. package/lib/typescript/module/src/generated/bark-ffi.d.ts +147 -84
  29. package/lib/typescript/module/src/generated/bark-ffi.d.ts.map +1 -1
  30. package/lib/typescript/module/src/generated/bark.d.ts +822 -185
  31. package/lib/typescript/module/src/generated/bark.d.ts.map +1 -1
  32. package/lib/typescript/module/src/index.d.ts +1 -0
  33. package/lib/typescript/module/src/index.d.ts.map +1 -1
  34. package/package.json +4 -4
  35. package/src/WalletNotifications.ts +86 -0
  36. package/src/generated/bark-ffi.ts +305 -253
  37. package/src/generated/bark.ts +3946 -1581
  38. package/src/index.tsx +3 -0
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = exports.WalletProperties = exports.Wallet = exports.Vtxo = exports.RoundState = exports.PendingBoard = exports.OutPoint = exports.OnchainWallet = exports.OnchainBalance = exports.OffboardResult = exports.Network = exports.Movement = exports.LightningSend = exports.LightningReceive = exports.LightningInvoice = exports.ExitVtxo = exports.ExitTransactionStatus = exports.ExitProgressStatus = exports.ExitClaimTransaction = exports.Destination = exports.CpfpParams = exports.Config = exports.BlockRef = exports.BarkError_Tags = exports.BarkError = exports.Balance = exports.ArkInfo = exports.AddressWithIndex = void 0;
6
+ exports.default = exports.WalletProperties = exports.WalletNotification_Tags = exports.WalletNotification = exports.Wallet = exports.Vtxo = exports.RoundState = exports.PendingBoard = exports.OutPoint = exports.OnchainWallet = exports.OnchainBalance = exports.OffboardResult = exports.NotificationHolder = exports.Network = exports.Movement = exports.LightningSend = exports.LightningReceive = exports.LightningInvoice = exports.FeeEstimate = exports.ExitVtxo = exports.ExitTransactionStatus = exports.ExitProgressStatus = exports.ExitClaimTransaction = exports.Destination = exports.CpfpParams = exports.Config = exports.BlockRef = exports.BarkError_Tags = exports.BarkError = exports.Balance = exports.ArkInfo = exports.AddressWithIndex = void 0;
7
7
  exports.extractTxFromPsbt = extractTxFromPsbt;
8
8
  exports.generateMnemonic = generateMnemonic;
9
9
  exports.validateArkAddress = validateArkAddress;
@@ -480,7 +480,9 @@ const FfiConverterTypeConfig = (() => {
480
480
  vtxoExitMargin: FfiConverterOptionalUInt16.read(from),
481
481
  htlcRecvClaimDelta: FfiConverterOptionalUInt16.read(from),
482
482
  fallbackFeeRate: FfiConverterOptionalUInt64.read(from),
483
- roundTxRequiredConfirmations: FfiConverterOptionalUInt32.read(from)
483
+ roundTxRequiredConfirmations: FfiConverterOptionalUInt32.read(from),
484
+ daemonFastSyncIntervalSecs: FfiConverterOptionalUInt64.read(from),
485
+ daemonSlowSyncIntervalSecs: FfiConverterOptionalUInt64.read(from)
484
486
  };
485
487
  }
486
488
  write(value, into) {
@@ -496,9 +498,11 @@ const FfiConverterTypeConfig = (() => {
496
498
  FfiConverterOptionalUInt16.write(value.htlcRecvClaimDelta, into);
497
499
  FfiConverterOptionalUInt64.write(value.fallbackFeeRate, into);
498
500
  FfiConverterOptionalUInt32.write(value.roundTxRequiredConfirmations, into);
501
+ FfiConverterOptionalUInt64.write(value.daemonFastSyncIntervalSecs, into);
502
+ FfiConverterOptionalUInt64.write(value.daemonSlowSyncIntervalSecs, into);
499
503
  }
500
504
  allocationSize(value) {
501
- return FfiConverterString.allocationSize(value.serverAddress) + 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);
505
+ return FfiConverterString.allocationSize(value.serverAddress) + 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.daemonFastSyncIntervalSecs) + FfiConverterOptionalUInt64.allocationSize(value.daemonSlowSyncIntervalSecs);
502
506
  }
503
507
  }
504
508
  return new FFIConverter();
@@ -806,6 +810,58 @@ const FfiConverterTypeExitVtxo = (() => {
806
810
  return new FFIConverter();
807
811
  })();
808
812
 
813
+ /**
814
+ * Result of a fee estimation
815
+ */
816
+
817
+ /**
818
+ * Generated factory for {@link FeeEstimate} record objects.
819
+ */
820
+ const FeeEstimate = exports.FeeEstimate = (() => {
821
+ const defaults = () => ({});
822
+ const create = (() => {
823
+ return (0, _uniffiBindgenReactNative.uniffiCreateRecord)(defaults);
824
+ })();
825
+ return Object.freeze({
826
+ /**
827
+ * Create a frozen instance of {@link FeeEstimate}, with defaults specified
828
+ * in Rust, in the {@link bark} crate.
829
+ */
830
+ create,
831
+ /**
832
+ * Create a frozen instance of {@link FeeEstimate}, with defaults specified
833
+ * in Rust, in the {@link bark} crate.
834
+ */
835
+ new: create,
836
+ /**
837
+ * Defaults specified in the {@link bark} crate.
838
+ */
839
+ defaults: () => Object.freeze(defaults())
840
+ });
841
+ })();
842
+ const FfiConverterTypeFeeEstimate = (() => {
843
+ class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray {
844
+ read(from) {
845
+ return {
846
+ grossAmountSats: _uniffiBindgenReactNative.FfiConverterUInt64.read(from),
847
+ feeSats: _uniffiBindgenReactNative.FfiConverterUInt64.read(from),
848
+ netAmountSats: _uniffiBindgenReactNative.FfiConverterUInt64.read(from),
849
+ vtxosSpent: FfiConverterArrayString.read(from)
850
+ };
851
+ }
852
+ write(value, into) {
853
+ _uniffiBindgenReactNative.FfiConverterUInt64.write(value.grossAmountSats, into);
854
+ _uniffiBindgenReactNative.FfiConverterUInt64.write(value.feeSats, into);
855
+ _uniffiBindgenReactNative.FfiConverterUInt64.write(value.netAmountSats, into);
856
+ FfiConverterArrayString.write(value.vtxosSpent, into);
857
+ }
858
+ allocationSize(value) {
859
+ return _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.grossAmountSats) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.feeSats) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.netAmountSats) + FfiConverterArrayString.allocationSize(value.vtxosSpent);
860
+ }
861
+ }
862
+ return new FFIConverter();
863
+ })();
864
+
809
865
  /**
810
866
  * Result of creating a BOLT11 invoice
811
867
  */
@@ -2097,6 +2153,291 @@ const FfiConverterTypeNetwork = (() => {
2097
2153
  return new FFIConverter();
2098
2154
  })();
2099
2155
 
2156
+ // Enum: WalletNotification
2157
+ let WalletNotification_Tags = exports.WalletNotification_Tags = /*#__PURE__*/function (WalletNotification_Tags) {
2158
+ WalletNotification_Tags["MovementCreated"] = "MovementCreated";
2159
+ WalletNotification_Tags["MovementUpdated"] = "MovementUpdated";
2160
+ WalletNotification_Tags["ChannelLagging"] = "ChannelLagging";
2161
+ return WalletNotification_Tags;
2162
+ }({});
2163
+ /**
2164
+ * A notification event from the wallet
2165
+ */
2166
+ const WalletNotification = exports.WalletNotification = (() => {
2167
+ /**
2168
+ * A new movement was created
2169
+ */
2170
+ class MovementCreated_ extends _uniffiBindgenReactNative.UniffiEnum {
2171
+ /**
2172
+ * @private
2173
+ * This field is private and should not be used, use `tag` instead.
2174
+ */
2175
+ [_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "WalletNotification";
2176
+ tag = WalletNotification_Tags.MovementCreated;
2177
+ constructor(inner) {
2178
+ super("WalletNotification", "MovementCreated");
2179
+ this.inner = Object.freeze(inner);
2180
+ }
2181
+ static new(inner) {
2182
+ return new MovementCreated_(inner);
2183
+ }
2184
+ static instanceOf(obj) {
2185
+ return obj.tag === WalletNotification_Tags.MovementCreated;
2186
+ }
2187
+ }
2188
+ /**
2189
+ * An existing movement was updated
2190
+ */
2191
+ class MovementUpdated_ extends _uniffiBindgenReactNative.UniffiEnum {
2192
+ /**
2193
+ * @private
2194
+ * This field is private and should not be used, use `tag` instead.
2195
+ */
2196
+ [_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "WalletNotification";
2197
+ tag = WalletNotification_Tags.MovementUpdated;
2198
+ constructor(inner) {
2199
+ super("WalletNotification", "MovementUpdated");
2200
+ this.inner = Object.freeze(inner);
2201
+ }
2202
+ static new(inner) {
2203
+ return new MovementUpdated_(inner);
2204
+ }
2205
+ static instanceOf(obj) {
2206
+ return obj.tag === WalletNotification_Tags.MovementUpdated;
2207
+ }
2208
+ }
2209
+ /**
2210
+ * The notification channel is lagging (some notifications were dropped)
2211
+ */
2212
+ class ChannelLagging_ extends _uniffiBindgenReactNative.UniffiEnum {
2213
+ /**
2214
+ * @private
2215
+ * This field is private and should not be used, use `tag` instead.
2216
+ */
2217
+ [_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "WalletNotification";
2218
+ tag = WalletNotification_Tags.ChannelLagging;
2219
+ constructor() {
2220
+ super("WalletNotification", "ChannelLagging");
2221
+ }
2222
+ static new() {
2223
+ return new ChannelLagging_();
2224
+ }
2225
+ static instanceOf(obj) {
2226
+ return obj.tag === WalletNotification_Tags.ChannelLagging;
2227
+ }
2228
+ }
2229
+ function instanceOf(obj) {
2230
+ return obj[_uniffiBindgenReactNative.uniffiTypeNameSymbol] === "WalletNotification";
2231
+ }
2232
+ return Object.freeze({
2233
+ instanceOf,
2234
+ MovementCreated: MovementCreated_,
2235
+ MovementUpdated: MovementUpdated_,
2236
+ ChannelLagging: ChannelLagging_
2237
+ });
2238
+ })();
2239
+
2240
+ /**
2241
+ * A notification event from the wallet
2242
+ */
2243
+
2244
+ // FfiConverter for enum WalletNotification
2245
+ const FfiConverterTypeWalletNotification = (() => {
2246
+ const ordinalConverter = _uniffiBindgenReactNative.FfiConverterInt32;
2247
+ class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray {
2248
+ read(from) {
2249
+ switch (ordinalConverter.read(from)) {
2250
+ case 1:
2251
+ return new WalletNotification.MovementCreated({
2252
+ movement: FfiConverterTypeMovement.read(from)
2253
+ });
2254
+ case 2:
2255
+ return new WalletNotification.MovementUpdated({
2256
+ movement: FfiConverterTypeMovement.read(from)
2257
+ });
2258
+ case 3:
2259
+ return new WalletNotification.ChannelLagging();
2260
+ default:
2261
+ throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
2262
+ }
2263
+ }
2264
+ write(value, into) {
2265
+ switch (value.tag) {
2266
+ case WalletNotification_Tags.MovementCreated:
2267
+ {
2268
+ ordinalConverter.write(1, into);
2269
+ const inner = value.inner;
2270
+ FfiConverterTypeMovement.write(inner.movement, into);
2271
+ return;
2272
+ }
2273
+ case WalletNotification_Tags.MovementUpdated:
2274
+ {
2275
+ ordinalConverter.write(2, into);
2276
+ const inner = value.inner;
2277
+ FfiConverterTypeMovement.write(inner.movement, into);
2278
+ return;
2279
+ }
2280
+ case WalletNotification_Tags.ChannelLagging:
2281
+ {
2282
+ ordinalConverter.write(3, into);
2283
+ return;
2284
+ }
2285
+ default:
2286
+ // Throwing from here means that WalletNotification_Tags hasn't matched an ordinal.
2287
+ throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
2288
+ }
2289
+ }
2290
+ allocationSize(value) {
2291
+ switch (value.tag) {
2292
+ case WalletNotification_Tags.MovementCreated:
2293
+ {
2294
+ const inner = value.inner;
2295
+ let size = ordinalConverter.allocationSize(1);
2296
+ size += FfiConverterTypeMovement.allocationSize(inner.movement);
2297
+ return size;
2298
+ }
2299
+ case WalletNotification_Tags.MovementUpdated:
2300
+ {
2301
+ const inner = value.inner;
2302
+ let size = ordinalConverter.allocationSize(2);
2303
+ size += FfiConverterTypeMovement.allocationSize(inner.movement);
2304
+ return size;
2305
+ }
2306
+ case WalletNotification_Tags.ChannelLagging:
2307
+ {
2308
+ return ordinalConverter.allocationSize(3);
2309
+ }
2310
+ default:
2311
+ throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
2312
+ }
2313
+ }
2314
+ }
2315
+ return new FFIConverter();
2316
+ })();
2317
+
2318
+ /**
2319
+ * Pull-based handle for consuming wallet notifications.
2320
+ *
2321
+ * Obtain via `Wallet.notifications()`. Call `next_notification()` in a loop
2322
+ * to receive events. Call `cancel_next_notification_wait()` to unblock a
2323
+ * pending wait without destroying the underlying stream.
2324
+ *
2325
+ * Each call to `Wallet.notifications()` creates an independent stream backed
2326
+ * by a new broadcast receiver. Only one consumer loop per holder is assumed.
2327
+ */
2328
+
2329
+ /**
2330
+ * Pull-based handle for consuming wallet notifications.
2331
+ *
2332
+ * Obtain via `Wallet.notifications()`. Call `next_notification()` in a loop
2333
+ * to receive events. Call `cancel_next_notification_wait()` to unblock a
2334
+ * pending wait without destroying the underlying stream.
2335
+ *
2336
+ * Each call to `Wallet.notifications()` creates an independent stream backed
2337
+ * by a new broadcast receiver. Only one consumer loop per holder is assumed.
2338
+ */
2339
+ class NotificationHolder extends _uniffiBindgenReactNative.UniffiAbstractObject {
2340
+ [_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "NotificationHolder";
2341
+ // No primary constructor declared for this class.
2342
+ constructor(pointer) {
2343
+ super();
2344
+ this[_uniffiBindgenReactNative.pointerLiteralSymbol] = pointer;
2345
+ this[_uniffiBindgenReactNative.destructorGuardSymbol] = uniffiTypeNotificationHolderObjectFactory.bless(pointer);
2346
+ }
2347
+
2348
+ /**
2349
+ * Cancel the currently pending `next_notification()` wait.
2350
+ *
2351
+ * Causes a blocked `next_notification()` to return null.
2352
+ * Has no effect when no wait is active.
2353
+ * Does NOT destroy the underlying stream; subsequent calls to
2354
+ * `next_notification()` will still work.
2355
+ */
2356
+ cancelNextNotificationWait() {
2357
+ uniffiCaller.rustCall(/*caller:*/callStatus => {
2358
+ (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_notificationholder_cancel_next_notification_wait(uniffiTypeNotificationHolderObjectFactory.clonePointer(this), callStatus);
2359
+ }, /*liftString:*/FfiConverterString.lift);
2360
+ }
2361
+
2362
+ /**
2363
+ * Wait for the next notification.
2364
+ *
2365
+ * Returns null if the wait was cancelled via `cancel_next_notification_wait()`
2366
+ * or if the wallet's notification source was shut down permanently.
2367
+ *
2368
+ * After a cancellation this method can be called again normally — the
2369
+ * underlying stream is preserved and a fresh cancel channel is set up on
2370
+ * every entry.
2371
+ *
2372
+ * Throws `BarkError.Internal` if called concurrently on the same holder.
2373
+ */
2374
+ async nextNotification(asyncOpts_) /*throws*/{
2375
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
2376
+ try {
2377
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2378
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_notificationholder_next_notification(uniffiTypeNotificationHolderObjectFactory.clonePointer(this));
2379
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalTypeWalletNotification.lift.bind(FfiConverterOptionalTypeWalletNotification), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2380
+ } catch (__error) {
2381
+ if (uniffiIsDebug && __error instanceof Error) {
2382
+ __error.stack = __stack;
2383
+ }
2384
+ throw __error;
2385
+ }
2386
+ }
2387
+
2388
+ /**
2389
+ * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
2390
+ */
2391
+ uniffiDestroy() {
2392
+ const ptr = this[_uniffiBindgenReactNative.destructorGuardSymbol];
2393
+ if (ptr !== undefined) {
2394
+ const pointer = uniffiTypeNotificationHolderObjectFactory.pointer(this);
2395
+ uniffiTypeNotificationHolderObjectFactory.freePointer(pointer);
2396
+ uniffiTypeNotificationHolderObjectFactory.unbless(ptr);
2397
+ delete this[_uniffiBindgenReactNative.destructorGuardSymbol];
2398
+ }
2399
+ }
2400
+ static instanceOf(obj) {
2401
+ return uniffiTypeNotificationHolderObjectFactory.isConcreteType(obj);
2402
+ }
2403
+ }
2404
+ exports.NotificationHolder = NotificationHolder;
2405
+ const uniffiTypeNotificationHolderObjectFactory = (() => {
2406
+ return {
2407
+ create(pointer) {
2408
+ const instance = Object.create(NotificationHolder.prototype);
2409
+ instance[_uniffiBindgenReactNative.pointerLiteralSymbol] = pointer;
2410
+ instance[_uniffiBindgenReactNative.destructorGuardSymbol] = this.bless(pointer);
2411
+ instance[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "NotificationHolder";
2412
+ return instance;
2413
+ },
2414
+ bless(p) {
2415
+ return uniffiCaller.rustCall(/*caller:*/status => (0, _barkFfi.default)().ubrn_uniffi_internal_fn_method_notificationholder_ffi__bless_pointer(p, status), /*liftString:*/FfiConverterString.lift);
2416
+ },
2417
+ unbless(ptr) {
2418
+ ptr.markDestroyed();
2419
+ },
2420
+ pointer(obj) {
2421
+ if (obj[_uniffiBindgenReactNative.destructorGuardSymbol] === undefined) {
2422
+ throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedNullPointer();
2423
+ }
2424
+ return obj[_uniffiBindgenReactNative.pointerLiteralSymbol];
2425
+ },
2426
+ clonePointer(obj) {
2427
+ const pointer = this.pointer(obj);
2428
+ return uniffiCaller.rustCall(/*caller:*/callStatus => (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_clone_notificationholder(pointer, callStatus), /*liftString:*/FfiConverterString.lift);
2429
+ },
2430
+ freePointer(pointer) {
2431
+ uniffiCaller.rustCall(/*caller:*/callStatus => (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_free_notificationholder(pointer, callStatus), /*liftString:*/FfiConverterString.lift);
2432
+ },
2433
+ isConcreteType(obj) {
2434
+ return obj[_uniffiBindgenReactNative.destructorGuardSymbol] && obj[_uniffiBindgenReactNative.uniffiTypeNameSymbol] === "NotificationHolder";
2435
+ }
2436
+ };
2437
+ })();
2438
+ // FfiConverter for NotificationHolderInterface
2439
+ const FfiConverterTypeNotificationHolder = new _uniffiBindgenReactNative.FfiConverterObject(uniffiTypeNotificationHolderObjectFactory);
2440
+
2100
2441
  /**
2101
2442
  * Onchain Bitcoin wallet for boarding and exits
2102
2443
  *
@@ -2140,48 +2481,88 @@ class OnchainWallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
2140
2481
  * The wallet uses BDK for onchain operations
2141
2482
  * and the same chain source configuration as the Bark wallet (esplora_address or bitcoind_*).
2142
2483
  */
2143
- static default_(mnemonic, config, datadir) /*throws*/{
2144
- return FfiConverterTypeOnchainWallet.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2145
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_constructor_onchainwallet_default(FfiConverterString.lower(mnemonic), FfiConverterTypeConfig.lower(config), FfiConverterString.lower(datadir), callStatus);
2146
- }, /*liftString:*/FfiConverterString.lift));
2484
+ static async default_(mnemonic, config, datadir, asyncOpts_) /*throws*/{
2485
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
2486
+ try {
2487
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2488
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_constructor_onchainwallet_default(FfiConverterString.lower(mnemonic), FfiConverterTypeConfig.lower(config), FfiConverterString.lower(datadir));
2489
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterTypeOnchainWallet.lift.bind(FfiConverterTypeOnchainWallet), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2490
+ } catch (__error) {
2491
+ if (uniffiIsDebug && __error instanceof Error) {
2492
+ __error.stack = __stack;
2493
+ }
2494
+ throw __error;
2495
+ }
2147
2496
  }
2148
2497
 
2149
2498
  /**
2150
2499
  * Get the onchain wallet balance
2151
2500
  */
2152
- balance() /*throws*/{
2153
- return FfiConverterTypeOnchainBalance.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2154
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_onchainwallet_balance(uniffiTypeOnchainWalletObjectFactory.clonePointer(this), callStatus);
2155
- }, /*liftString:*/FfiConverterString.lift));
2501
+ async balance(asyncOpts_) /*throws*/{
2502
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
2503
+ try {
2504
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2505
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_onchainwallet_balance(uniffiTypeOnchainWalletObjectFactory.clonePointer(this));
2506
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeOnchainBalance.lift.bind(FfiConverterTypeOnchainBalance), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2507
+ } catch (__error) {
2508
+ if (uniffiIsDebug && __error instanceof Error) {
2509
+ __error.stack = __stack;
2510
+ }
2511
+ throw __error;
2512
+ }
2156
2513
  }
2157
2514
 
2158
2515
  /**
2159
2516
  * Generate a new Bitcoin address
2160
2517
  */
2161
- newAddress() /*throws*/{
2162
- return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2163
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_onchainwallet_new_address(uniffiTypeOnchainWalletObjectFactory.clonePointer(this), callStatus);
2164
- }, /*liftString:*/FfiConverterString.lift));
2518
+ async newAddress(asyncOpts_) /*throws*/{
2519
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
2520
+ try {
2521
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2522
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_onchainwallet_new_address(uniffiTypeOnchainWalletObjectFactory.clonePointer(this));
2523
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2524
+ } catch (__error) {
2525
+ if (uniffiIsDebug && __error instanceof Error) {
2526
+ __error.stack = __stack;
2527
+ }
2528
+ throw __error;
2529
+ }
2165
2530
  }
2166
2531
 
2167
2532
  /**
2168
2533
  * Send Bitcoin to an address
2169
2534
  * Returns the transaction ID
2170
2535
  */
2171
- send(address, amountSats, feeRateSatPerVb) /*throws*/{
2172
- return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2173
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_onchainwallet_send(uniffiTypeOnchainWalletObjectFactory.clonePointer(this), FfiConverterString.lower(address), _uniffiBindgenReactNative.FfiConverterUInt64.lower(amountSats), _uniffiBindgenReactNative.FfiConverterUInt64.lower(feeRateSatPerVb), callStatus);
2174
- }, /*liftString:*/FfiConverterString.lift));
2536
+ async send(address, amountSats, feeRateSatPerVb, asyncOpts_) /*throws*/{
2537
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
2538
+ try {
2539
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2540
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_onchainwallet_send(uniffiTypeOnchainWalletObjectFactory.clonePointer(this), FfiConverterString.lower(address), _uniffiBindgenReactNative.FfiConverterUInt64.lower(amountSats), _uniffiBindgenReactNative.FfiConverterUInt64.lower(feeRateSatPerVb));
2541
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2542
+ } catch (__error) {
2543
+ if (uniffiIsDebug && __error instanceof Error) {
2544
+ __error.stack = __stack;
2545
+ }
2546
+ throw __error;
2547
+ }
2175
2548
  }
2176
2549
 
2177
2550
  /**
2178
2551
  * Sync the onchain wallet with the blockchain
2179
2552
  * Returns the amount synced in satoshis
2180
2553
  */
2181
- sync() /*throws*/{
2182
- return _uniffiBindgenReactNative.FfiConverterUInt64.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2183
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_onchainwallet_sync(uniffiTypeOnchainWalletObjectFactory.clonePointer(this), callStatus);
2184
- }, /*liftString:*/FfiConverterString.lift));
2554
+ async sync(asyncOpts_) /*throws*/{
2555
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
2556
+ try {
2557
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2558
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_onchainwallet_sync(uniffiTypeOnchainWalletObjectFactory.clonePointer(this));
2559
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/_uniffiBindgenReactNative.FfiConverterUInt64.lift.bind(_uniffiBindgenReactNative.FfiConverterUInt64), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2560
+ } catch (__error) {
2561
+ if (uniffiIsDebug && __error instanceof Error) {
2562
+ __error.stack = __stack;
2563
+ }
2564
+ throw __error;
2565
+ }
2185
2566
  }
2186
2567
 
2187
2568
  /**
@@ -2256,37 +2637,69 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
2256
2637
  /**
2257
2638
  * Create a new Bark wallet
2258
2639
  */
2259
- static create(mnemonic, config, datadir, forceRescan) /*throws*/{
2260
- return FfiConverterTypeWallet.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2261
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_constructor_wallet_create(FfiConverterString.lower(mnemonic), FfiConverterTypeConfig.lower(config), FfiConverterString.lower(datadir), _uniffiBindgenReactNative.FfiConverterBool.lower(forceRescan), callStatus);
2262
- }, /*liftString:*/FfiConverterString.lift));
2640
+ static async create(mnemonic, config, datadir, forceRescan, asyncOpts_) /*throws*/{
2641
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
2642
+ try {
2643
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2644
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_constructor_wallet_create(FfiConverterString.lower(mnemonic), FfiConverterTypeConfig.lower(config), FfiConverterString.lower(datadir), _uniffiBindgenReactNative.FfiConverterBool.lower(forceRescan));
2645
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterTypeWallet.lift.bind(FfiConverterTypeWallet), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2646
+ } catch (__error) {
2647
+ if (uniffiIsDebug && __error instanceof Error) {
2648
+ __error.stack = __stack;
2649
+ }
2650
+ throw __error;
2651
+ }
2263
2652
  }
2264
2653
 
2265
2654
  /**
2266
2655
  * Create a new Bark wallet WITH onchain capabilities
2267
2656
  */
2268
- static createWithOnchain(mnemonic, config, datadir, onchainWallet, forceRescan) /*throws*/{
2269
- return FfiConverterTypeWallet.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2270
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_constructor_wallet_create_with_onchain(FfiConverterString.lower(mnemonic), FfiConverterTypeConfig.lower(config), FfiConverterString.lower(datadir), FfiConverterTypeOnchainWallet.lower(onchainWallet), _uniffiBindgenReactNative.FfiConverterBool.lower(forceRescan), callStatus);
2271
- }, /*liftString:*/FfiConverterString.lift));
2657
+ static async createWithOnchain(mnemonic, config, datadir, onchainWallet, forceRescan, asyncOpts_) /*throws*/{
2658
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
2659
+ try {
2660
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2661
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_constructor_wallet_create_with_onchain(FfiConverterString.lower(mnemonic), FfiConverterTypeConfig.lower(config), FfiConverterString.lower(datadir), FfiConverterTypeOnchainWallet.lower(onchainWallet), _uniffiBindgenReactNative.FfiConverterBool.lower(forceRescan));
2662
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterTypeWallet.lift.bind(FfiConverterTypeWallet), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2663
+ } catch (__error) {
2664
+ if (uniffiIsDebug && __error instanceof Error) {
2665
+ __error.stack = __stack;
2666
+ }
2667
+ throw __error;
2668
+ }
2272
2669
  }
2273
2670
 
2274
2671
  /**
2275
2672
  * Open an existing Bark wallet
2276
2673
  */
2277
- static open(mnemonic, config, datadir) /*throws*/{
2278
- return FfiConverterTypeWallet.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2279
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_constructor_wallet_open(FfiConverterString.lower(mnemonic), FfiConverterTypeConfig.lower(config), FfiConverterString.lower(datadir), callStatus);
2280
- }, /*liftString:*/FfiConverterString.lift));
2674
+ static async open(mnemonic, config, datadir, asyncOpts_) /*throws*/{
2675
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
2676
+ try {
2677
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2678
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_constructor_wallet_open(FfiConverterString.lower(mnemonic), FfiConverterTypeConfig.lower(config), FfiConverterString.lower(datadir));
2679
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterTypeWallet.lift.bind(FfiConverterTypeWallet), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2680
+ } catch (__error) {
2681
+ if (uniffiIsDebug && __error instanceof Error) {
2682
+ __error.stack = __stack;
2683
+ }
2684
+ throw __error;
2685
+ }
2281
2686
  }
2282
2687
 
2283
2688
  /**
2284
2689
  * Open an existing Bark wallet WITH onchain capabilities
2285
2690
  */
2286
- static openWithOnchain(mnemonic, config, datadir, onchainWallet) /*throws*/{
2287
- return FfiConverterTypeWallet.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2288
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_constructor_wallet_open_with_onchain(FfiConverterString.lower(mnemonic), FfiConverterTypeConfig.lower(config), FfiConverterString.lower(datadir), FfiConverterTypeOnchainWallet.lower(onchainWallet), callStatus);
2289
- }, /*liftString:*/FfiConverterString.lift));
2691
+ static async openWithOnchain(mnemonic, config, datadir, onchainWallet, asyncOpts_) /*throws*/{
2692
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
2693
+ try {
2694
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2695
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_constructor_wallet_open_with_onchain(FfiConverterString.lower(mnemonic), FfiConverterTypeConfig.lower(config), FfiConverterString.lower(datadir), FfiConverterTypeOnchainWallet.lower(onchainWallet));
2696
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterTypeWallet.lift.bind(FfiConverterTypeWallet), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2697
+ } catch (__error) {
2698
+ if (uniffiIsDebug && __error instanceof Error) {
2699
+ __error.stack = __stack;
2700
+ }
2701
+ throw __error;
2702
+ }
2290
2703
  }
2291
2704
 
2292
2705
  /**
@@ -2294,56 +2707,112 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
2294
2707
  *
2295
2708
  * Returns null if no exits or any exit has undetermined claimability.
2296
2709
  */
2297
- allExitsClaimableAtHeight() /*throws*/{
2298
- return FfiConverterOptionalUInt32.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2299
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_all_exits_claimable_at_height(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
2300
- }, /*liftString:*/FfiConverterString.lift));
2710
+ async allExitsClaimableAtHeight(asyncOpts_) /*throws*/{
2711
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
2712
+ try {
2713
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2714
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_all_exits_claimable_at_height(uniffiTypeWalletObjectFactory.clonePointer(this));
2715
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalUInt32.lift.bind(FfiConverterOptionalUInt32), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2716
+ } catch (__error) {
2717
+ if (uniffiIsDebug && __error instanceof Error) {
2718
+ __error.stack = __stack;
2719
+ }
2720
+ throw __error;
2721
+ }
2301
2722
  }
2302
2723
 
2303
2724
  /**
2304
2725
  * Get all VTXOs (including spent)
2305
2726
  */
2306
- allVtxos() /*throws*/{
2307
- return FfiConverterArrayTypeVtxo.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2308
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_all_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
2309
- }, /*liftString:*/FfiConverterString.lift));
2727
+ async allVtxos(asyncOpts_) /*throws*/{
2728
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
2729
+ try {
2730
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2731
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_all_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this));
2732
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2733
+ } catch (__error) {
2734
+ if (uniffiIsDebug && __error instanceof Error) {
2735
+ __error.stack = __stack;
2736
+ }
2737
+ throw __error;
2738
+ }
2310
2739
  }
2311
2740
 
2312
2741
  /**
2313
2742
  * Get Ark server info (null if not connected)
2314
2743
  */
2315
- arkInfo() {
2316
- return FfiConverterOptionalTypeArkInfo.lift(uniffiCaller.rustCall(/*caller:*/callStatus => {
2317
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_ark_info(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
2318
- }, /*liftString:*/FfiConverterString.lift));
2319
- }
2320
- balance() /*throws*/{
2321
- return FfiConverterTypeBalance.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2322
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_balance(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
2323
- }, /*liftString:*/FfiConverterString.lift));
2744
+ async arkInfo(asyncOpts_) {
2745
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
2746
+ try {
2747
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2748
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_ark_info(uniffiTypeWalletObjectFactory.clonePointer(this));
2749
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalTypeArkInfo.lift.bind(FfiConverterOptionalTypeArkInfo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_);
2750
+ } catch (__error) {
2751
+ if (uniffiIsDebug && __error instanceof Error) {
2752
+ __error.stack = __stack;
2753
+ }
2754
+ throw __error;
2755
+ }
2756
+ }
2757
+ async balance(asyncOpts_) /*throws*/{
2758
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
2759
+ try {
2760
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2761
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_balance(uniffiTypeWalletObjectFactory.clonePointer(this));
2762
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeBalance.lift.bind(FfiConverterTypeBalance), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2763
+ } catch (__error) {
2764
+ if (uniffiIsDebug && __error instanceof Error) {
2765
+ __error.stack = __stack;
2766
+ }
2767
+ throw __error;
2768
+ }
2324
2769
  }
2325
2770
 
2326
2771
  /**
2327
2772
  * Board all funds from onchain wallet into Ark
2328
2773
  */
2329
- boardAll(onchainWallet) /*throws*/{
2330
- return FfiConverterTypePendingBoard.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2331
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_board_all(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterTypeOnchainWallet.lower(onchainWallet), callStatus);
2332
- }, /*liftString:*/FfiConverterString.lift));
2774
+ async boardAll(onchainWallet, asyncOpts_) /*throws*/{
2775
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
2776
+ try {
2777
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2778
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_board_all(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterTypeOnchainWallet.lower(onchainWallet));
2779
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypePendingBoard.lift.bind(FfiConverterTypePendingBoard), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2780
+ } catch (__error) {
2781
+ if (uniffiIsDebug && __error instanceof Error) {
2782
+ __error.stack = __stack;
2783
+ }
2784
+ throw __error;
2785
+ }
2333
2786
  }
2334
2787
 
2335
2788
  /**
2336
2789
  * Board a specific amount from onchain wallet into Ark
2337
2790
  */
2338
- boardAmount(onchainWallet, amountSats) /*throws*/{
2339
- return FfiConverterTypePendingBoard.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2340
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_board_amount(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterTypeOnchainWallet.lower(onchainWallet), _uniffiBindgenReactNative.FfiConverterUInt64.lower(amountSats), callStatus);
2341
- }, /*liftString:*/FfiConverterString.lift));
2342
- }
2343
- bolt11Invoice(amountSats) /*throws*/{
2344
- return FfiConverterTypeLightningInvoice.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2345
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice(uniffiTypeWalletObjectFactory.clonePointer(this), _uniffiBindgenReactNative.FfiConverterUInt64.lower(amountSats), callStatus);
2346
- }, /*liftString:*/FfiConverterString.lift));
2791
+ async boardAmount(onchainWallet, amountSats, asyncOpts_) /*throws*/{
2792
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
2793
+ try {
2794
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2795
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_board_amount(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterTypeOnchainWallet.lower(onchainWallet), _uniffiBindgenReactNative.FfiConverterUInt64.lower(amountSats));
2796
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypePendingBoard.lift.bind(FfiConverterTypePendingBoard), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2797
+ } catch (__error) {
2798
+ if (uniffiIsDebug && __error instanceof Error) {
2799
+ __error.stack = __stack;
2800
+ }
2801
+ throw __error;
2802
+ }
2803
+ }
2804
+ async bolt11Invoice(amountSats, asyncOpts_) /*throws*/{
2805
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
2806
+ try {
2807
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2808
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice(uniffiTypeWalletObjectFactory.clonePointer(this), _uniffiBindgenReactNative.FfiConverterUInt64.lower(amountSats));
2809
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeLightningInvoice.lift.bind(FfiConverterTypeLightningInvoice), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2810
+ } catch (__error) {
2811
+ if (uniffiIsDebug && __error instanceof Error) {
2812
+ __error.stack = __stack;
2813
+ }
2814
+ throw __error;
2815
+ }
2347
2816
  }
2348
2817
 
2349
2818
  /**
@@ -2358,28 +2827,52 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
2358
2827
  *
2359
2828
  * Returns the transaction ID (txid) of the broadcasted transaction
2360
2829
  */
2361
- broadcastTx(txHex) /*throws*/{
2362
- return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2363
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_broadcast_tx(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(txHex), callStatus);
2364
- }, /*liftString:*/FfiConverterString.lift));
2830
+ async broadcastTx(txHex, asyncOpts_) /*throws*/{
2831
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
2832
+ try {
2833
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2834
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_broadcast_tx(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(txHex));
2835
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2836
+ } catch (__error) {
2837
+ if (uniffiIsDebug && __error instanceof Error) {
2838
+ __error.stack = __stack;
2839
+ }
2840
+ throw __error;
2841
+ }
2365
2842
  }
2366
2843
 
2367
2844
  /**
2368
2845
  * Cancel all pending rounds
2369
2846
  */
2370
- cancelAllPendingRounds() /*throws*/{
2371
- uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2372
- (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_cancel_all_pending_rounds(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
2373
- }, /*liftString:*/FfiConverterString.lift);
2847
+ async cancelAllPendingRounds(asyncOpts_) /*throws*/{
2848
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
2849
+ try {
2850
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2851
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_cancel_all_pending_rounds(uniffiTypeWalletObjectFactory.clonePointer(this));
2852
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2853
+ } catch (__error) {
2854
+ if (uniffiIsDebug && __error instanceof Error) {
2855
+ __error.stack = __stack;
2856
+ }
2857
+ throw __error;
2858
+ }
2374
2859
  }
2375
2860
 
2376
2861
  /**
2377
2862
  * Cancel a specific pending round
2378
2863
  */
2379
- cancelPendingRound(roundId) /*throws*/{
2380
- uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2381
- (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_cancel_pending_round(uniffiTypeWalletObjectFactory.clonePointer(this), _uniffiBindgenReactNative.FfiConverterUInt32.lower(roundId), callStatus);
2382
- }, /*liftString:*/FfiConverterString.lift);
2864
+ async cancelPendingRound(roundId, asyncOpts_) /*throws*/{
2865
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
2866
+ try {
2867
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2868
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_cancel_pending_round(uniffiTypeWalletObjectFactory.clonePointer(this), _uniffiBindgenReactNative.FfiConverterUInt32.lower(roundId));
2869
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2870
+ } catch (__error) {
2871
+ if (uniffiIsDebug && __error instanceof Error) {
2872
+ __error.stack = __stack;
2873
+ }
2874
+ throw __error;
2875
+ }
2383
2876
  }
2384
2877
 
2385
2878
  /**
@@ -2392,28 +2885,52 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
2392
2885
  *
2393
2886
  * Returns the preimage if payment is successful, null if still pending
2394
2887
  */
2395
- checkLightningPayment(paymentHash, wait) /*throws*/{
2396
- return FfiConverterOptionalString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2397
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_check_lightning_payment(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash), _uniffiBindgenReactNative.FfiConverterBool.lower(wait), callStatus);
2398
- }, /*liftString:*/FfiConverterString.lift));
2888
+ async checkLightningPayment(paymentHash, wait, asyncOpts_) /*throws*/{
2889
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
2890
+ try {
2891
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2892
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_check_lightning_payment(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash), _uniffiBindgenReactNative.FfiConverterBool.lower(wait));
2893
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalString.lift.bind(FfiConverterOptionalString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2894
+ } catch (__error) {
2895
+ if (uniffiIsDebug && __error instanceof Error) {
2896
+ __error.stack = __stack;
2897
+ }
2898
+ throw __error;
2899
+ }
2399
2900
  }
2400
2901
 
2401
2902
  /**
2402
2903
  * Get claimable lightning receive balance
2403
2904
  */
2404
- claimableLightningReceiveBalanceSats() /*throws*/{
2405
- return _uniffiBindgenReactNative.FfiConverterUInt64.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2406
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_claimable_lightning_receive_balance_sats(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
2407
- }, /*liftString:*/FfiConverterString.lift));
2905
+ async claimableLightningReceiveBalanceSats(asyncOpts_) /*throws*/{
2906
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
2907
+ try {
2908
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2909
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_claimable_lightning_receive_balance_sats(uniffiTypeWalletObjectFactory.clonePointer(this));
2910
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/_uniffiBindgenReactNative.FfiConverterUInt64.lift.bind(_uniffiBindgenReactNative.FfiConverterUInt64), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2911
+ } catch (__error) {
2912
+ if (uniffiIsDebug && __error instanceof Error) {
2913
+ __error.stack = __stack;
2914
+ }
2915
+ throw __error;
2916
+ }
2408
2917
  }
2409
2918
 
2410
2919
  /**
2411
2920
  * Get wallet config
2412
2921
  */
2413
- config() {
2414
- return FfiConverterTypeConfig.lift(uniffiCaller.rustCall(/*caller:*/callStatus => {
2415
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_config(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
2416
- }, /*liftString:*/FfiConverterString.lift));
2922
+ async config(asyncOpts_) {
2923
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
2924
+ try {
2925
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2926
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_config(uniffiTypeWalletObjectFactory.clonePointer(this));
2927
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeConfig.lift.bind(FfiConverterTypeConfig), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_);
2928
+ } catch (__error) {
2929
+ if (uniffiIsDebug && __error instanceof Error) {
2930
+ __error.stack = __stack;
2931
+ }
2932
+ throw __error;
2933
+ }
2417
2934
  }
2418
2935
 
2419
2936
  /**
@@ -2428,10 +2945,18 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
2428
2945
  * * `address` - Bitcoin address to send claimed funds to
2429
2946
  * * `fee_rate_sat_per_vb` - Optional fee rate override in sats/vB
2430
2947
  */
2431
- drainExits(vtxoIds, address, feeRateSatPerVb) /*throws*/{
2432
- return FfiConverterTypeExitClaimTransaction.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2433
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_drain_exits(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterArrayString.lower(vtxoIds), FfiConverterString.lower(address), FfiConverterOptionalUInt64.lower(feeRateSatPerVb), callStatus);
2434
- }, /*liftString:*/FfiConverterString.lift));
2948
+ async drainExits(vtxoIds, address, feeRateSatPerVb, asyncOpts_) /*throws*/{
2949
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
2950
+ try {
2951
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2952
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_drain_exits(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterArrayString.lower(vtxoIds), FfiConverterString.lower(address), FfiConverterOptionalUInt64.lower(feeRateSatPerVb));
2953
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeExitClaimTransaction.lift.bind(FfiConverterTypeExitClaimTransaction), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2954
+ } catch (__error) {
2955
+ if (uniffiIsDebug && __error instanceof Error) {
2956
+ __error.stack = __stack;
2957
+ }
2958
+ throw __error;
2959
+ }
2435
2960
  }
2436
2961
 
2437
2962
  /**
@@ -2440,13 +2965,19 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
2440
2965
  * # Arguments
2441
2966
  *
2442
2967
  * * `amount_sats` - Amount to board in sats
2443
- *
2444
- * Returns the estimated fee in sats
2445
2968
  */
2446
- estimateBoardFee(amountSats) /*throws*/{
2447
- return _uniffiBindgenReactNative.FfiConverterUInt64.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2448
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_board_fee(uniffiTypeWalletObjectFactory.clonePointer(this), _uniffiBindgenReactNative.FfiConverterUInt64.lower(amountSats), callStatus);
2449
- }, /*liftString:*/FfiConverterString.lift));
2969
+ async estimateBoardFee(amountSats, asyncOpts_) /*throws*/{
2970
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
2971
+ try {
2972
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2973
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_board_fee(uniffiTypeWalletObjectFactory.clonePointer(this), _uniffiBindgenReactNative.FfiConverterUInt64.lower(amountSats));
2974
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2975
+ } catch (__error) {
2976
+ if (uniffiIsDebug && __error instanceof Error) {
2977
+ __error.stack = __stack;
2978
+ }
2979
+ throw __error;
2980
+ }
2450
2981
  }
2451
2982
 
2452
2983
  /**
@@ -2455,13 +2986,19 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
2455
2986
  * # Arguments
2456
2987
  *
2457
2988
  * * `amount_sats` - Amount to receive in sats
2458
- *
2459
- * Returns the estimated fee in sats
2460
2989
  */
2461
- estimateLightningReceiveFee(amountSats) /*throws*/{
2462
- return _uniffiBindgenReactNative.FfiConverterUInt64.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2463
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_lightning_receive_fee(uniffiTypeWalletObjectFactory.clonePointer(this), _uniffiBindgenReactNative.FfiConverterUInt64.lower(amountSats), callStatus);
2464
- }, /*liftString:*/FfiConverterString.lift));
2990
+ async estimateLightningReceiveFee(amountSats, asyncOpts_) /*throws*/{
2991
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
2992
+ try {
2993
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2994
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_lightning_receive_fee(uniffiTypeWalletObjectFactory.clonePointer(this), _uniffiBindgenReactNative.FfiConverterUInt64.lower(amountSats));
2995
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2996
+ } catch (__error) {
2997
+ if (uniffiIsDebug && __error instanceof Error) {
2998
+ __error.stack = __stack;
2999
+ }
3000
+ throw __error;
3001
+ }
2465
3002
  }
2466
3003
 
2467
3004
  /**
@@ -2470,13 +3007,40 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
2470
3007
  * # Arguments
2471
3008
  *
2472
3009
  * * `amount_sats` - Amount to send in sats
3010
+ */
3011
+ async estimateLightningSendFee(amountSats, asyncOpts_) /*throws*/{
3012
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3013
+ try {
3014
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3015
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_lightning_send_fee(uniffiTypeWalletObjectFactory.clonePointer(this), _uniffiBindgenReactNative.FfiConverterUInt64.lower(amountSats));
3016
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3017
+ } catch (__error) {
3018
+ if (uniffiIsDebug && __error instanceof Error) {
3019
+ __error.stack = __stack;
3020
+ }
3021
+ throw __error;
3022
+ }
3023
+ }
3024
+
3025
+ /**
3026
+ * Estimate the fee for offboarding all spendable VTXOs
2473
3027
  *
2474
- * Returns the estimated fee in sats
3028
+ * # Arguments
3029
+ *
3030
+ * * `address` - Destination address for the offboard
2475
3031
  */
2476
- estimateLightningSendFee(amountSats) /*throws*/{
2477
- return _uniffiBindgenReactNative.FfiConverterUInt64.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2478
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_lightning_send_fee(uniffiTypeWalletObjectFactory.clonePointer(this), _uniffiBindgenReactNative.FfiConverterUInt64.lower(amountSats), callStatus);
2479
- }, /*liftString:*/FfiConverterString.lift));
3032
+ async estimateOffboardAllFee(address, asyncOpts_) /*throws*/{
3033
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3034
+ try {
3035
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3036
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_offboard_all_fee(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(address));
3037
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3038
+ } catch (__error) {
3039
+ if (uniffiIsDebug && __error instanceof Error) {
3040
+ __error.stack = __stack;
3041
+ }
3042
+ throw __error;
3043
+ }
2480
3044
  }
2481
3045
 
2482
3046
  /**
@@ -2486,13 +3050,19 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
2486
3050
  *
2487
3051
  * * `address` - Destination address for the offboard
2488
3052
  * * `vtxo_ids` - VTXOs to offboard
2489
- *
2490
- * Returns the estimated fee in sats
2491
3053
  */
2492
- estimateOffboardFee(address, vtxoIds) /*throws*/{
2493
- return _uniffiBindgenReactNative.FfiConverterUInt64.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2494
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_offboard_fee(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(address), FfiConverterArrayString.lower(vtxoIds), callStatus);
2495
- }, /*liftString:*/FfiConverterString.lift));
3054
+ async estimateOffboardFee(address, vtxoIds, asyncOpts_) /*throws*/{
3055
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3056
+ try {
3057
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3058
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_offboard_fee(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(address), FfiConverterArrayString.lower(vtxoIds));
3059
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3060
+ } catch (__error) {
3061
+ if (uniffiIsDebug && __error instanceof Error) {
3062
+ __error.stack = __stack;
3063
+ }
3064
+ throw __error;
3065
+ }
2496
3066
  }
2497
3067
 
2498
3068
  /**
@@ -2501,13 +3071,19 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
2501
3071
  * # Arguments
2502
3072
  *
2503
3073
  * * `vtxo_ids` - VTXOs to refresh
2504
- *
2505
- * Returns the estimated fee in sats
2506
3074
  */
2507
- estimateRefreshFee(vtxoIds) /*throws*/{
2508
- return _uniffiBindgenReactNative.FfiConverterUInt64.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2509
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_refresh_fee(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterArrayString.lower(vtxoIds), callStatus);
2510
- }, /*liftString:*/FfiConverterString.lift));
3075
+ async estimateRefreshFee(vtxoIds, asyncOpts_) /*throws*/{
3076
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3077
+ try {
3078
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3079
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_refresh_fee(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterArrayString.lower(vtxoIds));
3080
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3081
+ } catch (__error) {
3082
+ if (uniffiIsDebug && __error instanceof Error) {
3083
+ __error.stack = __stack;
3084
+ }
3085
+ throw __error;
3086
+ }
2511
3087
  }
2512
3088
 
2513
3089
  /**
@@ -2517,13 +3093,19 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
2517
3093
  *
2518
3094
  * * `address` - Destination address
2519
3095
  * * `amount_sats` - Amount to send in sats
2520
- *
2521
- * Returns the estimated fee in sats
2522
3096
  */
2523
- estimateSendOnchainFee(address, amountSats) /*throws*/{
2524
- return _uniffiBindgenReactNative.FfiConverterUInt64.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2525
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_send_onchain_fee(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(address), _uniffiBindgenReactNative.FfiConverterUInt64.lower(amountSats), callStatus);
2526
- }, /*liftString:*/FfiConverterString.lift));
3097
+ async estimateSendOnchainFee(address, amountSats, asyncOpts_) /*throws*/{
3098
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3099
+ try {
3100
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3101
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_send_onchain_fee(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(address), _uniffiBindgenReactNative.FfiConverterUInt64.lower(amountSats));
3102
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3103
+ } catch (__error) {
3104
+ if (uniffiIsDebug && __error instanceof Error) {
3105
+ __error.stack = __stack;
3106
+ }
3107
+ throw __error;
3108
+ }
2527
3109
  }
2528
3110
 
2529
3111
  /**
@@ -2546,28 +3128,52 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
2546
3128
  * * `include_history` - Whether to include full state machine history
2547
3129
  * * `include_transactions` - Whether to include transaction details
2548
3130
  */
2549
- getExitStatus(vtxoId, includeHistory, includeTransactions) /*throws*/{
2550
- return FfiConverterOptionalTypeExitTransactionStatus.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2551
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_get_exit_status(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(vtxoId), _uniffiBindgenReactNative.FfiConverterBool.lower(includeHistory), _uniffiBindgenReactNative.FfiConverterBool.lower(includeTransactions), callStatus);
2552
- }, /*liftString:*/FfiConverterString.lift));
3131
+ async getExitStatus(vtxoId, includeHistory, includeTransactions, asyncOpts_) /*throws*/{
3132
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3133
+ try {
3134
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3135
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_get_exit_status(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(vtxoId), _uniffiBindgenReactNative.FfiConverterBool.lower(includeHistory), _uniffiBindgenReactNative.FfiConverterBool.lower(includeTransactions));
3136
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalTypeExitTransactionStatus.lift.bind(FfiConverterOptionalTypeExitTransactionStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3137
+ } catch (__error) {
3138
+ if (uniffiIsDebug && __error instanceof Error) {
3139
+ __error.stack = __stack;
3140
+ }
3141
+ throw __error;
3142
+ }
2553
3143
  }
2554
3144
 
2555
3145
  /**
2556
3146
  * Get all VTXOs currently in exit process
2557
3147
  */
2558
- getExitVtxos() /*throws*/{
2559
- return FfiConverterArrayTypeExitVtxo.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2560
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_get_exit_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
2561
- }, /*liftString:*/FfiConverterString.lift));
3148
+ async getExitVtxos(asyncOpts_) /*throws*/{
3149
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3150
+ try {
3151
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3152
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_get_exit_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this));
3153
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeExitVtxo.lift.bind(FfiConverterArrayTypeExitVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3154
+ } catch (__error) {
3155
+ if (uniffiIsDebug && __error instanceof Error) {
3156
+ __error.stack = __stack;
3157
+ }
3158
+ throw __error;
3159
+ }
2562
3160
  }
2563
3161
 
2564
3162
  /**
2565
3163
  * Get VTXOs expiring within threshold blocks
2566
3164
  */
2567
- getExpiringVtxos(thresholdBlocks) /*throws*/{
2568
- return FfiConverterArrayTypeVtxo.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2569
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_get_expiring_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this), _uniffiBindgenReactNative.FfiConverterUInt32.lower(thresholdBlocks), callStatus);
2570
- }, /*liftString:*/FfiConverterString.lift));
3165
+ async getExpiringVtxos(thresholdBlocks, asyncOpts_) /*throws*/{
3166
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3167
+ try {
3168
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3169
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_get_expiring_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this), _uniffiBindgenReactNative.FfiConverterUInt32.lower(thresholdBlocks));
3170
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3171
+ } catch (__error) {
3172
+ if (uniffiIsDebug && __error instanceof Error) {
3173
+ __error.stack = __stack;
3174
+ }
3175
+ throw __error;
3176
+ }
2571
3177
  }
2572
3178
 
2573
3179
  /**
@@ -2575,10 +3181,18 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
2575
3181
  *
2576
3182
  * Returns null if there are no spendable VTXOs.
2577
3183
  */
2578
- getFirstExpiringVtxoBlockheight() /*throws*/{
2579
- return FfiConverterOptionalUInt32.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2580
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_get_first_expiring_vtxo_blockheight(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
2581
- }, /*liftString:*/FfiConverterString.lift));
3184
+ async getFirstExpiringVtxoBlockheight(asyncOpts_) /*throws*/{
3185
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3186
+ try {
3187
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3188
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_get_first_expiring_vtxo_blockheight(uniffiTypeWalletObjectFactory.clonePointer(this));
3189
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalUInt32.lift.bind(FfiConverterOptionalUInt32), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3190
+ } catch (__error) {
3191
+ if (uniffiIsDebug && __error instanceof Error) {
3192
+ __error.stack = __stack;
3193
+ }
3194
+ throw __error;
3195
+ }
2582
3196
  }
2583
3197
 
2584
3198
  /**
@@ -2587,46 +3201,108 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
2587
3201
  * This is calculated as the first expiring VTXO height minus the refresh threshold.
2588
3202
  * Returns null if there are no VTXOs to refresh.
2589
3203
  */
2590
- getNextRequiredRefreshBlockheight() /*throws*/{
2591
- return FfiConverterOptionalUInt32.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2592
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_get_next_required_refresh_blockheight(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
2593
- }, /*liftString:*/FfiConverterString.lift));
3204
+ async getNextRequiredRefreshBlockheight(asyncOpts_) /*throws*/{
3205
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3206
+ try {
3207
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3208
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_get_next_required_refresh_blockheight(uniffiTypeWalletObjectFactory.clonePointer(this));
3209
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalUInt32.lift.bind(FfiConverterOptionalUInt32), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3210
+ } catch (__error) {
3211
+ if (uniffiIsDebug && __error instanceof Error) {
3212
+ __error.stack = __stack;
3213
+ }
3214
+ throw __error;
3215
+ }
2594
3216
  }
2595
3217
 
2596
3218
  /**
2597
3219
  * Get a specific VTXO by ID
2598
3220
  */
2599
- getVtxoById(vtxoId) /*throws*/{
2600
- return FfiConverterTypeVtxo.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2601
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_get_vtxo_by_id(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(vtxoId), callStatus);
2602
- }, /*liftString:*/FfiConverterString.lift));
3221
+ async getVtxoById(vtxoId, asyncOpts_) /*throws*/{
3222
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3223
+ try {
3224
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3225
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_get_vtxo_by_id(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(vtxoId));
3226
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeVtxo.lift.bind(FfiConverterTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3227
+ } catch (__error) {
3228
+ if (uniffiIsDebug && __error instanceof Error) {
3229
+ __error.stack = __stack;
3230
+ }
3231
+ throw __error;
3232
+ }
2603
3233
  }
2604
3234
 
2605
3235
  /**
2606
3236
  * Get VTXOs that should be refreshed
2607
3237
  */
2608
- getVtxosToRefresh() /*throws*/{
2609
- return FfiConverterArrayTypeVtxo.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2610
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_get_vtxos_to_refresh(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
2611
- }, /*liftString:*/FfiConverterString.lift));
3238
+ async getVtxosToRefresh(asyncOpts_) /*throws*/{
3239
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3240
+ try {
3241
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3242
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_get_vtxos_to_refresh(uniffiTypeWalletObjectFactory.clonePointer(this));
3243
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3244
+ } catch (__error) {
3245
+ if (uniffiIsDebug && __error instanceof Error) {
3246
+ __error.stack = __stack;
3247
+ }
3248
+ throw __error;
3249
+ }
2612
3250
  }
2613
3251
 
2614
3252
  /**
2615
3253
  * Check if any exits are pending
2616
3254
  */
2617
- hasPendingExits() /*throws*/{
2618
- return _uniffiBindgenReactNative.FfiConverterBool.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2619
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_has_pending_exits(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
2620
- }, /*liftString:*/FfiConverterString.lift));
3255
+ async hasPendingExits(asyncOpts_) /*throws*/{
3256
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3257
+ try {
3258
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3259
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_has_pending_exits(uniffiTypeWalletObjectFactory.clonePointer(this));
3260
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_i8, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_i8, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_i8, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_i8, /*liftFunc:*/_uniffiBindgenReactNative.FfiConverterBool.lift.bind(_uniffiBindgenReactNative.FfiConverterBool), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3261
+ } catch (__error) {
3262
+ if (uniffiIsDebug && __error instanceof Error) {
3263
+ __error.stack = __stack;
3264
+ }
3265
+ throw __error;
3266
+ }
2621
3267
  }
2622
3268
 
2623
3269
  /**
2624
3270
  * Get all wallet movements (transaction history)
2625
3271
  */
2626
- history() /*throws*/{
2627
- return FfiConverterArrayTypeMovement.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2628
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_history(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
2629
- }, /*liftString:*/FfiConverterString.lift));
3272
+ async history(asyncOpts_) /*throws*/{
3273
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3274
+ try {
3275
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3276
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_history(uniffiTypeWalletObjectFactory.clonePointer(this));
3277
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeMovement.lift.bind(FfiConverterArrayTypeMovement), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3278
+ } catch (__error) {
3279
+ if (uniffiIsDebug && __error instanceof Error) {
3280
+ __error.stack = __stack;
3281
+ }
3282
+ throw __error;
3283
+ }
3284
+ }
3285
+
3286
+ /**
3287
+ * Get wallet movements filtered by payment method
3288
+ *
3289
+ * # Arguments
3290
+ *
3291
+ * * `payment_method_type` - Type (e.g. "ark", "bitcoin", "invoice", "offer", "lightning_address", "custom")
3292
+ * * `payment_method_value` - Value (e.g. an address or invoice string)
3293
+ */
3294
+ async historyByPaymentMethod(paymentMethodType, paymentMethodValue, asyncOpts_) /*throws*/{
3295
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3296
+ try {
3297
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3298
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_history_by_payment_method(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentMethodType), FfiConverterString.lower(paymentMethodValue));
3299
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeMovement.lift.bind(FfiConverterArrayTypeMovement), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3300
+ } catch (__error) {
3301
+ if (uniffiIsDebug && __error instanceof Error) {
3302
+ __error.stack = __stack;
3303
+ }
3304
+ throw __error;
3305
+ }
2630
3306
  }
2631
3307
 
2632
3308
  /**
@@ -2639,10 +3315,18 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
2639
3315
  *
2640
3316
  * * `vtxo_base64` - Base64-encoded serialized VTXO
2641
3317
  */
2642
- importVtxo(vtxoBase64) /*throws*/{
2643
- uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2644
- (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_import_vtxo(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(vtxoBase64), callStatus);
2645
- }, /*liftString:*/FfiConverterString.lift);
3318
+ async importVtxo(vtxoBase64, asyncOpts_) /*throws*/{
3319
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3320
+ try {
3321
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3322
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_import_vtxo(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(vtxoBase64));
3323
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3324
+ } catch (__error) {
3325
+ if (uniffiIsDebug && __error instanceof Error) {
3326
+ __error.stack = __stack;
3327
+ }
3328
+ throw __error;
3329
+ }
2646
3330
  }
2647
3331
 
2648
3332
  /**
@@ -2652,10 +3336,18 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
2652
3336
  *
2653
3337
  * * `payment_hash` - Payment hash as hex string
2654
3338
  */
2655
- lightningReceiveStatus(paymentHash) /*throws*/{
2656
- return FfiConverterOptionalTypeLightningReceive.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2657
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_lightning_receive_status(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash), callStatus);
2658
- }, /*liftString:*/FfiConverterString.lift));
3339
+ async lightningReceiveStatus(paymentHash, asyncOpts_) /*throws*/{
3340
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3341
+ try {
3342
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3343
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_lightning_receive_status(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash));
3344
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalTypeLightningReceive.lift.bind(FfiConverterOptionalTypeLightningReceive), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3345
+ } catch (__error) {
3346
+ if (uniffiIsDebug && __error instanceof Error) {
3347
+ __error.stack = __stack;
3348
+ }
3349
+ throw __error;
3350
+ }
2659
3351
  }
2660
3352
 
2661
3353
  /**
@@ -2663,10 +3355,18 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
2663
3355
  *
2664
3356
  * Returns exits ready to be drained to onchain wallet.
2665
3357
  */
2666
- listClaimableExits() /*throws*/{
2667
- return FfiConverterArrayTypeExitVtxo.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2668
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_list_claimable_exits(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
2669
- }, /*liftString:*/FfiConverterString.lift));
3358
+ async listClaimableExits(asyncOpts_) /*throws*/{
3359
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3360
+ try {
3361
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3362
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_list_claimable_exits(uniffiTypeWalletObjectFactory.clonePointer(this));
3363
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeExitVtxo.lift.bind(FfiConverterArrayTypeExitVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3364
+ } catch (__error) {
3365
+ if (uniffiIsDebug && __error instanceof Error) {
3366
+ __error.stack = __stack;
3367
+ }
3368
+ throw __error;
3369
+ }
2670
3370
  }
2671
3371
 
2672
3372
  /**
@@ -2698,10 +3398,18 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
2698
3398
  return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_mailbox_identifier(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
2699
3399
  }, /*liftString:*/FfiConverterString.lift));
2700
3400
  }
2701
- maintenance() /*throws*/{
2702
- uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2703
- (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
2704
- }, /*liftString:*/FfiConverterString.lift);
3401
+ async maintenance(asyncOpts_) /*throws*/{
3402
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3403
+ try {
3404
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3405
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance(uniffiTypeWalletObjectFactory.clonePointer(this));
3406
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3407
+ } catch (__error) {
3408
+ if (uniffiIsDebug && __error instanceof Error) {
3409
+ __error.stack = __stack;
3410
+ }
3411
+ throw __error;
3412
+ }
2705
3413
  }
2706
3414
 
2707
3415
  /**
@@ -2710,19 +3418,35 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
2710
3418
  * This schedules refresh operations but doesn't wait for completion.
2711
3419
  * Use this when you want to queue operations without blocking.
2712
3420
  */
2713
- maintenanceDelegated() /*throws*/{
2714
- uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2715
- (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance_delegated(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
2716
- }, /*liftString:*/FfiConverterString.lift);
3421
+ async maintenanceDelegated(asyncOpts_) /*throws*/{
3422
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3423
+ try {
3424
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3425
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance_delegated(uniffiTypeWalletObjectFactory.clonePointer(this));
3426
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3427
+ } catch (__error) {
3428
+ if (uniffiIsDebug && __error instanceof Error) {
3429
+ __error.stack = __stack;
3430
+ }
3431
+ throw __error;
3432
+ }
2717
3433
  }
2718
3434
 
2719
3435
  /**
2720
3436
  * Perform maintenance refresh
2721
3437
  */
2722
- maintenanceRefresh() /*throws*/{
2723
- return FfiConverterOptionalString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2724
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance_refresh(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
2725
- }, /*liftString:*/FfiConverterString.lift));
3438
+ async maintenanceRefresh(asyncOpts_) /*throws*/{
3439
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3440
+ try {
3441
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3442
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance_refresh(uniffiTypeWalletObjectFactory.clonePointer(this));
3443
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalString.lift.bind(FfiConverterOptionalString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3444
+ } catch (__error) {
3445
+ if (uniffiIsDebug && __error instanceof Error) {
3446
+ __error.stack = __stack;
3447
+ }
3448
+ throw __error;
3449
+ }
2726
3450
  }
2727
3451
 
2728
3452
  /**
@@ -2730,19 +3454,35 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
2730
3454
  *
2731
3455
  * More thorough than maintenance() - also syncs onchain wallet and exits.
2732
3456
  */
2733
- maintenanceWithOnchain(onchainWallet) /*throws*/{
2734
- uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2735
- (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterTypeOnchainWallet.lower(onchainWallet), callStatus);
2736
- }, /*liftString:*/FfiConverterString.lift);
3457
+ async maintenanceWithOnchain(onchainWallet, asyncOpts_) /*throws*/{
3458
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3459
+ try {
3460
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3461
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterTypeOnchainWallet.lower(onchainWallet));
3462
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3463
+ } catch (__error) {
3464
+ if (uniffiIsDebug && __error instanceof Error) {
3465
+ __error.stack = __stack;
3466
+ }
3467
+ throw __error;
3468
+ }
2737
3469
  }
2738
3470
 
2739
3471
  /**
2740
3472
  * Perform maintenance with onchain wallet in delegated mode
2741
3473
  */
2742
- maintenanceWithOnchainDelegated(onchainWallet) /*throws*/{
2743
- uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2744
- (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain_delegated(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterTypeOnchainWallet.lower(onchainWallet), callStatus);
2745
- }, /*liftString:*/FfiConverterString.lift);
3474
+ async maintenanceWithOnchainDelegated(onchainWallet, asyncOpts_) /*throws*/{
3475
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3476
+ try {
3477
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3478
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain_delegated(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterTypeOnchainWallet.lower(onchainWallet));
3479
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3480
+ } catch (__error) {
3481
+ if (uniffiIsDebug && __error instanceof Error) {
3482
+ __error.stack = __stack;
3483
+ }
3484
+ throw __error;
3485
+ }
2746
3486
  }
2747
3487
 
2748
3488
  /**
@@ -2750,67 +3490,152 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
2750
3490
  *
2751
3491
  * Returns the round ID if a refresh was scheduled, null otherwise.
2752
3492
  */
2753
- maybeScheduleMaintenanceRefresh() /*throws*/{
2754
- return FfiConverterOptionalUInt32.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2755
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_maybe_schedule_maintenance_refresh(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
2756
- }, /*liftString:*/FfiConverterString.lift));
3493
+ async maybeScheduleMaintenanceRefresh(asyncOpts_) /*throws*/{
3494
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3495
+ try {
3496
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3497
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_maybe_schedule_maintenance_refresh(uniffiTypeWalletObjectFactory.clonePointer(this));
3498
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalUInt32.lift.bind(FfiConverterOptionalUInt32), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3499
+ } catch (__error) {
3500
+ if (uniffiIsDebug && __error instanceof Error) {
3501
+ __error.stack = __stack;
3502
+ }
3503
+ throw __error;
3504
+ }
2757
3505
  }
2758
3506
 
2759
3507
  /**
2760
3508
  * Get the Bitcoin network this wallet is using
2761
3509
  */
2762
- network() /*throws*/{
2763
- return FfiConverterTypeNetwork.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2764
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_network(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
2765
- }, /*liftString:*/FfiConverterString.lift));
2766
- }
2767
- newAddress() /*throws*/{
2768
- return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2769
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_new_address(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
2770
- }, /*liftString:*/FfiConverterString.lift));
3510
+ async network(asyncOpts_) /*throws*/{
3511
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3512
+ try {
3513
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3514
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_network(uniffiTypeWalletObjectFactory.clonePointer(this));
3515
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeNetwork.lift.bind(FfiConverterTypeNetwork), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3516
+ } catch (__error) {
3517
+ if (uniffiIsDebug && __error instanceof Error) {
3518
+ __error.stack = __stack;
3519
+ }
3520
+ throw __error;
3521
+ }
3522
+ }
3523
+ async newAddress(asyncOpts_) /*throws*/{
3524
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3525
+ try {
3526
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3527
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_new_address(uniffiTypeWalletObjectFactory.clonePointer(this));
3528
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3529
+ } catch (__error) {
3530
+ if (uniffiIsDebug && __error instanceof Error) {
3531
+ __error.stack = __stack;
3532
+ }
3533
+ throw __error;
3534
+ }
2771
3535
  }
2772
3536
 
2773
3537
  /**
2774
3538
  * Generate a new address and return it with its index
2775
3539
  */
2776
- newAddressWithIndex() /*throws*/{
2777
- return FfiConverterTypeAddressWithIndex.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2778
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_new_address_with_index(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
2779
- }, /*liftString:*/FfiConverterString.lift));
3540
+ async newAddressWithIndex(asyncOpts_) /*throws*/{
3541
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3542
+ try {
3543
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3544
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_new_address_with_index(uniffiTypeWalletObjectFactory.clonePointer(this));
3545
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeAddressWithIndex.lift.bind(FfiConverterTypeAddressWithIndex), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3546
+ } catch (__error) {
3547
+ if (uniffiIsDebug && __error instanceof Error) {
3548
+ __error.stack = __stack;
3549
+ }
3550
+ throw __error;
3551
+ }
2780
3552
  }
2781
3553
 
2782
3554
  /**
2783
3555
  * Get the timestamp when the next round will start (Unix timestamp in seconds)
2784
3556
  * Returns an error if the server hasn't provided round timing info
2785
3557
  */
2786
- nextRoundStartTime() /*throws*/{
2787
- return _uniffiBindgenReactNative.FfiConverterUInt64.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2788
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_next_round_start_time(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
2789
- }, /*liftString:*/FfiConverterString.lift));
2790
- }
2791
- offboardAll(bitcoinAddress) /*throws*/{
2792
- return FfiConverterTypeOffboardResult.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2793
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_offboard_all(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(bitcoinAddress), callStatus);
2794
- }, /*liftString:*/FfiConverterString.lift));
3558
+ async nextRoundStartTime(asyncOpts_) /*throws*/{
3559
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3560
+ try {
3561
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3562
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_next_round_start_time(uniffiTypeWalletObjectFactory.clonePointer(this));
3563
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/_uniffiBindgenReactNative.FfiConverterUInt64.lift.bind(_uniffiBindgenReactNative.FfiConverterUInt64), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3564
+ } catch (__error) {
3565
+ if (uniffiIsDebug && __error instanceof Error) {
3566
+ __error.stack = __stack;
3567
+ }
3568
+ throw __error;
3569
+ }
2795
3570
  }
2796
3571
 
2797
3572
  /**
2798
- * Offboard specific VTXOs to a Bitcoin address
3573
+ * Get a pull-based notification holder for this wallet.
3574
+ *
3575
+ * Call `next_notification()` in a loop to receive events.
3576
+ * Call `cancel_next_notification_wait()` to unblock a pending wait without
3577
+ * destroying the stream.
2799
3578
  */
2800
- offboardVtxos(vtxoIds, bitcoinAddress) /*throws*/{
2801
- return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2802
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_offboard_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterArrayString.lower(vtxoIds), FfiConverterString.lower(bitcoinAddress), callStatus);
3579
+ notifications() {
3580
+ return FfiConverterTypeNotificationHolder.lift(uniffiCaller.rustCall(/*caller:*/callStatus => {
3581
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_notifications(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
2803
3582
  }, /*liftString:*/FfiConverterString.lift));
2804
3583
  }
2805
- payLightningAddress(lightningAddress, amountSats, comment) /*throws*/{
2806
- return FfiConverterTypeLightningSend.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2807
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_address(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(lightningAddress), _uniffiBindgenReactNative.FfiConverterUInt64.lower(amountSats), FfiConverterOptionalString.lower(comment), callStatus);
2808
- }, /*liftString:*/FfiConverterString.lift));
3584
+ async offboardAll(bitcoinAddress, asyncOpts_) /*throws*/{
3585
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3586
+ try {
3587
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3588
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_offboard_all(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(bitcoinAddress));
3589
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeOffboardResult.lift.bind(FfiConverterTypeOffboardResult), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3590
+ } catch (__error) {
3591
+ if (uniffiIsDebug && __error instanceof Error) {
3592
+ __error.stack = __stack;
3593
+ }
3594
+ throw __error;
3595
+ }
2809
3596
  }
2810
- payLightningInvoice(invoice, amountSats) /*throws*/{
2811
- return FfiConverterTypeLightningSend.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2812
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_invoice(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(invoice), FfiConverterOptionalUInt64.lower(amountSats), callStatus);
2813
- }, /*liftString:*/FfiConverterString.lift));
3597
+
3598
+ /**
3599
+ * Offboard specific VTXOs to a Bitcoin address
3600
+ */
3601
+ async offboardVtxos(vtxoIds, bitcoinAddress, asyncOpts_) /*throws*/{
3602
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3603
+ try {
3604
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3605
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_offboard_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterArrayString.lower(vtxoIds), FfiConverterString.lower(bitcoinAddress));
3606
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3607
+ } catch (__error) {
3608
+ if (uniffiIsDebug && __error instanceof Error) {
3609
+ __error.stack = __stack;
3610
+ }
3611
+ throw __error;
3612
+ }
3613
+ }
3614
+ async payLightningAddress(lightningAddress, amountSats, comment, asyncOpts_) /*throws*/{
3615
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3616
+ try {
3617
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3618
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_address(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(lightningAddress), _uniffiBindgenReactNative.FfiConverterUInt64.lower(amountSats), FfiConverterOptionalString.lower(comment));
3619
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeLightningSend.lift.bind(FfiConverterTypeLightningSend), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3620
+ } catch (__error) {
3621
+ if (uniffiIsDebug && __error instanceof Error) {
3622
+ __error.stack = __stack;
3623
+ }
3624
+ throw __error;
3625
+ }
3626
+ }
3627
+ async payLightningInvoice(invoice, amountSats, asyncOpts_) /*throws*/{
3628
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3629
+ try {
3630
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3631
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_invoice(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(invoice), FfiConverterOptionalUInt64.lower(amountSats));
3632
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeLightningSend.lift.bind(FfiConverterTypeLightningSend), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3633
+ } catch (__error) {
3634
+ if (uniffiIsDebug && __error instanceof Error) {
3635
+ __error.stack = __stack;
3636
+ }
3637
+ throw __error;
3638
+ }
2814
3639
  }
2815
3640
 
2816
3641
  /**
@@ -2821,91 +3646,188 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
2821
3646
  * * `offer` - BOLT12 offer string
2822
3647
  * * `amount_sats` - Optional amount in sats (required if offer doesn't specify amount)
2823
3648
  */
2824
- payLightningOffer(offer, amountSats) /*throws*/{
2825
- return FfiConverterTypeLightningSend.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2826
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_offer(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(offer), FfiConverterOptionalUInt64.lower(amountSats), callStatus);
2827
- }, /*liftString:*/FfiConverterString.lift));
3649
+ async payLightningOffer(offer, amountSats, asyncOpts_) /*throws*/{
3650
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3651
+ try {
3652
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3653
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_offer(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(offer), FfiConverterOptionalUInt64.lower(amountSats));
3654
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeLightningSend.lift.bind(FfiConverterTypeLightningSend), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3655
+ } catch (__error) {
3656
+ if (uniffiIsDebug && __error instanceof Error) {
3657
+ __error.stack = __stack;
3658
+ }
3659
+ throw __error;
3660
+ }
3661
+ }
3662
+
3663
+ /**
3664
+ * DEPRECATED: use `peek_address` instead
3665
+ */
3666
+ async peakAddress(index, asyncOpts_) /*throws*/{
3667
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3668
+ try {
3669
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3670
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_peak_address(uniffiTypeWalletObjectFactory.clonePointer(this), _uniffiBindgenReactNative.FfiConverterUInt32.lower(index));
3671
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3672
+ } catch (__error) {
3673
+ if (uniffiIsDebug && __error instanceof Error) {
3674
+ __error.stack = __stack;
3675
+ }
3676
+ throw __error;
3677
+ }
2828
3678
  }
2829
3679
 
2830
3680
  /**
2831
3681
  * Peek at an address at a specific index
2832
3682
  */
2833
- peakAddress(index) /*throws*/{
2834
- return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2835
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_peak_address(uniffiTypeWalletObjectFactory.clonePointer(this), _uniffiBindgenReactNative.FfiConverterUInt32.lower(index), callStatus);
2836
- }, /*liftString:*/FfiConverterString.lift));
3683
+ async peekAddress(index, asyncOpts_) /*throws*/{
3684
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3685
+ try {
3686
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3687
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_peek_address(uniffiTypeWalletObjectFactory.clonePointer(this), _uniffiBindgenReactNative.FfiConverterUInt32.lower(index));
3688
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3689
+ } catch (__error) {
3690
+ if (uniffiIsDebug && __error instanceof Error) {
3691
+ __error.stack = __stack;
3692
+ }
3693
+ throw __error;
3694
+ }
2837
3695
  }
2838
3696
 
2839
3697
  /**
2840
3698
  * Get all VTXOs that are part of pending boards
2841
3699
  */
2842
- pendingBoardVtxos() /*throws*/{
2843
- return FfiConverterArrayTypeVtxo.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2844
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_board_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
2845
- }, /*liftString:*/FfiConverterString.lift));
3700
+ async pendingBoardVtxos(asyncOpts_) /*throws*/{
3701
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3702
+ try {
3703
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3704
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_board_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this));
3705
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3706
+ } catch (__error) {
3707
+ if (uniffiIsDebug && __error instanceof Error) {
3708
+ __error.stack = __stack;
3709
+ }
3710
+ throw __error;
3711
+ }
2846
3712
  }
2847
3713
 
2848
3714
  /**
2849
3715
  * Get all pending board operations
2850
3716
  */
2851
- pendingBoards() /*throws*/{
2852
- return FfiConverterArrayTypePendingBoard.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2853
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_boards(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
2854
- }, /*liftString:*/FfiConverterString.lift));
3717
+ async pendingBoards(asyncOpts_) /*throws*/{
3718
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3719
+ try {
3720
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3721
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_boards(uniffiTypeWalletObjectFactory.clonePointer(this));
3722
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypePendingBoard.lift.bind(FfiConverterArrayTypePendingBoard), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3723
+ } catch (__error) {
3724
+ if (uniffiIsDebug && __error instanceof Error) {
3725
+ __error.stack = __stack;
3726
+ }
3727
+ throw __error;
3728
+ }
2855
3729
  }
2856
3730
 
2857
3731
  /**
2858
3732
  * Get total amount in pending exits (sats)
2859
3733
  */
2860
- pendingExitsTotalSats() /*throws*/{
2861
- return _uniffiBindgenReactNative.FfiConverterUInt64.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2862
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_exits_total_sats(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
2863
- }, /*liftString:*/FfiConverterString.lift));
3734
+ async pendingExitsTotalSats(asyncOpts_) /*throws*/{
3735
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3736
+ try {
3737
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3738
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_exits_total_sats(uniffiTypeWalletObjectFactory.clonePointer(this));
3739
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/_uniffiBindgenReactNative.FfiConverterUInt64.lift.bind(_uniffiBindgenReactNative.FfiConverterUInt64), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3740
+ } catch (__error) {
3741
+ if (uniffiIsDebug && __error instanceof Error) {
3742
+ __error.stack = __stack;
3743
+ }
3744
+ throw __error;
3745
+ }
2864
3746
  }
2865
3747
 
2866
3748
  /**
2867
3749
  * Get all pending lightning receives
2868
3750
  */
2869
- pendingLightningReceives() /*throws*/{
2870
- return FfiConverterArrayTypeLightningReceive.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2871
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_lightning_receives(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
2872
- }, /*liftString:*/FfiConverterString.lift));
3751
+ async pendingLightningReceives(asyncOpts_) /*throws*/{
3752
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3753
+ try {
3754
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3755
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_lightning_receives(uniffiTypeWalletObjectFactory.clonePointer(this));
3756
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeLightningReceive.lift.bind(FfiConverterArrayTypeLightningReceive), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3757
+ } catch (__error) {
3758
+ if (uniffiIsDebug && __error instanceof Error) {
3759
+ __error.stack = __stack;
3760
+ }
3761
+ throw __error;
3762
+ }
2873
3763
  }
2874
3764
 
2875
3765
  /**
2876
3766
  * Get VTXOs locked in pending Lightning sends
2877
3767
  */
2878
- pendingLightningSendVtxos() /*throws*/{
2879
- return FfiConverterArrayTypeVtxo.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2880
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_lightning_send_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
2881
- }, /*liftString:*/FfiConverterString.lift));
3768
+ async pendingLightningSendVtxos(asyncOpts_) /*throws*/{
3769
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3770
+ try {
3771
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3772
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_lightning_send_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this));
3773
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3774
+ } catch (__error) {
3775
+ if (uniffiIsDebug && __error instanceof Error) {
3776
+ __error.stack = __stack;
3777
+ }
3778
+ throw __error;
3779
+ }
2882
3780
  }
2883
3781
 
2884
3782
  /**
2885
3783
  * Get all pending lightning sends
2886
3784
  */
2887
- pendingLightningSends() /*throws*/{
2888
- return FfiConverterArrayTypeLightningSend.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2889
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_lightning_sends(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
2890
- }, /*liftString:*/FfiConverterString.lift));
3785
+ async pendingLightningSends(asyncOpts_) /*throws*/{
3786
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3787
+ try {
3788
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3789
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_lightning_sends(uniffiTypeWalletObjectFactory.clonePointer(this));
3790
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeLightningSend.lift.bind(FfiConverterArrayTypeLightningSend), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3791
+ } catch (__error) {
3792
+ if (uniffiIsDebug && __error instanceof Error) {
3793
+ __error.stack = __stack;
3794
+ }
3795
+ throw __error;
3796
+ }
2891
3797
  }
2892
3798
 
2893
3799
  /**
2894
3800
  * Get VTXOs being used as inputs in pending rounds
2895
3801
  */
2896
- pendingRoundInputVtxos() /*throws*/{
2897
- return FfiConverterArrayTypeVtxo.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2898
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_round_input_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
2899
- }, /*liftString:*/FfiConverterString.lift));
3802
+ async pendingRoundInputVtxos(asyncOpts_) /*throws*/{
3803
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3804
+ try {
3805
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3806
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_round_input_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this));
3807
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3808
+ } catch (__error) {
3809
+ if (uniffiIsDebug && __error instanceof Error) {
3810
+ __error.stack = __stack;
3811
+ }
3812
+ throw __error;
3813
+ }
2900
3814
  }
2901
3815
 
2902
3816
  /**
2903
3817
  * Get all pending round states
2904
3818
  */
2905
- pendingRoundStates() /*throws*/{
2906
- return FfiConverterArrayTypeRoundState.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2907
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_round_states(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
2908
- }, /*liftString:*/FfiConverterString.lift));
3819
+ async pendingRoundStates(asyncOpts_) /*throws*/{
3820
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3821
+ try {
3822
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3823
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_round_states(uniffiTypeWalletObjectFactory.clonePointer(this));
3824
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeRoundState.lift.bind(FfiConverterArrayTypeRoundState), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3825
+ } catch (__error) {
3826
+ if (uniffiIsDebug && __error instanceof Error) {
3827
+ __error.stack = __stack;
3828
+ }
3829
+ throw __error;
3830
+ }
2909
3831
  }
2910
3832
 
2911
3833
  /**
@@ -2919,10 +3841,18 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
2919
3841
  * * `onchain_wallet` - Onchain wallet for building exit transactions
2920
3842
  * * `fee_rate_sat_per_vb` - Optional fee rate override in sats/vB
2921
3843
  */
2922
- progressExits(onchainWallet, feeRateSatPerVb) /*throws*/{
2923
- return FfiConverterArrayTypeExitProgressStatus.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2924
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_progress_exits(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterTypeOnchainWallet.lower(onchainWallet), FfiConverterOptionalUInt64.lower(feeRateSatPerVb), callStatus);
2925
- }, /*liftString:*/FfiConverterString.lift));
3844
+ async progressExits(onchainWallet, feeRateSatPerVb, asyncOpts_) /*throws*/{
3845
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3846
+ try {
3847
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3848
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_progress_exits(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterTypeOnchainWallet.lower(onchainWallet), FfiConverterOptionalUInt64.lower(feeRateSatPerVb));
3849
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeExitProgressStatus.lift.bind(FfiConverterArrayTypeExitProgressStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3850
+ } catch (__error) {
3851
+ if (uniffiIsDebug && __error instanceof Error) {
3852
+ __error.stack = __stack;
3853
+ }
3854
+ throw __error;
3855
+ }
2926
3856
  }
2927
3857
 
2928
3858
  /**
@@ -2930,19 +3860,35 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
2930
3860
  *
2931
3861
  * Advances the state of all pending rounds. Call periodically.
2932
3862
  */
2933
- progressPendingRounds() /*throws*/{
2934
- uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2935
- (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_progress_pending_rounds(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
2936
- }, /*liftString:*/FfiConverterString.lift);
3863
+ async progressPendingRounds(asyncOpts_) /*throws*/{
3864
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3865
+ try {
3866
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3867
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_progress_pending_rounds(uniffiTypeWalletObjectFactory.clonePointer(this));
3868
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3869
+ } catch (__error) {
3870
+ if (uniffiIsDebug && __error instanceof Error) {
3871
+ __error.stack = __stack;
3872
+ }
3873
+ throw __error;
3874
+ }
2937
3875
  }
2938
3876
 
2939
3877
  /**
2940
3878
  * Get wallet properties
2941
3879
  */
2942
- properties() /*throws*/{
2943
- return FfiConverterTypeWalletProperties.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2944
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_properties(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
2945
- }, /*liftString:*/FfiConverterString.lift));
3880
+ async properties(asyncOpts_) /*throws*/{
3881
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3882
+ try {
3883
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3884
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_properties(uniffiTypeWalletObjectFactory.clonePointer(this));
3885
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeWalletProperties.lift.bind(FfiConverterTypeWalletProperties), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3886
+ } catch (__error) {
3887
+ if (uniffiIsDebug && __error instanceof Error) {
3888
+ __error.stack = __stack;
3889
+ }
3890
+ throw __error;
3891
+ }
2946
3892
  }
2947
3893
 
2948
3894
  /**
@@ -2950,19 +3896,35 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
2950
3896
  *
2951
3897
  * Re-establishes connection if it was lost.
2952
3898
  */
2953
- refreshServer() /*throws*/{
2954
- uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2955
- (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_refresh_server(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
2956
- }, /*liftString:*/FfiConverterString.lift);
3899
+ async refreshServer(asyncOpts_) /*throws*/{
3900
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3901
+ try {
3902
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3903
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_refresh_server(uniffiTypeWalletObjectFactory.clonePointer(this));
3904
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3905
+ } catch (__error) {
3906
+ if (uniffiIsDebug && __error instanceof Error) {
3907
+ __error.stack = __stack;
3908
+ }
3909
+ throw __error;
3910
+ }
2957
3911
  }
2958
3912
 
2959
3913
  /**
2960
3914
  * Refresh specific VTXOs
2961
3915
  */
2962
- refreshVtxos(vtxoIds) /*throws*/{
2963
- return FfiConverterOptionalString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2964
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterArrayString.lower(vtxoIds), callStatus);
2965
- }, /*liftString:*/FfiConverterString.lift));
3916
+ async refreshVtxos(vtxoIds, asyncOpts_) /*throws*/{
3917
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3918
+ try {
3919
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3920
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterArrayString.lower(vtxoIds));
3921
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalString.lift.bind(FfiConverterOptionalString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3922
+ } catch (__error) {
3923
+ if (uniffiIsDebug && __error instanceof Error) {
3924
+ __error.stack = __stack;
3925
+ }
3926
+ throw __error;
3927
+ }
2966
3928
  }
2967
3929
 
2968
3930
  /**
@@ -2970,20 +3932,44 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
2970
3932
  *
2971
3933
  * Returns the round state if a refresh was scheduled, null otherwise.
2972
3934
  */
2973
- refreshVtxosDelegated(vtxoIds) /*throws*/{
2974
- return FfiConverterOptionalTypeRoundState.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2975
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos_delegated(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterArrayString.lower(vtxoIds), callStatus);
2976
- }, /*liftString:*/FfiConverterString.lift));
2977
- }
2978
- sendArkoorPayment(arkAddress, amountSats) /*throws*/{
2979
- return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2980
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_send_arkoor_payment(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(arkAddress), _uniffiBindgenReactNative.FfiConverterUInt64.lower(amountSats), callStatus);
2981
- }, /*liftString:*/FfiConverterString.lift));
2982
- }
2983
- sendOnchain(address, amountSats) /*throws*/{
2984
- return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2985
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_send_onchain(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(address), _uniffiBindgenReactNative.FfiConverterUInt64.lower(amountSats), callStatus);
2986
- }, /*liftString:*/FfiConverterString.lift));
3935
+ async refreshVtxosDelegated(vtxoIds, asyncOpts_) /*throws*/{
3936
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3937
+ try {
3938
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3939
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos_delegated(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterArrayString.lower(vtxoIds));
3940
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalTypeRoundState.lift.bind(FfiConverterOptionalTypeRoundState), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3941
+ } catch (__error) {
3942
+ if (uniffiIsDebug && __error instanceof Error) {
3943
+ __error.stack = __stack;
3944
+ }
3945
+ throw __error;
3946
+ }
3947
+ }
3948
+ async sendArkoorPayment(arkAddress, amountSats, asyncOpts_) /*throws*/{
3949
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3950
+ try {
3951
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3952
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_send_arkoor_payment(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(arkAddress), _uniffiBindgenReactNative.FfiConverterUInt64.lower(amountSats));
3953
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3954
+ } catch (__error) {
3955
+ if (uniffiIsDebug && __error instanceof Error) {
3956
+ __error.stack = __stack;
3957
+ }
3958
+ throw __error;
3959
+ }
3960
+ }
3961
+ async sendOnchain(address, amountSats, asyncOpts_) /*throws*/{
3962
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3963
+ try {
3964
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3965
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_send_onchain(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(address), _uniffiBindgenReactNative.FfiConverterUInt64.lower(amountSats));
3966
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3967
+ } catch (__error) {
3968
+ if (uniffiIsDebug && __error instanceof Error) {
3969
+ __error.stack = __stack;
3970
+ }
3971
+ throw __error;
3972
+ }
2987
3973
  }
2988
3974
 
2989
3975
  /**
@@ -2998,28 +3984,52 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
2998
3984
  *
2999
3985
  * Returns the signed PSBT
3000
3986
  */
3001
- signExitClaimInputs(psbtBase64) /*throws*/{
3002
- return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
3003
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_sign_exit_claim_inputs(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(psbtBase64), callStatus);
3004
- }, /*liftString:*/FfiConverterString.lift));
3987
+ async signExitClaimInputs(psbtBase64, asyncOpts_) /*throws*/{
3988
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3989
+ try {
3990
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3991
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_sign_exit_claim_inputs(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(psbtBase64));
3992
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3993
+ } catch (__error) {
3994
+ if (uniffiIsDebug && __error instanceof Error) {
3995
+ __error.stack = __stack;
3996
+ }
3997
+ throw __error;
3998
+ }
3005
3999
  }
3006
4000
 
3007
4001
  /**
3008
4002
  * Get all spendable VTXOs
3009
4003
  */
3010
- spendableVtxos() /*throws*/{
3011
- return FfiConverterArrayTypeVtxo.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
3012
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_spendable_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
3013
- }, /*liftString:*/FfiConverterString.lift));
4004
+ async spendableVtxos(asyncOpts_) /*throws*/{
4005
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
4006
+ try {
4007
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
4008
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_spendable_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this));
4009
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
4010
+ } catch (__error) {
4011
+ if (uniffiIsDebug && __error instanceof Error) {
4012
+ __error.stack = __stack;
4013
+ }
4014
+ throw __error;
4015
+ }
3014
4016
  }
3015
4017
 
3016
4018
  /**
3017
4019
  * Start unilateral exit for the entire wallet
3018
4020
  */
3019
- startExitForEntireWallet() /*throws*/{
3020
- uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
3021
- (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_start_exit_for_entire_wallet(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
3022
- }, /*liftString:*/FfiConverterString.lift);
4021
+ async startExitForEntireWallet(asyncOpts_) /*throws*/{
4022
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
4023
+ try {
4024
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
4025
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_start_exit_for_entire_wallet(uniffiTypeWalletObjectFactory.clonePointer(this));
4026
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
4027
+ } catch (__error) {
4028
+ if (uniffiIsDebug && __error instanceof Error) {
4029
+ __error.stack = __stack;
4030
+ }
4031
+ throw __error;
4032
+ }
3023
4033
  }
3024
4034
 
3025
4035
  /**
@@ -3027,10 +4037,18 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
3027
4037
  *
3028
4038
  * Marks specific VTXOs for exit. Call progress_exits() to actually advance them.
3029
4039
  */
3030
- startExitForVtxos(vtxoIds) /*throws*/{
3031
- uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
3032
- (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_start_exit_for_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterArrayString.lower(vtxoIds), callStatus);
3033
- }, /*liftString:*/FfiConverterString.lift);
4040
+ async startExitForVtxos(vtxoIds, asyncOpts_) /*throws*/{
4041
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
4042
+ try {
4043
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
4044
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_start_exit_for_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterArrayString.lower(vtxoIds));
4045
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
4046
+ } catch (__error) {
4047
+ if (uniffiIsDebug && __error instanceof Error) {
4048
+ __error.stack = __stack;
4049
+ }
4050
+ throw __error;
4051
+ }
3034
4052
  }
3035
4053
 
3036
4054
  /**
@@ -3038,33 +4056,65 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
3038
4056
  * Note: Bark's sync() handles errors internally with logging.
3039
4057
  * The Throws annotation is for forward compatibility only.
3040
4058
  */
3041
- sync() /*throws*/{
3042
- uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
3043
- (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_sync(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
3044
- }, /*liftString:*/FfiConverterString.lift);
4059
+ async sync(asyncOpts_) /*throws*/{
4060
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
4061
+ try {
4062
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
4063
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_sync(uniffiTypeWalletObjectFactory.clonePointer(this));
4064
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
4065
+ } catch (__error) {
4066
+ if (uniffiIsDebug && __error instanceof Error) {
4067
+ __error.stack = __stack;
4068
+ }
4069
+ throw __error;
4070
+ }
3045
4071
  }
3046
4072
 
3047
4073
  /**
3048
4074
  * Sync exit state (checks status but doesn't progress)
3049
4075
  */
3050
- syncExits(onchainWallet) /*throws*/{
3051
- uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
3052
- (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_sync_exits(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterTypeOnchainWallet.lower(onchainWallet), callStatus);
3053
- }, /*liftString:*/FfiConverterString.lift);
4076
+ async syncExits(onchainWallet, asyncOpts_) /*throws*/{
4077
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
4078
+ try {
4079
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
4080
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_sync_exits(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterTypeOnchainWallet.lower(onchainWallet));
4081
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
4082
+ } catch (__error) {
4083
+ if (uniffiIsDebug && __error instanceof Error) {
4084
+ __error.stack = __stack;
4085
+ }
4086
+ throw __error;
4087
+ }
3054
4088
  }
3055
4089
 
3056
4090
  /**
3057
4091
  * Sync pending board transactions
3058
4092
  */
3059
- syncPendingBoards() /*throws*/{
3060
- uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
3061
- (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_sync_pending_boards(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
3062
- }, /*liftString:*/FfiConverterString.lift);
3063
- }
3064
- tryClaimAllLightningReceives(wait) /*throws*/{
3065
- uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
3066
- (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_try_claim_all_lightning_receives(uniffiTypeWalletObjectFactory.clonePointer(this), _uniffiBindgenReactNative.FfiConverterBool.lower(wait), callStatus);
3067
- }, /*liftString:*/FfiConverterString.lift);
4093
+ async syncPendingBoards(asyncOpts_) /*throws*/{
4094
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
4095
+ try {
4096
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
4097
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_sync_pending_boards(uniffiTypeWalletObjectFactory.clonePointer(this));
4098
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
4099
+ } catch (__error) {
4100
+ if (uniffiIsDebug && __error instanceof Error) {
4101
+ __error.stack = __stack;
4102
+ }
4103
+ throw __error;
4104
+ }
4105
+ }
4106
+ async tryClaimAllLightningReceives(wait, asyncOpts_) /*throws*/{
4107
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
4108
+ try {
4109
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
4110
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_try_claim_all_lightning_receives(uniffiTypeWalletObjectFactory.clonePointer(this), _uniffiBindgenReactNative.FfiConverterBool.lower(wait));
4111
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeLightningReceive.lift.bind(FfiConverterArrayTypeLightningReceive), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
4112
+ } catch (__error) {
4113
+ if (uniffiIsDebug && __error instanceof Error) {
4114
+ __error.stack = __stack;
4115
+ }
4116
+ throw __error;
4117
+ }
3068
4118
  }
3069
4119
 
3070
4120
  /**
@@ -3075,10 +4125,18 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
3075
4125
  * * `payment_hash` - Payment hash as hex string
3076
4126
  * * `wait` - Whether to wait for claim to complete
3077
4127
  */
3078
- tryClaimLightningReceive(paymentHash, wait) /*throws*/{
3079
- uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
3080
- (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_try_claim_lightning_receive(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash), _uniffiBindgenReactNative.FfiConverterBool.lower(wait), callStatus);
3081
- }, /*liftString:*/FfiConverterString.lift);
4128
+ async tryClaimLightningReceive(paymentHash, wait, asyncOpts_) /*throws*/{
4129
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
4130
+ try {
4131
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
4132
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_try_claim_lightning_receive(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash), _uniffiBindgenReactNative.FfiConverterBool.lower(wait));
4133
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
4134
+ } catch (__error) {
4135
+ if (uniffiIsDebug && __error instanceof Error) {
4136
+ __error.stack = __stack;
4137
+ }
4138
+ throw __error;
4139
+ }
3082
4140
  }
3083
4141
 
3084
4142
  /**
@@ -3088,15 +4146,31 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
3088
4146
  * belongs to the currently connected Ark server.
3089
4147
  * For basic format validation only, use validate_ark_address() instead.
3090
4148
  */
3091
- validateArkoorAddress(address) /*throws*/{
3092
- return _uniffiBindgenReactNative.FfiConverterBool.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
3093
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_validate_arkoor_address(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(address), callStatus);
3094
- }, /*liftString:*/FfiConverterString.lift));
3095
- }
3096
- vtxos() /*throws*/{
3097
- return FfiConverterArrayTypeVtxo.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
3098
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
3099
- }, /*liftString:*/FfiConverterString.lift));
4149
+ async validateArkoorAddress(address, asyncOpts_) /*throws*/{
4150
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
4151
+ try {
4152
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
4153
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_validate_arkoor_address(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(address));
4154
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_i8, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_i8, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_i8, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_i8, /*liftFunc:*/_uniffiBindgenReactNative.FfiConverterBool.lift.bind(_uniffiBindgenReactNative.FfiConverterBool), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
4155
+ } catch (__error) {
4156
+ if (uniffiIsDebug && __error instanceof Error) {
4157
+ __error.stack = __stack;
4158
+ }
4159
+ throw __error;
4160
+ }
4161
+ }
4162
+ async vtxos(asyncOpts_) /*throws*/{
4163
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
4164
+ try {
4165
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
4166
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this));
4167
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
4168
+ } catch (__error) {
4169
+ if (uniffiIsDebug && __error instanceof Error) {
4170
+ __error.stack = __stack;
4171
+ }
4172
+ throw __error;
4173
+ }
3100
4174
  }
3101
4175
 
3102
4176
  /**
@@ -3209,6 +4283,9 @@ const FfiConverterArrayTypeVtxo = new _uniffiBindgenReactNative.FfiConverterArra
3209
4283
  // FfiConverter for Array<string>
3210
4284
  const FfiConverterArrayString = new _uniffiBindgenReactNative.FfiConverterArray(FfiConverterString);
3211
4285
 
4286
+ // FfiConverter for WalletNotification | undefined
4287
+ const FfiConverterOptionalTypeWalletNotification = new _uniffiBindgenReactNative.FfiConverterOptional(FfiConverterTypeWalletNotification);
4288
+
3212
4289
  // FfiConverter for Array<string> | undefined
3213
4290
  const FfiConverterOptionalArrayString = new _uniffiBindgenReactNative.FfiConverterOptional(FfiConverterArrayString);
3214
4291
 
@@ -3242,115 +4319,127 @@ function uniffiEnsureInitialized() {
3242
4319
  if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_func_validate_mnemonic() !== 2707) {
3243
4320
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_validate_mnemonic");
3244
4321
  }
3245
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_balance() !== 22016) {
4322
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_notificationholder_cancel_next_notification_wait() !== 48074) {
4323
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_notificationholder_cancel_next_notification_wait");
4324
+ }
4325
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_notificationholder_next_notification() !== 10262) {
4326
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_notificationholder_next_notification");
4327
+ }
4328
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_balance() !== 24090) {
3246
4329
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_balance");
3247
4330
  }
3248
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_new_address() !== 41946) {
4331
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_new_address() !== 19984) {
3249
4332
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_new_address");
3250
4333
  }
3251
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_send() !== 33716) {
4334
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_send() !== 11542) {
3252
4335
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_send");
3253
4336
  }
3254
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_sync() !== 30454) {
4337
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_sync() !== 16676) {
3255
4338
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_sync");
3256
4339
  }
3257
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_exits_claimable_at_height() !== 24892) {
4340
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_exits_claimable_at_height() !== 13253) {
3258
4341
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_all_exits_claimable_at_height");
3259
4342
  }
3260
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_vtxos() !== 48937) {
4343
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_vtxos() !== 31) {
3261
4344
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_all_vtxos");
3262
4345
  }
3263
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_ark_info() !== 36948) {
4346
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_ark_info() !== 15972) {
3264
4347
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_ark_info");
3265
4348
  }
3266
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_balance() !== 11221) {
4349
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_balance() !== 5493) {
3267
4350
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_balance");
3268
4351
  }
3269
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_all() !== 41101) {
4352
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_all() !== 20836) {
3270
4353
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_board_all");
3271
4354
  }
3272
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_amount() !== 42163) {
4355
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_amount() !== 42039) {
3273
4356
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_board_amount");
3274
4357
  }
3275
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice() !== 64551) {
4358
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice() !== 24463) {
3276
4359
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice");
3277
4360
  }
3278
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_broadcast_tx() !== 32920) {
4361
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_broadcast_tx() !== 31354) {
3279
4362
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_broadcast_tx");
3280
4363
  }
3281
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds() !== 8095) {
4364
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds() !== 44373) {
3282
4365
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds");
3283
4366
  }
3284
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round() !== 3417) {
4367
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round() !== 11047) {
3285
4368
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round");
3286
4369
  }
3287
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment() !== 13160) {
4370
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment() !== 24026) {
3288
4371
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment");
3289
4372
  }
3290
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_claimable_lightning_receive_balance_sats() !== 64974) {
4373
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_claimable_lightning_receive_balance_sats() !== 22912) {
3291
4374
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_claimable_lightning_receive_balance_sats");
3292
4375
  }
3293
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_config() !== 57616) {
4376
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_config() !== 55585) {
3294
4377
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_config");
3295
4378
  }
3296
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_drain_exits() !== 16953) {
4379
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_drain_exits() !== 50942) {
3297
4380
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_drain_exits");
3298
4381
  }
3299
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee() !== 59472) {
4382
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee() !== 21849) {
3300
4383
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee");
3301
4384
  }
3302
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee() !== 2303) {
4385
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee() !== 45832) {
3303
4386
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee");
3304
4387
  }
3305
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee() !== 1211) {
4388
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee() !== 44983) {
3306
4389
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee");
3307
4390
  }
3308
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee() !== 31248) {
4391
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_all_fee() !== 30297) {
4392
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_all_fee");
4393
+ }
4394
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee() !== 59237) {
3309
4395
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee");
3310
4396
  }
3311
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee() !== 57066) {
4397
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee() !== 15211) {
3312
4398
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee");
3313
4399
  }
3314
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_send_onchain_fee() !== 31326) {
4400
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_send_onchain_fee() !== 53679) {
3315
4401
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_send_onchain_fee");
3316
4402
  }
3317
4403
  if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_fingerprint() !== 60041) {
3318
4404
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_fingerprint");
3319
4405
  }
3320
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_status() !== 27512) {
4406
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_status() !== 18529) {
3321
4407
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_exit_status");
3322
4408
  }
3323
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_vtxos() !== 24545) {
4409
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_vtxos() !== 54522) {
3324
4410
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_exit_vtxos");
3325
4411
  }
3326
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_expiring_vtxos() !== 19482) {
4412
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_expiring_vtxos() !== 55353) {
3327
4413
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_expiring_vtxos");
3328
4414
  }
3329
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_first_expiring_vtxo_blockheight() !== 41108) {
4415
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_first_expiring_vtxo_blockheight() !== 24067) {
3330
4416
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_first_expiring_vtxo_blockheight");
3331
4417
  }
3332
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_next_required_refresh_blockheight() !== 29762) {
4418
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_next_required_refresh_blockheight() !== 57380) {
3333
4419
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_next_required_refresh_blockheight");
3334
4420
  }
3335
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxo_by_id() !== 41126) {
4421
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxo_by_id() !== 10372) {
3336
4422
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_vtxo_by_id");
3337
4423
  }
3338
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxos_to_refresh() !== 55019) {
4424
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxos_to_refresh() !== 22136) {
3339
4425
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_vtxos_to_refresh");
3340
4426
  }
3341
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_has_pending_exits() !== 40981) {
4427
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_has_pending_exits() !== 57567) {
3342
4428
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_has_pending_exits");
3343
4429
  }
3344
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_history() !== 21880) {
4430
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_history() !== 15574) {
3345
4431
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_history");
3346
4432
  }
3347
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_import_vtxo() !== 31318) {
4433
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method() !== 61615) {
4434
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method");
4435
+ }
4436
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_import_vtxo() !== 3547) {
3348
4437
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_import_vtxo");
3349
4438
  }
3350
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status() !== 26106) {
4439
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status() !== 7557) {
3351
4440
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status");
3352
4441
  }
3353
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits() !== 62145) {
4442
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits() !== 11227) {
3354
4443
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits");
3355
4444
  }
3356
4445
  if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization() !== 8915) {
@@ -3359,151 +4448,157 @@ function uniffiEnsureInitialized() {
3359
4448
  if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier() !== 32893) {
3360
4449
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier");
3361
4450
  }
3362
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance() !== 9626) {
4451
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance() !== 53276) {
3363
4452
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance");
3364
4453
  }
3365
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_delegated() !== 27348) {
4454
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_delegated() !== 43852) {
3366
4455
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance_delegated");
3367
4456
  }
3368
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh() !== 29994) {
4457
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh() !== 10551) {
3369
4458
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh");
3370
4459
  }
3371
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain() !== 335) {
4460
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain() !== 38002) {
3372
4461
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain");
3373
4462
  }
3374
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated() !== 7216) {
4463
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated() !== 17750) {
3375
4464
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated");
3376
4465
  }
3377
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_maybe_schedule_maintenance_refresh() !== 32397) {
4466
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_maybe_schedule_maintenance_refresh() !== 11223) {
3378
4467
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maybe_schedule_maintenance_refresh");
3379
4468
  }
3380
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_network() !== 33991) {
4469
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_network() !== 9541) {
3381
4470
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_network");
3382
4471
  }
3383
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address() !== 25174) {
4472
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address() !== 49689) {
3384
4473
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_new_address");
3385
4474
  }
3386
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address_with_index() !== 52446) {
4475
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address_with_index() !== 51943) {
3387
4476
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_new_address_with_index");
3388
4477
  }
3389
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_next_round_start_time() !== 55091) {
4478
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_next_round_start_time() !== 51623) {
3390
4479
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_next_round_start_time");
3391
4480
  }
3392
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_all() !== 61123) {
4481
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_notifications() !== 32641) {
4482
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_notifications");
4483
+ }
4484
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_all() !== 32138) {
3393
4485
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_offboard_all");
3394
4486
  }
3395
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos() !== 19001) {
4487
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos() !== 3097) {
3396
4488
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos");
3397
4489
  }
3398
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address() !== 39952) {
4490
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address() !== 42228) {
3399
4491
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address");
3400
4492
  }
3401
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice() !== 31286) {
4493
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice() !== 27095) {
3402
4494
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice");
3403
4495
  }
3404
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer() !== 37035) {
4496
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer() !== 28769) {
3405
4497
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer");
3406
4498
  }
3407
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_peak_address() !== 23469) {
4499
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_peak_address() !== 58941) {
3408
4500
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_peak_address");
3409
4501
  }
3410
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos() !== 58145) {
4502
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_peek_address() !== 43710) {
4503
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_peek_address");
4504
+ }
4505
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos() !== 13395) {
3411
4506
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos");
3412
4507
  }
3413
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_boards() !== 36109) {
4508
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_boards() !== 62067) {
3414
4509
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_boards");
3415
4510
  }
3416
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_exits_total_sats() !== 47419) {
4511
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_exits_total_sats() !== 46977) {
3417
4512
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_exits_total_sats");
3418
4513
  }
3419
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_receives() !== 14491) {
4514
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_receives() !== 35932) {
3420
4515
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_lightning_receives");
3421
4516
  }
3422
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_send_vtxos() !== 57377) {
4517
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_send_vtxos() !== 55533) {
3423
4518
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_lightning_send_vtxos");
3424
4519
  }
3425
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_sends() !== 51186) {
4520
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_sends() !== 26660) {
3426
4521
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_lightning_sends");
3427
4522
  }
3428
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos() !== 20996) {
4523
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos() !== 21866) {
3429
4524
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos");
3430
4525
  }
3431
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_states() !== 19530) {
4526
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_states() !== 35008) {
3432
4527
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_round_states");
3433
4528
  }
3434
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_exits() !== 43190) {
4529
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_exits() !== 35774) {
3435
4530
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_progress_exits");
3436
4531
  }
3437
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_pending_rounds() !== 17062) {
4532
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_pending_rounds() !== 1264) {
3438
4533
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_progress_pending_rounds");
3439
4534
  }
3440
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_properties() !== 34715) {
4535
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_properties() !== 19786) {
3441
4536
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_properties");
3442
4537
  }
3443
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_server() !== 705) {
4538
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_server() !== 32632) {
3444
4539
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_refresh_server");
3445
4540
  }
3446
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos() !== 720) {
4541
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos() !== 16414) {
3447
4542
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos");
3448
4543
  }
3449
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated() !== 44124) {
4544
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated() !== 28232) {
3450
4545
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated");
3451
4546
  }
3452
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment() !== 8472) {
4547
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment() !== 22412) {
3453
4548
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment");
3454
4549
  }
3455
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_onchain() !== 51641) {
4550
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_onchain() !== 11074) {
3456
4551
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_send_onchain");
3457
4552
  }
3458
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_sign_exit_claim_inputs() !== 31570) {
4553
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_sign_exit_claim_inputs() !== 60570) {
3459
4554
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sign_exit_claim_inputs");
3460
4555
  }
3461
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_spendable_vtxos() !== 48976) {
4556
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_spendable_vtxos() !== 59499) {
3462
4557
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_spendable_vtxos");
3463
4558
  }
3464
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_entire_wallet() !== 50435) {
4559
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_entire_wallet() !== 5830) {
3465
4560
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_start_exit_for_entire_wallet");
3466
4561
  }
3467
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos() !== 12580) {
4562
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos() !== 60703) {
3468
4563
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos");
3469
4564
  }
3470
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync() !== 3312) {
4565
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync() !== 40752) {
3471
4566
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sync");
3472
4567
  }
3473
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_exits() !== 5469) {
4568
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_exits() !== 64538) {
3474
4569
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sync_exits");
3475
4570
  }
3476
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards() !== 8863) {
4571
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards() !== 35491) {
3477
4572
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards");
3478
4573
  }
3479
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives() !== 53132) {
4574
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives() !== 33011) {
3480
4575
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives");
3481
4576
  }
3482
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive() !== 60644) {
4577
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive() !== 51478) {
3483
4578
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive");
3484
4579
  }
3485
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address() !== 16628) {
4580
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address() !== 52352) {
3486
4581
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address");
3487
4582
  }
3488
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxos() !== 16778) {
4583
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxos() !== 24992) {
3489
4584
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_vtxos");
3490
4585
  }
3491
4586
  if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_constructor_onchainwallet_custom() !== 33851) {
3492
4587
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_onchainwallet_custom");
3493
4588
  }
3494
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_constructor_onchainwallet_default() !== 27781) {
4589
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_constructor_onchainwallet_default() !== 37437) {
3495
4590
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_onchainwallet_default");
3496
4591
  }
3497
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_create() !== 28953) {
4592
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_create() !== 5143) {
3498
4593
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_wallet_create");
3499
4594
  }
3500
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_create_with_onchain() !== 8743) {
4595
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_create_with_onchain() !== 34242) {
3501
4596
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_wallet_create_with_onchain");
3502
4597
  }
3503
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open() !== 34910) {
4598
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open() !== 31794) {
3504
4599
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_wallet_open");
3505
4600
  }
3506
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open_with_onchain() !== 2455) {
4601
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open_with_onchain() !== 22896) {
3507
4602
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_wallet_open_with_onchain");
3508
4603
  }
3509
4604
  if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance() !== 17287) {
@@ -3550,11 +4645,13 @@ var _default = exports.default = Object.freeze({
3550
4645
  FfiConverterTypeExitProgressStatus,
3551
4646
  FfiConverterTypeExitTransactionStatus,
3552
4647
  FfiConverterTypeExitVtxo,
4648
+ FfiConverterTypeFeeEstimate,
3553
4649
  FfiConverterTypeLightningInvoice,
3554
4650
  FfiConverterTypeLightningReceive,
3555
4651
  FfiConverterTypeLightningSend,
3556
4652
  FfiConverterTypeMovement,
3557
4653
  FfiConverterTypeNetwork,
4654
+ FfiConverterTypeNotificationHolder,
3558
4655
  FfiConverterTypeOffboardResult,
3559
4656
  FfiConverterTypeOnchainBalance,
3560
4657
  FfiConverterTypeOnchainWallet,
@@ -3563,6 +4660,7 @@ var _default = exports.default = Object.freeze({
3563
4660
  FfiConverterTypeRoundState,
3564
4661
  FfiConverterTypeVtxo,
3565
4662
  FfiConverterTypeWallet,
4663
+ FfiConverterTypeWalletNotification,
3566
4664
  FfiConverterTypeWalletProperties
3567
4665
  }
3568
4666
  });