@secondts/bark-react-native 0.12.1 → 0.13.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 +31 -1
- 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 +31 -1
- 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 +30 -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 +30 -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 +72 -1
|
@@ -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;;AAgvBA;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":[]}
|
|
@@ -2851,6 +2851,14 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2851
2851
|
throw __error;
|
|
2852
2852
|
}
|
|
2853
2853
|
}
|
|
2854
|
+
|
|
2855
|
+
/**
|
|
2856
|
+
* Import a VTXO from its serialized form (hex or base64).
|
|
2857
|
+
*
|
|
2858
|
+
* The parameter keeps its historical `vtxo_base64` name for foreign
|
|
2859
|
+
* binding compatibility (uniffi exposes parameter names), but hex as
|
|
2860
|
+
* returned by [`Wallet::vtxo_encoded`] is accepted too.
|
|
2861
|
+
*/
|
|
2854
2862
|
async importVtxo(vtxoBase64, asyncOpts_) /*throws*/{
|
|
2855
2863
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2856
2864
|
try {
|
|
@@ -3532,6 +3540,25 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3532
3540
|
throw __error;
|
|
3533
3541
|
}
|
|
3534
3542
|
}
|
|
3543
|
+
|
|
3544
|
+
/**
|
|
3545
|
+
* Hex-encoded serialization of the full VTXO (genesis chain included),
|
|
3546
|
+
* re-importable via [`Wallet::import_vtxo`]. Mirrors bark-rest
|
|
3547
|
+
* `GET /vtxos/{id}/encoded`.
|
|
3548
|
+
*/
|
|
3549
|
+
async vtxoEncoded(vtxoId, asyncOpts_) /*throws*/{
|
|
3550
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3551
|
+
try {
|
|
3552
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3553
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_vtxo_encoded(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(vtxoId));
|
|
3554
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3555
|
+
} catch (__error) {
|
|
3556
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3557
|
+
__error.stack = __stack;
|
|
3558
|
+
}
|
|
3559
|
+
throw __error;
|
|
3560
|
+
}
|
|
3561
|
+
}
|
|
3535
3562
|
async vtxos(asyncOpts_) /*throws*/{
|
|
3536
3563
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3537
3564
|
try {
|
|
@@ -3859,7 +3886,7 @@ function uniffiEnsureInitialized() {
|
|
|
3859
3886
|
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method() !== 11845) {
|
|
3860
3887
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method");
|
|
3861
3888
|
}
|
|
3862
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_import_vtxo() !==
|
|
3889
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_import_vtxo() !== 48135) {
|
|
3863
3890
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_import_vtxo");
|
|
3864
3891
|
}
|
|
3865
3892
|
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid() !== 31079) {
|
|
@@ -4015,6 +4042,9 @@ function uniffiEnsureInitialized() {
|
|
|
4015
4042
|
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address() !== 10861) {
|
|
4016
4043
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address");
|
|
4017
4044
|
}
|
|
4045
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxo_encoded() !== 25637) {
|
|
4046
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_vtxo_encoded");
|
|
4047
|
+
}
|
|
4018
4048
|
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxos() !== 33207) {
|
|
4019
4049
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_vtxos");
|
|
4020
4050
|
}
|