@secondts/bark-react-native 0.3.0-beta.1 → 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.
- package/README.md +1 -1
- package/cpp/generated/bark.cpp +7110 -8716
- package/cpp/generated/bark.hpp +298 -912
- package/lib/commonjs/generated/bark-ffi.js.map +1 -1
- package/lib/commonjs/generated/bark.js +1204 -447
- 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 +1203 -446
- package/lib/module/generated/bark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts +88 -86
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark.d.ts +576 -189
- package/lib/typescript/commonjs/src/generated/bark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark-ffi.d.ts +88 -86
- package/lib/typescript/module/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark.d.ts +576 -189
- package/lib/typescript/module/src/generated/bark.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/generated/bark-ffi.ts +143 -262
- package/src/generated/bark.ts +3430 -1632
|
@@ -471,7 +471,9 @@ const FfiConverterTypeConfig = (() => {
|
|
|
471
471
|
vtxoExitMargin: FfiConverterOptionalUInt16.read(from),
|
|
472
472
|
htlcRecvClaimDelta: FfiConverterOptionalUInt16.read(from),
|
|
473
473
|
fallbackFeeRate: FfiConverterOptionalUInt64.read(from),
|
|
474
|
-
roundTxRequiredConfirmations: FfiConverterOptionalUInt32.read(from)
|
|
474
|
+
roundTxRequiredConfirmations: FfiConverterOptionalUInt32.read(from),
|
|
475
|
+
daemonFastSyncIntervalSecs: FfiConverterOptionalUInt64.read(from),
|
|
476
|
+
daemonSlowSyncIntervalSecs: FfiConverterOptionalUInt64.read(from)
|
|
475
477
|
};
|
|
476
478
|
}
|
|
477
479
|
write(value, into) {
|
|
@@ -487,9 +489,11 @@ const FfiConverterTypeConfig = (() => {
|
|
|
487
489
|
FfiConverterOptionalUInt16.write(value.htlcRecvClaimDelta, into);
|
|
488
490
|
FfiConverterOptionalUInt64.write(value.fallbackFeeRate, into);
|
|
489
491
|
FfiConverterOptionalUInt32.write(value.roundTxRequiredConfirmations, into);
|
|
492
|
+
FfiConverterOptionalUInt64.write(value.daemonFastSyncIntervalSecs, into);
|
|
493
|
+
FfiConverterOptionalUInt64.write(value.daemonSlowSyncIntervalSecs, into);
|
|
490
494
|
}
|
|
491
495
|
allocationSize(value) {
|
|
492
|
-
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);
|
|
496
|
+
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);
|
|
493
497
|
}
|
|
494
498
|
}
|
|
495
499
|
return new FFIConverter();
|
|
@@ -797,6 +801,58 @@ const FfiConverterTypeExitVtxo = (() => {
|
|
|
797
801
|
return new FFIConverter();
|
|
798
802
|
})();
|
|
799
803
|
|
|
804
|
+
/**
|
|
805
|
+
* Result of a fee estimation
|
|
806
|
+
*/
|
|
807
|
+
|
|
808
|
+
/**
|
|
809
|
+
* Generated factory for {@link FeeEstimate} record objects.
|
|
810
|
+
*/
|
|
811
|
+
export const FeeEstimate = (() => {
|
|
812
|
+
const defaults = () => ({});
|
|
813
|
+
const create = (() => {
|
|
814
|
+
return uniffiCreateRecord(defaults);
|
|
815
|
+
})();
|
|
816
|
+
return Object.freeze({
|
|
817
|
+
/**
|
|
818
|
+
* Create a frozen instance of {@link FeeEstimate}, with defaults specified
|
|
819
|
+
* in Rust, in the {@link bark} crate.
|
|
820
|
+
*/
|
|
821
|
+
create,
|
|
822
|
+
/**
|
|
823
|
+
* Create a frozen instance of {@link FeeEstimate}, with defaults specified
|
|
824
|
+
* in Rust, in the {@link bark} crate.
|
|
825
|
+
*/
|
|
826
|
+
new: create,
|
|
827
|
+
/**
|
|
828
|
+
* Defaults specified in the {@link bark} crate.
|
|
829
|
+
*/
|
|
830
|
+
defaults: () => Object.freeze(defaults())
|
|
831
|
+
});
|
|
832
|
+
})();
|
|
833
|
+
const FfiConverterTypeFeeEstimate = (() => {
|
|
834
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
835
|
+
read(from) {
|
|
836
|
+
return {
|
|
837
|
+
grossAmountSats: FfiConverterUInt64.read(from),
|
|
838
|
+
feeSats: FfiConverterUInt64.read(from),
|
|
839
|
+
netAmountSats: FfiConverterUInt64.read(from),
|
|
840
|
+
vtxosSpent: FfiConverterArrayString.read(from)
|
|
841
|
+
};
|
|
842
|
+
}
|
|
843
|
+
write(value, into) {
|
|
844
|
+
FfiConverterUInt64.write(value.grossAmountSats, into);
|
|
845
|
+
FfiConverterUInt64.write(value.feeSats, into);
|
|
846
|
+
FfiConverterUInt64.write(value.netAmountSats, into);
|
|
847
|
+
FfiConverterArrayString.write(value.vtxosSpent, into);
|
|
848
|
+
}
|
|
849
|
+
allocationSize(value) {
|
|
850
|
+
return FfiConverterUInt64.allocationSize(value.grossAmountSats) + FfiConverterUInt64.allocationSize(value.feeSats) + FfiConverterUInt64.allocationSize(value.netAmountSats) + FfiConverterArrayString.allocationSize(value.vtxosSpent);
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
return new FFIConverter();
|
|
854
|
+
})();
|
|
855
|
+
|
|
800
856
|
/**
|
|
801
857
|
* Result of creating a BOLT11 invoice
|
|
802
858
|
*/
|
|
@@ -2415,48 +2471,88 @@ export class OnchainWallet extends UniffiAbstractObject {
|
|
|
2415
2471
|
* The wallet uses BDK for onchain operations
|
|
2416
2472
|
* and the same chain source configuration as the Bark wallet (esplora_address or bitcoind_*).
|
|
2417
2473
|
*/
|
|
2418
|
-
static default_(mnemonic, config, datadir) /*throws*/{
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2474
|
+
static async default_(mnemonic, config, datadir, asyncOpts_) /*throws*/{
|
|
2475
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2476
|
+
try {
|
|
2477
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2478
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_onchainwallet_default(FfiConverterString.lower(mnemonic), FfiConverterTypeConfig.lower(config), FfiConverterString.lower(datadir));
|
|
2479
|
+
}, /*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:*/FfiConverterTypeOnchainWallet.lift.bind(FfiConverterTypeOnchainWallet), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2480
|
+
} catch (__error) {
|
|
2481
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2482
|
+
__error.stack = __stack;
|
|
2483
|
+
}
|
|
2484
|
+
throw __error;
|
|
2485
|
+
}
|
|
2422
2486
|
}
|
|
2423
2487
|
|
|
2424
2488
|
/**
|
|
2425
2489
|
* Get the onchain wallet balance
|
|
2426
2490
|
*/
|
|
2427
|
-
balance() /*throws*/{
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2491
|
+
async balance(asyncOpts_) /*throws*/{
|
|
2492
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2493
|
+
try {
|
|
2494
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2495
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_onchainwallet_balance(uniffiTypeOnchainWalletObjectFactory.clonePointer(this));
|
|
2496
|
+
}, /*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:*/FfiConverterTypeOnchainBalance.lift.bind(FfiConverterTypeOnchainBalance), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2497
|
+
} catch (__error) {
|
|
2498
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2499
|
+
__error.stack = __stack;
|
|
2500
|
+
}
|
|
2501
|
+
throw __error;
|
|
2502
|
+
}
|
|
2431
2503
|
}
|
|
2432
2504
|
|
|
2433
2505
|
/**
|
|
2434
2506
|
* Generate a new Bitcoin address
|
|
2435
2507
|
*/
|
|
2436
|
-
newAddress() /*throws*/{
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2508
|
+
async newAddress(asyncOpts_) /*throws*/{
|
|
2509
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2510
|
+
try {
|
|
2511
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2512
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_onchainwallet_new_address(uniffiTypeOnchainWalletObjectFactory.clonePointer(this));
|
|
2513
|
+
}, /*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:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2514
|
+
} catch (__error) {
|
|
2515
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2516
|
+
__error.stack = __stack;
|
|
2517
|
+
}
|
|
2518
|
+
throw __error;
|
|
2519
|
+
}
|
|
2440
2520
|
}
|
|
2441
2521
|
|
|
2442
2522
|
/**
|
|
2443
2523
|
* Send Bitcoin to an address
|
|
2444
2524
|
* Returns the transaction ID
|
|
2445
2525
|
*/
|
|
2446
|
-
send(address, amountSats, feeRateSatPerVb) /*throws*/{
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2526
|
+
async send(address, amountSats, feeRateSatPerVb, asyncOpts_) /*throws*/{
|
|
2527
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2528
|
+
try {
|
|
2529
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2530
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_onchainwallet_send(uniffiTypeOnchainWalletObjectFactory.clonePointer(this), FfiConverterString.lower(address), FfiConverterUInt64.lower(amountSats), FfiConverterUInt64.lower(feeRateSatPerVb));
|
|
2531
|
+
}, /*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:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2532
|
+
} catch (__error) {
|
|
2533
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2534
|
+
__error.stack = __stack;
|
|
2535
|
+
}
|
|
2536
|
+
throw __error;
|
|
2537
|
+
}
|
|
2450
2538
|
}
|
|
2451
2539
|
|
|
2452
2540
|
/**
|
|
2453
2541
|
* Sync the onchain wallet with the blockchain
|
|
2454
2542
|
* Returns the amount synced in satoshis
|
|
2455
2543
|
*/
|
|
2456
|
-
sync() /*throws*/{
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2544
|
+
async sync(asyncOpts_) /*throws*/{
|
|
2545
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2546
|
+
try {
|
|
2547
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2548
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_onchainwallet_sync(uniffiTypeOnchainWalletObjectFactory.clonePointer(this));
|
|
2549
|
+
}, /*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:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2550
|
+
} catch (__error) {
|
|
2551
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2552
|
+
__error.stack = __stack;
|
|
2553
|
+
}
|
|
2554
|
+
throw __error;
|
|
2555
|
+
}
|
|
2460
2556
|
}
|
|
2461
2557
|
|
|
2462
2558
|
/**
|
|
@@ -2530,37 +2626,69 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2530
2626
|
/**
|
|
2531
2627
|
* Create a new Bark wallet
|
|
2532
2628
|
*/
|
|
2533
|
-
static create(mnemonic, config, datadir, forceRescan) /*throws*/{
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2629
|
+
static async create(mnemonic, config, datadir, forceRescan, asyncOpts_) /*throws*/{
|
|
2630
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2631
|
+
try {
|
|
2632
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2633
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_wallet_create(FfiConverterString.lower(mnemonic), FfiConverterTypeConfig.lower(config), FfiConverterString.lower(datadir), FfiConverterBool.lower(forceRescan));
|
|
2634
|
+
}, /*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:*/FfiConverterTypeWallet.lift.bind(FfiConverterTypeWallet), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2635
|
+
} catch (__error) {
|
|
2636
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2637
|
+
__error.stack = __stack;
|
|
2638
|
+
}
|
|
2639
|
+
throw __error;
|
|
2640
|
+
}
|
|
2537
2641
|
}
|
|
2538
2642
|
|
|
2539
2643
|
/**
|
|
2540
2644
|
* Create a new Bark wallet WITH onchain capabilities
|
|
2541
2645
|
*/
|
|
2542
|
-
static createWithOnchain(mnemonic, config, datadir, onchainWallet, forceRescan) /*throws*/{
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2646
|
+
static async createWithOnchain(mnemonic, config, datadir, onchainWallet, forceRescan, asyncOpts_) /*throws*/{
|
|
2647
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2648
|
+
try {
|
|
2649
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2650
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_wallet_create_with_onchain(FfiConverterString.lower(mnemonic), FfiConverterTypeConfig.lower(config), FfiConverterString.lower(datadir), FfiConverterTypeOnchainWallet.lower(onchainWallet), FfiConverterBool.lower(forceRescan));
|
|
2651
|
+
}, /*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:*/FfiConverterTypeWallet.lift.bind(FfiConverterTypeWallet), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2652
|
+
} catch (__error) {
|
|
2653
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2654
|
+
__error.stack = __stack;
|
|
2655
|
+
}
|
|
2656
|
+
throw __error;
|
|
2657
|
+
}
|
|
2546
2658
|
}
|
|
2547
2659
|
|
|
2548
2660
|
/**
|
|
2549
2661
|
* Open an existing Bark wallet
|
|
2550
2662
|
*/
|
|
2551
|
-
static open(mnemonic, config, datadir) /*throws*/{
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2663
|
+
static async open(mnemonic, config, datadir, asyncOpts_) /*throws*/{
|
|
2664
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2665
|
+
try {
|
|
2666
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2667
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_wallet_open(FfiConverterString.lower(mnemonic), FfiConverterTypeConfig.lower(config), FfiConverterString.lower(datadir));
|
|
2668
|
+
}, /*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:*/FfiConverterTypeWallet.lift.bind(FfiConverterTypeWallet), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2669
|
+
} catch (__error) {
|
|
2670
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2671
|
+
__error.stack = __stack;
|
|
2672
|
+
}
|
|
2673
|
+
throw __error;
|
|
2674
|
+
}
|
|
2555
2675
|
}
|
|
2556
2676
|
|
|
2557
2677
|
/**
|
|
2558
2678
|
* Open an existing Bark wallet WITH onchain capabilities
|
|
2559
2679
|
*/
|
|
2560
|
-
static openWithOnchain(mnemonic, config, datadir, onchainWallet) /*throws*/{
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2680
|
+
static async openWithOnchain(mnemonic, config, datadir, onchainWallet, asyncOpts_) /*throws*/{
|
|
2681
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2682
|
+
try {
|
|
2683
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2684
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_wallet_open_with_onchain(FfiConverterString.lower(mnemonic), FfiConverterTypeConfig.lower(config), FfiConverterString.lower(datadir), FfiConverterTypeOnchainWallet.lower(onchainWallet));
|
|
2685
|
+
}, /*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:*/FfiConverterTypeWallet.lift.bind(FfiConverterTypeWallet), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2686
|
+
} catch (__error) {
|
|
2687
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2688
|
+
__error.stack = __stack;
|
|
2689
|
+
}
|
|
2690
|
+
throw __error;
|
|
2691
|
+
}
|
|
2564
2692
|
}
|
|
2565
2693
|
|
|
2566
2694
|
/**
|
|
@@ -2568,56 +2696,112 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2568
2696
|
*
|
|
2569
2697
|
* Returns null if no exits or any exit has undetermined claimability.
|
|
2570
2698
|
*/
|
|
2571
|
-
allExitsClaimableAtHeight() /*throws*/{
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2699
|
+
async allExitsClaimableAtHeight(asyncOpts_) /*throws*/{
|
|
2700
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2701
|
+
try {
|
|
2702
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2703
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_all_exits_claimable_at_height(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
2704
|
+
}, /*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:*/FfiConverterOptionalUInt32.lift.bind(FfiConverterOptionalUInt32), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2705
|
+
} catch (__error) {
|
|
2706
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2707
|
+
__error.stack = __stack;
|
|
2708
|
+
}
|
|
2709
|
+
throw __error;
|
|
2710
|
+
}
|
|
2575
2711
|
}
|
|
2576
2712
|
|
|
2577
2713
|
/**
|
|
2578
2714
|
* Get all VTXOs (including spent)
|
|
2579
2715
|
*/
|
|
2580
|
-
allVtxos() /*throws*/{
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2716
|
+
async allVtxos(asyncOpts_) /*throws*/{
|
|
2717
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2718
|
+
try {
|
|
2719
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2720
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_all_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
2721
|
+
}, /*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:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2722
|
+
} catch (__error) {
|
|
2723
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2724
|
+
__error.stack = __stack;
|
|
2725
|
+
}
|
|
2726
|
+
throw __error;
|
|
2727
|
+
}
|
|
2584
2728
|
}
|
|
2585
2729
|
|
|
2586
2730
|
/**
|
|
2587
2731
|
* Get Ark server info (null if not connected)
|
|
2588
2732
|
*/
|
|
2589
|
-
arkInfo() {
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2733
|
+
async arkInfo(asyncOpts_) {
|
|
2734
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2735
|
+
try {
|
|
2736
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2737
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_ark_info(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
2738
|
+
}, /*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:*/FfiConverterOptionalTypeArkInfo.lift.bind(FfiConverterOptionalTypeArkInfo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_);
|
|
2739
|
+
} catch (__error) {
|
|
2740
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2741
|
+
__error.stack = __stack;
|
|
2742
|
+
}
|
|
2743
|
+
throw __error;
|
|
2744
|
+
}
|
|
2593
2745
|
}
|
|
2594
|
-
balance() /*throws*/{
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2746
|
+
async balance(asyncOpts_) /*throws*/{
|
|
2747
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2748
|
+
try {
|
|
2749
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2750
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_balance(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
2751
|
+
}, /*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:*/FfiConverterTypeBalance.lift.bind(FfiConverterTypeBalance), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2752
|
+
} catch (__error) {
|
|
2753
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2754
|
+
__error.stack = __stack;
|
|
2755
|
+
}
|
|
2756
|
+
throw __error;
|
|
2757
|
+
}
|
|
2598
2758
|
}
|
|
2599
2759
|
|
|
2600
2760
|
/**
|
|
2601
2761
|
* Board all funds from onchain wallet into Ark
|
|
2602
2762
|
*/
|
|
2603
|
-
boardAll(onchainWallet) /*throws*/{
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2763
|
+
async boardAll(onchainWallet, asyncOpts_) /*throws*/{
|
|
2764
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2765
|
+
try {
|
|
2766
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2767
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_board_all(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterTypeOnchainWallet.lower(onchainWallet));
|
|
2768
|
+
}, /*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:*/FfiConverterTypePendingBoard.lift.bind(FfiConverterTypePendingBoard), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2769
|
+
} catch (__error) {
|
|
2770
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2771
|
+
__error.stack = __stack;
|
|
2772
|
+
}
|
|
2773
|
+
throw __error;
|
|
2774
|
+
}
|
|
2607
2775
|
}
|
|
2608
2776
|
|
|
2609
2777
|
/**
|
|
2610
2778
|
* Board a specific amount from onchain wallet into Ark
|
|
2611
2779
|
*/
|
|
2612
|
-
boardAmount(onchainWallet, amountSats) /*throws*/{
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2780
|
+
async boardAmount(onchainWallet, amountSats, asyncOpts_) /*throws*/{
|
|
2781
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2782
|
+
try {
|
|
2783
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2784
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_board_amount(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterTypeOnchainWallet.lower(onchainWallet), FfiConverterUInt64.lower(amountSats));
|
|
2785
|
+
}, /*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:*/FfiConverterTypePendingBoard.lift.bind(FfiConverterTypePendingBoard), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2786
|
+
} catch (__error) {
|
|
2787
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2788
|
+
__error.stack = __stack;
|
|
2789
|
+
}
|
|
2790
|
+
throw __error;
|
|
2791
|
+
}
|
|
2616
2792
|
}
|
|
2617
|
-
bolt11Invoice(amountSats) /*throws*/{
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2793
|
+
async bolt11Invoice(amountSats, asyncOpts_) /*throws*/{
|
|
2794
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2795
|
+
try {
|
|
2796
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2797
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterUInt64.lower(amountSats));
|
|
2798
|
+
}, /*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:*/FfiConverterTypeLightningInvoice.lift.bind(FfiConverterTypeLightningInvoice), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2799
|
+
} catch (__error) {
|
|
2800
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2801
|
+
__error.stack = __stack;
|
|
2802
|
+
}
|
|
2803
|
+
throw __error;
|
|
2804
|
+
}
|
|
2621
2805
|
}
|
|
2622
2806
|
|
|
2623
2807
|
/**
|
|
@@ -2632,28 +2816,52 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2632
2816
|
*
|
|
2633
2817
|
* Returns the transaction ID (txid) of the broadcasted transaction
|
|
2634
2818
|
*/
|
|
2635
|
-
broadcastTx(txHex) /*throws*/{
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2819
|
+
async broadcastTx(txHex, asyncOpts_) /*throws*/{
|
|
2820
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2821
|
+
try {
|
|
2822
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2823
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_broadcast_tx(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(txHex));
|
|
2824
|
+
}, /*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:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2825
|
+
} catch (__error) {
|
|
2826
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2827
|
+
__error.stack = __stack;
|
|
2828
|
+
}
|
|
2829
|
+
throw __error;
|
|
2830
|
+
}
|
|
2639
2831
|
}
|
|
2640
2832
|
|
|
2641
2833
|
/**
|
|
2642
2834
|
* Cancel all pending rounds
|
|
2643
2835
|
*/
|
|
2644
|
-
cancelAllPendingRounds() /*throws*/{
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2836
|
+
async cancelAllPendingRounds(asyncOpts_) /*throws*/{
|
|
2837
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2838
|
+
try {
|
|
2839
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2840
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_cancel_all_pending_rounds(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
2841
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2842
|
+
} catch (__error) {
|
|
2843
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2844
|
+
__error.stack = __stack;
|
|
2845
|
+
}
|
|
2846
|
+
throw __error;
|
|
2847
|
+
}
|
|
2648
2848
|
}
|
|
2649
2849
|
|
|
2650
2850
|
/**
|
|
2651
2851
|
* Cancel a specific pending round
|
|
2652
2852
|
*/
|
|
2653
|
-
cancelPendingRound(roundId) /*throws*/{
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2853
|
+
async cancelPendingRound(roundId, asyncOpts_) /*throws*/{
|
|
2854
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2855
|
+
try {
|
|
2856
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2857
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_cancel_pending_round(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterUInt32.lower(roundId));
|
|
2858
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2859
|
+
} catch (__error) {
|
|
2860
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2861
|
+
__error.stack = __stack;
|
|
2862
|
+
}
|
|
2863
|
+
throw __error;
|
|
2864
|
+
}
|
|
2657
2865
|
}
|
|
2658
2866
|
|
|
2659
2867
|
/**
|
|
@@ -2666,31 +2874,55 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2666
2874
|
*
|
|
2667
2875
|
* Returns the preimage if payment is successful, null if still pending
|
|
2668
2876
|
*/
|
|
2669
|
-
checkLightningPayment(paymentHash, wait) /*throws*/{
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2877
|
+
async checkLightningPayment(paymentHash, wait, asyncOpts_) /*throws*/{
|
|
2878
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2879
|
+
try {
|
|
2880
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2881
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_check_lightning_payment(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash), FfiConverterBool.lower(wait));
|
|
2882
|
+
}, /*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:*/FfiConverterOptionalString.lift.bind(FfiConverterOptionalString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2883
|
+
} catch (__error) {
|
|
2884
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2885
|
+
__error.stack = __stack;
|
|
2886
|
+
}
|
|
2887
|
+
throw __error;
|
|
2888
|
+
}
|
|
2673
2889
|
}
|
|
2674
2890
|
|
|
2675
2891
|
/**
|
|
2676
2892
|
* Get claimable lightning receive balance
|
|
2677
2893
|
*/
|
|
2678
|
-
claimableLightningReceiveBalanceSats() /*throws*/{
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2894
|
+
async claimableLightningReceiveBalanceSats(asyncOpts_) /*throws*/{
|
|
2895
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2896
|
+
try {
|
|
2897
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2898
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_claimable_lightning_receive_balance_sats(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
2899
|
+
}, /*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:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2900
|
+
} catch (__error) {
|
|
2901
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2902
|
+
__error.stack = __stack;
|
|
2903
|
+
}
|
|
2904
|
+
throw __error;
|
|
2905
|
+
}
|
|
2682
2906
|
}
|
|
2683
2907
|
|
|
2684
2908
|
/**
|
|
2685
2909
|
* Get wallet config
|
|
2686
2910
|
*/
|
|
2687
|
-
config() {
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2911
|
+
async config(asyncOpts_) {
|
|
2912
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2913
|
+
try {
|
|
2914
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2915
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_config(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
2916
|
+
}, /*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:*/FfiConverterTypeConfig.lift.bind(FfiConverterTypeConfig), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_);
|
|
2917
|
+
} catch (__error) {
|
|
2918
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2919
|
+
__error.stack = __stack;
|
|
2920
|
+
}
|
|
2921
|
+
throw __error;
|
|
2922
|
+
}
|
|
2923
|
+
}
|
|
2924
|
+
|
|
2925
|
+
/**
|
|
2694
2926
|
* Drain claimable exits to an address
|
|
2695
2927
|
*
|
|
2696
2928
|
* Builds a signed PSBT that claims exited funds and sends them to the address.
|
|
@@ -2702,10 +2934,18 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2702
2934
|
* * `address` - Bitcoin address to send claimed funds to
|
|
2703
2935
|
* * `fee_rate_sat_per_vb` - Optional fee rate override in sats/vB
|
|
2704
2936
|
*/
|
|
2705
|
-
drainExits(vtxoIds, address, feeRateSatPerVb) /*throws*/{
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2937
|
+
async drainExits(vtxoIds, address, feeRateSatPerVb, asyncOpts_) /*throws*/{
|
|
2938
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2939
|
+
try {
|
|
2940
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2941
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_drain_exits(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterArrayString.lower(vtxoIds), FfiConverterString.lower(address), FfiConverterOptionalUInt64.lower(feeRateSatPerVb));
|
|
2942
|
+
}, /*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:*/FfiConverterTypeExitClaimTransaction.lift.bind(FfiConverterTypeExitClaimTransaction), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2943
|
+
} catch (__error) {
|
|
2944
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2945
|
+
__error.stack = __stack;
|
|
2946
|
+
}
|
|
2947
|
+
throw __error;
|
|
2948
|
+
}
|
|
2709
2949
|
}
|
|
2710
2950
|
|
|
2711
2951
|
/**
|
|
@@ -2714,13 +2954,19 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2714
2954
|
* # Arguments
|
|
2715
2955
|
*
|
|
2716
2956
|
* * `amount_sats` - Amount to board in sats
|
|
2717
|
-
*
|
|
2718
|
-
* Returns the estimated fee in sats
|
|
2719
2957
|
*/
|
|
2720
|
-
estimateBoardFee(amountSats) /*throws*/{
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2958
|
+
async estimateBoardFee(amountSats, asyncOpts_) /*throws*/{
|
|
2959
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2960
|
+
try {
|
|
2961
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2962
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_board_fee(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterUInt64.lower(amountSats));
|
|
2963
|
+
}, /*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:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2964
|
+
} catch (__error) {
|
|
2965
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2966
|
+
__error.stack = __stack;
|
|
2967
|
+
}
|
|
2968
|
+
throw __error;
|
|
2969
|
+
}
|
|
2724
2970
|
}
|
|
2725
2971
|
|
|
2726
2972
|
/**
|
|
@@ -2729,13 +2975,19 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2729
2975
|
* # Arguments
|
|
2730
2976
|
*
|
|
2731
2977
|
* * `amount_sats` - Amount to receive in sats
|
|
2732
|
-
*
|
|
2733
|
-
* Returns the estimated fee in sats
|
|
2734
2978
|
*/
|
|
2735
|
-
estimateLightningReceiveFee(amountSats) /*throws*/{
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2979
|
+
async estimateLightningReceiveFee(amountSats, asyncOpts_) /*throws*/{
|
|
2980
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2981
|
+
try {
|
|
2982
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2983
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_lightning_receive_fee(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterUInt64.lower(amountSats));
|
|
2984
|
+
}, /*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:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2985
|
+
} catch (__error) {
|
|
2986
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2987
|
+
__error.stack = __stack;
|
|
2988
|
+
}
|
|
2989
|
+
throw __error;
|
|
2990
|
+
}
|
|
2739
2991
|
}
|
|
2740
2992
|
|
|
2741
2993
|
/**
|
|
@@ -2744,13 +2996,40 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2744
2996
|
* # Arguments
|
|
2745
2997
|
*
|
|
2746
2998
|
* * `amount_sats` - Amount to send in sats
|
|
2999
|
+
*/
|
|
3000
|
+
async estimateLightningSendFee(amountSats, asyncOpts_) /*throws*/{
|
|
3001
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3002
|
+
try {
|
|
3003
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3004
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_lightning_send_fee(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterUInt64.lower(amountSats));
|
|
3005
|
+
}, /*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:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3006
|
+
} catch (__error) {
|
|
3007
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3008
|
+
__error.stack = __stack;
|
|
3009
|
+
}
|
|
3010
|
+
throw __error;
|
|
3011
|
+
}
|
|
3012
|
+
}
|
|
3013
|
+
|
|
3014
|
+
/**
|
|
3015
|
+
* Estimate the fee for offboarding all spendable VTXOs
|
|
2747
3016
|
*
|
|
2748
|
-
*
|
|
3017
|
+
* # Arguments
|
|
3018
|
+
*
|
|
3019
|
+
* * `address` - Destination address for the offboard
|
|
2749
3020
|
*/
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
3021
|
+
async estimateOffboardAllFee(address, asyncOpts_) /*throws*/{
|
|
3022
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3023
|
+
try {
|
|
3024
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3025
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_offboard_all_fee(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(address));
|
|
3026
|
+
}, /*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:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3027
|
+
} catch (__error) {
|
|
3028
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3029
|
+
__error.stack = __stack;
|
|
3030
|
+
}
|
|
3031
|
+
throw __error;
|
|
3032
|
+
}
|
|
2754
3033
|
}
|
|
2755
3034
|
|
|
2756
3035
|
/**
|
|
@@ -2760,13 +3039,19 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2760
3039
|
*
|
|
2761
3040
|
* * `address` - Destination address for the offboard
|
|
2762
3041
|
* * `vtxo_ids` - VTXOs to offboard
|
|
2763
|
-
*
|
|
2764
|
-
* Returns the estimated fee in sats
|
|
2765
3042
|
*/
|
|
2766
|
-
estimateOffboardFee(address, vtxoIds) /*throws*/{
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
3043
|
+
async estimateOffboardFee(address, vtxoIds, asyncOpts_) /*throws*/{
|
|
3044
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3045
|
+
try {
|
|
3046
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3047
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_offboard_fee(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(address), FfiConverterArrayString.lower(vtxoIds));
|
|
3048
|
+
}, /*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:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3049
|
+
} catch (__error) {
|
|
3050
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3051
|
+
__error.stack = __stack;
|
|
3052
|
+
}
|
|
3053
|
+
throw __error;
|
|
3054
|
+
}
|
|
2770
3055
|
}
|
|
2771
3056
|
|
|
2772
3057
|
/**
|
|
@@ -2775,13 +3060,19 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2775
3060
|
* # Arguments
|
|
2776
3061
|
*
|
|
2777
3062
|
* * `vtxo_ids` - VTXOs to refresh
|
|
2778
|
-
*
|
|
2779
|
-
* Returns the estimated fee in sats
|
|
2780
3063
|
*/
|
|
2781
|
-
estimateRefreshFee(vtxoIds) /*throws*/{
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
3064
|
+
async estimateRefreshFee(vtxoIds, asyncOpts_) /*throws*/{
|
|
3065
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3066
|
+
try {
|
|
3067
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3068
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_refresh_fee(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterArrayString.lower(vtxoIds));
|
|
3069
|
+
}, /*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:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3070
|
+
} catch (__error) {
|
|
3071
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3072
|
+
__error.stack = __stack;
|
|
3073
|
+
}
|
|
3074
|
+
throw __error;
|
|
3075
|
+
}
|
|
2785
3076
|
}
|
|
2786
3077
|
|
|
2787
3078
|
/**
|
|
@@ -2791,13 +3082,19 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2791
3082
|
*
|
|
2792
3083
|
* * `address` - Destination address
|
|
2793
3084
|
* * `amount_sats` - Amount to send in sats
|
|
2794
|
-
*
|
|
2795
|
-
* Returns the estimated fee in sats
|
|
2796
3085
|
*/
|
|
2797
|
-
estimateSendOnchainFee(address, amountSats) /*throws*/{
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
3086
|
+
async estimateSendOnchainFee(address, amountSats, asyncOpts_) /*throws*/{
|
|
3087
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3088
|
+
try {
|
|
3089
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3090
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_send_onchain_fee(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(address), FfiConverterUInt64.lower(amountSats));
|
|
3091
|
+
}, /*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:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3092
|
+
} catch (__error) {
|
|
3093
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3094
|
+
__error.stack = __stack;
|
|
3095
|
+
}
|
|
3096
|
+
throw __error;
|
|
3097
|
+
}
|
|
2801
3098
|
}
|
|
2802
3099
|
|
|
2803
3100
|
/**
|
|
@@ -2820,28 +3117,52 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2820
3117
|
* * `include_history` - Whether to include full state machine history
|
|
2821
3118
|
* * `include_transactions` - Whether to include transaction details
|
|
2822
3119
|
*/
|
|
2823
|
-
getExitStatus(vtxoId, includeHistory, includeTransactions) /*throws*/{
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
3120
|
+
async getExitStatus(vtxoId, includeHistory, includeTransactions, asyncOpts_) /*throws*/{
|
|
3121
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3122
|
+
try {
|
|
3123
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3124
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_get_exit_status(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(vtxoId), FfiConverterBool.lower(includeHistory), FfiConverterBool.lower(includeTransactions));
|
|
3125
|
+
}, /*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:*/FfiConverterOptionalTypeExitTransactionStatus.lift.bind(FfiConverterOptionalTypeExitTransactionStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3126
|
+
} catch (__error) {
|
|
3127
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3128
|
+
__error.stack = __stack;
|
|
3129
|
+
}
|
|
3130
|
+
throw __error;
|
|
3131
|
+
}
|
|
2827
3132
|
}
|
|
2828
3133
|
|
|
2829
3134
|
/**
|
|
2830
3135
|
* Get all VTXOs currently in exit process
|
|
2831
3136
|
*/
|
|
2832
|
-
getExitVtxos() /*throws*/{
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
3137
|
+
async getExitVtxos(asyncOpts_) /*throws*/{
|
|
3138
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3139
|
+
try {
|
|
3140
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3141
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_get_exit_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3142
|
+
}, /*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:*/FfiConverterArrayTypeExitVtxo.lift.bind(FfiConverterArrayTypeExitVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3143
|
+
} catch (__error) {
|
|
3144
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3145
|
+
__error.stack = __stack;
|
|
3146
|
+
}
|
|
3147
|
+
throw __error;
|
|
3148
|
+
}
|
|
2836
3149
|
}
|
|
2837
3150
|
|
|
2838
3151
|
/**
|
|
2839
3152
|
* Get VTXOs expiring within threshold blocks
|
|
2840
3153
|
*/
|
|
2841
|
-
getExpiringVtxos(thresholdBlocks) /*throws*/{
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
3154
|
+
async getExpiringVtxos(thresholdBlocks, asyncOpts_) /*throws*/{
|
|
3155
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3156
|
+
try {
|
|
3157
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3158
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_get_expiring_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterUInt32.lower(thresholdBlocks));
|
|
3159
|
+
}, /*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:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3160
|
+
} catch (__error) {
|
|
3161
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3162
|
+
__error.stack = __stack;
|
|
3163
|
+
}
|
|
3164
|
+
throw __error;
|
|
3165
|
+
}
|
|
2845
3166
|
}
|
|
2846
3167
|
|
|
2847
3168
|
/**
|
|
@@ -2849,10 +3170,18 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2849
3170
|
*
|
|
2850
3171
|
* Returns null if there are no spendable VTXOs.
|
|
2851
3172
|
*/
|
|
2852
|
-
getFirstExpiringVtxoBlockheight() /*throws*/{
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
3173
|
+
async getFirstExpiringVtxoBlockheight(asyncOpts_) /*throws*/{
|
|
3174
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3175
|
+
try {
|
|
3176
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3177
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_get_first_expiring_vtxo_blockheight(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3178
|
+
}, /*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:*/FfiConverterOptionalUInt32.lift.bind(FfiConverterOptionalUInt32), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3179
|
+
} catch (__error) {
|
|
3180
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3181
|
+
__error.stack = __stack;
|
|
3182
|
+
}
|
|
3183
|
+
throw __error;
|
|
3184
|
+
}
|
|
2856
3185
|
}
|
|
2857
3186
|
|
|
2858
3187
|
/**
|
|
@@ -2861,46 +3190,86 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2861
3190
|
* This is calculated as the first expiring VTXO height minus the refresh threshold.
|
|
2862
3191
|
* Returns null if there are no VTXOs to refresh.
|
|
2863
3192
|
*/
|
|
2864
|
-
getNextRequiredRefreshBlockheight() /*throws*/{
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
3193
|
+
async getNextRequiredRefreshBlockheight(asyncOpts_) /*throws*/{
|
|
3194
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3195
|
+
try {
|
|
3196
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3197
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_get_next_required_refresh_blockheight(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3198
|
+
}, /*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:*/FfiConverterOptionalUInt32.lift.bind(FfiConverterOptionalUInt32), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3199
|
+
} catch (__error) {
|
|
3200
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3201
|
+
__error.stack = __stack;
|
|
3202
|
+
}
|
|
3203
|
+
throw __error;
|
|
3204
|
+
}
|
|
2868
3205
|
}
|
|
2869
3206
|
|
|
2870
3207
|
/**
|
|
2871
3208
|
* Get a specific VTXO by ID
|
|
2872
3209
|
*/
|
|
2873
|
-
getVtxoById(vtxoId) /*throws*/{
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
3210
|
+
async getVtxoById(vtxoId, asyncOpts_) /*throws*/{
|
|
3211
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3212
|
+
try {
|
|
3213
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3214
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_get_vtxo_by_id(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(vtxoId));
|
|
3215
|
+
}, /*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:*/FfiConverterTypeVtxo.lift.bind(FfiConverterTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3216
|
+
} catch (__error) {
|
|
3217
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3218
|
+
__error.stack = __stack;
|
|
3219
|
+
}
|
|
3220
|
+
throw __error;
|
|
3221
|
+
}
|
|
2877
3222
|
}
|
|
2878
3223
|
|
|
2879
3224
|
/**
|
|
2880
3225
|
* Get VTXOs that should be refreshed
|
|
2881
3226
|
*/
|
|
2882
|
-
getVtxosToRefresh() /*throws*/{
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
3227
|
+
async getVtxosToRefresh(asyncOpts_) /*throws*/{
|
|
3228
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3229
|
+
try {
|
|
3230
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3231
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_get_vtxos_to_refresh(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3232
|
+
}, /*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:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3233
|
+
} catch (__error) {
|
|
3234
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3235
|
+
__error.stack = __stack;
|
|
3236
|
+
}
|
|
3237
|
+
throw __error;
|
|
3238
|
+
}
|
|
2886
3239
|
}
|
|
2887
3240
|
|
|
2888
3241
|
/**
|
|
2889
3242
|
* Check if any exits are pending
|
|
2890
3243
|
*/
|
|
2891
|
-
hasPendingExits() /*throws*/{
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
3244
|
+
async hasPendingExits(asyncOpts_) /*throws*/{
|
|
3245
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3246
|
+
try {
|
|
3247
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3248
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_has_pending_exits(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3249
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_i8, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_i8, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_i8, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_i8, /*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3250
|
+
} catch (__error) {
|
|
3251
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3252
|
+
__error.stack = __stack;
|
|
3253
|
+
}
|
|
3254
|
+
throw __error;
|
|
3255
|
+
}
|
|
2895
3256
|
}
|
|
2896
3257
|
|
|
2897
3258
|
/**
|
|
2898
3259
|
* Get all wallet movements (transaction history)
|
|
2899
3260
|
*/
|
|
2900
|
-
history() /*throws*/{
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
3261
|
+
async history(asyncOpts_) /*throws*/{
|
|
3262
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3263
|
+
try {
|
|
3264
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3265
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_history(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3266
|
+
}, /*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:*/FfiConverterArrayTypeMovement.lift.bind(FfiConverterArrayTypeMovement), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3267
|
+
} catch (__error) {
|
|
3268
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3269
|
+
__error.stack = __stack;
|
|
3270
|
+
}
|
|
3271
|
+
throw __error;
|
|
3272
|
+
}
|
|
2904
3273
|
}
|
|
2905
3274
|
|
|
2906
3275
|
/**
|
|
@@ -2911,10 +3280,18 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2911
3280
|
* * `payment_method_type` - Type (e.g. "ark", "bitcoin", "invoice", "offer", "lightning_address", "custom")
|
|
2912
3281
|
* * `payment_method_value` - Value (e.g. an address or invoice string)
|
|
2913
3282
|
*/
|
|
2914
|
-
historyByPaymentMethod(paymentMethodType, paymentMethodValue) /*throws*/{
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
3283
|
+
async historyByPaymentMethod(paymentMethodType, paymentMethodValue, asyncOpts_) /*throws*/{
|
|
3284
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3285
|
+
try {
|
|
3286
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3287
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_history_by_payment_method(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentMethodType), FfiConverterString.lower(paymentMethodValue));
|
|
3288
|
+
}, /*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:*/FfiConverterArrayTypeMovement.lift.bind(FfiConverterArrayTypeMovement), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3289
|
+
} catch (__error) {
|
|
3290
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3291
|
+
__error.stack = __stack;
|
|
3292
|
+
}
|
|
3293
|
+
throw __error;
|
|
3294
|
+
}
|
|
2918
3295
|
}
|
|
2919
3296
|
|
|
2920
3297
|
/**
|
|
@@ -2927,10 +3304,18 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2927
3304
|
*
|
|
2928
3305
|
* * `vtxo_base64` - Base64-encoded serialized VTXO
|
|
2929
3306
|
*/
|
|
2930
|
-
importVtxo(vtxoBase64) /*throws*/{
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
3307
|
+
async importVtxo(vtxoBase64, asyncOpts_) /*throws*/{
|
|
3308
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3309
|
+
try {
|
|
3310
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3311
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_import_vtxo(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(vtxoBase64));
|
|
3312
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3313
|
+
} catch (__error) {
|
|
3314
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3315
|
+
__error.stack = __stack;
|
|
3316
|
+
}
|
|
3317
|
+
throw __error;
|
|
3318
|
+
}
|
|
2934
3319
|
}
|
|
2935
3320
|
|
|
2936
3321
|
/**
|
|
@@ -2940,10 +3325,18 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2940
3325
|
*
|
|
2941
3326
|
* * `payment_hash` - Payment hash as hex string
|
|
2942
3327
|
*/
|
|
2943
|
-
lightningReceiveStatus(paymentHash) /*throws*/{
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
3328
|
+
async lightningReceiveStatus(paymentHash, asyncOpts_) /*throws*/{
|
|
3329
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3330
|
+
try {
|
|
3331
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3332
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_lightning_receive_status(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash));
|
|
3333
|
+
}, /*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:*/FfiConverterOptionalTypeLightningReceive.lift.bind(FfiConverterOptionalTypeLightningReceive), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3334
|
+
} catch (__error) {
|
|
3335
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3336
|
+
__error.stack = __stack;
|
|
3337
|
+
}
|
|
3338
|
+
throw __error;
|
|
3339
|
+
}
|
|
2947
3340
|
}
|
|
2948
3341
|
|
|
2949
3342
|
/**
|
|
@@ -2951,10 +3344,18 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2951
3344
|
*
|
|
2952
3345
|
* Returns exits ready to be drained to onchain wallet.
|
|
2953
3346
|
*/
|
|
2954
|
-
listClaimableExits() /*throws*/{
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
3347
|
+
async listClaimableExits(asyncOpts_) /*throws*/{
|
|
3348
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3349
|
+
try {
|
|
3350
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3351
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_list_claimable_exits(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3352
|
+
}, /*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:*/FfiConverterArrayTypeExitVtxo.lift.bind(FfiConverterArrayTypeExitVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3353
|
+
} catch (__error) {
|
|
3354
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3355
|
+
__error.stack = __stack;
|
|
3356
|
+
}
|
|
3357
|
+
throw __error;
|
|
3358
|
+
}
|
|
2958
3359
|
}
|
|
2959
3360
|
|
|
2960
3361
|
/**
|
|
@@ -2986,10 +3387,18 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2986
3387
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_mailbox_identifier(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
|
|
2987
3388
|
}, /*liftString:*/FfiConverterString.lift));
|
|
2988
3389
|
}
|
|
2989
|
-
maintenance() /*throws*/{
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
3390
|
+
async maintenance(asyncOpts_) /*throws*/{
|
|
3391
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3392
|
+
try {
|
|
3393
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3394
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3395
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3396
|
+
} catch (__error) {
|
|
3397
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3398
|
+
__error.stack = __stack;
|
|
3399
|
+
}
|
|
3400
|
+
throw __error;
|
|
3401
|
+
}
|
|
2993
3402
|
}
|
|
2994
3403
|
|
|
2995
3404
|
/**
|
|
@@ -2998,19 +3407,35 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2998
3407
|
* This schedules refresh operations but doesn't wait for completion.
|
|
2999
3408
|
* Use this when you want to queue operations without blocking.
|
|
3000
3409
|
*/
|
|
3001
|
-
maintenanceDelegated() /*throws*/{
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3410
|
+
async maintenanceDelegated(asyncOpts_) /*throws*/{
|
|
3411
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3412
|
+
try {
|
|
3413
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3414
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance_delegated(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3415
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3416
|
+
} catch (__error) {
|
|
3417
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3418
|
+
__error.stack = __stack;
|
|
3419
|
+
}
|
|
3420
|
+
throw __error;
|
|
3421
|
+
}
|
|
3005
3422
|
}
|
|
3006
3423
|
|
|
3007
3424
|
/**
|
|
3008
3425
|
* Perform maintenance refresh
|
|
3009
3426
|
*/
|
|
3010
|
-
maintenanceRefresh() /*throws*/{
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3427
|
+
async maintenanceRefresh(asyncOpts_) /*throws*/{
|
|
3428
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3429
|
+
try {
|
|
3430
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3431
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance_refresh(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3432
|
+
}, /*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:*/FfiConverterOptionalString.lift.bind(FfiConverterOptionalString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3433
|
+
} catch (__error) {
|
|
3434
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3435
|
+
__error.stack = __stack;
|
|
3436
|
+
}
|
|
3437
|
+
throw __error;
|
|
3438
|
+
}
|
|
3014
3439
|
}
|
|
3015
3440
|
|
|
3016
3441
|
/**
|
|
@@ -3018,19 +3443,35 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3018
3443
|
*
|
|
3019
3444
|
* More thorough than maintenance() - also syncs onchain wallet and exits.
|
|
3020
3445
|
*/
|
|
3021
|
-
maintenanceWithOnchain(onchainWallet) /*throws*/{
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3446
|
+
async maintenanceWithOnchain(onchainWallet, asyncOpts_) /*throws*/{
|
|
3447
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3448
|
+
try {
|
|
3449
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3450
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterTypeOnchainWallet.lower(onchainWallet));
|
|
3451
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3452
|
+
} catch (__error) {
|
|
3453
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3454
|
+
__error.stack = __stack;
|
|
3455
|
+
}
|
|
3456
|
+
throw __error;
|
|
3457
|
+
}
|
|
3025
3458
|
}
|
|
3026
3459
|
|
|
3027
3460
|
/**
|
|
3028
3461
|
* Perform maintenance with onchain wallet in delegated mode
|
|
3029
3462
|
*/
|
|
3030
|
-
maintenanceWithOnchainDelegated(onchainWallet) /*throws*/{
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3463
|
+
async maintenanceWithOnchainDelegated(onchainWallet, asyncOpts_) /*throws*/{
|
|
3464
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3465
|
+
try {
|
|
3466
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3467
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain_delegated(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterTypeOnchainWallet.lower(onchainWallet));
|
|
3468
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3469
|
+
} catch (__error) {
|
|
3470
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3471
|
+
__error.stack = __stack;
|
|
3472
|
+
}
|
|
3473
|
+
throw __error;
|
|
3474
|
+
}
|
|
3034
3475
|
}
|
|
3035
3476
|
|
|
3036
3477
|
/**
|
|
@@ -3038,43 +3479,83 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3038
3479
|
*
|
|
3039
3480
|
* Returns the round ID if a refresh was scheduled, null otherwise.
|
|
3040
3481
|
*/
|
|
3041
|
-
maybeScheduleMaintenanceRefresh() /*throws*/{
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3482
|
+
async maybeScheduleMaintenanceRefresh(asyncOpts_) /*throws*/{
|
|
3483
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3484
|
+
try {
|
|
3485
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3486
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_maybe_schedule_maintenance_refresh(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3487
|
+
}, /*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:*/FfiConverterOptionalUInt32.lift.bind(FfiConverterOptionalUInt32), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3488
|
+
} catch (__error) {
|
|
3489
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3490
|
+
__error.stack = __stack;
|
|
3491
|
+
}
|
|
3492
|
+
throw __error;
|
|
3493
|
+
}
|
|
3045
3494
|
}
|
|
3046
3495
|
|
|
3047
3496
|
/**
|
|
3048
3497
|
* Get the Bitcoin network this wallet is using
|
|
3049
3498
|
*/
|
|
3050
|
-
network() /*throws*/{
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3499
|
+
async network(asyncOpts_) /*throws*/{
|
|
3500
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3501
|
+
try {
|
|
3502
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3503
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_network(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3504
|
+
}, /*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:*/FfiConverterTypeNetwork.lift.bind(FfiConverterTypeNetwork), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3505
|
+
} catch (__error) {
|
|
3506
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3507
|
+
__error.stack = __stack;
|
|
3508
|
+
}
|
|
3509
|
+
throw __error;
|
|
3510
|
+
}
|
|
3054
3511
|
}
|
|
3055
|
-
newAddress() /*throws*/{
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3512
|
+
async newAddress(asyncOpts_) /*throws*/{
|
|
3513
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3514
|
+
try {
|
|
3515
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3516
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_new_address(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3517
|
+
}, /*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:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3518
|
+
} catch (__error) {
|
|
3519
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3520
|
+
__error.stack = __stack;
|
|
3521
|
+
}
|
|
3522
|
+
throw __error;
|
|
3523
|
+
}
|
|
3059
3524
|
}
|
|
3060
3525
|
|
|
3061
3526
|
/**
|
|
3062
3527
|
* Generate a new address and return it with its index
|
|
3063
3528
|
*/
|
|
3064
|
-
newAddressWithIndex() /*throws*/{
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3529
|
+
async newAddressWithIndex(asyncOpts_) /*throws*/{
|
|
3530
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3531
|
+
try {
|
|
3532
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3533
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_new_address_with_index(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3534
|
+
}, /*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:*/FfiConverterTypeAddressWithIndex.lift.bind(FfiConverterTypeAddressWithIndex), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3535
|
+
} catch (__error) {
|
|
3536
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3537
|
+
__error.stack = __stack;
|
|
3538
|
+
}
|
|
3539
|
+
throw __error;
|
|
3540
|
+
}
|
|
3068
3541
|
}
|
|
3069
3542
|
|
|
3070
3543
|
/**
|
|
3071
3544
|
* Get the timestamp when the next round will start (Unix timestamp in seconds)
|
|
3072
3545
|
* Returns an error if the server hasn't provided round timing info
|
|
3073
3546
|
*/
|
|
3074
|
-
nextRoundStartTime() /*throws*/{
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3547
|
+
async nextRoundStartTime(asyncOpts_) /*throws*/{
|
|
3548
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3549
|
+
try {
|
|
3550
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3551
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_next_round_start_time(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3552
|
+
}, /*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:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3553
|
+
} catch (__error) {
|
|
3554
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3555
|
+
__error.stack = __stack;
|
|
3556
|
+
}
|
|
3557
|
+
throw __error;
|
|
3558
|
+
}
|
|
3078
3559
|
}
|
|
3079
3560
|
|
|
3080
3561
|
/**
|
|
@@ -3089,29 +3570,61 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3089
3570
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_notifications(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
|
|
3090
3571
|
}, /*liftString:*/FfiConverterString.lift));
|
|
3091
3572
|
}
|
|
3092
|
-
offboardAll(bitcoinAddress) /*throws*/{
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3573
|
+
async offboardAll(bitcoinAddress, asyncOpts_) /*throws*/{
|
|
3574
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3575
|
+
try {
|
|
3576
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3577
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_offboard_all(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(bitcoinAddress));
|
|
3578
|
+
}, /*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:*/FfiConverterTypeOffboardResult.lift.bind(FfiConverterTypeOffboardResult), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3579
|
+
} catch (__error) {
|
|
3580
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3581
|
+
__error.stack = __stack;
|
|
3582
|
+
}
|
|
3583
|
+
throw __error;
|
|
3584
|
+
}
|
|
3096
3585
|
}
|
|
3097
3586
|
|
|
3098
3587
|
/**
|
|
3099
3588
|
* Offboard specific VTXOs to a Bitcoin address
|
|
3100
3589
|
*/
|
|
3101
|
-
offboardVtxos(vtxoIds, bitcoinAddress) /*throws*/{
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3590
|
+
async offboardVtxos(vtxoIds, bitcoinAddress, asyncOpts_) /*throws*/{
|
|
3591
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3592
|
+
try {
|
|
3593
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3594
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_offboard_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterArrayString.lower(vtxoIds), FfiConverterString.lower(bitcoinAddress));
|
|
3595
|
+
}, /*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:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3596
|
+
} catch (__error) {
|
|
3597
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3598
|
+
__error.stack = __stack;
|
|
3599
|
+
}
|
|
3600
|
+
throw __error;
|
|
3601
|
+
}
|
|
3105
3602
|
}
|
|
3106
|
-
payLightningAddress(lightningAddress, amountSats, comment) /*throws*/{
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3603
|
+
async payLightningAddress(lightningAddress, amountSats, comment, asyncOpts_) /*throws*/{
|
|
3604
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3605
|
+
try {
|
|
3606
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3607
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_address(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(lightningAddress), FfiConverterUInt64.lower(amountSats), FfiConverterOptionalString.lower(comment));
|
|
3608
|
+
}, /*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:*/FfiConverterTypeLightningSend.lift.bind(FfiConverterTypeLightningSend), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3609
|
+
} catch (__error) {
|
|
3610
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3611
|
+
__error.stack = __stack;
|
|
3612
|
+
}
|
|
3613
|
+
throw __error;
|
|
3614
|
+
}
|
|
3110
3615
|
}
|
|
3111
|
-
payLightningInvoice(invoice, amountSats) /*throws*/{
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3616
|
+
async payLightningInvoice(invoice, amountSats, asyncOpts_) /*throws*/{
|
|
3617
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3618
|
+
try {
|
|
3619
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3620
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_invoice(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(invoice), FfiConverterOptionalUInt64.lower(amountSats));
|
|
3621
|
+
}, /*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:*/FfiConverterTypeLightningSend.lift.bind(FfiConverterTypeLightningSend), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3622
|
+
} catch (__error) {
|
|
3623
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3624
|
+
__error.stack = __stack;
|
|
3625
|
+
}
|
|
3626
|
+
throw __error;
|
|
3627
|
+
}
|
|
3115
3628
|
}
|
|
3116
3629
|
|
|
3117
3630
|
/**
|
|
@@ -3122,100 +3635,188 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3122
3635
|
* * `offer` - BOLT12 offer string
|
|
3123
3636
|
* * `amount_sats` - Optional amount in sats (required if offer doesn't specify amount)
|
|
3124
3637
|
*/
|
|
3125
|
-
payLightningOffer(offer, amountSats) /*throws*/{
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3638
|
+
async payLightningOffer(offer, amountSats, asyncOpts_) /*throws*/{
|
|
3639
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3640
|
+
try {
|
|
3641
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3642
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_offer(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(offer), FfiConverterOptionalUInt64.lower(amountSats));
|
|
3643
|
+
}, /*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:*/FfiConverterTypeLightningSend.lift.bind(FfiConverterTypeLightningSend), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3644
|
+
} catch (__error) {
|
|
3645
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3646
|
+
__error.stack = __stack;
|
|
3647
|
+
}
|
|
3648
|
+
throw __error;
|
|
3649
|
+
}
|
|
3129
3650
|
}
|
|
3130
3651
|
|
|
3131
3652
|
/**
|
|
3132
3653
|
* DEPRECATED: use `peek_address` instead
|
|
3133
3654
|
*/
|
|
3134
|
-
peakAddress(index) /*throws*/{
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3655
|
+
async peakAddress(index, asyncOpts_) /*throws*/{
|
|
3656
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3657
|
+
try {
|
|
3658
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3659
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_peak_address(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterUInt32.lower(index));
|
|
3660
|
+
}, /*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:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3661
|
+
} catch (__error) {
|
|
3662
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3663
|
+
__error.stack = __stack;
|
|
3664
|
+
}
|
|
3665
|
+
throw __error;
|
|
3666
|
+
}
|
|
3138
3667
|
}
|
|
3139
3668
|
|
|
3140
3669
|
/**
|
|
3141
3670
|
* Peek at an address at a specific index
|
|
3142
3671
|
*/
|
|
3143
|
-
peekAddress(index) /*throws*/{
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3672
|
+
async peekAddress(index, asyncOpts_) /*throws*/{
|
|
3673
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3674
|
+
try {
|
|
3675
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3676
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_peek_address(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterUInt32.lower(index));
|
|
3677
|
+
}, /*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:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3678
|
+
} catch (__error) {
|
|
3679
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3680
|
+
__error.stack = __stack;
|
|
3681
|
+
}
|
|
3682
|
+
throw __error;
|
|
3683
|
+
}
|
|
3147
3684
|
}
|
|
3148
3685
|
|
|
3149
3686
|
/**
|
|
3150
3687
|
* Get all VTXOs that are part of pending boards
|
|
3151
3688
|
*/
|
|
3152
|
-
pendingBoardVtxos() /*throws*/{
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3689
|
+
async pendingBoardVtxos(asyncOpts_) /*throws*/{
|
|
3690
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3691
|
+
try {
|
|
3692
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3693
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_board_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3694
|
+
}, /*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:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3695
|
+
} catch (__error) {
|
|
3696
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3697
|
+
__error.stack = __stack;
|
|
3698
|
+
}
|
|
3699
|
+
throw __error;
|
|
3700
|
+
}
|
|
3156
3701
|
}
|
|
3157
3702
|
|
|
3158
3703
|
/**
|
|
3159
3704
|
* Get all pending board operations
|
|
3160
3705
|
*/
|
|
3161
|
-
pendingBoards() /*throws*/{
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3706
|
+
async pendingBoards(asyncOpts_) /*throws*/{
|
|
3707
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3708
|
+
try {
|
|
3709
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3710
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_boards(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3711
|
+
}, /*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:*/FfiConverterArrayTypePendingBoard.lift.bind(FfiConverterArrayTypePendingBoard), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3712
|
+
} catch (__error) {
|
|
3713
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3714
|
+
__error.stack = __stack;
|
|
3715
|
+
}
|
|
3716
|
+
throw __error;
|
|
3717
|
+
}
|
|
3165
3718
|
}
|
|
3166
3719
|
|
|
3167
3720
|
/**
|
|
3168
3721
|
* Get total amount in pending exits (sats)
|
|
3169
3722
|
*/
|
|
3170
|
-
pendingExitsTotalSats() /*throws*/{
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3723
|
+
async pendingExitsTotalSats(asyncOpts_) /*throws*/{
|
|
3724
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3725
|
+
try {
|
|
3726
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3727
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_exits_total_sats(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3728
|
+
}, /*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:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3729
|
+
} catch (__error) {
|
|
3730
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3731
|
+
__error.stack = __stack;
|
|
3732
|
+
}
|
|
3733
|
+
throw __error;
|
|
3734
|
+
}
|
|
3174
3735
|
}
|
|
3175
3736
|
|
|
3176
3737
|
/**
|
|
3177
3738
|
* Get all pending lightning receives
|
|
3178
3739
|
*/
|
|
3179
|
-
pendingLightningReceives() /*throws*/{
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3740
|
+
async pendingLightningReceives(asyncOpts_) /*throws*/{
|
|
3741
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3742
|
+
try {
|
|
3743
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3744
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_lightning_receives(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3745
|
+
}, /*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:*/FfiConverterArrayTypeLightningReceive.lift.bind(FfiConverterArrayTypeLightningReceive), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3746
|
+
} catch (__error) {
|
|
3747
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3748
|
+
__error.stack = __stack;
|
|
3749
|
+
}
|
|
3750
|
+
throw __error;
|
|
3751
|
+
}
|
|
3183
3752
|
}
|
|
3184
3753
|
|
|
3185
3754
|
/**
|
|
3186
3755
|
* Get VTXOs locked in pending Lightning sends
|
|
3187
3756
|
*/
|
|
3188
|
-
pendingLightningSendVtxos() /*throws*/{
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3757
|
+
async pendingLightningSendVtxos(asyncOpts_) /*throws*/{
|
|
3758
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3759
|
+
try {
|
|
3760
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3761
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_lightning_send_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3762
|
+
}, /*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:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3763
|
+
} catch (__error) {
|
|
3764
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3765
|
+
__error.stack = __stack;
|
|
3766
|
+
}
|
|
3767
|
+
throw __error;
|
|
3768
|
+
}
|
|
3192
3769
|
}
|
|
3193
3770
|
|
|
3194
3771
|
/**
|
|
3195
3772
|
* Get all pending lightning sends
|
|
3196
3773
|
*/
|
|
3197
|
-
pendingLightningSends() /*throws*/{
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3774
|
+
async pendingLightningSends(asyncOpts_) /*throws*/{
|
|
3775
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3776
|
+
try {
|
|
3777
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3778
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_lightning_sends(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3779
|
+
}, /*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:*/FfiConverterArrayTypeLightningSend.lift.bind(FfiConverterArrayTypeLightningSend), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3780
|
+
} catch (__error) {
|
|
3781
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3782
|
+
__error.stack = __stack;
|
|
3783
|
+
}
|
|
3784
|
+
throw __error;
|
|
3785
|
+
}
|
|
3201
3786
|
}
|
|
3202
3787
|
|
|
3203
3788
|
/**
|
|
3204
3789
|
* Get VTXOs being used as inputs in pending rounds
|
|
3205
3790
|
*/
|
|
3206
|
-
pendingRoundInputVtxos() /*throws*/{
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3791
|
+
async pendingRoundInputVtxos(asyncOpts_) /*throws*/{
|
|
3792
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3793
|
+
try {
|
|
3794
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3795
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_round_input_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3796
|
+
}, /*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:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3797
|
+
} catch (__error) {
|
|
3798
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3799
|
+
__error.stack = __stack;
|
|
3800
|
+
}
|
|
3801
|
+
throw __error;
|
|
3802
|
+
}
|
|
3210
3803
|
}
|
|
3211
3804
|
|
|
3212
3805
|
/**
|
|
3213
3806
|
* Get all pending round states
|
|
3214
3807
|
*/
|
|
3215
|
-
pendingRoundStates() /*throws*/{
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3808
|
+
async pendingRoundStates(asyncOpts_) /*throws*/{
|
|
3809
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3810
|
+
try {
|
|
3811
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3812
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_round_states(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3813
|
+
}, /*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:*/FfiConverterArrayTypeRoundState.lift.bind(FfiConverterArrayTypeRoundState), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3814
|
+
} catch (__error) {
|
|
3815
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3816
|
+
__error.stack = __stack;
|
|
3817
|
+
}
|
|
3818
|
+
throw __error;
|
|
3819
|
+
}
|
|
3219
3820
|
}
|
|
3220
3821
|
|
|
3221
3822
|
/**
|
|
@@ -3229,10 +3830,18 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3229
3830
|
* * `onchain_wallet` - Onchain wallet for building exit transactions
|
|
3230
3831
|
* * `fee_rate_sat_per_vb` - Optional fee rate override in sats/vB
|
|
3231
3832
|
*/
|
|
3232
|
-
progressExits(onchainWallet, feeRateSatPerVb) /*throws*/{
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3833
|
+
async progressExits(onchainWallet, feeRateSatPerVb, asyncOpts_) /*throws*/{
|
|
3834
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3835
|
+
try {
|
|
3836
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3837
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_progress_exits(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterTypeOnchainWallet.lower(onchainWallet), FfiConverterOptionalUInt64.lower(feeRateSatPerVb));
|
|
3838
|
+
}, /*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:*/FfiConverterArrayTypeExitProgressStatus.lift.bind(FfiConverterArrayTypeExitProgressStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3839
|
+
} catch (__error) {
|
|
3840
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3841
|
+
__error.stack = __stack;
|
|
3842
|
+
}
|
|
3843
|
+
throw __error;
|
|
3844
|
+
}
|
|
3236
3845
|
}
|
|
3237
3846
|
|
|
3238
3847
|
/**
|
|
@@ -3240,19 +3849,35 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3240
3849
|
*
|
|
3241
3850
|
* Advances the state of all pending rounds. Call periodically.
|
|
3242
3851
|
*/
|
|
3243
|
-
progressPendingRounds() /*throws*/{
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3852
|
+
async progressPendingRounds(asyncOpts_) /*throws*/{
|
|
3853
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3854
|
+
try {
|
|
3855
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3856
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_progress_pending_rounds(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3857
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3858
|
+
} catch (__error) {
|
|
3859
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3860
|
+
__error.stack = __stack;
|
|
3861
|
+
}
|
|
3862
|
+
throw __error;
|
|
3863
|
+
}
|
|
3247
3864
|
}
|
|
3248
3865
|
|
|
3249
3866
|
/**
|
|
3250
3867
|
* Get wallet properties
|
|
3251
3868
|
*/
|
|
3252
|
-
properties() /*throws*/{
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3869
|
+
async properties(asyncOpts_) /*throws*/{
|
|
3870
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3871
|
+
try {
|
|
3872
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3873
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_properties(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3874
|
+
}, /*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:*/FfiConverterTypeWalletProperties.lift.bind(FfiConverterTypeWalletProperties), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3875
|
+
} catch (__error) {
|
|
3876
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3877
|
+
__error.stack = __stack;
|
|
3878
|
+
}
|
|
3879
|
+
throw __error;
|
|
3880
|
+
}
|
|
3256
3881
|
}
|
|
3257
3882
|
|
|
3258
3883
|
/**
|
|
@@ -3260,19 +3885,35 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3260
3885
|
*
|
|
3261
3886
|
* Re-establishes connection if it was lost.
|
|
3262
3887
|
*/
|
|
3263
|
-
refreshServer() /*throws*/{
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3888
|
+
async refreshServer(asyncOpts_) /*throws*/{
|
|
3889
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3890
|
+
try {
|
|
3891
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3892
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_refresh_server(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3893
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3894
|
+
} catch (__error) {
|
|
3895
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3896
|
+
__error.stack = __stack;
|
|
3897
|
+
}
|
|
3898
|
+
throw __error;
|
|
3899
|
+
}
|
|
3267
3900
|
}
|
|
3268
3901
|
|
|
3269
3902
|
/**
|
|
3270
3903
|
* Refresh specific VTXOs
|
|
3271
3904
|
*/
|
|
3272
|
-
refreshVtxos(vtxoIds) /*throws*/{
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3905
|
+
async refreshVtxos(vtxoIds, asyncOpts_) /*throws*/{
|
|
3906
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3907
|
+
try {
|
|
3908
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3909
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterArrayString.lower(vtxoIds));
|
|
3910
|
+
}, /*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:*/FfiConverterOptionalString.lift.bind(FfiConverterOptionalString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3911
|
+
} catch (__error) {
|
|
3912
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3913
|
+
__error.stack = __stack;
|
|
3914
|
+
}
|
|
3915
|
+
throw __error;
|
|
3916
|
+
}
|
|
3276
3917
|
}
|
|
3277
3918
|
|
|
3278
3919
|
/**
|
|
@@ -3280,20 +3921,44 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3280
3921
|
*
|
|
3281
3922
|
* Returns the round state if a refresh was scheduled, null otherwise.
|
|
3282
3923
|
*/
|
|
3283
|
-
refreshVtxosDelegated(vtxoIds) /*throws*/{
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3924
|
+
async refreshVtxosDelegated(vtxoIds, asyncOpts_) /*throws*/{
|
|
3925
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3926
|
+
try {
|
|
3927
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3928
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos_delegated(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterArrayString.lower(vtxoIds));
|
|
3929
|
+
}, /*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:*/FfiConverterOptionalTypeRoundState.lift.bind(FfiConverterOptionalTypeRoundState), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3930
|
+
} catch (__error) {
|
|
3931
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3932
|
+
__error.stack = __stack;
|
|
3933
|
+
}
|
|
3934
|
+
throw __error;
|
|
3935
|
+
}
|
|
3287
3936
|
}
|
|
3288
|
-
sendArkoorPayment(arkAddress, amountSats) /*throws*/{
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3937
|
+
async sendArkoorPayment(arkAddress, amountSats, asyncOpts_) /*throws*/{
|
|
3938
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3939
|
+
try {
|
|
3940
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3941
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_send_arkoor_payment(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(arkAddress), FfiConverterUInt64.lower(amountSats));
|
|
3942
|
+
}, /*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:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3943
|
+
} catch (__error) {
|
|
3944
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3945
|
+
__error.stack = __stack;
|
|
3946
|
+
}
|
|
3947
|
+
throw __error;
|
|
3948
|
+
}
|
|
3292
3949
|
}
|
|
3293
|
-
sendOnchain(address, amountSats) /*throws*/{
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3950
|
+
async sendOnchain(address, amountSats, asyncOpts_) /*throws*/{
|
|
3951
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3952
|
+
try {
|
|
3953
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3954
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_send_onchain(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(address), FfiConverterUInt64.lower(amountSats));
|
|
3955
|
+
}, /*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:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3956
|
+
} catch (__error) {
|
|
3957
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3958
|
+
__error.stack = __stack;
|
|
3959
|
+
}
|
|
3960
|
+
throw __error;
|
|
3961
|
+
}
|
|
3297
3962
|
}
|
|
3298
3963
|
|
|
3299
3964
|
/**
|
|
@@ -3308,28 +3973,52 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3308
3973
|
*
|
|
3309
3974
|
* Returns the signed PSBT
|
|
3310
3975
|
*/
|
|
3311
|
-
signExitClaimInputs(psbtBase64) /*throws*/{
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3976
|
+
async signExitClaimInputs(psbtBase64, asyncOpts_) /*throws*/{
|
|
3977
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3978
|
+
try {
|
|
3979
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3980
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_sign_exit_claim_inputs(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(psbtBase64));
|
|
3981
|
+
}, /*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:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3982
|
+
} catch (__error) {
|
|
3983
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3984
|
+
__error.stack = __stack;
|
|
3985
|
+
}
|
|
3986
|
+
throw __error;
|
|
3987
|
+
}
|
|
3315
3988
|
}
|
|
3316
3989
|
|
|
3317
3990
|
/**
|
|
3318
3991
|
* Get all spendable VTXOs
|
|
3319
3992
|
*/
|
|
3320
|
-
spendableVtxos() /*throws*/{
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3993
|
+
async spendableVtxos(asyncOpts_) /*throws*/{
|
|
3994
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3995
|
+
try {
|
|
3996
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3997
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_spendable_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3998
|
+
}, /*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:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3999
|
+
} catch (__error) {
|
|
4000
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
4001
|
+
__error.stack = __stack;
|
|
4002
|
+
}
|
|
4003
|
+
throw __error;
|
|
4004
|
+
}
|
|
3324
4005
|
}
|
|
3325
4006
|
|
|
3326
4007
|
/**
|
|
3327
4008
|
* Start unilateral exit for the entire wallet
|
|
3328
4009
|
*/
|
|
3329
|
-
startExitForEntireWallet() /*throws*/{
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
4010
|
+
async startExitForEntireWallet(asyncOpts_) /*throws*/{
|
|
4011
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4012
|
+
try {
|
|
4013
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
4014
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_start_exit_for_entire_wallet(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
4015
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
4016
|
+
} catch (__error) {
|
|
4017
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
4018
|
+
__error.stack = __stack;
|
|
4019
|
+
}
|
|
4020
|
+
throw __error;
|
|
4021
|
+
}
|
|
3333
4022
|
}
|
|
3334
4023
|
|
|
3335
4024
|
/**
|
|
@@ -3337,10 +4026,18 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3337
4026
|
*
|
|
3338
4027
|
* Marks specific VTXOs for exit. Call progress_exits() to actually advance them.
|
|
3339
4028
|
*/
|
|
3340
|
-
startExitForVtxos(vtxoIds) /*throws*/{
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
4029
|
+
async startExitForVtxos(vtxoIds, asyncOpts_) /*throws*/{
|
|
4030
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4031
|
+
try {
|
|
4032
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
4033
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_start_exit_for_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterArrayString.lower(vtxoIds));
|
|
4034
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
4035
|
+
} catch (__error) {
|
|
4036
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
4037
|
+
__error.stack = __stack;
|
|
4038
|
+
}
|
|
4039
|
+
throw __error;
|
|
4040
|
+
}
|
|
3344
4041
|
}
|
|
3345
4042
|
|
|
3346
4043
|
/**
|
|
@@ -3348,33 +4045,65 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3348
4045
|
* Note: Bark's sync() handles errors internally with logging.
|
|
3349
4046
|
* The Throws annotation is for forward compatibility only.
|
|
3350
4047
|
*/
|
|
3351
|
-
sync() /*throws*/{
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
4048
|
+
async sync(asyncOpts_) /*throws*/{
|
|
4049
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4050
|
+
try {
|
|
4051
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
4052
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_sync(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
4053
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
4054
|
+
} catch (__error) {
|
|
4055
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
4056
|
+
__error.stack = __stack;
|
|
4057
|
+
}
|
|
4058
|
+
throw __error;
|
|
4059
|
+
}
|
|
3355
4060
|
}
|
|
3356
4061
|
|
|
3357
4062
|
/**
|
|
3358
4063
|
* Sync exit state (checks status but doesn't progress)
|
|
3359
4064
|
*/
|
|
3360
|
-
syncExits(onchainWallet) /*throws*/{
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
4065
|
+
async syncExits(onchainWallet, asyncOpts_) /*throws*/{
|
|
4066
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4067
|
+
try {
|
|
4068
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
4069
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_sync_exits(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterTypeOnchainWallet.lower(onchainWallet));
|
|
4070
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
4071
|
+
} catch (__error) {
|
|
4072
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
4073
|
+
__error.stack = __stack;
|
|
4074
|
+
}
|
|
4075
|
+
throw __error;
|
|
4076
|
+
}
|
|
3364
4077
|
}
|
|
3365
4078
|
|
|
3366
4079
|
/**
|
|
3367
4080
|
* Sync pending board transactions
|
|
3368
4081
|
*/
|
|
3369
|
-
syncPendingBoards() /*throws*/{
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
4082
|
+
async syncPendingBoards(asyncOpts_) /*throws*/{
|
|
4083
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4084
|
+
try {
|
|
4085
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
4086
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_sync_pending_boards(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
4087
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
4088
|
+
} catch (__error) {
|
|
4089
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
4090
|
+
__error.stack = __stack;
|
|
4091
|
+
}
|
|
4092
|
+
throw __error;
|
|
4093
|
+
}
|
|
3373
4094
|
}
|
|
3374
|
-
tryClaimAllLightningReceives(wait) /*throws*/{
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
4095
|
+
async tryClaimAllLightningReceives(wait, asyncOpts_) /*throws*/{
|
|
4096
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4097
|
+
try {
|
|
4098
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
4099
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_try_claim_all_lightning_receives(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterBool.lower(wait));
|
|
4100
|
+
}, /*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:*/FfiConverterArrayTypeLightningReceive.lift.bind(FfiConverterArrayTypeLightningReceive), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
4101
|
+
} catch (__error) {
|
|
4102
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
4103
|
+
__error.stack = __stack;
|
|
4104
|
+
}
|
|
4105
|
+
throw __error;
|
|
4106
|
+
}
|
|
3378
4107
|
}
|
|
3379
4108
|
|
|
3380
4109
|
/**
|
|
@@ -3385,10 +4114,18 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3385
4114
|
* * `payment_hash` - Payment hash as hex string
|
|
3386
4115
|
* * `wait` - Whether to wait for claim to complete
|
|
3387
4116
|
*/
|
|
3388
|
-
tryClaimLightningReceive(paymentHash, wait) /*throws*/{
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
4117
|
+
async tryClaimLightningReceive(paymentHash, wait, asyncOpts_) /*throws*/{
|
|
4118
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4119
|
+
try {
|
|
4120
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
4121
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_try_claim_lightning_receive(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash), FfiConverterBool.lower(wait));
|
|
4122
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
4123
|
+
} catch (__error) {
|
|
4124
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
4125
|
+
__error.stack = __stack;
|
|
4126
|
+
}
|
|
4127
|
+
throw __error;
|
|
4128
|
+
}
|
|
3392
4129
|
}
|
|
3393
4130
|
|
|
3394
4131
|
/**
|
|
@@ -3398,15 +4135,31 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3398
4135
|
* belongs to the currently connected Ark server.
|
|
3399
4136
|
* For basic format validation only, use validate_ark_address() instead.
|
|
3400
4137
|
*/
|
|
3401
|
-
validateArkoorAddress(address) /*throws*/{
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
4138
|
+
async validateArkoorAddress(address, asyncOpts_) /*throws*/{
|
|
4139
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4140
|
+
try {
|
|
4141
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
4142
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_validate_arkoor_address(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(address));
|
|
4143
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_i8, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_i8, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_i8, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_i8, /*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
4144
|
+
} catch (__error) {
|
|
4145
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
4146
|
+
__error.stack = __stack;
|
|
4147
|
+
}
|
|
4148
|
+
throw __error;
|
|
4149
|
+
}
|
|
3405
4150
|
}
|
|
3406
|
-
vtxos() /*throws*/{
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
4151
|
+
async vtxos(asyncOpts_) /*throws*/{
|
|
4152
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4153
|
+
try {
|
|
4154
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
4155
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
4156
|
+
}, /*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:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
4157
|
+
} catch (__error) {
|
|
4158
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
4159
|
+
__error.stack = __stack;
|
|
4160
|
+
}
|
|
4161
|
+
throw __error;
|
|
4162
|
+
}
|
|
3410
4163
|
}
|
|
3411
4164
|
|
|
3412
4165
|
/**
|
|
@@ -3560,118 +4313,121 @@ function uniffiEnsureInitialized() {
|
|
|
3560
4313
|
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_notificationholder_next_notification() !== 10262) {
|
|
3561
4314
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_notificationholder_next_notification");
|
|
3562
4315
|
}
|
|
3563
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_balance() !==
|
|
4316
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_balance() !== 24090) {
|
|
3564
4317
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_balance");
|
|
3565
4318
|
}
|
|
3566
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_new_address() !==
|
|
4319
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_new_address() !== 19984) {
|
|
3567
4320
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_new_address");
|
|
3568
4321
|
}
|
|
3569
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_send() !==
|
|
4322
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_send() !== 11542) {
|
|
3570
4323
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_send");
|
|
3571
4324
|
}
|
|
3572
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_sync() !==
|
|
4325
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_sync() !== 16676) {
|
|
3573
4326
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_sync");
|
|
3574
4327
|
}
|
|
3575
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_exits_claimable_at_height() !==
|
|
4328
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_exits_claimable_at_height() !== 13253) {
|
|
3576
4329
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_all_exits_claimable_at_height");
|
|
3577
4330
|
}
|
|
3578
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_vtxos() !==
|
|
4331
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_vtxos() !== 31) {
|
|
3579
4332
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_all_vtxos");
|
|
3580
4333
|
}
|
|
3581
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_ark_info() !==
|
|
4334
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_ark_info() !== 15972) {
|
|
3582
4335
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_ark_info");
|
|
3583
4336
|
}
|
|
3584
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_balance() !==
|
|
4337
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_balance() !== 5493) {
|
|
3585
4338
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_balance");
|
|
3586
4339
|
}
|
|
3587
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_all() !==
|
|
4340
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_all() !== 20836) {
|
|
3588
4341
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_board_all");
|
|
3589
4342
|
}
|
|
3590
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_amount() !==
|
|
4343
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_amount() !== 42039) {
|
|
3591
4344
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_board_amount");
|
|
3592
4345
|
}
|
|
3593
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice() !==
|
|
4346
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice() !== 24463) {
|
|
3594
4347
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice");
|
|
3595
4348
|
}
|
|
3596
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_broadcast_tx() !==
|
|
4349
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_broadcast_tx() !== 31354) {
|
|
3597
4350
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_broadcast_tx");
|
|
3598
4351
|
}
|
|
3599
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds() !==
|
|
4352
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds() !== 44373) {
|
|
3600
4353
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds");
|
|
3601
4354
|
}
|
|
3602
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round() !==
|
|
4355
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round() !== 11047) {
|
|
3603
4356
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round");
|
|
3604
4357
|
}
|
|
3605
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment() !==
|
|
4358
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment() !== 24026) {
|
|
3606
4359
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment");
|
|
3607
4360
|
}
|
|
3608
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_claimable_lightning_receive_balance_sats() !==
|
|
4361
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_claimable_lightning_receive_balance_sats() !== 22912) {
|
|
3609
4362
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_claimable_lightning_receive_balance_sats");
|
|
3610
4363
|
}
|
|
3611
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_config() !==
|
|
4364
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_config() !== 55585) {
|
|
3612
4365
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_config");
|
|
3613
4366
|
}
|
|
3614
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_drain_exits() !==
|
|
4367
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_drain_exits() !== 50942) {
|
|
3615
4368
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_drain_exits");
|
|
3616
4369
|
}
|
|
3617
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee() !==
|
|
4370
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee() !== 21849) {
|
|
3618
4371
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee");
|
|
3619
4372
|
}
|
|
3620
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee() !==
|
|
4373
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee() !== 45832) {
|
|
3621
4374
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee");
|
|
3622
4375
|
}
|
|
3623
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee() !==
|
|
4376
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee() !== 44983) {
|
|
3624
4377
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee");
|
|
3625
4378
|
}
|
|
3626
|
-
if (nativeModule().
|
|
4379
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_all_fee() !== 30297) {
|
|
4380
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_all_fee");
|
|
4381
|
+
}
|
|
4382
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee() !== 59237) {
|
|
3627
4383
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee");
|
|
3628
4384
|
}
|
|
3629
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee() !==
|
|
4385
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee() !== 15211) {
|
|
3630
4386
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee");
|
|
3631
4387
|
}
|
|
3632
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_send_onchain_fee() !==
|
|
4388
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_send_onchain_fee() !== 53679) {
|
|
3633
4389
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_send_onchain_fee");
|
|
3634
4390
|
}
|
|
3635
4391
|
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_fingerprint() !== 60041) {
|
|
3636
4392
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_fingerprint");
|
|
3637
4393
|
}
|
|
3638
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_status() !==
|
|
4394
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_status() !== 18529) {
|
|
3639
4395
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_exit_status");
|
|
3640
4396
|
}
|
|
3641
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_vtxos() !==
|
|
4397
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_vtxos() !== 54522) {
|
|
3642
4398
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_exit_vtxos");
|
|
3643
4399
|
}
|
|
3644
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_expiring_vtxos() !==
|
|
4400
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_expiring_vtxos() !== 55353) {
|
|
3645
4401
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_expiring_vtxos");
|
|
3646
4402
|
}
|
|
3647
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_first_expiring_vtxo_blockheight() !==
|
|
4403
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_first_expiring_vtxo_blockheight() !== 24067) {
|
|
3648
4404
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_first_expiring_vtxo_blockheight");
|
|
3649
4405
|
}
|
|
3650
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_next_required_refresh_blockheight() !==
|
|
4406
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_next_required_refresh_blockheight() !== 57380) {
|
|
3651
4407
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_next_required_refresh_blockheight");
|
|
3652
4408
|
}
|
|
3653
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxo_by_id() !==
|
|
4409
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxo_by_id() !== 10372) {
|
|
3654
4410
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_vtxo_by_id");
|
|
3655
4411
|
}
|
|
3656
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxos_to_refresh() !==
|
|
4412
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxos_to_refresh() !== 22136) {
|
|
3657
4413
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_vtxos_to_refresh");
|
|
3658
4414
|
}
|
|
3659
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_has_pending_exits() !==
|
|
4415
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_has_pending_exits() !== 57567) {
|
|
3660
4416
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_has_pending_exits");
|
|
3661
4417
|
}
|
|
3662
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_history() !==
|
|
4418
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_history() !== 15574) {
|
|
3663
4419
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_history");
|
|
3664
4420
|
}
|
|
3665
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method() !==
|
|
4421
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method() !== 61615) {
|
|
3666
4422
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method");
|
|
3667
4423
|
}
|
|
3668
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_import_vtxo() !==
|
|
4424
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_import_vtxo() !== 3547) {
|
|
3669
4425
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_import_vtxo");
|
|
3670
4426
|
}
|
|
3671
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status() !==
|
|
4427
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status() !== 7557) {
|
|
3672
4428
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status");
|
|
3673
4429
|
}
|
|
3674
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits() !==
|
|
4430
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits() !== 11227) {
|
|
3675
4431
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits");
|
|
3676
4432
|
}
|
|
3677
4433
|
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization() !== 8915) {
|
|
@@ -3680,157 +4436,157 @@ function uniffiEnsureInitialized() {
|
|
|
3680
4436
|
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier() !== 32893) {
|
|
3681
4437
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier");
|
|
3682
4438
|
}
|
|
3683
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance() !==
|
|
4439
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance() !== 53276) {
|
|
3684
4440
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance");
|
|
3685
4441
|
}
|
|
3686
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_delegated() !==
|
|
4442
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_delegated() !== 43852) {
|
|
3687
4443
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance_delegated");
|
|
3688
4444
|
}
|
|
3689
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh() !==
|
|
4445
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh() !== 10551) {
|
|
3690
4446
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh");
|
|
3691
4447
|
}
|
|
3692
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain() !==
|
|
4448
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain() !== 38002) {
|
|
3693
4449
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain");
|
|
3694
4450
|
}
|
|
3695
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated() !==
|
|
4451
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated() !== 17750) {
|
|
3696
4452
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated");
|
|
3697
4453
|
}
|
|
3698
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maybe_schedule_maintenance_refresh() !==
|
|
4454
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maybe_schedule_maintenance_refresh() !== 11223) {
|
|
3699
4455
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maybe_schedule_maintenance_refresh");
|
|
3700
4456
|
}
|
|
3701
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_network() !==
|
|
4457
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_network() !== 9541) {
|
|
3702
4458
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_network");
|
|
3703
4459
|
}
|
|
3704
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address() !==
|
|
4460
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address() !== 49689) {
|
|
3705
4461
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_new_address");
|
|
3706
4462
|
}
|
|
3707
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address_with_index() !==
|
|
4463
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address_with_index() !== 51943) {
|
|
3708
4464
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_new_address_with_index");
|
|
3709
4465
|
}
|
|
3710
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_next_round_start_time() !==
|
|
4466
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_next_round_start_time() !== 51623) {
|
|
3711
4467
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_next_round_start_time");
|
|
3712
4468
|
}
|
|
3713
4469
|
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_notifications() !== 32641) {
|
|
3714
4470
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_notifications");
|
|
3715
4471
|
}
|
|
3716
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_all() !==
|
|
4472
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_all() !== 32138) {
|
|
3717
4473
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_offboard_all");
|
|
3718
4474
|
}
|
|
3719
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos() !==
|
|
4475
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos() !== 3097) {
|
|
3720
4476
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos");
|
|
3721
4477
|
}
|
|
3722
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address() !==
|
|
4478
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address() !== 42228) {
|
|
3723
4479
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address");
|
|
3724
4480
|
}
|
|
3725
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice() !==
|
|
4481
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice() !== 27095) {
|
|
3726
4482
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice");
|
|
3727
4483
|
}
|
|
3728
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer() !==
|
|
4484
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer() !== 28769) {
|
|
3729
4485
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer");
|
|
3730
4486
|
}
|
|
3731
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_peak_address() !==
|
|
4487
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_peak_address() !== 58941) {
|
|
3732
4488
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_peak_address");
|
|
3733
4489
|
}
|
|
3734
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_peek_address() !==
|
|
4490
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_peek_address() !== 43710) {
|
|
3735
4491
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_peek_address");
|
|
3736
4492
|
}
|
|
3737
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos() !==
|
|
4493
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos() !== 13395) {
|
|
3738
4494
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos");
|
|
3739
4495
|
}
|
|
3740
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_boards() !==
|
|
4496
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_boards() !== 62067) {
|
|
3741
4497
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_boards");
|
|
3742
4498
|
}
|
|
3743
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_exits_total_sats() !==
|
|
4499
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_exits_total_sats() !== 46977) {
|
|
3744
4500
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_exits_total_sats");
|
|
3745
4501
|
}
|
|
3746
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_receives() !==
|
|
4502
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_receives() !== 35932) {
|
|
3747
4503
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_lightning_receives");
|
|
3748
4504
|
}
|
|
3749
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_send_vtxos() !==
|
|
4505
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_send_vtxos() !== 55533) {
|
|
3750
4506
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_lightning_send_vtxos");
|
|
3751
4507
|
}
|
|
3752
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_sends() !==
|
|
4508
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_sends() !== 26660) {
|
|
3753
4509
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_lightning_sends");
|
|
3754
4510
|
}
|
|
3755
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos() !==
|
|
4511
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos() !== 21866) {
|
|
3756
4512
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos");
|
|
3757
4513
|
}
|
|
3758
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_states() !==
|
|
4514
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_states() !== 35008) {
|
|
3759
4515
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_round_states");
|
|
3760
4516
|
}
|
|
3761
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_exits() !==
|
|
4517
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_exits() !== 35774) {
|
|
3762
4518
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_progress_exits");
|
|
3763
4519
|
}
|
|
3764
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_pending_rounds() !==
|
|
4520
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_pending_rounds() !== 1264) {
|
|
3765
4521
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_progress_pending_rounds");
|
|
3766
4522
|
}
|
|
3767
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_properties() !==
|
|
4523
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_properties() !== 19786) {
|
|
3768
4524
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_properties");
|
|
3769
4525
|
}
|
|
3770
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_server() !==
|
|
4526
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_server() !== 32632) {
|
|
3771
4527
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_refresh_server");
|
|
3772
4528
|
}
|
|
3773
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos() !==
|
|
4529
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos() !== 16414) {
|
|
3774
4530
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos");
|
|
3775
4531
|
}
|
|
3776
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated() !==
|
|
4532
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated() !== 28232) {
|
|
3777
4533
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated");
|
|
3778
4534
|
}
|
|
3779
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment() !==
|
|
4535
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment() !== 22412) {
|
|
3780
4536
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment");
|
|
3781
4537
|
}
|
|
3782
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_onchain() !==
|
|
4538
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_onchain() !== 11074) {
|
|
3783
4539
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_send_onchain");
|
|
3784
4540
|
}
|
|
3785
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sign_exit_claim_inputs() !==
|
|
4541
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sign_exit_claim_inputs() !== 60570) {
|
|
3786
4542
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sign_exit_claim_inputs");
|
|
3787
4543
|
}
|
|
3788
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_spendable_vtxos() !==
|
|
4544
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_spendable_vtxos() !== 59499) {
|
|
3789
4545
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_spendable_vtxos");
|
|
3790
4546
|
}
|
|
3791
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_entire_wallet() !==
|
|
4547
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_entire_wallet() !== 5830) {
|
|
3792
4548
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_start_exit_for_entire_wallet");
|
|
3793
4549
|
}
|
|
3794
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos() !==
|
|
4550
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos() !== 60703) {
|
|
3795
4551
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos");
|
|
3796
4552
|
}
|
|
3797
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync() !==
|
|
4553
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync() !== 40752) {
|
|
3798
4554
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sync");
|
|
3799
4555
|
}
|
|
3800
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_exits() !==
|
|
4556
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_exits() !== 64538) {
|
|
3801
4557
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sync_exits");
|
|
3802
4558
|
}
|
|
3803
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards() !==
|
|
4559
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards() !== 35491) {
|
|
3804
4560
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards");
|
|
3805
4561
|
}
|
|
3806
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives() !==
|
|
4562
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives() !== 33011) {
|
|
3807
4563
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives");
|
|
3808
4564
|
}
|
|
3809
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive() !==
|
|
4565
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive() !== 51478) {
|
|
3810
4566
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive");
|
|
3811
4567
|
}
|
|
3812
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address() !==
|
|
4568
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address() !== 52352) {
|
|
3813
4569
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address");
|
|
3814
4570
|
}
|
|
3815
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxos() !==
|
|
4571
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxos() !== 24992) {
|
|
3816
4572
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_vtxos");
|
|
3817
4573
|
}
|
|
3818
4574
|
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_onchainwallet_custom() !== 33851) {
|
|
3819
4575
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_onchainwallet_custom");
|
|
3820
4576
|
}
|
|
3821
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_onchainwallet_default() !==
|
|
4577
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_onchainwallet_default() !== 37437) {
|
|
3822
4578
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_onchainwallet_default");
|
|
3823
4579
|
}
|
|
3824
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_create() !==
|
|
4580
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_create() !== 5143) {
|
|
3825
4581
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_wallet_create");
|
|
3826
4582
|
}
|
|
3827
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_create_with_onchain() !==
|
|
4583
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_create_with_onchain() !== 34242) {
|
|
3828
4584
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_wallet_create_with_onchain");
|
|
3829
4585
|
}
|
|
3830
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open() !==
|
|
4586
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open() !== 31794) {
|
|
3831
4587
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_wallet_open");
|
|
3832
4588
|
}
|
|
3833
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open_with_onchain() !==
|
|
4589
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open_with_onchain() !== 22896) {
|
|
3834
4590
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_wallet_open_with_onchain");
|
|
3835
4591
|
}
|
|
3836
4592
|
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance() !== 17287) {
|
|
@@ -3877,6 +4633,7 @@ export default Object.freeze({
|
|
|
3877
4633
|
FfiConverterTypeExitProgressStatus,
|
|
3878
4634
|
FfiConverterTypeExitTransactionStatus,
|
|
3879
4635
|
FfiConverterTypeExitVtxo,
|
|
4636
|
+
FfiConverterTypeFeeEstimate,
|
|
3880
4637
|
FfiConverterTypeLightningInvoice,
|
|
3881
4638
|
FfiConverterTypeLightningReceive,
|
|
3882
4639
|
FfiConverterTypeLightningSend,
|