@secondts/bark-react-native 0.5.3 → 0.6.3
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 +971 -652
- package/cpp/generated/bark.hpp +30 -16
- package/lib/commonjs/generated/bark-ffi.js.map +1 -1
- package/lib/commonjs/generated/bark.js +879 -1140
- 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 +876 -1139
- package/lib/module/generated/bark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts +37 -23
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark.d.ts +353 -1345
- package/lib/typescript/commonjs/src/generated/bark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark-ffi.d.ts +37 -23
- package/lib/typescript/module/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark.d.ts +353 -1345
- package/lib/typescript/module/src/generated/bark.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/generated/bark-ffi.ts +111 -39
- package/src/generated/bark.ts +2243 -2876
|
@@ -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,
|
|
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";
|
|
11
11
|
|
|
12
12
|
// Get converters from the other files, if any.
|
|
13
13
|
const uniffiCaller = new UniffiRustCaller(() => ({
|
|
@@ -20,240 +20,64 @@ typeof process !== "object" ||
|
|
|
20
20
|
process?.env?.NODE_ENV !== "production" || false;
|
|
21
21
|
// Public interface members begin here.
|
|
22
22
|
|
|
23
|
+
/**
|
|
24
|
+
* Extract a signed transaction from a PSBT
|
|
25
|
+
*
|
|
26
|
+
* Takes a base64-encoded PSBT and extracts the final signed transaction.
|
|
27
|
+
* This is useful after signing a PSBT (e.g., from drain_exits) before broadcasting.
|
|
28
|
+
*
|
|
29
|
+
* # Arguments
|
|
30
|
+
*
|
|
31
|
+
* * `psbt_base64` - Base64-encoded PSBT string
|
|
32
|
+
*
|
|
33
|
+
* # Returns
|
|
34
|
+
*
|
|
35
|
+
* Hex-encoded signed transaction ready for broadcasting
|
|
36
|
+
*/
|
|
23
37
|
export function extractTxFromPsbt(psbtBase64) /*throws*/{
|
|
24
38
|
return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
25
39
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_func_extract_tx_from_psbt(FfiConverterString.lower(psbtBase64), callStatus);
|
|
26
40
|
}, /*liftString:*/FfiConverterString.lift));
|
|
27
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* Generate a new 12-word BIP39 mnemonic
|
|
44
|
+
*/
|
|
28
45
|
export function generateMnemonic() /*throws*/{
|
|
29
46
|
return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
30
47
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_func_generate_mnemonic(callStatus);
|
|
31
48
|
}, /*liftString:*/FfiConverterString.lift));
|
|
32
49
|
}
|
|
33
50
|
/**
|
|
34
|
-
*
|
|
35
|
-
*
|
|
51
|
+
* Validate an Ark address (basic format check only)
|
|
52
|
+
*
|
|
53
|
+
* This only validates the format of the address, not whether it belongs
|
|
54
|
+
* to a specific Ark server. For full validation against a connected server,
|
|
55
|
+
* use Wallet::validate_arkoor_address() instead.
|
|
36
56
|
*/
|
|
37
|
-
export function setLogger(logger, maxLevel) /*throws*/{
|
|
38
|
-
uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
39
|
-
nativeModule().ubrn_uniffi_bark_ffi_fn_func_set_logger(FfiConverterTypeBarkLogger.lower(logger), FfiConverterTypeLogLevel.lower(maxLevel), callStatus);
|
|
40
|
-
}, /*liftString:*/FfiConverterString.lift);
|
|
41
|
-
}
|
|
42
57
|
export function validateArkAddress(address) /*throws*/{
|
|
43
58
|
return FfiConverterBool.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
44
59
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_func_validate_ark_address(FfiConverterString.lower(address), callStatus);
|
|
45
60
|
}, /*liftString:*/FfiConverterString.lift));
|
|
46
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* Validate a BIP39 mnemonic phrase
|
|
64
|
+
*/
|
|
47
65
|
export function validateMnemonic(mnemonic) /*throws*/{
|
|
48
66
|
return FfiConverterBool.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
49
67
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_func_validate_mnemonic(FfiConverterString.lower(mnemonic), callStatus);
|
|
50
68
|
}, /*liftString:*/FfiConverterString.lift));
|
|
51
69
|
}
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Foreign sink for log records. Implement in Dart/Swift/Kotlin and pass to
|
|
55
|
-
* [set_logger]. The `log()` method must not call back into bark APIs that
|
|
56
|
-
* emit log records.
|
|
57
|
-
*/
|
|
58
|
-
|
|
59
|
-
// Put the implementation in a struct so we don't pollute the top-level namespace
|
|
60
|
-
const uniffiCallbackInterfaceBarkLogger = {
|
|
61
|
-
// Create the VTable using a series of closures.
|
|
62
|
-
// ts automatically converts these into C callback functions.
|
|
63
|
-
vtable: {
|
|
64
|
-
log: (uniffiHandle, level, target, message) => {
|
|
65
|
-
const uniffiMakeCall = () => {
|
|
66
|
-
const jsCallback = FfiConverterTypeBarkLogger.lift(uniffiHandle);
|
|
67
|
-
return jsCallback.log(FfiConverterTypeLogLevel.lift(level), FfiConverterString.lift(target), FfiConverterString.lift(message));
|
|
68
|
-
};
|
|
69
|
-
const uniffiResult = UniffiResult.ready();
|
|
70
|
-
const uniffiHandleSuccess = obj => {};
|
|
71
|
-
const uniffiHandleError = (code, errBuf) => {
|
|
72
|
-
UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
73
|
-
};
|
|
74
|
-
uniffiTraitInterfaceCall(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*lowerString:*/FfiConverterString.lower);
|
|
75
|
-
return uniffiResult;
|
|
76
|
-
},
|
|
77
|
-
uniffiFree: uniffiHandle => {
|
|
78
|
-
// BarkLogger: this will throw a stale handle error if the handle isn't found.
|
|
79
|
-
FfiConverterTypeBarkLogger.drop(uniffiHandle);
|
|
80
|
-
},
|
|
81
|
-
uniffiClone: uniffiHandle => {
|
|
82
|
-
return FfiConverterTypeBarkLogger.clone(uniffiHandle);
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
register: () => {
|
|
86
|
-
nativeModule().ubrn_uniffi_bark_ffi_fn_init_callback_vtable_barklogger(uniffiCallbackInterfaceBarkLogger.vtable);
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
// FfiConverter protocol for callback interfaces
|
|
91
|
-
const FfiConverterTypeBarkLogger = new FfiConverterCallback();
|
|
92
|
-
|
|
93
70
|
/**
|
|
94
|
-
*
|
|
71
|
+
* Install the foreign logger.
|
|
95
72
|
*
|
|
96
|
-
*
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
// Put the implementation in a struct so we don't pollute the top-level namespace
|
|
100
|
-
const uniffiCallbackInterfaceCustomOnchainWalletCallbacks = {
|
|
101
|
-
// Create the VTable using a series of closures.
|
|
102
|
-
// ts automatically converts these into C callback functions.
|
|
103
|
-
vtable: {
|
|
104
|
-
getBalance: uniffiHandle => {
|
|
105
|
-
const uniffiMakeCall = () => {
|
|
106
|
-
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
107
|
-
return jsCallback.getBalance();
|
|
108
|
-
};
|
|
109
|
-
const uniffiResult = UniffiResult.ready();
|
|
110
|
-
const uniffiHandleSuccess = obj => {
|
|
111
|
-
UniffiResult.writeSuccess(uniffiResult, FfiConverterUInt64.lower(obj));
|
|
112
|
-
};
|
|
113
|
-
const uniffiHandleError = (code, errBuf) => {
|
|
114
|
-
UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
115
|
-
};
|
|
116
|
-
uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
|
|
117
|
-
return uniffiResult;
|
|
118
|
-
},
|
|
119
|
-
prepareTx: (uniffiHandle, destinations, feeRateSatPerVb) => {
|
|
120
|
-
const uniffiMakeCall = () => {
|
|
121
|
-
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
122
|
-
return jsCallback.prepareTx(FfiConverterArrayTypeDestination.lift(destinations), FfiConverterUInt64.lift(feeRateSatPerVb));
|
|
123
|
-
};
|
|
124
|
-
const uniffiResult = UniffiResult.ready();
|
|
125
|
-
const uniffiHandleSuccess = obj => {
|
|
126
|
-
UniffiResult.writeSuccess(uniffiResult, FfiConverterString.lower(obj));
|
|
127
|
-
};
|
|
128
|
-
const uniffiHandleError = (code, errBuf) => {
|
|
129
|
-
UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
130
|
-
};
|
|
131
|
-
uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
|
|
132
|
-
return uniffiResult;
|
|
133
|
-
},
|
|
134
|
-
prepareDrainTx: (uniffiHandle, address, feeRateSatPerVb) => {
|
|
135
|
-
const uniffiMakeCall = () => {
|
|
136
|
-
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
137
|
-
return jsCallback.prepareDrainTx(FfiConverterString.lift(address), FfiConverterUInt64.lift(feeRateSatPerVb));
|
|
138
|
-
};
|
|
139
|
-
const uniffiResult = UniffiResult.ready();
|
|
140
|
-
const uniffiHandleSuccess = obj => {
|
|
141
|
-
UniffiResult.writeSuccess(uniffiResult, FfiConverterString.lower(obj));
|
|
142
|
-
};
|
|
143
|
-
const uniffiHandleError = (code, errBuf) => {
|
|
144
|
-
UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
145
|
-
};
|
|
146
|
-
uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
|
|
147
|
-
return uniffiResult;
|
|
148
|
-
},
|
|
149
|
-
finishTx: (uniffiHandle, psbtBase64) => {
|
|
150
|
-
const uniffiMakeCall = () => {
|
|
151
|
-
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
152
|
-
return jsCallback.finishTx(FfiConverterString.lift(psbtBase64));
|
|
153
|
-
};
|
|
154
|
-
const uniffiResult = UniffiResult.ready();
|
|
155
|
-
const uniffiHandleSuccess = obj => {
|
|
156
|
-
UniffiResult.writeSuccess(uniffiResult, FfiConverterString.lower(obj));
|
|
157
|
-
};
|
|
158
|
-
const uniffiHandleError = (code, errBuf) => {
|
|
159
|
-
UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
160
|
-
};
|
|
161
|
-
uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
|
|
162
|
-
return uniffiResult;
|
|
163
|
-
},
|
|
164
|
-
getWalletTx: (uniffiHandle, txid) => {
|
|
165
|
-
const uniffiMakeCall = () => {
|
|
166
|
-
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
167
|
-
return jsCallback.getWalletTx(FfiConverterString.lift(txid));
|
|
168
|
-
};
|
|
169
|
-
const uniffiResult = UniffiResult.ready();
|
|
170
|
-
const uniffiHandleSuccess = obj => {
|
|
171
|
-
UniffiResult.writeSuccess(uniffiResult, FfiConverterOptionalString.lower(obj));
|
|
172
|
-
};
|
|
173
|
-
const uniffiHandleError = (code, errBuf) => {
|
|
174
|
-
UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
175
|
-
};
|
|
176
|
-
uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
|
|
177
|
-
return uniffiResult;
|
|
178
|
-
},
|
|
179
|
-
getWalletTxConfirmedBlock: (uniffiHandle, txid) => {
|
|
180
|
-
const uniffiMakeCall = () => {
|
|
181
|
-
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
182
|
-
return jsCallback.getWalletTxConfirmedBlock(FfiConverterString.lift(txid));
|
|
183
|
-
};
|
|
184
|
-
const uniffiResult = UniffiResult.ready();
|
|
185
|
-
const uniffiHandleSuccess = obj => {
|
|
186
|
-
UniffiResult.writeSuccess(uniffiResult, FfiConverterOptionalTypeBlockRef.lower(obj));
|
|
187
|
-
};
|
|
188
|
-
const uniffiHandleError = (code, errBuf) => {
|
|
189
|
-
UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
190
|
-
};
|
|
191
|
-
uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
|
|
192
|
-
return uniffiResult;
|
|
193
|
-
},
|
|
194
|
-
getSpendingTx: (uniffiHandle, outpoint) => {
|
|
195
|
-
const uniffiMakeCall = () => {
|
|
196
|
-
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
197
|
-
return jsCallback.getSpendingTx(FfiConverterTypeOutPoint.lift(outpoint));
|
|
198
|
-
};
|
|
199
|
-
const uniffiResult = UniffiResult.ready();
|
|
200
|
-
const uniffiHandleSuccess = obj => {
|
|
201
|
-
UniffiResult.writeSuccess(uniffiResult, FfiConverterOptionalString.lower(obj));
|
|
202
|
-
};
|
|
203
|
-
const uniffiHandleError = (code, errBuf) => {
|
|
204
|
-
UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
205
|
-
};
|
|
206
|
-
uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
|
|
207
|
-
return uniffiResult;
|
|
208
|
-
},
|
|
209
|
-
makeSignedP2aCpfp: (uniffiHandle, params) => {
|
|
210
|
-
const uniffiMakeCall = () => {
|
|
211
|
-
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
212
|
-
return jsCallback.makeSignedP2aCpfp(FfiConverterTypeCpfpParams.lift(params));
|
|
213
|
-
};
|
|
214
|
-
const uniffiResult = UniffiResult.ready();
|
|
215
|
-
const uniffiHandleSuccess = obj => {
|
|
216
|
-
UniffiResult.writeSuccess(uniffiResult, FfiConverterString.lower(obj));
|
|
217
|
-
};
|
|
218
|
-
const uniffiHandleError = (code, errBuf) => {
|
|
219
|
-
UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
220
|
-
};
|
|
221
|
-
uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
|
|
222
|
-
return uniffiResult;
|
|
223
|
-
},
|
|
224
|
-
storeSignedP2aCpfp: (uniffiHandle, txHex) => {
|
|
225
|
-
const uniffiMakeCall = () => {
|
|
226
|
-
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
227
|
-
return jsCallback.storeSignedP2aCpfp(FfiConverterString.lift(txHex));
|
|
228
|
-
};
|
|
229
|
-
const uniffiResult = UniffiResult.ready();
|
|
230
|
-
const uniffiHandleSuccess = obj => {};
|
|
231
|
-
const uniffiHandleError = (code, errBuf) => {
|
|
232
|
-
UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
233
|
-
};
|
|
234
|
-
uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
|
|
235
|
-
return uniffiResult;
|
|
236
|
-
},
|
|
237
|
-
uniffiFree: uniffiHandle => {
|
|
238
|
-
// CustomOnchainWalletCallbacks: this will throw a stale handle error if the handle isn't found.
|
|
239
|
-
FfiConverterTypeCustomOnchainWalletCallbacks.drop(uniffiHandle);
|
|
240
|
-
},
|
|
241
|
-
uniffiClone: uniffiHandle => {
|
|
242
|
-
return FfiConverterTypeCustomOnchainWalletCallbacks.clone(uniffiHandle);
|
|
243
|
-
}
|
|
244
|
-
},
|
|
245
|
-
register: () => {
|
|
246
|
-
nativeModule().ubrn_uniffi_bark_ffi_fn_init_callback_vtable_customonchainwalletcallbacks(uniffiCallbackInterfaceCustomOnchainWalletCallbacks.vtable);
|
|
247
|
-
}
|
|
248
|
-
};
|
|
249
|
-
|
|
250
|
-
// FfiConverter protocol for callback interfaces
|
|
251
|
-
const FfiConverterTypeCustomOnchainWalletCallbacks = new FfiConverterCallback();
|
|
252
|
-
|
|
253
|
-
/**
|
|
254
|
-
* An Ark address with its derivation index
|
|
73
|
+
* On first call, installs the bridge with `log::set_logger`. Subsequent calls
|
|
74
|
+
* will return an error.
|
|
255
75
|
*/
|
|
256
|
-
|
|
76
|
+
export function setLogger(logger, maxLevel) /*throws*/{
|
|
77
|
+
uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
78
|
+
nativeModule().ubrn_uniffi_bark_ffi_fn_func_set_logger(FfiConverterTypeBarkLogger.lower(logger), FfiConverterTypeLogLevel.lower(maxLevel), callStatus);
|
|
79
|
+
}, /*liftString:*/FfiConverterString.lift);
|
|
80
|
+
}
|
|
257
81
|
/**
|
|
258
82
|
* Generated factory for {@link AddressWithIndex} record objects.
|
|
259
83
|
*/
|
|
@@ -286,11 +110,6 @@ const FfiConverterTypeAddressWithIndex = (() => {
|
|
|
286
110
|
}
|
|
287
111
|
return new FFIConverter();
|
|
288
112
|
})();
|
|
289
|
-
|
|
290
|
-
/**
|
|
291
|
-
* Ark server configuration information
|
|
292
|
-
*/
|
|
293
|
-
|
|
294
113
|
/**
|
|
295
114
|
* Generated factory for {@link ArkInfo} record objects.
|
|
296
115
|
*/
|
|
@@ -321,9 +140,9 @@ const FfiConverterTypeArkInfo = (() => {
|
|
|
321
140
|
requiredBoardConfirmations: FfiConverterUInt32.read(from),
|
|
322
141
|
maxUserInvoiceCltvDelta: FfiConverterUInt16.read(from),
|
|
323
142
|
minBoardAmountSats: FfiConverterUInt64.read(from),
|
|
324
|
-
offboardFeerateSatPerVb: FfiConverterUInt64.read(from),
|
|
325
143
|
lnReceiveAntiDosRequired: FfiConverterBool.read(from),
|
|
326
|
-
feeScheduleJson: FfiConverterString.read(from)
|
|
144
|
+
feeScheduleJson: FfiConverterString.read(from),
|
|
145
|
+
maxVtxoExitDepth: FfiConverterUInt16.read(from)
|
|
327
146
|
};
|
|
328
147
|
}
|
|
329
148
|
write(value, into) {
|
|
@@ -339,21 +158,16 @@ const FfiConverterTypeArkInfo = (() => {
|
|
|
339
158
|
FfiConverterUInt32.write(value.requiredBoardConfirmations, into);
|
|
340
159
|
FfiConverterUInt16.write(value.maxUserInvoiceCltvDelta, into);
|
|
341
160
|
FfiConverterUInt64.write(value.minBoardAmountSats, into);
|
|
342
|
-
FfiConverterUInt64.write(value.offboardFeerateSatPerVb, into);
|
|
343
161
|
FfiConverterBool.write(value.lnReceiveAntiDosRequired, into);
|
|
344
162
|
FfiConverterString.write(value.feeScheduleJson, into);
|
|
163
|
+
FfiConverterUInt16.write(value.maxVtxoExitDepth, into);
|
|
345
164
|
}
|
|
346
165
|
allocationSize(value) {
|
|
347
|
-
return FfiConverterTypeNetwork.allocationSize(value.network) + FfiConverterString.allocationSize(value.serverPubkey) + FfiConverterUInt64.allocationSize(value.roundIntervalSecs) + FfiConverterUInt32.allocationSize(value.nbRoundNonces) + FfiConverterUInt32.allocationSize(value.vtxoExitDelta) + FfiConverterUInt32.allocationSize(value.vtxoExpiryDelta) + FfiConverterUInt32.allocationSize(value.htlcSendExpiryDelta) + FfiConverterUInt32.allocationSize(value.htlcExpiryDelta) + FfiConverterOptionalUInt64.allocationSize(value.maxVtxoAmountSats) + FfiConverterUInt32.allocationSize(value.requiredBoardConfirmations) + FfiConverterUInt16.allocationSize(value.maxUserInvoiceCltvDelta) + FfiConverterUInt64.allocationSize(value.minBoardAmountSats) +
|
|
166
|
+
return FfiConverterTypeNetwork.allocationSize(value.network) + FfiConverterString.allocationSize(value.serverPubkey) + FfiConverterUInt64.allocationSize(value.roundIntervalSecs) + FfiConverterUInt32.allocationSize(value.nbRoundNonces) + FfiConverterUInt32.allocationSize(value.vtxoExitDelta) + FfiConverterUInt32.allocationSize(value.vtxoExpiryDelta) + FfiConverterUInt32.allocationSize(value.htlcSendExpiryDelta) + FfiConverterUInt32.allocationSize(value.htlcExpiryDelta) + FfiConverterOptionalUInt64.allocationSize(value.maxVtxoAmountSats) + FfiConverterUInt32.allocationSize(value.requiredBoardConfirmations) + FfiConverterUInt16.allocationSize(value.maxUserInvoiceCltvDelta) + FfiConverterUInt64.allocationSize(value.minBoardAmountSats) + FfiConverterBool.allocationSize(value.lnReceiveAntiDosRequired) + FfiConverterString.allocationSize(value.feeScheduleJson) + FfiConverterUInt16.allocationSize(value.maxVtxoExitDepth);
|
|
348
167
|
}
|
|
349
168
|
}
|
|
350
169
|
return new FFIConverter();
|
|
351
170
|
})();
|
|
352
|
-
|
|
353
|
-
/**
|
|
354
|
-
* Detailed balance breakdown of the wallet
|
|
355
|
-
*/
|
|
356
|
-
|
|
357
171
|
/**
|
|
358
172
|
* Generated factory for {@link Balance} record objects.
|
|
359
173
|
*/
|
|
@@ -431,11 +245,6 @@ const FfiConverterTypeBlockRef = (() => {
|
|
|
431
245
|
}
|
|
432
246
|
return new FFIConverter();
|
|
433
247
|
})();
|
|
434
|
-
|
|
435
|
-
/**
|
|
436
|
-
* Configuration for creating/opening a Bark wallet
|
|
437
|
-
*/
|
|
438
|
-
|
|
439
248
|
/**
|
|
440
249
|
* Generated factory for {@link Config} record objects.
|
|
441
250
|
*/
|
|
@@ -467,8 +276,10 @@ const FfiConverterTypeConfig = (() => {
|
|
|
467
276
|
htlcRecvClaimDelta: FfiConverterOptionalUInt16.read(from),
|
|
468
277
|
fallbackFeeRate: FfiConverterOptionalUInt64.read(from),
|
|
469
278
|
roundTxRequiredConfirmations: FfiConverterOptionalUInt32.read(from),
|
|
470
|
-
|
|
471
|
-
|
|
279
|
+
daemonSyncIntervalSecs: FfiConverterOptionalUInt64.read(from),
|
|
280
|
+
offboardRequiredConfirmations: FfiConverterOptionalUInt32.read(from),
|
|
281
|
+
daemonManualSync: FfiConverterOptionalBool.read(from),
|
|
282
|
+
lightningReceiveClaimRetries: FfiConverterOptionalUInt8.read(from)
|
|
472
283
|
};
|
|
473
284
|
}
|
|
474
285
|
write(value, into) {
|
|
@@ -485,11 +296,13 @@ const FfiConverterTypeConfig = (() => {
|
|
|
485
296
|
FfiConverterOptionalUInt16.write(value.htlcRecvClaimDelta, into);
|
|
486
297
|
FfiConverterOptionalUInt64.write(value.fallbackFeeRate, into);
|
|
487
298
|
FfiConverterOptionalUInt32.write(value.roundTxRequiredConfirmations, into);
|
|
488
|
-
FfiConverterOptionalUInt64.write(value.
|
|
489
|
-
|
|
299
|
+
FfiConverterOptionalUInt64.write(value.daemonSyncIntervalSecs, into);
|
|
300
|
+
FfiConverterOptionalUInt32.write(value.offboardRequiredConfirmations, into);
|
|
301
|
+
FfiConverterOptionalBool.write(value.daemonManualSync, into);
|
|
302
|
+
FfiConverterOptionalUInt8.write(value.lightningReceiveClaimRetries, into);
|
|
490
303
|
}
|
|
491
304
|
allocationSize(value) {
|
|
492
|
-
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) + FfiConverterTypeNetwork.allocationSize(value.network) + FfiConverterOptionalUInt32.allocationSize(value.vtxoRefreshExpiryThreshold) + FfiConverterOptionalUInt16.allocationSize(value.vtxoExitMargin) + FfiConverterOptionalUInt16.allocationSize(value.htlcRecvClaimDelta) + FfiConverterOptionalUInt64.allocationSize(value.fallbackFeeRate) + FfiConverterOptionalUInt32.allocationSize(value.roundTxRequiredConfirmations) + FfiConverterOptionalUInt64.allocationSize(value.
|
|
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) + FfiConverterTypeNetwork.allocationSize(value.network) + FfiConverterOptionalUInt32.allocationSize(value.vtxoRefreshExpiryThreshold) + FfiConverterOptionalUInt16.allocationSize(value.vtxoExitMargin) + FfiConverterOptionalUInt16.allocationSize(value.htlcRecvClaimDelta) + FfiConverterOptionalUInt64.allocationSize(value.fallbackFeeRate) + FfiConverterOptionalUInt32.allocationSize(value.roundTxRequiredConfirmations) + FfiConverterOptionalUInt64.allocationSize(value.daemonSyncIntervalSecs) + FfiConverterOptionalUInt32.allocationSize(value.offboardRequiredConfirmations) + FfiConverterOptionalBool.allocationSize(value.daemonManualSync) + FfiConverterOptionalUInt8.allocationSize(value.lightningReceiveClaimRetries);
|
|
493
306
|
}
|
|
494
307
|
}
|
|
495
308
|
return new FFIConverter();
|
|
@@ -691,7 +504,7 @@ const FfiConverterTypeExitTransactionStatus = (() => {
|
|
|
691
504
|
})();
|
|
692
505
|
|
|
693
506
|
/**
|
|
694
|
-
* A VTXO
|
|
507
|
+
* A VTXO that is being unilaterally exited
|
|
695
508
|
*/
|
|
696
509
|
|
|
697
510
|
/**
|
|
@@ -730,11 +543,6 @@ const FfiConverterTypeExitVtxo = (() => {
|
|
|
730
543
|
}
|
|
731
544
|
return new FFIConverter();
|
|
732
545
|
})();
|
|
733
|
-
|
|
734
|
-
/**
|
|
735
|
-
* Result of a fee estimation
|
|
736
|
-
*/
|
|
737
|
-
|
|
738
546
|
/**
|
|
739
547
|
* Generated factory for {@link FeeEstimate} record objects.
|
|
740
548
|
*/
|
|
@@ -771,11 +579,6 @@ const FfiConverterTypeFeeEstimate = (() => {
|
|
|
771
579
|
}
|
|
772
580
|
return new FFIConverter();
|
|
773
581
|
})();
|
|
774
|
-
|
|
775
|
-
/**
|
|
776
|
-
* Result of creating a BOLT11 invoice
|
|
777
|
-
*/
|
|
778
|
-
|
|
779
582
|
/**
|
|
780
583
|
* Generated factory for {@link LightningInvoice} record objects.
|
|
781
584
|
*/
|
|
@@ -795,24 +598,21 @@ const FfiConverterTypeLightningInvoice = (() => {
|
|
|
795
598
|
read(from) {
|
|
796
599
|
return {
|
|
797
600
|
invoice: FfiConverterString.read(from),
|
|
601
|
+
paymentHash: FfiConverterString.read(from),
|
|
798
602
|
amountSats: FfiConverterUInt64.read(from)
|
|
799
603
|
};
|
|
800
604
|
}
|
|
801
605
|
write(value, into) {
|
|
802
606
|
FfiConverterString.write(value.invoice, into);
|
|
607
|
+
FfiConverterString.write(value.paymentHash, into);
|
|
803
608
|
FfiConverterUInt64.write(value.amountSats, into);
|
|
804
609
|
}
|
|
805
610
|
allocationSize(value) {
|
|
806
|
-
return FfiConverterString.allocationSize(value.invoice) + FfiConverterUInt64.allocationSize(value.amountSats);
|
|
611
|
+
return FfiConverterString.allocationSize(value.invoice) + FfiConverterString.allocationSize(value.paymentHash) + FfiConverterUInt64.allocationSize(value.amountSats);
|
|
807
612
|
}
|
|
808
613
|
}
|
|
809
614
|
return new FFIConverter();
|
|
810
615
|
})();
|
|
811
|
-
|
|
812
|
-
/**
|
|
813
|
-
* Status of a pending Lightning receive
|
|
814
|
-
*/
|
|
815
|
-
|
|
816
616
|
/**
|
|
817
617
|
* Generated factory for {@link LightningReceive} record objects.
|
|
818
618
|
*/
|
|
@@ -832,6 +632,7 @@ const FfiConverterTypeLightningReceive = (() => {
|
|
|
832
632
|
read(from) {
|
|
833
633
|
return {
|
|
834
634
|
paymentHash: FfiConverterString.read(from),
|
|
635
|
+
paymentPreimage: FfiConverterString.read(from),
|
|
835
636
|
invoice: FfiConverterString.read(from),
|
|
836
637
|
amountSats: FfiConverterUInt64.read(from),
|
|
837
638
|
hasHtlcVtxos: FfiConverterBool.read(from),
|
|
@@ -840,22 +641,18 @@ const FfiConverterTypeLightningReceive = (() => {
|
|
|
840
641
|
}
|
|
841
642
|
write(value, into) {
|
|
842
643
|
FfiConverterString.write(value.paymentHash, into);
|
|
644
|
+
FfiConverterString.write(value.paymentPreimage, into);
|
|
843
645
|
FfiConverterString.write(value.invoice, into);
|
|
844
646
|
FfiConverterUInt64.write(value.amountSats, into);
|
|
845
647
|
FfiConverterBool.write(value.hasHtlcVtxos, into);
|
|
846
648
|
FfiConverterBool.write(value.preimageRevealed, into);
|
|
847
649
|
}
|
|
848
650
|
allocationSize(value) {
|
|
849
|
-
return FfiConverterString.allocationSize(value.paymentHash) + FfiConverterString.allocationSize(value.invoice) + FfiConverterUInt64.allocationSize(value.amountSats) + FfiConverterBool.allocationSize(value.hasHtlcVtxos) + FfiConverterBool.allocationSize(value.preimageRevealed);
|
|
651
|
+
return FfiConverterString.allocationSize(value.paymentHash) + FfiConverterString.allocationSize(value.paymentPreimage) + FfiConverterString.allocationSize(value.invoice) + FfiConverterUInt64.allocationSize(value.amountSats) + FfiConverterBool.allocationSize(value.hasHtlcVtxos) + FfiConverterBool.allocationSize(value.preimageRevealed);
|
|
850
652
|
}
|
|
851
653
|
}
|
|
852
654
|
return new FFIConverter();
|
|
853
655
|
})();
|
|
854
|
-
|
|
855
|
-
/**
|
|
856
|
-
* Lightning send payment information
|
|
857
|
-
*/
|
|
858
|
-
|
|
859
656
|
/**
|
|
860
657
|
* Generated factory for {@link LightningSend} record objects.
|
|
861
658
|
*/
|
|
@@ -892,11 +689,6 @@ const FfiConverterTypeLightningSend = (() => {
|
|
|
892
689
|
}
|
|
893
690
|
return new FFIConverter();
|
|
894
691
|
})();
|
|
895
|
-
|
|
896
|
-
/**
|
|
897
|
-
* Wallet movement/transaction record
|
|
898
|
-
*/
|
|
899
|
-
|
|
900
692
|
/**
|
|
901
693
|
* Generated factory for {@link Movement} record objects.
|
|
902
694
|
*/
|
|
@@ -957,11 +749,6 @@ const FfiConverterTypeMovement = (() => {
|
|
|
957
749
|
}
|
|
958
750
|
return new FFIConverter();
|
|
959
751
|
})();
|
|
960
|
-
|
|
961
|
-
/**
|
|
962
|
-
* Result of an offboard operation
|
|
963
|
-
*/
|
|
964
|
-
|
|
965
752
|
/**
|
|
966
753
|
* Generated factory for {@link OffboardResult} record objects.
|
|
967
754
|
*/
|
|
@@ -992,11 +779,6 @@ const FfiConverterTypeOffboardResult = (() => {
|
|
|
992
779
|
}
|
|
993
780
|
return new FFIConverter();
|
|
994
781
|
})();
|
|
995
|
-
|
|
996
|
-
/**
|
|
997
|
-
* Onchain Bitcoin wallet balance
|
|
998
|
-
*/
|
|
999
|
-
|
|
1000
782
|
/**
|
|
1001
783
|
* Generated factory for {@link OnchainBalance} record objects.
|
|
1002
784
|
*/
|
|
@@ -1068,11 +850,6 @@ const FfiConverterTypeOutPoint = (() => {
|
|
|
1068
850
|
}
|
|
1069
851
|
return new FFIConverter();
|
|
1070
852
|
})();
|
|
1071
|
-
|
|
1072
|
-
/**
|
|
1073
|
-
* Pending board transaction information
|
|
1074
|
-
*/
|
|
1075
|
-
|
|
1076
853
|
/**
|
|
1077
854
|
* Generated factory for {@link PendingBoard} record objects.
|
|
1078
855
|
*/
|
|
@@ -1144,11 +921,6 @@ const FfiConverterTypeRoundState = (() => {
|
|
|
1144
921
|
}
|
|
1145
922
|
return new FFIConverter();
|
|
1146
923
|
})();
|
|
1147
|
-
|
|
1148
|
-
/**
|
|
1149
|
-
* Simplified view of a VTXO
|
|
1150
|
-
*/
|
|
1151
|
-
|
|
1152
924
|
/**
|
|
1153
925
|
* Generated factory for {@link Vtxo} record objects.
|
|
1154
926
|
*/
|
|
@@ -1171,7 +943,9 @@ const FfiConverterTypeVtxo = (() => {
|
|
|
1171
943
|
amountSats: FfiConverterUInt64.read(from),
|
|
1172
944
|
expiryHeight: FfiConverterUInt32.read(from),
|
|
1173
945
|
kind: FfiConverterString.read(from),
|
|
1174
|
-
state: FfiConverterString.read(from)
|
|
946
|
+
state: FfiConverterString.read(from),
|
|
947
|
+
exitDepth: FfiConverterUInt32.read(from),
|
|
948
|
+
exitTxWeightWu: FfiConverterUInt64.read(from)
|
|
1175
949
|
};
|
|
1176
950
|
}
|
|
1177
951
|
write(value, into) {
|
|
@@ -1180,18 +954,15 @@ const FfiConverterTypeVtxo = (() => {
|
|
|
1180
954
|
FfiConverterUInt32.write(value.expiryHeight, into);
|
|
1181
955
|
FfiConverterString.write(value.kind, into);
|
|
1182
956
|
FfiConverterString.write(value.state, into);
|
|
957
|
+
FfiConverterUInt32.write(value.exitDepth, into);
|
|
958
|
+
FfiConverterUInt64.write(value.exitTxWeightWu, into);
|
|
1183
959
|
}
|
|
1184
960
|
allocationSize(value) {
|
|
1185
|
-
return FfiConverterString.allocationSize(value.id) + FfiConverterUInt64.allocationSize(value.amountSats) + FfiConverterUInt32.allocationSize(value.expiryHeight) + FfiConverterString.allocationSize(value.kind) + FfiConverterString.allocationSize(value.state);
|
|
961
|
+
return FfiConverterString.allocationSize(value.id) + FfiConverterUInt64.allocationSize(value.amountSats) + FfiConverterUInt32.allocationSize(value.expiryHeight) + FfiConverterString.allocationSize(value.kind) + FfiConverterString.allocationSize(value.state) + FfiConverterUInt32.allocationSize(value.exitDepth) + FfiConverterUInt64.allocationSize(value.exitTxWeightWu);
|
|
1186
962
|
}
|
|
1187
963
|
}
|
|
1188
964
|
return new FFIConverter();
|
|
1189
965
|
})();
|
|
1190
|
-
|
|
1191
|
-
/**
|
|
1192
|
-
* Read-only properties of the wallet
|
|
1193
|
-
*/
|
|
1194
|
-
|
|
1195
966
|
/**
|
|
1196
967
|
* Generated factory for {@link WalletProperties} record objects.
|
|
1197
968
|
*/
|
|
@@ -1252,7 +1023,7 @@ export let BarkError_Tags = /*#__PURE__*/function (BarkError_Tags) {
|
|
|
1252
1023
|
return BarkError_Tags;
|
|
1253
1024
|
}({});
|
|
1254
1025
|
/**
|
|
1255
|
-
* Error types that can occur when using the Bark wallet
|
|
1026
|
+
* Error types that can occur when using the Bark wallet FFI
|
|
1256
1027
|
*/
|
|
1257
1028
|
export const BarkError = (() => {
|
|
1258
1029
|
class Network_ extends UniffiError {
|
|
@@ -1614,7 +1385,7 @@ export const BarkError = (() => {
|
|
|
1614
1385
|
})();
|
|
1615
1386
|
|
|
1616
1387
|
/**
|
|
1617
|
-
* Error types that can occur when using the Bark wallet
|
|
1388
|
+
* Error types that can occur when using the Bark wallet FFI
|
|
1618
1389
|
*/
|
|
1619
1390
|
|
|
1620
1391
|
// FfiConverter for enum BarkError
|
|
@@ -1897,7 +1668,7 @@ const FfiConverterTypeBarkError = (() => {
|
|
|
1897
1668
|
})();
|
|
1898
1669
|
|
|
1899
1670
|
/**
|
|
1900
|
-
* Severity of a log record
|
|
1671
|
+
* Severity of a log record.
|
|
1901
1672
|
*/
|
|
1902
1673
|
export let LogLevel = /*#__PURE__*/function (LogLevel) {
|
|
1903
1674
|
LogLevel[LogLevel["Error"] = 0] = "Error";
|
|
@@ -1946,10 +1717,6 @@ const FfiConverterTypeLogLevel = (() => {
|
|
|
1946
1717
|
}
|
|
1947
1718
|
return new FFIConverter();
|
|
1948
1719
|
})();
|
|
1949
|
-
|
|
1950
|
-
/**
|
|
1951
|
-
* Bitcoin network types
|
|
1952
|
-
*/
|
|
1953
1720
|
export let Network = /*#__PURE__*/function (Network) {
|
|
1954
1721
|
Network[Network["Bitcoin"] = 0] = "Bitcoin";
|
|
1955
1722
|
Network[Network["Testnet"] = 1] = "Testnet";
|
|
@@ -2047,7 +1814,7 @@ export const WalletNotification = (() => {
|
|
|
2047
1814
|
}
|
|
2048
1815
|
}
|
|
2049
1816
|
/**
|
|
2050
|
-
* The notification channel is lagging (
|
|
1817
|
+
* The notification channel is lagging (notifications were dropped)
|
|
2051
1818
|
*/
|
|
2052
1819
|
class ChannelLagging_ extends UniffiEnum {
|
|
2053
1820
|
/**
|
|
@@ -2156,106 +1923,61 @@ const FfiConverterTypeWalletNotification = (() => {
|
|
|
2156
1923
|
})();
|
|
2157
1924
|
|
|
2158
1925
|
/**
|
|
2159
|
-
*
|
|
2160
|
-
*
|
|
2161
|
-
* Obtain via `Wallet.notifications()`. Call `next_notification()` in a loop
|
|
2162
|
-
* to receive events. Call `cancel_next_notification_wait()` to unblock a
|
|
2163
|
-
* pending wait without destroying the underlying stream.
|
|
1926
|
+
* Foreign-implemented sink for log records.
|
|
2164
1927
|
*
|
|
2165
|
-
*
|
|
2166
|
-
*
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
/**
|
|
2170
|
-
* @deprecated Use `NotificationHolderLike` instead.
|
|
1928
|
+
* IMPORTANT: implementations must not call back into bark APIs that
|
|
1929
|
+
* themselves emit log records, or the foreign runtime may stack-overflow
|
|
1930
|
+
* or deadlock.
|
|
2171
1931
|
*/
|
|
2172
1932
|
|
|
2173
1933
|
/**
|
|
2174
|
-
*
|
|
2175
|
-
*
|
|
2176
|
-
* Obtain via `Wallet.notifications()`. Call `next_notification()` in a loop
|
|
2177
|
-
* to receive events. Call `cancel_next_notification_wait()` to unblock a
|
|
2178
|
-
* pending wait without destroying the underlying stream.
|
|
1934
|
+
* Foreign-implemented sink for log records.
|
|
2179
1935
|
*
|
|
2180
|
-
*
|
|
2181
|
-
*
|
|
1936
|
+
* IMPORTANT: implementations must not call back into bark APIs that
|
|
1937
|
+
* themselves emit log records, or the foreign runtime may stack-overflow
|
|
1938
|
+
* or deadlock.
|
|
2182
1939
|
*/
|
|
2183
|
-
export class
|
|
2184
|
-
[uniffiTypeNameSymbol] = "
|
|
1940
|
+
export class BarkLoggerImpl extends UniffiAbstractObject {
|
|
1941
|
+
[uniffiTypeNameSymbol] = "BarkLoggerImpl";
|
|
2185
1942
|
// No primary constructor declared for this class.
|
|
2186
1943
|
constructor(pointer) {
|
|
2187
1944
|
super();
|
|
2188
1945
|
this[pointerLiteralSymbol] = pointer;
|
|
2189
|
-
this[destructorGuardSymbol] =
|
|
1946
|
+
this[destructorGuardSymbol] = uniffiTypeBarkLoggerImplObjectFactory.bless(pointer);
|
|
2190
1947
|
}
|
|
2191
|
-
|
|
2192
|
-
/**
|
|
2193
|
-
* Cancel the currently pending `next_notification()` wait.
|
|
2194
|
-
*
|
|
2195
|
-
* Causes a blocked `next_notification()` to return null.
|
|
2196
|
-
* Has no effect when no wait is active.
|
|
2197
|
-
* Does NOT destroy the underlying stream; subsequent calls to
|
|
2198
|
-
* `next_notification()` will still work.
|
|
2199
|
-
*/
|
|
2200
|
-
cancelNextNotificationWait() {
|
|
1948
|
+
log(level, target, message) {
|
|
2201
1949
|
uniffiCaller.rustCall(/*caller:*/callStatus => {
|
|
2202
|
-
nativeModule().
|
|
1950
|
+
nativeModule().ubrn_uniffi_bark_ffi_fn_method_barklogger_log(uniffiTypeBarkLoggerImplObjectFactory.clonePointer(this), FfiConverterTypeLogLevel.lower(level), FfiConverterString.lower(target), FfiConverterString.lower(message), callStatus);
|
|
2203
1951
|
}, /*liftString:*/FfiConverterString.lift);
|
|
2204
1952
|
}
|
|
2205
1953
|
|
|
2206
|
-
/**
|
|
2207
|
-
* Wait for the next notification.
|
|
2208
|
-
*
|
|
2209
|
-
* Returns null if the wait was cancelled via `cancel_next_notification_wait()`
|
|
2210
|
-
* or if the wallet's notification source was shut down permanently.
|
|
2211
|
-
*
|
|
2212
|
-
* After a cancellation this method can be called again normally — the
|
|
2213
|
-
* underlying stream is preserved and a fresh cancel channel is set up on
|
|
2214
|
-
* every entry.
|
|
2215
|
-
*
|
|
2216
|
-
* Throws `BarkError.Internal` if called concurrently on the same holder.
|
|
2217
|
-
*/
|
|
2218
|
-
async nextNotification(asyncOpts_) /*throws*/{
|
|
2219
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2220
|
-
try {
|
|
2221
|
-
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2222
|
-
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_notificationholder_next_notification(uniffiTypeNotificationHolderObjectFactory.clonePointer(this));
|
|
2223
|
-
}, /*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:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2224
|
-
} catch (__error) {
|
|
2225
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
2226
|
-
__error.stack = __stack;
|
|
2227
|
-
}
|
|
2228
|
-
throw __error;
|
|
2229
|
-
}
|
|
2230
|
-
}
|
|
2231
|
-
|
|
2232
1954
|
/**
|
|
2233
1955
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2234
1956
|
*/
|
|
2235
1957
|
uniffiDestroy() {
|
|
2236
1958
|
const ptr = this[destructorGuardSymbol];
|
|
2237
1959
|
if (ptr !== undefined) {
|
|
2238
|
-
const pointer =
|
|
2239
|
-
|
|
2240
|
-
|
|
1960
|
+
const pointer = uniffiTypeBarkLoggerImplObjectFactory.pointer(this);
|
|
1961
|
+
uniffiTypeBarkLoggerImplObjectFactory.freePointer(pointer);
|
|
1962
|
+
uniffiTypeBarkLoggerImplObjectFactory.unbless(ptr);
|
|
2241
1963
|
delete this[destructorGuardSymbol];
|
|
2242
1964
|
}
|
|
2243
1965
|
}
|
|
2244
1966
|
static instanceOf(obj) {
|
|
2245
|
-
return
|
|
1967
|
+
return uniffiTypeBarkLoggerImplObjectFactory.isConcreteType(obj);
|
|
2246
1968
|
}
|
|
2247
1969
|
}
|
|
2248
|
-
const
|
|
1970
|
+
const uniffiTypeBarkLoggerImplObjectFactory = (() => {
|
|
2249
1971
|
return {
|
|
2250
1972
|
create(pointer) {
|
|
2251
|
-
const instance = Object.create(
|
|
1973
|
+
const instance = Object.create(BarkLoggerImpl.prototype);
|
|
2252
1974
|
instance[pointerLiteralSymbol] = pointer;
|
|
2253
1975
|
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
2254
|
-
instance[uniffiTypeNameSymbol] = "
|
|
1976
|
+
instance[uniffiTypeNameSymbol] = "BarkLoggerImpl";
|
|
2255
1977
|
return instance;
|
|
2256
1978
|
},
|
|
2257
1979
|
bless(p) {
|
|
2258
|
-
return uniffiCaller.rustCall(/*caller:*/status => nativeModule().
|
|
1980
|
+
return uniffiCaller.rustCall(/*caller:*/status => nativeModule().ubrn_uniffi_internal_fn_method_barklogger_ffi__bless_pointer(p, status), /*liftString:*/FfiConverterString.lift);
|
|
2259
1981
|
},
|
|
2260
1982
|
unbless(ptr) {
|
|
2261
1983
|
ptr.markDestroyed();
|
|
@@ -2268,148 +1990,198 @@ const uniffiTypeNotificationHolderObjectFactory = (() => {
|
|
|
2268
1990
|
},
|
|
2269
1991
|
clonePointer(obj) {
|
|
2270
1992
|
const pointer = this.pointer(obj);
|
|
2271
|
-
return uniffiCaller.rustCall(/*caller:*/callStatus => nativeModule().
|
|
1993
|
+
return uniffiCaller.rustCall(/*caller:*/callStatus => nativeModule().ubrn_uniffi_bark_ffi_fn_clone_barklogger(pointer, callStatus), /*liftString:*/FfiConverterString.lift);
|
|
2272
1994
|
},
|
|
2273
1995
|
freePointer(pointer) {
|
|
2274
|
-
uniffiCaller.rustCall(/*caller:*/callStatus => nativeModule().
|
|
1996
|
+
uniffiCaller.rustCall(/*caller:*/callStatus => nativeModule().ubrn_uniffi_bark_ffi_fn_free_barklogger(pointer, callStatus), /*liftString:*/FfiConverterString.lift);
|
|
2275
1997
|
},
|
|
2276
1998
|
isConcreteType(obj) {
|
|
2277
|
-
return obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === "
|
|
1999
|
+
return obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === "BarkLoggerImpl";
|
|
2278
2000
|
}
|
|
2279
2001
|
};
|
|
2280
2002
|
})();
|
|
2281
|
-
// FfiConverter for
|
|
2282
|
-
const
|
|
2003
|
+
// FfiConverter for BarkLogger
|
|
2004
|
+
const FfiConverterTypeBarkLogger = new FfiConverterObjectWithCallbacks(uniffiTypeBarkLoggerImplObjectFactory);
|
|
2283
2005
|
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2006
|
+
// Add a vtavble for the callbacks that go in BarkLogger.
|
|
2007
|
+
|
|
2008
|
+
// Put the implementation in a struct so we don't pollute the top-level namespace
|
|
2009
|
+
const uniffiCallbackInterfaceBarkLogger = {
|
|
2010
|
+
// Create the VTable using a series of closures.
|
|
2011
|
+
// ts automatically converts these into C callback functions.
|
|
2012
|
+
vtable: {
|
|
2013
|
+
log: (uniffiHandle, level, target, message) => {
|
|
2014
|
+
const uniffiMakeCall = () => {
|
|
2015
|
+
const jsCallback = FfiConverterTypeBarkLogger.lift(uniffiHandle);
|
|
2016
|
+
return jsCallback.log(FfiConverterTypeLogLevel.lift(level), FfiConverterString.lift(target), FfiConverterString.lift(message));
|
|
2017
|
+
};
|
|
2018
|
+
const uniffiResult = UniffiResult.ready();
|
|
2019
|
+
const uniffiHandleSuccess = obj => {};
|
|
2020
|
+
const uniffiHandleError = (code, errBuf) => {
|
|
2021
|
+
UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
2022
|
+
};
|
|
2023
|
+
uniffiTraitInterfaceCall(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*lowerString:*/FfiConverterString.lower);
|
|
2024
|
+
return uniffiResult;
|
|
2025
|
+
},
|
|
2026
|
+
uniffiFree: uniffiHandle => {
|
|
2027
|
+
// BarkLogger: this will throw a stale handle error if the handle isn't found.
|
|
2028
|
+
FfiConverterTypeBarkLogger.drop(uniffiHandle);
|
|
2029
|
+
},
|
|
2030
|
+
uniffiClone: uniffiHandle => {
|
|
2031
|
+
return FfiConverterTypeBarkLogger.clone(uniffiHandle);
|
|
2032
|
+
}
|
|
2033
|
+
},
|
|
2034
|
+
register: () => {
|
|
2035
|
+
nativeModule().ubrn_uniffi_bark_ffi_fn_init_callback_vtable_barklogger(uniffiCallbackInterfaceBarkLogger.vtable);
|
|
2036
|
+
}
|
|
2037
|
+
};
|
|
2291
2038
|
|
|
2292
2039
|
/**
|
|
2293
|
-
*
|
|
2040
|
+
* Callback interface for custom onchain wallet implementations
|
|
2041
|
+
*
|
|
2042
|
+
* Foreign languages implement this trait to provide their own wallet functionality.
|
|
2294
2043
|
*/
|
|
2295
2044
|
|
|
2296
2045
|
/**
|
|
2297
|
-
*
|
|
2046
|
+
* Callback interface for custom onchain wallet implementations
|
|
2298
2047
|
*
|
|
2299
|
-
*
|
|
2300
|
-
* - Default: BDK-based wallet (built-in)
|
|
2301
|
-
* - Custom: Your own wallet implementation via callbacks
|
|
2048
|
+
* Foreign languages implement this trait to provide their own wallet functionality.
|
|
2302
2049
|
*/
|
|
2303
|
-
export class
|
|
2304
|
-
[uniffiTypeNameSymbol] = "
|
|
2050
|
+
export class CustomOnchainWalletCallbacksImpl extends UniffiAbstractObject {
|
|
2051
|
+
[uniffiTypeNameSymbol] = "CustomOnchainWalletCallbacksImpl";
|
|
2305
2052
|
// No primary constructor declared for this class.
|
|
2306
2053
|
constructor(pointer) {
|
|
2307
2054
|
super();
|
|
2308
2055
|
this[pointerLiteralSymbol] = pointer;
|
|
2309
|
-
this[destructorGuardSymbol] =
|
|
2056
|
+
this[destructorGuardSymbol] = uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.bless(pointer);
|
|
2057
|
+
}
|
|
2058
|
+
|
|
2059
|
+
/**
|
|
2060
|
+
* Get the wallet balance in satoshis
|
|
2061
|
+
*/
|
|
2062
|
+
getBalance() /*throws*/{
|
|
2063
|
+
return FfiConverterUInt64.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
2064
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_balance(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), callStatus);
|
|
2065
|
+
}, /*liftString:*/FfiConverterString.lift));
|
|
2310
2066
|
}
|
|
2311
2067
|
|
|
2312
2068
|
/**
|
|
2313
|
-
*
|
|
2069
|
+
* Prepare a transaction to send to given destinations
|
|
2070
|
+
*
|
|
2071
|
+
* # Arguments
|
|
2072
|
+
* * `destinations` - List of destinations with addresses and amounts
|
|
2073
|
+
* * `fee_rate_sat_per_vb` - Fee rate in sats per vbyte
|
|
2314
2074
|
*
|
|
2315
|
-
*
|
|
2316
|
-
*
|
|
2317
|
-
* Your implementation must handle all wallet operations via the callbacks interface.
|
|
2075
|
+
* # Returns
|
|
2076
|
+
* Base64-encoded PSBT
|
|
2318
2077
|
*/
|
|
2319
|
-
|
|
2320
|
-
return
|
|
2321
|
-
return nativeModule().
|
|
2078
|
+
prepareTx(destinations, feeRateSatPerVb) /*throws*/{
|
|
2079
|
+
return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
2080
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_prepare_tx(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterArrayTypeDestination.lower(destinations), FfiConverterUInt64.lower(feeRateSatPerVb), callStatus);
|
|
2322
2081
|
}, /*liftString:*/FfiConverterString.lift));
|
|
2323
2082
|
}
|
|
2324
2083
|
|
|
2325
2084
|
/**
|
|
2326
|
-
*
|
|
2085
|
+
* Prepare a transaction that drains the wallet to a single address
|
|
2327
2086
|
*
|
|
2328
|
-
*
|
|
2329
|
-
*
|
|
2087
|
+
* # Arguments
|
|
2088
|
+
* * `address` - Bitcoin address to drain to
|
|
2089
|
+
* * `fee_rate_sat_per_vb` - Fee rate in sats per vbyte
|
|
2090
|
+
*
|
|
2091
|
+
* # Returns
|
|
2092
|
+
* Base64-encoded PSBT
|
|
2330
2093
|
*/
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_onchainwallet_default(FfiConverterString.lower(mnemonic), FfiConverterTypeConfig.lower(config), FfiConverterString.lower(datadir));
|
|
2336
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterTypeOnchainWallet.lift.bind(FfiConverterTypeOnchainWallet), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2337
|
-
} catch (__error) {
|
|
2338
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
2339
|
-
__error.stack = __stack;
|
|
2340
|
-
}
|
|
2341
|
-
throw __error;
|
|
2342
|
-
}
|
|
2094
|
+
prepareDrainTx(address, feeRateSatPerVb) /*throws*/{
|
|
2095
|
+
return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
2096
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_prepare_drain_tx(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterString.lower(address), FfiConverterUInt64.lower(feeRateSatPerVb), callStatus);
|
|
2097
|
+
}, /*liftString:*/FfiConverterString.lift));
|
|
2343
2098
|
}
|
|
2344
2099
|
|
|
2345
2100
|
/**
|
|
2346
|
-
*
|
|
2101
|
+
* Sign and finalize a PSBT
|
|
2102
|
+
*
|
|
2103
|
+
* # Arguments
|
|
2104
|
+
* * `psbt_base64` - Base64-encoded PSBT
|
|
2105
|
+
*
|
|
2106
|
+
* # Returns
|
|
2107
|
+
* Base64-encoded fully signed PSBT (all witnesses filled in)
|
|
2347
2108
|
*/
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_onchainwallet_balance(uniffiTypeOnchainWalletObjectFactory.clonePointer(this));
|
|
2353
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeOnchainBalance.lift.bind(FfiConverterTypeOnchainBalance), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2354
|
-
} catch (__error) {
|
|
2355
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
2356
|
-
__error.stack = __stack;
|
|
2357
|
-
}
|
|
2358
|
-
throw __error;
|
|
2359
|
-
}
|
|
2109
|
+
finishPsbt(psbtBase64) /*throws*/{
|
|
2110
|
+
return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
2111
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_finish_psbt(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterString.lower(psbtBase64), callStatus);
|
|
2112
|
+
}, /*liftString:*/FfiConverterString.lift));
|
|
2360
2113
|
}
|
|
2361
2114
|
|
|
2362
2115
|
/**
|
|
2363
|
-
*
|
|
2116
|
+
* Get a wallet transaction by txid
|
|
2117
|
+
*
|
|
2118
|
+
* # Arguments
|
|
2119
|
+
* * `txid` - Transaction ID as hex string
|
|
2120
|
+
*
|
|
2121
|
+
* # Returns
|
|
2122
|
+
* Hex-encoded transaction, or null if not found
|
|
2364
2123
|
*/
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_onchainwallet_new_address(uniffiTypeOnchainWalletObjectFactory.clonePointer(this));
|
|
2370
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2371
|
-
} catch (__error) {
|
|
2372
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
2373
|
-
__error.stack = __stack;
|
|
2374
|
-
}
|
|
2375
|
-
throw __error;
|
|
2376
|
-
}
|
|
2124
|
+
getWalletTx(txid) /*throws*/{
|
|
2125
|
+
return FfiConverterOptionalString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
2126
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_wallet_tx(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterString.lower(txid), callStatus);
|
|
2127
|
+
}, /*liftString:*/FfiConverterString.lift));
|
|
2377
2128
|
}
|
|
2378
2129
|
|
|
2379
2130
|
/**
|
|
2380
|
-
*
|
|
2381
|
-
*
|
|
2131
|
+
* Get the block hash where a transaction was confirmed
|
|
2132
|
+
*
|
|
2133
|
+
* # Arguments
|
|
2134
|
+
* * `txid` - Transaction ID as hex string
|
|
2135
|
+
*
|
|
2136
|
+
* # Returns
|
|
2137
|
+
* Block reference with height and hash, or null if unconfirmed
|
|
2382
2138
|
*/
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_onchainwallet_send(uniffiTypeOnchainWalletObjectFactory.clonePointer(this), FfiConverterString.lower(address), FfiConverterUInt64.lower(amountSats), FfiConverterUInt64.lower(feeRateSatPerVb));
|
|
2388
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2389
|
-
} catch (__error) {
|
|
2390
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
2391
|
-
__error.stack = __stack;
|
|
2392
|
-
}
|
|
2393
|
-
throw __error;
|
|
2394
|
-
}
|
|
2139
|
+
getWalletTxConfirmedBlock(txid) /*throws*/{
|
|
2140
|
+
return FfiConverterOptionalTypeBlockRef.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
2141
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterString.lower(txid), callStatus);
|
|
2142
|
+
}, /*liftString:*/FfiConverterString.lift));
|
|
2395
2143
|
}
|
|
2396
2144
|
|
|
2397
2145
|
/**
|
|
2398
|
-
*
|
|
2399
|
-
*
|
|
2146
|
+
* Find transaction that spends a given output
|
|
2147
|
+
*
|
|
2148
|
+
* # Arguments
|
|
2149
|
+
* * `outpoint` - Transaction outpoint to check
|
|
2150
|
+
*
|
|
2151
|
+
* # Returns
|
|
2152
|
+
* Hex-encoded spending transaction, or null if unspent
|
|
2400
2153
|
*/
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2154
|
+
getSpendingTx(outpoint) /*throws*/{
|
|
2155
|
+
return FfiConverterOptionalString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
2156
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_spending_tx(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterTypeOutPoint.lower(outpoint), callStatus);
|
|
2157
|
+
}, /*liftString:*/FfiConverterString.lift));
|
|
2158
|
+
}
|
|
2159
|
+
|
|
2160
|
+
/**
|
|
2161
|
+
* Create a signed P2A CPFP transaction
|
|
2162
|
+
*
|
|
2163
|
+
* # Arguments
|
|
2164
|
+
* * `params` - CPFP transaction parameters
|
|
2165
|
+
*
|
|
2166
|
+
* # Returns
|
|
2167
|
+
* Hex-encoded signed CPFP transaction
|
|
2168
|
+
*/
|
|
2169
|
+
makeSignedP2aCpfp(params) /*throws*/{
|
|
2170
|
+
return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
2171
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_make_signed_p2a_cpfp(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterTypeCpfpParams.lower(params), callStatus);
|
|
2172
|
+
}, /*liftString:*/FfiConverterString.lift));
|
|
2173
|
+
}
|
|
2174
|
+
|
|
2175
|
+
/**
|
|
2176
|
+
* Store a signed P2A CPFP transaction in the wallet
|
|
2177
|
+
*
|
|
2178
|
+
* # Arguments
|
|
2179
|
+
* * `tx_hex` - Hex-encoded transaction
|
|
2180
|
+
*/
|
|
2181
|
+
storeSignedP2aCpfp(txHex) /*throws*/{
|
|
2182
|
+
uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
2183
|
+
nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_store_signed_p2a_cpfp(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterString.lower(txHex), callStatus);
|
|
2184
|
+
}, /*liftString:*/FfiConverterString.lift);
|
|
2413
2185
|
}
|
|
2414
2186
|
|
|
2415
2187
|
/**
|
|
@@ -2418,27 +2190,27 @@ export class OnchainWallet extends UniffiAbstractObject {
|
|
|
2418
2190
|
uniffiDestroy() {
|
|
2419
2191
|
const ptr = this[destructorGuardSymbol];
|
|
2420
2192
|
if (ptr !== undefined) {
|
|
2421
|
-
const pointer =
|
|
2422
|
-
|
|
2423
|
-
|
|
2193
|
+
const pointer = uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.pointer(this);
|
|
2194
|
+
uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.freePointer(pointer);
|
|
2195
|
+
uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.unbless(ptr);
|
|
2424
2196
|
delete this[destructorGuardSymbol];
|
|
2425
2197
|
}
|
|
2426
2198
|
}
|
|
2427
2199
|
static instanceOf(obj) {
|
|
2428
|
-
return
|
|
2200
|
+
return uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.isConcreteType(obj);
|
|
2429
2201
|
}
|
|
2430
2202
|
}
|
|
2431
|
-
const
|
|
2203
|
+
const uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory = (() => {
|
|
2432
2204
|
return {
|
|
2433
2205
|
create(pointer) {
|
|
2434
|
-
const instance = Object.create(
|
|
2206
|
+
const instance = Object.create(CustomOnchainWalletCallbacksImpl.prototype);
|
|
2435
2207
|
instance[pointerLiteralSymbol] = pointer;
|
|
2436
2208
|
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
2437
|
-
instance[uniffiTypeNameSymbol] = "
|
|
2209
|
+
instance[uniffiTypeNameSymbol] = "CustomOnchainWalletCallbacksImpl";
|
|
2438
2210
|
return instance;
|
|
2439
2211
|
},
|
|
2440
2212
|
bless(p) {
|
|
2441
|
-
return uniffiCaller.rustCall(/*caller:*/status => nativeModule().
|
|
2213
|
+
return uniffiCaller.rustCall(/*caller:*/status => nativeModule().ubrn_uniffi_internal_fn_method_customonchainwalletcallbacks_ffi__bless_pointer(p, status), /*liftString:*/FfiConverterString.lift);
|
|
2442
2214
|
},
|
|
2443
2215
|
unbless(ptr) {
|
|
2444
2216
|
ptr.markDestroyed();
|
|
@@ -2451,49 +2223,404 @@ const uniffiTypeOnchainWalletObjectFactory = (() => {
|
|
|
2451
2223
|
},
|
|
2452
2224
|
clonePointer(obj) {
|
|
2453
2225
|
const pointer = this.pointer(obj);
|
|
2454
|
-
return uniffiCaller.rustCall(/*caller:*/callStatus => nativeModule().
|
|
2226
|
+
return uniffiCaller.rustCall(/*caller:*/callStatus => nativeModule().ubrn_uniffi_bark_ffi_fn_clone_customonchainwalletcallbacks(pointer, callStatus), /*liftString:*/FfiConverterString.lift);
|
|
2455
2227
|
},
|
|
2456
2228
|
freePointer(pointer) {
|
|
2457
|
-
uniffiCaller.rustCall(/*caller:*/callStatus => nativeModule().
|
|
2229
|
+
uniffiCaller.rustCall(/*caller:*/callStatus => nativeModule().ubrn_uniffi_bark_ffi_fn_free_customonchainwalletcallbacks(pointer, callStatus), /*liftString:*/FfiConverterString.lift);
|
|
2458
2230
|
},
|
|
2459
2231
|
isConcreteType(obj) {
|
|
2460
|
-
return obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === "
|
|
2232
|
+
return obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === "CustomOnchainWalletCallbacksImpl";
|
|
2461
2233
|
}
|
|
2462
2234
|
};
|
|
2463
2235
|
})();
|
|
2464
|
-
// FfiConverter for
|
|
2465
|
-
const
|
|
2466
|
-
|
|
2467
|
-
/**
|
|
2468
|
-
* The main Bark wallet interface for Ark operations
|
|
2469
|
-
*/
|
|
2470
|
-
|
|
2471
|
-
/**
|
|
2472
|
-
* @deprecated Use `WalletLike` instead.
|
|
2473
|
-
*/
|
|
2236
|
+
// FfiConverter for CustomOnchainWalletCallbacks
|
|
2237
|
+
const FfiConverterTypeCustomOnchainWalletCallbacks = new FfiConverterObjectWithCallbacks(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory);
|
|
2474
2238
|
|
|
2475
|
-
|
|
2476
|
-
* The main Bark wallet interface for Ark operations
|
|
2477
|
-
*/
|
|
2478
|
-
export class Wallet extends UniffiAbstractObject {
|
|
2479
|
-
[uniffiTypeNameSymbol] = "Wallet";
|
|
2480
|
-
// No primary constructor declared for this class.
|
|
2481
|
-
constructor(pointer) {
|
|
2482
|
-
super();
|
|
2483
|
-
this[pointerLiteralSymbol] = pointer;
|
|
2484
|
-
this[destructorGuardSymbol] = uniffiTypeWalletObjectFactory.bless(pointer);
|
|
2485
|
-
}
|
|
2239
|
+
// Add a vtavble for the callbacks that go in CustomOnchainWalletCallbacks.
|
|
2486
2240
|
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2241
|
+
// Put the implementation in a struct so we don't pollute the top-level namespace
|
|
2242
|
+
const uniffiCallbackInterfaceCustomOnchainWalletCallbacks = {
|
|
2243
|
+
// Create the VTable using a series of closures.
|
|
2244
|
+
// ts automatically converts these into C callback functions.
|
|
2245
|
+
vtable: {
|
|
2246
|
+
getBalance: uniffiHandle => {
|
|
2247
|
+
const uniffiMakeCall = () => {
|
|
2248
|
+
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
2249
|
+
return jsCallback.getBalance();
|
|
2250
|
+
};
|
|
2251
|
+
const uniffiResult = UniffiResult.ready();
|
|
2252
|
+
const uniffiHandleSuccess = obj => {
|
|
2253
|
+
UniffiResult.writeSuccess(uniffiResult, FfiConverterUInt64.lower(obj));
|
|
2254
|
+
};
|
|
2255
|
+
const uniffiHandleError = (code, errBuf) => {
|
|
2256
|
+
UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
2257
|
+
};
|
|
2258
|
+
uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
|
|
2259
|
+
return uniffiResult;
|
|
2260
|
+
},
|
|
2261
|
+
prepareTx: (uniffiHandle, destinations, feeRateSatPerVb) => {
|
|
2262
|
+
const uniffiMakeCall = () => {
|
|
2263
|
+
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
2264
|
+
return jsCallback.prepareTx(FfiConverterArrayTypeDestination.lift(destinations), FfiConverterUInt64.lift(feeRateSatPerVb));
|
|
2265
|
+
};
|
|
2266
|
+
const uniffiResult = UniffiResult.ready();
|
|
2267
|
+
const uniffiHandleSuccess = obj => {
|
|
2268
|
+
UniffiResult.writeSuccess(uniffiResult, FfiConverterString.lower(obj));
|
|
2269
|
+
};
|
|
2270
|
+
const uniffiHandleError = (code, errBuf) => {
|
|
2271
|
+
UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
2272
|
+
};
|
|
2273
|
+
uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
|
|
2274
|
+
return uniffiResult;
|
|
2275
|
+
},
|
|
2276
|
+
prepareDrainTx: (uniffiHandle, address, feeRateSatPerVb) => {
|
|
2277
|
+
const uniffiMakeCall = () => {
|
|
2278
|
+
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
2279
|
+
return jsCallback.prepareDrainTx(FfiConverterString.lift(address), FfiConverterUInt64.lift(feeRateSatPerVb));
|
|
2280
|
+
};
|
|
2281
|
+
const uniffiResult = UniffiResult.ready();
|
|
2282
|
+
const uniffiHandleSuccess = obj => {
|
|
2283
|
+
UniffiResult.writeSuccess(uniffiResult, FfiConverterString.lower(obj));
|
|
2284
|
+
};
|
|
2285
|
+
const uniffiHandleError = (code, errBuf) => {
|
|
2286
|
+
UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
2287
|
+
};
|
|
2288
|
+
uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
|
|
2289
|
+
return uniffiResult;
|
|
2290
|
+
},
|
|
2291
|
+
finishPsbt: (uniffiHandle, psbtBase64) => {
|
|
2292
|
+
const uniffiMakeCall = () => {
|
|
2293
|
+
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
2294
|
+
return jsCallback.finishPsbt(FfiConverterString.lift(psbtBase64));
|
|
2295
|
+
};
|
|
2296
|
+
const uniffiResult = UniffiResult.ready();
|
|
2297
|
+
const uniffiHandleSuccess = obj => {
|
|
2298
|
+
UniffiResult.writeSuccess(uniffiResult, FfiConverterString.lower(obj));
|
|
2299
|
+
};
|
|
2300
|
+
const uniffiHandleError = (code, errBuf) => {
|
|
2301
|
+
UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
2302
|
+
};
|
|
2303
|
+
uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
|
|
2304
|
+
return uniffiResult;
|
|
2305
|
+
},
|
|
2306
|
+
getWalletTx: (uniffiHandle, txid) => {
|
|
2307
|
+
const uniffiMakeCall = () => {
|
|
2308
|
+
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
2309
|
+
return jsCallback.getWalletTx(FfiConverterString.lift(txid));
|
|
2310
|
+
};
|
|
2311
|
+
const uniffiResult = UniffiResult.ready();
|
|
2312
|
+
const uniffiHandleSuccess = obj => {
|
|
2313
|
+
UniffiResult.writeSuccess(uniffiResult, FfiConverterOptionalString.lower(obj));
|
|
2314
|
+
};
|
|
2315
|
+
const uniffiHandleError = (code, errBuf) => {
|
|
2316
|
+
UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
2317
|
+
};
|
|
2318
|
+
uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
|
|
2319
|
+
return uniffiResult;
|
|
2320
|
+
},
|
|
2321
|
+
getWalletTxConfirmedBlock: (uniffiHandle, txid) => {
|
|
2322
|
+
const uniffiMakeCall = () => {
|
|
2323
|
+
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
2324
|
+
return jsCallback.getWalletTxConfirmedBlock(FfiConverterString.lift(txid));
|
|
2325
|
+
};
|
|
2326
|
+
const uniffiResult = UniffiResult.ready();
|
|
2327
|
+
const uniffiHandleSuccess = obj => {
|
|
2328
|
+
UniffiResult.writeSuccess(uniffiResult, FfiConverterOptionalTypeBlockRef.lower(obj));
|
|
2329
|
+
};
|
|
2330
|
+
const uniffiHandleError = (code, errBuf) => {
|
|
2331
|
+
UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
2332
|
+
};
|
|
2333
|
+
uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
|
|
2334
|
+
return uniffiResult;
|
|
2335
|
+
},
|
|
2336
|
+
getSpendingTx: (uniffiHandle, outpoint) => {
|
|
2337
|
+
const uniffiMakeCall = () => {
|
|
2338
|
+
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
2339
|
+
return jsCallback.getSpendingTx(FfiConverterTypeOutPoint.lift(outpoint));
|
|
2340
|
+
};
|
|
2341
|
+
const uniffiResult = UniffiResult.ready();
|
|
2342
|
+
const uniffiHandleSuccess = obj => {
|
|
2343
|
+
UniffiResult.writeSuccess(uniffiResult, FfiConverterOptionalString.lower(obj));
|
|
2344
|
+
};
|
|
2345
|
+
const uniffiHandleError = (code, errBuf) => {
|
|
2346
|
+
UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
2347
|
+
};
|
|
2348
|
+
uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
|
|
2349
|
+
return uniffiResult;
|
|
2350
|
+
},
|
|
2351
|
+
makeSignedP2aCpfp: (uniffiHandle, params) => {
|
|
2352
|
+
const uniffiMakeCall = () => {
|
|
2353
|
+
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
2354
|
+
return jsCallback.makeSignedP2aCpfp(FfiConverterTypeCpfpParams.lift(params));
|
|
2355
|
+
};
|
|
2356
|
+
const uniffiResult = UniffiResult.ready();
|
|
2357
|
+
const uniffiHandleSuccess = obj => {
|
|
2358
|
+
UniffiResult.writeSuccess(uniffiResult, FfiConverterString.lower(obj));
|
|
2359
|
+
};
|
|
2360
|
+
const uniffiHandleError = (code, errBuf) => {
|
|
2361
|
+
UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
2362
|
+
};
|
|
2363
|
+
uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
|
|
2364
|
+
return uniffiResult;
|
|
2365
|
+
},
|
|
2366
|
+
storeSignedP2aCpfp: (uniffiHandle, txHex) => {
|
|
2367
|
+
const uniffiMakeCall = () => {
|
|
2368
|
+
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
2369
|
+
return jsCallback.storeSignedP2aCpfp(FfiConverterString.lift(txHex));
|
|
2370
|
+
};
|
|
2371
|
+
const uniffiResult = UniffiResult.ready();
|
|
2372
|
+
const uniffiHandleSuccess = obj => {};
|
|
2373
|
+
const uniffiHandleError = (code, errBuf) => {
|
|
2374
|
+
UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
2375
|
+
};
|
|
2376
|
+
uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
|
|
2377
|
+
return uniffiResult;
|
|
2378
|
+
},
|
|
2379
|
+
uniffiFree: uniffiHandle => {
|
|
2380
|
+
// CustomOnchainWalletCallbacks: this will throw a stale handle error if the handle isn't found.
|
|
2381
|
+
FfiConverterTypeCustomOnchainWalletCallbacks.drop(uniffiHandle);
|
|
2382
|
+
},
|
|
2383
|
+
uniffiClone: uniffiHandle => {
|
|
2384
|
+
return FfiConverterTypeCustomOnchainWalletCallbacks.clone(uniffiHandle);
|
|
2385
|
+
}
|
|
2386
|
+
},
|
|
2387
|
+
register: () => {
|
|
2388
|
+
nativeModule().ubrn_uniffi_bark_ffi_fn_init_callback_vtable_customonchainwalletcallbacks(uniffiCallbackInterfaceCustomOnchainWalletCallbacks.vtable);
|
|
2389
|
+
}
|
|
2390
|
+
};
|
|
2391
|
+
|
|
2392
|
+
/**
|
|
2393
|
+
* Pull-based notification handle exposed over FFI.
|
|
2394
|
+
*
|
|
2395
|
+
* Obtain via `Wallet::notifications()`. Call `next_notification()` in a loop
|
|
2396
|
+
* to receive events. Call `cancel_next_notification_wait()` to unblock a
|
|
2397
|
+
* pending wait without destroying the underlying stream.
|
|
2398
|
+
*
|
|
2399
|
+
* Each call to `Wallet::notifications()` creates an independent stream backed
|
|
2400
|
+
* by a new broadcast receiver — existing holders are unaffected.
|
|
2401
|
+
*
|
|
2402
|
+
* This holder is intended for a single consumer loop. Concurrent calls to
|
|
2403
|
+
* `next_notification()` on the same holder are not supported and will return
|
|
2404
|
+
* `None` immediately.
|
|
2405
|
+
*/
|
|
2406
|
+
|
|
2407
|
+
/**
|
|
2408
|
+
* @deprecated Use `NotificationHolderLike` instead.
|
|
2409
|
+
*/
|
|
2410
|
+
|
|
2411
|
+
/**
|
|
2412
|
+
* Pull-based notification handle exposed over FFI.
|
|
2413
|
+
*
|
|
2414
|
+
* Obtain via `Wallet::notifications()`. Call `next_notification()` in a loop
|
|
2415
|
+
* to receive events. Call `cancel_next_notification_wait()` to unblock a
|
|
2416
|
+
* pending wait without destroying the underlying stream.
|
|
2417
|
+
*
|
|
2418
|
+
* Each call to `Wallet::notifications()` creates an independent stream backed
|
|
2419
|
+
* by a new broadcast receiver — existing holders are unaffected.
|
|
2420
|
+
*
|
|
2421
|
+
* This holder is intended for a single consumer loop. Concurrent calls to
|
|
2422
|
+
* `next_notification()` on the same holder are not supported and will return
|
|
2423
|
+
* `None` immediately.
|
|
2424
|
+
*/
|
|
2425
|
+
export class NotificationHolder extends UniffiAbstractObject {
|
|
2426
|
+
[uniffiTypeNameSymbol] = "NotificationHolder";
|
|
2427
|
+
// No primary constructor declared for this class.
|
|
2428
|
+
constructor(pointer) {
|
|
2429
|
+
super();
|
|
2430
|
+
this[pointerLiteralSymbol] = pointer;
|
|
2431
|
+
this[destructorGuardSymbol] = uniffiTypeNotificationHolderObjectFactory.bless(pointer);
|
|
2432
|
+
}
|
|
2433
|
+
|
|
2434
|
+
/**
|
|
2435
|
+
* Cancel the currently pending `next_notification()` wait.
|
|
2436
|
+
*
|
|
2437
|
+
* Causes a blocked `next_notification()` to return `None`.
|
|
2438
|
+
* Has no effect if no wait is currently active.
|
|
2439
|
+
*
|
|
2440
|
+
* This does NOT destroy the underlying `NotificationStream`; a subsequent
|
|
2441
|
+
* call to `next_notification()` will work normally and wait for new events.
|
|
2442
|
+
*/
|
|
2443
|
+
cancelNextNotificationWait() {
|
|
2444
|
+
uniffiCaller.rustCall(/*caller:*/callStatus => {
|
|
2445
|
+
nativeModule().ubrn_uniffi_bark_ffi_fn_method_notificationholder_cancel_next_notification_wait(uniffiTypeNotificationHolderObjectFactory.clonePointer(this), callStatus);
|
|
2446
|
+
}, /*liftString:*/FfiConverterString.lift);
|
|
2447
|
+
}
|
|
2448
|
+
|
|
2449
|
+
/**
|
|
2450
|
+
* Wait for the next wallet notification.
|
|
2451
|
+
*
|
|
2452
|
+
* Returns `None` when:
|
|
2453
|
+
* - `cancel_next_notification_wait()` was called while this was pending
|
|
2454
|
+
* (cancellation only affects the current wait; the stream lives on)
|
|
2455
|
+
* - The wallet's notification source was shut down permanently
|
|
2456
|
+
*
|
|
2457
|
+
* Returns `Err(BarkError::Internal)` if called concurrently on the same holder.
|
|
2458
|
+
*
|
|
2459
|
+
* After a cancellation this method can be called again normally — the
|
|
2460
|
+
* underlying `NotificationStream` is preserved in `self.stream` and a
|
|
2461
|
+
* fresh per-wait cancel channel is created on every entry.
|
|
2462
|
+
*/
|
|
2463
|
+
async nextNotification(asyncOpts_) /*throws*/{
|
|
2464
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2465
|
+
try {
|
|
2466
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2467
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_notificationholder_next_notification(uniffiTypeNotificationHolderObjectFactory.clonePointer(this));
|
|
2468
|
+
}, /*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:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2469
|
+
} catch (__error) {
|
|
2470
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2471
|
+
__error.stack = __stack;
|
|
2472
|
+
}
|
|
2473
|
+
throw __error;
|
|
2474
|
+
}
|
|
2475
|
+
}
|
|
2476
|
+
|
|
2477
|
+
/**
|
|
2478
|
+
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2479
|
+
*/
|
|
2480
|
+
uniffiDestroy() {
|
|
2481
|
+
const ptr = this[destructorGuardSymbol];
|
|
2482
|
+
if (ptr !== undefined) {
|
|
2483
|
+
const pointer = uniffiTypeNotificationHolderObjectFactory.pointer(this);
|
|
2484
|
+
uniffiTypeNotificationHolderObjectFactory.freePointer(pointer);
|
|
2485
|
+
uniffiTypeNotificationHolderObjectFactory.unbless(ptr);
|
|
2486
|
+
delete this[destructorGuardSymbol];
|
|
2487
|
+
}
|
|
2488
|
+
}
|
|
2489
|
+
static instanceOf(obj) {
|
|
2490
|
+
return uniffiTypeNotificationHolderObjectFactory.isConcreteType(obj);
|
|
2491
|
+
}
|
|
2492
|
+
}
|
|
2493
|
+
const uniffiTypeNotificationHolderObjectFactory = (() => {
|
|
2494
|
+
return {
|
|
2495
|
+
create(pointer) {
|
|
2496
|
+
const instance = Object.create(NotificationHolder.prototype);
|
|
2497
|
+
instance[pointerLiteralSymbol] = pointer;
|
|
2498
|
+
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
2499
|
+
instance[uniffiTypeNameSymbol] = "NotificationHolder";
|
|
2500
|
+
return instance;
|
|
2501
|
+
},
|
|
2502
|
+
bless(p) {
|
|
2503
|
+
return uniffiCaller.rustCall(/*caller:*/status => nativeModule().ubrn_uniffi_internal_fn_method_notificationholder_ffi__bless_pointer(p, status), /*liftString:*/FfiConverterString.lift);
|
|
2504
|
+
},
|
|
2505
|
+
unbless(ptr) {
|
|
2506
|
+
ptr.markDestroyed();
|
|
2507
|
+
},
|
|
2508
|
+
pointer(obj) {
|
|
2509
|
+
if (obj[destructorGuardSymbol] === undefined) {
|
|
2510
|
+
throw new UniffiInternalError.UnexpectedNullPointer();
|
|
2511
|
+
}
|
|
2512
|
+
return obj[pointerLiteralSymbol];
|
|
2513
|
+
},
|
|
2514
|
+
clonePointer(obj) {
|
|
2515
|
+
const pointer = this.pointer(obj);
|
|
2516
|
+
return uniffiCaller.rustCall(/*caller:*/callStatus => nativeModule().ubrn_uniffi_bark_ffi_fn_clone_notificationholder(pointer, callStatus), /*liftString:*/FfiConverterString.lift);
|
|
2517
|
+
},
|
|
2518
|
+
freePointer(pointer) {
|
|
2519
|
+
uniffiCaller.rustCall(/*caller:*/callStatus => nativeModule().ubrn_uniffi_bark_ffi_fn_free_notificationholder(pointer, callStatus), /*liftString:*/FfiConverterString.lift);
|
|
2520
|
+
},
|
|
2521
|
+
isConcreteType(obj) {
|
|
2522
|
+
return obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === "NotificationHolder";
|
|
2523
|
+
}
|
|
2524
|
+
};
|
|
2525
|
+
})();
|
|
2526
|
+
// FfiConverter for NotificationHolderLike
|
|
2527
|
+
const FfiConverterTypeNotificationHolder = new FfiConverterObject(uniffiTypeNotificationHolderObjectFactory);
|
|
2528
|
+
|
|
2529
|
+
/**
|
|
2530
|
+
* UniFFI-facing onchain wallet. Supports two backends:
|
|
2531
|
+
* - BDK (real onchain wallet via `bark::onchain::OnchainWallet`)
|
|
2532
|
+
* - Callback (foreign-language implementation)
|
|
2533
|
+
*/
|
|
2534
|
+
|
|
2535
|
+
/**
|
|
2536
|
+
* @deprecated Use `OnchainWalletLike` instead.
|
|
2537
|
+
*/
|
|
2538
|
+
|
|
2539
|
+
/**
|
|
2540
|
+
* UniFFI-facing onchain wallet. Supports two backends:
|
|
2541
|
+
* - BDK (real onchain wallet via `bark::onchain::OnchainWallet`)
|
|
2542
|
+
* - Callback (foreign-language implementation)
|
|
2543
|
+
*/
|
|
2544
|
+
export class OnchainWallet extends UniffiAbstractObject {
|
|
2545
|
+
[uniffiTypeNameSymbol] = "OnchainWallet";
|
|
2546
|
+
// No primary constructor declared for this class.
|
|
2547
|
+
constructor(pointer) {
|
|
2548
|
+
super();
|
|
2549
|
+
this[pointerLiteralSymbol] = pointer;
|
|
2550
|
+
this[destructorGuardSymbol] = uniffiTypeOnchainWalletObjectFactory.bless(pointer);
|
|
2551
|
+
}
|
|
2552
|
+
|
|
2553
|
+
/**
|
|
2554
|
+
* Callback-backed wallet for foreign-language implementations.
|
|
2555
|
+
*/
|
|
2556
|
+
static custom(callbacks) /*throws*/{
|
|
2557
|
+
return FfiConverterTypeOnchainWallet.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
2558
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_onchainwallet_custom(FfiConverterTypeCustomOnchainWalletCallbacks.lower(callbacks), callStatus);
|
|
2559
|
+
}, /*liftString:*/FfiConverterString.lift));
|
|
2560
|
+
}
|
|
2561
|
+
|
|
2562
|
+
/**
|
|
2563
|
+
* BDK-backed wallet. Opens the shared sqlite cache.
|
|
2564
|
+
*/
|
|
2565
|
+
static async default_(mnemonic, config, datadir, asyncOpts_) /*throws*/{
|
|
2566
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2567
|
+
try {
|
|
2568
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2569
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_onchainwallet_default(FfiConverterString.lower(mnemonic), FfiConverterTypeConfig.lower(config), FfiConverterString.lower(datadir));
|
|
2570
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterTypeOnchainWallet.lift.bind(FfiConverterTypeOnchainWallet), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2571
|
+
} catch (__error) {
|
|
2572
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2573
|
+
__error.stack = __stack;
|
|
2574
|
+
}
|
|
2575
|
+
throw __error;
|
|
2576
|
+
}
|
|
2577
|
+
}
|
|
2578
|
+
async balance(asyncOpts_) /*throws*/{
|
|
2579
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2580
|
+
try {
|
|
2581
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2582
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_onchainwallet_balance(uniffiTypeOnchainWalletObjectFactory.clonePointer(this));
|
|
2583
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeOnchainBalance.lift.bind(FfiConverterTypeOnchainBalance), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2584
|
+
} catch (__error) {
|
|
2585
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2586
|
+
__error.stack = __stack;
|
|
2587
|
+
}
|
|
2588
|
+
throw __error;
|
|
2589
|
+
}
|
|
2590
|
+
}
|
|
2591
|
+
async newAddress(asyncOpts_) /*throws*/{
|
|
2592
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2593
|
+
try {
|
|
2594
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2595
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_onchainwallet_new_address(uniffiTypeOnchainWalletObjectFactory.clonePointer(this));
|
|
2596
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2597
|
+
} catch (__error) {
|
|
2598
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2599
|
+
__error.stack = __stack;
|
|
2600
|
+
}
|
|
2601
|
+
throw __error;
|
|
2602
|
+
}
|
|
2603
|
+
}
|
|
2604
|
+
async send(address, amountSats, feeRateSatPerVb, asyncOpts_) /*throws*/{
|
|
2605
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2606
|
+
try {
|
|
2607
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2608
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_onchainwallet_send(uniffiTypeOnchainWalletObjectFactory.clonePointer(this), FfiConverterString.lower(address), FfiConverterUInt64.lower(amountSats), FfiConverterUInt64.lower(feeRateSatPerVb));
|
|
2609
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2610
|
+
} catch (__error) {
|
|
2611
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2612
|
+
__error.stack = __stack;
|
|
2613
|
+
}
|
|
2614
|
+
throw __error;
|
|
2615
|
+
}
|
|
2616
|
+
}
|
|
2617
|
+
async sync(asyncOpts_) /*throws*/{
|
|
2618
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2619
|
+
try {
|
|
2620
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2621
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_onchainwallet_sync(uniffiTypeOnchainWalletObjectFactory.clonePointer(this));
|
|
2622
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterUInt64.lift.bind(FfiConverterUInt64), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2623
|
+
} catch (__error) {
|
|
2497
2624
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
2498
2625
|
__error.stack = __stack;
|
|
2499
2626
|
}
|
|
@@ -2502,8 +2629,105 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2502
2629
|
}
|
|
2503
2630
|
|
|
2504
2631
|
/**
|
|
2505
|
-
*
|
|
2632
|
+
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2506
2633
|
*/
|
|
2634
|
+
uniffiDestroy() {
|
|
2635
|
+
const ptr = this[destructorGuardSymbol];
|
|
2636
|
+
if (ptr !== undefined) {
|
|
2637
|
+
const pointer = uniffiTypeOnchainWalletObjectFactory.pointer(this);
|
|
2638
|
+
uniffiTypeOnchainWalletObjectFactory.freePointer(pointer);
|
|
2639
|
+
uniffiTypeOnchainWalletObjectFactory.unbless(ptr);
|
|
2640
|
+
delete this[destructorGuardSymbol];
|
|
2641
|
+
}
|
|
2642
|
+
}
|
|
2643
|
+
static instanceOf(obj) {
|
|
2644
|
+
return uniffiTypeOnchainWalletObjectFactory.isConcreteType(obj);
|
|
2645
|
+
}
|
|
2646
|
+
}
|
|
2647
|
+
const uniffiTypeOnchainWalletObjectFactory = (() => {
|
|
2648
|
+
return {
|
|
2649
|
+
create(pointer) {
|
|
2650
|
+
const instance = Object.create(OnchainWallet.prototype);
|
|
2651
|
+
instance[pointerLiteralSymbol] = pointer;
|
|
2652
|
+
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
2653
|
+
instance[uniffiTypeNameSymbol] = "OnchainWallet";
|
|
2654
|
+
return instance;
|
|
2655
|
+
},
|
|
2656
|
+
bless(p) {
|
|
2657
|
+
return uniffiCaller.rustCall(/*caller:*/status => nativeModule().ubrn_uniffi_internal_fn_method_onchainwallet_ffi__bless_pointer(p, status), /*liftString:*/FfiConverterString.lift);
|
|
2658
|
+
},
|
|
2659
|
+
unbless(ptr) {
|
|
2660
|
+
ptr.markDestroyed();
|
|
2661
|
+
},
|
|
2662
|
+
pointer(obj) {
|
|
2663
|
+
if (obj[destructorGuardSymbol] === undefined) {
|
|
2664
|
+
throw new UniffiInternalError.UnexpectedNullPointer();
|
|
2665
|
+
}
|
|
2666
|
+
return obj[pointerLiteralSymbol];
|
|
2667
|
+
},
|
|
2668
|
+
clonePointer(obj) {
|
|
2669
|
+
const pointer = this.pointer(obj);
|
|
2670
|
+
return uniffiCaller.rustCall(/*caller:*/callStatus => nativeModule().ubrn_uniffi_bark_ffi_fn_clone_onchainwallet(pointer, callStatus), /*liftString:*/FfiConverterString.lift);
|
|
2671
|
+
},
|
|
2672
|
+
freePointer(pointer) {
|
|
2673
|
+
uniffiCaller.rustCall(/*caller:*/callStatus => nativeModule().ubrn_uniffi_bark_ffi_fn_free_onchainwallet(pointer, callStatus), /*liftString:*/FfiConverterString.lift);
|
|
2674
|
+
},
|
|
2675
|
+
isConcreteType(obj) {
|
|
2676
|
+
return obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === "OnchainWallet";
|
|
2677
|
+
}
|
|
2678
|
+
};
|
|
2679
|
+
})();
|
|
2680
|
+
// FfiConverter for OnchainWalletLike
|
|
2681
|
+
const FfiConverterTypeOnchainWallet = new FfiConverterObject(uniffiTypeOnchainWalletObjectFactory);
|
|
2682
|
+
|
|
2683
|
+
/**
|
|
2684
|
+
* UniFFI-facing Bark wallet.
|
|
2685
|
+
*
|
|
2686
|
+
* Wraps `core::Wallet` and adds:
|
|
2687
|
+
* - `run_async` runtime offload on every entry point
|
|
2688
|
+
* - mailbox processor task + cancellation on drop
|
|
2689
|
+
* - LNURL `pay_lightning_address`
|
|
2690
|
+
* - Daemon control methods
|
|
2691
|
+
* - Notification holder
|
|
2692
|
+
* - Callback onchain dispatch
|
|
2693
|
+
*/
|
|
2694
|
+
|
|
2695
|
+
/**
|
|
2696
|
+
* @deprecated Use `WalletLike` instead.
|
|
2697
|
+
*/
|
|
2698
|
+
|
|
2699
|
+
/**
|
|
2700
|
+
* UniFFI-facing Bark wallet.
|
|
2701
|
+
*
|
|
2702
|
+
* Wraps `core::Wallet` and adds:
|
|
2703
|
+
* - `run_async` runtime offload on every entry point
|
|
2704
|
+
* - mailbox processor task + cancellation on drop
|
|
2705
|
+
* - LNURL `pay_lightning_address`
|
|
2706
|
+
* - Daemon control methods
|
|
2707
|
+
* - Notification holder
|
|
2708
|
+
* - Callback onchain dispatch
|
|
2709
|
+
*/
|
|
2710
|
+
export class Wallet extends UniffiAbstractObject {
|
|
2711
|
+
[uniffiTypeNameSymbol] = "Wallet";
|
|
2712
|
+
// No primary constructor declared for this class.
|
|
2713
|
+
constructor(pointer) {
|
|
2714
|
+
super();
|
|
2715
|
+
this[pointerLiteralSymbol] = pointer;
|
|
2716
|
+
this[destructorGuardSymbol] = uniffiTypeWalletObjectFactory.bless(pointer);
|
|
2717
|
+
}
|
|
2718
|
+
static async create(mnemonic, config, datadir, forceRescan, asyncOpts_) /*throws*/{
|
|
2719
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2720
|
+
try {
|
|
2721
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2722
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_wallet_create(FfiConverterString.lower(mnemonic), FfiConverterTypeConfig.lower(config), FfiConverterString.lower(datadir), FfiConverterBool.lower(forceRescan));
|
|
2723
|
+
}, /*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));
|
|
2724
|
+
} catch (__error) {
|
|
2725
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2726
|
+
__error.stack = __stack;
|
|
2727
|
+
}
|
|
2728
|
+
throw __error;
|
|
2729
|
+
}
|
|
2730
|
+
}
|
|
2507
2731
|
static async createWithOnchain(mnemonic, config, datadir, onchainWallet, forceRescan, asyncOpts_) /*throws*/{
|
|
2508
2732
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2509
2733
|
try {
|
|
@@ -2517,10 +2741,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2517
2741
|
throw __error;
|
|
2518
2742
|
}
|
|
2519
2743
|
}
|
|
2520
|
-
|
|
2521
|
-
/**
|
|
2522
|
-
* Open an existing Bark wallet
|
|
2523
|
-
*/
|
|
2524
2744
|
static async open(mnemonic, config, datadir, asyncOpts_) /*throws*/{
|
|
2525
2745
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2526
2746
|
try {
|
|
@@ -2536,12 +2756,7 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2536
2756
|
}
|
|
2537
2757
|
|
|
2538
2758
|
/**
|
|
2539
|
-
* Open an existing
|
|
2540
|
-
* optionally with onchain capabilities.
|
|
2541
|
-
*
|
|
2542
|
-
* The daemon runs in the background and is stopped when the wallet is dropped.
|
|
2543
|
-
* Callback-based onchain wallets are not supported for daemon mode and the
|
|
2544
|
-
* wallet will be opened without onchain capabilities in that case.
|
|
2759
|
+
* Open an existing wallet and start running the daemon.
|
|
2545
2760
|
*/
|
|
2546
2761
|
static async openWithDaemon(mnemonic, config, datadir, onchainWallet, asyncOpts_) /*throws*/{
|
|
2547
2762
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
@@ -2556,10 +2771,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2556
2771
|
throw __error;
|
|
2557
2772
|
}
|
|
2558
2773
|
}
|
|
2559
|
-
|
|
2560
|
-
/**
|
|
2561
|
-
* Open an existing Bark wallet WITH onchain capabilities
|
|
2562
|
-
*/
|
|
2563
2774
|
static async openWithOnchain(mnemonic, config, datadir, onchainWallet, asyncOpts_) /*throws*/{
|
|
2564
2775
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2565
2776
|
try {
|
|
@@ -2573,12 +2784,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2573
2784
|
throw __error;
|
|
2574
2785
|
}
|
|
2575
2786
|
}
|
|
2576
|
-
|
|
2577
|
-
/**
|
|
2578
|
-
* Get earliest block height when all exits will be claimable
|
|
2579
|
-
*
|
|
2580
|
-
* Returns null if no exits or any exit has undetermined claimability.
|
|
2581
|
-
*/
|
|
2582
2787
|
async allExitsClaimableAtHeight(asyncOpts_) /*throws*/{
|
|
2583
2788
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2584
2789
|
try {
|
|
@@ -2592,10 +2797,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2592
2797
|
throw __error;
|
|
2593
2798
|
}
|
|
2594
2799
|
}
|
|
2595
|
-
|
|
2596
|
-
/**
|
|
2597
|
-
* Get all VTXOs (including spent)
|
|
2598
|
-
*/
|
|
2599
2800
|
async allVtxos(asyncOpts_) /*throws*/{
|
|
2600
2801
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2601
2802
|
try {
|
|
@@ -2609,10 +2810,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2609
2810
|
throw __error;
|
|
2610
2811
|
}
|
|
2611
2812
|
}
|
|
2612
|
-
|
|
2613
|
-
/**
|
|
2614
|
-
* Get Ark server info (null if not connected)
|
|
2615
|
-
*/
|
|
2616
2813
|
async arkInfo(asyncOpts_) {
|
|
2617
2814
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2618
2815
|
try {
|
|
@@ -2639,10 +2836,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2639
2836
|
throw __error;
|
|
2640
2837
|
}
|
|
2641
2838
|
}
|
|
2642
|
-
|
|
2643
|
-
/**
|
|
2644
|
-
* Board all funds from onchain wallet into Ark
|
|
2645
|
-
*/
|
|
2646
2839
|
async boardAll(onchainWallet, asyncOpts_) /*throws*/{
|
|
2647
2840
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2648
2841
|
try {
|
|
@@ -2656,10 +2849,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2656
2849
|
throw __error;
|
|
2657
2850
|
}
|
|
2658
2851
|
}
|
|
2659
|
-
|
|
2660
|
-
/**
|
|
2661
|
-
* Board a specific amount from onchain wallet into Ark
|
|
2662
|
-
*/
|
|
2663
2852
|
async boardAmount(onchainWallet, amountSats, asyncOpts_) /*throws*/{
|
|
2664
2853
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2665
2854
|
try {
|
|
@@ -2686,19 +2875,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2686
2875
|
throw __error;
|
|
2687
2876
|
}
|
|
2688
2877
|
}
|
|
2689
|
-
|
|
2690
|
-
/**
|
|
2691
|
-
* Broadcast a signed transaction to the Bitcoin network
|
|
2692
|
-
*
|
|
2693
|
-
* Takes a hex-encoded transaction and broadcasts it via the wallet's chain source.
|
|
2694
|
-
* This is useful after extracting a transaction from a PSBT using extract_tx_from_psbt.
|
|
2695
|
-
*
|
|
2696
|
-
* # Arguments
|
|
2697
|
-
*
|
|
2698
|
-
* * `tx_hex` - Hex-encoded signed transaction
|
|
2699
|
-
*
|
|
2700
|
-
* Returns the transaction ID (txid) of the broadcasted transaction
|
|
2701
|
-
*/
|
|
2702
2878
|
async broadcastTx(txHex, asyncOpts_) /*throws*/{
|
|
2703
2879
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2704
2880
|
try {
|
|
@@ -2712,10 +2888,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2712
2888
|
throw __error;
|
|
2713
2889
|
}
|
|
2714
2890
|
}
|
|
2715
|
-
|
|
2716
|
-
/**
|
|
2717
|
-
* Cancel all pending rounds
|
|
2718
|
-
*/
|
|
2719
2891
|
async cancelAllPendingRounds(asyncOpts_) /*throws*/{
|
|
2720
2892
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2721
2893
|
try {
|
|
@@ -2729,17 +2901,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2729
2901
|
throw __error;
|
|
2730
2902
|
}
|
|
2731
2903
|
}
|
|
2732
|
-
|
|
2733
|
-
/**
|
|
2734
|
-
* Cancel a pending lightning receive by payment hash
|
|
2735
|
-
*
|
|
2736
|
-
* Server will refuse if HTLCs already granted, preimage already revealed,
|
|
2737
|
-
* or receive already finished.
|
|
2738
|
-
*
|
|
2739
|
-
* # Arguments
|
|
2740
|
-
*
|
|
2741
|
-
* * `payment_hash` - Payment hash as hex string
|
|
2742
|
-
*/
|
|
2743
2904
|
async cancelLightningReceive(paymentHash, asyncOpts_) /*throws*/{
|
|
2744
2905
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2745
2906
|
try {
|
|
@@ -2753,10 +2914,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2753
2914
|
throw __error;
|
|
2754
2915
|
}
|
|
2755
2916
|
}
|
|
2756
|
-
|
|
2757
|
-
/**
|
|
2758
|
-
* Cancel a specific pending round
|
|
2759
|
-
*/
|
|
2760
2917
|
async cancelPendingRound(roundId, asyncOpts_) /*throws*/{
|
|
2761
2918
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2762
2919
|
try {
|
|
@@ -2770,17 +2927,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2770
2927
|
throw __error;
|
|
2771
2928
|
}
|
|
2772
2929
|
}
|
|
2773
|
-
|
|
2774
|
-
/**
|
|
2775
|
-
* Check lightning payment status by payment hash
|
|
2776
|
-
*
|
|
2777
|
-
* # Arguments
|
|
2778
|
-
*
|
|
2779
|
-
* * `payment_hash` - Payment hash as hex string
|
|
2780
|
-
* * `wait` - Whether to wait for the payment to complete
|
|
2781
|
-
*
|
|
2782
|
-
* Returns the preimage if payment is successful, null if still pending
|
|
2783
|
-
*/
|
|
2784
2930
|
async checkLightningPayment(paymentHash, wait, asyncOpts_) /*throws*/{
|
|
2785
2931
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2786
2932
|
try {
|
|
@@ -2794,10 +2940,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2794
2940
|
throw __error;
|
|
2795
2941
|
}
|
|
2796
2942
|
}
|
|
2797
|
-
|
|
2798
|
-
/**
|
|
2799
|
-
* Get claimable lightning receive balance
|
|
2800
|
-
*/
|
|
2801
2943
|
async claimableLightningReceiveBalanceSats(asyncOpts_) /*throws*/{
|
|
2802
2944
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2803
2945
|
try {
|
|
@@ -2811,10 +2953,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2811
2953
|
throw __error;
|
|
2812
2954
|
}
|
|
2813
2955
|
}
|
|
2814
|
-
|
|
2815
|
-
/**
|
|
2816
|
-
* Get wallet config
|
|
2817
|
-
*/
|
|
2818
2956
|
async config(asyncOpts_) {
|
|
2819
2957
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2820
2958
|
try {
|
|
@@ -2828,19 +2966,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2828
2966
|
throw __error;
|
|
2829
2967
|
}
|
|
2830
2968
|
}
|
|
2831
|
-
|
|
2832
|
-
/**
|
|
2833
|
-
* Drain claimable exits to an address
|
|
2834
|
-
*
|
|
2835
|
-
* Builds a signed PSBT that claims exited funds and sends them to the address.
|
|
2836
|
-
* The PSBT can be broadcast directly or modified before broadcasting.
|
|
2837
|
-
*
|
|
2838
|
-
* # Arguments
|
|
2839
|
-
*
|
|
2840
|
-
* * `vtxo_ids` - List of claimable VTXO IDs to drain (empty = drain all)
|
|
2841
|
-
* * `address` - Bitcoin address to send claimed funds to
|
|
2842
|
-
* * `fee_rate_sat_per_vb` - Optional fee rate override in sats/vB
|
|
2843
|
-
*/
|
|
2844
2969
|
async drainExits(vtxoIds, address, feeRateSatPerVb, asyncOpts_) /*throws*/{
|
|
2845
2970
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2846
2971
|
try {
|
|
@@ -2854,14 +2979,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2854
2979
|
throw __error;
|
|
2855
2980
|
}
|
|
2856
2981
|
}
|
|
2857
|
-
|
|
2858
|
-
/**
|
|
2859
|
-
* Estimate the fee for an arkoor payment
|
|
2860
|
-
*
|
|
2861
|
-
* # Arguments
|
|
2862
|
-
*
|
|
2863
|
-
* * `amount_sats` - Amount to send in sats
|
|
2864
|
-
*/
|
|
2865
2982
|
async estimateArkoorPaymentFee(amountSats, asyncOpts_) /*throws*/{
|
|
2866
2983
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2867
2984
|
try {
|
|
@@ -2875,14 +2992,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2875
2992
|
throw __error;
|
|
2876
2993
|
}
|
|
2877
2994
|
}
|
|
2878
|
-
|
|
2879
|
-
/**
|
|
2880
|
-
* Estimate the fee for a board operation
|
|
2881
|
-
*
|
|
2882
|
-
* # Arguments
|
|
2883
|
-
*
|
|
2884
|
-
* * `amount_sats` - Amount to board in sats
|
|
2885
|
-
*/
|
|
2886
2995
|
async estimateBoardFee(amountSats, asyncOpts_) /*throws*/{
|
|
2887
2996
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2888
2997
|
try {
|
|
@@ -2896,14 +3005,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2896
3005
|
throw __error;
|
|
2897
3006
|
}
|
|
2898
3007
|
}
|
|
2899
|
-
|
|
2900
|
-
/**
|
|
2901
|
-
* Estimate the fee for a lightning receive
|
|
2902
|
-
*
|
|
2903
|
-
* # Arguments
|
|
2904
|
-
*
|
|
2905
|
-
* * `amount_sats` - Amount to receive in sats
|
|
2906
|
-
*/
|
|
2907
3008
|
async estimateLightningReceiveFee(amountSats, asyncOpts_) /*throws*/{
|
|
2908
3009
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2909
3010
|
try {
|
|
@@ -2917,14 +3018,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2917
3018
|
throw __error;
|
|
2918
3019
|
}
|
|
2919
3020
|
}
|
|
2920
|
-
|
|
2921
|
-
/**
|
|
2922
|
-
* Estimate the fee for a lightning send
|
|
2923
|
-
*
|
|
2924
|
-
* # Arguments
|
|
2925
|
-
*
|
|
2926
|
-
* * `amount_sats` - Amount to send in sats
|
|
2927
|
-
*/
|
|
2928
3021
|
async estimateLightningSendFee(amountSats, asyncOpts_) /*throws*/{
|
|
2929
3022
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2930
3023
|
try {
|
|
@@ -2938,14 +3031,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2938
3031
|
throw __error;
|
|
2939
3032
|
}
|
|
2940
3033
|
}
|
|
2941
|
-
|
|
2942
|
-
/**
|
|
2943
|
-
* Estimate the fee for offboarding all spendable VTXOs
|
|
2944
|
-
*
|
|
2945
|
-
* # Arguments
|
|
2946
|
-
*
|
|
2947
|
-
* * `address` - Destination address for the offboard
|
|
2948
|
-
*/
|
|
2949
3034
|
async estimateOffboardAllFee(address, asyncOpts_) /*throws*/{
|
|
2950
3035
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2951
3036
|
try {
|
|
@@ -2959,15 +3044,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2959
3044
|
throw __error;
|
|
2960
3045
|
}
|
|
2961
3046
|
}
|
|
2962
|
-
|
|
2963
|
-
/**
|
|
2964
|
-
* Estimate the fee for an offboard operation
|
|
2965
|
-
*
|
|
2966
|
-
* # Arguments
|
|
2967
|
-
*
|
|
2968
|
-
* * `address` - Destination address for the offboard
|
|
2969
|
-
* * `vtxo_ids` - VTXOs to offboard
|
|
2970
|
-
*/
|
|
2971
3047
|
async estimateOffboardFee(address, vtxoIds, asyncOpts_) /*throws*/{
|
|
2972
3048
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2973
3049
|
try {
|
|
@@ -2981,14 +3057,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
2981
3057
|
throw __error;
|
|
2982
3058
|
}
|
|
2983
3059
|
}
|
|
2984
|
-
|
|
2985
|
-
/**
|
|
2986
|
-
* Estimate the fee for a refresh operation
|
|
2987
|
-
*
|
|
2988
|
-
* # Arguments
|
|
2989
|
-
*
|
|
2990
|
-
* * `vtxo_ids` - VTXOs to refresh
|
|
2991
|
-
*/
|
|
2992
3060
|
async estimateRefreshFee(vtxoIds, asyncOpts_) /*throws*/{
|
|
2993
3061
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2994
3062
|
try {
|
|
@@ -3002,15 +3070,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3002
3070
|
throw __error;
|
|
3003
3071
|
}
|
|
3004
3072
|
}
|
|
3005
|
-
|
|
3006
|
-
/**
|
|
3007
|
-
* Estimate the fee for a send onchain operation
|
|
3008
|
-
*
|
|
3009
|
-
* # Arguments
|
|
3010
|
-
*
|
|
3011
|
-
* * `address` - Destination address
|
|
3012
|
-
* * `amount_sats` - Amount to send in sats
|
|
3013
|
-
*/
|
|
3014
3073
|
async estimateSendOnchainFee(address, amountSats, asyncOpts_) /*throws*/{
|
|
3015
3074
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3016
3075
|
try {
|
|
@@ -3024,27 +3083,11 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3024
3083
|
throw __error;
|
|
3025
3084
|
}
|
|
3026
3085
|
}
|
|
3027
|
-
|
|
3028
|
-
/**
|
|
3029
|
-
* Get the wallet's BIP32 fingerprint
|
|
3030
|
-
*/
|
|
3031
3086
|
fingerprint() {
|
|
3032
3087
|
return FfiConverterString.lift(uniffiCaller.rustCall(/*caller:*/callStatus => {
|
|
3033
3088
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_fingerprint(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
|
|
3034
3089
|
}, /*liftString:*/FfiConverterString.lift));
|
|
3035
3090
|
}
|
|
3036
|
-
|
|
3037
|
-
/**
|
|
3038
|
-
* Get detailed exit status for a specific VTXO
|
|
3039
|
-
*
|
|
3040
|
-
* Returns detailed status including current state, history, and transactions.
|
|
3041
|
-
*
|
|
3042
|
-
* # Arguments
|
|
3043
|
-
*
|
|
3044
|
-
* * `vtxo_id` - The VTXO ID to check
|
|
3045
|
-
* * `include_history` - Whether to include full state machine history
|
|
3046
|
-
* * `include_transactions` - Whether to include transaction details
|
|
3047
|
-
*/
|
|
3048
3091
|
async getExitStatus(vtxoId, includeHistory, includeTransactions, asyncOpts_) /*throws*/{
|
|
3049
3092
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3050
3093
|
try {
|
|
@@ -3056,12 +3099,8 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3056
3099
|
__error.stack = __stack;
|
|
3057
3100
|
}
|
|
3058
3101
|
throw __error;
|
|
3059
|
-
}
|
|
3060
|
-
}
|
|
3061
|
-
|
|
3062
|
-
/**
|
|
3063
|
-
* Get all VTXOs currently in exit process
|
|
3064
|
-
*/
|
|
3102
|
+
}
|
|
3103
|
+
}
|
|
3065
3104
|
async getExitVtxos(asyncOpts_) /*throws*/{
|
|
3066
3105
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3067
3106
|
try {
|
|
@@ -3075,10 +3114,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3075
3114
|
throw __error;
|
|
3076
3115
|
}
|
|
3077
3116
|
}
|
|
3078
|
-
|
|
3079
|
-
/**
|
|
3080
|
-
* Get VTXOs expiring within threshold blocks
|
|
3081
|
-
*/
|
|
3082
3117
|
async getExpiringVtxos(thresholdBlocks, asyncOpts_) /*throws*/{
|
|
3083
3118
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3084
3119
|
try {
|
|
@@ -3092,12 +3127,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3092
3127
|
throw __error;
|
|
3093
3128
|
}
|
|
3094
3129
|
}
|
|
3095
|
-
|
|
3096
|
-
/**
|
|
3097
|
-
* Get the block height of the first expiring VTXO
|
|
3098
|
-
*
|
|
3099
|
-
* Returns null if there are no spendable VTXOs.
|
|
3100
|
-
*/
|
|
3101
3130
|
async getFirstExpiringVtxoBlockheight(asyncOpts_) /*throws*/{
|
|
3102
3131
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3103
3132
|
try {
|
|
@@ -3111,13 +3140,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3111
3140
|
throw __error;
|
|
3112
3141
|
}
|
|
3113
3142
|
}
|
|
3114
|
-
|
|
3115
|
-
/**
|
|
3116
|
-
* Get the next block height when a refresh should be performed
|
|
3117
|
-
*
|
|
3118
|
-
* This is calculated as the first expiring VTXO height minus the refresh threshold.
|
|
3119
|
-
* Returns null if there are no VTXOs to refresh.
|
|
3120
|
-
*/
|
|
3121
3143
|
async getNextRequiredRefreshBlockheight(asyncOpts_) /*throws*/{
|
|
3122
3144
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3123
3145
|
try {
|
|
@@ -3131,10 +3153,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3131
3153
|
throw __error;
|
|
3132
3154
|
}
|
|
3133
3155
|
}
|
|
3134
|
-
|
|
3135
|
-
/**
|
|
3136
|
-
* Get a specific VTXO by ID
|
|
3137
|
-
*/
|
|
3138
3156
|
async getVtxoById(vtxoId, asyncOpts_) /*throws*/{
|
|
3139
3157
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3140
3158
|
try {
|
|
@@ -3148,10 +3166,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3148
3166
|
throw __error;
|
|
3149
3167
|
}
|
|
3150
3168
|
}
|
|
3151
|
-
|
|
3152
|
-
/**
|
|
3153
|
-
* Get VTXOs that should be refreshed
|
|
3154
|
-
*/
|
|
3155
3169
|
async getVtxosToRefresh(asyncOpts_) /*throws*/{
|
|
3156
3170
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3157
3171
|
try {
|
|
@@ -3165,10 +3179,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3165
3179
|
throw __error;
|
|
3166
3180
|
}
|
|
3167
3181
|
}
|
|
3168
|
-
|
|
3169
|
-
/**
|
|
3170
|
-
* Check if any exits are pending
|
|
3171
|
-
*/
|
|
3172
3182
|
async hasPendingExits(asyncOpts_) /*throws*/{
|
|
3173
3183
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3174
3184
|
try {
|
|
@@ -3182,10 +3192,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3182
3192
|
throw __error;
|
|
3183
3193
|
}
|
|
3184
3194
|
}
|
|
3185
|
-
|
|
3186
|
-
/**
|
|
3187
|
-
* Get all wallet movements (transaction history)
|
|
3188
|
-
*/
|
|
3189
3195
|
async history(asyncOpts_) /*throws*/{
|
|
3190
3196
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3191
3197
|
try {
|
|
@@ -3199,15 +3205,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3199
3205
|
throw __error;
|
|
3200
3206
|
}
|
|
3201
3207
|
}
|
|
3202
|
-
|
|
3203
|
-
/**
|
|
3204
|
-
* Get wallet movements filtered by payment method
|
|
3205
|
-
*
|
|
3206
|
-
* # Arguments
|
|
3207
|
-
*
|
|
3208
|
-
* * `payment_method_type` - Type (e.g. "ark", "bitcoin", "invoice", "offer", "lightning_address", "custom")
|
|
3209
|
-
* * `payment_method_value` - Value (e.g. an address or invoice string)
|
|
3210
|
-
*/
|
|
3211
3208
|
async historyByPaymentMethod(paymentMethodType, paymentMethodValue, asyncOpts_) /*throws*/{
|
|
3212
3209
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3213
3210
|
try {
|
|
@@ -3221,17 +3218,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3221
3218
|
throw __error;
|
|
3222
3219
|
}
|
|
3223
3220
|
}
|
|
3224
|
-
|
|
3225
|
-
/**
|
|
3226
|
-
* Import a serialized VTXO into the wallet
|
|
3227
|
-
*
|
|
3228
|
-
* Allows recovering VTXOs by importing their serialized form.
|
|
3229
|
-
* The VTXO data should be base64-encoded.
|
|
3230
|
-
*
|
|
3231
|
-
* # Arguments
|
|
3232
|
-
*
|
|
3233
|
-
* * `vtxo_base64` - Base64-encoded serialized VTXO
|
|
3234
|
-
*/
|
|
3235
3221
|
async importVtxo(vtxoBase64, asyncOpts_) /*throws*/{
|
|
3236
3222
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3237
3223
|
try {
|
|
@@ -3245,14 +3231,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3245
3231
|
throw __error;
|
|
3246
3232
|
}
|
|
3247
3233
|
}
|
|
3248
|
-
|
|
3249
|
-
/**
|
|
3250
|
-
* Get lightning receive status by payment hash
|
|
3251
|
-
*
|
|
3252
|
-
* # Arguments
|
|
3253
|
-
*
|
|
3254
|
-
* * `payment_hash` - Payment hash as hex string
|
|
3255
|
-
*/
|
|
3256
3234
|
async lightningReceiveStatus(paymentHash, asyncOpts_) /*throws*/{
|
|
3257
3235
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3258
3236
|
try {
|
|
@@ -3266,12 +3244,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3266
3244
|
throw __error;
|
|
3267
3245
|
}
|
|
3268
3246
|
}
|
|
3269
|
-
|
|
3270
|
-
/**
|
|
3271
|
-
* List all exits that are claimable
|
|
3272
|
-
*
|
|
3273
|
-
* Returns exits ready to be drained to onchain wallet.
|
|
3274
|
-
*/
|
|
3275
3247
|
async listClaimableExits(asyncOpts_) /*throws*/{
|
|
3276
3248
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3277
3249
|
try {
|
|
@@ -3285,31 +3257,11 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3285
3257
|
throw __error;
|
|
3286
3258
|
}
|
|
3287
3259
|
}
|
|
3288
|
-
|
|
3289
|
-
/**
|
|
3290
|
-
* Create a new authorization for your server mailbox
|
|
3291
|
-
*
|
|
3292
|
-
* This generates an authorization token that can be used to manage
|
|
3293
|
-
* your server mailbox. Useful for delegating mailbox access.
|
|
3294
|
-
*
|
|
3295
|
-
* Returns the mailbox authorization as a hex-encoded string.
|
|
3296
|
-
*/
|
|
3297
3260
|
mailboxAuthorization() /*throws*/{
|
|
3298
3261
|
return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
3299
3262
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_mailbox_authorization(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
|
|
3300
3263
|
}, /*liftString:*/FfiConverterString.lift));
|
|
3301
3264
|
}
|
|
3302
|
-
|
|
3303
|
-
/**
|
|
3304
|
-
* Get the mailbox identifier for push notifications
|
|
3305
|
-
*
|
|
3306
|
-
* This identifier can be registered with a push notification service
|
|
3307
|
-
* to receive alerts when VTXOs arrive in your mailbox. The mailbox
|
|
3308
|
-
* receives all incoming VTXOs regardless of source (arkoor payments,
|
|
3309
|
-
* Lightning receives, or round outputs).
|
|
3310
|
-
*
|
|
3311
|
-
* Returns the mailbox identifier as a hex-encoded public key.
|
|
3312
|
-
*/
|
|
3313
3265
|
mailboxIdentifier() /*throws*/{
|
|
3314
3266
|
return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
3315
3267
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_mailbox_identifier(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
|
|
@@ -3328,13 +3280,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3328
3280
|
throw __error;
|
|
3329
3281
|
}
|
|
3330
3282
|
}
|
|
3331
|
-
|
|
3332
|
-
/**
|
|
3333
|
-
* Perform maintenance in delegated (non-interactive) mode
|
|
3334
|
-
*
|
|
3335
|
-
* This schedules refresh operations but doesn't wait for completion.
|
|
3336
|
-
* Use this when you want to queue operations without blocking.
|
|
3337
|
-
*/
|
|
3338
3283
|
async maintenanceDelegated(asyncOpts_) /*throws*/{
|
|
3339
3284
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3340
3285
|
try {
|
|
@@ -3348,10 +3293,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3348
3293
|
throw __error;
|
|
3349
3294
|
}
|
|
3350
3295
|
}
|
|
3351
|
-
|
|
3352
|
-
/**
|
|
3353
|
-
* Perform maintenance refresh
|
|
3354
|
-
*/
|
|
3355
3296
|
async maintenanceRefresh(asyncOpts_) /*throws*/{
|
|
3356
3297
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3357
3298
|
try {
|
|
@@ -3365,12 +3306,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3365
3306
|
throw __error;
|
|
3366
3307
|
}
|
|
3367
3308
|
}
|
|
3368
|
-
|
|
3369
|
-
/**
|
|
3370
|
-
* Full maintenance including onchain wallet sync
|
|
3371
|
-
*
|
|
3372
|
-
* More thorough than maintenance() - also syncs onchain wallet and exits.
|
|
3373
|
-
*/
|
|
3374
3309
|
async maintenanceWithOnchain(onchainWallet, asyncOpts_) /*throws*/{
|
|
3375
3310
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3376
3311
|
try {
|
|
@@ -3384,10 +3319,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3384
3319
|
throw __error;
|
|
3385
3320
|
}
|
|
3386
3321
|
}
|
|
3387
|
-
|
|
3388
|
-
/**
|
|
3389
|
-
* Perform maintenance with onchain wallet in delegated mode
|
|
3390
|
-
*/
|
|
3391
3322
|
async maintenanceWithOnchainDelegated(onchainWallet, asyncOpts_) /*throws*/{
|
|
3392
3323
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3393
3324
|
try {
|
|
@@ -3401,12 +3332,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3401
3332
|
throw __error;
|
|
3402
3333
|
}
|
|
3403
3334
|
}
|
|
3404
|
-
|
|
3405
|
-
/**
|
|
3406
|
-
* Schedule a maintenance refresh if VTXOs need refreshing
|
|
3407
|
-
*
|
|
3408
|
-
* Returns the round ID if a refresh was scheduled, null otherwise.
|
|
3409
|
-
*/
|
|
3410
3335
|
async maybeScheduleMaintenanceRefresh(asyncOpts_) /*throws*/{
|
|
3411
3336
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3412
3337
|
try {
|
|
@@ -3420,10 +3345,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3420
3345
|
throw __error;
|
|
3421
3346
|
}
|
|
3422
3347
|
}
|
|
3423
|
-
|
|
3424
|
-
/**
|
|
3425
|
-
* Get the Bitcoin network this wallet is using
|
|
3426
|
-
*/
|
|
3427
3348
|
async network(asyncOpts_) /*throws*/{
|
|
3428
3349
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3429
3350
|
try {
|
|
@@ -3450,10 +3371,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3450
3371
|
throw __error;
|
|
3451
3372
|
}
|
|
3452
3373
|
}
|
|
3453
|
-
|
|
3454
|
-
/**
|
|
3455
|
-
* Generate a new address and return it with its index
|
|
3456
|
-
*/
|
|
3457
3374
|
async newAddressWithIndex(asyncOpts_) /*throws*/{
|
|
3458
3375
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3459
3376
|
try {
|
|
@@ -3467,11 +3384,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3467
3384
|
throw __error;
|
|
3468
3385
|
}
|
|
3469
3386
|
}
|
|
3470
|
-
|
|
3471
|
-
/**
|
|
3472
|
-
* Get the timestamp when the next round will start (Unix timestamp in seconds)
|
|
3473
|
-
* Returns an error if the server hasn't provided round timing info
|
|
3474
|
-
*/
|
|
3475
3387
|
async nextRoundStartTime(asyncOpts_) /*throws*/{
|
|
3476
3388
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3477
3389
|
try {
|
|
@@ -3485,14 +3397,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3485
3397
|
throw __error;
|
|
3486
3398
|
}
|
|
3487
3399
|
}
|
|
3488
|
-
|
|
3489
|
-
/**
|
|
3490
|
-
* Get a pull-based notification holder for this wallet.
|
|
3491
|
-
*
|
|
3492
|
-
* Call `next_notification()` in a loop to receive events.
|
|
3493
|
-
* Call `cancel_next_notification_wait()` to unblock a pending wait without
|
|
3494
|
-
* destroying the stream.
|
|
3495
|
-
*/
|
|
3496
3400
|
notifications() {
|
|
3497
3401
|
return FfiConverterTypeNotificationHolder.lift(uniffiCaller.rustCall(/*caller:*/callStatus => {
|
|
3498
3402
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_notifications(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
|
|
@@ -3511,10 +3415,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3511
3415
|
throw __error;
|
|
3512
3416
|
}
|
|
3513
3417
|
}
|
|
3514
|
-
|
|
3515
|
-
/**
|
|
3516
|
-
* Offboard specific VTXOs to a Bitcoin address
|
|
3517
|
-
*/
|
|
3518
3418
|
async offboardVtxos(vtxoIds, bitcoinAddress, asyncOpts_) /*throws*/{
|
|
3519
3419
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3520
3420
|
try {
|
|
@@ -3528,6 +3428,10 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3528
3428
|
throw __error;
|
|
3529
3429
|
}
|
|
3530
3430
|
}
|
|
3431
|
+
|
|
3432
|
+
/**
|
|
3433
|
+
* Pay to a Lightning Address (LNURL). UniFFI-only — lnurl-rs is not wasm-compatible.
|
|
3434
|
+
*/
|
|
3531
3435
|
async payLightningAddress(lightningAddress, amountSats, comment, asyncOpts_) /*throws*/{
|
|
3532
3436
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3533
3437
|
try {
|
|
@@ -3554,15 +3458,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3554
3458
|
throw __error;
|
|
3555
3459
|
}
|
|
3556
3460
|
}
|
|
3557
|
-
|
|
3558
|
-
/**
|
|
3559
|
-
* Pay a BOLT12 lightning offer
|
|
3560
|
-
*
|
|
3561
|
-
* # Arguments
|
|
3562
|
-
*
|
|
3563
|
-
* * `offer` - BOLT12 offer string
|
|
3564
|
-
* * `amount_sats` - Optional amount in sats (required if offer doesn't specify amount)
|
|
3565
|
-
*/
|
|
3566
3461
|
async payLightningOffer(offer, amountSats, asyncOpts_) /*throws*/{
|
|
3567
3462
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3568
3463
|
try {
|
|
@@ -3576,27 +3471,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3576
3471
|
throw __error;
|
|
3577
3472
|
}
|
|
3578
3473
|
}
|
|
3579
|
-
|
|
3580
|
-
/**
|
|
3581
|
-
* DEPRECATED: use `peek_address` instead
|
|
3582
|
-
*/
|
|
3583
|
-
async peakAddress(index, asyncOpts_) /*throws*/{
|
|
3584
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3585
|
-
try {
|
|
3586
|
-
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3587
|
-
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_peak_address(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterUInt32.lower(index));
|
|
3588
|
-
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3589
|
-
} catch (__error) {
|
|
3590
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
3591
|
-
__error.stack = __stack;
|
|
3592
|
-
}
|
|
3593
|
-
throw __error;
|
|
3594
|
-
}
|
|
3595
|
-
}
|
|
3596
|
-
|
|
3597
|
-
/**
|
|
3598
|
-
* Peek at an address at a specific index
|
|
3599
|
-
*/
|
|
3600
3474
|
async peekAddress(index, asyncOpts_) /*throws*/{
|
|
3601
3475
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3602
3476
|
try {
|
|
@@ -3610,10 +3484,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3610
3484
|
throw __error;
|
|
3611
3485
|
}
|
|
3612
3486
|
}
|
|
3613
|
-
|
|
3614
|
-
/**
|
|
3615
|
-
* Get all VTXOs that are part of pending boards
|
|
3616
|
-
*/
|
|
3617
3487
|
async pendingBoardVtxos(asyncOpts_) /*throws*/{
|
|
3618
3488
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3619
3489
|
try {
|
|
@@ -3627,10 +3497,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3627
3497
|
throw __error;
|
|
3628
3498
|
}
|
|
3629
3499
|
}
|
|
3630
|
-
|
|
3631
|
-
/**
|
|
3632
|
-
* Get all pending board operations
|
|
3633
|
-
*/
|
|
3634
3500
|
async pendingBoards(asyncOpts_) /*throws*/{
|
|
3635
3501
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3636
3502
|
try {
|
|
@@ -3644,10 +3510,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3644
3510
|
throw __error;
|
|
3645
3511
|
}
|
|
3646
3512
|
}
|
|
3647
|
-
|
|
3648
|
-
/**
|
|
3649
|
-
* Get total amount in pending exits (sats)
|
|
3650
|
-
*/
|
|
3651
3513
|
async pendingExitsTotalSats(asyncOpts_) /*throws*/{
|
|
3652
3514
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3653
3515
|
try {
|
|
@@ -3661,10 +3523,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3661
3523
|
throw __error;
|
|
3662
3524
|
}
|
|
3663
3525
|
}
|
|
3664
|
-
|
|
3665
|
-
/**
|
|
3666
|
-
* Get all pending lightning receives
|
|
3667
|
-
*/
|
|
3668
3526
|
async pendingLightningReceives(asyncOpts_) /*throws*/{
|
|
3669
3527
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3670
3528
|
try {
|
|
@@ -3678,10 +3536,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3678
3536
|
throw __error;
|
|
3679
3537
|
}
|
|
3680
3538
|
}
|
|
3681
|
-
|
|
3682
|
-
/**
|
|
3683
|
-
* Get VTXOs locked in pending Lightning sends
|
|
3684
|
-
*/
|
|
3685
3539
|
async pendingLightningSendVtxos(asyncOpts_) /*throws*/{
|
|
3686
3540
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3687
3541
|
try {
|
|
@@ -3695,10 +3549,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3695
3549
|
throw __error;
|
|
3696
3550
|
}
|
|
3697
3551
|
}
|
|
3698
|
-
|
|
3699
|
-
/**
|
|
3700
|
-
* Get all pending lightning sends
|
|
3701
|
-
*/
|
|
3702
3552
|
async pendingLightningSends(asyncOpts_) /*throws*/{
|
|
3703
3553
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3704
3554
|
try {
|
|
@@ -3712,10 +3562,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3712
3562
|
throw __error;
|
|
3713
3563
|
}
|
|
3714
3564
|
}
|
|
3715
|
-
|
|
3716
|
-
/**
|
|
3717
|
-
* Get VTXOs being used as inputs in pending rounds
|
|
3718
|
-
*/
|
|
3719
3565
|
async pendingRoundInputVtxos(asyncOpts_) /*throws*/{
|
|
3720
3566
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3721
3567
|
try {
|
|
@@ -3729,10 +3575,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3729
3575
|
throw __error;
|
|
3730
3576
|
}
|
|
3731
3577
|
}
|
|
3732
|
-
|
|
3733
|
-
/**
|
|
3734
|
-
* Get all pending round states
|
|
3735
|
-
*/
|
|
3736
3578
|
async pendingRoundStates(asyncOpts_) /*throws*/{
|
|
3737
3579
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3738
3580
|
try {
|
|
@@ -3746,18 +3588,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3746
3588
|
throw __error;
|
|
3747
3589
|
}
|
|
3748
3590
|
}
|
|
3749
|
-
|
|
3750
|
-
/**
|
|
3751
|
-
* Progress unilateral exits (broadcast, fee bump, advance state machine)
|
|
3752
|
-
*
|
|
3753
|
-
* This is the critical method for actually moving exits forward.
|
|
3754
|
-
* Call periodically after starting exits.
|
|
3755
|
-
*
|
|
3756
|
-
* # Arguments
|
|
3757
|
-
*
|
|
3758
|
-
* * `onchain_wallet` - Onchain wallet for building exit transactions
|
|
3759
|
-
* * `fee_rate_sat_per_vb` - Optional fee rate override in sats/vB
|
|
3760
|
-
*/
|
|
3761
3591
|
async progressExits(onchainWallet, feeRateSatPerVb, asyncOpts_) /*throws*/{
|
|
3762
3592
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3763
3593
|
try {
|
|
@@ -3771,12 +3601,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3771
3601
|
throw __error;
|
|
3772
3602
|
}
|
|
3773
3603
|
}
|
|
3774
|
-
|
|
3775
|
-
/**
|
|
3776
|
-
* Progress pending rounds
|
|
3777
|
-
*
|
|
3778
|
-
* Advances the state of all pending rounds. Call periodically.
|
|
3779
|
-
*/
|
|
3780
3604
|
async progressPendingRounds(asyncOpts_) /*throws*/{
|
|
3781
3605
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3782
3606
|
try {
|
|
@@ -3790,10 +3614,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3790
3614
|
throw __error;
|
|
3791
3615
|
}
|
|
3792
3616
|
}
|
|
3793
|
-
|
|
3794
|
-
/**
|
|
3795
|
-
* Get wallet properties
|
|
3796
|
-
*/
|
|
3797
3617
|
async properties(asyncOpts_) /*throws*/{
|
|
3798
3618
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3799
3619
|
try {
|
|
@@ -3807,12 +3627,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3807
3627
|
throw __error;
|
|
3808
3628
|
}
|
|
3809
3629
|
}
|
|
3810
|
-
|
|
3811
|
-
/**
|
|
3812
|
-
* Refresh the Ark server connection
|
|
3813
|
-
*
|
|
3814
|
-
* Re-establishes connection if it was lost.
|
|
3815
|
-
*/
|
|
3816
3630
|
async refreshServer(asyncOpts_) /*throws*/{
|
|
3817
3631
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3818
3632
|
try {
|
|
@@ -3826,10 +3640,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3826
3640
|
throw __error;
|
|
3827
3641
|
}
|
|
3828
3642
|
}
|
|
3829
|
-
|
|
3830
|
-
/**
|
|
3831
|
-
* Refresh specific VTXOs
|
|
3832
|
-
*/
|
|
3833
3643
|
async refreshVtxos(vtxoIds, asyncOpts_) /*throws*/{
|
|
3834
3644
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3835
3645
|
try {
|
|
@@ -3843,12 +3653,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3843
3653
|
throw __error;
|
|
3844
3654
|
}
|
|
3845
3655
|
}
|
|
3846
|
-
|
|
3847
|
-
/**
|
|
3848
|
-
* Refresh VTXOs in delegated (non-interactive) mode
|
|
3849
|
-
*
|
|
3850
|
-
* Returns the round state if a refresh was scheduled, null otherwise.
|
|
3851
|
-
*/
|
|
3852
3656
|
async refreshVtxosDelegated(vtxoIds, asyncOpts_) /*throws*/{
|
|
3853
3657
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3854
3658
|
try {
|
|
@@ -3862,16 +3666,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3862
3666
|
throw __error;
|
|
3863
3667
|
}
|
|
3864
3668
|
}
|
|
3865
|
-
|
|
3866
|
-
/**
|
|
3867
|
-
* Start a background daemon for the wallet.
|
|
3868
|
-
*
|
|
3869
|
-
* The daemon performs periodic syncs, exit progression and other
|
|
3870
|
-
* background work. It is stopped automatically when the wallet is dropped.
|
|
3871
|
-
* Callback-based onchain wallets are not supported for daemon mode and the
|
|
3872
|
-
* daemon will run without onchain capabilities in that case.
|
|
3873
|
-
* Calling this multiple times stops the previous daemon and starts a new one.
|
|
3874
|
-
*/
|
|
3875
3669
|
async runDaemon(onchainWallet, asyncOpts_) /*throws*/{
|
|
3876
3670
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3877
3671
|
try {
|
|
@@ -3911,19 +3705,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3911
3705
|
throw __error;
|
|
3912
3706
|
}
|
|
3913
3707
|
}
|
|
3914
|
-
|
|
3915
|
-
/**
|
|
3916
|
-
* Sign exit claim inputs in an external PSBT
|
|
3917
|
-
*
|
|
3918
|
-
* This is useful if you want to combine exit claims with other inputs
|
|
3919
|
-
* in a single transaction.
|
|
3920
|
-
*
|
|
3921
|
-
* # Arguments
|
|
3922
|
-
*
|
|
3923
|
-
* * `psbt_base64` - Base64-encoded PSBT to sign
|
|
3924
|
-
*
|
|
3925
|
-
* Returns the signed PSBT
|
|
3926
|
-
*/
|
|
3927
3708
|
async signExitClaimInputs(psbtBase64, asyncOpts_) /*throws*/{
|
|
3928
3709
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3929
3710
|
try {
|
|
@@ -3937,10 +3718,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3937
3718
|
throw __error;
|
|
3938
3719
|
}
|
|
3939
3720
|
}
|
|
3940
|
-
|
|
3941
|
-
/**
|
|
3942
|
-
* Get all spendable VTXOs
|
|
3943
|
-
*/
|
|
3944
3721
|
async spendableVtxos(asyncOpts_) /*throws*/{
|
|
3945
3722
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3946
3723
|
try {
|
|
@@ -3954,10 +3731,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3954
3731
|
throw __error;
|
|
3955
3732
|
}
|
|
3956
3733
|
}
|
|
3957
|
-
|
|
3958
|
-
/**
|
|
3959
|
-
* Start unilateral exit for the entire wallet
|
|
3960
|
-
*/
|
|
3961
3734
|
async startExitForEntireWallet(asyncOpts_) /*throws*/{
|
|
3962
3735
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3963
3736
|
try {
|
|
@@ -3971,12 +3744,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3971
3744
|
throw __error;
|
|
3972
3745
|
}
|
|
3973
3746
|
}
|
|
3974
|
-
|
|
3975
|
-
/**
|
|
3976
|
-
* Start unilateral exit for specific VTXOs
|
|
3977
|
-
*
|
|
3978
|
-
* Marks specific VTXOs for exit. Call progress_exits() to actually advance them.
|
|
3979
|
-
*/
|
|
3980
3747
|
async startExitForVtxos(vtxoIds, asyncOpts_) /*throws*/{
|
|
3981
3748
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3982
3749
|
try {
|
|
@@ -3990,10 +3757,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
3990
3757
|
throw __error;
|
|
3991
3758
|
}
|
|
3992
3759
|
}
|
|
3993
|
-
|
|
3994
|
-
/**
|
|
3995
|
-
* Stop the running daemon if any. No-op otherwise.
|
|
3996
|
-
*/
|
|
3997
3760
|
async stopDaemon(asyncOpts_) /*throws*/{
|
|
3998
3761
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3999
3762
|
try {
|
|
@@ -4007,12 +3770,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
4007
3770
|
throw __error;
|
|
4008
3771
|
}
|
|
4009
3772
|
}
|
|
4010
|
-
|
|
4011
|
-
/**
|
|
4012
|
-
* Lightweight sync with Ark server and blockchain
|
|
4013
|
-
* Note: Bark's sync() handles errors internally with logging.
|
|
4014
|
-
* The Throws annotation is for forward compatibility only.
|
|
4015
|
-
*/
|
|
4016
3773
|
async sync(asyncOpts_) /*throws*/{
|
|
4017
3774
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4018
3775
|
try {
|
|
@@ -4026,10 +3783,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
4026
3783
|
throw __error;
|
|
4027
3784
|
}
|
|
4028
3785
|
}
|
|
4029
|
-
|
|
4030
|
-
/**
|
|
4031
|
-
* Sync exit state (checks status but doesn't progress)
|
|
4032
|
-
*/
|
|
4033
3786
|
async syncExits(onchainWallet, asyncOpts_) /*throws*/{
|
|
4034
3787
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4035
3788
|
try {
|
|
@@ -4043,10 +3796,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
4043
3796
|
throw __error;
|
|
4044
3797
|
}
|
|
4045
3798
|
}
|
|
4046
|
-
|
|
4047
|
-
/**
|
|
4048
|
-
* Sync pending board transactions
|
|
4049
|
-
*/
|
|
4050
3799
|
async syncPendingBoards(asyncOpts_) /*throws*/{
|
|
4051
3800
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4052
3801
|
try {
|
|
@@ -4073,15 +3822,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
4073
3822
|
throw __error;
|
|
4074
3823
|
}
|
|
4075
3824
|
}
|
|
4076
|
-
|
|
4077
|
-
/**
|
|
4078
|
-
* Try to claim a specific lightning receive by payment hash
|
|
4079
|
-
*
|
|
4080
|
-
* # Arguments
|
|
4081
|
-
*
|
|
4082
|
-
* * `payment_hash` - Payment hash as hex string
|
|
4083
|
-
* * `wait` - Whether to wait for claim to complete
|
|
4084
|
-
*/
|
|
4085
3825
|
async tryClaimLightningReceive(paymentHash, wait, asyncOpts_) /*throws*/{
|
|
4086
3826
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4087
3827
|
try {
|
|
@@ -4095,14 +3835,6 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
4095
3835
|
throw __error;
|
|
4096
3836
|
}
|
|
4097
3837
|
}
|
|
4098
|
-
|
|
4099
|
-
/**
|
|
4100
|
-
* Validate an Ark address against the connected server
|
|
4101
|
-
*
|
|
4102
|
-
* This performs full validation including checking if the address
|
|
4103
|
-
* belongs to the currently connected Ark server.
|
|
4104
|
-
* For basic format validation only, use validate_ark_address() instead.
|
|
4105
|
-
*/
|
|
4106
3838
|
async validateArkoorAddress(address, asyncOpts_) /*throws*/{
|
|
4107
3839
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4108
3840
|
try {
|
|
@@ -4182,6 +3914,9 @@ const uniffiTypeWalletObjectFactory = (() => {
|
|
|
4182
3914
|
// FfiConverter for WalletLike
|
|
4183
3915
|
const FfiConverterTypeWallet = new FfiConverterObject(uniffiTypeWalletObjectFactory);
|
|
4184
3916
|
|
|
3917
|
+
// FfiConverter for boolean | undefined
|
|
3918
|
+
const FfiConverterOptionalBool = new FfiConverterOptional(FfiConverterBool);
|
|
3919
|
+
|
|
4185
3920
|
// FfiConverter for ArkInfo | undefined
|
|
4186
3921
|
const FfiConverterOptionalTypeArkInfo = new FfiConverterOptional(FfiConverterTypeArkInfo);
|
|
4187
3922
|
|
|
@@ -4209,6 +3944,9 @@ const FfiConverterOptionalUInt32 = new FfiConverterOptional(FfiConverterUInt32);
|
|
|
4209
3944
|
// FfiConverter for /*u64*/bigint | undefined
|
|
4210
3945
|
const FfiConverterOptionalUInt64 = new FfiConverterOptional(FfiConverterUInt64);
|
|
4211
3946
|
|
|
3947
|
+
// FfiConverter for /*u8*/number | undefined
|
|
3948
|
+
const FfiConverterOptionalUInt8 = new FfiConverterOptional(FfiConverterUInt8);
|
|
3949
|
+
|
|
4212
3950
|
// FfiConverter for Array<Destination>
|
|
4213
3951
|
const FfiConverterArrayTypeDestination = new FfiConverterArray(FfiConverterTypeDestination);
|
|
4214
3952
|
|
|
@@ -4266,348 +4004,345 @@ function uniffiEnsureInitialized() {
|
|
|
4266
4004
|
if (bindingsContractVersion !== scaffoldingContractVersion) {
|
|
4267
4005
|
throw new UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion, bindingsContractVersion);
|
|
4268
4006
|
}
|
|
4269
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_func_extract_tx_from_psbt() !==
|
|
4007
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_func_extract_tx_from_psbt() !== 16937) {
|
|
4270
4008
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_extract_tx_from_psbt");
|
|
4271
4009
|
}
|
|
4272
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_func_generate_mnemonic() !==
|
|
4010
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_func_generate_mnemonic() !== 10284) {
|
|
4273
4011
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_generate_mnemonic");
|
|
4274
4012
|
}
|
|
4275
|
-
if (nativeModule().
|
|
4276
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_set_logger");
|
|
4277
|
-
}
|
|
4278
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_func_validate_ark_address() !== 49932) {
|
|
4013
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_func_validate_ark_address() !== 6717) {
|
|
4279
4014
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_validate_ark_address");
|
|
4280
4015
|
}
|
|
4281
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_func_validate_mnemonic() !==
|
|
4016
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_func_validate_mnemonic() !== 2618) {
|
|
4282
4017
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_validate_mnemonic");
|
|
4283
4018
|
}
|
|
4284
|
-
if (nativeModule().
|
|
4019
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_func_set_logger() !== 376) {
|
|
4020
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_set_logger");
|
|
4021
|
+
}
|
|
4022
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_notificationholder_cancel_next_notification_wait() !== 45269) {
|
|
4285
4023
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_notificationholder_cancel_next_notification_wait");
|
|
4286
4024
|
}
|
|
4287
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_notificationholder_next_notification() !==
|
|
4025
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_notificationholder_next_notification() !== 320) {
|
|
4288
4026
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_notificationholder_next_notification");
|
|
4289
4027
|
}
|
|
4290
|
-
if (nativeModule().
|
|
4028
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance() !== 38086) {
|
|
4029
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance");
|
|
4030
|
+
}
|
|
4031
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx() !== 25200) {
|
|
4032
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx");
|
|
4033
|
+
}
|
|
4034
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx() !== 29583) {
|
|
4035
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx");
|
|
4036
|
+
}
|
|
4037
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_psbt() !== 10227) {
|
|
4038
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_psbt");
|
|
4039
|
+
}
|
|
4040
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx() !== 10525) {
|
|
4041
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx");
|
|
4042
|
+
}
|
|
4043
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block() !== 57629) {
|
|
4044
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block");
|
|
4045
|
+
}
|
|
4046
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx() !== 36118) {
|
|
4047
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx");
|
|
4048
|
+
}
|
|
4049
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp() !== 38903) {
|
|
4050
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp");
|
|
4051
|
+
}
|
|
4052
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp() !== 41506) {
|
|
4053
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp");
|
|
4054
|
+
}
|
|
4055
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_barklogger_log() !== 8627) {
|
|
4056
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_barklogger_log");
|
|
4057
|
+
}
|
|
4058
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_balance() !== 10540) {
|
|
4291
4059
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_balance");
|
|
4292
4060
|
}
|
|
4293
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_new_address() !==
|
|
4061
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_new_address() !== 27918) {
|
|
4294
4062
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_new_address");
|
|
4295
4063
|
}
|
|
4296
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_send() !==
|
|
4064
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_send() !== 12509) {
|
|
4297
4065
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_send");
|
|
4298
4066
|
}
|
|
4299
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_sync() !==
|
|
4067
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_sync() !== 38870) {
|
|
4300
4068
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_sync");
|
|
4301
4069
|
}
|
|
4302
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_exits_claimable_at_height() !==
|
|
4070
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_exits_claimable_at_height() !== 35095) {
|
|
4303
4071
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_all_exits_claimable_at_height");
|
|
4304
4072
|
}
|
|
4305
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_vtxos() !==
|
|
4073
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_vtxos() !== 38449) {
|
|
4306
4074
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_all_vtxos");
|
|
4307
4075
|
}
|
|
4308
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_ark_info() !==
|
|
4076
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_ark_info() !== 37357) {
|
|
4309
4077
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_ark_info");
|
|
4310
4078
|
}
|
|
4311
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_balance() !==
|
|
4079
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_balance() !== 26361) {
|
|
4312
4080
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_balance");
|
|
4313
4081
|
}
|
|
4314
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_all() !==
|
|
4082
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_all() !== 26567) {
|
|
4315
4083
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_board_all");
|
|
4316
4084
|
}
|
|
4317
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_amount() !==
|
|
4085
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_amount() !== 40800) {
|
|
4318
4086
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_board_amount");
|
|
4319
4087
|
}
|
|
4320
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice() !==
|
|
4088
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice() !== 18425) {
|
|
4321
4089
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice");
|
|
4322
4090
|
}
|
|
4323
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_broadcast_tx() !==
|
|
4091
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_broadcast_tx() !== 48884) {
|
|
4324
4092
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_broadcast_tx");
|
|
4325
4093
|
}
|
|
4326
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds() !==
|
|
4094
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds() !== 49283) {
|
|
4327
4095
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds");
|
|
4328
4096
|
}
|
|
4329
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_lightning_receive() !==
|
|
4097
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_lightning_receive() !== 7354) {
|
|
4330
4098
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_cancel_lightning_receive");
|
|
4331
4099
|
}
|
|
4332
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round() !==
|
|
4100
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round() !== 21817) {
|
|
4333
4101
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round");
|
|
4334
4102
|
}
|
|
4335
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment() !==
|
|
4103
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment() !== 2315) {
|
|
4336
4104
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment");
|
|
4337
4105
|
}
|
|
4338
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_claimable_lightning_receive_balance_sats() !==
|
|
4106
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_claimable_lightning_receive_balance_sats() !== 57824) {
|
|
4339
4107
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_claimable_lightning_receive_balance_sats");
|
|
4340
4108
|
}
|
|
4341
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_config() !==
|
|
4109
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_config() !== 35661) {
|
|
4342
4110
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_config");
|
|
4343
4111
|
}
|
|
4344
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_drain_exits() !==
|
|
4112
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_drain_exits() !== 61748) {
|
|
4345
4113
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_drain_exits");
|
|
4346
4114
|
}
|
|
4347
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_arkoor_payment_fee() !==
|
|
4115
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_arkoor_payment_fee() !== 54949) {
|
|
4348
4116
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_arkoor_payment_fee");
|
|
4349
4117
|
}
|
|
4350
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee() !==
|
|
4118
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee() !== 2350) {
|
|
4351
4119
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee");
|
|
4352
4120
|
}
|
|
4353
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee() !==
|
|
4121
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee() !== 35587) {
|
|
4354
4122
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee");
|
|
4355
4123
|
}
|
|
4356
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee() !==
|
|
4124
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee() !== 16837) {
|
|
4357
4125
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee");
|
|
4358
4126
|
}
|
|
4359
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_all_fee() !==
|
|
4127
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_all_fee() !== 18596) {
|
|
4360
4128
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_all_fee");
|
|
4361
4129
|
}
|
|
4362
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee() !==
|
|
4130
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee() !== 13570) {
|
|
4363
4131
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee");
|
|
4364
4132
|
}
|
|
4365
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee() !==
|
|
4133
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee() !== 51683) {
|
|
4366
4134
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee");
|
|
4367
4135
|
}
|
|
4368
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_send_onchain_fee() !==
|
|
4136
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_send_onchain_fee() !== 53725) {
|
|
4369
4137
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_send_onchain_fee");
|
|
4370
4138
|
}
|
|
4371
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_fingerprint() !==
|
|
4139
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_fingerprint() !== 31048) {
|
|
4372
4140
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_fingerprint");
|
|
4373
4141
|
}
|
|
4374
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_status() !==
|
|
4142
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_status() !== 849) {
|
|
4375
4143
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_exit_status");
|
|
4376
4144
|
}
|
|
4377
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_vtxos() !==
|
|
4145
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_vtxos() !== 62832) {
|
|
4378
4146
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_exit_vtxos");
|
|
4379
4147
|
}
|
|
4380
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_expiring_vtxos() !==
|
|
4148
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_expiring_vtxos() !== 62926) {
|
|
4381
4149
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_expiring_vtxos");
|
|
4382
4150
|
}
|
|
4383
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_first_expiring_vtxo_blockheight() !==
|
|
4151
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_first_expiring_vtxo_blockheight() !== 9891) {
|
|
4384
4152
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_first_expiring_vtxo_blockheight");
|
|
4385
4153
|
}
|
|
4386
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_next_required_refresh_blockheight() !==
|
|
4154
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_next_required_refresh_blockheight() !== 60321) {
|
|
4387
4155
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_next_required_refresh_blockheight");
|
|
4388
4156
|
}
|
|
4389
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxo_by_id() !==
|
|
4157
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxo_by_id() !== 54348) {
|
|
4390
4158
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_vtxo_by_id");
|
|
4391
4159
|
}
|
|
4392
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxos_to_refresh() !==
|
|
4160
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxos_to_refresh() !== 56166) {
|
|
4393
4161
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_vtxos_to_refresh");
|
|
4394
4162
|
}
|
|
4395
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_has_pending_exits() !==
|
|
4163
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_has_pending_exits() !== 31064) {
|
|
4396
4164
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_has_pending_exits");
|
|
4397
4165
|
}
|
|
4398
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_history() !==
|
|
4166
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_history() !== 49526) {
|
|
4399
4167
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_history");
|
|
4400
4168
|
}
|
|
4401
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method() !==
|
|
4169
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method() !== 49277) {
|
|
4402
4170
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method");
|
|
4403
4171
|
}
|
|
4404
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_import_vtxo() !==
|
|
4172
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_import_vtxo() !== 58528) {
|
|
4405
4173
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_import_vtxo");
|
|
4406
4174
|
}
|
|
4407
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status() !==
|
|
4175
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status() !== 37213) {
|
|
4408
4176
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status");
|
|
4409
4177
|
}
|
|
4410
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits() !==
|
|
4178
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits() !== 46928) {
|
|
4411
4179
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits");
|
|
4412
4180
|
}
|
|
4413
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization() !==
|
|
4181
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization() !== 37256) {
|
|
4414
4182
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization");
|
|
4415
4183
|
}
|
|
4416
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier() !==
|
|
4184
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier() !== 4339) {
|
|
4417
4185
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier");
|
|
4418
4186
|
}
|
|
4419
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance() !==
|
|
4187
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance() !== 42287) {
|
|
4420
4188
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance");
|
|
4421
4189
|
}
|
|
4422
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_delegated() !==
|
|
4190
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_delegated() !== 20659) {
|
|
4423
4191
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance_delegated");
|
|
4424
4192
|
}
|
|
4425
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh() !==
|
|
4193
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh() !== 13823) {
|
|
4426
4194
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh");
|
|
4427
4195
|
}
|
|
4428
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain() !==
|
|
4196
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain() !== 41935) {
|
|
4429
4197
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain");
|
|
4430
4198
|
}
|
|
4431
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated() !==
|
|
4199
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated() !== 23897) {
|
|
4432
4200
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated");
|
|
4433
4201
|
}
|
|
4434
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maybe_schedule_maintenance_refresh() !==
|
|
4202
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maybe_schedule_maintenance_refresh() !== 24944) {
|
|
4435
4203
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maybe_schedule_maintenance_refresh");
|
|
4436
4204
|
}
|
|
4437
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_network() !==
|
|
4205
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_network() !== 28437) {
|
|
4438
4206
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_network");
|
|
4439
4207
|
}
|
|
4440
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address() !==
|
|
4208
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address() !== 46889) {
|
|
4441
4209
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_new_address");
|
|
4442
4210
|
}
|
|
4443
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address_with_index() !==
|
|
4211
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address_with_index() !== 26065) {
|
|
4444
4212
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_new_address_with_index");
|
|
4445
4213
|
}
|
|
4446
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_next_round_start_time() !==
|
|
4214
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_next_round_start_time() !== 18913) {
|
|
4447
4215
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_next_round_start_time");
|
|
4448
4216
|
}
|
|
4449
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_notifications() !==
|
|
4217
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_notifications() !== 4292) {
|
|
4450
4218
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_notifications");
|
|
4451
4219
|
}
|
|
4452
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_all() !==
|
|
4220
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_all() !== 33338) {
|
|
4453
4221
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_offboard_all");
|
|
4454
4222
|
}
|
|
4455
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos() !==
|
|
4223
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos() !== 45323) {
|
|
4456
4224
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos");
|
|
4457
4225
|
}
|
|
4458
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address() !==
|
|
4226
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address() !== 48668) {
|
|
4459
4227
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address");
|
|
4460
4228
|
}
|
|
4461
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice() !==
|
|
4229
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice() !== 64416) {
|
|
4462
4230
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice");
|
|
4463
4231
|
}
|
|
4464
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer() !==
|
|
4232
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer() !== 7458) {
|
|
4465
4233
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer");
|
|
4466
4234
|
}
|
|
4467
|
-
if (nativeModule().
|
|
4468
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_peak_address");
|
|
4469
|
-
}
|
|
4470
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_peek_address() !== 6861) {
|
|
4235
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_peek_address() !== 55042) {
|
|
4471
4236
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_peek_address");
|
|
4472
4237
|
}
|
|
4473
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos() !==
|
|
4238
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos() !== 25647) {
|
|
4474
4239
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos");
|
|
4475
4240
|
}
|
|
4476
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_boards() !==
|
|
4241
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_boards() !== 41590) {
|
|
4477
4242
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_boards");
|
|
4478
4243
|
}
|
|
4479
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_exits_total_sats() !==
|
|
4244
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_exits_total_sats() !== 8001) {
|
|
4480
4245
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_exits_total_sats");
|
|
4481
4246
|
}
|
|
4482
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_receives() !==
|
|
4247
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_receives() !== 59673) {
|
|
4483
4248
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_lightning_receives");
|
|
4484
4249
|
}
|
|
4485
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_send_vtxos() !==
|
|
4250
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_send_vtxos() !== 43740) {
|
|
4486
4251
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_lightning_send_vtxos");
|
|
4487
4252
|
}
|
|
4488
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_sends() !==
|
|
4253
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_sends() !== 47848) {
|
|
4489
4254
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_lightning_sends");
|
|
4490
4255
|
}
|
|
4491
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos() !==
|
|
4256
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos() !== 21093) {
|
|
4492
4257
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos");
|
|
4493
4258
|
}
|
|
4494
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_states() !==
|
|
4259
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_states() !== 3426) {
|
|
4495
4260
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_round_states");
|
|
4496
4261
|
}
|
|
4497
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_exits() !==
|
|
4262
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_exits() !== 27512) {
|
|
4498
4263
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_progress_exits");
|
|
4499
4264
|
}
|
|
4500
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_pending_rounds() !==
|
|
4265
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_pending_rounds() !== 2915) {
|
|
4501
4266
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_progress_pending_rounds");
|
|
4502
4267
|
}
|
|
4503
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_properties() !==
|
|
4268
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_properties() !== 47133) {
|
|
4504
4269
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_properties");
|
|
4505
4270
|
}
|
|
4506
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_server() !==
|
|
4271
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_server() !== 2646) {
|
|
4507
4272
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_refresh_server");
|
|
4508
4273
|
}
|
|
4509
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos() !==
|
|
4274
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos() !== 18792) {
|
|
4510
4275
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos");
|
|
4511
4276
|
}
|
|
4512
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated() !==
|
|
4277
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated() !== 32568) {
|
|
4513
4278
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated");
|
|
4514
4279
|
}
|
|
4515
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_run_daemon() !==
|
|
4280
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_run_daemon() !== 62932) {
|
|
4516
4281
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_run_daemon");
|
|
4517
4282
|
}
|
|
4518
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment() !==
|
|
4283
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment() !== 50386) {
|
|
4519
4284
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment");
|
|
4520
4285
|
}
|
|
4521
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_onchain() !==
|
|
4286
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_onchain() !== 38644) {
|
|
4522
4287
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_send_onchain");
|
|
4523
4288
|
}
|
|
4524
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sign_exit_claim_inputs() !==
|
|
4289
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sign_exit_claim_inputs() !== 53765) {
|
|
4525
4290
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sign_exit_claim_inputs");
|
|
4526
4291
|
}
|
|
4527
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_spendable_vtxos() !==
|
|
4292
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_spendable_vtxos() !== 65142) {
|
|
4528
4293
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_spendable_vtxos");
|
|
4529
4294
|
}
|
|
4530
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_entire_wallet() !==
|
|
4295
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_entire_wallet() !== 31961) {
|
|
4531
4296
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_start_exit_for_entire_wallet");
|
|
4532
4297
|
}
|
|
4533
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos() !==
|
|
4298
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos() !== 34614) {
|
|
4534
4299
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos");
|
|
4535
4300
|
}
|
|
4536
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_stop_daemon() !==
|
|
4301
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_stop_daemon() !== 27848) {
|
|
4537
4302
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_stop_daemon");
|
|
4538
4303
|
}
|
|
4539
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync() !==
|
|
4304
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync() !== 38360) {
|
|
4540
4305
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sync");
|
|
4541
4306
|
}
|
|
4542
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_exits() !==
|
|
4307
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_exits() !== 47734) {
|
|
4543
4308
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sync_exits");
|
|
4544
4309
|
}
|
|
4545
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards() !==
|
|
4310
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards() !== 49211) {
|
|
4546
4311
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards");
|
|
4547
4312
|
}
|
|
4548
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives() !==
|
|
4313
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives() !== 63130) {
|
|
4549
4314
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives");
|
|
4550
4315
|
}
|
|
4551
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive() !==
|
|
4316
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive() !== 9806) {
|
|
4552
4317
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive");
|
|
4553
4318
|
}
|
|
4554
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address() !==
|
|
4319
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address() !== 55064) {
|
|
4555
4320
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address");
|
|
4556
4321
|
}
|
|
4557
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxos() !==
|
|
4322
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxos() !== 5883) {
|
|
4558
4323
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_vtxos");
|
|
4559
4324
|
}
|
|
4560
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_onchainwallet_custom() !==
|
|
4325
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_onchainwallet_custom() !== 1549) {
|
|
4561
4326
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_onchainwallet_custom");
|
|
4562
4327
|
}
|
|
4563
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_onchainwallet_default() !==
|
|
4328
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_onchainwallet_default() !== 3877) {
|
|
4564
4329
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_onchainwallet_default");
|
|
4565
4330
|
}
|
|
4566
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_create() !==
|
|
4331
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_create() !== 60393) {
|
|
4567
4332
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_wallet_create");
|
|
4568
4333
|
}
|
|
4569
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_create_with_onchain() !==
|
|
4334
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_create_with_onchain() !== 55243) {
|
|
4570
4335
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_wallet_create_with_onchain");
|
|
4571
4336
|
}
|
|
4572
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open() !==
|
|
4337
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open() !== 36564) {
|
|
4573
4338
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_wallet_open");
|
|
4574
4339
|
}
|
|
4575
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open_with_daemon() !==
|
|
4340
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open_with_daemon() !== 9668) {
|
|
4576
4341
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_wallet_open_with_daemon");
|
|
4577
4342
|
}
|
|
4578
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open_with_onchain() !==
|
|
4343
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open_with_onchain() !== 39500) {
|
|
4579
4344
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_wallet_open_with_onchain");
|
|
4580
4345
|
}
|
|
4581
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_barklogger_log() !== 1414) {
|
|
4582
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_barklogger_log");
|
|
4583
|
-
}
|
|
4584
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance() !== 16407) {
|
|
4585
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance");
|
|
4586
|
-
}
|
|
4587
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx() !== 7671) {
|
|
4588
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx");
|
|
4589
|
-
}
|
|
4590
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx() !== 15428) {
|
|
4591
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx");
|
|
4592
|
-
}
|
|
4593
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_tx() !== 2070) {
|
|
4594
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_tx");
|
|
4595
|
-
}
|
|
4596
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx() !== 35041) {
|
|
4597
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx");
|
|
4598
|
-
}
|
|
4599
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block() !== 2541) {
|
|
4600
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block");
|
|
4601
|
-
}
|
|
4602
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx() !== 27495) {
|
|
4603
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx");
|
|
4604
|
-
}
|
|
4605
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp() !== 34889) {
|
|
4606
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp");
|
|
4607
|
-
}
|
|
4608
|
-
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp() !== 41685) {
|
|
4609
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp");
|
|
4610
|
-
}
|
|
4611
4346
|
uniffiCallbackInterfaceBarkLogger.register();
|
|
4612
4347
|
uniffiCallbackInterfaceCustomOnchainWalletCallbacks.register();
|
|
4613
4348
|
}
|
|
@@ -4618,9 +4353,11 @@ export default Object.freeze({
|
|
|
4618
4353
|
FfiConverterTypeArkInfo,
|
|
4619
4354
|
FfiConverterTypeBalance,
|
|
4620
4355
|
FfiConverterTypeBarkError,
|
|
4356
|
+
FfiConverterTypeBarkLogger,
|
|
4621
4357
|
FfiConverterTypeBlockRef,
|
|
4622
4358
|
FfiConverterTypeConfig,
|
|
4623
4359
|
FfiConverterTypeCpfpParams,
|
|
4360
|
+
FfiConverterTypeCustomOnchainWalletCallbacks,
|
|
4624
4361
|
FfiConverterTypeDestination,
|
|
4625
4362
|
FfiConverterTypeExitClaimTransaction,
|
|
4626
4363
|
FfiConverterTypeExitProgressStatus,
|