@secondts/bark-react-native 0.18.0 → 0.20.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.
@@ -1 +1 @@
1
- {"version":3,"names":["getter","globalThis","NativeBark","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/bark-ffi.ts"],"mappings":";;AAAA;AACA;;AAEA;AACA;AACA;;AAwyBA;AACA;AACA;AACA;AACA;AACA,MAAMA,MAAmC,GAAGA,CAAA,KACzCC,UAAU,CAASC,UAAU;AAChC,eAAeF,MAAM;;AAErB;;AAwKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMG,8CAGL,GAAG,IAAI;AACR,MAAMC,mCAGL,GAAG,IAAI","ignoreList":[]}
1
+ {"version":3,"names":["getter","globalThis","NativeBark","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/bark-ffi.ts"],"mappings":";;AAAA;AACA;;AAEA;AACA;AACA;;AA6yBA;AACA;AACA;AACA;AACA;AACA,MAAMA,MAAmC,GAAGA,CAAA,KACzCC,UAAU,CAASC,UAAU;AAChC,eAAeF,MAAM;;AAErB;;AAwKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMG,8CAGL,GAAG,IAAI;AACR,MAAMC,mCAGL,GAAG,IAAI","ignoreList":[]}
@@ -4347,6 +4347,28 @@ export class OnchainWallet extends UniffiAbstractObject {
4347
4347
  throw __error;
4348
4348
  }
4349
4349
  }
4350
+
4351
+ /**
4352
+ * Discover the wallet's pre-existing on-chain history. Run once after
4353
+ * restoring a wallet from a mnemonic: `sync` only covers addresses this
4354
+ * wallet instance has already revealed, so it never finds transactions
4355
+ * made by a previous incarnation. Gap-limited full scan on esplora
4356
+ * (`birthday_height` is ignored there), block scan from `birthday_height`
4357
+ * on bitcoind. Returns the total balance in sats afterwards.
4358
+ */
4359
+ async initialScan(birthdayHeight, asyncOpts_) /*throws*/{
4360
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
4361
+ try {
4362
+ return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
4363
+ return nativeModule().ubrn_uniffi_bark_ffi_fn_method_onchainwallet_initial_scan(uniffiTypeOnchainWalletObjectFactory.clonePointer(this), FfiConverterOptionalUInt32.lower(birthdayHeight));
4364
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterUInt64.lift.bind(FfiConverterUInt64), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
4365
+ } catch (__error) {
4366
+ if (uniffiIsDebug && __error instanceof Error) {
4367
+ __error.stack = __stack;
4368
+ }
4369
+ throw __error;
4370
+ }
4371
+ }
4350
4372
  async newAddress(asyncOpts_) /*throws*/{
4351
4373
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
4352
4374
  try {
@@ -4496,7 +4518,7 @@ const FfiConverterTypeOnchainWallet = new FfiConverterObject(uniffiTypeOnchainWa
4496
4518
  *
4497
4519
  * Wraps `core::Wallet` and adds:
4498
4520
  * - `run_async` runtime offload on every entry point
4499
- * - mailbox processor task + cancellation on drop
4521
+ * - daemon shutdown on drop
4500
4522
  * - LNURL `pay_lightning_address`
4501
4523
  * - Daemon control methods
4502
4524
  * - Notification holder
@@ -4512,7 +4534,7 @@ const FfiConverterTypeOnchainWallet = new FfiConverterObject(uniffiTypeOnchainWa
4512
4534
  *
4513
4535
  * Wraps `core::Wallet` and adds:
4514
4536
  * - `run_async` runtime offload on every entry point
4515
- * - mailbox processor task + cancellation on drop
4537
+ * - daemon shutdown on drop
4516
4538
  * - LNURL `pay_lightning_address`
4517
4539
  * - Daemon control methods
4518
4540
  * - Notification holder
@@ -6095,6 +6117,9 @@ function uniffiEnsureInitialized() {
6095
6117
  if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_fee_rates() !== 30741) {
6096
6118
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_fee_rates");
6097
6119
  }
6120
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_initial_scan() !== 19010) {
6121
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_initial_scan");
6122
+ }
6098
6123
  if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_new_address() !== 7405) {
6099
6124
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_new_address");
6100
6125
  }