@secondts/bark-react-native 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/cpp/generated/bark.cpp +296 -194
- package/cpp/generated/bark.hpp +8 -10
- package/lib/commonjs/generated/bark-ffi.js.map +1 -1
- package/lib/commonjs/generated/bark.js +451 -960
- 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 +450 -960
- package/lib/module/generated/bark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts +12 -12
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark.d.ts +357 -1323
- package/lib/typescript/commonjs/src/generated/bark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark-ffi.d.ts +12 -12
- package/lib/typescript/module/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark.d.ts +357 -1323
- package/lib/typescript/module/src/generated/bark.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/generated/bark-ffi.ts +33 -35
- package/src/generated/bark.ts +739 -1611
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
// @ts-nocheck
|
|
9
9
|
import nativeModule from "./bark-ffi.js";
|
|
10
|
-
import { AbstractFfiConverterByteArray, FfiConverterArray, FfiConverterBool, FfiConverterInt32, FfiConverterInt64, FfiConverterObject, FfiConverterObjectWithCallbacks, FfiConverterOptional, FfiConverterUInt16, FfiConverterUInt32, FfiConverterUInt64, FfiConverterUInt8, UniffiAbstractObject, UniffiEnum, UniffiError, UniffiInternalError, UniffiResult, UniffiRustCaller, destructorGuardSymbol, pointerLiteralSymbol, uniffiCreateFfiConverterString, uniffiCreateRecord, uniffiRustCallAsync, uniffiTraitInterfaceCall, uniffiTraitInterfaceCallWithError, uniffiTypeNameSymbol } from "uniffi-bindgen-react-native";
|
|
10
|
+
import { AbstractFfiConverterByteArray, FfiConverterArray, FfiConverterBool, FfiConverterInt32, FfiConverterInt64, FfiConverterObject, FfiConverterObjectWithCallbacks, FfiConverterOptional, FfiConverterUInt16, FfiConverterUInt32, FfiConverterUInt64, FfiConverterUInt8, UniffiAbstractObject, UniffiEnum, UniffiError, UniffiInternalError, UniffiResult, UniffiRustCaller, destructorGuardSymbol, pointerLiteralSymbol, uniffiCreateFfiConverterString, uniffiCreateRecord, uniffiRustCallAsync, uniffiTraitInterfaceCall, uniffiTraitInterfaceCallWithError, uniffiTypeNameSymbol, variantOrdinalSymbol } from "uniffi-bindgen-react-native";
|
|
11
11
|
|
|
12
12
|
// Get converters from the other files, if any.
|
|
13
13
|
const uniffiCaller = new UniffiRustCaller(() => ({
|
|
@@ -35,7 +35,7 @@ process?.env?.NODE_ENV !== "production" || false;
|
|
|
35
35
|
* Hex-encoded signed transaction ready for broadcasting
|
|
36
36
|
*/
|
|
37
37
|
export function extractTxFromPsbt(psbtBase64) /*throws*/{
|
|
38
|
-
return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/
|
|
38
|
+
return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
|
|
39
39
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_func_extract_tx_from_psbt(FfiConverterString.lower(psbtBase64), callStatus);
|
|
40
40
|
}, /*liftString:*/FfiConverterString.lift));
|
|
41
41
|
}
|
|
@@ -43,7 +43,7 @@ export function extractTxFromPsbt(psbtBase64) /*throws*/{
|
|
|
43
43
|
* Generate a new 12-word BIP39 mnemonic
|
|
44
44
|
*/
|
|
45
45
|
export function generateMnemonic() /*throws*/{
|
|
46
|
-
return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/
|
|
46
|
+
return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
|
|
47
47
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_func_generate_mnemonic(callStatus);
|
|
48
48
|
}, /*liftString:*/FfiConverterString.lift));
|
|
49
49
|
}
|
|
@@ -55,7 +55,7 @@ export function generateMnemonic() /*throws*/{
|
|
|
55
55
|
* use Wallet::validate_arkoor_address() instead.
|
|
56
56
|
*/
|
|
57
57
|
export function validateArkAddress(address) /*throws*/{
|
|
58
|
-
return FfiConverterBool.lift(uniffiCaller.rustCallWithError(/*liftError:*/
|
|
58
|
+
return FfiConverterBool.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
|
|
59
59
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_func_validate_ark_address(FfiConverterString.lower(address), callStatus);
|
|
60
60
|
}, /*liftString:*/FfiConverterString.lift));
|
|
61
61
|
}
|
|
@@ -63,7 +63,7 @@ export function validateArkAddress(address) /*throws*/{
|
|
|
63
63
|
* Validate a BIP39 mnemonic phrase
|
|
64
64
|
*/
|
|
65
65
|
export function validateMnemonic(mnemonic) /*throws*/{
|
|
66
|
-
return FfiConverterBool.lift(uniffiCaller.rustCallWithError(/*liftError:*/
|
|
66
|
+
return FfiConverterBool.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
|
|
67
67
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_func_validate_mnemonic(FfiConverterString.lower(mnemonic), callStatus);
|
|
68
68
|
}, /*liftString:*/FfiConverterString.lift));
|
|
69
69
|
}
|
|
@@ -74,10 +74,28 @@ export function validateMnemonic(mnemonic) /*throws*/{
|
|
|
74
74
|
* will return an error.
|
|
75
75
|
*/
|
|
76
76
|
export function setLogger(logger, maxLevel) /*throws*/{
|
|
77
|
-
uniffiCaller.rustCallWithError(/*liftError:*/
|
|
77
|
+
uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
|
|
78
78
|
nativeModule().ubrn_uniffi_bark_ffi_fn_func_set_logger(FfiConverterTypeBarkLogger.lower(logger), FfiConverterTypeLogLevel.lower(maxLevel), callStatus);
|
|
79
79
|
}, /*liftString:*/FfiConverterString.lift);
|
|
80
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* Low-level function to initialize a wallet
|
|
83
|
+
*
|
|
84
|
+
* You probably want to use [`Wallet::open`] instead.
|
|
85
|
+
*/
|
|
86
|
+
export async function initWallet(network, mnemonicOrSeed, config, datadir, allowUnreachableServer, asyncOpts_) /*throws*/{
|
|
87
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
88
|
+
try {
|
|
89
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
90
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_func_init_wallet(FfiConverterTypeNetwork.lower(network), FfiConverterString.lower(mnemonicOrSeed), FfiConverterTypeConfig.lower(config), FfiConverterString.lower(datadir), FfiConverterBool.lower(allowUnreachableServer));
|
|
91
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
92
|
+
} catch (__error) {
|
|
93
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
94
|
+
__error.stack = __stack;
|
|
95
|
+
}
|
|
96
|
+
throw __error;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
81
99
|
/**
|
|
82
100
|
* Generated factory for {@link AddressWithIndex} record objects.
|
|
83
101
|
*/
|
|
@@ -270,7 +288,6 @@ const FfiConverterTypeConfig = (() => {
|
|
|
270
288
|
bitcoindCookiefile: FfiConverterOptionalString.read(from),
|
|
271
289
|
bitcoindUser: FfiConverterOptionalString.read(from),
|
|
272
290
|
bitcoindPass: FfiConverterOptionalString.read(from),
|
|
273
|
-
network: FfiConverterTypeNetwork.read(from),
|
|
274
291
|
vtxoRefreshExpiryThreshold: FfiConverterOptionalUInt32.read(from),
|
|
275
292
|
vtxoExitMargin: FfiConverterOptionalUInt16.read(from),
|
|
276
293
|
htlcRecvClaimDelta: FfiConverterOptionalUInt16.read(from),
|
|
@@ -279,7 +296,8 @@ const FfiConverterTypeConfig = (() => {
|
|
|
279
296
|
daemonSyncIntervalSecs: FfiConverterOptionalUInt64.read(from),
|
|
280
297
|
offboardRequiredConfirmations: FfiConverterOptionalUInt32.read(from),
|
|
281
298
|
daemonManualSync: FfiConverterOptionalBool.read(from),
|
|
282
|
-
lightningReceiveClaimRetries: FfiConverterOptionalUInt8.read(from)
|
|
299
|
+
lightningReceiveClaimRetries: FfiConverterOptionalUInt8.read(from),
|
|
300
|
+
userAgent: FfiConverterOptionalString.read(from)
|
|
283
301
|
};
|
|
284
302
|
}
|
|
285
303
|
write(value, into) {
|
|
@@ -290,7 +308,6 @@ const FfiConverterTypeConfig = (() => {
|
|
|
290
308
|
FfiConverterOptionalString.write(value.bitcoindCookiefile, into);
|
|
291
309
|
FfiConverterOptionalString.write(value.bitcoindUser, into);
|
|
292
310
|
FfiConverterOptionalString.write(value.bitcoindPass, into);
|
|
293
|
-
FfiConverterTypeNetwork.write(value.network, into);
|
|
294
311
|
FfiConverterOptionalUInt32.write(value.vtxoRefreshExpiryThreshold, into);
|
|
295
312
|
FfiConverterOptionalUInt16.write(value.vtxoExitMargin, into);
|
|
296
313
|
FfiConverterOptionalUInt16.write(value.htlcRecvClaimDelta, into);
|
|
@@ -300,9 +317,10 @@ const FfiConverterTypeConfig = (() => {
|
|
|
300
317
|
FfiConverterOptionalUInt32.write(value.offboardRequiredConfirmations, into);
|
|
301
318
|
FfiConverterOptionalBool.write(value.daemonManualSync, into);
|
|
302
319
|
FfiConverterOptionalUInt8.write(value.lightningReceiveClaimRetries, into);
|
|
320
|
+
FfiConverterOptionalString.write(value.userAgent, into);
|
|
303
321
|
}
|
|
304
322
|
allocationSize(value) {
|
|
305
|
-
return FfiConverterString.allocationSize(value.serverAddress) + FfiConverterOptionalString.allocationSize(value.serverAccessToken) + FfiConverterOptionalString.allocationSize(value.esploraAddress) + FfiConverterOptionalString.allocationSize(value.bitcoindAddress) + FfiConverterOptionalString.allocationSize(value.bitcoindCookiefile) + FfiConverterOptionalString.allocationSize(value.bitcoindUser) + FfiConverterOptionalString.allocationSize(value.bitcoindPass) +
|
|
323
|
+
return FfiConverterString.allocationSize(value.serverAddress) + FfiConverterOptionalString.allocationSize(value.serverAccessToken) + FfiConverterOptionalString.allocationSize(value.esploraAddress) + FfiConverterOptionalString.allocationSize(value.bitcoindAddress) + FfiConverterOptionalString.allocationSize(value.bitcoindCookiefile) + FfiConverterOptionalString.allocationSize(value.bitcoindUser) + FfiConverterOptionalString.allocationSize(value.bitcoindPass) + FfiConverterOptionalUInt32.allocationSize(value.vtxoRefreshExpiryThreshold) + FfiConverterOptionalUInt16.allocationSize(value.vtxoExitMargin) + FfiConverterOptionalUInt16.allocationSize(value.htlcRecvClaimDelta) + FfiConverterOptionalUInt64.allocationSize(value.fallbackFeeRate) + FfiConverterOptionalUInt32.allocationSize(value.roundTxRequiredConfirmations) + FfiConverterOptionalUInt64.allocationSize(value.daemonSyncIntervalSecs) + FfiConverterOptionalUInt32.allocationSize(value.offboardRequiredConfirmations) + FfiConverterOptionalBool.allocationSize(value.daemonManualSync) + FfiConverterOptionalUInt8.allocationSize(value.lightningReceiveClaimRetries) + FfiConverterOptionalString.allocationSize(value.userAgent);
|
|
306
324
|
}
|
|
307
325
|
}
|
|
308
326
|
return new FFIConverter();
|
|
@@ -971,6 +989,56 @@ const FfiConverterTypeVtxo = (() => {
|
|
|
971
989
|
}
|
|
972
990
|
return new FFIConverter();
|
|
973
991
|
})();
|
|
992
|
+
|
|
993
|
+
/**
|
|
994
|
+
* Optional arguments for [`Wallet::open`], mirroring [`bark::OpenWalletArgs`].
|
|
995
|
+
*
|
|
996
|
+
* Every field has a default, so callers only set what they need.
|
|
997
|
+
*/
|
|
998
|
+
|
|
999
|
+
/**
|
|
1000
|
+
* Generated factory for {@link WalletOpenArgs} record objects.
|
|
1001
|
+
*/
|
|
1002
|
+
export const WalletOpenArgs = (() => {
|
|
1003
|
+
const defaults = () => ({
|
|
1004
|
+
runDaemon: true,
|
|
1005
|
+
onchain: undefined,
|
|
1006
|
+
createIfNotExists: true,
|
|
1007
|
+
createWithoutServer: false
|
|
1008
|
+
});
|
|
1009
|
+
const create = (() => {
|
|
1010
|
+
return uniffiCreateRecord(defaults);
|
|
1011
|
+
})();
|
|
1012
|
+
return Object.freeze({
|
|
1013
|
+
create,
|
|
1014
|
+
new: create,
|
|
1015
|
+
defaults: () => Object.freeze(defaults())
|
|
1016
|
+
});
|
|
1017
|
+
})();
|
|
1018
|
+
const FfiConverterTypeWalletOpenArgs = (() => {
|
|
1019
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
1020
|
+
read(from) {
|
|
1021
|
+
return {
|
|
1022
|
+
runDaemon: FfiConverterBool.read(from),
|
|
1023
|
+
datadir: FfiConverterString.read(from),
|
|
1024
|
+
onchain: FfiConverterOptionalTypeOnchainWallet.read(from),
|
|
1025
|
+
createIfNotExists: FfiConverterBool.read(from),
|
|
1026
|
+
createWithoutServer: FfiConverterBool.read(from)
|
|
1027
|
+
};
|
|
1028
|
+
}
|
|
1029
|
+
write(value, into) {
|
|
1030
|
+
FfiConverterBool.write(value.runDaemon, into);
|
|
1031
|
+
FfiConverterString.write(value.datadir, into);
|
|
1032
|
+
FfiConverterOptionalTypeOnchainWallet.write(value.onchain, into);
|
|
1033
|
+
FfiConverterBool.write(value.createIfNotExists, into);
|
|
1034
|
+
FfiConverterBool.write(value.createWithoutServer, into);
|
|
1035
|
+
}
|
|
1036
|
+
allocationSize(value) {
|
|
1037
|
+
return FfiConverterBool.allocationSize(value.runDaemon) + FfiConverterString.allocationSize(value.datadir) + FfiConverterOptionalTypeOnchainWallet.allocationSize(value.onchain) + FfiConverterBool.allocationSize(value.createIfNotExists) + FfiConverterBool.allocationSize(value.createWithoutServer);
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
return new FFIConverter();
|
|
1041
|
+
})();
|
|
974
1042
|
/**
|
|
975
1043
|
* Generated factory for {@link WalletProperties} record objects.
|
|
976
1044
|
*/
|
|
@@ -1010,669 +1078,84 @@ const stringConverter = {
|
|
|
1010
1078
|
};
|
|
1011
1079
|
const FfiConverterString = uniffiCreateFfiConverterString(stringConverter);
|
|
1012
1080
|
|
|
1013
|
-
//
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
BarkError_Tags["Network"] = "Network";
|
|
1018
|
-
BarkError_Tags["Database"] = "Database";
|
|
1019
|
-
BarkError_Tags["InvalidMnemonic"] = "InvalidMnemonic";
|
|
1020
|
-
BarkError_Tags["InvalidAddress"] = "InvalidAddress";
|
|
1021
|
-
BarkError_Tags["InvalidInvoice"] = "InvalidInvoice";
|
|
1022
|
-
BarkError_Tags["InvalidPsbt"] = "InvalidPsbt";
|
|
1023
|
-
BarkError_Tags["InvalidTransaction"] = "InvalidTransaction";
|
|
1024
|
-
BarkError_Tags["InsufficientFunds"] = "InsufficientFunds";
|
|
1025
|
-
BarkError_Tags["NotFound"] = "NotFound";
|
|
1026
|
-
BarkError_Tags["ServerConnection"] = "ServerConnection";
|
|
1027
|
-
BarkError_Tags["Internal"] = "Internal";
|
|
1028
|
-
BarkError_Tags["OnchainWalletRequired"] = "OnchainWalletRequired";
|
|
1029
|
-
BarkError_Tags["InvalidVtxoId"] = "InvalidVtxoId";
|
|
1030
|
-
BarkError_Tags["ServerPubkeyChanged"] = "ServerPubkeyChanged";
|
|
1031
|
-
return BarkError_Tags;
|
|
1081
|
+
// Flat error type: Exception
|
|
1082
|
+
export let Exception_Tags = /*#__PURE__*/function (Exception_Tags) {
|
|
1083
|
+
Exception_Tags["Inner"] = "Inner";
|
|
1084
|
+
return Exception_Tags;
|
|
1032
1085
|
}({});
|
|
1033
1086
|
/**
|
|
1034
|
-
*
|
|
1087
|
+
* The single error type surfaced across the Bark FFI.
|
|
1088
|
+
*
|
|
1089
|
+
* It is a thin, single-variant wrapper around [`anyhow::Error`]. uniffi error
|
|
1090
|
+
* types must be enums (callback interfaces require `ConvertError`, which
|
|
1091
|
+
* objects cannot provide), and `flat_error` tells uniffi to carry only the
|
|
1092
|
+
* `Display` string across the boundary — so the rich anyhow context collapses
|
|
1093
|
+
* to a single message on the foreign side.
|
|
1035
1094
|
*/
|
|
1036
|
-
export const
|
|
1037
|
-
class
|
|
1038
|
-
/**
|
|
1039
|
-
* @private
|
|
1040
|
-
* This field is private and should not be used, use `tag` instead.
|
|
1041
|
-
*/
|
|
1042
|
-
[uniffiTypeNameSymbol] = "BarkError";
|
|
1043
|
-
tag = BarkError_Tags.Network;
|
|
1044
|
-
constructor(inner) {
|
|
1045
|
-
super("BarkError", "Network");
|
|
1046
|
-
this.inner = Object.freeze(inner);
|
|
1047
|
-
}
|
|
1048
|
-
static new(inner) {
|
|
1049
|
-
return new Network_(inner);
|
|
1050
|
-
}
|
|
1051
|
-
static instanceOf(obj) {
|
|
1052
|
-
return obj.tag === BarkError_Tags.Network;
|
|
1053
|
-
}
|
|
1054
|
-
static hasInner(obj) {
|
|
1055
|
-
return Network_.instanceOf(obj);
|
|
1056
|
-
}
|
|
1057
|
-
static getInner(obj) {
|
|
1058
|
-
return obj.inner;
|
|
1059
|
-
}
|
|
1060
|
-
}
|
|
1061
|
-
class Database_ extends UniffiError {
|
|
1062
|
-
/**
|
|
1063
|
-
* @private
|
|
1064
|
-
* This field is private and should not be used, use `tag` instead.
|
|
1065
|
-
*/
|
|
1066
|
-
[uniffiTypeNameSymbol] = "BarkError";
|
|
1067
|
-
tag = BarkError_Tags.Database;
|
|
1068
|
-
constructor(inner) {
|
|
1069
|
-
super("BarkError", "Database");
|
|
1070
|
-
this.inner = Object.freeze(inner);
|
|
1071
|
-
}
|
|
1072
|
-
static new(inner) {
|
|
1073
|
-
return new Database_(inner);
|
|
1074
|
-
}
|
|
1075
|
-
static instanceOf(obj) {
|
|
1076
|
-
return obj.tag === BarkError_Tags.Database;
|
|
1077
|
-
}
|
|
1078
|
-
static hasInner(obj) {
|
|
1079
|
-
return Database_.instanceOf(obj);
|
|
1080
|
-
}
|
|
1081
|
-
static getInner(obj) {
|
|
1082
|
-
return obj.inner;
|
|
1083
|
-
}
|
|
1084
|
-
}
|
|
1085
|
-
class InvalidMnemonic_ extends UniffiError {
|
|
1095
|
+
export const Exception = (() => {
|
|
1096
|
+
class Inner extends UniffiError {
|
|
1086
1097
|
/**
|
|
1087
1098
|
* @private
|
|
1088
|
-
* This field is private and should not be used
|
|
1099
|
+
* This field is private and should not be used.
|
|
1089
1100
|
*/
|
|
1090
|
-
[uniffiTypeNameSymbol] = "
|
|
1091
|
-
tag = BarkError_Tags.InvalidMnemonic;
|
|
1092
|
-
constructor(inner) {
|
|
1093
|
-
super("BarkError", "InvalidMnemonic");
|
|
1094
|
-
this.inner = Object.freeze(inner);
|
|
1095
|
-
}
|
|
1096
|
-
static new(inner) {
|
|
1097
|
-
return new InvalidMnemonic_(inner);
|
|
1098
|
-
}
|
|
1099
|
-
static instanceOf(obj) {
|
|
1100
|
-
return obj.tag === BarkError_Tags.InvalidMnemonic;
|
|
1101
|
-
}
|
|
1102
|
-
static hasInner(obj) {
|
|
1103
|
-
return InvalidMnemonic_.instanceOf(obj);
|
|
1104
|
-
}
|
|
1105
|
-
static getInner(obj) {
|
|
1106
|
-
return obj.inner;
|
|
1107
|
-
}
|
|
1108
|
-
}
|
|
1109
|
-
class InvalidAddress_ extends UniffiError {
|
|
1101
|
+
[uniffiTypeNameSymbol] = "Exception";
|
|
1110
1102
|
/**
|
|
1111
1103
|
* @private
|
|
1112
|
-
* This field is private and should not be used
|
|
1104
|
+
* This field is private and should not be used.
|
|
1113
1105
|
*/
|
|
1114
|
-
[
|
|
1115
|
-
tag =
|
|
1116
|
-
constructor(
|
|
1117
|
-
super("
|
|
1118
|
-
this.inner = Object.freeze(inner);
|
|
1119
|
-
}
|
|
1120
|
-
static new(inner) {
|
|
1121
|
-
return new InvalidAddress_(inner);
|
|
1122
|
-
}
|
|
1123
|
-
static instanceOf(obj) {
|
|
1124
|
-
return obj.tag === BarkError_Tags.InvalidAddress;
|
|
1125
|
-
}
|
|
1126
|
-
static hasInner(obj) {
|
|
1127
|
-
return InvalidAddress_.instanceOf(obj);
|
|
1106
|
+
[variantOrdinalSymbol] = 1;
|
|
1107
|
+
tag = Exception_Tags.Inner;
|
|
1108
|
+
constructor(message) {
|
|
1109
|
+
super("Exception", "Inner", message);
|
|
1128
1110
|
}
|
|
1129
|
-
static
|
|
1130
|
-
return
|
|
1111
|
+
static instanceOf(e) {
|
|
1112
|
+
return instanceOf(e) && e[variantOrdinalSymbol] === 1;
|
|
1131
1113
|
}
|
|
1132
1114
|
}
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
*/
|
|
1138
|
-
[uniffiTypeNameSymbol] = "BarkError";
|
|
1139
|
-
tag = BarkError_Tags.InvalidInvoice;
|
|
1140
|
-
constructor(inner) {
|
|
1141
|
-
super("BarkError", "InvalidInvoice");
|
|
1142
|
-
this.inner = Object.freeze(inner);
|
|
1143
|
-
}
|
|
1144
|
-
static new(inner) {
|
|
1145
|
-
return new InvalidInvoice_(inner);
|
|
1146
|
-
}
|
|
1147
|
-
static instanceOf(obj) {
|
|
1148
|
-
return obj.tag === BarkError_Tags.InvalidInvoice;
|
|
1149
|
-
}
|
|
1150
|
-
static hasInner(obj) {
|
|
1151
|
-
return InvalidInvoice_.instanceOf(obj);
|
|
1152
|
-
}
|
|
1153
|
-
static getInner(obj) {
|
|
1154
|
-
return obj.inner;
|
|
1155
|
-
}
|
|
1156
|
-
}
|
|
1157
|
-
class InvalidPsbt_ extends UniffiError {
|
|
1158
|
-
/**
|
|
1159
|
-
* @private
|
|
1160
|
-
* This field is private and should not be used, use `tag` instead.
|
|
1161
|
-
*/
|
|
1162
|
-
[uniffiTypeNameSymbol] = "BarkError";
|
|
1163
|
-
tag = BarkError_Tags.InvalidPsbt;
|
|
1164
|
-
constructor(inner) {
|
|
1165
|
-
super("BarkError", "InvalidPsbt");
|
|
1166
|
-
this.inner = Object.freeze(inner);
|
|
1167
|
-
}
|
|
1168
|
-
static new(inner) {
|
|
1169
|
-
return new InvalidPsbt_(inner);
|
|
1170
|
-
}
|
|
1171
|
-
static instanceOf(obj) {
|
|
1172
|
-
return obj.tag === BarkError_Tags.InvalidPsbt;
|
|
1173
|
-
}
|
|
1174
|
-
static hasInner(obj) {
|
|
1175
|
-
return InvalidPsbt_.instanceOf(obj);
|
|
1176
|
-
}
|
|
1177
|
-
static getInner(obj) {
|
|
1178
|
-
return obj.inner;
|
|
1179
|
-
}
|
|
1180
|
-
}
|
|
1181
|
-
class InvalidTransaction_ extends UniffiError {
|
|
1182
|
-
/**
|
|
1183
|
-
* @private
|
|
1184
|
-
* This field is private and should not be used, use `tag` instead.
|
|
1185
|
-
*/
|
|
1186
|
-
[uniffiTypeNameSymbol] = "BarkError";
|
|
1187
|
-
tag = BarkError_Tags.InvalidTransaction;
|
|
1188
|
-
constructor(inner) {
|
|
1189
|
-
super("BarkError", "InvalidTransaction");
|
|
1190
|
-
this.inner = Object.freeze(inner);
|
|
1191
|
-
}
|
|
1192
|
-
static new(inner) {
|
|
1193
|
-
return new InvalidTransaction_(inner);
|
|
1194
|
-
}
|
|
1195
|
-
static instanceOf(obj) {
|
|
1196
|
-
return obj.tag === BarkError_Tags.InvalidTransaction;
|
|
1197
|
-
}
|
|
1198
|
-
static hasInner(obj) {
|
|
1199
|
-
return InvalidTransaction_.instanceOf(obj);
|
|
1200
|
-
}
|
|
1201
|
-
static getInner(obj) {
|
|
1202
|
-
return obj.inner;
|
|
1203
|
-
}
|
|
1204
|
-
}
|
|
1205
|
-
class InsufficientFunds_ extends UniffiError {
|
|
1206
|
-
/**
|
|
1207
|
-
* @private
|
|
1208
|
-
* This field is private and should not be used, use `tag` instead.
|
|
1209
|
-
*/
|
|
1210
|
-
[uniffiTypeNameSymbol] = "BarkError";
|
|
1211
|
-
tag = BarkError_Tags.InsufficientFunds;
|
|
1212
|
-
constructor(inner) {
|
|
1213
|
-
super("BarkError", "InsufficientFunds");
|
|
1214
|
-
this.inner = Object.freeze(inner);
|
|
1215
|
-
}
|
|
1216
|
-
static new(inner) {
|
|
1217
|
-
return new InsufficientFunds_(inner);
|
|
1218
|
-
}
|
|
1219
|
-
static instanceOf(obj) {
|
|
1220
|
-
return obj.tag === BarkError_Tags.InsufficientFunds;
|
|
1221
|
-
}
|
|
1222
|
-
static hasInner(obj) {
|
|
1223
|
-
return InsufficientFunds_.instanceOf(obj);
|
|
1224
|
-
}
|
|
1225
|
-
static getInner(obj) {
|
|
1226
|
-
return obj.inner;
|
|
1227
|
-
}
|
|
1228
|
-
}
|
|
1229
|
-
class NotFound_ extends UniffiError {
|
|
1230
|
-
/**
|
|
1231
|
-
* @private
|
|
1232
|
-
* This field is private and should not be used, use `tag` instead.
|
|
1233
|
-
*/
|
|
1234
|
-
[uniffiTypeNameSymbol] = "BarkError";
|
|
1235
|
-
tag = BarkError_Tags.NotFound;
|
|
1236
|
-
constructor(inner) {
|
|
1237
|
-
super("BarkError", "NotFound");
|
|
1238
|
-
this.inner = Object.freeze(inner);
|
|
1239
|
-
}
|
|
1240
|
-
static new(inner) {
|
|
1241
|
-
return new NotFound_(inner);
|
|
1242
|
-
}
|
|
1243
|
-
static instanceOf(obj) {
|
|
1244
|
-
return obj.tag === BarkError_Tags.NotFound;
|
|
1245
|
-
}
|
|
1246
|
-
static hasInner(obj) {
|
|
1247
|
-
return NotFound_.instanceOf(obj);
|
|
1248
|
-
}
|
|
1249
|
-
static getInner(obj) {
|
|
1250
|
-
return obj.inner;
|
|
1251
|
-
}
|
|
1252
|
-
}
|
|
1253
|
-
class ServerConnection_ extends UniffiError {
|
|
1254
|
-
/**
|
|
1255
|
-
* @private
|
|
1256
|
-
* This field is private and should not be used, use `tag` instead.
|
|
1257
|
-
*/
|
|
1258
|
-
[uniffiTypeNameSymbol] = "BarkError";
|
|
1259
|
-
tag = BarkError_Tags.ServerConnection;
|
|
1260
|
-
constructor(inner) {
|
|
1261
|
-
super("BarkError", "ServerConnection");
|
|
1262
|
-
this.inner = Object.freeze(inner);
|
|
1263
|
-
}
|
|
1264
|
-
static new(inner) {
|
|
1265
|
-
return new ServerConnection_(inner);
|
|
1266
|
-
}
|
|
1267
|
-
static instanceOf(obj) {
|
|
1268
|
-
return obj.tag === BarkError_Tags.ServerConnection;
|
|
1269
|
-
}
|
|
1270
|
-
static hasInner(obj) {
|
|
1271
|
-
return ServerConnection_.instanceOf(obj);
|
|
1272
|
-
}
|
|
1273
|
-
static getInner(obj) {
|
|
1274
|
-
return obj.inner;
|
|
1275
|
-
}
|
|
1276
|
-
}
|
|
1277
|
-
class Internal_ extends UniffiError {
|
|
1278
|
-
/**
|
|
1279
|
-
* @private
|
|
1280
|
-
* This field is private and should not be used, use `tag` instead.
|
|
1281
|
-
*/
|
|
1282
|
-
[uniffiTypeNameSymbol] = "BarkError";
|
|
1283
|
-
tag = BarkError_Tags.Internal;
|
|
1284
|
-
constructor(inner) {
|
|
1285
|
-
super("BarkError", "Internal");
|
|
1286
|
-
this.inner = Object.freeze(inner);
|
|
1287
|
-
}
|
|
1288
|
-
static new(inner) {
|
|
1289
|
-
return new Internal_(inner);
|
|
1290
|
-
}
|
|
1291
|
-
static instanceOf(obj) {
|
|
1292
|
-
return obj.tag === BarkError_Tags.Internal;
|
|
1293
|
-
}
|
|
1294
|
-
static hasInner(obj) {
|
|
1295
|
-
return Internal_.instanceOf(obj);
|
|
1296
|
-
}
|
|
1297
|
-
static getInner(obj) {
|
|
1298
|
-
return obj.inner;
|
|
1299
|
-
}
|
|
1300
|
-
}
|
|
1301
|
-
class OnchainWalletRequired_ extends UniffiError {
|
|
1302
|
-
/**
|
|
1303
|
-
* @private
|
|
1304
|
-
* This field is private and should not be used, use `tag` instead.
|
|
1305
|
-
*/
|
|
1306
|
-
[uniffiTypeNameSymbol] = "BarkError";
|
|
1307
|
-
tag = BarkError_Tags.OnchainWalletRequired;
|
|
1308
|
-
constructor(inner) {
|
|
1309
|
-
super("BarkError", "OnchainWalletRequired");
|
|
1310
|
-
this.inner = Object.freeze(inner);
|
|
1311
|
-
}
|
|
1312
|
-
static new(inner) {
|
|
1313
|
-
return new OnchainWalletRequired_(inner);
|
|
1314
|
-
}
|
|
1315
|
-
static instanceOf(obj) {
|
|
1316
|
-
return obj.tag === BarkError_Tags.OnchainWalletRequired;
|
|
1317
|
-
}
|
|
1318
|
-
static hasInner(obj) {
|
|
1319
|
-
return OnchainWalletRequired_.instanceOf(obj);
|
|
1320
|
-
}
|
|
1321
|
-
static getInner(obj) {
|
|
1322
|
-
return obj.inner;
|
|
1323
|
-
}
|
|
1324
|
-
}
|
|
1325
|
-
class InvalidVtxoId_ extends UniffiError {
|
|
1326
|
-
/**
|
|
1327
|
-
* @private
|
|
1328
|
-
* This field is private and should not be used, use `tag` instead.
|
|
1329
|
-
*/
|
|
1330
|
-
[uniffiTypeNameSymbol] = "BarkError";
|
|
1331
|
-
tag = BarkError_Tags.InvalidVtxoId;
|
|
1332
|
-
constructor(inner) {
|
|
1333
|
-
super("BarkError", "InvalidVtxoId");
|
|
1334
|
-
this.inner = Object.freeze(inner);
|
|
1335
|
-
}
|
|
1336
|
-
static new(inner) {
|
|
1337
|
-
return new InvalidVtxoId_(inner);
|
|
1338
|
-
}
|
|
1339
|
-
static instanceOf(obj) {
|
|
1340
|
-
return obj.tag === BarkError_Tags.InvalidVtxoId;
|
|
1341
|
-
}
|
|
1342
|
-
static hasInner(obj) {
|
|
1343
|
-
return InvalidVtxoId_.instanceOf(obj);
|
|
1344
|
-
}
|
|
1345
|
-
static getInner(obj) {
|
|
1346
|
-
return obj.inner;
|
|
1347
|
-
}
|
|
1348
|
-
}
|
|
1349
|
-
class ServerPubkeyChanged_ extends UniffiError {
|
|
1350
|
-
/**
|
|
1351
|
-
* @private
|
|
1352
|
-
* This field is private and should not be used, use `tag` instead.
|
|
1353
|
-
*/
|
|
1354
|
-
[uniffiTypeNameSymbol] = "BarkError";
|
|
1355
|
-
tag = BarkError_Tags.ServerPubkeyChanged;
|
|
1356
|
-
constructor(inner) {
|
|
1357
|
-
super("BarkError", "ServerPubkeyChanged");
|
|
1358
|
-
this.inner = Object.freeze(inner);
|
|
1359
|
-
}
|
|
1360
|
-
static new(inner) {
|
|
1361
|
-
return new ServerPubkeyChanged_(inner);
|
|
1362
|
-
}
|
|
1363
|
-
static instanceOf(obj) {
|
|
1364
|
-
return obj.tag === BarkError_Tags.ServerPubkeyChanged;
|
|
1365
|
-
}
|
|
1366
|
-
static hasInner(obj) {
|
|
1367
|
-
return ServerPubkeyChanged_.instanceOf(obj);
|
|
1368
|
-
}
|
|
1369
|
-
static getInner(obj) {
|
|
1370
|
-
return obj.inner;
|
|
1371
|
-
}
|
|
1372
|
-
}
|
|
1373
|
-
function instanceOf(obj) {
|
|
1374
|
-
return obj[uniffiTypeNameSymbol] === "BarkError";
|
|
1115
|
+
|
|
1116
|
+
// Utility function which does not rely on instanceof.
|
|
1117
|
+
function instanceOf(e) {
|
|
1118
|
+
return e[uniffiTypeNameSymbol] === "Exception";
|
|
1375
1119
|
}
|
|
1376
|
-
return
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
InvalidMnemonic: InvalidMnemonic_,
|
|
1381
|
-
InvalidAddress: InvalidAddress_,
|
|
1382
|
-
InvalidInvoice: InvalidInvoice_,
|
|
1383
|
-
InvalidPsbt: InvalidPsbt_,
|
|
1384
|
-
InvalidTransaction: InvalidTransaction_,
|
|
1385
|
-
InsufficientFunds: InsufficientFunds_,
|
|
1386
|
-
NotFound: NotFound_,
|
|
1387
|
-
ServerConnection: ServerConnection_,
|
|
1388
|
-
Internal: Internal_,
|
|
1389
|
-
OnchainWalletRequired: OnchainWalletRequired_,
|
|
1390
|
-
InvalidVtxoId: InvalidVtxoId_,
|
|
1391
|
-
ServerPubkeyChanged: ServerPubkeyChanged_
|
|
1392
|
-
});
|
|
1120
|
+
return {
|
|
1121
|
+
Inner,
|
|
1122
|
+
instanceOf
|
|
1123
|
+
};
|
|
1393
1124
|
})();
|
|
1394
1125
|
|
|
1126
|
+
// Union type for Exception error type.
|
|
1127
|
+
|
|
1395
1128
|
/**
|
|
1396
|
-
*
|
|
1129
|
+
* The single error type surfaced across the Bark FFI.
|
|
1130
|
+
*
|
|
1131
|
+
* It is a thin, single-variant wrapper around [`anyhow::Error`]. uniffi error
|
|
1132
|
+
* types must be enums (callback interfaces require `ConvertError`, which
|
|
1133
|
+
* objects cannot provide), and `flat_error` tells uniffi to carry only the
|
|
1134
|
+
* `Display` string across the boundary — so the rich anyhow context collapses
|
|
1135
|
+
* to a single message on the foreign side.
|
|
1397
1136
|
*/
|
|
1398
1137
|
|
|
1399
|
-
|
|
1400
|
-
const
|
|
1401
|
-
|
|
1402
|
-
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
1138
|
+
const FfiConverterTypeError = (() => {
|
|
1139
|
+
const intConverter = FfiConverterInt32;
|
|
1140
|
+
class FfiConverter extends AbstractFfiConverterByteArray {
|
|
1403
1141
|
read(from) {
|
|
1404
|
-
switch (
|
|
1142
|
+
switch (intConverter.read(from)) {
|
|
1405
1143
|
case 1:
|
|
1406
|
-
return new
|
|
1407
|
-
errorMessage: FfiConverterString.read(from)
|
|
1408
|
-
});
|
|
1409
|
-
case 2:
|
|
1410
|
-
return new BarkError.Database({
|
|
1411
|
-
errorMessage: FfiConverterString.read(from)
|
|
1412
|
-
});
|
|
1413
|
-
case 3:
|
|
1414
|
-
return new BarkError.InvalidMnemonic({
|
|
1415
|
-
errorMessage: FfiConverterString.read(from)
|
|
1416
|
-
});
|
|
1417
|
-
case 4:
|
|
1418
|
-
return new BarkError.InvalidAddress({
|
|
1419
|
-
errorMessage: FfiConverterString.read(from)
|
|
1420
|
-
});
|
|
1421
|
-
case 5:
|
|
1422
|
-
return new BarkError.InvalidInvoice({
|
|
1423
|
-
errorMessage: FfiConverterString.read(from)
|
|
1424
|
-
});
|
|
1425
|
-
case 6:
|
|
1426
|
-
return new BarkError.InvalidPsbt({
|
|
1427
|
-
errorMessage: FfiConverterString.read(from)
|
|
1428
|
-
});
|
|
1429
|
-
case 7:
|
|
1430
|
-
return new BarkError.InvalidTransaction({
|
|
1431
|
-
errorMessage: FfiConverterString.read(from)
|
|
1432
|
-
});
|
|
1433
|
-
case 8:
|
|
1434
|
-
return new BarkError.InsufficientFunds({
|
|
1435
|
-
errorMessage: FfiConverterString.read(from)
|
|
1436
|
-
});
|
|
1437
|
-
case 9:
|
|
1438
|
-
return new BarkError.NotFound({
|
|
1439
|
-
errorMessage: FfiConverterString.read(from)
|
|
1440
|
-
});
|
|
1441
|
-
case 10:
|
|
1442
|
-
return new BarkError.ServerConnection({
|
|
1443
|
-
errorMessage: FfiConverterString.read(from)
|
|
1444
|
-
});
|
|
1445
|
-
case 11:
|
|
1446
|
-
return new BarkError.Internal({
|
|
1447
|
-
errorMessage: FfiConverterString.read(from)
|
|
1448
|
-
});
|
|
1449
|
-
case 12:
|
|
1450
|
-
return new BarkError.OnchainWalletRequired({
|
|
1451
|
-
errorMessage: FfiConverterString.read(from)
|
|
1452
|
-
});
|
|
1453
|
-
case 13:
|
|
1454
|
-
return new BarkError.InvalidVtxoId({
|
|
1455
|
-
errorMessage: FfiConverterString.read(from)
|
|
1456
|
-
});
|
|
1457
|
-
case 14:
|
|
1458
|
-
return new BarkError.ServerPubkeyChanged({
|
|
1459
|
-
errorMessage: FfiConverterString.read(from)
|
|
1460
|
-
});
|
|
1144
|
+
return new Exception.Inner(FfiConverterString.read(from));
|
|
1461
1145
|
default:
|
|
1462
1146
|
throw new UniffiInternalError.UnexpectedEnumCase();
|
|
1463
1147
|
}
|
|
1464
1148
|
}
|
|
1465
1149
|
write(value, into) {
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
ordinalConverter.write(1, into);
|
|
1470
|
-
const inner = value.inner;
|
|
1471
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
1472
|
-
return;
|
|
1473
|
-
}
|
|
1474
|
-
case BarkError_Tags.Database:
|
|
1475
|
-
{
|
|
1476
|
-
ordinalConverter.write(2, into);
|
|
1477
|
-
const inner = value.inner;
|
|
1478
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
1479
|
-
return;
|
|
1480
|
-
}
|
|
1481
|
-
case BarkError_Tags.InvalidMnemonic:
|
|
1482
|
-
{
|
|
1483
|
-
ordinalConverter.write(3, into);
|
|
1484
|
-
const inner = value.inner;
|
|
1485
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
1486
|
-
return;
|
|
1487
|
-
}
|
|
1488
|
-
case BarkError_Tags.InvalidAddress:
|
|
1489
|
-
{
|
|
1490
|
-
ordinalConverter.write(4, into);
|
|
1491
|
-
const inner = value.inner;
|
|
1492
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
1493
|
-
return;
|
|
1494
|
-
}
|
|
1495
|
-
case BarkError_Tags.InvalidInvoice:
|
|
1496
|
-
{
|
|
1497
|
-
ordinalConverter.write(5, into);
|
|
1498
|
-
const inner = value.inner;
|
|
1499
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
1500
|
-
return;
|
|
1501
|
-
}
|
|
1502
|
-
case BarkError_Tags.InvalidPsbt:
|
|
1503
|
-
{
|
|
1504
|
-
ordinalConverter.write(6, into);
|
|
1505
|
-
const inner = value.inner;
|
|
1506
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
1507
|
-
return;
|
|
1508
|
-
}
|
|
1509
|
-
case BarkError_Tags.InvalidTransaction:
|
|
1510
|
-
{
|
|
1511
|
-
ordinalConverter.write(7, into);
|
|
1512
|
-
const inner = value.inner;
|
|
1513
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
1514
|
-
return;
|
|
1515
|
-
}
|
|
1516
|
-
case BarkError_Tags.InsufficientFunds:
|
|
1517
|
-
{
|
|
1518
|
-
ordinalConverter.write(8, into);
|
|
1519
|
-
const inner = value.inner;
|
|
1520
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
1521
|
-
return;
|
|
1522
|
-
}
|
|
1523
|
-
case BarkError_Tags.NotFound:
|
|
1524
|
-
{
|
|
1525
|
-
ordinalConverter.write(9, into);
|
|
1526
|
-
const inner = value.inner;
|
|
1527
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
1528
|
-
return;
|
|
1529
|
-
}
|
|
1530
|
-
case BarkError_Tags.ServerConnection:
|
|
1531
|
-
{
|
|
1532
|
-
ordinalConverter.write(10, into);
|
|
1533
|
-
const inner = value.inner;
|
|
1534
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
1535
|
-
return;
|
|
1536
|
-
}
|
|
1537
|
-
case BarkError_Tags.Internal:
|
|
1538
|
-
{
|
|
1539
|
-
ordinalConverter.write(11, into);
|
|
1540
|
-
const inner = value.inner;
|
|
1541
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
1542
|
-
return;
|
|
1543
|
-
}
|
|
1544
|
-
case BarkError_Tags.OnchainWalletRequired:
|
|
1545
|
-
{
|
|
1546
|
-
ordinalConverter.write(12, into);
|
|
1547
|
-
const inner = value.inner;
|
|
1548
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
1549
|
-
return;
|
|
1550
|
-
}
|
|
1551
|
-
case BarkError_Tags.InvalidVtxoId:
|
|
1552
|
-
{
|
|
1553
|
-
ordinalConverter.write(13, into);
|
|
1554
|
-
const inner = value.inner;
|
|
1555
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
1556
|
-
return;
|
|
1557
|
-
}
|
|
1558
|
-
case BarkError_Tags.ServerPubkeyChanged:
|
|
1559
|
-
{
|
|
1560
|
-
ordinalConverter.write(14, into);
|
|
1561
|
-
const inner = value.inner;
|
|
1562
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
1563
|
-
return;
|
|
1564
|
-
}
|
|
1565
|
-
default:
|
|
1566
|
-
// Throwing from here means that BarkError_Tags hasn't matched an ordinal.
|
|
1567
|
-
throw new UniffiInternalError.UnexpectedEnumCase();
|
|
1568
|
-
}
|
|
1150
|
+
const obj = value;
|
|
1151
|
+
const index = obj[variantOrdinalSymbol];
|
|
1152
|
+
intConverter.write(index, into);
|
|
1569
1153
|
}
|
|
1570
1154
|
allocationSize(value) {
|
|
1571
|
-
|
|
1572
|
-
case BarkError_Tags.Network:
|
|
1573
|
-
{
|
|
1574
|
-
const inner = value.inner;
|
|
1575
|
-
let size = ordinalConverter.allocationSize(1);
|
|
1576
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
1577
|
-
return size;
|
|
1578
|
-
}
|
|
1579
|
-
case BarkError_Tags.Database:
|
|
1580
|
-
{
|
|
1581
|
-
const inner = value.inner;
|
|
1582
|
-
let size = ordinalConverter.allocationSize(2);
|
|
1583
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
1584
|
-
return size;
|
|
1585
|
-
}
|
|
1586
|
-
case BarkError_Tags.InvalidMnemonic:
|
|
1587
|
-
{
|
|
1588
|
-
const inner = value.inner;
|
|
1589
|
-
let size = ordinalConverter.allocationSize(3);
|
|
1590
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
1591
|
-
return size;
|
|
1592
|
-
}
|
|
1593
|
-
case BarkError_Tags.InvalidAddress:
|
|
1594
|
-
{
|
|
1595
|
-
const inner = value.inner;
|
|
1596
|
-
let size = ordinalConverter.allocationSize(4);
|
|
1597
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
1598
|
-
return size;
|
|
1599
|
-
}
|
|
1600
|
-
case BarkError_Tags.InvalidInvoice:
|
|
1601
|
-
{
|
|
1602
|
-
const inner = value.inner;
|
|
1603
|
-
let size = ordinalConverter.allocationSize(5);
|
|
1604
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
1605
|
-
return size;
|
|
1606
|
-
}
|
|
1607
|
-
case BarkError_Tags.InvalidPsbt:
|
|
1608
|
-
{
|
|
1609
|
-
const inner = value.inner;
|
|
1610
|
-
let size = ordinalConverter.allocationSize(6);
|
|
1611
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
1612
|
-
return size;
|
|
1613
|
-
}
|
|
1614
|
-
case BarkError_Tags.InvalidTransaction:
|
|
1615
|
-
{
|
|
1616
|
-
const inner = value.inner;
|
|
1617
|
-
let size = ordinalConverter.allocationSize(7);
|
|
1618
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
1619
|
-
return size;
|
|
1620
|
-
}
|
|
1621
|
-
case BarkError_Tags.InsufficientFunds:
|
|
1622
|
-
{
|
|
1623
|
-
const inner = value.inner;
|
|
1624
|
-
let size = ordinalConverter.allocationSize(8);
|
|
1625
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
1626
|
-
return size;
|
|
1627
|
-
}
|
|
1628
|
-
case BarkError_Tags.NotFound:
|
|
1629
|
-
{
|
|
1630
|
-
const inner = value.inner;
|
|
1631
|
-
let size = ordinalConverter.allocationSize(9);
|
|
1632
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
1633
|
-
return size;
|
|
1634
|
-
}
|
|
1635
|
-
case BarkError_Tags.ServerConnection:
|
|
1636
|
-
{
|
|
1637
|
-
const inner = value.inner;
|
|
1638
|
-
let size = ordinalConverter.allocationSize(10);
|
|
1639
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
1640
|
-
return size;
|
|
1641
|
-
}
|
|
1642
|
-
case BarkError_Tags.Internal:
|
|
1643
|
-
{
|
|
1644
|
-
const inner = value.inner;
|
|
1645
|
-
let size = ordinalConverter.allocationSize(11);
|
|
1646
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
1647
|
-
return size;
|
|
1648
|
-
}
|
|
1649
|
-
case BarkError_Tags.OnchainWalletRequired:
|
|
1650
|
-
{
|
|
1651
|
-
const inner = value.inner;
|
|
1652
|
-
let size = ordinalConverter.allocationSize(12);
|
|
1653
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
1654
|
-
return size;
|
|
1655
|
-
}
|
|
1656
|
-
case BarkError_Tags.InvalidVtxoId:
|
|
1657
|
-
{
|
|
1658
|
-
const inner = value.inner;
|
|
1659
|
-
let size = ordinalConverter.allocationSize(13);
|
|
1660
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
1661
|
-
return size;
|
|
1662
|
-
}
|
|
1663
|
-
case BarkError_Tags.ServerPubkeyChanged:
|
|
1664
|
-
{
|
|
1665
|
-
const inner = value.inner;
|
|
1666
|
-
let size = ordinalConverter.allocationSize(14);
|
|
1667
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
1668
|
-
return size;
|
|
1669
|
-
}
|
|
1670
|
-
default:
|
|
1671
|
-
throw new UniffiInternalError.UnexpectedEnumCase();
|
|
1672
|
-
}
|
|
1155
|
+
return intConverter.allocationSize(0);
|
|
1673
1156
|
}
|
|
1674
1157
|
}
|
|
1675
|
-
return new
|
|
1158
|
+
return new FfiConverter();
|
|
1676
1159
|
})();
|
|
1677
1160
|
|
|
1678
1161
|
// Enum: LightningSendStatus
|
|
@@ -2241,7 +1724,7 @@ export class CustomOnchainWalletCallbacksImpl extends UniffiAbstractObject {
|
|
|
2241
1724
|
* Get the wallet balance in satoshis
|
|
2242
1725
|
*/
|
|
2243
1726
|
getBalance() /*throws*/{
|
|
2244
|
-
return FfiConverterUInt64.lift(uniffiCaller.rustCallWithError(/*liftError:*/
|
|
1727
|
+
return FfiConverterUInt64.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
|
|
2245
1728
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_balance(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), callStatus);
|
|
2246
1729
|
}, /*liftString:*/FfiConverterString.lift));
|
|
2247
1730
|
}
|
|
@@ -2257,7 +1740,7 @@ export class CustomOnchainWalletCallbacksImpl extends UniffiAbstractObject {
|
|
|
2257
1740
|
* Base64-encoded PSBT
|
|
2258
1741
|
*/
|
|
2259
1742
|
prepareTx(destinations, feeRateSatPerVb) /*throws*/{
|
|
2260
|
-
return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/
|
|
1743
|
+
return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
|
|
2261
1744
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_prepare_tx(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterArrayTypeDestination.lower(destinations), FfiConverterUInt64.lower(feeRateSatPerVb), callStatus);
|
|
2262
1745
|
}, /*liftString:*/FfiConverterString.lift));
|
|
2263
1746
|
}
|
|
@@ -2273,7 +1756,7 @@ export class CustomOnchainWalletCallbacksImpl extends UniffiAbstractObject {
|
|
|
2273
1756
|
* Base64-encoded PSBT
|
|
2274
1757
|
*/
|
|
2275
1758
|
prepareDrainTx(address, feeRateSatPerVb) /*throws*/{
|
|
2276
|
-
return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/
|
|
1759
|
+
return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
|
|
2277
1760
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_prepare_drain_tx(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterString.lower(address), FfiConverterUInt64.lower(feeRateSatPerVb), callStatus);
|
|
2278
1761
|
}, /*liftString:*/FfiConverterString.lift));
|
|
2279
1762
|
}
|
|
@@ -2288,7 +1771,7 @@ export class CustomOnchainWalletCallbacksImpl extends UniffiAbstractObject {
|
|
|
2288
1771
|
* Base64-encoded fully signed PSBT (all witnesses filled in)
|
|
2289
1772
|
*/
|
|
2290
1773
|
finishPsbt(psbtBase64) /*throws*/{
|
|
2291
|
-
return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/
|
|
1774
|
+
return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
|
|
2292
1775
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_finish_psbt(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterString.lower(psbtBase64), callStatus);
|
|
2293
1776
|
}, /*liftString:*/FfiConverterString.lift));
|
|
2294
1777
|
}
|
|
@@ -2303,7 +1786,7 @@ export class CustomOnchainWalletCallbacksImpl extends UniffiAbstractObject {
|
|
|
2303
1786
|
* Hex-encoded transaction, or null if not found
|
|
2304
1787
|
*/
|
|
2305
1788
|
getWalletTx(txid) /*throws*/{
|
|
2306
|
-
return FfiConverterOptionalString.lift(uniffiCaller.rustCallWithError(/*liftError:*/
|
|
1789
|
+
return FfiConverterOptionalString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
|
|
2307
1790
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_wallet_tx(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterString.lower(txid), callStatus);
|
|
2308
1791
|
}, /*liftString:*/FfiConverterString.lift));
|
|
2309
1792
|
}
|
|
@@ -2318,7 +1801,7 @@ export class CustomOnchainWalletCallbacksImpl extends UniffiAbstractObject {
|
|
|
2318
1801
|
* Block reference with height and hash, or null if unconfirmed
|
|
2319
1802
|
*/
|
|
2320
1803
|
getWalletTxConfirmedBlock(txid) /*throws*/{
|
|
2321
|
-
return FfiConverterOptionalTypeBlockRef.lift(uniffiCaller.rustCallWithError(/*liftError:*/
|
|
1804
|
+
return FfiConverterOptionalTypeBlockRef.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
|
|
2322
1805
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterString.lower(txid), callStatus);
|
|
2323
1806
|
}, /*liftString:*/FfiConverterString.lift));
|
|
2324
1807
|
}
|
|
@@ -2333,7 +1816,7 @@ export class CustomOnchainWalletCallbacksImpl extends UniffiAbstractObject {
|
|
|
2333
1816
|
* Hex-encoded spending transaction, or null if unspent
|
|
2334
1817
|
*/
|
|
2335
1818
|
getSpendingTx(outpoint) /*throws*/{
|
|
2336
|
-
return FfiConverterOptionalString.lift(uniffiCaller.rustCallWithError(/*liftError:*/
|
|
1819
|
+
return FfiConverterOptionalString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
|
|
2337
1820
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_spending_tx(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterTypeOutPoint.lower(outpoint), callStatus);
|
|
2338
1821
|
}, /*liftString:*/FfiConverterString.lift));
|
|
2339
1822
|
}
|
|
@@ -2348,7 +1831,7 @@ export class CustomOnchainWalletCallbacksImpl extends UniffiAbstractObject {
|
|
|
2348
1831
|
* Hex-encoded signed CPFP transaction
|
|
2349
1832
|
*/
|
|
2350
1833
|
makeSignedP2aCpfp(params) /*throws*/{
|
|
2351
|
-
return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/
|
|
1834
|
+
return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
|
|
2352
1835
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_make_signed_p2a_cpfp(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterTypeCpfpParams.lower(params), callStatus);
|
|
2353
1836
|
}, /*liftString:*/FfiConverterString.lift));
|
|
2354
1837
|
}
|
|
@@ -2360,11 +1843,25 @@ export class CustomOnchainWalletCallbacksImpl extends UniffiAbstractObject {
|
|
|
2360
1843
|
* * `tx_hex` - Hex-encoded transaction
|
|
2361
1844
|
*/
|
|
2362
1845
|
storeSignedP2aCpfp(txHex) /*throws*/{
|
|
2363
|
-
uniffiCaller.rustCallWithError(/*liftError:*/
|
|
1846
|
+
uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
|
|
2364
1847
|
nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_store_signed_p2a_cpfp(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterString.lower(txHex), callStatus);
|
|
2365
1848
|
}, /*liftString:*/FfiConverterString.lift);
|
|
2366
1849
|
}
|
|
2367
1850
|
|
|
1851
|
+
/**
|
|
1852
|
+
* Sync the wallet with the chain.
|
|
1853
|
+
*
|
|
1854
|
+
* Called by Bark (e.g. the background daemon) to ask the wallet to refresh
|
|
1855
|
+
* its view of the chain before reading balances or building transactions.
|
|
1856
|
+
* Implementations bring their own chain backend up to date — Bark's chain
|
|
1857
|
+
* source is intentionally not passed across the FFI boundary.
|
|
1858
|
+
*/
|
|
1859
|
+
sync() /*throws*/{
|
|
1860
|
+
uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
|
|
1861
|
+
nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_sync(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), callStatus);
|
|
1862
|
+
}, /*liftString:*/FfiConverterString.lift);
|
|
1863
|
+
}
|
|
1864
|
+
|
|
2368
1865
|
/**
|
|
2369
1866
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2370
1867
|
*/
|
|
@@ -2436,7 +1933,7 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks = {
|
|
|
2436
1933
|
const uniffiHandleError = (code, errBuf) => {
|
|
2437
1934
|
UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
2438
1935
|
};
|
|
2439
|
-
uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/
|
|
1936
|
+
uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/Exception.instanceOf, /*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError), /*lowerString:*/FfiConverterString.lower);
|
|
2440
1937
|
return uniffiResult;
|
|
2441
1938
|
},
|
|
2442
1939
|
prepareTx: (uniffiHandle, destinations, feeRateSatPerVb) => {
|
|
@@ -2451,7 +1948,7 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks = {
|
|
|
2451
1948
|
const uniffiHandleError = (code, errBuf) => {
|
|
2452
1949
|
UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
2453
1950
|
};
|
|
2454
|
-
uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/
|
|
1951
|
+
uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/Exception.instanceOf, /*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError), /*lowerString:*/FfiConverterString.lower);
|
|
2455
1952
|
return uniffiResult;
|
|
2456
1953
|
},
|
|
2457
1954
|
prepareDrainTx: (uniffiHandle, address, feeRateSatPerVb) => {
|
|
@@ -2466,7 +1963,7 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks = {
|
|
|
2466
1963
|
const uniffiHandleError = (code, errBuf) => {
|
|
2467
1964
|
UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
2468
1965
|
};
|
|
2469
|
-
uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/
|
|
1966
|
+
uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/Exception.instanceOf, /*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError), /*lowerString:*/FfiConverterString.lower);
|
|
2470
1967
|
return uniffiResult;
|
|
2471
1968
|
},
|
|
2472
1969
|
finishPsbt: (uniffiHandle, psbtBase64) => {
|
|
@@ -2481,7 +1978,7 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks = {
|
|
|
2481
1978
|
const uniffiHandleError = (code, errBuf) => {
|
|
2482
1979
|
UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
2483
1980
|
};
|
|
2484
|
-
uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/
|
|
1981
|
+
uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/Exception.instanceOf, /*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError), /*lowerString:*/FfiConverterString.lower);
|
|
2485
1982
|
return uniffiResult;
|
|
2486
1983
|
},
|
|
2487
1984
|
getWalletTx: (uniffiHandle, txid) => {
|
|
@@ -2496,7 +1993,7 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks = {
|
|
|
2496
1993
|
const uniffiHandleError = (code, errBuf) => {
|
|
2497
1994
|
UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
2498
1995
|
};
|
|
2499
|
-
uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/
|
|
1996
|
+
uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/Exception.instanceOf, /*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError), /*lowerString:*/FfiConverterString.lower);
|
|
2500
1997
|
return uniffiResult;
|
|
2501
1998
|
},
|
|
2502
1999
|
getWalletTxConfirmedBlock: (uniffiHandle, txid) => {
|
|
@@ -2511,7 +2008,7 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks = {
|
|
|
2511
2008
|
const uniffiHandleError = (code, errBuf) => {
|
|
2512
2009
|
UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
2513
2010
|
};
|
|
2514
|
-
uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/
|
|
2011
|
+
uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/Exception.instanceOf, /*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError), /*lowerString:*/FfiConverterString.lower);
|
|
2515
2012
|
return uniffiResult;
|
|
2516
2013
|
},
|
|
2517
2014
|
getSpendingTx: (uniffiHandle, outpoint) => {
|
|
@@ -2526,7 +2023,7 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks = {
|
|
|
2526
2023
|
const uniffiHandleError = (code, errBuf) => {
|
|
2527
2024
|
UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
2528
2025
|
};
|
|
2529
|
-
uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/
|
|
2026
|
+
uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/Exception.instanceOf, /*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError), /*lowerString:*/FfiConverterString.lower);
|
|
2530
2027
|
return uniffiResult;
|
|
2531
2028
|
},
|
|
2532
2029
|
makeSignedP2aCpfp: (uniffiHandle, params) => {
|
|
@@ -2541,7 +2038,7 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks = {
|
|
|
2541
2038
|
const uniffiHandleError = (code, errBuf) => {
|
|
2542
2039
|
UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
2543
2040
|
};
|
|
2544
|
-
uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/
|
|
2041
|
+
uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/Exception.instanceOf, /*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError), /*lowerString:*/FfiConverterString.lower);
|
|
2545
2042
|
return uniffiResult;
|
|
2546
2043
|
},
|
|
2547
2044
|
storeSignedP2aCpfp: (uniffiHandle, txHex) => {
|
|
@@ -2554,7 +2051,20 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks = {
|
|
|
2554
2051
|
const uniffiHandleError = (code, errBuf) => {
|
|
2555
2052
|
UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
2556
2053
|
};
|
|
2557
|
-
uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/
|
|
2054
|
+
uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/Exception.instanceOf, /*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError), /*lowerString:*/FfiConverterString.lower);
|
|
2055
|
+
return uniffiResult;
|
|
2056
|
+
},
|
|
2057
|
+
sync: uniffiHandle => {
|
|
2058
|
+
const uniffiMakeCall = () => {
|
|
2059
|
+
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
2060
|
+
return jsCallback.sync();
|
|
2061
|
+
};
|
|
2062
|
+
const uniffiResult = UniffiResult.ready();
|
|
2063
|
+
const uniffiHandleSuccess = obj => {};
|
|
2064
|
+
const uniffiHandleError = (code, errBuf) => {
|
|
2065
|
+
UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
2066
|
+
};
|
|
2067
|
+
uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/Exception.instanceOf, /*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError), /*lowerString:*/FfiConverterString.lower);
|
|
2558
2068
|
return uniffiResult;
|
|
2559
2069
|
},
|
|
2560
2070
|
uniffiFree: uniffiHandle => {
|
|
@@ -2635,7 +2145,7 @@ export class NotificationHolder extends UniffiAbstractObject {
|
|
|
2635
2145
|
* (cancellation only affects the current wait; the stream lives on)
|
|
2636
2146
|
* - The wallet's notification source was shut down permanently
|
|
2637
2147
|
*
|
|
2638
|
-
* Returns
|
|
2148
|
+
* Returns an error if called concurrently on the same holder.
|
|
2639
2149
|
*
|
|
2640
2150
|
* After a cancellation this method can be called again normally — the
|
|
2641
2151
|
* underlying `NotificationStream` is preserved in `self.stream` and a
|
|
@@ -2646,7 +2156,7 @@ export class NotificationHolder extends UniffiAbstractObject {
|
|
|
2646
2156
|
try {
|
|
2647
2157
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2648
2158
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_notificationholder_next_notification(uniffiTypeNotificationHolderObjectFactory.clonePointer(this));
|
|
2649
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalTypeWalletNotification.lift.bind(FfiConverterOptionalTypeWalletNotification), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2159
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalTypeWalletNotification.lift.bind(FfiConverterOptionalTypeWalletNotification), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
2650
2160
|
} catch (__error) {
|
|
2651
2161
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
2652
2162
|
__error.stack = __stack;
|
|
@@ -2735,7 +2245,7 @@ export class OnchainWallet extends UniffiAbstractObject {
|
|
|
2735
2245
|
* Callback-backed wallet for foreign-language implementations.
|
|
2736
2246
|
*/
|
|
2737
2247
|
static custom(callbacks) /*throws*/{
|
|
2738
|
-
return FfiConverterTypeOnchainWallet.lift(uniffiCaller.rustCallWithError(/*liftError:*/
|
|
2248
|
+
return FfiConverterTypeOnchainWallet.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
|
|
2739
2249
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_onchainwallet_custom(FfiConverterTypeCustomOnchainWalletCallbacks.lower(callbacks), callStatus);
|
|
2740
2250
|
}, /*liftString:*/FfiConverterString.lift));
|
|
2741
2251
|
}
|
|
@@ -2743,12 +2253,12 @@ export class OnchainWallet extends UniffiAbstractObject {
|
|
|
2743
2253
|
/**
|
|
2744
2254
|
* BDK-backed wallet. Opens the shared sqlite cache.
|
|
2745
2255
|
*/
|
|
2746
|
-
static async default_(mnemonic, config, datadir, asyncOpts_) /*throws*/{
|
|
2256
|
+
static async default_(network, mnemonic, config, datadir, asyncOpts_) /*throws*/{
|
|
2747
2257
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2748
2258
|
try {
|
|
2749
2259
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2750
|
-
return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_onchainwallet_default(FfiConverterString.lower(mnemonic), FfiConverterTypeConfig.lower(config), FfiConverterString.lower(datadir));
|
|
2751
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterTypeOnchainWallet.lift.bind(FfiConverterTypeOnchainWallet), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2260
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_onchainwallet_default(FfiConverterTypeNetwork.lower(network), FfiConverterString.lower(mnemonic), FfiConverterTypeConfig.lower(config), FfiConverterString.lower(datadir));
|
|
2261
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterTypeOnchainWallet.lift.bind(FfiConverterTypeOnchainWallet), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
2752
2262
|
} catch (__error) {
|
|
2753
2263
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
2754
2264
|
__error.stack = __stack;
|
|
@@ -2761,7 +2271,7 @@ export class OnchainWallet extends UniffiAbstractObject {
|
|
|
2761
2271
|
try {
|
|
2762
2272
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2763
2273
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_onchainwallet_balance(uniffiTypeOnchainWalletObjectFactory.clonePointer(this));
|
|
2764
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeOnchainBalance.lift.bind(FfiConverterTypeOnchainBalance), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2274
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeOnchainBalance.lift.bind(FfiConverterTypeOnchainBalance), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
2765
2275
|
} catch (__error) {
|
|
2766
2276
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
2767
2277
|
__error.stack = __stack;
|
|
@@ -2774,7 +2284,7 @@ export class OnchainWallet extends UniffiAbstractObject {
|
|
|
2774
2284
|
try {
|
|
2775
2285
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2776
2286
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_onchainwallet_new_address(uniffiTypeOnchainWalletObjectFactory.clonePointer(this));
|
|
2777
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2287
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
2778
2288
|
} catch (__error) {
|
|
2779
2289
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
2780
2290
|
__error.stack = __stack;
|
|
@@ -2787,7 +2297,7 @@ export class OnchainWallet extends UniffiAbstractObject {
|
|
|
2787
2297
|
try {
|
|
2788
2298
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2789
2299
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_onchainwallet_send(uniffiTypeOnchainWalletObjectFactory.clonePointer(this), FfiConverterString.lower(address), FfiConverterUInt64.lower(amountSats), FfiConverterUInt64.lower(feeRateSatPerVb));
|
|
2790
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2300
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
2791
2301
|
} catch (__error) {
|
|
2792
2302
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
2793
2303
|
__error.stack = __stack;
|
|
@@ -2800,7 +2310,7 @@ export class OnchainWallet extends UniffiAbstractObject {
|
|
|
2800
2310
|
try {
|
|
2801
2311
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2802
2312
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_onchainwallet_sync(uniffiTypeOnchainWalletObjectFactory.clonePointer(this));
|
|
2803
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterUInt64.lift.bind(FfiConverterUInt64), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2313
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterUInt64.lift.bind(FfiConverterUInt64), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
2804
2314
|
} catch (__error) {
|
|
2805
2315
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
2806
2316
|
__error.stack = __stack;
|
|
@@ -2896,68 +2406,22 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2896
2406
|
this[pointerLiteralSymbol] = pointer;
|
|
2897
2407
|
this[destructorGuardSymbol] = uniffiTypeWalletObjectFactory.bless(pointer);
|
|
2898
2408
|
}
|
|
2899
|
-
static async create(mnemonic, config, datadir, forceRescan, asyncOpts_) /*throws*/{
|
|
2900
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2901
|
-
try {
|
|
2902
|
-
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2903
|
-
return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_wallet_create(FfiConverterString.lower(mnemonic), FfiConverterTypeConfig.lower(config), FfiConverterString.lower(datadir), FfiConverterBool.lower(forceRescan));
|
|
2904
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterTypeWallet.lift.bind(FfiConverterTypeWallet), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2905
|
-
} catch (__error) {
|
|
2906
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
2907
|
-
__error.stack = __stack;
|
|
2908
|
-
}
|
|
2909
|
-
throw __error;
|
|
2910
|
-
}
|
|
2911
|
-
}
|
|
2912
|
-
static async createWithOnchain(mnemonic, config, datadir, onchainWallet, forceRescan, asyncOpts_) /*throws*/{
|
|
2913
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2914
|
-
try {
|
|
2915
|
-
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2916
|
-
return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_wallet_create_with_onchain(FfiConverterString.lower(mnemonic), FfiConverterTypeConfig.lower(config), FfiConverterString.lower(datadir), FfiConverterTypeOnchainWallet.lower(onchainWallet), FfiConverterBool.lower(forceRescan));
|
|
2917
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterTypeWallet.lift.bind(FfiConverterTypeWallet), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2918
|
-
} catch (__error) {
|
|
2919
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
2920
|
-
__error.stack = __stack;
|
|
2921
|
-
}
|
|
2922
|
-
throw __error;
|
|
2923
|
-
}
|
|
2924
|
-
}
|
|
2925
|
-
static async open(mnemonic, config, datadir, asyncOpts_) /*throws*/{
|
|
2926
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2927
|
-
try {
|
|
2928
|
-
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2929
|
-
return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_wallet_open(FfiConverterString.lower(mnemonic), FfiConverterTypeConfig.lower(config), FfiConverterString.lower(datadir));
|
|
2930
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterTypeWallet.lift.bind(FfiConverterTypeWallet), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2931
|
-
} catch (__error) {
|
|
2932
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
2933
|
-
__error.stack = __stack;
|
|
2934
|
-
}
|
|
2935
|
-
throw __error;
|
|
2936
|
-
}
|
|
2937
|
-
}
|
|
2938
2409
|
|
|
2939
2410
|
/**
|
|
2940
|
-
* Open
|
|
2411
|
+
* Open a wallet (creating it first if `create_if_not_exists` is set),
|
|
2412
|
+
* mirroring [`bark::Wallet::open`]: a single entry point with everything
|
|
2413
|
+
* else optional (see [`WalletOpenArgs`]). For the explicit
|
|
2414
|
+
* initialize-but-don't-open path, use the top-level `create_wallet`.
|
|
2415
|
+
*
|
|
2416
|
+
* `mnemonic_or_seed` accepts either a BIP-39 mnemonic phrase or a 64-byte
|
|
2417
|
+
* hex-encoded seed.
|
|
2941
2418
|
*/
|
|
2942
|
-
static async
|
|
2419
|
+
static async open(network, mnemonicOrSeed, config, args, asyncOpts_) /*throws*/{
|
|
2943
2420
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2944
2421
|
try {
|
|
2945
2422
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2946
|
-
return nativeModule().
|
|
2947
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterTypeWallet.lift.bind(FfiConverterTypeWallet), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2948
|
-
} catch (__error) {
|
|
2949
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
2950
|
-
__error.stack = __stack;
|
|
2951
|
-
}
|
|
2952
|
-
throw __error;
|
|
2953
|
-
}
|
|
2954
|
-
}
|
|
2955
|
-
static async openWithOnchain(mnemonic, config, datadir, onchainWallet, asyncOpts_) /*throws*/{
|
|
2956
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2957
|
-
try {
|
|
2958
|
-
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2959
|
-
return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_wallet_open_with_onchain(FfiConverterString.lower(mnemonic), FfiConverterTypeConfig.lower(config), FfiConverterString.lower(datadir), FfiConverterTypeOnchainWallet.lower(onchainWallet));
|
|
2960
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterTypeWallet.lift.bind(FfiConverterTypeWallet), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2423
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_wallet_open(FfiConverterTypeNetwork.lower(network), FfiConverterString.lower(mnemonicOrSeed), FfiConverterTypeConfig.lower(config), FfiConverterTypeWalletOpenArgs.lower(args));
|
|
2424
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterTypeWallet.lift.bind(FfiConverterTypeWallet), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
2961
2425
|
} catch (__error) {
|
|
2962
2426
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
2963
2427
|
__error.stack = __stack;
|
|
@@ -2970,7 +2434,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2970
2434
|
try {
|
|
2971
2435
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2972
2436
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_all_exits_claimable_at_height(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
2973
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalUInt32.lift.bind(FfiConverterOptionalUInt32), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2437
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalUInt32.lift.bind(FfiConverterOptionalUInt32), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
2974
2438
|
} catch (__error) {
|
|
2975
2439
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
2976
2440
|
__error.stack = __stack;
|
|
@@ -2983,7 +2447,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2983
2447
|
try {
|
|
2984
2448
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2985
2449
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_all_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
2986
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2450
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
2987
2451
|
} catch (__error) {
|
|
2988
2452
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
2989
2453
|
__error.stack = __stack;
|
|
@@ -2996,7 +2460,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2996
2460
|
try {
|
|
2997
2461
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2998
2462
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_allow_lightning_send_to_exit(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash));
|
|
2999
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2463
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3000
2464
|
} catch (__error) {
|
|
3001
2465
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3002
2466
|
__error.stack = __stack;
|
|
@@ -3022,7 +2486,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3022
2486
|
try {
|
|
3023
2487
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3024
2488
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_attempt_lightning_receive_exit(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash));
|
|
3025
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2489
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3026
2490
|
} catch (__error) {
|
|
3027
2491
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3028
2492
|
__error.stack = __stack;
|
|
@@ -3035,7 +2499,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3035
2499
|
try {
|
|
3036
2500
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3037
2501
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_balance(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3038
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeBalance.lift.bind(FfiConverterTypeBalance), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2502
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeBalance.lift.bind(FfiConverterTypeBalance), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3039
2503
|
} catch (__error) {
|
|
3040
2504
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3041
2505
|
__error.stack = __stack;
|
|
@@ -3048,7 +2512,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3048
2512
|
try {
|
|
3049
2513
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3050
2514
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_board_all(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterTypeOnchainWallet.lower(onchainWallet));
|
|
3051
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypePendingBoard.lift.bind(FfiConverterTypePendingBoard), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2515
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypePendingBoard.lift.bind(FfiConverterTypePendingBoard), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3052
2516
|
} catch (__error) {
|
|
3053
2517
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3054
2518
|
__error.stack = __stack;
|
|
@@ -3061,7 +2525,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3061
2525
|
try {
|
|
3062
2526
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3063
2527
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_board_amount(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterTypeOnchainWallet.lower(onchainWallet), FfiConverterUInt64.lower(amountSats));
|
|
3064
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypePendingBoard.lift.bind(FfiConverterTypePendingBoard), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2528
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypePendingBoard.lift.bind(FfiConverterTypePendingBoard), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3065
2529
|
} catch (__error) {
|
|
3066
2530
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3067
2531
|
__error.stack = __stack;
|
|
@@ -3074,7 +2538,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3074
2538
|
try {
|
|
3075
2539
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3076
2540
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterUInt64.lower(amountSats), FfiConverterOptionalString.lower(description));
|
|
3077
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeLightningInvoice.lift.bind(FfiConverterTypeLightningInvoice), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2541
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeLightningInvoice.lift.bind(FfiConverterTypeLightningInvoice), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3078
2542
|
} catch (__error) {
|
|
3079
2543
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3080
2544
|
__error.stack = __stack;
|
|
@@ -3087,7 +2551,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3087
2551
|
try {
|
|
3088
2552
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3089
2553
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_broadcast_tx(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(txHex));
|
|
3090
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2554
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3091
2555
|
} catch (__error) {
|
|
3092
2556
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3093
2557
|
__error.stack = __stack;
|
|
@@ -3100,7 +2564,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3100
2564
|
try {
|
|
3101
2565
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3102
2566
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_cancel_all_pending_rounds(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3103
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2567
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3104
2568
|
} catch (__error) {
|
|
3105
2569
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3106
2570
|
__error.stack = __stack;
|
|
@@ -3113,7 +2577,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3113
2577
|
try {
|
|
3114
2578
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3115
2579
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_cancel_lightning_receive(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash));
|
|
3116
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2580
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3117
2581
|
} catch (__error) {
|
|
3118
2582
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3119
2583
|
__error.stack = __stack;
|
|
@@ -3126,7 +2590,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3126
2590
|
try {
|
|
3127
2591
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3128
2592
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_cancel_pending_round(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterUInt32.lower(roundId));
|
|
3129
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2593
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3130
2594
|
} catch (__error) {
|
|
3131
2595
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3132
2596
|
__error.stack = __stack;
|
|
@@ -3134,12 +2598,12 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3134
2598
|
throw __error;
|
|
3135
2599
|
}
|
|
3136
2600
|
}
|
|
3137
|
-
async checkLightningPayment(paymentHash, wait, asyncOpts_) /*throws*/{
|
|
2601
|
+
async checkLightningPayment(paymentHash, wait = false, asyncOpts_) /*throws*/{
|
|
3138
2602
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3139
2603
|
try {
|
|
3140
2604
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3141
2605
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_check_lightning_payment(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash), FfiConverterBool.lower(wait));
|
|
3142
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeLightningSendStatus.lift.bind(FfiConverterTypeLightningSendStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2606
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeLightningSendStatus.lift.bind(FfiConverterTypeLightningSendStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3143
2607
|
} catch (__error) {
|
|
3144
2608
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3145
2609
|
__error.stack = __stack;
|
|
@@ -3152,7 +2616,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3152
2616
|
try {
|
|
3153
2617
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3154
2618
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_claimable_lightning_receive_balance_sats(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3155
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterUInt64.lift.bind(FfiConverterUInt64), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2619
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterUInt64.lift.bind(FfiConverterUInt64), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3156
2620
|
} catch (__error) {
|
|
3157
2621
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3158
2622
|
__error.stack = __stack;
|
|
@@ -3178,7 +2642,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3178
2642
|
try {
|
|
3179
2643
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3180
2644
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_drain_exits(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterArrayString.lower(vtxoIds), FfiConverterString.lower(address), FfiConverterOptionalUInt64.lower(feeRateSatPerVb));
|
|
3181
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeExitClaimTransaction.lift.bind(FfiConverterTypeExitClaimTransaction), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2645
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeExitClaimTransaction.lift.bind(FfiConverterTypeExitClaimTransaction), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3182
2646
|
} catch (__error) {
|
|
3183
2647
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3184
2648
|
__error.stack = __stack;
|
|
@@ -3191,7 +2655,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3191
2655
|
try {
|
|
3192
2656
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3193
2657
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_arkoor_payment_fee(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterUInt64.lower(amountSats));
|
|
3194
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2658
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3195
2659
|
} catch (__error) {
|
|
3196
2660
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3197
2661
|
__error.stack = __stack;
|
|
@@ -3204,7 +2668,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3204
2668
|
try {
|
|
3205
2669
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3206
2670
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_board_fee(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterUInt64.lower(amountSats));
|
|
3207
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2671
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3208
2672
|
} catch (__error) {
|
|
3209
2673
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3210
2674
|
__error.stack = __stack;
|
|
@@ -3217,7 +2681,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3217
2681
|
try {
|
|
3218
2682
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3219
2683
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_lightning_receive_fee(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterUInt64.lower(amountSats));
|
|
3220
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2684
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3221
2685
|
} catch (__error) {
|
|
3222
2686
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3223
2687
|
__error.stack = __stack;
|
|
@@ -3230,7 +2694,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3230
2694
|
try {
|
|
3231
2695
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3232
2696
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_lightning_send_fee(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterUInt64.lower(amountSats));
|
|
3233
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2697
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3234
2698
|
} catch (__error) {
|
|
3235
2699
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3236
2700
|
__error.stack = __stack;
|
|
@@ -3243,7 +2707,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3243
2707
|
try {
|
|
3244
2708
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3245
2709
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_offboard_all_fee(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(address));
|
|
3246
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2710
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3247
2711
|
} catch (__error) {
|
|
3248
2712
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3249
2713
|
__error.stack = __stack;
|
|
@@ -3256,7 +2720,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3256
2720
|
try {
|
|
3257
2721
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3258
2722
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_offboard_fee(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(address), FfiConverterArrayString.lower(vtxoIds));
|
|
3259
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2723
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3260
2724
|
} catch (__error) {
|
|
3261
2725
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3262
2726
|
__error.stack = __stack;
|
|
@@ -3269,7 +2733,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3269
2733
|
try {
|
|
3270
2734
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3271
2735
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_refresh_fee(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterArrayString.lower(vtxoIds));
|
|
3272
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2736
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3273
2737
|
} catch (__error) {
|
|
3274
2738
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3275
2739
|
__error.stack = __stack;
|
|
@@ -3282,7 +2746,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3282
2746
|
try {
|
|
3283
2747
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3284
2748
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_send_onchain_fee(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(address), FfiConverterUInt64.lower(amountSats));
|
|
3285
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2749
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeFeeEstimate.lift.bind(FfiConverterTypeFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3286
2750
|
} catch (__error) {
|
|
3287
2751
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3288
2752
|
__error.stack = __stack;
|
|
@@ -3300,7 +2764,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3300
2764
|
try {
|
|
3301
2765
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3302
2766
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_get_exit_status(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(vtxoId), FfiConverterBool.lower(includeHistory), FfiConverterBool.lower(includeTransactions));
|
|
3303
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalTypeExitTransactionStatus.lift.bind(FfiConverterOptionalTypeExitTransactionStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2767
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalTypeExitTransactionStatus.lift.bind(FfiConverterOptionalTypeExitTransactionStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3304
2768
|
} catch (__error) {
|
|
3305
2769
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3306
2770
|
__error.stack = __stack;
|
|
@@ -3313,7 +2777,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3313
2777
|
try {
|
|
3314
2778
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3315
2779
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_get_exit_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3316
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeExitVtxo.lift.bind(FfiConverterArrayTypeExitVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2780
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeExitVtxo.lift.bind(FfiConverterArrayTypeExitVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3317
2781
|
} catch (__error) {
|
|
3318
2782
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3319
2783
|
__error.stack = __stack;
|
|
@@ -3326,7 +2790,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3326
2790
|
try {
|
|
3327
2791
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3328
2792
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_get_expiring_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterUInt32.lower(thresholdBlocks));
|
|
3329
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2793
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3330
2794
|
} catch (__error) {
|
|
3331
2795
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3332
2796
|
__error.stack = __stack;
|
|
@@ -3339,7 +2803,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3339
2803
|
try {
|
|
3340
2804
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3341
2805
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_get_first_expiring_vtxo_blockheight(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3342
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalUInt32.lift.bind(FfiConverterOptionalUInt32), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2806
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalUInt32.lift.bind(FfiConverterOptionalUInt32), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3343
2807
|
} catch (__error) {
|
|
3344
2808
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3345
2809
|
__error.stack = __stack;
|
|
@@ -3352,7 +2816,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3352
2816
|
try {
|
|
3353
2817
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3354
2818
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_get_next_required_refresh_blockheight(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3355
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalUInt32.lift.bind(FfiConverterOptionalUInt32), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2819
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalUInt32.lift.bind(FfiConverterOptionalUInt32), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3356
2820
|
} catch (__error) {
|
|
3357
2821
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3358
2822
|
__error.stack = __stack;
|
|
@@ -3365,7 +2829,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3365
2829
|
try {
|
|
3366
2830
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3367
2831
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_get_vtxo_by_id(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(vtxoId));
|
|
3368
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeVtxo.lift.bind(FfiConverterTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2832
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeVtxo.lift.bind(FfiConverterTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3369
2833
|
} catch (__error) {
|
|
3370
2834
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3371
2835
|
__error.stack = __stack;
|
|
@@ -3378,7 +2842,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3378
2842
|
try {
|
|
3379
2843
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3380
2844
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_get_vtxos_to_refresh(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3381
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2845
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3382
2846
|
} catch (__error) {
|
|
3383
2847
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3384
2848
|
__error.stack = __stack;
|
|
@@ -3391,7 +2855,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3391
2855
|
try {
|
|
3392
2856
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3393
2857
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_has_pending_exits(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3394
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_i8, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_i8, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_i8, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_i8, /*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2858
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_i8, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_i8, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_i8, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_i8, /*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3395
2859
|
} catch (__error) {
|
|
3396
2860
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3397
2861
|
__error.stack = __stack;
|
|
@@ -3404,7 +2868,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3404
2868
|
try {
|
|
3405
2869
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3406
2870
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_history(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3407
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeMovement.lift.bind(FfiConverterArrayTypeMovement), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2871
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeMovement.lift.bind(FfiConverterArrayTypeMovement), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3408
2872
|
} catch (__error) {
|
|
3409
2873
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3410
2874
|
__error.stack = __stack;
|
|
@@ -3417,7 +2881,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3417
2881
|
try {
|
|
3418
2882
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3419
2883
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_history_by_payment_method(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentMethodType), FfiConverterString.lower(paymentMethodValue));
|
|
3420
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeMovement.lift.bind(FfiConverterArrayTypeMovement), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2884
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeMovement.lift.bind(FfiConverterArrayTypeMovement), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3421
2885
|
} catch (__error) {
|
|
3422
2886
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3423
2887
|
__error.stack = __stack;
|
|
@@ -3430,7 +2894,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3430
2894
|
try {
|
|
3431
2895
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3432
2896
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_import_vtxo(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(vtxoBase64));
|
|
3433
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2897
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3434
2898
|
} catch (__error) {
|
|
3435
2899
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3436
2900
|
__error.stack = __stack;
|
|
@@ -3443,7 +2907,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3443
2907
|
try {
|
|
3444
2908
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3445
2909
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_is_invoice_paid(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash));
|
|
3446
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_i8, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_i8, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_i8, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_i8, /*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2910
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_i8, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_i8, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_i8, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_i8, /*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3447
2911
|
} catch (__error) {
|
|
3448
2912
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3449
2913
|
__error.stack = __stack;
|
|
@@ -3456,7 +2920,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3456
2920
|
try {
|
|
3457
2921
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3458
2922
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_lightning_receive_status(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash));
|
|
3459
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalTypeLightningReceive.lift.bind(FfiConverterOptionalTypeLightningReceive), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2923
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalTypeLightningReceive.lift.bind(FfiConverterOptionalTypeLightningReceive), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3460
2924
|
} catch (__error) {
|
|
3461
2925
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3462
2926
|
__error.stack = __stack;
|
|
@@ -3469,7 +2933,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3469
2933
|
try {
|
|
3470
2934
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3471
2935
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_lightning_send_state(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash));
|
|
3472
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeLightningSendStatus.lift.bind(FfiConverterTypeLightningSendStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2936
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeLightningSendStatus.lift.bind(FfiConverterTypeLightningSendStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3473
2937
|
} catch (__error) {
|
|
3474
2938
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3475
2939
|
__error.stack = __stack;
|
|
@@ -3482,7 +2946,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3482
2946
|
try {
|
|
3483
2947
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3484
2948
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_list_claimable_exits(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3485
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeExitVtxo.lift.bind(FfiConverterArrayTypeExitVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2949
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeExitVtxo.lift.bind(FfiConverterArrayTypeExitVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3486
2950
|
} catch (__error) {
|
|
3487
2951
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3488
2952
|
__error.stack = __stack;
|
|
@@ -3491,12 +2955,12 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3491
2955
|
}
|
|
3492
2956
|
}
|
|
3493
2957
|
mailboxAuthorization() /*throws*/{
|
|
3494
|
-
return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/
|
|
2958
|
+
return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
|
|
3495
2959
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_mailbox_authorization(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
|
|
3496
2960
|
}, /*liftString:*/FfiConverterString.lift));
|
|
3497
2961
|
}
|
|
3498
2962
|
mailboxIdentifier() /*throws*/{
|
|
3499
|
-
return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/
|
|
2963
|
+
return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
|
|
3500
2964
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_mailbox_identifier(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
|
|
3501
2965
|
}, /*liftString:*/FfiConverterString.lift));
|
|
3502
2966
|
}
|
|
@@ -3505,7 +2969,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3505
2969
|
try {
|
|
3506
2970
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3507
2971
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3508
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2972
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3509
2973
|
} catch (__error) {
|
|
3510
2974
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3511
2975
|
__error.stack = __stack;
|
|
@@ -3518,7 +2982,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3518
2982
|
try {
|
|
3519
2983
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3520
2984
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance_delegated(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3521
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2985
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3522
2986
|
} catch (__error) {
|
|
3523
2987
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3524
2988
|
__error.stack = __stack;
|
|
@@ -3531,7 +2995,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3531
2995
|
try {
|
|
3532
2996
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3533
2997
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance_refresh(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3534
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalString.lift.bind(FfiConverterOptionalString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
2998
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalString.lift.bind(FfiConverterOptionalString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3535
2999
|
} catch (__error) {
|
|
3536
3000
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3537
3001
|
__error.stack = __stack;
|
|
@@ -3544,7 +3008,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3544
3008
|
try {
|
|
3545
3009
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3546
3010
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterTypeOnchainWallet.lower(onchainWallet));
|
|
3547
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3011
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3548
3012
|
} catch (__error) {
|
|
3549
3013
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3550
3014
|
__error.stack = __stack;
|
|
@@ -3557,20 +3021,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3557
3021
|
try {
|
|
3558
3022
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3559
3023
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain_delegated(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterTypeOnchainWallet.lower(onchainWallet));
|
|
3560
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3561
|
-
} catch (__error) {
|
|
3562
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
3563
|
-
__error.stack = __stack;
|
|
3564
|
-
}
|
|
3565
|
-
throw __error;
|
|
3566
|
-
}
|
|
3567
|
-
}
|
|
3568
|
-
async maybeScheduleMaintenanceRefresh(asyncOpts_) /*throws*/{
|
|
3569
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3570
|
-
try {
|
|
3571
|
-
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3572
|
-
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_maybe_schedule_maintenance_refresh(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3573
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalUInt32.lift.bind(FfiConverterOptionalUInt32), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3024
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3574
3025
|
} catch (__error) {
|
|
3575
3026
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3576
3027
|
__error.stack = __stack;
|
|
@@ -3583,7 +3034,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3583
3034
|
try {
|
|
3584
3035
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3585
3036
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_network(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3586
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeNetwork.lift.bind(FfiConverterTypeNetwork), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3037
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeNetwork.lift.bind(FfiConverterTypeNetwork), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3587
3038
|
} catch (__error) {
|
|
3588
3039
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3589
3040
|
__error.stack = __stack;
|
|
@@ -3596,7 +3047,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3596
3047
|
try {
|
|
3597
3048
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3598
3049
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_new_address(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3599
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3050
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3600
3051
|
} catch (__error) {
|
|
3601
3052
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3602
3053
|
__error.stack = __stack;
|
|
@@ -3609,7 +3060,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3609
3060
|
try {
|
|
3610
3061
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3611
3062
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_new_address_with_index(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3612
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeAddressWithIndex.lift.bind(FfiConverterTypeAddressWithIndex), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3063
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeAddressWithIndex.lift.bind(FfiConverterTypeAddressWithIndex), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3613
3064
|
} catch (__error) {
|
|
3614
3065
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3615
3066
|
__error.stack = __stack;
|
|
@@ -3622,7 +3073,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3622
3073
|
try {
|
|
3623
3074
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3624
3075
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_next_round_start_time(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3625
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterUInt64.lift.bind(FfiConverterUInt64), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3076
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterUInt64.lift.bind(FfiConverterUInt64), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3626
3077
|
} catch (__error) {
|
|
3627
3078
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3628
3079
|
__error.stack = __stack;
|
|
@@ -3640,7 +3091,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3640
3091
|
try {
|
|
3641
3092
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3642
3093
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_offboard_all(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(bitcoinAddress));
|
|
3643
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeOffboardResult.lift.bind(FfiConverterTypeOffboardResult), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3094
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeOffboardResult.lift.bind(FfiConverterTypeOffboardResult), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3644
3095
|
} catch (__error) {
|
|
3645
3096
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3646
3097
|
__error.stack = __stack;
|
|
@@ -3653,7 +3104,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3653
3104
|
try {
|
|
3654
3105
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3655
3106
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_offboard_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterArrayString.lower(vtxoIds), FfiConverterString.lower(bitcoinAddress));
|
|
3656
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3107
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3657
3108
|
} catch (__error) {
|
|
3658
3109
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3659
3110
|
__error.stack = __stack;
|
|
@@ -3665,12 +3116,12 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3665
3116
|
/**
|
|
3666
3117
|
* Pay to a Lightning Address (LNURL). UniFFI-only — lnurl-rs is not wasm-compatible.
|
|
3667
3118
|
*/
|
|
3668
|
-
async payLightningAddress(lightningAddress, amountSats, comment, wait, asyncOpts_) /*throws*/{
|
|
3119
|
+
async payLightningAddress(lightningAddress, amountSats, comment, wait = false, asyncOpts_) /*throws*/{
|
|
3669
3120
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3670
3121
|
try {
|
|
3671
3122
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3672
3123
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_address(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(lightningAddress), FfiConverterUInt64.lower(amountSats), FfiConverterOptionalString.lower(comment), FfiConverterBool.lower(wait));
|
|
3673
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeLightningSendStatus.lift.bind(FfiConverterTypeLightningSendStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3124
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeLightningSendStatus.lift.bind(FfiConverterTypeLightningSendStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3674
3125
|
} catch (__error) {
|
|
3675
3126
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3676
3127
|
__error.stack = __stack;
|
|
@@ -3678,12 +3129,12 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3678
3129
|
throw __error;
|
|
3679
3130
|
}
|
|
3680
3131
|
}
|
|
3681
|
-
async payLightningInvoice(invoice, amountSats, wait, asyncOpts_) /*throws*/{
|
|
3132
|
+
async payLightningInvoice(invoice, amountSats, wait = false, asyncOpts_) /*throws*/{
|
|
3682
3133
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3683
3134
|
try {
|
|
3684
3135
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3685
3136
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_invoice(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(invoice), FfiConverterOptionalUInt64.lower(amountSats), FfiConverterBool.lower(wait));
|
|
3686
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeLightningSendStatus.lift.bind(FfiConverterTypeLightningSendStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3137
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeLightningSendStatus.lift.bind(FfiConverterTypeLightningSendStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3687
3138
|
} catch (__error) {
|
|
3688
3139
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3689
3140
|
__error.stack = __stack;
|
|
@@ -3691,12 +3142,32 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3691
3142
|
throw __error;
|
|
3692
3143
|
}
|
|
3693
3144
|
}
|
|
3694
|
-
async payLightningOffer(offer, amountSats, wait, asyncOpts_) /*throws*/{
|
|
3145
|
+
async payLightningOffer(offer, amountSats, wait = false, asyncOpts_) /*throws*/{
|
|
3695
3146
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3696
3147
|
try {
|
|
3697
3148
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3698
3149
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_offer(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(offer), FfiConverterOptionalUInt64.lower(amountSats), FfiConverterBool.lower(wait));
|
|
3699
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeLightningSendStatus.lift.bind(FfiConverterTypeLightningSendStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3150
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeLightningSendStatus.lift.bind(FfiConverterTypeLightningSendStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3151
|
+
} catch (__error) {
|
|
3152
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3153
|
+
__error.stack = __stack;
|
|
3154
|
+
}
|
|
3155
|
+
throw __error;
|
|
3156
|
+
}
|
|
3157
|
+
}
|
|
3158
|
+
|
|
3159
|
+
/**
|
|
3160
|
+
* Pay a raw LNURL-pay link (`lnurl1…`). UniFFI-only — lnurl-rs is not wasm-compatible.
|
|
3161
|
+
*
|
|
3162
|
+
* Resolves the LNURL-pay endpoint to a BOLT11 invoice and pays it. Errors
|
|
3163
|
+
* if the link decodes to a non-pay LNURL (auth, withdraw, channel).
|
|
3164
|
+
*/
|
|
3165
|
+
async payLnurl(lnurl, amountSats, comment, wait = false, asyncOpts_) /*throws*/{
|
|
3166
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3167
|
+
try {
|
|
3168
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3169
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lnurl(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(lnurl), FfiConverterUInt64.lower(amountSats), FfiConverterOptionalString.lower(comment), FfiConverterBool.lower(wait));
|
|
3170
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeLightningSendStatus.lift.bind(FfiConverterTypeLightningSendStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3700
3171
|
} catch (__error) {
|
|
3701
3172
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3702
3173
|
__error.stack = __stack;
|
|
@@ -3709,7 +3180,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3709
3180
|
try {
|
|
3710
3181
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3711
3182
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_peek_address(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterUInt32.lower(index));
|
|
3712
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3183
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3713
3184
|
} catch (__error) {
|
|
3714
3185
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3715
3186
|
__error.stack = __stack;
|
|
@@ -3722,7 +3193,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3722
3193
|
try {
|
|
3723
3194
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3724
3195
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_board_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3725
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3196
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3726
3197
|
} catch (__error) {
|
|
3727
3198
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3728
3199
|
__error.stack = __stack;
|
|
@@ -3735,7 +3206,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3735
3206
|
try {
|
|
3736
3207
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3737
3208
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_boards(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3738
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypePendingBoard.lift.bind(FfiConverterArrayTypePendingBoard), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3209
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypePendingBoard.lift.bind(FfiConverterArrayTypePendingBoard), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3739
3210
|
} catch (__error) {
|
|
3740
3211
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3741
3212
|
__error.stack = __stack;
|
|
@@ -3748,7 +3219,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3748
3219
|
try {
|
|
3749
3220
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3750
3221
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_exits_total_sats(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3751
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterUInt64.lift.bind(FfiConverterUInt64), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3222
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterUInt64.lift.bind(FfiConverterUInt64), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3752
3223
|
} catch (__error) {
|
|
3753
3224
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3754
3225
|
__error.stack = __stack;
|
|
@@ -3761,7 +3232,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3761
3232
|
try {
|
|
3762
3233
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3763
3234
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_lightning_receives(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3764
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeLightningReceive.lift.bind(FfiConverterArrayTypeLightningReceive), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3235
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeLightningReceive.lift.bind(FfiConverterArrayTypeLightningReceive), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3765
3236
|
} catch (__error) {
|
|
3766
3237
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3767
3238
|
__error.stack = __stack;
|
|
@@ -3774,7 +3245,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3774
3245
|
try {
|
|
3775
3246
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3776
3247
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_lightning_send_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3777
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3248
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3778
3249
|
} catch (__error) {
|
|
3779
3250
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3780
3251
|
__error.stack = __stack;
|
|
@@ -3787,7 +3258,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3787
3258
|
try {
|
|
3788
3259
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3789
3260
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_lightning_sends(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3790
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeLightningSend.lift.bind(FfiConverterArrayTypeLightningSend), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3261
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeLightningSend.lift.bind(FfiConverterArrayTypeLightningSend), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3791
3262
|
} catch (__error) {
|
|
3792
3263
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3793
3264
|
__error.stack = __stack;
|
|
@@ -3800,7 +3271,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3800
3271
|
try {
|
|
3801
3272
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3802
3273
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_round_input_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3803
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3274
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3804
3275
|
} catch (__error) {
|
|
3805
3276
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3806
3277
|
__error.stack = __stack;
|
|
@@ -3813,7 +3284,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3813
3284
|
try {
|
|
3814
3285
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3815
3286
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_round_states(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3816
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeRoundState.lift.bind(FfiConverterArrayTypeRoundState), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3287
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeRoundState.lift.bind(FfiConverterArrayTypeRoundState), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3817
3288
|
} catch (__error) {
|
|
3818
3289
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3819
3290
|
__error.stack = __stack;
|
|
@@ -3826,7 +3297,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3826
3297
|
try {
|
|
3827
3298
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3828
3299
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_progress_exits(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterTypeOnchainWallet.lower(onchainWallet), FfiConverterOptionalUInt64.lower(feeRateSatPerVb));
|
|
3829
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeExitProgressStatus.lift.bind(FfiConverterArrayTypeExitProgressStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3300
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeExitProgressStatus.lift.bind(FfiConverterArrayTypeExitProgressStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3830
3301
|
} catch (__error) {
|
|
3831
3302
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3832
3303
|
__error.stack = __stack;
|
|
@@ -3839,7 +3310,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3839
3310
|
try {
|
|
3840
3311
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3841
3312
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_progress_pending_rounds(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3842
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3313
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3843
3314
|
} catch (__error) {
|
|
3844
3315
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3845
3316
|
__error.stack = __stack;
|
|
@@ -3852,7 +3323,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3852
3323
|
try {
|
|
3853
3324
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3854
3325
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_properties(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3855
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeWalletProperties.lift.bind(FfiConverterTypeWalletProperties), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3326
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeWalletProperties.lift.bind(FfiConverterTypeWalletProperties), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3856
3327
|
} catch (__error) {
|
|
3857
3328
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3858
3329
|
__error.stack = __stack;
|
|
@@ -3865,7 +3336,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3865
3336
|
try {
|
|
3866
3337
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3867
3338
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_refresh_server(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3868
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3339
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3869
3340
|
} catch (__error) {
|
|
3870
3341
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3871
3342
|
__error.stack = __stack;
|
|
@@ -3878,7 +3349,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3878
3349
|
try {
|
|
3879
3350
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3880
3351
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterArrayString.lower(vtxoIds));
|
|
3881
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalString.lift.bind(FfiConverterOptionalString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3352
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalString.lift.bind(FfiConverterOptionalString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3882
3353
|
} catch (__error) {
|
|
3883
3354
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3884
3355
|
__error.stack = __stack;
|
|
@@ -3891,7 +3362,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3891
3362
|
try {
|
|
3892
3363
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3893
3364
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos_delegated(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterArrayString.lower(vtxoIds));
|
|
3894
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalTypeRoundState.lift.bind(FfiConverterOptionalTypeRoundState), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3365
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalTypeRoundState.lift.bind(FfiConverterOptionalTypeRoundState), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3895
3366
|
} catch (__error) {
|
|
3896
3367
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3897
3368
|
__error.stack = __stack;
|
|
@@ -3904,7 +3375,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3904
3375
|
try {
|
|
3905
3376
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3906
3377
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_run_daemon(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterOptionalTypeOnchainWallet.lower(onchainWallet));
|
|
3907
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3378
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3908
3379
|
} catch (__error) {
|
|
3909
3380
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3910
3381
|
__error.stack = __stack;
|
|
@@ -3917,7 +3388,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3917
3388
|
try {
|
|
3918
3389
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3919
3390
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_send_arkoor_payment(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(arkAddress), FfiConverterUInt64.lower(amountSats));
|
|
3920
|
-
}, /*pollFunc:*/nativeModule().
|
|
3391
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3921
3392
|
} catch (__error) {
|
|
3922
3393
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3923
3394
|
__error.stack = __stack;
|
|
@@ -3930,7 +3401,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3930
3401
|
try {
|
|
3931
3402
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3932
3403
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_send_onchain(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(address), FfiConverterUInt64.lower(amountSats));
|
|
3933
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3404
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3934
3405
|
} catch (__error) {
|
|
3935
3406
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3936
3407
|
__error.stack = __stack;
|
|
@@ -3943,7 +3414,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3943
3414
|
try {
|
|
3944
3415
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3945
3416
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_sign_exit_claim_inputs(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(psbtBase64));
|
|
3946
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3417
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3947
3418
|
} catch (__error) {
|
|
3948
3419
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3949
3420
|
__error.stack = __stack;
|
|
@@ -3956,7 +3427,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3956
3427
|
try {
|
|
3957
3428
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3958
3429
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_spendable_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3959
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3430
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3960
3431
|
} catch (__error) {
|
|
3961
3432
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3962
3433
|
__error.stack = __stack;
|
|
@@ -3969,7 +3440,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3969
3440
|
try {
|
|
3970
3441
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3971
3442
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_start_exit_for_entire_wallet(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3972
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3443
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3973
3444
|
} catch (__error) {
|
|
3974
3445
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3975
3446
|
__error.stack = __stack;
|
|
@@ -3982,7 +3453,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3982
3453
|
try {
|
|
3983
3454
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3984
3455
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_start_exit_for_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterArrayString.lower(vtxoIds));
|
|
3985
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3456
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3986
3457
|
} catch (__error) {
|
|
3987
3458
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3988
3459
|
__error.stack = __stack;
|
|
@@ -3995,7 +3466,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3995
3466
|
try {
|
|
3996
3467
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3997
3468
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_stop_daemon(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3998
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3469
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3999
3470
|
} catch (__error) {
|
|
4000
3471
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
4001
3472
|
__error.stack = __stack;
|
|
@@ -4008,7 +3479,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
4008
3479
|
try {
|
|
4009
3480
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
4010
3481
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_stuck_failed_lightning_sends(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
4011
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeLightningSend.lift.bind(FfiConverterArrayTypeLightningSend), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3482
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeLightningSend.lift.bind(FfiConverterArrayTypeLightningSend), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
4012
3483
|
} catch (__error) {
|
|
4013
3484
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
4014
3485
|
__error.stack = __stack;
|
|
@@ -4021,7 +3492,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
4021
3492
|
try {
|
|
4022
3493
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
4023
3494
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_sync(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
4024
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3495
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
4025
3496
|
} catch (__error) {
|
|
4026
3497
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
4027
3498
|
__error.stack = __stack;
|
|
@@ -4034,7 +3505,28 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
4034
3505
|
try {
|
|
4035
3506
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
4036
3507
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_sync_exits(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterTypeOnchainWallet.lower(onchainWallet));
|
|
4037
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3508
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
3509
|
+
} catch (__error) {
|
|
3510
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3511
|
+
__error.stack = __stack;
|
|
3512
|
+
}
|
|
3513
|
+
throw __error;
|
|
3514
|
+
}
|
|
3515
|
+
}
|
|
3516
|
+
|
|
3517
|
+
/**
|
|
3518
|
+
* Scan for VTXOs that were force-exited on-chain without the user asking
|
|
3519
|
+
* and route them into the unilateral-exit flow so the funds can be claimed.
|
|
3520
|
+
*
|
|
3521
|
+
* This already runs automatically as part of [`Self::sync`]; call it
|
|
3522
|
+
* directly to trigger the scan on demand.
|
|
3523
|
+
*/
|
|
3524
|
+
async syncForceExitedVtxos(asyncOpts_) /*throws*/{
|
|
3525
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3526
|
+
try {
|
|
3527
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3528
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_sync_force_exited_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
3529
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
4038
3530
|
} catch (__error) {
|
|
4039
3531
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
4040
3532
|
__error.stack = __stack;
|
|
@@ -4047,7 +3539,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
4047
3539
|
try {
|
|
4048
3540
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
4049
3541
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_sync_pending_boards(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
4050
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3542
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
4051
3543
|
} catch (__error) {
|
|
4052
3544
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
4053
3545
|
__error.stack = __stack;
|
|
@@ -4055,12 +3547,12 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
4055
3547
|
throw __error;
|
|
4056
3548
|
}
|
|
4057
3549
|
}
|
|
4058
|
-
async tryClaimAllLightningReceives(wait, asyncOpts_) /*throws*/{
|
|
3550
|
+
async tryClaimAllLightningReceives(wait = false, asyncOpts_) /*throws*/{
|
|
4059
3551
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4060
3552
|
try {
|
|
4061
3553
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
4062
3554
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_try_claim_all_lightning_receives(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterBool.lower(wait));
|
|
4063
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeLightningReceive.lift.bind(FfiConverterArrayTypeLightningReceive), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3555
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeLightningReceive.lift.bind(FfiConverterArrayTypeLightningReceive), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
4064
3556
|
} catch (__error) {
|
|
4065
3557
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
4066
3558
|
__error.stack = __stack;
|
|
@@ -4068,12 +3560,12 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
4068
3560
|
throw __error;
|
|
4069
3561
|
}
|
|
4070
3562
|
}
|
|
4071
|
-
async tryClaimLightningReceive(paymentHash, wait, asyncOpts_) /*throws*/{
|
|
3563
|
+
async tryClaimLightningReceive(paymentHash, wait = false, asyncOpts_) /*throws*/{
|
|
4072
3564
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4073
3565
|
try {
|
|
4074
3566
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
4075
3567
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_try_claim_lightning_receive(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash), FfiConverterBool.lower(wait));
|
|
4076
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3568
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
4077
3569
|
} catch (__error) {
|
|
4078
3570
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
4079
3571
|
__error.stack = __stack;
|
|
@@ -4086,7 +3578,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
4086
3578
|
try {
|
|
4087
3579
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
4088
3580
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_validate_arkoor_address(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(address));
|
|
4089
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_i8, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_i8, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_i8, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_i8, /*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3581
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_i8, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_i8, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_i8, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_i8, /*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
4090
3582
|
} catch (__error) {
|
|
4091
3583
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
4092
3584
|
__error.stack = __stack;
|
|
@@ -4099,7 +3591,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
4099
3591
|
try {
|
|
4100
3592
|
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
4101
3593
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
4102
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/
|
|
3594
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeVtxo.lift.bind(FfiConverterArrayTypeVtxo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
4103
3595
|
} catch (__error) {
|
|
4104
3596
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
4105
3597
|
__error.stack = __stack;
|
|
@@ -4250,360 +3742,357 @@ function uniffiEnsureInitialized() {
|
|
|
4250
3742
|
if (bindingsContractVersion !== scaffoldingContractVersion) {
|
|
4251
3743
|
throw new UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion, bindingsContractVersion);
|
|
4252
3744
|
}
|
|
4253
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_func_extract_tx_from_psbt() !==
|
|
3745
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_func_extract_tx_from_psbt() !== 8893) {
|
|
4254
3746
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_extract_tx_from_psbt");
|
|
4255
3747
|
}
|
|
4256
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_func_generate_mnemonic() !==
|
|
3748
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_func_generate_mnemonic() !== 65033) {
|
|
4257
3749
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_generate_mnemonic");
|
|
4258
3750
|
}
|
|
4259
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_func_validate_ark_address() !==
|
|
3751
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_func_validate_ark_address() !== 43084) {
|
|
4260
3752
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_validate_ark_address");
|
|
4261
3753
|
}
|
|
4262
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_func_validate_mnemonic() !==
|
|
3754
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_func_validate_mnemonic() !== 33507) {
|
|
4263
3755
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_validate_mnemonic");
|
|
4264
3756
|
}
|
|
4265
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_func_set_logger() !==
|
|
3757
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_func_set_logger() !== 16477) {
|
|
4266
3758
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_set_logger");
|
|
4267
3759
|
}
|
|
3760
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_func_init_wallet() !== 41495) {
|
|
3761
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_init_wallet");
|
|
3762
|
+
}
|
|
4268
3763
|
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_notificationholder_cancel_next_notification_wait() !== 45269) {
|
|
4269
3764
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_notificationholder_cancel_next_notification_wait");
|
|
4270
3765
|
}
|
|
4271
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_notificationholder_next_notification() !==
|
|
3766
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_notificationholder_next_notification() !== 25507) {
|
|
4272
3767
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_notificationholder_next_notification");
|
|
4273
3768
|
}
|
|
4274
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance() !==
|
|
3769
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance() !== 34190) {
|
|
4275
3770
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance");
|
|
4276
3771
|
}
|
|
4277
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx() !==
|
|
3772
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx() !== 25026) {
|
|
4278
3773
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx");
|
|
4279
3774
|
}
|
|
4280
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx() !==
|
|
3775
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx() !== 53416) {
|
|
4281
3776
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx");
|
|
4282
3777
|
}
|
|
4283
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_psbt() !==
|
|
3778
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_psbt() !== 39878) {
|
|
4284
3779
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_psbt");
|
|
4285
3780
|
}
|
|
4286
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx() !==
|
|
3781
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx() !== 40848) {
|
|
4287
3782
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx");
|
|
4288
3783
|
}
|
|
4289
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block() !==
|
|
3784
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block() !== 20505) {
|
|
4290
3785
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block");
|
|
4291
3786
|
}
|
|
4292
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx() !==
|
|
3787
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx() !== 24154) {
|
|
4293
3788
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx");
|
|
4294
3789
|
}
|
|
4295
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp() !==
|
|
3790
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp() !== 58200) {
|
|
4296
3791
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp");
|
|
4297
3792
|
}
|
|
4298
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp() !==
|
|
3793
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp() !== 64815) {
|
|
4299
3794
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp");
|
|
4300
3795
|
}
|
|
4301
|
-
if (nativeModule().
|
|
3796
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_sync() !== 29018) {
|
|
3797
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_sync");
|
|
3798
|
+
}
|
|
3799
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_barklogger_log() !== 30279) {
|
|
4302
3800
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_barklogger_log");
|
|
4303
3801
|
}
|
|
4304
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_balance() !==
|
|
3802
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_balance() !== 39213) {
|
|
4305
3803
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_balance");
|
|
4306
3804
|
}
|
|
4307
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_new_address() !==
|
|
3805
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_new_address() !== 7405) {
|
|
4308
3806
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_new_address");
|
|
4309
3807
|
}
|
|
4310
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_send() !==
|
|
3808
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_send() !== 30495) {
|
|
4311
3809
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_send");
|
|
4312
3810
|
}
|
|
4313
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_sync() !==
|
|
3811
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_sync() !== 4373) {
|
|
4314
3812
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_sync");
|
|
4315
3813
|
}
|
|
4316
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_exits_claimable_at_height() !==
|
|
3814
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_exits_claimable_at_height() !== 59034) {
|
|
4317
3815
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_all_exits_claimable_at_height");
|
|
4318
3816
|
}
|
|
4319
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_vtxos() !==
|
|
3817
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_vtxos() !== 62209) {
|
|
4320
3818
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_all_vtxos");
|
|
4321
3819
|
}
|
|
4322
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_allow_lightning_send_to_exit() !==
|
|
3820
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_allow_lightning_send_to_exit() !== 50764) {
|
|
4323
3821
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_allow_lightning_send_to_exit");
|
|
4324
3822
|
}
|
|
4325
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_ark_info() !==
|
|
3823
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_ark_info() !== 54388) {
|
|
4326
3824
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_ark_info");
|
|
4327
3825
|
}
|
|
4328
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_attempt_lightning_receive_exit() !==
|
|
3826
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_attempt_lightning_receive_exit() !== 62153) {
|
|
4329
3827
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_attempt_lightning_receive_exit");
|
|
4330
3828
|
}
|
|
4331
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_balance() !==
|
|
3829
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_balance() !== 37345) {
|
|
4332
3830
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_balance");
|
|
4333
3831
|
}
|
|
4334
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_all() !==
|
|
3832
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_all() !== 58611) {
|
|
4335
3833
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_board_all");
|
|
4336
3834
|
}
|
|
4337
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_amount() !==
|
|
3835
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_amount() !== 51838) {
|
|
4338
3836
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_board_amount");
|
|
4339
3837
|
}
|
|
4340
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice() !==
|
|
3838
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice() !== 43491) {
|
|
4341
3839
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice");
|
|
4342
3840
|
}
|
|
4343
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_broadcast_tx() !==
|
|
3841
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_broadcast_tx() !== 46367) {
|
|
4344
3842
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_broadcast_tx");
|
|
4345
3843
|
}
|
|
4346
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds() !==
|
|
3844
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds() !== 53455) {
|
|
4347
3845
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds");
|
|
4348
3846
|
}
|
|
4349
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_lightning_receive() !==
|
|
3847
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_lightning_receive() !== 49444) {
|
|
4350
3848
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_cancel_lightning_receive");
|
|
4351
3849
|
}
|
|
4352
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round() !==
|
|
3850
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round() !== 13433) {
|
|
4353
3851
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round");
|
|
4354
3852
|
}
|
|
4355
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment() !==
|
|
3853
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment() !== 50033) {
|
|
4356
3854
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment");
|
|
4357
3855
|
}
|
|
4358
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_claimable_lightning_receive_balance_sats() !==
|
|
3856
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_claimable_lightning_receive_balance_sats() !== 7743) {
|
|
4359
3857
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_claimable_lightning_receive_balance_sats");
|
|
4360
3858
|
}
|
|
4361
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_config() !==
|
|
3859
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_config() !== 23594) {
|
|
4362
3860
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_config");
|
|
4363
3861
|
}
|
|
4364
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_drain_exits() !==
|
|
3862
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_drain_exits() !== 47845) {
|
|
4365
3863
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_drain_exits");
|
|
4366
3864
|
}
|
|
4367
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_arkoor_payment_fee() !==
|
|
3865
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_arkoor_payment_fee() !== 35980) {
|
|
4368
3866
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_arkoor_payment_fee");
|
|
4369
3867
|
}
|
|
4370
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee() !==
|
|
3868
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee() !== 55967) {
|
|
4371
3869
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee");
|
|
4372
3870
|
}
|
|
4373
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee() !==
|
|
3871
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee() !== 33637) {
|
|
4374
3872
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee");
|
|
4375
3873
|
}
|
|
4376
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee() !==
|
|
3874
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee() !== 11290) {
|
|
4377
3875
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee");
|
|
4378
3876
|
}
|
|
4379
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_all_fee() !==
|
|
3877
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_all_fee() !== 24629) {
|
|
4380
3878
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_all_fee");
|
|
4381
3879
|
}
|
|
4382
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee() !==
|
|
3880
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee() !== 37073) {
|
|
4383
3881
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee");
|
|
4384
3882
|
}
|
|
4385
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee() !==
|
|
3883
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee() !== 18182) {
|
|
4386
3884
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee");
|
|
4387
3885
|
}
|
|
4388
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_send_onchain_fee() !==
|
|
3886
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_send_onchain_fee() !== 1027) {
|
|
4389
3887
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_send_onchain_fee");
|
|
4390
3888
|
}
|
|
4391
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_fingerprint() !==
|
|
3889
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_fingerprint() !== 51021) {
|
|
4392
3890
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_fingerprint");
|
|
4393
3891
|
}
|
|
4394
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_status() !==
|
|
3892
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_status() !== 33054) {
|
|
4395
3893
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_exit_status");
|
|
4396
3894
|
}
|
|
4397
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_vtxos() !==
|
|
3895
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_vtxos() !== 20147) {
|
|
4398
3896
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_exit_vtxos");
|
|
4399
3897
|
}
|
|
4400
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_expiring_vtxos() !==
|
|
3898
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_expiring_vtxos() !== 39689) {
|
|
4401
3899
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_expiring_vtxos");
|
|
4402
3900
|
}
|
|
4403
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_first_expiring_vtxo_blockheight() !==
|
|
3901
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_first_expiring_vtxo_blockheight() !== 33536) {
|
|
4404
3902
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_first_expiring_vtxo_blockheight");
|
|
4405
3903
|
}
|
|
4406
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_next_required_refresh_blockheight() !==
|
|
3904
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_next_required_refresh_blockheight() !== 58530) {
|
|
4407
3905
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_next_required_refresh_blockheight");
|
|
4408
3906
|
}
|
|
4409
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxo_by_id() !==
|
|
3907
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxo_by_id() !== 34050) {
|
|
4410
3908
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_vtxo_by_id");
|
|
4411
3909
|
}
|
|
4412
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxos_to_refresh() !==
|
|
3910
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxos_to_refresh() !== 52553) {
|
|
4413
3911
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_vtxos_to_refresh");
|
|
4414
3912
|
}
|
|
4415
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_has_pending_exits() !==
|
|
3913
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_has_pending_exits() !== 19790) {
|
|
4416
3914
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_has_pending_exits");
|
|
4417
3915
|
}
|
|
4418
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_history() !==
|
|
3916
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_history() !== 10552) {
|
|
4419
3917
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_history");
|
|
4420
3918
|
}
|
|
4421
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method() !==
|
|
3919
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method() !== 11845) {
|
|
4422
3920
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method");
|
|
4423
3921
|
}
|
|
4424
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_import_vtxo() !==
|
|
3922
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_import_vtxo() !== 42571) {
|
|
4425
3923
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_import_vtxo");
|
|
4426
3924
|
}
|
|
4427
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid() !==
|
|
3925
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid() !== 31079) {
|
|
4428
3926
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid");
|
|
4429
3927
|
}
|
|
4430
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status() !==
|
|
3928
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status() !== 27695) {
|
|
4431
3929
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status");
|
|
4432
3930
|
}
|
|
4433
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_send_state() !==
|
|
3931
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_send_state() !== 5687) {
|
|
4434
3932
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_lightning_send_state");
|
|
4435
3933
|
}
|
|
4436
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits() !==
|
|
3934
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits() !== 58660) {
|
|
4437
3935
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits");
|
|
4438
3936
|
}
|
|
4439
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization() !==
|
|
3937
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization() !== 52372) {
|
|
4440
3938
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization");
|
|
4441
3939
|
}
|
|
4442
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier() !==
|
|
3940
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier() !== 15231) {
|
|
4443
3941
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier");
|
|
4444
3942
|
}
|
|
4445
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance() !==
|
|
3943
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance() !== 33161) {
|
|
4446
3944
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance");
|
|
4447
3945
|
}
|
|
4448
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_delegated() !==
|
|
3946
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_delegated() !== 31668) {
|
|
4449
3947
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance_delegated");
|
|
4450
3948
|
}
|
|
4451
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh() !==
|
|
3949
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh() !== 34548) {
|
|
4452
3950
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh");
|
|
4453
3951
|
}
|
|
4454
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain() !==
|
|
3952
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain() !== 16119) {
|
|
4455
3953
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain");
|
|
4456
3954
|
}
|
|
4457
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated() !==
|
|
3955
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated() !== 40766) {
|
|
4458
3956
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated");
|
|
4459
3957
|
}
|
|
4460
|
-
if (nativeModule().
|
|
4461
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maybe_schedule_maintenance_refresh");
|
|
4462
|
-
}
|
|
4463
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_network() !== 28437) {
|
|
3958
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_network() !== 2007) {
|
|
4464
3959
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_network");
|
|
4465
3960
|
}
|
|
4466
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address() !==
|
|
3961
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address() !== 65478) {
|
|
4467
3962
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_new_address");
|
|
4468
3963
|
}
|
|
4469
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address_with_index() !==
|
|
3964
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address_with_index() !== 37344) {
|
|
4470
3965
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_new_address_with_index");
|
|
4471
3966
|
}
|
|
4472
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_next_round_start_time() !==
|
|
3967
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_next_round_start_time() !== 20748) {
|
|
4473
3968
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_next_round_start_time");
|
|
4474
3969
|
}
|
|
4475
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_notifications() !==
|
|
3970
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_notifications() !== 8597) {
|
|
4476
3971
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_notifications");
|
|
4477
3972
|
}
|
|
4478
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_all() !==
|
|
3973
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_all() !== 7986) {
|
|
4479
3974
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_offboard_all");
|
|
4480
3975
|
}
|
|
4481
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos() !==
|
|
3976
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos() !== 26775) {
|
|
4482
3977
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos");
|
|
4483
3978
|
}
|
|
4484
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address() !==
|
|
3979
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address() !== 19392) {
|
|
4485
3980
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address");
|
|
4486
3981
|
}
|
|
4487
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice() !==
|
|
3982
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice() !== 26921) {
|
|
4488
3983
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice");
|
|
4489
3984
|
}
|
|
4490
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer() !==
|
|
3985
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer() !== 25462) {
|
|
4491
3986
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer");
|
|
4492
3987
|
}
|
|
4493
|
-
if (nativeModule().
|
|
3988
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lnurl() !== 25859) {
|
|
3989
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pay_lnurl");
|
|
3990
|
+
}
|
|
3991
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_peek_address() !== 31847) {
|
|
4494
3992
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_peek_address");
|
|
4495
3993
|
}
|
|
4496
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos() !==
|
|
3994
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos() !== 53566) {
|
|
4497
3995
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos");
|
|
4498
3996
|
}
|
|
4499
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_boards() !==
|
|
3997
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_boards() !== 61501) {
|
|
4500
3998
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_boards");
|
|
4501
3999
|
}
|
|
4502
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_exits_total_sats() !==
|
|
4000
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_exits_total_sats() !== 38418) {
|
|
4503
4001
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_exits_total_sats");
|
|
4504
4002
|
}
|
|
4505
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_receives() !==
|
|
4003
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_receives() !== 26676) {
|
|
4506
4004
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_lightning_receives");
|
|
4507
4005
|
}
|
|
4508
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_send_vtxos() !==
|
|
4006
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_send_vtxos() !== 62766) {
|
|
4509
4007
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_lightning_send_vtxos");
|
|
4510
4008
|
}
|
|
4511
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_sends() !==
|
|
4009
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_sends() !== 8847) {
|
|
4512
4010
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_lightning_sends");
|
|
4513
4011
|
}
|
|
4514
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos() !==
|
|
4012
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos() !== 54307) {
|
|
4515
4013
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos");
|
|
4516
4014
|
}
|
|
4517
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_states() !==
|
|
4015
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_states() !== 11480) {
|
|
4518
4016
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_round_states");
|
|
4519
4017
|
}
|
|
4520
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_exits() !==
|
|
4018
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_exits() !== 7089) {
|
|
4521
4019
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_progress_exits");
|
|
4522
4020
|
}
|
|
4523
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_pending_rounds() !==
|
|
4021
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_pending_rounds() !== 43537) {
|
|
4524
4022
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_progress_pending_rounds");
|
|
4525
4023
|
}
|
|
4526
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_properties() !==
|
|
4024
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_properties() !== 9773) {
|
|
4527
4025
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_properties");
|
|
4528
4026
|
}
|
|
4529
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_server() !==
|
|
4027
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_server() !== 41162) {
|
|
4530
4028
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_refresh_server");
|
|
4531
4029
|
}
|
|
4532
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos() !==
|
|
4030
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos() !== 52101) {
|
|
4533
4031
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos");
|
|
4534
4032
|
}
|
|
4535
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated() !==
|
|
4033
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated() !== 61476) {
|
|
4536
4034
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated");
|
|
4537
4035
|
}
|
|
4538
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_run_daemon() !==
|
|
4036
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_run_daemon() !== 3475) {
|
|
4539
4037
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_run_daemon");
|
|
4540
4038
|
}
|
|
4541
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment() !==
|
|
4039
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment() !== 46166) {
|
|
4542
4040
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment");
|
|
4543
4041
|
}
|
|
4544
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_onchain() !==
|
|
4042
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_onchain() !== 42570) {
|
|
4545
4043
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_send_onchain");
|
|
4546
4044
|
}
|
|
4547
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sign_exit_claim_inputs() !==
|
|
4045
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sign_exit_claim_inputs() !== 12930) {
|
|
4548
4046
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sign_exit_claim_inputs");
|
|
4549
4047
|
}
|
|
4550
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_spendable_vtxos() !==
|
|
4048
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_spendable_vtxos() !== 22755) {
|
|
4551
4049
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_spendable_vtxos");
|
|
4552
4050
|
}
|
|
4553
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_entire_wallet() !==
|
|
4051
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_entire_wallet() !== 6525) {
|
|
4554
4052
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_start_exit_for_entire_wallet");
|
|
4555
4053
|
}
|
|
4556
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos() !==
|
|
4054
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos() !== 56154) {
|
|
4557
4055
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos");
|
|
4558
4056
|
}
|
|
4559
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_stop_daemon() !==
|
|
4057
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_stop_daemon() !== 7109) {
|
|
4560
4058
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_stop_daemon");
|
|
4561
4059
|
}
|
|
4562
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends() !==
|
|
4060
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends() !== 31451) {
|
|
4563
4061
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends");
|
|
4564
4062
|
}
|
|
4565
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync() !==
|
|
4063
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync() !== 2151) {
|
|
4566
4064
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sync");
|
|
4567
4065
|
}
|
|
4568
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_exits() !==
|
|
4066
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_exits() !== 22078) {
|
|
4569
4067
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sync_exits");
|
|
4570
4068
|
}
|
|
4571
|
-
if (nativeModule().
|
|
4069
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_force_exited_vtxos() !== 25363) {
|
|
4070
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sync_force_exited_vtxos");
|
|
4071
|
+
}
|
|
4072
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards() !== 63453) {
|
|
4572
4073
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards");
|
|
4573
4074
|
}
|
|
4574
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives() !==
|
|
4075
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives() !== 14560) {
|
|
4575
4076
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives");
|
|
4576
4077
|
}
|
|
4577
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive() !==
|
|
4078
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive() !== 45229) {
|
|
4578
4079
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive");
|
|
4579
4080
|
}
|
|
4580
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address() !==
|
|
4081
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address() !== 10861) {
|
|
4581
4082
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address");
|
|
4582
4083
|
}
|
|
4583
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxos() !==
|
|
4084
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxos() !== 33207) {
|
|
4584
4085
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_vtxos");
|
|
4585
4086
|
}
|
|
4586
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_onchainwallet_custom() !==
|
|
4087
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_onchainwallet_custom() !== 33645) {
|
|
4587
4088
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_onchainwallet_custom");
|
|
4588
4089
|
}
|
|
4589
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_onchainwallet_default() !==
|
|
4090
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_onchainwallet_default() !== 61714) {
|
|
4590
4091
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_onchainwallet_default");
|
|
4591
4092
|
}
|
|
4592
|
-
if (nativeModule().
|
|
4593
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_wallet_create");
|
|
4594
|
-
}
|
|
4595
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_create_with_onchain() !== 55243) {
|
|
4596
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_wallet_create_with_onchain");
|
|
4597
|
-
}
|
|
4598
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open() !== 36564) {
|
|
4093
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open() !== 37541) {
|
|
4599
4094
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_wallet_open");
|
|
4600
4095
|
}
|
|
4601
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open_with_daemon() !== 9668) {
|
|
4602
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_wallet_open_with_daemon");
|
|
4603
|
-
}
|
|
4604
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open_with_onchain() !== 39500) {
|
|
4605
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_wallet_open_with_onchain");
|
|
4606
|
-
}
|
|
4607
4096
|
uniffiCallbackInterfaceBarkLogger.register();
|
|
4608
4097
|
uniffiCallbackInterfaceCustomOnchainWalletCallbacks.register();
|
|
4609
4098
|
}
|
|
@@ -4613,13 +4102,13 @@ export default Object.freeze({
|
|
|
4613
4102
|
FfiConverterTypeAddressWithIndex,
|
|
4614
4103
|
FfiConverterTypeArkInfo,
|
|
4615
4104
|
FfiConverterTypeBalance,
|
|
4616
|
-
FfiConverterTypeBarkError,
|
|
4617
4105
|
FfiConverterTypeBarkLogger,
|
|
4618
4106
|
FfiConverterTypeBlockRef,
|
|
4619
4107
|
FfiConverterTypeConfig,
|
|
4620
4108
|
FfiConverterTypeCpfpParams,
|
|
4621
4109
|
FfiConverterTypeCustomOnchainWalletCallbacks,
|
|
4622
4110
|
FfiConverterTypeDestination,
|
|
4111
|
+
FfiConverterTypeError,
|
|
4623
4112
|
FfiConverterTypeExitClaimTransaction,
|
|
4624
4113
|
FfiConverterTypeExitProgressStatus,
|
|
4625
4114
|
FfiConverterTypeExitTransactionStatus,
|
|
@@ -4642,6 +4131,7 @@ export default Object.freeze({
|
|
|
4642
4131
|
FfiConverterTypeVtxo,
|
|
4643
4132
|
FfiConverterTypeWallet,
|
|
4644
4133
|
FfiConverterTypeWalletNotification,
|
|
4134
|
+
FfiConverterTypeWalletOpenArgs,
|
|
4645
4135
|
FfiConverterTypeWalletProperties
|
|
4646
4136
|
}
|
|
4647
4137
|
});
|