@secondts/bark-react-native 0.6.3 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/cpp/generated/bark.cpp +191 -9
- package/cpp/generated/bark.hpp +10 -0
- package/lib/commonjs/generated/bark-ffi.js.map +1 -1
- package/lib/commonjs/generated/bark.js +274 -18
- package/lib/commonjs/generated/bark.js.map +1 -1
- package/lib/module/generated/bark-ffi.js.map +1 -1
- package/lib/module/generated/bark.js +273 -17
- package/lib/module/generated/bark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts +13 -3
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark.d.ts +200 -17
- package/lib/typescript/commonjs/src/generated/bark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark-ffi.d.ts +13 -3
- package/lib/typescript/module/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark.d.ts +200 -17
- package/lib/typescript/module/src/generated/bark.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/generated/bark-ffi.ts +30 -3
- package/src/generated/bark.ts +493 -27
package/src/generated/bark.ts
CHANGED
|
@@ -1051,9 +1051,23 @@ const FfiConverterTypeLightningReceive = (() => {
|
|
|
1051
1051
|
|
|
1052
1052
|
export type LightningSend = {
|
|
1053
1053
|
invoice: string;
|
|
1054
|
+
/**
|
|
1055
|
+
* Amount being paid, in sats (`payment_amount`).
|
|
1056
|
+
*/
|
|
1054
1057
|
amountSats: /*u64*/ bigint;
|
|
1058
|
+
/**
|
|
1059
|
+
* Routing/ark fee for the send, in sats.
|
|
1060
|
+
*/
|
|
1061
|
+
feeSats: /*u64*/ bigint;
|
|
1062
|
+
/**
|
|
1063
|
+
* Number of input VTXOs locked into the in-flight HTLC.
|
|
1064
|
+
*/
|
|
1055
1065
|
htlcVtxoCount: /*u32*/ number;
|
|
1056
|
-
|
|
1066
|
+
/**
|
|
1067
|
+
* Whether the send is stuck in the revocation-failed state: the payment
|
|
1068
|
+
* failed but revoking the HTLC also failed
|
|
1069
|
+
*/
|
|
1070
|
+
hasFailedRevocation: boolean;
|
|
1057
1071
|
};
|
|
1058
1072
|
|
|
1059
1073
|
/**
|
|
@@ -1080,22 +1094,25 @@ const FfiConverterTypeLightningSend = (() => {
|
|
|
1080
1094
|
return {
|
|
1081
1095
|
invoice: FfiConverterString.read(from),
|
|
1082
1096
|
amountSats: FfiConverterUInt64.read(from),
|
|
1097
|
+
feeSats: FfiConverterUInt64.read(from),
|
|
1083
1098
|
htlcVtxoCount: FfiConverterUInt32.read(from),
|
|
1084
|
-
|
|
1099
|
+
hasFailedRevocation: FfiConverterBool.read(from),
|
|
1085
1100
|
};
|
|
1086
1101
|
}
|
|
1087
1102
|
write(value: TypeName, into: RustBuffer): void {
|
|
1088
1103
|
FfiConverterString.write(value.invoice, into);
|
|
1089
1104
|
FfiConverterUInt64.write(value.amountSats, into);
|
|
1105
|
+
FfiConverterUInt64.write(value.feeSats, into);
|
|
1090
1106
|
FfiConverterUInt32.write(value.htlcVtxoCount, into);
|
|
1091
|
-
|
|
1107
|
+
FfiConverterBool.write(value.hasFailedRevocation, into);
|
|
1092
1108
|
}
|
|
1093
1109
|
allocationSize(value: TypeName): number {
|
|
1094
1110
|
return (
|
|
1095
1111
|
FfiConverterString.allocationSize(value.invoice) +
|
|
1096
1112
|
FfiConverterUInt64.allocationSize(value.amountSats) +
|
|
1113
|
+
FfiConverterUInt64.allocationSize(value.feeSats) +
|
|
1097
1114
|
FfiConverterUInt32.allocationSize(value.htlcVtxoCount) +
|
|
1098
|
-
|
|
1115
|
+
FfiConverterBool.allocationSize(value.hasFailedRevocation)
|
|
1099
1116
|
);
|
|
1100
1117
|
}
|
|
1101
1118
|
}
|
|
@@ -2406,6 +2423,206 @@ const FfiConverterTypeBarkError = (() => {
|
|
|
2406
2423
|
return new FFIConverter();
|
|
2407
2424
|
})();
|
|
2408
2425
|
|
|
2426
|
+
// Enum: LightningSendStatus
|
|
2427
|
+
export enum LightningSendStatus_Tags {
|
|
2428
|
+
Unknown = "Unknown",
|
|
2429
|
+
InProgress = "InProgress",
|
|
2430
|
+
Paid = "Paid",
|
|
2431
|
+
}
|
|
2432
|
+
/**
|
|
2433
|
+
* Terminal/in-flight state of an outgoing lightning send.
|
|
2434
|
+
*
|
|
2435
|
+
* Mirrors `bark`'s `LightningSendState`. `pay_lightning_*` and
|
|
2436
|
+
* `check_lightning_payment` now return this so callers can drive the
|
|
2437
|
+
* crash-safe send flow themselves (initiate with `wait = false`, then poll).
|
|
2438
|
+
*/
|
|
2439
|
+
export const LightningSendStatus = (() => {
|
|
2440
|
+
type Unknown__interface = {
|
|
2441
|
+
tag: LightningSendStatus_Tags.Unknown;
|
|
2442
|
+
};
|
|
2443
|
+
|
|
2444
|
+
/**
|
|
2445
|
+
* No record of this payment (never started, or already pruned).
|
|
2446
|
+
*/
|
|
2447
|
+
class Unknown_ extends UniffiEnum implements Unknown__interface {
|
|
2448
|
+
/**
|
|
2449
|
+
* @private
|
|
2450
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2451
|
+
*/
|
|
2452
|
+
readonly [uniffiTypeNameSymbol] = "LightningSendStatus";
|
|
2453
|
+
readonly tag = LightningSendStatus_Tags.Unknown;
|
|
2454
|
+
constructor() {
|
|
2455
|
+
super("LightningSendStatus", "Unknown");
|
|
2456
|
+
}
|
|
2457
|
+
|
|
2458
|
+
static new(): Unknown_ {
|
|
2459
|
+
return new Unknown_();
|
|
2460
|
+
}
|
|
2461
|
+
|
|
2462
|
+
static instanceOf(obj: any): obj is Unknown_ {
|
|
2463
|
+
return obj.tag === LightningSendStatus_Tags.Unknown;
|
|
2464
|
+
}
|
|
2465
|
+
}
|
|
2466
|
+
|
|
2467
|
+
type InProgress__interface = {
|
|
2468
|
+
tag: LightningSendStatus_Tags.InProgress;
|
|
2469
|
+
inner: Readonly<{ send: LightningSend }>;
|
|
2470
|
+
};
|
|
2471
|
+
|
|
2472
|
+
/**
|
|
2473
|
+
* Send is in flight; HTLC VTXOs are locked.
|
|
2474
|
+
*/
|
|
2475
|
+
class InProgress_ extends UniffiEnum implements InProgress__interface {
|
|
2476
|
+
/**
|
|
2477
|
+
* @private
|
|
2478
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2479
|
+
*/
|
|
2480
|
+
readonly [uniffiTypeNameSymbol] = "LightningSendStatus";
|
|
2481
|
+
readonly tag = LightningSendStatus_Tags.InProgress;
|
|
2482
|
+
readonly inner: Readonly<{ send: LightningSend }>;
|
|
2483
|
+
constructor(inner: { send: LightningSend }) {
|
|
2484
|
+
super("LightningSendStatus", "InProgress");
|
|
2485
|
+
this.inner = Object.freeze(inner);
|
|
2486
|
+
}
|
|
2487
|
+
|
|
2488
|
+
static new(inner: { send: LightningSend }): InProgress_ {
|
|
2489
|
+
return new InProgress_(inner);
|
|
2490
|
+
}
|
|
2491
|
+
|
|
2492
|
+
static instanceOf(obj: any): obj is InProgress_ {
|
|
2493
|
+
return obj.tag === LightningSendStatus_Tags.InProgress;
|
|
2494
|
+
}
|
|
2495
|
+
}
|
|
2496
|
+
|
|
2497
|
+
type Paid__interface = {
|
|
2498
|
+
tag: LightningSendStatus_Tags.Paid;
|
|
2499
|
+
inner: Readonly<{ paymentHash: string; preimage: string }>;
|
|
2500
|
+
};
|
|
2501
|
+
|
|
2502
|
+
/**
|
|
2503
|
+
* Send has settled; the preimage proves payment.
|
|
2504
|
+
*/
|
|
2505
|
+
class Paid_ extends UniffiEnum implements Paid__interface {
|
|
2506
|
+
/**
|
|
2507
|
+
* @private
|
|
2508
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2509
|
+
*/
|
|
2510
|
+
readonly [uniffiTypeNameSymbol] = "LightningSendStatus";
|
|
2511
|
+
readonly tag = LightningSendStatus_Tags.Paid;
|
|
2512
|
+
readonly inner: Readonly<{ paymentHash: string; preimage: string }>;
|
|
2513
|
+
constructor(inner: { paymentHash: string; preimage: string }) {
|
|
2514
|
+
super("LightningSendStatus", "Paid");
|
|
2515
|
+
this.inner = Object.freeze(inner);
|
|
2516
|
+
}
|
|
2517
|
+
|
|
2518
|
+
static new(inner: { paymentHash: string; preimage: string }): Paid_ {
|
|
2519
|
+
return new Paid_(inner);
|
|
2520
|
+
}
|
|
2521
|
+
|
|
2522
|
+
static instanceOf(obj: any): obj is Paid_ {
|
|
2523
|
+
return obj.tag === LightningSendStatus_Tags.Paid;
|
|
2524
|
+
}
|
|
2525
|
+
}
|
|
2526
|
+
|
|
2527
|
+
function instanceOf(obj: any): obj is LightningSendStatus {
|
|
2528
|
+
return obj[uniffiTypeNameSymbol] === "LightningSendStatus";
|
|
2529
|
+
}
|
|
2530
|
+
|
|
2531
|
+
return Object.freeze({
|
|
2532
|
+
instanceOf,
|
|
2533
|
+
Unknown: Unknown_,
|
|
2534
|
+
InProgress: InProgress_,
|
|
2535
|
+
Paid: Paid_,
|
|
2536
|
+
});
|
|
2537
|
+
})();
|
|
2538
|
+
|
|
2539
|
+
/**
|
|
2540
|
+
* Terminal/in-flight state of an outgoing lightning send.
|
|
2541
|
+
*
|
|
2542
|
+
* Mirrors `bark`'s `LightningSendState`. `pay_lightning_*` and
|
|
2543
|
+
* `check_lightning_payment` now return this so callers can drive the
|
|
2544
|
+
* crash-safe send flow themselves (initiate with `wait = false`, then poll).
|
|
2545
|
+
*/
|
|
2546
|
+
|
|
2547
|
+
export type LightningSendStatus = InstanceType<
|
|
2548
|
+
(typeof LightningSendStatus)[keyof Omit<
|
|
2549
|
+
typeof LightningSendStatus,
|
|
2550
|
+
"instanceOf"
|
|
2551
|
+
>]
|
|
2552
|
+
>;
|
|
2553
|
+
|
|
2554
|
+
// FfiConverter for enum LightningSendStatus
|
|
2555
|
+
const FfiConverterTypeLightningSendStatus = (() => {
|
|
2556
|
+
const ordinalConverter = FfiConverterInt32;
|
|
2557
|
+
type TypeName = LightningSendStatus;
|
|
2558
|
+
class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {
|
|
2559
|
+
read(from: RustBuffer): TypeName {
|
|
2560
|
+
switch (ordinalConverter.read(from)) {
|
|
2561
|
+
case 1:
|
|
2562
|
+
return new LightningSendStatus.Unknown();
|
|
2563
|
+
case 2:
|
|
2564
|
+
return new LightningSendStatus.InProgress({
|
|
2565
|
+
send: FfiConverterTypeLightningSend.read(from),
|
|
2566
|
+
});
|
|
2567
|
+
case 3:
|
|
2568
|
+
return new LightningSendStatus.Paid({
|
|
2569
|
+
paymentHash: FfiConverterString.read(from),
|
|
2570
|
+
preimage: FfiConverterString.read(from),
|
|
2571
|
+
});
|
|
2572
|
+
default:
|
|
2573
|
+
throw new UniffiInternalError.UnexpectedEnumCase();
|
|
2574
|
+
}
|
|
2575
|
+
}
|
|
2576
|
+
write(value: TypeName, into: RustBuffer): void {
|
|
2577
|
+
switch (value.tag) {
|
|
2578
|
+
case LightningSendStatus_Tags.Unknown: {
|
|
2579
|
+
ordinalConverter.write(1, into);
|
|
2580
|
+
return;
|
|
2581
|
+
}
|
|
2582
|
+
case LightningSendStatus_Tags.InProgress: {
|
|
2583
|
+
ordinalConverter.write(2, into);
|
|
2584
|
+
const inner = value.inner;
|
|
2585
|
+
FfiConverterTypeLightningSend.write(inner.send, into);
|
|
2586
|
+
return;
|
|
2587
|
+
}
|
|
2588
|
+
case LightningSendStatus_Tags.Paid: {
|
|
2589
|
+
ordinalConverter.write(3, into);
|
|
2590
|
+
const inner = value.inner;
|
|
2591
|
+
FfiConverterString.write(inner.paymentHash, into);
|
|
2592
|
+
FfiConverterString.write(inner.preimage, into);
|
|
2593
|
+
return;
|
|
2594
|
+
}
|
|
2595
|
+
default:
|
|
2596
|
+
// Throwing from here means that LightningSendStatus_Tags hasn't matched an ordinal.
|
|
2597
|
+
throw new UniffiInternalError.UnexpectedEnumCase();
|
|
2598
|
+
}
|
|
2599
|
+
}
|
|
2600
|
+
allocationSize(value: TypeName): number {
|
|
2601
|
+
switch (value.tag) {
|
|
2602
|
+
case LightningSendStatus_Tags.Unknown: {
|
|
2603
|
+
return ordinalConverter.allocationSize(1);
|
|
2604
|
+
}
|
|
2605
|
+
case LightningSendStatus_Tags.InProgress: {
|
|
2606
|
+
const inner = value.inner;
|
|
2607
|
+
let size = ordinalConverter.allocationSize(2);
|
|
2608
|
+
size += FfiConverterTypeLightningSend.allocationSize(inner.send);
|
|
2609
|
+
return size;
|
|
2610
|
+
}
|
|
2611
|
+
case LightningSendStatus_Tags.Paid: {
|
|
2612
|
+
const inner = value.inner;
|
|
2613
|
+
let size = ordinalConverter.allocationSize(3);
|
|
2614
|
+
size += FfiConverterString.allocationSize(inner.paymentHash);
|
|
2615
|
+
size += FfiConverterString.allocationSize(inner.preimage);
|
|
2616
|
+
return size;
|
|
2617
|
+
}
|
|
2618
|
+
default:
|
|
2619
|
+
throw new UniffiInternalError.UnexpectedEnumCase();
|
|
2620
|
+
}
|
|
2621
|
+
}
|
|
2622
|
+
}
|
|
2623
|
+
return new FFIConverter();
|
|
2624
|
+
})();
|
|
2625
|
+
|
|
2409
2626
|
/**
|
|
2410
2627
|
* Severity of a log record.
|
|
2411
2628
|
*/
|
|
@@ -4227,7 +4444,15 @@ export interface WalletLike {
|
|
|
4227
4444
|
allVtxos(asyncOpts_?: {
|
|
4228
4445
|
signal: AbortSignal;
|
|
4229
4446
|
}): /*throws*/ Promise<Array<Vtxo>>;
|
|
4447
|
+
allowLightningSendToExit(
|
|
4448
|
+
paymentHash: string,
|
|
4449
|
+
asyncOpts_?: { signal: AbortSignal }
|
|
4450
|
+
): /*throws*/ Promise<void>;
|
|
4230
4451
|
arkInfo(asyncOpts_?: { signal: AbortSignal }): Promise<ArkInfo | undefined>;
|
|
4452
|
+
attemptLightningReceiveExit(
|
|
4453
|
+
paymentHash: string,
|
|
4454
|
+
asyncOpts_?: { signal: AbortSignal }
|
|
4455
|
+
): /*throws*/ Promise<void>;
|
|
4231
4456
|
balance(asyncOpts_?: { signal: AbortSignal }): /*throws*/ Promise<Balance>;
|
|
4232
4457
|
boardAll(
|
|
4233
4458
|
onchainWallet: OnchainWalletLike,
|
|
@@ -4262,7 +4487,7 @@ export interface WalletLike {
|
|
|
4262
4487
|
paymentHash: string,
|
|
4263
4488
|
wait: boolean,
|
|
4264
4489
|
asyncOpts_?: { signal: AbortSignal }
|
|
4265
|
-
): /*throws*/ Promise<
|
|
4490
|
+
): /*throws*/ Promise<LightningSendStatus>;
|
|
4266
4491
|
claimableLightningReceiveBalanceSats(asyncOpts_?: {
|
|
4267
4492
|
signal: AbortSignal;
|
|
4268
4493
|
}): /*throws*/ Promise</*u64*/ bigint>;
|
|
@@ -4349,10 +4574,18 @@ export interface WalletLike {
|
|
|
4349
4574
|
vtxoBase64: string,
|
|
4350
4575
|
asyncOpts_?: { signal: AbortSignal }
|
|
4351
4576
|
): /*throws*/ Promise<void>;
|
|
4577
|
+
isInvoicePaid(
|
|
4578
|
+
paymentHash: string,
|
|
4579
|
+
asyncOpts_?: { signal: AbortSignal }
|
|
4580
|
+
): /*throws*/ Promise<boolean>;
|
|
4352
4581
|
lightningReceiveStatus(
|
|
4353
4582
|
paymentHash: string,
|
|
4354
4583
|
asyncOpts_?: { signal: AbortSignal }
|
|
4355
4584
|
): /*throws*/ Promise<LightningReceive | undefined>;
|
|
4585
|
+
lightningSendState(
|
|
4586
|
+
paymentHash: string,
|
|
4587
|
+
asyncOpts_?: { signal: AbortSignal }
|
|
4588
|
+
): /*throws*/ Promise<LightningSendStatus>;
|
|
4356
4589
|
listClaimableExits(asyncOpts_?: {
|
|
4357
4590
|
signal: AbortSignal;
|
|
4358
4591
|
}): /*throws*/ Promise<Array<ExitVtxo>>;
|
|
@@ -4401,18 +4634,21 @@ export interface WalletLike {
|
|
|
4401
4634
|
lightningAddress: string,
|
|
4402
4635
|
amountSats: /*u64*/ bigint,
|
|
4403
4636
|
comment: string | undefined,
|
|
4637
|
+
wait: boolean,
|
|
4404
4638
|
asyncOpts_?: { signal: AbortSignal }
|
|
4405
|
-
): /*throws*/ Promise<
|
|
4639
|
+
): /*throws*/ Promise<LightningSendStatus>;
|
|
4406
4640
|
payLightningInvoice(
|
|
4407
4641
|
invoice: string,
|
|
4408
4642
|
amountSats: /*u64*/ bigint | undefined,
|
|
4643
|
+
wait: boolean,
|
|
4409
4644
|
asyncOpts_?: { signal: AbortSignal }
|
|
4410
|
-
): /*throws*/ Promise<
|
|
4645
|
+
): /*throws*/ Promise<LightningSendStatus>;
|
|
4411
4646
|
payLightningOffer(
|
|
4412
4647
|
offer: string,
|
|
4413
4648
|
amountSats: /*u64*/ bigint | undefined,
|
|
4649
|
+
wait: boolean,
|
|
4414
4650
|
asyncOpts_?: { signal: AbortSignal }
|
|
4415
|
-
): /*throws*/ Promise<
|
|
4651
|
+
): /*throws*/ Promise<LightningSendStatus>;
|
|
4416
4652
|
peekAddress(
|
|
4417
4653
|
index: /*u32*/ number,
|
|
4418
4654
|
asyncOpts_?: { signal: AbortSignal }
|
|
@@ -4490,6 +4726,9 @@ export interface WalletLike {
|
|
|
4490
4726
|
asyncOpts_?: { signal: AbortSignal }
|
|
4491
4727
|
): /*throws*/ Promise<void>;
|
|
4492
4728
|
stopDaemon(asyncOpts_?: { signal: AbortSignal }): /*throws*/ Promise<void>;
|
|
4729
|
+
stuckFailedLightningSends(asyncOpts_?: {
|
|
4730
|
+
signal: AbortSignal;
|
|
4731
|
+
}): /*throws*/ Promise<Array<LightningSend>>;
|
|
4493
4732
|
sync(asyncOpts_?: { signal: AbortSignal }): /*throws*/ Promise<void>;
|
|
4494
4733
|
syncExits(
|
|
4495
4734
|
onchainWallet: OnchainWalletLike,
|
|
@@ -4812,6 +5051,41 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
4812
5051
|
}
|
|
4813
5052
|
}
|
|
4814
5053
|
|
|
5054
|
+
async allowLightningSendToExit(
|
|
5055
|
+
paymentHash: string,
|
|
5056
|
+
asyncOpts_?: { signal: AbortSignal }
|
|
5057
|
+
): Promise<void> /*throws*/ {
|
|
5058
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
5059
|
+
try {
|
|
5060
|
+
return await uniffiRustCallAsync(
|
|
5061
|
+
/*rustCaller:*/ uniffiCaller,
|
|
5062
|
+
/*rustFutureFunc:*/ () => {
|
|
5063
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_allow_lightning_send_to_exit(
|
|
5064
|
+
uniffiTypeWalletObjectFactory.clonePointer(this),
|
|
5065
|
+
FfiConverterString.lower(paymentHash)
|
|
5066
|
+
);
|
|
5067
|
+
},
|
|
5068
|
+
/*pollFunc:*/ nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void,
|
|
5069
|
+
/*cancelFunc:*/ nativeModule()
|
|
5070
|
+
.ubrn_ffi_bark_ffi_rust_future_cancel_void,
|
|
5071
|
+
/*completeFunc:*/ nativeModule()
|
|
5072
|
+
.ubrn_ffi_bark_ffi_rust_future_complete_void,
|
|
5073
|
+
/*freeFunc:*/ nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void,
|
|
5074
|
+
/*liftFunc:*/ (_v) => {},
|
|
5075
|
+
/*liftString:*/ FfiConverterString.lift,
|
|
5076
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
5077
|
+
/*errorHandler:*/ FfiConverterTypeBarkError.lift.bind(
|
|
5078
|
+
FfiConverterTypeBarkError
|
|
5079
|
+
)
|
|
5080
|
+
);
|
|
5081
|
+
} catch (__error: any) {
|
|
5082
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
5083
|
+
__error.stack = __stack;
|
|
5084
|
+
}
|
|
5085
|
+
throw __error;
|
|
5086
|
+
}
|
|
5087
|
+
}
|
|
5088
|
+
|
|
4815
5089
|
async arkInfo(asyncOpts_?: {
|
|
4816
5090
|
signal: AbortSignal;
|
|
4817
5091
|
}): Promise<ArkInfo | undefined> {
|
|
@@ -4846,6 +5120,41 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
4846
5120
|
}
|
|
4847
5121
|
}
|
|
4848
5122
|
|
|
5123
|
+
async attemptLightningReceiveExit(
|
|
5124
|
+
paymentHash: string,
|
|
5125
|
+
asyncOpts_?: { signal: AbortSignal }
|
|
5126
|
+
): Promise<void> /*throws*/ {
|
|
5127
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
5128
|
+
try {
|
|
5129
|
+
return await uniffiRustCallAsync(
|
|
5130
|
+
/*rustCaller:*/ uniffiCaller,
|
|
5131
|
+
/*rustFutureFunc:*/ () => {
|
|
5132
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_attempt_lightning_receive_exit(
|
|
5133
|
+
uniffiTypeWalletObjectFactory.clonePointer(this),
|
|
5134
|
+
FfiConverterString.lower(paymentHash)
|
|
5135
|
+
);
|
|
5136
|
+
},
|
|
5137
|
+
/*pollFunc:*/ nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void,
|
|
5138
|
+
/*cancelFunc:*/ nativeModule()
|
|
5139
|
+
.ubrn_ffi_bark_ffi_rust_future_cancel_void,
|
|
5140
|
+
/*completeFunc:*/ nativeModule()
|
|
5141
|
+
.ubrn_ffi_bark_ffi_rust_future_complete_void,
|
|
5142
|
+
/*freeFunc:*/ nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void,
|
|
5143
|
+
/*liftFunc:*/ (_v) => {},
|
|
5144
|
+
/*liftString:*/ FfiConverterString.lift,
|
|
5145
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
5146
|
+
/*errorHandler:*/ FfiConverterTypeBarkError.lift.bind(
|
|
5147
|
+
FfiConverterTypeBarkError
|
|
5148
|
+
)
|
|
5149
|
+
);
|
|
5150
|
+
} catch (__error: any) {
|
|
5151
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
5152
|
+
__error.stack = __stack;
|
|
5153
|
+
}
|
|
5154
|
+
throw __error;
|
|
5155
|
+
}
|
|
5156
|
+
}
|
|
5157
|
+
|
|
4849
5158
|
async balance(asyncOpts_?: {
|
|
4850
5159
|
signal: AbortSignal;
|
|
4851
5160
|
}): Promise<Balance> /*throws*/ {
|
|
@@ -5148,7 +5457,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5148
5457
|
paymentHash: string,
|
|
5149
5458
|
wait: boolean,
|
|
5150
5459
|
asyncOpts_?: { signal: AbortSignal }
|
|
5151
|
-
): Promise<
|
|
5460
|
+
): Promise<LightningSendStatus> /*throws*/ {
|
|
5152
5461
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
5153
5462
|
try {
|
|
5154
5463
|
return await uniffiRustCallAsync(
|
|
@@ -5168,8 +5477,8 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5168
5477
|
.ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer,
|
|
5169
5478
|
/*freeFunc:*/ nativeModule()
|
|
5170
5479
|
.ubrn_ffi_bark_ffi_rust_future_free_rust_buffer,
|
|
5171
|
-
/*liftFunc:*/
|
|
5172
|
-
|
|
5480
|
+
/*liftFunc:*/ FfiConverterTypeLightningSendStatus.lift.bind(
|
|
5481
|
+
FfiConverterTypeLightningSendStatus
|
|
5173
5482
|
),
|
|
5174
5483
|
/*liftString:*/ FfiConverterString.lift,
|
|
5175
5484
|
/*asyncOpts:*/ asyncOpts_,
|
|
@@ -6032,6 +6341,40 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6032
6341
|
}
|
|
6033
6342
|
}
|
|
6034
6343
|
|
|
6344
|
+
async isInvoicePaid(
|
|
6345
|
+
paymentHash: string,
|
|
6346
|
+
asyncOpts_?: { signal: AbortSignal }
|
|
6347
|
+
): Promise<boolean> /*throws*/ {
|
|
6348
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
6349
|
+
try {
|
|
6350
|
+
return await uniffiRustCallAsync(
|
|
6351
|
+
/*rustCaller:*/ uniffiCaller,
|
|
6352
|
+
/*rustFutureFunc:*/ () => {
|
|
6353
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_is_invoice_paid(
|
|
6354
|
+
uniffiTypeWalletObjectFactory.clonePointer(this),
|
|
6355
|
+
FfiConverterString.lower(paymentHash)
|
|
6356
|
+
);
|
|
6357
|
+
},
|
|
6358
|
+
/*pollFunc:*/ nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_i8,
|
|
6359
|
+
/*cancelFunc:*/ nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_i8,
|
|
6360
|
+
/*completeFunc:*/ nativeModule()
|
|
6361
|
+
.ubrn_ffi_bark_ffi_rust_future_complete_i8,
|
|
6362
|
+
/*freeFunc:*/ nativeModule().ubrn_ffi_bark_ffi_rust_future_free_i8,
|
|
6363
|
+
/*liftFunc:*/ FfiConverterBool.lift.bind(FfiConverterBool),
|
|
6364
|
+
/*liftString:*/ FfiConverterString.lift,
|
|
6365
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
6366
|
+
/*errorHandler:*/ FfiConverterTypeBarkError.lift.bind(
|
|
6367
|
+
FfiConverterTypeBarkError
|
|
6368
|
+
)
|
|
6369
|
+
);
|
|
6370
|
+
} catch (__error: any) {
|
|
6371
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
6372
|
+
__error.stack = __stack;
|
|
6373
|
+
}
|
|
6374
|
+
throw __error;
|
|
6375
|
+
}
|
|
6376
|
+
}
|
|
6377
|
+
|
|
6035
6378
|
async lightningReceiveStatus(
|
|
6036
6379
|
paymentHash: string,
|
|
6037
6380
|
asyncOpts_?: { signal: AbortSignal }
|
|
@@ -6071,6 +6414,45 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6071
6414
|
}
|
|
6072
6415
|
}
|
|
6073
6416
|
|
|
6417
|
+
async lightningSendState(
|
|
6418
|
+
paymentHash: string,
|
|
6419
|
+
asyncOpts_?: { signal: AbortSignal }
|
|
6420
|
+
): Promise<LightningSendStatus> /*throws*/ {
|
|
6421
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
6422
|
+
try {
|
|
6423
|
+
return await uniffiRustCallAsync(
|
|
6424
|
+
/*rustCaller:*/ uniffiCaller,
|
|
6425
|
+
/*rustFutureFunc:*/ () => {
|
|
6426
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_lightning_send_state(
|
|
6427
|
+
uniffiTypeWalletObjectFactory.clonePointer(this),
|
|
6428
|
+
FfiConverterString.lower(paymentHash)
|
|
6429
|
+
);
|
|
6430
|
+
},
|
|
6431
|
+
/*pollFunc:*/ nativeModule()
|
|
6432
|
+
.ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer,
|
|
6433
|
+
/*cancelFunc:*/ nativeModule()
|
|
6434
|
+
.ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer,
|
|
6435
|
+
/*completeFunc:*/ nativeModule()
|
|
6436
|
+
.ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer,
|
|
6437
|
+
/*freeFunc:*/ nativeModule()
|
|
6438
|
+
.ubrn_ffi_bark_ffi_rust_future_free_rust_buffer,
|
|
6439
|
+
/*liftFunc:*/ FfiConverterTypeLightningSendStatus.lift.bind(
|
|
6440
|
+
FfiConverterTypeLightningSendStatus
|
|
6441
|
+
),
|
|
6442
|
+
/*liftString:*/ FfiConverterString.lift,
|
|
6443
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
6444
|
+
/*errorHandler:*/ FfiConverterTypeBarkError.lift.bind(
|
|
6445
|
+
FfiConverterTypeBarkError
|
|
6446
|
+
)
|
|
6447
|
+
);
|
|
6448
|
+
} catch (__error: any) {
|
|
6449
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
6450
|
+
__error.stack = __stack;
|
|
6451
|
+
}
|
|
6452
|
+
throw __error;
|
|
6453
|
+
}
|
|
6454
|
+
}
|
|
6455
|
+
|
|
6074
6456
|
async listClaimableExits(asyncOpts_?: {
|
|
6075
6457
|
signal: AbortSignal;
|
|
6076
6458
|
}): Promise<Array<ExitVtxo>> /*throws*/ {
|
|
@@ -6592,8 +6974,9 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6592
6974
|
lightningAddress: string,
|
|
6593
6975
|
amountSats: /*u64*/ bigint,
|
|
6594
6976
|
comment: string | undefined,
|
|
6977
|
+
wait: boolean,
|
|
6595
6978
|
asyncOpts_?: { signal: AbortSignal }
|
|
6596
|
-
): Promise<
|
|
6979
|
+
): Promise<LightningSendStatus> /*throws*/ {
|
|
6597
6980
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
6598
6981
|
try {
|
|
6599
6982
|
return await uniffiRustCallAsync(
|
|
@@ -6603,7 +6986,8 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6603
6986
|
uniffiTypeWalletObjectFactory.clonePointer(this),
|
|
6604
6987
|
FfiConverterString.lower(lightningAddress),
|
|
6605
6988
|
FfiConverterUInt64.lower(amountSats),
|
|
6606
|
-
FfiConverterOptionalString.lower(comment)
|
|
6989
|
+
FfiConverterOptionalString.lower(comment),
|
|
6990
|
+
FfiConverterBool.lower(wait)
|
|
6607
6991
|
);
|
|
6608
6992
|
},
|
|
6609
6993
|
/*pollFunc:*/ nativeModule()
|
|
@@ -6614,8 +6998,8 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6614
6998
|
.ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer,
|
|
6615
6999
|
/*freeFunc:*/ nativeModule()
|
|
6616
7000
|
.ubrn_ffi_bark_ffi_rust_future_free_rust_buffer,
|
|
6617
|
-
/*liftFunc:*/
|
|
6618
|
-
|
|
7001
|
+
/*liftFunc:*/ FfiConverterTypeLightningSendStatus.lift.bind(
|
|
7002
|
+
FfiConverterTypeLightningSendStatus
|
|
6619
7003
|
),
|
|
6620
7004
|
/*liftString:*/ FfiConverterString.lift,
|
|
6621
7005
|
/*asyncOpts:*/ asyncOpts_,
|
|
@@ -6634,8 +7018,9 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6634
7018
|
async payLightningInvoice(
|
|
6635
7019
|
invoice: string,
|
|
6636
7020
|
amountSats: /*u64*/ bigint | undefined,
|
|
7021
|
+
wait: boolean,
|
|
6637
7022
|
asyncOpts_?: { signal: AbortSignal }
|
|
6638
|
-
): Promise<
|
|
7023
|
+
): Promise<LightningSendStatus> /*throws*/ {
|
|
6639
7024
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
6640
7025
|
try {
|
|
6641
7026
|
return await uniffiRustCallAsync(
|
|
@@ -6644,7 +7029,8 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6644
7029
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_invoice(
|
|
6645
7030
|
uniffiTypeWalletObjectFactory.clonePointer(this),
|
|
6646
7031
|
FfiConverterString.lower(invoice),
|
|
6647
|
-
FfiConverterOptionalUInt64.lower(amountSats)
|
|
7032
|
+
FfiConverterOptionalUInt64.lower(amountSats),
|
|
7033
|
+
FfiConverterBool.lower(wait)
|
|
6648
7034
|
);
|
|
6649
7035
|
},
|
|
6650
7036
|
/*pollFunc:*/ nativeModule()
|
|
@@ -6655,8 +7041,8 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6655
7041
|
.ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer,
|
|
6656
7042
|
/*freeFunc:*/ nativeModule()
|
|
6657
7043
|
.ubrn_ffi_bark_ffi_rust_future_free_rust_buffer,
|
|
6658
|
-
/*liftFunc:*/
|
|
6659
|
-
|
|
7044
|
+
/*liftFunc:*/ FfiConverterTypeLightningSendStatus.lift.bind(
|
|
7045
|
+
FfiConverterTypeLightningSendStatus
|
|
6660
7046
|
),
|
|
6661
7047
|
/*liftString:*/ FfiConverterString.lift,
|
|
6662
7048
|
/*asyncOpts:*/ asyncOpts_,
|
|
@@ -6675,8 +7061,9 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6675
7061
|
async payLightningOffer(
|
|
6676
7062
|
offer: string,
|
|
6677
7063
|
amountSats: /*u64*/ bigint | undefined,
|
|
7064
|
+
wait: boolean,
|
|
6678
7065
|
asyncOpts_?: { signal: AbortSignal }
|
|
6679
|
-
): Promise<
|
|
7066
|
+
): Promise<LightningSendStatus> /*throws*/ {
|
|
6680
7067
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
6681
7068
|
try {
|
|
6682
7069
|
return await uniffiRustCallAsync(
|
|
@@ -6685,7 +7072,8 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6685
7072
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_offer(
|
|
6686
7073
|
uniffiTypeWalletObjectFactory.clonePointer(this),
|
|
6687
7074
|
FfiConverterString.lower(offer),
|
|
6688
|
-
FfiConverterOptionalUInt64.lower(amountSats)
|
|
7075
|
+
FfiConverterOptionalUInt64.lower(amountSats),
|
|
7076
|
+
FfiConverterBool.lower(wait)
|
|
6689
7077
|
);
|
|
6690
7078
|
},
|
|
6691
7079
|
/*pollFunc:*/ nativeModule()
|
|
@@ -6696,8 +7084,8 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6696
7084
|
.ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer,
|
|
6697
7085
|
/*freeFunc:*/ nativeModule()
|
|
6698
7086
|
.ubrn_ffi_bark_ffi_rust_future_free_rust_buffer,
|
|
6699
|
-
/*liftFunc:*/
|
|
6700
|
-
|
|
7087
|
+
/*liftFunc:*/ FfiConverterTypeLightningSendStatus.lift.bind(
|
|
7088
|
+
FfiConverterTypeLightningSendStatus
|
|
6701
7089
|
),
|
|
6702
7090
|
/*liftString:*/ FfiConverterString.lift,
|
|
6703
7091
|
/*asyncOpts:*/ asyncOpts_,
|
|
@@ -7551,6 +7939,43 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7551
7939
|
}
|
|
7552
7940
|
}
|
|
7553
7941
|
|
|
7942
|
+
async stuckFailedLightningSends(asyncOpts_?: {
|
|
7943
|
+
signal: AbortSignal;
|
|
7944
|
+
}): Promise<Array<LightningSend>> /*throws*/ {
|
|
7945
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
7946
|
+
try {
|
|
7947
|
+
return await uniffiRustCallAsync(
|
|
7948
|
+
/*rustCaller:*/ uniffiCaller,
|
|
7949
|
+
/*rustFutureFunc:*/ () => {
|
|
7950
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_stuck_failed_lightning_sends(
|
|
7951
|
+
uniffiTypeWalletObjectFactory.clonePointer(this)
|
|
7952
|
+
);
|
|
7953
|
+
},
|
|
7954
|
+
/*pollFunc:*/ nativeModule()
|
|
7955
|
+
.ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer,
|
|
7956
|
+
/*cancelFunc:*/ nativeModule()
|
|
7957
|
+
.ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer,
|
|
7958
|
+
/*completeFunc:*/ nativeModule()
|
|
7959
|
+
.ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer,
|
|
7960
|
+
/*freeFunc:*/ nativeModule()
|
|
7961
|
+
.ubrn_ffi_bark_ffi_rust_future_free_rust_buffer,
|
|
7962
|
+
/*liftFunc:*/ FfiConverterArrayTypeLightningSend.lift.bind(
|
|
7963
|
+
FfiConverterArrayTypeLightningSend
|
|
7964
|
+
),
|
|
7965
|
+
/*liftString:*/ FfiConverterString.lift,
|
|
7966
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
7967
|
+
/*errorHandler:*/ FfiConverterTypeBarkError.lift.bind(
|
|
7968
|
+
FfiConverterTypeBarkError
|
|
7969
|
+
)
|
|
7970
|
+
);
|
|
7971
|
+
} catch (__error: any) {
|
|
7972
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
7973
|
+
__error.stack = __stack;
|
|
7974
|
+
}
|
|
7975
|
+
throw __error;
|
|
7976
|
+
}
|
|
7977
|
+
}
|
|
7978
|
+
|
|
7554
7979
|
async sync(asyncOpts_?: { signal: AbortSignal }): Promise<void> /*throws*/ {
|
|
7555
7980
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
7556
7981
|
try {
|
|
@@ -8189,6 +8614,14 @@ function uniffiEnsureInitialized() {
|
|
|
8189
8614
|
"uniffi_bark_ffi_checksum_method_wallet_all_vtxos"
|
|
8190
8615
|
);
|
|
8191
8616
|
}
|
|
8617
|
+
if (
|
|
8618
|
+
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_allow_lightning_send_to_exit() !==
|
|
8619
|
+
44140
|
|
8620
|
+
) {
|
|
8621
|
+
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8622
|
+
"uniffi_bark_ffi_checksum_method_wallet_allow_lightning_send_to_exit"
|
|
8623
|
+
);
|
|
8624
|
+
}
|
|
8192
8625
|
if (
|
|
8193
8626
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_ark_info() !==
|
|
8194
8627
|
37357
|
|
@@ -8197,6 +8630,14 @@ function uniffiEnsureInitialized() {
|
|
|
8197
8630
|
"uniffi_bark_ffi_checksum_method_wallet_ark_info"
|
|
8198
8631
|
);
|
|
8199
8632
|
}
|
|
8633
|
+
if (
|
|
8634
|
+
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_attempt_lightning_receive_exit() !==
|
|
8635
|
+
32877
|
|
8636
|
+
) {
|
|
8637
|
+
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8638
|
+
"uniffi_bark_ffi_checksum_method_wallet_attempt_lightning_receive_exit"
|
|
8639
|
+
);
|
|
8640
|
+
}
|
|
8200
8641
|
if (
|
|
8201
8642
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_balance() !==
|
|
8202
8643
|
26361
|
|
@@ -8263,7 +8704,7 @@ function uniffiEnsureInitialized() {
|
|
|
8263
8704
|
}
|
|
8264
8705
|
if (
|
|
8265
8706
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment() !==
|
|
8266
|
-
|
|
8707
|
+
33087
|
|
8267
8708
|
) {
|
|
8268
8709
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8269
8710
|
"uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment"
|
|
@@ -8453,6 +8894,14 @@ function uniffiEnsureInitialized() {
|
|
|
8453
8894
|
"uniffi_bark_ffi_checksum_method_wallet_import_vtxo"
|
|
8454
8895
|
);
|
|
8455
8896
|
}
|
|
8897
|
+
if (
|
|
8898
|
+
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid() !==
|
|
8899
|
+
43344
|
|
8900
|
+
) {
|
|
8901
|
+
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8902
|
+
"uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid"
|
|
8903
|
+
);
|
|
8904
|
+
}
|
|
8456
8905
|
if (
|
|
8457
8906
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status() !==
|
|
8458
8907
|
37213
|
|
@@ -8461,6 +8910,14 @@ function uniffiEnsureInitialized() {
|
|
|
8461
8910
|
"uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status"
|
|
8462
8911
|
);
|
|
8463
8912
|
}
|
|
8913
|
+
if (
|
|
8914
|
+
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_send_state() !==
|
|
8915
|
+
37487
|
|
8916
|
+
) {
|
|
8917
|
+
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8918
|
+
"uniffi_bark_ffi_checksum_method_wallet_lightning_send_state"
|
|
8919
|
+
);
|
|
8920
|
+
}
|
|
8464
8921
|
if (
|
|
8465
8922
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits() !==
|
|
8466
8923
|
46928
|
|
@@ -8591,7 +9048,7 @@ function uniffiEnsureInitialized() {
|
|
|
8591
9048
|
}
|
|
8592
9049
|
if (
|
|
8593
9050
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address() !==
|
|
8594
|
-
|
|
9051
|
+
2440
|
|
8595
9052
|
) {
|
|
8596
9053
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8597
9054
|
"uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address"
|
|
@@ -8599,7 +9056,7 @@ function uniffiEnsureInitialized() {
|
|
|
8599
9056
|
}
|
|
8600
9057
|
if (
|
|
8601
9058
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice() !==
|
|
8602
|
-
|
|
9059
|
+
18714
|
|
8603
9060
|
) {
|
|
8604
9061
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8605
9062
|
"uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice"
|
|
@@ -8607,7 +9064,7 @@ function uniffiEnsureInitialized() {
|
|
|
8607
9064
|
}
|
|
8608
9065
|
if (
|
|
8609
9066
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer() !==
|
|
8610
|
-
|
|
9067
|
+
31129
|
|
8611
9068
|
) {
|
|
8612
9069
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8613
9070
|
"uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer"
|
|
@@ -8797,6 +9254,14 @@ function uniffiEnsureInitialized() {
|
|
|
8797
9254
|
"uniffi_bark_ffi_checksum_method_wallet_stop_daemon"
|
|
8798
9255
|
);
|
|
8799
9256
|
}
|
|
9257
|
+
if (
|
|
9258
|
+
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends() !==
|
|
9259
|
+
51351
|
|
9260
|
+
) {
|
|
9261
|
+
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9262
|
+
"uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends"
|
|
9263
|
+
);
|
|
9264
|
+
}
|
|
8800
9265
|
if (
|
|
8801
9266
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync() !== 38360
|
|
8802
9267
|
) {
|
|
@@ -8933,6 +9398,7 @@ export default Object.freeze({
|
|
|
8933
9398
|
FfiConverterTypeLightningInvoice,
|
|
8934
9399
|
FfiConverterTypeLightningReceive,
|
|
8935
9400
|
FfiConverterTypeLightningSend,
|
|
9401
|
+
FfiConverterTypeLightningSendStatus,
|
|
8936
9402
|
FfiConverterTypeLogLevel,
|
|
8937
9403
|
FfiConverterTypeMovement,
|
|
8938
9404
|
FfiConverterTypeNetwork,
|