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