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