@secondts/bark-react-native 0.1.2-beta.31 → 0.1.2-beta.32
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/cpp/generated/bark.cpp +45 -3
- package/cpp/generated/bark.hpp +2 -0
- package/lib/commonjs/generated/bark-ffi.js.map +1 -1
- package/lib/commonjs/generated/bark.js +24 -4
- 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 +24 -4
- package/lib/module/generated/bark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts +3 -1
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark.d.ts +28 -4
- package/lib/typescript/commonjs/src/generated/bark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark-ffi.d.ts +3 -1
- package/lib/typescript/module/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark.d.ts +28 -4
- package/lib/typescript/module/src/generated/bark.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/generated/bark-ffi.ts +9 -1
- package/src/generated/bark.ts +69 -6
|
@@ -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;;AAilBA;AACA;AACA;AACA;AACA;AACA,MAAMA,MAAmC,GAAGA,CAAA,KACzCC,UAAU,CAASC,UAAU;AAChC,eAAeF,MAAM;;AAErB;;AA8JA;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":[]}
|
|
@@ -2474,13 +2474,14 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2474
2474
|
*
|
|
2475
2475
|
* # Arguments
|
|
2476
2476
|
*
|
|
2477
|
-
* * `
|
|
2477
|
+
* * `address` - Destination address for the offboard
|
|
2478
|
+
* * `vtxo_ids` - VTXOs to offboard
|
|
2478
2479
|
*
|
|
2479
2480
|
* Returns the estimated fee in sats
|
|
2480
2481
|
*/
|
|
2481
|
-
estimateOffboardFee(
|
|
2482
|
+
estimateOffboardFee(address, vtxoIds) /*throws*/{
|
|
2482
2483
|
return FfiConverterUInt64.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
2483
|
-
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_offboard_fee(uniffiTypeWalletObjectFactory.clonePointer(this),
|
|
2484
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_offboard_fee(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(address), FfiConverterArrayString.lower(vtxoIds), callStatus);
|
|
2484
2485
|
}, /*liftString:*/FfiConverterString.lift));
|
|
2485
2486
|
}
|
|
2486
2487
|
|
|
@@ -2499,6 +2500,22 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2499
2500
|
}, /*liftString:*/FfiConverterString.lift));
|
|
2500
2501
|
}
|
|
2501
2502
|
|
|
2503
|
+
/**
|
|
2504
|
+
* Estimate the fee for a send onchain operation
|
|
2505
|
+
*
|
|
2506
|
+
* # Arguments
|
|
2507
|
+
*
|
|
2508
|
+
* * `address` - Destination address
|
|
2509
|
+
* * `amount_sats` - Amount to send in sats
|
|
2510
|
+
*
|
|
2511
|
+
* Returns the estimated fee in sats
|
|
2512
|
+
*/
|
|
2513
|
+
estimateSendOnchainFee(address, amountSats) /*throws*/{
|
|
2514
|
+
return FfiConverterUInt64.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
2515
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_send_onchain_fee(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(address), FfiConverterUInt64.lower(amountSats), callStatus);
|
|
2516
|
+
}, /*liftString:*/FfiConverterString.lift));
|
|
2517
|
+
}
|
|
2518
|
+
|
|
2502
2519
|
/**
|
|
2503
2520
|
* Get the wallet's BIP32 fingerprint
|
|
2504
2521
|
*/
|
|
@@ -3277,12 +3294,15 @@ function uniffiEnsureInitialized() {
|
|
|
3277
3294
|
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee() !== 1211) {
|
|
3278
3295
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee");
|
|
3279
3296
|
}
|
|
3280
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee() !==
|
|
3297
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee() !== 31248) {
|
|
3281
3298
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee");
|
|
3282
3299
|
}
|
|
3283
3300
|
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee() !== 57066) {
|
|
3284
3301
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee");
|
|
3285
3302
|
}
|
|
3303
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_send_onchain_fee() !== 31326) {
|
|
3304
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_send_onchain_fee");
|
|
3305
|
+
}
|
|
3286
3306
|
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_fingerprint() !== 60041) {
|
|
3287
3307
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_fingerprint");
|
|
3288
3308
|
}
|