@secondts/bark-react-native 0.19.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.
- package/README.md +1 -1
- package/cpp/generated/bark.cpp +36 -0
- package/cpp/generated/bark.hpp +2 -0
- package/lib/commonjs/generated/bark-ffi.js.map +1 -1
- package/lib/commonjs/generated/bark.js +25 -0
- package/lib/commonjs/generated/bark.js.map +1 -1
- package/lib/module/generated/bark-ffi.js.map +1 -1
- package/lib/module/generated/bark.js +25 -0
- package/lib/module/generated/bark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts +2 -0
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark.d.ts +22 -0
- package/lib/typescript/commonjs/src/generated/bark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark-ffi.d.ts +2 -0
- package/lib/typescript/module/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark.d.ts +22 -0
- package/lib/typescript/module/src/generated/bark.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/generated/bark-ffi.ts +5 -0
- package/src/generated/bark.ts +60 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getter","globalThis","NativeBark","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/bark-ffi.ts"],"mappings":";;AAAA;AACA;;AAEA;AACA;AACA;;
|
|
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 {
|
|
@@ -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
|
}
|