@secondts/bark-react-native 0.10.0 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/cpp/generated/bark.cpp +296 -194
- package/cpp/generated/bark.hpp +8 -10
- package/lib/commonjs/generated/bark-ffi.js.map +1 -1
- package/lib/commonjs/generated/bark.js +451 -960
- package/lib/commonjs/generated/bark.js.map +1 -1
- package/lib/module/generated/bark-ffi.js.map +1 -1
- package/lib/module/generated/bark.js +450 -960
- package/lib/module/generated/bark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts +12 -12
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark.d.ts +357 -1323
- package/lib/typescript/commonjs/src/generated/bark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark-ffi.d.ts +12 -12
- package/lib/typescript/module/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark.d.ts +357 -1323
- package/lib/typescript/module/src/generated/bark.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/generated/bark-ffi.ts +33 -35
- package/src/generated/bark.ts +739 -1611
package/src/generated/bark.ts
CHANGED
|
@@ -101,9 +101,7 @@ const uniffiIsDebug =
|
|
|
101
101
|
export function extractTxFromPsbt(psbtBase64: string): string /*throws*/ {
|
|
102
102
|
return FfiConverterString.lift(
|
|
103
103
|
uniffiCaller.rustCallWithError(
|
|
104
|
-
/*liftError:*/
|
|
105
|
-
FfiConverterTypeBarkError
|
|
106
|
-
),
|
|
104
|
+
/*liftError:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError),
|
|
107
105
|
/*caller:*/ (callStatus) => {
|
|
108
106
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_func_extract_tx_from_psbt(
|
|
109
107
|
FfiConverterString.lower(psbtBase64),
|
|
@@ -120,9 +118,7 @@ export function extractTxFromPsbt(psbtBase64: string): string /*throws*/ {
|
|
|
120
118
|
export function generateMnemonic(): string /*throws*/ {
|
|
121
119
|
return FfiConverterString.lift(
|
|
122
120
|
uniffiCaller.rustCallWithError(
|
|
123
|
-
/*liftError:*/
|
|
124
|
-
FfiConverterTypeBarkError
|
|
125
|
-
),
|
|
121
|
+
/*liftError:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError),
|
|
126
122
|
/*caller:*/ (callStatus) => {
|
|
127
123
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_func_generate_mnemonic(
|
|
128
124
|
callStatus
|
|
@@ -142,9 +138,7 @@ export function generateMnemonic(): string /*throws*/ {
|
|
|
142
138
|
export function validateArkAddress(address: string): boolean /*throws*/ {
|
|
143
139
|
return FfiConverterBool.lift(
|
|
144
140
|
uniffiCaller.rustCallWithError(
|
|
145
|
-
/*liftError:*/
|
|
146
|
-
FfiConverterTypeBarkError
|
|
147
|
-
),
|
|
141
|
+
/*liftError:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError),
|
|
148
142
|
/*caller:*/ (callStatus) => {
|
|
149
143
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_func_validate_ark_address(
|
|
150
144
|
FfiConverterString.lower(address),
|
|
@@ -161,9 +155,7 @@ export function validateArkAddress(address: string): boolean /*throws*/ {
|
|
|
161
155
|
export function validateMnemonic(mnemonic: string): boolean /*throws*/ {
|
|
162
156
|
return FfiConverterBool.lift(
|
|
163
157
|
uniffiCaller.rustCallWithError(
|
|
164
|
-
/*liftError:*/
|
|
165
|
-
FfiConverterTypeBarkError
|
|
166
|
-
),
|
|
158
|
+
/*liftError:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError),
|
|
167
159
|
/*caller:*/ (callStatus) => {
|
|
168
160
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_func_validate_mnemonic(
|
|
169
161
|
FfiConverterString.lower(mnemonic),
|
|
@@ -185,9 +177,7 @@ export function setLogger(
|
|
|
185
177
|
maxLevel: LogLevel
|
|
186
178
|
): void /*throws*/ {
|
|
187
179
|
uniffiCaller.rustCallWithError(
|
|
188
|
-
/*liftError:*/
|
|
189
|
-
FfiConverterTypeBarkError
|
|
190
|
-
),
|
|
180
|
+
/*liftError:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError),
|
|
191
181
|
/*caller:*/ (callStatus) => {
|
|
192
182
|
nativeModule().ubrn_uniffi_bark_ffi_fn_func_set_logger(
|
|
193
183
|
FfiConverterTypeBarkLogger.lower(logger),
|
|
@@ -198,6 +188,49 @@ export function setLogger(
|
|
|
198
188
|
/*liftString:*/ FfiConverterString.lift
|
|
199
189
|
);
|
|
200
190
|
}
|
|
191
|
+
/**
|
|
192
|
+
* Low-level function to initialize a wallet
|
|
193
|
+
*
|
|
194
|
+
* You probably want to use [`Wallet::open`] instead.
|
|
195
|
+
*/
|
|
196
|
+
export async function initWallet(
|
|
197
|
+
network: Network,
|
|
198
|
+
mnemonicOrSeed: string,
|
|
199
|
+
config: Config,
|
|
200
|
+
datadir: string,
|
|
201
|
+
allowUnreachableServer: boolean,
|
|
202
|
+
asyncOpts_?: { signal: AbortSignal }
|
|
203
|
+
): Promise<void> /*throws*/ {
|
|
204
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
205
|
+
try {
|
|
206
|
+
return await uniffiRustCallAsync(
|
|
207
|
+
/*rustCaller:*/ uniffiCaller,
|
|
208
|
+
/*rustFutureFunc:*/ () => {
|
|
209
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_func_init_wallet(
|
|
210
|
+
FfiConverterTypeNetwork.lower(network),
|
|
211
|
+
FfiConverterString.lower(mnemonicOrSeed),
|
|
212
|
+
FfiConverterTypeConfig.lower(config),
|
|
213
|
+
FfiConverterString.lower(datadir),
|
|
214
|
+
FfiConverterBool.lower(allowUnreachableServer)
|
|
215
|
+
);
|
|
216
|
+
},
|
|
217
|
+
/*pollFunc:*/ nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void,
|
|
218
|
+
/*cancelFunc:*/ nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void,
|
|
219
|
+
/*completeFunc:*/ nativeModule()
|
|
220
|
+
.ubrn_ffi_bark_ffi_rust_future_complete_void,
|
|
221
|
+
/*freeFunc:*/ nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void,
|
|
222
|
+
/*liftFunc:*/ (_v) => {},
|
|
223
|
+
/*liftString:*/ FfiConverterString.lift,
|
|
224
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
225
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
226
|
+
);
|
|
227
|
+
} catch (__error: any) {
|
|
228
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
229
|
+
__error.stack = __stack;
|
|
230
|
+
}
|
|
231
|
+
throw __error;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
201
234
|
|
|
202
235
|
export type AddressWithIndex = {
|
|
203
236
|
address: string;
|
|
@@ -459,7 +492,6 @@ export type Config = {
|
|
|
459
492
|
bitcoindCookiefile?: string;
|
|
460
493
|
bitcoindUser?: string;
|
|
461
494
|
bitcoindPass?: string;
|
|
462
|
-
network: Network;
|
|
463
495
|
vtxoRefreshExpiryThreshold?: /*u32*/ number;
|
|
464
496
|
vtxoExitMargin?: /*u16*/ number;
|
|
465
497
|
htlcRecvClaimDelta?: /*u16*/ number;
|
|
@@ -469,6 +501,7 @@ export type Config = {
|
|
|
469
501
|
offboardRequiredConfirmations?: /*u32*/ number;
|
|
470
502
|
daemonManualSync?: boolean;
|
|
471
503
|
lightningReceiveClaimRetries?: /*u8*/ number;
|
|
504
|
+
userAgent?: string;
|
|
472
505
|
};
|
|
473
506
|
|
|
474
507
|
/**
|
|
@@ -498,7 +531,6 @@ const FfiConverterTypeConfig = (() => {
|
|
|
498
531
|
bitcoindCookiefile: FfiConverterOptionalString.read(from),
|
|
499
532
|
bitcoindUser: FfiConverterOptionalString.read(from),
|
|
500
533
|
bitcoindPass: FfiConverterOptionalString.read(from),
|
|
501
|
-
network: FfiConverterTypeNetwork.read(from),
|
|
502
534
|
vtxoRefreshExpiryThreshold: FfiConverterOptionalUInt32.read(from),
|
|
503
535
|
vtxoExitMargin: FfiConverterOptionalUInt16.read(from),
|
|
504
536
|
htlcRecvClaimDelta: FfiConverterOptionalUInt16.read(from),
|
|
@@ -508,6 +540,7 @@ const FfiConverterTypeConfig = (() => {
|
|
|
508
540
|
offboardRequiredConfirmations: FfiConverterOptionalUInt32.read(from),
|
|
509
541
|
daemonManualSync: FfiConverterOptionalBool.read(from),
|
|
510
542
|
lightningReceiveClaimRetries: FfiConverterOptionalUInt8.read(from),
|
|
543
|
+
userAgent: FfiConverterOptionalString.read(from),
|
|
511
544
|
};
|
|
512
545
|
}
|
|
513
546
|
write(value: TypeName, into: RustBuffer): void {
|
|
@@ -518,7 +551,6 @@ const FfiConverterTypeConfig = (() => {
|
|
|
518
551
|
FfiConverterOptionalString.write(value.bitcoindCookiefile, into);
|
|
519
552
|
FfiConverterOptionalString.write(value.bitcoindUser, into);
|
|
520
553
|
FfiConverterOptionalString.write(value.bitcoindPass, into);
|
|
521
|
-
FfiConverterTypeNetwork.write(value.network, into);
|
|
522
554
|
FfiConverterOptionalUInt32.write(value.vtxoRefreshExpiryThreshold, into);
|
|
523
555
|
FfiConverterOptionalUInt16.write(value.vtxoExitMargin, into);
|
|
524
556
|
FfiConverterOptionalUInt16.write(value.htlcRecvClaimDelta, into);
|
|
@@ -534,6 +566,7 @@ const FfiConverterTypeConfig = (() => {
|
|
|
534
566
|
);
|
|
535
567
|
FfiConverterOptionalBool.write(value.daemonManualSync, into);
|
|
536
568
|
FfiConverterOptionalUInt8.write(value.lightningReceiveClaimRetries, into);
|
|
569
|
+
FfiConverterOptionalString.write(value.userAgent, into);
|
|
537
570
|
}
|
|
538
571
|
allocationSize(value: TypeName): number {
|
|
539
572
|
return (
|
|
@@ -544,7 +577,6 @@ const FfiConverterTypeConfig = (() => {
|
|
|
544
577
|
FfiConverterOptionalString.allocationSize(value.bitcoindCookiefile) +
|
|
545
578
|
FfiConverterOptionalString.allocationSize(value.bitcoindUser) +
|
|
546
579
|
FfiConverterOptionalString.allocationSize(value.bitcoindPass) +
|
|
547
|
-
FfiConverterTypeNetwork.allocationSize(value.network) +
|
|
548
580
|
FfiConverterOptionalUInt32.allocationSize(
|
|
549
581
|
value.vtxoRefreshExpiryThreshold
|
|
550
582
|
) +
|
|
@@ -563,7 +595,8 @@ const FfiConverterTypeConfig = (() => {
|
|
|
563
595
|
FfiConverterOptionalBool.allocationSize(value.daemonManualSync) +
|
|
564
596
|
FfiConverterOptionalUInt8.allocationSize(
|
|
565
597
|
value.lightningReceiveClaimRetries
|
|
566
|
-
)
|
|
598
|
+
) +
|
|
599
|
+
FfiConverterOptionalString.allocationSize(value.userAgent)
|
|
567
600
|
);
|
|
568
601
|
}
|
|
569
602
|
}
|
|
@@ -1535,6 +1568,98 @@ const FfiConverterTypeVtxo = (() => {
|
|
|
1535
1568
|
return new FFIConverter();
|
|
1536
1569
|
})();
|
|
1537
1570
|
|
|
1571
|
+
/**
|
|
1572
|
+
* Optional arguments for [`Wallet::open`], mirroring [`bark::OpenWalletArgs`].
|
|
1573
|
+
*
|
|
1574
|
+
* Every field has a default, so callers only set what they need.
|
|
1575
|
+
*/
|
|
1576
|
+
export type WalletOpenArgs = {
|
|
1577
|
+
/**
|
|
1578
|
+
* Whether to run the background daemon
|
|
1579
|
+
*
|
|
1580
|
+
* When disabled, you must manually call `Wallet::sync` to sync the wallet.
|
|
1581
|
+
*
|
|
1582
|
+
* Default: true
|
|
1583
|
+
*/
|
|
1584
|
+
runDaemon: boolean;
|
|
1585
|
+
/**
|
|
1586
|
+
* The data directory to use for this wallet
|
|
1587
|
+
*/
|
|
1588
|
+
datadir: string;
|
|
1589
|
+
/**
|
|
1590
|
+
* The onchain wallet to use, if any
|
|
1591
|
+
*
|
|
1592
|
+
* Default: none
|
|
1593
|
+
*/
|
|
1594
|
+
onchain?: OnchainWalletLike;
|
|
1595
|
+
/**
|
|
1596
|
+
* Whether to create a new wallet if no wallet exists
|
|
1597
|
+
*
|
|
1598
|
+
* Default: true
|
|
1599
|
+
*/
|
|
1600
|
+
createIfNotExists: boolean;
|
|
1601
|
+
/**
|
|
1602
|
+
* Whether to create a new wallet even if the Ark server cannot be reached
|
|
1603
|
+
*
|
|
1604
|
+
* Default: false
|
|
1605
|
+
*/
|
|
1606
|
+
createWithoutServer: boolean;
|
|
1607
|
+
};
|
|
1608
|
+
|
|
1609
|
+
/**
|
|
1610
|
+
* Generated factory for {@link WalletOpenArgs} record objects.
|
|
1611
|
+
*/
|
|
1612
|
+
export const WalletOpenArgs = (() => {
|
|
1613
|
+
const defaults = () => ({
|
|
1614
|
+
runDaemon: true,
|
|
1615
|
+
onchain: undefined,
|
|
1616
|
+
createIfNotExists: true,
|
|
1617
|
+
createWithoutServer: false,
|
|
1618
|
+
});
|
|
1619
|
+
const create = (() => {
|
|
1620
|
+
return uniffiCreateRecord<WalletOpenArgs, ReturnType<typeof defaults>>(
|
|
1621
|
+
defaults
|
|
1622
|
+
);
|
|
1623
|
+
})();
|
|
1624
|
+
return Object.freeze({
|
|
1625
|
+
create,
|
|
1626
|
+
new: create,
|
|
1627
|
+
defaults: () => Object.freeze(defaults()) as Partial<WalletOpenArgs>,
|
|
1628
|
+
});
|
|
1629
|
+
})();
|
|
1630
|
+
|
|
1631
|
+
const FfiConverterTypeWalletOpenArgs = (() => {
|
|
1632
|
+
type TypeName = WalletOpenArgs;
|
|
1633
|
+
class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {
|
|
1634
|
+
read(from: RustBuffer): TypeName {
|
|
1635
|
+
return {
|
|
1636
|
+
runDaemon: FfiConverterBool.read(from),
|
|
1637
|
+
datadir: FfiConverterString.read(from),
|
|
1638
|
+
onchain: FfiConverterOptionalTypeOnchainWallet.read(from),
|
|
1639
|
+
createIfNotExists: FfiConverterBool.read(from),
|
|
1640
|
+
createWithoutServer: FfiConverterBool.read(from),
|
|
1641
|
+
};
|
|
1642
|
+
}
|
|
1643
|
+
write(value: TypeName, into: RustBuffer): void {
|
|
1644
|
+
FfiConverterBool.write(value.runDaemon, into);
|
|
1645
|
+
FfiConverterString.write(value.datadir, into);
|
|
1646
|
+
FfiConverterOptionalTypeOnchainWallet.write(value.onchain, into);
|
|
1647
|
+
FfiConverterBool.write(value.createIfNotExists, into);
|
|
1648
|
+
FfiConverterBool.write(value.createWithoutServer, into);
|
|
1649
|
+
}
|
|
1650
|
+
allocationSize(value: TypeName): number {
|
|
1651
|
+
return (
|
|
1652
|
+
FfiConverterBool.allocationSize(value.runDaemon) +
|
|
1653
|
+
FfiConverterString.allocationSize(value.datadir) +
|
|
1654
|
+
FfiConverterOptionalTypeOnchainWallet.allocationSize(value.onchain) +
|
|
1655
|
+
FfiConverterBool.allocationSize(value.createIfNotExists) +
|
|
1656
|
+
FfiConverterBool.allocationSize(value.createWithoutServer)
|
|
1657
|
+
);
|
|
1658
|
+
}
|
|
1659
|
+
}
|
|
1660
|
+
return new FFIConverter();
|
|
1661
|
+
})();
|
|
1662
|
+
|
|
1538
1663
|
export type WalletProperties = {
|
|
1539
1664
|
network: Network;
|
|
1540
1665
|
fingerprint: string;
|
|
@@ -1596,843 +1721,101 @@ const stringConverter = {
|
|
|
1596
1721
|
)
|
|
1597
1722
|
),
|
|
1598
1723
|
stringByteLength: (s: string) =>
|
|
1599
|
-
uniffiCaller.rustCall((status) =>
|
|
1600
|
-
nativeModule().ubrn_uniffi_internal_fn_func_ffi__string_to_byte_length(
|
|
1601
|
-
s,
|
|
1602
|
-
status
|
|
1603
|
-
)
|
|
1604
|
-
),
|
|
1605
|
-
};
|
|
1606
|
-
const FfiConverterString = uniffiCreateFfiConverterString(stringConverter);
|
|
1607
|
-
|
|
1608
|
-
//
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
super("BarkError", "Database");
|
|
1681
|
-
this.inner = Object.freeze(inner);
|
|
1682
|
-
}
|
|
1683
|
-
|
|
1684
|
-
static new(inner: { errorMessage: string }): Database_ {
|
|
1685
|
-
return new Database_(inner);
|
|
1686
|
-
}
|
|
1687
|
-
|
|
1688
|
-
static instanceOf(obj: any): obj is Database_ {
|
|
1689
|
-
return obj.tag === BarkError_Tags.Database;
|
|
1690
|
-
}
|
|
1691
|
-
|
|
1692
|
-
static hasInner(obj: any): obj is Database_ {
|
|
1693
|
-
return Database_.instanceOf(obj);
|
|
1694
|
-
}
|
|
1695
|
-
|
|
1696
|
-
static getInner(obj: Database_): Readonly<{ errorMessage: string }> {
|
|
1697
|
-
return obj.inner;
|
|
1698
|
-
}
|
|
1699
|
-
}
|
|
1700
|
-
|
|
1701
|
-
type InvalidMnemonic__interface = {
|
|
1702
|
-
tag: BarkError_Tags.InvalidMnemonic;
|
|
1703
|
-
inner: Readonly<{ errorMessage: string }>;
|
|
1704
|
-
};
|
|
1705
|
-
|
|
1706
|
-
class InvalidMnemonic_
|
|
1707
|
-
extends UniffiError
|
|
1708
|
-
implements InvalidMnemonic__interface
|
|
1709
|
-
{
|
|
1710
|
-
/**
|
|
1711
|
-
* @private
|
|
1712
|
-
* This field is private and should not be used, use `tag` instead.
|
|
1713
|
-
*/
|
|
1714
|
-
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
1715
|
-
readonly tag = BarkError_Tags.InvalidMnemonic;
|
|
1716
|
-
readonly inner: Readonly<{ errorMessage: string }>;
|
|
1717
|
-
constructor(inner: { errorMessage: string }) {
|
|
1718
|
-
super("BarkError", "InvalidMnemonic");
|
|
1719
|
-
this.inner = Object.freeze(inner);
|
|
1720
|
-
}
|
|
1721
|
-
|
|
1722
|
-
static new(inner: { errorMessage: string }): InvalidMnemonic_ {
|
|
1723
|
-
return new InvalidMnemonic_(inner);
|
|
1724
|
-
}
|
|
1725
|
-
|
|
1726
|
-
static instanceOf(obj: any): obj is InvalidMnemonic_ {
|
|
1727
|
-
return obj.tag === BarkError_Tags.InvalidMnemonic;
|
|
1728
|
-
}
|
|
1729
|
-
|
|
1730
|
-
static hasInner(obj: any): obj is InvalidMnemonic_ {
|
|
1731
|
-
return InvalidMnemonic_.instanceOf(obj);
|
|
1732
|
-
}
|
|
1733
|
-
|
|
1734
|
-
static getInner(obj: InvalidMnemonic_): Readonly<{ errorMessage: string }> {
|
|
1735
|
-
return obj.inner;
|
|
1736
|
-
}
|
|
1737
|
-
}
|
|
1738
|
-
|
|
1739
|
-
type InvalidAddress__interface = {
|
|
1740
|
-
tag: BarkError_Tags.InvalidAddress;
|
|
1741
|
-
inner: Readonly<{ errorMessage: string }>;
|
|
1742
|
-
};
|
|
1743
|
-
|
|
1744
|
-
class InvalidAddress_
|
|
1745
|
-
extends UniffiError
|
|
1746
|
-
implements InvalidAddress__interface
|
|
1747
|
-
{
|
|
1748
|
-
/**
|
|
1749
|
-
* @private
|
|
1750
|
-
* This field is private and should not be used, use `tag` instead.
|
|
1751
|
-
*/
|
|
1752
|
-
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
1753
|
-
readonly tag = BarkError_Tags.InvalidAddress;
|
|
1754
|
-
readonly inner: Readonly<{ errorMessage: string }>;
|
|
1755
|
-
constructor(inner: { errorMessage: string }) {
|
|
1756
|
-
super("BarkError", "InvalidAddress");
|
|
1757
|
-
this.inner = Object.freeze(inner);
|
|
1758
|
-
}
|
|
1759
|
-
|
|
1760
|
-
static new(inner: { errorMessage: string }): InvalidAddress_ {
|
|
1761
|
-
return new InvalidAddress_(inner);
|
|
1762
|
-
}
|
|
1763
|
-
|
|
1764
|
-
static instanceOf(obj: any): obj is InvalidAddress_ {
|
|
1765
|
-
return obj.tag === BarkError_Tags.InvalidAddress;
|
|
1766
|
-
}
|
|
1767
|
-
|
|
1768
|
-
static hasInner(obj: any): obj is InvalidAddress_ {
|
|
1769
|
-
return InvalidAddress_.instanceOf(obj);
|
|
1770
|
-
}
|
|
1771
|
-
|
|
1772
|
-
static getInner(obj: InvalidAddress_): Readonly<{ errorMessage: string }> {
|
|
1773
|
-
return obj.inner;
|
|
1774
|
-
}
|
|
1775
|
-
}
|
|
1776
|
-
|
|
1777
|
-
type InvalidInvoice__interface = {
|
|
1778
|
-
tag: BarkError_Tags.InvalidInvoice;
|
|
1779
|
-
inner: Readonly<{ errorMessage: string }>;
|
|
1780
|
-
};
|
|
1781
|
-
|
|
1782
|
-
class InvalidInvoice_
|
|
1783
|
-
extends UniffiError
|
|
1784
|
-
implements InvalidInvoice__interface
|
|
1785
|
-
{
|
|
1786
|
-
/**
|
|
1787
|
-
* @private
|
|
1788
|
-
* This field is private and should not be used, use `tag` instead.
|
|
1789
|
-
*/
|
|
1790
|
-
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
1791
|
-
readonly tag = BarkError_Tags.InvalidInvoice;
|
|
1792
|
-
readonly inner: Readonly<{ errorMessage: string }>;
|
|
1793
|
-
constructor(inner: { errorMessage: string }) {
|
|
1794
|
-
super("BarkError", "InvalidInvoice");
|
|
1795
|
-
this.inner = Object.freeze(inner);
|
|
1796
|
-
}
|
|
1797
|
-
|
|
1798
|
-
static new(inner: { errorMessage: string }): InvalidInvoice_ {
|
|
1799
|
-
return new InvalidInvoice_(inner);
|
|
1800
|
-
}
|
|
1801
|
-
|
|
1802
|
-
static instanceOf(obj: any): obj is InvalidInvoice_ {
|
|
1803
|
-
return obj.tag === BarkError_Tags.InvalidInvoice;
|
|
1804
|
-
}
|
|
1805
|
-
|
|
1806
|
-
static hasInner(obj: any): obj is InvalidInvoice_ {
|
|
1807
|
-
return InvalidInvoice_.instanceOf(obj);
|
|
1808
|
-
}
|
|
1809
|
-
|
|
1810
|
-
static getInner(obj: InvalidInvoice_): Readonly<{ errorMessage: string }> {
|
|
1811
|
-
return obj.inner;
|
|
1812
|
-
}
|
|
1813
|
-
}
|
|
1814
|
-
|
|
1815
|
-
type InvalidPsbt__interface = {
|
|
1816
|
-
tag: BarkError_Tags.InvalidPsbt;
|
|
1817
|
-
inner: Readonly<{ errorMessage: string }>;
|
|
1818
|
-
};
|
|
1819
|
-
|
|
1820
|
-
class InvalidPsbt_ extends UniffiError implements InvalidPsbt__interface {
|
|
1821
|
-
/**
|
|
1822
|
-
* @private
|
|
1823
|
-
* This field is private and should not be used, use `tag` instead.
|
|
1824
|
-
*/
|
|
1825
|
-
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
1826
|
-
readonly tag = BarkError_Tags.InvalidPsbt;
|
|
1827
|
-
readonly inner: Readonly<{ errorMessage: string }>;
|
|
1828
|
-
constructor(inner: { errorMessage: string }) {
|
|
1829
|
-
super("BarkError", "InvalidPsbt");
|
|
1830
|
-
this.inner = Object.freeze(inner);
|
|
1831
|
-
}
|
|
1832
|
-
|
|
1833
|
-
static new(inner: { errorMessage: string }): InvalidPsbt_ {
|
|
1834
|
-
return new InvalidPsbt_(inner);
|
|
1835
|
-
}
|
|
1836
|
-
|
|
1837
|
-
static instanceOf(obj: any): obj is InvalidPsbt_ {
|
|
1838
|
-
return obj.tag === BarkError_Tags.InvalidPsbt;
|
|
1839
|
-
}
|
|
1840
|
-
|
|
1841
|
-
static hasInner(obj: any): obj is InvalidPsbt_ {
|
|
1842
|
-
return InvalidPsbt_.instanceOf(obj);
|
|
1843
|
-
}
|
|
1844
|
-
|
|
1845
|
-
static getInner(obj: InvalidPsbt_): Readonly<{ errorMessage: string }> {
|
|
1846
|
-
return obj.inner;
|
|
1847
|
-
}
|
|
1848
|
-
}
|
|
1849
|
-
|
|
1850
|
-
type InvalidTransaction__interface = {
|
|
1851
|
-
tag: BarkError_Tags.InvalidTransaction;
|
|
1852
|
-
inner: Readonly<{ errorMessage: string }>;
|
|
1853
|
-
};
|
|
1854
|
-
|
|
1855
|
-
class InvalidTransaction_
|
|
1856
|
-
extends UniffiError
|
|
1857
|
-
implements InvalidTransaction__interface
|
|
1858
|
-
{
|
|
1859
|
-
/**
|
|
1860
|
-
* @private
|
|
1861
|
-
* This field is private and should not be used, use `tag` instead.
|
|
1862
|
-
*/
|
|
1863
|
-
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
1864
|
-
readonly tag = BarkError_Tags.InvalidTransaction;
|
|
1865
|
-
readonly inner: Readonly<{ errorMessage: string }>;
|
|
1866
|
-
constructor(inner: { errorMessage: string }) {
|
|
1867
|
-
super("BarkError", "InvalidTransaction");
|
|
1868
|
-
this.inner = Object.freeze(inner);
|
|
1869
|
-
}
|
|
1870
|
-
|
|
1871
|
-
static new(inner: { errorMessage: string }): InvalidTransaction_ {
|
|
1872
|
-
return new InvalidTransaction_(inner);
|
|
1873
|
-
}
|
|
1874
|
-
|
|
1875
|
-
static instanceOf(obj: any): obj is InvalidTransaction_ {
|
|
1876
|
-
return obj.tag === BarkError_Tags.InvalidTransaction;
|
|
1877
|
-
}
|
|
1878
|
-
|
|
1879
|
-
static hasInner(obj: any): obj is InvalidTransaction_ {
|
|
1880
|
-
return InvalidTransaction_.instanceOf(obj);
|
|
1881
|
-
}
|
|
1882
|
-
|
|
1883
|
-
static getInner(
|
|
1884
|
-
obj: InvalidTransaction_
|
|
1885
|
-
): Readonly<{ errorMessage: string }> {
|
|
1886
|
-
return obj.inner;
|
|
1887
|
-
}
|
|
1888
|
-
}
|
|
1889
|
-
|
|
1890
|
-
type InsufficientFunds__interface = {
|
|
1891
|
-
tag: BarkError_Tags.InsufficientFunds;
|
|
1892
|
-
inner: Readonly<{ errorMessage: string }>;
|
|
1893
|
-
};
|
|
1894
|
-
|
|
1895
|
-
class InsufficientFunds_
|
|
1896
|
-
extends UniffiError
|
|
1897
|
-
implements InsufficientFunds__interface
|
|
1898
|
-
{
|
|
1899
|
-
/**
|
|
1900
|
-
* @private
|
|
1901
|
-
* This field is private and should not be used, use `tag` instead.
|
|
1902
|
-
*/
|
|
1903
|
-
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
1904
|
-
readonly tag = BarkError_Tags.InsufficientFunds;
|
|
1905
|
-
readonly inner: Readonly<{ errorMessage: string }>;
|
|
1906
|
-
constructor(inner: { errorMessage: string }) {
|
|
1907
|
-
super("BarkError", "InsufficientFunds");
|
|
1908
|
-
this.inner = Object.freeze(inner);
|
|
1909
|
-
}
|
|
1910
|
-
|
|
1911
|
-
static new(inner: { errorMessage: string }): InsufficientFunds_ {
|
|
1912
|
-
return new InsufficientFunds_(inner);
|
|
1913
|
-
}
|
|
1914
|
-
|
|
1915
|
-
static instanceOf(obj: any): obj is InsufficientFunds_ {
|
|
1916
|
-
return obj.tag === BarkError_Tags.InsufficientFunds;
|
|
1917
|
-
}
|
|
1918
|
-
|
|
1919
|
-
static hasInner(obj: any): obj is InsufficientFunds_ {
|
|
1920
|
-
return InsufficientFunds_.instanceOf(obj);
|
|
1921
|
-
}
|
|
1922
|
-
|
|
1923
|
-
static getInner(
|
|
1924
|
-
obj: InsufficientFunds_
|
|
1925
|
-
): Readonly<{ errorMessage: string }> {
|
|
1926
|
-
return obj.inner;
|
|
1927
|
-
}
|
|
1928
|
-
}
|
|
1929
|
-
|
|
1930
|
-
type NotFound__interface = {
|
|
1931
|
-
tag: BarkError_Tags.NotFound;
|
|
1932
|
-
inner: Readonly<{ errorMessage: string }>;
|
|
1933
|
-
};
|
|
1934
|
-
|
|
1935
|
-
class NotFound_ extends UniffiError implements NotFound__interface {
|
|
1936
|
-
/**
|
|
1937
|
-
* @private
|
|
1938
|
-
* This field is private and should not be used, use `tag` instead.
|
|
1939
|
-
*/
|
|
1940
|
-
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
1941
|
-
readonly tag = BarkError_Tags.NotFound;
|
|
1942
|
-
readonly inner: Readonly<{ errorMessage: string }>;
|
|
1943
|
-
constructor(inner: { errorMessage: string }) {
|
|
1944
|
-
super("BarkError", "NotFound");
|
|
1945
|
-
this.inner = Object.freeze(inner);
|
|
1946
|
-
}
|
|
1947
|
-
|
|
1948
|
-
static new(inner: { errorMessage: string }): NotFound_ {
|
|
1949
|
-
return new NotFound_(inner);
|
|
1950
|
-
}
|
|
1951
|
-
|
|
1952
|
-
static instanceOf(obj: any): obj is NotFound_ {
|
|
1953
|
-
return obj.tag === BarkError_Tags.NotFound;
|
|
1954
|
-
}
|
|
1955
|
-
|
|
1956
|
-
static hasInner(obj: any): obj is NotFound_ {
|
|
1957
|
-
return NotFound_.instanceOf(obj);
|
|
1958
|
-
}
|
|
1959
|
-
|
|
1960
|
-
static getInner(obj: NotFound_): Readonly<{ errorMessage: string }> {
|
|
1961
|
-
return obj.inner;
|
|
1962
|
-
}
|
|
1963
|
-
}
|
|
1964
|
-
|
|
1965
|
-
type ServerConnection__interface = {
|
|
1966
|
-
tag: BarkError_Tags.ServerConnection;
|
|
1967
|
-
inner: Readonly<{ errorMessage: string }>;
|
|
1968
|
-
};
|
|
1969
|
-
|
|
1970
|
-
class ServerConnection_
|
|
1971
|
-
extends UniffiError
|
|
1972
|
-
implements ServerConnection__interface
|
|
1973
|
-
{
|
|
1974
|
-
/**
|
|
1975
|
-
* @private
|
|
1976
|
-
* This field is private and should not be used, use `tag` instead.
|
|
1977
|
-
*/
|
|
1978
|
-
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
1979
|
-
readonly tag = BarkError_Tags.ServerConnection;
|
|
1980
|
-
readonly inner: Readonly<{ errorMessage: string }>;
|
|
1981
|
-
constructor(inner: { errorMessage: string }) {
|
|
1982
|
-
super("BarkError", "ServerConnection");
|
|
1983
|
-
this.inner = Object.freeze(inner);
|
|
1984
|
-
}
|
|
1985
|
-
|
|
1986
|
-
static new(inner: { errorMessage: string }): ServerConnection_ {
|
|
1987
|
-
return new ServerConnection_(inner);
|
|
1988
|
-
}
|
|
1989
|
-
|
|
1990
|
-
static instanceOf(obj: any): obj is ServerConnection_ {
|
|
1991
|
-
return obj.tag === BarkError_Tags.ServerConnection;
|
|
1992
|
-
}
|
|
1993
|
-
|
|
1994
|
-
static hasInner(obj: any): obj is ServerConnection_ {
|
|
1995
|
-
return ServerConnection_.instanceOf(obj);
|
|
1996
|
-
}
|
|
1997
|
-
|
|
1998
|
-
static getInner(
|
|
1999
|
-
obj: ServerConnection_
|
|
2000
|
-
): Readonly<{ errorMessage: string }> {
|
|
2001
|
-
return obj.inner;
|
|
2002
|
-
}
|
|
2003
|
-
}
|
|
2004
|
-
|
|
2005
|
-
type Internal__interface = {
|
|
2006
|
-
tag: BarkError_Tags.Internal;
|
|
2007
|
-
inner: Readonly<{ errorMessage: string }>;
|
|
2008
|
-
};
|
|
2009
|
-
|
|
2010
|
-
class Internal_ extends UniffiError implements Internal__interface {
|
|
2011
|
-
/**
|
|
2012
|
-
* @private
|
|
2013
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2014
|
-
*/
|
|
2015
|
-
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
2016
|
-
readonly tag = BarkError_Tags.Internal;
|
|
2017
|
-
readonly inner: Readonly<{ errorMessage: string }>;
|
|
2018
|
-
constructor(inner: { errorMessage: string }) {
|
|
2019
|
-
super("BarkError", "Internal");
|
|
2020
|
-
this.inner = Object.freeze(inner);
|
|
2021
|
-
}
|
|
2022
|
-
|
|
2023
|
-
static new(inner: { errorMessage: string }): Internal_ {
|
|
2024
|
-
return new Internal_(inner);
|
|
2025
|
-
}
|
|
2026
|
-
|
|
2027
|
-
static instanceOf(obj: any): obj is Internal_ {
|
|
2028
|
-
return obj.tag === BarkError_Tags.Internal;
|
|
2029
|
-
}
|
|
2030
|
-
|
|
2031
|
-
static hasInner(obj: any): obj is Internal_ {
|
|
2032
|
-
return Internal_.instanceOf(obj);
|
|
2033
|
-
}
|
|
2034
|
-
|
|
2035
|
-
static getInner(obj: Internal_): Readonly<{ errorMessage: string }> {
|
|
2036
|
-
return obj.inner;
|
|
2037
|
-
}
|
|
2038
|
-
}
|
|
2039
|
-
|
|
2040
|
-
type OnchainWalletRequired__interface = {
|
|
2041
|
-
tag: BarkError_Tags.OnchainWalletRequired;
|
|
2042
|
-
inner: Readonly<{ errorMessage: string }>;
|
|
2043
|
-
};
|
|
2044
|
-
|
|
2045
|
-
class OnchainWalletRequired_
|
|
2046
|
-
extends UniffiError
|
|
2047
|
-
implements OnchainWalletRequired__interface
|
|
2048
|
-
{
|
|
2049
|
-
/**
|
|
2050
|
-
* @private
|
|
2051
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2052
|
-
*/
|
|
2053
|
-
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
2054
|
-
readonly tag = BarkError_Tags.OnchainWalletRequired;
|
|
2055
|
-
readonly inner: Readonly<{ errorMessage: string }>;
|
|
2056
|
-
constructor(inner: { errorMessage: string }) {
|
|
2057
|
-
super("BarkError", "OnchainWalletRequired");
|
|
2058
|
-
this.inner = Object.freeze(inner);
|
|
2059
|
-
}
|
|
2060
|
-
|
|
2061
|
-
static new(inner: { errorMessage: string }): OnchainWalletRequired_ {
|
|
2062
|
-
return new OnchainWalletRequired_(inner);
|
|
2063
|
-
}
|
|
2064
|
-
|
|
2065
|
-
static instanceOf(obj: any): obj is OnchainWalletRequired_ {
|
|
2066
|
-
return obj.tag === BarkError_Tags.OnchainWalletRequired;
|
|
2067
|
-
}
|
|
2068
|
-
|
|
2069
|
-
static hasInner(obj: any): obj is OnchainWalletRequired_ {
|
|
2070
|
-
return OnchainWalletRequired_.instanceOf(obj);
|
|
2071
|
-
}
|
|
2072
|
-
|
|
2073
|
-
static getInner(
|
|
2074
|
-
obj: OnchainWalletRequired_
|
|
2075
|
-
): Readonly<{ errorMessage: string }> {
|
|
2076
|
-
return obj.inner;
|
|
2077
|
-
}
|
|
2078
|
-
}
|
|
2079
|
-
|
|
2080
|
-
type InvalidVtxoId__interface = {
|
|
2081
|
-
tag: BarkError_Tags.InvalidVtxoId;
|
|
2082
|
-
inner: Readonly<{ errorMessage: string }>;
|
|
2083
|
-
};
|
|
2084
|
-
|
|
2085
|
-
class InvalidVtxoId_ extends UniffiError implements InvalidVtxoId__interface {
|
|
2086
|
-
/**
|
|
2087
|
-
* @private
|
|
2088
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2089
|
-
*/
|
|
2090
|
-
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
2091
|
-
readonly tag = BarkError_Tags.InvalidVtxoId;
|
|
2092
|
-
readonly inner: Readonly<{ errorMessage: string }>;
|
|
2093
|
-
constructor(inner: { errorMessage: string }) {
|
|
2094
|
-
super("BarkError", "InvalidVtxoId");
|
|
2095
|
-
this.inner = Object.freeze(inner);
|
|
2096
|
-
}
|
|
2097
|
-
|
|
2098
|
-
static new(inner: { errorMessage: string }): InvalidVtxoId_ {
|
|
2099
|
-
return new InvalidVtxoId_(inner);
|
|
2100
|
-
}
|
|
2101
|
-
|
|
2102
|
-
static instanceOf(obj: any): obj is InvalidVtxoId_ {
|
|
2103
|
-
return obj.tag === BarkError_Tags.InvalidVtxoId;
|
|
2104
|
-
}
|
|
2105
|
-
|
|
2106
|
-
static hasInner(obj: any): obj is InvalidVtxoId_ {
|
|
2107
|
-
return InvalidVtxoId_.instanceOf(obj);
|
|
2108
|
-
}
|
|
2109
|
-
|
|
2110
|
-
static getInner(obj: InvalidVtxoId_): Readonly<{ errorMessage: string }> {
|
|
2111
|
-
return obj.inner;
|
|
2112
|
-
}
|
|
2113
|
-
}
|
|
2114
|
-
|
|
2115
|
-
type ServerPubkeyChanged__interface = {
|
|
2116
|
-
tag: BarkError_Tags.ServerPubkeyChanged;
|
|
2117
|
-
inner: Readonly<{ errorMessage: string }>;
|
|
2118
|
-
};
|
|
2119
|
-
|
|
2120
|
-
class ServerPubkeyChanged_
|
|
2121
|
-
extends UniffiError
|
|
2122
|
-
implements ServerPubkeyChanged__interface
|
|
2123
|
-
{
|
|
2124
|
-
/**
|
|
2125
|
-
* @private
|
|
2126
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2127
|
-
*/
|
|
2128
|
-
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
2129
|
-
readonly tag = BarkError_Tags.ServerPubkeyChanged;
|
|
2130
|
-
readonly inner: Readonly<{ errorMessage: string }>;
|
|
2131
|
-
constructor(inner: { errorMessage: string }) {
|
|
2132
|
-
super("BarkError", "ServerPubkeyChanged");
|
|
2133
|
-
this.inner = Object.freeze(inner);
|
|
2134
|
-
}
|
|
2135
|
-
|
|
2136
|
-
static new(inner: { errorMessage: string }): ServerPubkeyChanged_ {
|
|
2137
|
-
return new ServerPubkeyChanged_(inner);
|
|
2138
|
-
}
|
|
2139
|
-
|
|
2140
|
-
static instanceOf(obj: any): obj is ServerPubkeyChanged_ {
|
|
2141
|
-
return obj.tag === BarkError_Tags.ServerPubkeyChanged;
|
|
2142
|
-
}
|
|
2143
|
-
|
|
2144
|
-
static hasInner(obj: any): obj is ServerPubkeyChanged_ {
|
|
2145
|
-
return ServerPubkeyChanged_.instanceOf(obj);
|
|
2146
|
-
}
|
|
2147
|
-
|
|
2148
|
-
static getInner(
|
|
2149
|
-
obj: ServerPubkeyChanged_
|
|
2150
|
-
): Readonly<{ errorMessage: string }> {
|
|
2151
|
-
return obj.inner;
|
|
2152
|
-
}
|
|
2153
|
-
}
|
|
2154
|
-
|
|
2155
|
-
function instanceOf(obj: any): obj is BarkError {
|
|
2156
|
-
return obj[uniffiTypeNameSymbol] === "BarkError";
|
|
2157
|
-
}
|
|
2158
|
-
|
|
2159
|
-
return Object.freeze({
|
|
2160
|
-
instanceOf,
|
|
2161
|
-
Network: Network_,
|
|
2162
|
-
Database: Database_,
|
|
2163
|
-
InvalidMnemonic: InvalidMnemonic_,
|
|
2164
|
-
InvalidAddress: InvalidAddress_,
|
|
2165
|
-
InvalidInvoice: InvalidInvoice_,
|
|
2166
|
-
InvalidPsbt: InvalidPsbt_,
|
|
2167
|
-
InvalidTransaction: InvalidTransaction_,
|
|
2168
|
-
InsufficientFunds: InsufficientFunds_,
|
|
2169
|
-
NotFound: NotFound_,
|
|
2170
|
-
ServerConnection: ServerConnection_,
|
|
2171
|
-
Internal: Internal_,
|
|
2172
|
-
OnchainWalletRequired: OnchainWalletRequired_,
|
|
2173
|
-
InvalidVtxoId: InvalidVtxoId_,
|
|
2174
|
-
ServerPubkeyChanged: ServerPubkeyChanged_,
|
|
2175
|
-
});
|
|
2176
|
-
})();
|
|
2177
|
-
|
|
2178
|
-
/**
|
|
2179
|
-
* Error types that can occur when using the Bark wallet FFI
|
|
2180
|
-
*/
|
|
2181
|
-
|
|
2182
|
-
export type BarkError = InstanceType<
|
|
2183
|
-
(typeof BarkError)[keyof Omit<typeof BarkError, "instanceOf">]
|
|
2184
|
-
>;
|
|
2185
|
-
|
|
2186
|
-
// FfiConverter for enum BarkError
|
|
2187
|
-
const FfiConverterTypeBarkError = (() => {
|
|
2188
|
-
const ordinalConverter = FfiConverterInt32;
|
|
2189
|
-
type TypeName = BarkError;
|
|
2190
|
-
class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {
|
|
2191
|
-
read(from: RustBuffer): TypeName {
|
|
2192
|
-
switch (ordinalConverter.read(from)) {
|
|
2193
|
-
case 1:
|
|
2194
|
-
return new BarkError.Network({
|
|
2195
|
-
errorMessage: FfiConverterString.read(from),
|
|
2196
|
-
});
|
|
2197
|
-
case 2:
|
|
2198
|
-
return new BarkError.Database({
|
|
2199
|
-
errorMessage: FfiConverterString.read(from),
|
|
2200
|
-
});
|
|
2201
|
-
case 3:
|
|
2202
|
-
return new BarkError.InvalidMnemonic({
|
|
2203
|
-
errorMessage: FfiConverterString.read(from),
|
|
2204
|
-
});
|
|
2205
|
-
case 4:
|
|
2206
|
-
return new BarkError.InvalidAddress({
|
|
2207
|
-
errorMessage: FfiConverterString.read(from),
|
|
2208
|
-
});
|
|
2209
|
-
case 5:
|
|
2210
|
-
return new BarkError.InvalidInvoice({
|
|
2211
|
-
errorMessage: FfiConverterString.read(from),
|
|
2212
|
-
});
|
|
2213
|
-
case 6:
|
|
2214
|
-
return new BarkError.InvalidPsbt({
|
|
2215
|
-
errorMessage: FfiConverterString.read(from),
|
|
2216
|
-
});
|
|
2217
|
-
case 7:
|
|
2218
|
-
return new BarkError.InvalidTransaction({
|
|
2219
|
-
errorMessage: FfiConverterString.read(from),
|
|
2220
|
-
});
|
|
2221
|
-
case 8:
|
|
2222
|
-
return new BarkError.InsufficientFunds({
|
|
2223
|
-
errorMessage: FfiConverterString.read(from),
|
|
2224
|
-
});
|
|
2225
|
-
case 9:
|
|
2226
|
-
return new BarkError.NotFound({
|
|
2227
|
-
errorMessage: FfiConverterString.read(from),
|
|
2228
|
-
});
|
|
2229
|
-
case 10:
|
|
2230
|
-
return new BarkError.ServerConnection({
|
|
2231
|
-
errorMessage: FfiConverterString.read(from),
|
|
2232
|
-
});
|
|
2233
|
-
case 11:
|
|
2234
|
-
return new BarkError.Internal({
|
|
2235
|
-
errorMessage: FfiConverterString.read(from),
|
|
2236
|
-
});
|
|
2237
|
-
case 12:
|
|
2238
|
-
return new BarkError.OnchainWalletRequired({
|
|
2239
|
-
errorMessage: FfiConverterString.read(from),
|
|
2240
|
-
});
|
|
2241
|
-
case 13:
|
|
2242
|
-
return new BarkError.InvalidVtxoId({
|
|
2243
|
-
errorMessage: FfiConverterString.read(from),
|
|
2244
|
-
});
|
|
2245
|
-
case 14:
|
|
2246
|
-
return new BarkError.ServerPubkeyChanged({
|
|
2247
|
-
errorMessage: FfiConverterString.read(from),
|
|
2248
|
-
});
|
|
2249
|
-
default:
|
|
2250
|
-
throw new UniffiInternalError.UnexpectedEnumCase();
|
|
2251
|
-
}
|
|
2252
|
-
}
|
|
2253
|
-
write(value: TypeName, into: RustBuffer): void {
|
|
2254
|
-
switch (value.tag) {
|
|
2255
|
-
case BarkError_Tags.Network: {
|
|
2256
|
-
ordinalConverter.write(1, into);
|
|
2257
|
-
const inner = value.inner;
|
|
2258
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
2259
|
-
return;
|
|
2260
|
-
}
|
|
2261
|
-
case BarkError_Tags.Database: {
|
|
2262
|
-
ordinalConverter.write(2, into);
|
|
2263
|
-
const inner = value.inner;
|
|
2264
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
2265
|
-
return;
|
|
2266
|
-
}
|
|
2267
|
-
case BarkError_Tags.InvalidMnemonic: {
|
|
2268
|
-
ordinalConverter.write(3, into);
|
|
2269
|
-
const inner = value.inner;
|
|
2270
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
2271
|
-
return;
|
|
2272
|
-
}
|
|
2273
|
-
case BarkError_Tags.InvalidAddress: {
|
|
2274
|
-
ordinalConverter.write(4, into);
|
|
2275
|
-
const inner = value.inner;
|
|
2276
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
2277
|
-
return;
|
|
2278
|
-
}
|
|
2279
|
-
case BarkError_Tags.InvalidInvoice: {
|
|
2280
|
-
ordinalConverter.write(5, into);
|
|
2281
|
-
const inner = value.inner;
|
|
2282
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
2283
|
-
return;
|
|
2284
|
-
}
|
|
2285
|
-
case BarkError_Tags.InvalidPsbt: {
|
|
2286
|
-
ordinalConverter.write(6, into);
|
|
2287
|
-
const inner = value.inner;
|
|
2288
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
2289
|
-
return;
|
|
2290
|
-
}
|
|
2291
|
-
case BarkError_Tags.InvalidTransaction: {
|
|
2292
|
-
ordinalConverter.write(7, into);
|
|
2293
|
-
const inner = value.inner;
|
|
2294
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
2295
|
-
return;
|
|
2296
|
-
}
|
|
2297
|
-
case BarkError_Tags.InsufficientFunds: {
|
|
2298
|
-
ordinalConverter.write(8, into);
|
|
2299
|
-
const inner = value.inner;
|
|
2300
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
2301
|
-
return;
|
|
2302
|
-
}
|
|
2303
|
-
case BarkError_Tags.NotFound: {
|
|
2304
|
-
ordinalConverter.write(9, into);
|
|
2305
|
-
const inner = value.inner;
|
|
2306
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
2307
|
-
return;
|
|
2308
|
-
}
|
|
2309
|
-
case BarkError_Tags.ServerConnection: {
|
|
2310
|
-
ordinalConverter.write(10, into);
|
|
2311
|
-
const inner = value.inner;
|
|
2312
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
2313
|
-
return;
|
|
2314
|
-
}
|
|
2315
|
-
case BarkError_Tags.Internal: {
|
|
2316
|
-
ordinalConverter.write(11, into);
|
|
2317
|
-
const inner = value.inner;
|
|
2318
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
2319
|
-
return;
|
|
2320
|
-
}
|
|
2321
|
-
case BarkError_Tags.OnchainWalletRequired: {
|
|
2322
|
-
ordinalConverter.write(12, into);
|
|
2323
|
-
const inner = value.inner;
|
|
2324
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
2325
|
-
return;
|
|
2326
|
-
}
|
|
2327
|
-
case BarkError_Tags.InvalidVtxoId: {
|
|
2328
|
-
ordinalConverter.write(13, into);
|
|
2329
|
-
const inner = value.inner;
|
|
2330
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
2331
|
-
return;
|
|
2332
|
-
}
|
|
2333
|
-
case BarkError_Tags.ServerPubkeyChanged: {
|
|
2334
|
-
ordinalConverter.write(14, into);
|
|
2335
|
-
const inner = value.inner;
|
|
2336
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
2337
|
-
return;
|
|
2338
|
-
}
|
|
2339
|
-
default:
|
|
2340
|
-
// Throwing from here means that BarkError_Tags hasn't matched an ordinal.
|
|
2341
|
-
throw new UniffiInternalError.UnexpectedEnumCase();
|
|
2342
|
-
}
|
|
2343
|
-
}
|
|
2344
|
-
allocationSize(value: TypeName): number {
|
|
2345
|
-
switch (value.tag) {
|
|
2346
|
-
case BarkError_Tags.Network: {
|
|
2347
|
-
const inner = value.inner;
|
|
2348
|
-
let size = ordinalConverter.allocationSize(1);
|
|
2349
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
2350
|
-
return size;
|
|
2351
|
-
}
|
|
2352
|
-
case BarkError_Tags.Database: {
|
|
2353
|
-
const inner = value.inner;
|
|
2354
|
-
let size = ordinalConverter.allocationSize(2);
|
|
2355
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
2356
|
-
return size;
|
|
2357
|
-
}
|
|
2358
|
-
case BarkError_Tags.InvalidMnemonic: {
|
|
2359
|
-
const inner = value.inner;
|
|
2360
|
-
let size = ordinalConverter.allocationSize(3);
|
|
2361
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
2362
|
-
return size;
|
|
2363
|
-
}
|
|
2364
|
-
case BarkError_Tags.InvalidAddress: {
|
|
2365
|
-
const inner = value.inner;
|
|
2366
|
-
let size = ordinalConverter.allocationSize(4);
|
|
2367
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
2368
|
-
return size;
|
|
2369
|
-
}
|
|
2370
|
-
case BarkError_Tags.InvalidInvoice: {
|
|
2371
|
-
const inner = value.inner;
|
|
2372
|
-
let size = ordinalConverter.allocationSize(5);
|
|
2373
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
2374
|
-
return size;
|
|
2375
|
-
}
|
|
2376
|
-
case BarkError_Tags.InvalidPsbt: {
|
|
2377
|
-
const inner = value.inner;
|
|
2378
|
-
let size = ordinalConverter.allocationSize(6);
|
|
2379
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
2380
|
-
return size;
|
|
2381
|
-
}
|
|
2382
|
-
case BarkError_Tags.InvalidTransaction: {
|
|
2383
|
-
const inner = value.inner;
|
|
2384
|
-
let size = ordinalConverter.allocationSize(7);
|
|
2385
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
2386
|
-
return size;
|
|
2387
|
-
}
|
|
2388
|
-
case BarkError_Tags.InsufficientFunds: {
|
|
2389
|
-
const inner = value.inner;
|
|
2390
|
-
let size = ordinalConverter.allocationSize(8);
|
|
2391
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
2392
|
-
return size;
|
|
2393
|
-
}
|
|
2394
|
-
case BarkError_Tags.NotFound: {
|
|
2395
|
-
const inner = value.inner;
|
|
2396
|
-
let size = ordinalConverter.allocationSize(9);
|
|
2397
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
2398
|
-
return size;
|
|
2399
|
-
}
|
|
2400
|
-
case BarkError_Tags.ServerConnection: {
|
|
2401
|
-
const inner = value.inner;
|
|
2402
|
-
let size = ordinalConverter.allocationSize(10);
|
|
2403
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
2404
|
-
return size;
|
|
2405
|
-
}
|
|
2406
|
-
case BarkError_Tags.Internal: {
|
|
2407
|
-
const inner = value.inner;
|
|
2408
|
-
let size = ordinalConverter.allocationSize(11);
|
|
2409
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
2410
|
-
return size;
|
|
2411
|
-
}
|
|
2412
|
-
case BarkError_Tags.OnchainWalletRequired: {
|
|
2413
|
-
const inner = value.inner;
|
|
2414
|
-
let size = ordinalConverter.allocationSize(12);
|
|
2415
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
2416
|
-
return size;
|
|
2417
|
-
}
|
|
2418
|
-
case BarkError_Tags.InvalidVtxoId: {
|
|
2419
|
-
const inner = value.inner;
|
|
2420
|
-
let size = ordinalConverter.allocationSize(13);
|
|
2421
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
2422
|
-
return size;
|
|
2423
|
-
}
|
|
2424
|
-
case BarkError_Tags.ServerPubkeyChanged: {
|
|
2425
|
-
const inner = value.inner;
|
|
2426
|
-
let size = ordinalConverter.allocationSize(14);
|
|
2427
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
2428
|
-
return size;
|
|
2429
|
-
}
|
|
1724
|
+
uniffiCaller.rustCall((status) =>
|
|
1725
|
+
nativeModule().ubrn_uniffi_internal_fn_func_ffi__string_to_byte_length(
|
|
1726
|
+
s,
|
|
1727
|
+
status
|
|
1728
|
+
)
|
|
1729
|
+
),
|
|
1730
|
+
};
|
|
1731
|
+
const FfiConverterString = uniffiCreateFfiConverterString(stringConverter);
|
|
1732
|
+
|
|
1733
|
+
// Flat error type: Exception
|
|
1734
|
+
export enum Exception_Tags {
|
|
1735
|
+
Inner = "Inner",
|
|
1736
|
+
}
|
|
1737
|
+
/**
|
|
1738
|
+
* The single error type surfaced across the Bark FFI.
|
|
1739
|
+
*
|
|
1740
|
+
* It is a thin, single-variant wrapper around [`anyhow::Error`]. uniffi error
|
|
1741
|
+
* types must be enums (callback interfaces require `ConvertError`, which
|
|
1742
|
+
* objects cannot provide), and `flat_error` tells uniffi to carry only the
|
|
1743
|
+
* `Display` string across the boundary — so the rich anyhow context collapses
|
|
1744
|
+
* to a single message on the foreign side.
|
|
1745
|
+
*/
|
|
1746
|
+
export const Exception = (() => {
|
|
1747
|
+
class Inner extends UniffiError {
|
|
1748
|
+
/**
|
|
1749
|
+
* @private
|
|
1750
|
+
* This field is private and should not be used.
|
|
1751
|
+
*/
|
|
1752
|
+
readonly [uniffiTypeNameSymbol]: string = "Exception";
|
|
1753
|
+
/**
|
|
1754
|
+
* @private
|
|
1755
|
+
* This field is private and should not be used.
|
|
1756
|
+
*/
|
|
1757
|
+
readonly [variantOrdinalSymbol] = 1;
|
|
1758
|
+
|
|
1759
|
+
readonly tag = Exception_Tags.Inner;
|
|
1760
|
+
|
|
1761
|
+
constructor(message: string) {
|
|
1762
|
+
super("Exception", "Inner", message);
|
|
1763
|
+
}
|
|
1764
|
+
|
|
1765
|
+
static instanceOf(e: any): e is Inner {
|
|
1766
|
+
return instanceOf(e) && (e as any)[variantOrdinalSymbol] === 1;
|
|
1767
|
+
}
|
|
1768
|
+
}
|
|
1769
|
+
|
|
1770
|
+
// Utility function which does not rely on instanceof.
|
|
1771
|
+
function instanceOf(e: any): e is Exception {
|
|
1772
|
+
return (e as any)[uniffiTypeNameSymbol] === "Exception";
|
|
1773
|
+
}
|
|
1774
|
+
return {
|
|
1775
|
+
Inner,
|
|
1776
|
+
instanceOf,
|
|
1777
|
+
};
|
|
1778
|
+
})();
|
|
1779
|
+
|
|
1780
|
+
// Union type for Exception error type.
|
|
1781
|
+
|
|
1782
|
+
/**
|
|
1783
|
+
* The single error type surfaced across the Bark FFI.
|
|
1784
|
+
*
|
|
1785
|
+
* It is a thin, single-variant wrapper around [`anyhow::Error`]. uniffi error
|
|
1786
|
+
* types must be enums (callback interfaces require `ConvertError`, which
|
|
1787
|
+
* objects cannot provide), and `flat_error` tells uniffi to carry only the
|
|
1788
|
+
* `Display` string across the boundary — so the rich anyhow context collapses
|
|
1789
|
+
* to a single message on the foreign side.
|
|
1790
|
+
*/
|
|
1791
|
+
|
|
1792
|
+
export type Exception = InstanceType<
|
|
1793
|
+
(typeof Exception)[keyof Omit<typeof Exception, "instanceOf">]
|
|
1794
|
+
>;
|
|
1795
|
+
|
|
1796
|
+
const FfiConverterTypeError = (() => {
|
|
1797
|
+
const intConverter = FfiConverterInt32;
|
|
1798
|
+
type TypeName = Exception;
|
|
1799
|
+
class FfiConverter extends AbstractFfiConverterByteArray<TypeName> {
|
|
1800
|
+
read(from: RustBuffer): TypeName {
|
|
1801
|
+
switch (intConverter.read(from)) {
|
|
1802
|
+
case 1:
|
|
1803
|
+
return new Exception.Inner(FfiConverterString.read(from));
|
|
1804
|
+
|
|
2430
1805
|
default:
|
|
2431
1806
|
throw new UniffiInternalError.UnexpectedEnumCase();
|
|
2432
1807
|
}
|
|
2433
1808
|
}
|
|
1809
|
+
write(value: TypeName, into: RustBuffer): void {
|
|
1810
|
+
const obj = value as any;
|
|
1811
|
+
const index = obj[variantOrdinalSymbol] as number;
|
|
1812
|
+
intConverter.write(index, into);
|
|
1813
|
+
}
|
|
1814
|
+
allocationSize(value: TypeName): number {
|
|
1815
|
+
return intConverter.allocationSize(0);
|
|
1816
|
+
}
|
|
2434
1817
|
}
|
|
2435
|
-
return new
|
|
1818
|
+
return new FfiConverter();
|
|
2436
1819
|
})();
|
|
2437
1820
|
|
|
2438
1821
|
// Enum: LightningSendStatus
|
|
@@ -3208,6 +2591,15 @@ export interface CustomOnchainWalletCallbacks {
|
|
|
3208
2591
|
* * `tx_hex` - Hex-encoded transaction
|
|
3209
2592
|
*/
|
|
3210
2593
|
storeSignedP2aCpfp(txHex: string): /*throws*/ void;
|
|
2594
|
+
/**
|
|
2595
|
+
* Sync the wallet with the chain.
|
|
2596
|
+
*
|
|
2597
|
+
* Called by Bark (e.g. the background daemon) to ask the wallet to refresh
|
|
2598
|
+
* its view of the chain before reading balances or building transactions.
|
|
2599
|
+
* Implementations bring their own chain backend up to date — Bark's chain
|
|
2600
|
+
* source is intentionally not passed across the FFI boundary.
|
|
2601
|
+
*/
|
|
2602
|
+
sync(): /*throws*/ void;
|
|
3211
2603
|
}
|
|
3212
2604
|
|
|
3213
2605
|
/**
|
|
@@ -3236,9 +2628,7 @@ export class CustomOnchainWalletCallbacksImpl
|
|
|
3236
2628
|
getBalance(): /*u64*/ bigint /*throws*/ {
|
|
3237
2629
|
return FfiConverterUInt64.lift(
|
|
3238
2630
|
uniffiCaller.rustCallWithError(
|
|
3239
|
-
/*liftError:*/
|
|
3240
|
-
FfiConverterTypeBarkError
|
|
3241
|
-
),
|
|
2631
|
+
/*liftError:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError),
|
|
3242
2632
|
/*caller:*/ (callStatus) => {
|
|
3243
2633
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_balance(
|
|
3244
2634
|
uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(
|
|
@@ -3268,9 +2658,7 @@ export class CustomOnchainWalletCallbacksImpl
|
|
|
3268
2658
|
): string /*throws*/ {
|
|
3269
2659
|
return FfiConverterString.lift(
|
|
3270
2660
|
uniffiCaller.rustCallWithError(
|
|
3271
|
-
/*liftError:*/
|
|
3272
|
-
FfiConverterTypeBarkError
|
|
3273
|
-
),
|
|
2661
|
+
/*liftError:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError),
|
|
3274
2662
|
/*caller:*/ (callStatus) => {
|
|
3275
2663
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_prepare_tx(
|
|
3276
2664
|
uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(
|
|
@@ -3302,9 +2690,7 @@ export class CustomOnchainWalletCallbacksImpl
|
|
|
3302
2690
|
): string /*throws*/ {
|
|
3303
2691
|
return FfiConverterString.lift(
|
|
3304
2692
|
uniffiCaller.rustCallWithError(
|
|
3305
|
-
/*liftError:*/
|
|
3306
|
-
FfiConverterTypeBarkError
|
|
3307
|
-
),
|
|
2693
|
+
/*liftError:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError),
|
|
3308
2694
|
/*caller:*/ (callStatus) => {
|
|
3309
2695
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_prepare_drain_tx(
|
|
3310
2696
|
uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(
|
|
@@ -3332,9 +2718,7 @@ export class CustomOnchainWalletCallbacksImpl
|
|
|
3332
2718
|
finishPsbt(psbtBase64: string): string /*throws*/ {
|
|
3333
2719
|
return FfiConverterString.lift(
|
|
3334
2720
|
uniffiCaller.rustCallWithError(
|
|
3335
|
-
/*liftError:*/
|
|
3336
|
-
FfiConverterTypeBarkError
|
|
3337
|
-
),
|
|
2721
|
+
/*liftError:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError),
|
|
3338
2722
|
/*caller:*/ (callStatus) => {
|
|
3339
2723
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_finish_psbt(
|
|
3340
2724
|
uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(
|
|
@@ -3361,9 +2745,7 @@ export class CustomOnchainWalletCallbacksImpl
|
|
|
3361
2745
|
getWalletTx(txid: string): string | undefined /*throws*/ {
|
|
3362
2746
|
return FfiConverterOptionalString.lift(
|
|
3363
2747
|
uniffiCaller.rustCallWithError(
|
|
3364
|
-
/*liftError:*/
|
|
3365
|
-
FfiConverterTypeBarkError
|
|
3366
|
-
),
|
|
2748
|
+
/*liftError:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError),
|
|
3367
2749
|
/*caller:*/ (callStatus) => {
|
|
3368
2750
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_wallet_tx(
|
|
3369
2751
|
uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(
|
|
@@ -3390,9 +2772,7 @@ export class CustomOnchainWalletCallbacksImpl
|
|
|
3390
2772
|
getWalletTxConfirmedBlock(txid: string): BlockRef | undefined /*throws*/ {
|
|
3391
2773
|
return FfiConverterOptionalTypeBlockRef.lift(
|
|
3392
2774
|
uniffiCaller.rustCallWithError(
|
|
3393
|
-
/*liftError:*/
|
|
3394
|
-
FfiConverterTypeBarkError
|
|
3395
|
-
),
|
|
2775
|
+
/*liftError:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError),
|
|
3396
2776
|
/*caller:*/ (callStatus) => {
|
|
3397
2777
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block(
|
|
3398
2778
|
uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(
|
|
@@ -3419,9 +2799,7 @@ export class CustomOnchainWalletCallbacksImpl
|
|
|
3419
2799
|
getSpendingTx(outpoint: OutPoint): string | undefined /*throws*/ {
|
|
3420
2800
|
return FfiConverterOptionalString.lift(
|
|
3421
2801
|
uniffiCaller.rustCallWithError(
|
|
3422
|
-
/*liftError:*/
|
|
3423
|
-
FfiConverterTypeBarkError
|
|
3424
|
-
),
|
|
2802
|
+
/*liftError:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError),
|
|
3425
2803
|
/*caller:*/ (callStatus) => {
|
|
3426
2804
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_spending_tx(
|
|
3427
2805
|
uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(
|
|
@@ -3448,9 +2826,7 @@ export class CustomOnchainWalletCallbacksImpl
|
|
|
3448
2826
|
makeSignedP2aCpfp(params: CpfpParams): string /*throws*/ {
|
|
3449
2827
|
return FfiConverterString.lift(
|
|
3450
2828
|
uniffiCaller.rustCallWithError(
|
|
3451
|
-
/*liftError:*/
|
|
3452
|
-
FfiConverterTypeBarkError
|
|
3453
|
-
),
|
|
2829
|
+
/*liftError:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError),
|
|
3454
2830
|
/*caller:*/ (callStatus) => {
|
|
3455
2831
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_make_signed_p2a_cpfp(
|
|
3456
2832
|
uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(
|
|
@@ -3473,9 +2849,7 @@ export class CustomOnchainWalletCallbacksImpl
|
|
|
3473
2849
|
*/
|
|
3474
2850
|
storeSignedP2aCpfp(txHex: string): void /*throws*/ {
|
|
3475
2851
|
uniffiCaller.rustCallWithError(
|
|
3476
|
-
/*liftError:*/
|
|
3477
|
-
FfiConverterTypeBarkError
|
|
3478
|
-
),
|
|
2852
|
+
/*liftError:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError),
|
|
3479
2853
|
/*caller:*/ (callStatus) => {
|
|
3480
2854
|
nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_store_signed_p2a_cpfp(
|
|
3481
2855
|
uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(
|
|
@@ -3489,6 +2863,29 @@ export class CustomOnchainWalletCallbacksImpl
|
|
|
3489
2863
|
);
|
|
3490
2864
|
}
|
|
3491
2865
|
|
|
2866
|
+
/**
|
|
2867
|
+
* Sync the wallet with the chain.
|
|
2868
|
+
*
|
|
2869
|
+
* Called by Bark (e.g. the background daemon) to ask the wallet to refresh
|
|
2870
|
+
* its view of the chain before reading balances or building transactions.
|
|
2871
|
+
* Implementations bring their own chain backend up to date — Bark's chain
|
|
2872
|
+
* source is intentionally not passed across the FFI boundary.
|
|
2873
|
+
*/
|
|
2874
|
+
sync(): void /*throws*/ {
|
|
2875
|
+
uniffiCaller.rustCallWithError(
|
|
2876
|
+
/*liftError:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError),
|
|
2877
|
+
/*caller:*/ (callStatus) => {
|
|
2878
|
+
nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_sync(
|
|
2879
|
+
uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(
|
|
2880
|
+
this
|
|
2881
|
+
),
|
|
2882
|
+
callStatus
|
|
2883
|
+
);
|
|
2884
|
+
},
|
|
2885
|
+
/*liftString:*/ FfiConverterString.lift
|
|
2886
|
+
);
|
|
2887
|
+
}
|
|
2888
|
+
|
|
3492
2889
|
/**
|
|
3493
2890
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3494
2891
|
*/
|
|
@@ -3611,10 +3008,8 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks: {
|
|
|
3611
3008
|
/*makeCall:*/ uniffiMakeCall,
|
|
3612
3009
|
/*handleSuccess:*/ uniffiHandleSuccess,
|
|
3613
3010
|
/*handleError:*/ uniffiHandleError,
|
|
3614
|
-
/*isErrorType:*/
|
|
3615
|
-
/*lowerError:*/
|
|
3616
|
-
FfiConverterTypeBarkError
|
|
3617
|
-
),
|
|
3011
|
+
/*isErrorType:*/ Exception.instanceOf,
|
|
3012
|
+
/*lowerError:*/ FfiConverterTypeError.lower.bind(FfiConverterTypeError),
|
|
3618
3013
|
/*lowerString:*/ FfiConverterString.lower
|
|
3619
3014
|
);
|
|
3620
3015
|
return uniffiResult;
|
|
@@ -3643,10 +3038,8 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks: {
|
|
|
3643
3038
|
/*makeCall:*/ uniffiMakeCall,
|
|
3644
3039
|
/*handleSuccess:*/ uniffiHandleSuccess,
|
|
3645
3040
|
/*handleError:*/ uniffiHandleError,
|
|
3646
|
-
/*isErrorType:*/
|
|
3647
|
-
/*lowerError:*/
|
|
3648
|
-
FfiConverterTypeBarkError
|
|
3649
|
-
),
|
|
3041
|
+
/*isErrorType:*/ Exception.instanceOf,
|
|
3042
|
+
/*lowerError:*/ FfiConverterTypeError.lower.bind(FfiConverterTypeError),
|
|
3650
3043
|
/*lowerString:*/ FfiConverterString.lower
|
|
3651
3044
|
);
|
|
3652
3045
|
return uniffiResult;
|
|
@@ -3675,10 +3068,8 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks: {
|
|
|
3675
3068
|
/*makeCall:*/ uniffiMakeCall,
|
|
3676
3069
|
/*handleSuccess:*/ uniffiHandleSuccess,
|
|
3677
3070
|
/*handleError:*/ uniffiHandleError,
|
|
3678
|
-
/*isErrorType:*/
|
|
3679
|
-
/*lowerError:*/
|
|
3680
|
-
FfiConverterTypeBarkError
|
|
3681
|
-
),
|
|
3071
|
+
/*isErrorType:*/ Exception.instanceOf,
|
|
3072
|
+
/*lowerError:*/ FfiConverterTypeError.lower.bind(FfiConverterTypeError),
|
|
3682
3073
|
/*lowerString:*/ FfiConverterString.lower
|
|
3683
3074
|
);
|
|
3684
3075
|
return uniffiResult;
|
|
@@ -3700,10 +3091,8 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks: {
|
|
|
3700
3091
|
/*makeCall:*/ uniffiMakeCall,
|
|
3701
3092
|
/*handleSuccess:*/ uniffiHandleSuccess,
|
|
3702
3093
|
/*handleError:*/ uniffiHandleError,
|
|
3703
|
-
/*isErrorType:*/
|
|
3704
|
-
/*lowerError:*/
|
|
3705
|
-
FfiConverterTypeBarkError
|
|
3706
|
-
),
|
|
3094
|
+
/*isErrorType:*/ Exception.instanceOf,
|
|
3095
|
+
/*lowerError:*/ FfiConverterTypeError.lower.bind(FfiConverterTypeError),
|
|
3707
3096
|
/*lowerString:*/ FfiConverterString.lower
|
|
3708
3097
|
);
|
|
3709
3098
|
return uniffiResult;
|
|
@@ -3728,10 +3117,8 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks: {
|
|
|
3728
3117
|
/*makeCall:*/ uniffiMakeCall,
|
|
3729
3118
|
/*handleSuccess:*/ uniffiHandleSuccess,
|
|
3730
3119
|
/*handleError:*/ uniffiHandleError,
|
|
3731
|
-
/*isErrorType:*/
|
|
3732
|
-
/*lowerError:*/
|
|
3733
|
-
FfiConverterTypeBarkError
|
|
3734
|
-
),
|
|
3120
|
+
/*isErrorType:*/ Exception.instanceOf,
|
|
3121
|
+
/*lowerError:*/ FfiConverterTypeError.lower.bind(FfiConverterTypeError),
|
|
3735
3122
|
/*lowerString:*/ FfiConverterString.lower
|
|
3736
3123
|
);
|
|
3737
3124
|
return uniffiResult;
|
|
@@ -3758,10 +3145,8 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks: {
|
|
|
3758
3145
|
/*makeCall:*/ uniffiMakeCall,
|
|
3759
3146
|
/*handleSuccess:*/ uniffiHandleSuccess,
|
|
3760
3147
|
/*handleError:*/ uniffiHandleError,
|
|
3761
|
-
/*isErrorType:*/
|
|
3762
|
-
/*lowerError:*/
|
|
3763
|
-
FfiConverterTypeBarkError
|
|
3764
|
-
),
|
|
3148
|
+
/*isErrorType:*/ Exception.instanceOf,
|
|
3149
|
+
/*lowerError:*/ FfiConverterTypeError.lower.bind(FfiConverterTypeError),
|
|
3765
3150
|
/*lowerString:*/ FfiConverterString.lower
|
|
3766
3151
|
);
|
|
3767
3152
|
return uniffiResult;
|
|
@@ -3788,10 +3173,8 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks: {
|
|
|
3788
3173
|
/*makeCall:*/ uniffiMakeCall,
|
|
3789
3174
|
/*handleSuccess:*/ uniffiHandleSuccess,
|
|
3790
3175
|
/*handleError:*/ uniffiHandleError,
|
|
3791
|
-
/*isErrorType:*/
|
|
3792
|
-
/*lowerError:*/
|
|
3793
|
-
FfiConverterTypeBarkError
|
|
3794
|
-
),
|
|
3176
|
+
/*isErrorType:*/ Exception.instanceOf,
|
|
3177
|
+
/*lowerError:*/ FfiConverterTypeError.lower.bind(FfiConverterTypeError),
|
|
3795
3178
|
/*lowerString:*/ FfiConverterString.lower
|
|
3796
3179
|
);
|
|
3797
3180
|
return uniffiResult;
|
|
@@ -3815,10 +3198,8 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks: {
|
|
|
3815
3198
|
/*makeCall:*/ uniffiMakeCall,
|
|
3816
3199
|
/*handleSuccess:*/ uniffiHandleSuccess,
|
|
3817
3200
|
/*handleError:*/ uniffiHandleError,
|
|
3818
|
-
/*isErrorType:*/
|
|
3819
|
-
/*lowerError:*/
|
|
3820
|
-
FfiConverterTypeBarkError
|
|
3821
|
-
),
|
|
3201
|
+
/*isErrorType:*/ Exception.instanceOf,
|
|
3202
|
+
/*lowerError:*/ FfiConverterTypeError.lower.bind(FfiConverterTypeError),
|
|
3822
3203
|
/*lowerString:*/ FfiConverterString.lower
|
|
3823
3204
|
);
|
|
3824
3205
|
return uniffiResult;
|
|
@@ -3838,10 +3219,29 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks: {
|
|
|
3838
3219
|
/*makeCall:*/ uniffiMakeCall,
|
|
3839
3220
|
/*handleSuccess:*/ uniffiHandleSuccess,
|
|
3840
3221
|
/*handleError:*/ uniffiHandleError,
|
|
3841
|
-
/*isErrorType:*/
|
|
3842
|
-
/*lowerError:*/
|
|
3843
|
-
|
|
3844
|
-
|
|
3222
|
+
/*isErrorType:*/ Exception.instanceOf,
|
|
3223
|
+
/*lowerError:*/ FfiConverterTypeError.lower.bind(FfiConverterTypeError),
|
|
3224
|
+
/*lowerString:*/ FfiConverterString.lower
|
|
3225
|
+
);
|
|
3226
|
+
return uniffiResult;
|
|
3227
|
+
},
|
|
3228
|
+
sync: (uniffiHandle: bigint) => {
|
|
3229
|
+
const uniffiMakeCall = (): void => {
|
|
3230
|
+
const jsCallback =
|
|
3231
|
+
FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
3232
|
+
return jsCallback.sync();
|
|
3233
|
+
};
|
|
3234
|
+
const uniffiResult = UniffiResult.ready<void>();
|
|
3235
|
+
const uniffiHandleSuccess = (obj: any) => {};
|
|
3236
|
+
const uniffiHandleError = (code: number, errBuf: UniffiByteArray) => {
|
|
3237
|
+
UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
3238
|
+
};
|
|
3239
|
+
uniffiTraitInterfaceCallWithError(
|
|
3240
|
+
/*makeCall:*/ uniffiMakeCall,
|
|
3241
|
+
/*handleSuccess:*/ uniffiHandleSuccess,
|
|
3242
|
+
/*handleError:*/ uniffiHandleError,
|
|
3243
|
+
/*isErrorType:*/ Exception.instanceOf,
|
|
3244
|
+
/*lowerError:*/ FfiConverterTypeError.lower.bind(FfiConverterTypeError),
|
|
3845
3245
|
/*lowerString:*/ FfiConverterString.lower
|
|
3846
3246
|
);
|
|
3847
3247
|
return uniffiResult;
|
|
@@ -3894,7 +3294,7 @@ export interface NotificationHolderLike {
|
|
|
3894
3294
|
* (cancellation only affects the current wait; the stream lives on)
|
|
3895
3295
|
* - The wallet's notification source was shut down permanently
|
|
3896
3296
|
*
|
|
3897
|
-
* Returns
|
|
3297
|
+
* Returns an error if called concurrently on the same holder.
|
|
3898
3298
|
*
|
|
3899
3299
|
* After a cancellation this method can be called again normally — the
|
|
3900
3300
|
* underlying `NotificationStream` is preserved in `self.stream` and a
|
|
@@ -3967,7 +3367,7 @@ export class NotificationHolder
|
|
|
3967
3367
|
* (cancellation only affects the current wait; the stream lives on)
|
|
3968
3368
|
* - The wallet's notification source was shut down permanently
|
|
3969
3369
|
*
|
|
3970
|
-
* Returns
|
|
3370
|
+
* Returns an error if called concurrently on the same holder.
|
|
3971
3371
|
*
|
|
3972
3372
|
* After a cancellation this method can be called again normally — the
|
|
3973
3373
|
* underlying `NotificationStream` is preserved in `self.stream` and a
|
|
@@ -3998,9 +3398,7 @@ export class NotificationHolder
|
|
|
3998
3398
|
),
|
|
3999
3399
|
/*liftString:*/ FfiConverterString.lift,
|
|
4000
3400
|
/*asyncOpts:*/ asyncOpts_,
|
|
4001
|
-
/*errorHandler:*/
|
|
4002
|
-
FfiConverterTypeBarkError
|
|
4003
|
-
)
|
|
3401
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
4004
3402
|
);
|
|
4005
3403
|
} catch (__error: any) {
|
|
4006
3404
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -4150,9 +3548,7 @@ export class OnchainWallet
|
|
|
4150
3548
|
): OnchainWalletLike /*throws*/ {
|
|
4151
3549
|
return FfiConverterTypeOnchainWallet.lift(
|
|
4152
3550
|
uniffiCaller.rustCallWithError(
|
|
4153
|
-
/*liftError:*/
|
|
4154
|
-
FfiConverterTypeBarkError
|
|
4155
|
-
),
|
|
3551
|
+
/*liftError:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError),
|
|
4156
3552
|
/*caller:*/ (callStatus) => {
|
|
4157
3553
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_onchainwallet_custom(
|
|
4158
3554
|
FfiConverterTypeCustomOnchainWalletCallbacks.lower(callbacks),
|
|
@@ -4168,6 +3564,7 @@ export class OnchainWallet
|
|
|
4168
3564
|
* BDK-backed wallet. Opens the shared sqlite cache.
|
|
4169
3565
|
*/
|
|
4170
3566
|
static async default_(
|
|
3567
|
+
network: Network,
|
|
4171
3568
|
mnemonic: string,
|
|
4172
3569
|
config: Config,
|
|
4173
3570
|
datadir: string,
|
|
@@ -4179,6 +3576,7 @@ export class OnchainWallet
|
|
|
4179
3576
|
/*rustCaller:*/ uniffiCaller,
|
|
4180
3577
|
/*rustFutureFunc:*/ () => {
|
|
4181
3578
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_onchainwallet_default(
|
|
3579
|
+
FfiConverterTypeNetwork.lower(network),
|
|
4182
3580
|
FfiConverterString.lower(mnemonic),
|
|
4183
3581
|
FfiConverterTypeConfig.lower(config),
|
|
4184
3582
|
FfiConverterString.lower(datadir)
|
|
@@ -4194,9 +3592,7 @@ export class OnchainWallet
|
|
|
4194
3592
|
),
|
|
4195
3593
|
/*liftString:*/ FfiConverterString.lift,
|
|
4196
3594
|
/*asyncOpts:*/ asyncOpts_,
|
|
4197
|
-
/*errorHandler:*/
|
|
4198
|
-
FfiConverterTypeBarkError
|
|
4199
|
-
)
|
|
3595
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
4200
3596
|
);
|
|
4201
3597
|
} catch (__error: any) {
|
|
4202
3598
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -4231,9 +3627,7 @@ export class OnchainWallet
|
|
|
4231
3627
|
),
|
|
4232
3628
|
/*liftString:*/ FfiConverterString.lift,
|
|
4233
3629
|
/*asyncOpts:*/ asyncOpts_,
|
|
4234
|
-
/*errorHandler:*/
|
|
4235
|
-
FfiConverterTypeBarkError
|
|
4236
|
-
)
|
|
3630
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
4237
3631
|
);
|
|
4238
3632
|
} catch (__error: any) {
|
|
4239
3633
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -4266,9 +3660,7 @@ export class OnchainWallet
|
|
|
4266
3660
|
/*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
4267
3661
|
/*liftString:*/ FfiConverterString.lift,
|
|
4268
3662
|
/*asyncOpts:*/ asyncOpts_,
|
|
4269
|
-
/*errorHandler:*/
|
|
4270
|
-
FfiConverterTypeBarkError
|
|
4271
|
-
)
|
|
3663
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
4272
3664
|
);
|
|
4273
3665
|
} catch (__error: any) {
|
|
4274
3666
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -4307,9 +3699,7 @@ export class OnchainWallet
|
|
|
4307
3699
|
/*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
4308
3700
|
/*liftString:*/ FfiConverterString.lift,
|
|
4309
3701
|
/*asyncOpts:*/ asyncOpts_,
|
|
4310
|
-
/*errorHandler:*/
|
|
4311
|
-
FfiConverterTypeBarkError
|
|
4312
|
-
)
|
|
3702
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
4313
3703
|
);
|
|
4314
3704
|
} catch (__error: any) {
|
|
4315
3705
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -4339,9 +3729,7 @@ export class OnchainWallet
|
|
|
4339
3729
|
/*liftFunc:*/ FfiConverterUInt64.lift.bind(FfiConverterUInt64),
|
|
4340
3730
|
/*liftString:*/ FfiConverterString.lift,
|
|
4341
3731
|
/*asyncOpts:*/ asyncOpts_,
|
|
4342
|
-
/*errorHandler:*/
|
|
4343
|
-
FfiConverterTypeBarkError
|
|
4344
|
-
)
|
|
3732
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
4345
3733
|
);
|
|
4346
3734
|
} catch (__error: any) {
|
|
4347
3735
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -4618,9 +4006,6 @@ export interface WalletLike {
|
|
|
4618
4006
|
onchainWallet: OnchainWalletLike,
|
|
4619
4007
|
asyncOpts_?: { signal: AbortSignal }
|
|
4620
4008
|
): /*throws*/ Promise<void>;
|
|
4621
|
-
maybeScheduleMaintenanceRefresh(asyncOpts_?: {
|
|
4622
|
-
signal: AbortSignal;
|
|
4623
|
-
}): /*throws*/ Promise</*u32*/ number | undefined>;
|
|
4624
4009
|
network(asyncOpts_?: { signal: AbortSignal }): /*throws*/ Promise<Network>;
|
|
4625
4010
|
newAddress(asyncOpts_?: { signal: AbortSignal }): /*throws*/ Promise<string>;
|
|
4626
4011
|
newAddressWithIndex(asyncOpts_?: {
|
|
@@ -4661,6 +4046,19 @@ export interface WalletLike {
|
|
|
4661
4046
|
wait: boolean,
|
|
4662
4047
|
asyncOpts_?: { signal: AbortSignal }
|
|
4663
4048
|
): /*throws*/ Promise<LightningSendStatus>;
|
|
4049
|
+
/**
|
|
4050
|
+
* Pay a raw LNURL-pay link (`lnurl1…`). UniFFI-only — lnurl-rs is not wasm-compatible.
|
|
4051
|
+
*
|
|
4052
|
+
* Resolves the LNURL-pay endpoint to a BOLT11 invoice and pays it. Errors
|
|
4053
|
+
* if the link decodes to a non-pay LNURL (auth, withdraw, channel).
|
|
4054
|
+
*/
|
|
4055
|
+
payLnurl(
|
|
4056
|
+
lnurl: string,
|
|
4057
|
+
amountSats: /*u64*/ bigint,
|
|
4058
|
+
comment: string | undefined,
|
|
4059
|
+
wait: boolean,
|
|
4060
|
+
asyncOpts_?: { signal: AbortSignal }
|
|
4061
|
+
): /*throws*/ Promise<LightningSendStatus>;
|
|
4664
4062
|
peekAddress(
|
|
4665
4063
|
index: /*u32*/ number,
|
|
4666
4064
|
asyncOpts_?: { signal: AbortSignal }
|
|
@@ -4717,7 +4115,7 @@ export interface WalletLike {
|
|
|
4717
4115
|
arkAddress: string,
|
|
4718
4116
|
amountSats: /*u64*/ bigint,
|
|
4719
4117
|
asyncOpts_?: { signal: AbortSignal }
|
|
4720
|
-
): /*throws*/ Promise<
|
|
4118
|
+
): /*throws*/ Promise<void>;
|
|
4721
4119
|
sendOnchain(
|
|
4722
4120
|
address: string,
|
|
4723
4121
|
amountSats: /*u64*/ bigint,
|
|
@@ -4746,215 +4144,75 @@ export interface WalletLike {
|
|
|
4746
4144
|
onchainWallet: OnchainWalletLike,
|
|
4747
4145
|
asyncOpts_?: { signal: AbortSignal }
|
|
4748
4146
|
): /*throws*/ Promise<void>;
|
|
4749
|
-
syncPendingBoards(asyncOpts_?: {
|
|
4750
|
-
signal: AbortSignal;
|
|
4751
|
-
}): /*throws*/ Promise<void>;
|
|
4752
|
-
tryClaimAllLightningReceives(
|
|
4753
|
-
wait: boolean,
|
|
4754
|
-
asyncOpts_?: { signal: AbortSignal }
|
|
4755
|
-
): /*throws*/ Promise<Array<LightningReceive>>;
|
|
4756
|
-
tryClaimLightningReceive(
|
|
4757
|
-
paymentHash: string,
|
|
4758
|
-
wait: boolean,
|
|
4759
|
-
asyncOpts_?: { signal: AbortSignal }
|
|
4760
|
-
): /*throws*/ Promise<void>;
|
|
4761
|
-
validateArkoorAddress(
|
|
4762
|
-
address: string,
|
|
4763
|
-
asyncOpts_?: { signal: AbortSignal }
|
|
4764
|
-
): /*throws*/ Promise<boolean>;
|
|
4765
|
-
vtxos(asyncOpts_?: { signal: AbortSignal }): /*throws*/ Promise<Array<Vtxo>>;
|
|
4766
|
-
}
|
|
4767
|
-
/**
|
|
4768
|
-
* @deprecated Use `WalletLike` instead.
|
|
4769
|
-
*/
|
|
4770
|
-
export type WalletInterface = WalletLike;
|
|
4771
|
-
|
|
4772
|
-
/**
|
|
4773
|
-
* UniFFI-facing Bark wallet.
|
|
4774
|
-
*
|
|
4775
|
-
* Wraps `core::Wallet` and adds:
|
|
4776
|
-
* - `run_async` runtime offload on every entry point
|
|
4777
|
-
* - mailbox processor task + cancellation on drop
|
|
4778
|
-
* - LNURL `pay_lightning_address`
|
|
4779
|
-
* - Daemon control methods
|
|
4780
|
-
* - Notification holder
|
|
4781
|
-
* - Callback onchain dispatch
|
|
4782
|
-
*/
|
|
4783
|
-
export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
4784
|
-
readonly [uniffiTypeNameSymbol] = "Wallet";
|
|
4785
|
-
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
4786
|
-
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
4787
|
-
// No primary constructor declared for this class.
|
|
4788
|
-
private constructor(pointer: UniffiHandle) {
|
|
4789
|
-
super();
|
|
4790
|
-
this[pointerLiteralSymbol] = pointer;
|
|
4791
|
-
this[destructorGuardSymbol] = uniffiTypeWalletObjectFactory.bless(pointer);
|
|
4792
|
-
}
|
|
4793
|
-
|
|
4794
|
-
static async create(
|
|
4795
|
-
mnemonic: string,
|
|
4796
|
-
config: Config,
|
|
4797
|
-
datadir: string,
|
|
4798
|
-
forceRescan: boolean,
|
|
4799
|
-
asyncOpts_?: { signal: AbortSignal }
|
|
4800
|
-
): Promise<WalletLike> /*throws*/ {
|
|
4801
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4802
|
-
try {
|
|
4803
|
-
return await uniffiRustCallAsync(
|
|
4804
|
-
/*rustCaller:*/ uniffiCaller,
|
|
4805
|
-
/*rustFutureFunc:*/ () => {
|
|
4806
|
-
return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_wallet_create(
|
|
4807
|
-
FfiConverterString.lower(mnemonic),
|
|
4808
|
-
FfiConverterTypeConfig.lower(config),
|
|
4809
|
-
FfiConverterString.lower(datadir),
|
|
4810
|
-
FfiConverterBool.lower(forceRescan)
|
|
4811
|
-
);
|
|
4812
|
-
},
|
|
4813
|
-
/*pollFunc:*/ nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64,
|
|
4814
|
-
/*cancelFunc:*/ nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64,
|
|
4815
|
-
/*completeFunc:*/ nativeModule()
|
|
4816
|
-
.ubrn_ffi_bark_ffi_rust_future_complete_u64,
|
|
4817
|
-
/*freeFunc:*/ nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64,
|
|
4818
|
-
/*liftFunc:*/ FfiConverterTypeWallet.lift.bind(FfiConverterTypeWallet),
|
|
4819
|
-
/*liftString:*/ FfiConverterString.lift,
|
|
4820
|
-
/*asyncOpts:*/ asyncOpts_,
|
|
4821
|
-
/*errorHandler:*/ FfiConverterTypeBarkError.lift.bind(
|
|
4822
|
-
FfiConverterTypeBarkError
|
|
4823
|
-
)
|
|
4824
|
-
);
|
|
4825
|
-
} catch (__error: any) {
|
|
4826
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
4827
|
-
__error.stack = __stack;
|
|
4828
|
-
}
|
|
4829
|
-
throw __error;
|
|
4830
|
-
}
|
|
4831
|
-
}
|
|
4832
|
-
|
|
4833
|
-
static async createWithOnchain(
|
|
4834
|
-
mnemonic: string,
|
|
4835
|
-
config: Config,
|
|
4836
|
-
datadir: string,
|
|
4837
|
-
onchainWallet: OnchainWalletLike,
|
|
4838
|
-
forceRescan: boolean,
|
|
4839
|
-
asyncOpts_?: { signal: AbortSignal }
|
|
4840
|
-
): Promise<WalletLike> /*throws*/ {
|
|
4841
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4842
|
-
try {
|
|
4843
|
-
return await uniffiRustCallAsync(
|
|
4844
|
-
/*rustCaller:*/ uniffiCaller,
|
|
4845
|
-
/*rustFutureFunc:*/ () => {
|
|
4846
|
-
return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_wallet_create_with_onchain(
|
|
4847
|
-
FfiConverterString.lower(mnemonic),
|
|
4848
|
-
FfiConverterTypeConfig.lower(config),
|
|
4849
|
-
FfiConverterString.lower(datadir),
|
|
4850
|
-
FfiConverterTypeOnchainWallet.lower(onchainWallet),
|
|
4851
|
-
FfiConverterBool.lower(forceRescan)
|
|
4852
|
-
);
|
|
4853
|
-
},
|
|
4854
|
-
/*pollFunc:*/ nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64,
|
|
4855
|
-
/*cancelFunc:*/ nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64,
|
|
4856
|
-
/*completeFunc:*/ nativeModule()
|
|
4857
|
-
.ubrn_ffi_bark_ffi_rust_future_complete_u64,
|
|
4858
|
-
/*freeFunc:*/ nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64,
|
|
4859
|
-
/*liftFunc:*/ FfiConverterTypeWallet.lift.bind(FfiConverterTypeWallet),
|
|
4860
|
-
/*liftString:*/ FfiConverterString.lift,
|
|
4861
|
-
/*asyncOpts:*/ asyncOpts_,
|
|
4862
|
-
/*errorHandler:*/ FfiConverterTypeBarkError.lift.bind(
|
|
4863
|
-
FfiConverterTypeBarkError
|
|
4864
|
-
)
|
|
4865
|
-
);
|
|
4866
|
-
} catch (__error: any) {
|
|
4867
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
4868
|
-
__error.stack = __stack;
|
|
4869
|
-
}
|
|
4870
|
-
throw __error;
|
|
4871
|
-
}
|
|
4872
|
-
}
|
|
4873
|
-
|
|
4874
|
-
static async open(
|
|
4875
|
-
mnemonic: string,
|
|
4876
|
-
config: Config,
|
|
4877
|
-
datadir: string,
|
|
4878
|
-
asyncOpts_?: { signal: AbortSignal }
|
|
4879
|
-
): Promise<WalletLike> /*throws*/ {
|
|
4880
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4881
|
-
try {
|
|
4882
|
-
return await uniffiRustCallAsync(
|
|
4883
|
-
/*rustCaller:*/ uniffiCaller,
|
|
4884
|
-
/*rustFutureFunc:*/ () => {
|
|
4885
|
-
return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_wallet_open(
|
|
4886
|
-
FfiConverterString.lower(mnemonic),
|
|
4887
|
-
FfiConverterTypeConfig.lower(config),
|
|
4888
|
-
FfiConverterString.lower(datadir)
|
|
4889
|
-
);
|
|
4890
|
-
},
|
|
4891
|
-
/*pollFunc:*/ nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64,
|
|
4892
|
-
/*cancelFunc:*/ nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64,
|
|
4893
|
-
/*completeFunc:*/ nativeModule()
|
|
4894
|
-
.ubrn_ffi_bark_ffi_rust_future_complete_u64,
|
|
4895
|
-
/*freeFunc:*/ nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64,
|
|
4896
|
-
/*liftFunc:*/ FfiConverterTypeWallet.lift.bind(FfiConverterTypeWallet),
|
|
4897
|
-
/*liftString:*/ FfiConverterString.lift,
|
|
4898
|
-
/*asyncOpts:*/ asyncOpts_,
|
|
4899
|
-
/*errorHandler:*/ FfiConverterTypeBarkError.lift.bind(
|
|
4900
|
-
FfiConverterTypeBarkError
|
|
4901
|
-
)
|
|
4902
|
-
);
|
|
4903
|
-
} catch (__error: any) {
|
|
4904
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
4905
|
-
__error.stack = __stack;
|
|
4906
|
-
}
|
|
4907
|
-
throw __error;
|
|
4908
|
-
}
|
|
4909
|
-
}
|
|
4910
|
-
|
|
4911
4147
|
/**
|
|
4912
|
-
*
|
|
4148
|
+
* Scan for VTXOs that were force-exited on-chain without the user asking
|
|
4149
|
+
* and route them into the unilateral-exit flow so the funds can be claimed.
|
|
4150
|
+
*
|
|
4151
|
+
* This already runs automatically as part of [`Self::sync`]; call it
|
|
4152
|
+
* directly to trigger the scan on demand.
|
|
4913
4153
|
*/
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4154
|
+
syncForceExitedVtxos(asyncOpts_?: {
|
|
4155
|
+
signal: AbortSignal;
|
|
4156
|
+
}): /*throws*/ Promise<void>;
|
|
4157
|
+
syncPendingBoards(asyncOpts_?: {
|
|
4158
|
+
signal: AbortSignal;
|
|
4159
|
+
}): /*throws*/ Promise<void>;
|
|
4160
|
+
tryClaimAllLightningReceives(
|
|
4161
|
+
wait: boolean,
|
|
4919
4162
|
asyncOpts_?: { signal: AbortSignal }
|
|
4920
|
-
):
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4163
|
+
): /*throws*/ Promise<Array<LightningReceive>>;
|
|
4164
|
+
tryClaimLightningReceive(
|
|
4165
|
+
paymentHash: string,
|
|
4166
|
+
wait: boolean,
|
|
4167
|
+
asyncOpts_?: { signal: AbortSignal }
|
|
4168
|
+
): /*throws*/ Promise<void>;
|
|
4169
|
+
validateArkoorAddress(
|
|
4170
|
+
address: string,
|
|
4171
|
+
asyncOpts_?: { signal: AbortSignal }
|
|
4172
|
+
): /*throws*/ Promise<boolean>;
|
|
4173
|
+
vtxos(asyncOpts_?: { signal: AbortSignal }): /*throws*/ Promise<Array<Vtxo>>;
|
|
4174
|
+
}
|
|
4175
|
+
/**
|
|
4176
|
+
* @deprecated Use `WalletLike` instead.
|
|
4177
|
+
*/
|
|
4178
|
+
export type WalletInterface = WalletLike;
|
|
4179
|
+
|
|
4180
|
+
/**
|
|
4181
|
+
* UniFFI-facing Bark wallet.
|
|
4182
|
+
*
|
|
4183
|
+
* Wraps `core::Wallet` and adds:
|
|
4184
|
+
* - `run_async` runtime offload on every entry point
|
|
4185
|
+
* - mailbox processor task + cancellation on drop
|
|
4186
|
+
* - LNURL `pay_lightning_address`
|
|
4187
|
+
* - Daemon control methods
|
|
4188
|
+
* - Notification holder
|
|
4189
|
+
* - Callback onchain dispatch
|
|
4190
|
+
*/
|
|
4191
|
+
export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
4192
|
+
readonly [uniffiTypeNameSymbol] = "Wallet";
|
|
4193
|
+
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
4194
|
+
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
4195
|
+
// No primary constructor declared for this class.
|
|
4196
|
+
private constructor(pointer: UniffiHandle) {
|
|
4197
|
+
super();
|
|
4198
|
+
this[pointerLiteralSymbol] = pointer;
|
|
4199
|
+
this[destructorGuardSymbol] = uniffiTypeWalletObjectFactory.bless(pointer);
|
|
4951
4200
|
}
|
|
4952
4201
|
|
|
4953
|
-
|
|
4954
|
-
|
|
4202
|
+
/**
|
|
4203
|
+
* Open a wallet (creating it first if `create_if_not_exists` is set),
|
|
4204
|
+
* mirroring [`bark::Wallet::open`]: a single entry point with everything
|
|
4205
|
+
* else optional (see [`WalletOpenArgs`]). For the explicit
|
|
4206
|
+
* initialize-but-don't-open path, use the top-level `create_wallet`.
|
|
4207
|
+
*
|
|
4208
|
+
* `mnemonic_or_seed` accepts either a BIP-39 mnemonic phrase or a 64-byte
|
|
4209
|
+
* hex-encoded seed.
|
|
4210
|
+
*/
|
|
4211
|
+
static async open(
|
|
4212
|
+
network: Network,
|
|
4213
|
+
mnemonicOrSeed: string,
|
|
4955
4214
|
config: Config,
|
|
4956
|
-
|
|
4957
|
-
onchainWallet: OnchainWalletLike,
|
|
4215
|
+
args: WalletOpenArgs,
|
|
4958
4216
|
asyncOpts_?: { signal: AbortSignal }
|
|
4959
4217
|
): Promise<WalletLike> /*throws*/ {
|
|
4960
4218
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
@@ -4962,11 +4220,11 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
4962
4220
|
return await uniffiRustCallAsync(
|
|
4963
4221
|
/*rustCaller:*/ uniffiCaller,
|
|
4964
4222
|
/*rustFutureFunc:*/ () => {
|
|
4965
|
-
return nativeModule().
|
|
4966
|
-
|
|
4223
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_wallet_open(
|
|
4224
|
+
FfiConverterTypeNetwork.lower(network),
|
|
4225
|
+
FfiConverterString.lower(mnemonicOrSeed),
|
|
4967
4226
|
FfiConverterTypeConfig.lower(config),
|
|
4968
|
-
|
|
4969
|
-
FfiConverterTypeOnchainWallet.lower(onchainWallet)
|
|
4227
|
+
FfiConverterTypeWalletOpenArgs.lower(args)
|
|
4970
4228
|
);
|
|
4971
4229
|
},
|
|
4972
4230
|
/*pollFunc:*/ nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64,
|
|
@@ -4977,9 +4235,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
4977
4235
|
/*liftFunc:*/ FfiConverterTypeWallet.lift.bind(FfiConverterTypeWallet),
|
|
4978
4236
|
/*liftString:*/ FfiConverterString.lift,
|
|
4979
4237
|
/*asyncOpts:*/ asyncOpts_,
|
|
4980
|
-
/*errorHandler:*/
|
|
4981
|
-
FfiConverterTypeBarkError
|
|
4982
|
-
)
|
|
4238
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
4983
4239
|
);
|
|
4984
4240
|
} catch (__error: any) {
|
|
4985
4241
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5014,9 +4270,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5014
4270
|
),
|
|
5015
4271
|
/*liftString:*/ FfiConverterString.lift,
|
|
5016
4272
|
/*asyncOpts:*/ asyncOpts_,
|
|
5017
|
-
/*errorHandler:*/
|
|
5018
|
-
FfiConverterTypeBarkError
|
|
5019
|
-
)
|
|
4273
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5020
4274
|
);
|
|
5021
4275
|
} catch (__error: any) {
|
|
5022
4276
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5051,9 +4305,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5051
4305
|
),
|
|
5052
4306
|
/*liftString:*/ FfiConverterString.lift,
|
|
5053
4307
|
/*asyncOpts:*/ asyncOpts_,
|
|
5054
|
-
/*errorHandler:*/
|
|
5055
|
-
FfiConverterTypeBarkError
|
|
5056
|
-
)
|
|
4308
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5057
4309
|
);
|
|
5058
4310
|
} catch (__error: any) {
|
|
5059
4311
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5086,9 +4338,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5086
4338
|
/*liftFunc:*/ (_v) => {},
|
|
5087
4339
|
/*liftString:*/ FfiConverterString.lift,
|
|
5088
4340
|
/*asyncOpts:*/ asyncOpts_,
|
|
5089
|
-
/*errorHandler:*/
|
|
5090
|
-
FfiConverterTypeBarkError
|
|
5091
|
-
)
|
|
4341
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5092
4342
|
);
|
|
5093
4343
|
} catch (__error: any) {
|
|
5094
4344
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5155,9 +4405,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5155
4405
|
/*liftFunc:*/ (_v) => {},
|
|
5156
4406
|
/*liftString:*/ FfiConverterString.lift,
|
|
5157
4407
|
/*asyncOpts:*/ asyncOpts_,
|
|
5158
|
-
/*errorHandler:*/
|
|
5159
|
-
FfiConverterTypeBarkError
|
|
5160
|
-
)
|
|
4408
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5161
4409
|
);
|
|
5162
4410
|
} catch (__error: any) {
|
|
5163
4411
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5192,9 +4440,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5192
4440
|
),
|
|
5193
4441
|
/*liftString:*/ FfiConverterString.lift,
|
|
5194
4442
|
/*asyncOpts:*/ asyncOpts_,
|
|
5195
|
-
/*errorHandler:*/
|
|
5196
|
-
FfiConverterTypeBarkError
|
|
5197
|
-
)
|
|
4443
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5198
4444
|
);
|
|
5199
4445
|
} catch (__error: any) {
|
|
5200
4446
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5231,9 +4477,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5231
4477
|
),
|
|
5232
4478
|
/*liftString:*/ FfiConverterString.lift,
|
|
5233
4479
|
/*asyncOpts:*/ asyncOpts_,
|
|
5234
|
-
/*errorHandler:*/
|
|
5235
|
-
FfiConverterTypeBarkError
|
|
5236
|
-
)
|
|
4480
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5237
4481
|
);
|
|
5238
4482
|
} catch (__error: any) {
|
|
5239
4483
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5272,9 +4516,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5272
4516
|
),
|
|
5273
4517
|
/*liftString:*/ FfiConverterString.lift,
|
|
5274
4518
|
/*asyncOpts:*/ asyncOpts_,
|
|
5275
|
-
/*errorHandler:*/
|
|
5276
|
-
FfiConverterTypeBarkError
|
|
5277
|
-
)
|
|
4519
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5278
4520
|
);
|
|
5279
4521
|
} catch (__error: any) {
|
|
5280
4522
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5313,9 +4555,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5313
4555
|
),
|
|
5314
4556
|
/*liftString:*/ FfiConverterString.lift,
|
|
5315
4557
|
/*asyncOpts:*/ asyncOpts_,
|
|
5316
|
-
/*errorHandler:*/
|
|
5317
|
-
FfiConverterTypeBarkError
|
|
5318
|
-
)
|
|
4558
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5319
4559
|
);
|
|
5320
4560
|
} catch (__error: any) {
|
|
5321
4561
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5350,9 +4590,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5350
4590
|
/*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
5351
4591
|
/*liftString:*/ FfiConverterString.lift,
|
|
5352
4592
|
/*asyncOpts:*/ asyncOpts_,
|
|
5353
|
-
/*errorHandler:*/
|
|
5354
|
-
FfiConverterTypeBarkError
|
|
5355
|
-
)
|
|
4593
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5356
4594
|
);
|
|
5357
4595
|
} catch (__error: any) {
|
|
5358
4596
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5383,9 +4621,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5383
4621
|
/*liftFunc:*/ (_v) => {},
|
|
5384
4622
|
/*liftString:*/ FfiConverterString.lift,
|
|
5385
4623
|
/*asyncOpts:*/ asyncOpts_,
|
|
5386
|
-
/*errorHandler:*/
|
|
5387
|
-
FfiConverterTypeBarkError
|
|
5388
|
-
)
|
|
4624
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5389
4625
|
);
|
|
5390
4626
|
} catch (__error: any) {
|
|
5391
4627
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5418,9 +4654,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5418
4654
|
/*liftFunc:*/ (_v) => {},
|
|
5419
4655
|
/*liftString:*/ FfiConverterString.lift,
|
|
5420
4656
|
/*asyncOpts:*/ asyncOpts_,
|
|
5421
|
-
/*errorHandler:*/
|
|
5422
|
-
FfiConverterTypeBarkError
|
|
5423
|
-
)
|
|
4657
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5424
4658
|
);
|
|
5425
4659
|
} catch (__error: any) {
|
|
5426
4660
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5453,9 +4687,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5453
4687
|
/*liftFunc:*/ (_v) => {},
|
|
5454
4688
|
/*liftString:*/ FfiConverterString.lift,
|
|
5455
4689
|
/*asyncOpts:*/ asyncOpts_,
|
|
5456
|
-
/*errorHandler:*/
|
|
5457
|
-
FfiConverterTypeBarkError
|
|
5458
|
-
)
|
|
4690
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5459
4691
|
);
|
|
5460
4692
|
} catch (__error: any) {
|
|
5461
4693
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5467,7 +4699,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5467
4699
|
|
|
5468
4700
|
async checkLightningPayment(
|
|
5469
4701
|
paymentHash: string,
|
|
5470
|
-
wait: boolean,
|
|
4702
|
+
wait: boolean = false,
|
|
5471
4703
|
asyncOpts_?: { signal: AbortSignal }
|
|
5472
4704
|
): Promise<LightningSendStatus> /*throws*/ {
|
|
5473
4705
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
@@ -5494,9 +4726,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5494
4726
|
),
|
|
5495
4727
|
/*liftString:*/ FfiConverterString.lift,
|
|
5496
4728
|
/*asyncOpts:*/ asyncOpts_,
|
|
5497
|
-
/*errorHandler:*/
|
|
5498
|
-
FfiConverterTypeBarkError
|
|
5499
|
-
)
|
|
4729
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5500
4730
|
);
|
|
5501
4731
|
} catch (__error: any) {
|
|
5502
4732
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5526,9 +4756,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5526
4756
|
/*liftFunc:*/ FfiConverterUInt64.lift.bind(FfiConverterUInt64),
|
|
5527
4757
|
/*liftString:*/ FfiConverterString.lift,
|
|
5528
4758
|
/*asyncOpts:*/ asyncOpts_,
|
|
5529
|
-
/*errorHandler:*/
|
|
5530
|
-
FfiConverterTypeBarkError
|
|
5531
|
-
)
|
|
4759
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5532
4760
|
);
|
|
5533
4761
|
} catch (__error: any) {
|
|
5534
4762
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5599,9 +4827,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5599
4827
|
),
|
|
5600
4828
|
/*liftString:*/ FfiConverterString.lift,
|
|
5601
4829
|
/*asyncOpts:*/ asyncOpts_,
|
|
5602
|
-
/*errorHandler:*/
|
|
5603
|
-
FfiConverterTypeBarkError
|
|
5604
|
-
)
|
|
4830
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5605
4831
|
);
|
|
5606
4832
|
} catch (__error: any) {
|
|
5607
4833
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5638,9 +4864,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5638
4864
|
),
|
|
5639
4865
|
/*liftString:*/ FfiConverterString.lift,
|
|
5640
4866
|
/*asyncOpts:*/ asyncOpts_,
|
|
5641
|
-
/*errorHandler:*/
|
|
5642
|
-
FfiConverterTypeBarkError
|
|
5643
|
-
)
|
|
4867
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5644
4868
|
);
|
|
5645
4869
|
} catch (__error: any) {
|
|
5646
4870
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5677,9 +4901,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5677
4901
|
),
|
|
5678
4902
|
/*liftString:*/ FfiConverterString.lift,
|
|
5679
4903
|
/*asyncOpts:*/ asyncOpts_,
|
|
5680
|
-
/*errorHandler:*/
|
|
5681
|
-
FfiConverterTypeBarkError
|
|
5682
|
-
)
|
|
4904
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5683
4905
|
);
|
|
5684
4906
|
} catch (__error: any) {
|
|
5685
4907
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5716,9 +4938,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5716
4938
|
),
|
|
5717
4939
|
/*liftString:*/ FfiConverterString.lift,
|
|
5718
4940
|
/*asyncOpts:*/ asyncOpts_,
|
|
5719
|
-
/*errorHandler:*/
|
|
5720
|
-
FfiConverterTypeBarkError
|
|
5721
|
-
)
|
|
4941
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5722
4942
|
);
|
|
5723
4943
|
} catch (__error: any) {
|
|
5724
4944
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5755,9 +4975,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5755
4975
|
),
|
|
5756
4976
|
/*liftString:*/ FfiConverterString.lift,
|
|
5757
4977
|
/*asyncOpts:*/ asyncOpts_,
|
|
5758
|
-
/*errorHandler:*/
|
|
5759
|
-
FfiConverterTypeBarkError
|
|
5760
|
-
)
|
|
4978
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5761
4979
|
);
|
|
5762
4980
|
} catch (__error: any) {
|
|
5763
4981
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5794,9 +5012,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5794
5012
|
),
|
|
5795
5013
|
/*liftString:*/ FfiConverterString.lift,
|
|
5796
5014
|
/*asyncOpts:*/ asyncOpts_,
|
|
5797
|
-
/*errorHandler:*/
|
|
5798
|
-
FfiConverterTypeBarkError
|
|
5799
|
-
)
|
|
5015
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5800
5016
|
);
|
|
5801
5017
|
} catch (__error: any) {
|
|
5802
5018
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5835,9 +5051,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5835
5051
|
),
|
|
5836
5052
|
/*liftString:*/ FfiConverterString.lift,
|
|
5837
5053
|
/*asyncOpts:*/ asyncOpts_,
|
|
5838
|
-
/*errorHandler:*/
|
|
5839
|
-
FfiConverterTypeBarkError
|
|
5840
|
-
)
|
|
5054
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5841
5055
|
);
|
|
5842
5056
|
} catch (__error: any) {
|
|
5843
5057
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5874,9 +5088,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5874
5088
|
),
|
|
5875
5089
|
/*liftString:*/ FfiConverterString.lift,
|
|
5876
5090
|
/*asyncOpts:*/ asyncOpts_,
|
|
5877
|
-
/*errorHandler:*/
|
|
5878
|
-
FfiConverterTypeBarkError
|
|
5879
|
-
)
|
|
5091
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5880
5092
|
);
|
|
5881
5093
|
} catch (__error: any) {
|
|
5882
5094
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5915,9 +5127,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5915
5127
|
),
|
|
5916
5128
|
/*liftString:*/ FfiConverterString.lift,
|
|
5917
5129
|
/*asyncOpts:*/ asyncOpts_,
|
|
5918
|
-
/*errorHandler:*/
|
|
5919
|
-
FfiConverterTypeBarkError
|
|
5920
|
-
)
|
|
5130
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5921
5131
|
);
|
|
5922
5132
|
} catch (__error: any) {
|
|
5923
5133
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5972,9 +5182,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5972
5182
|
),
|
|
5973
5183
|
/*liftString:*/ FfiConverterString.lift,
|
|
5974
5184
|
/*asyncOpts:*/ asyncOpts_,
|
|
5975
|
-
/*errorHandler:*/
|
|
5976
|
-
FfiConverterTypeBarkError
|
|
5977
|
-
)
|
|
5185
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5978
5186
|
);
|
|
5979
5187
|
} catch (__error: any) {
|
|
5980
5188
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6009,9 +5217,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6009
5217
|
),
|
|
6010
5218
|
/*liftString:*/ FfiConverterString.lift,
|
|
6011
5219
|
/*asyncOpts:*/ asyncOpts_,
|
|
6012
|
-
/*errorHandler:*/
|
|
6013
|
-
FfiConverterTypeBarkError
|
|
6014
|
-
)
|
|
5220
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6015
5221
|
);
|
|
6016
5222
|
} catch (__error: any) {
|
|
6017
5223
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6048,9 +5254,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6048
5254
|
),
|
|
6049
5255
|
/*liftString:*/ FfiConverterString.lift,
|
|
6050
5256
|
/*asyncOpts:*/ asyncOpts_,
|
|
6051
|
-
/*errorHandler:*/
|
|
6052
|
-
FfiConverterTypeBarkError
|
|
6053
|
-
)
|
|
5257
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6054
5258
|
);
|
|
6055
5259
|
} catch (__error: any) {
|
|
6056
5260
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6085,9 +5289,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6085
5289
|
),
|
|
6086
5290
|
/*liftString:*/ FfiConverterString.lift,
|
|
6087
5291
|
/*asyncOpts:*/ asyncOpts_,
|
|
6088
|
-
/*errorHandler:*/
|
|
6089
|
-
FfiConverterTypeBarkError
|
|
6090
|
-
)
|
|
5292
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6091
5293
|
);
|
|
6092
5294
|
} catch (__error: any) {
|
|
6093
5295
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6122,9 +5324,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6122
5324
|
),
|
|
6123
5325
|
/*liftString:*/ FfiConverterString.lift,
|
|
6124
5326
|
/*asyncOpts:*/ asyncOpts_,
|
|
6125
|
-
/*errorHandler:*/
|
|
6126
|
-
FfiConverterTypeBarkError
|
|
6127
|
-
)
|
|
5327
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6128
5328
|
);
|
|
6129
5329
|
} catch (__error: any) {
|
|
6130
5330
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6159,9 +5359,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6159
5359
|
/*liftFunc:*/ FfiConverterTypeVtxo.lift.bind(FfiConverterTypeVtxo),
|
|
6160
5360
|
/*liftString:*/ FfiConverterString.lift,
|
|
6161
5361
|
/*asyncOpts:*/ asyncOpts_,
|
|
6162
|
-
/*errorHandler:*/
|
|
6163
|
-
FfiConverterTypeBarkError
|
|
6164
|
-
)
|
|
5362
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6165
5363
|
);
|
|
6166
5364
|
} catch (__error: any) {
|
|
6167
5365
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6196,9 +5394,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6196
5394
|
),
|
|
6197
5395
|
/*liftString:*/ FfiConverterString.lift,
|
|
6198
5396
|
/*asyncOpts:*/ asyncOpts_,
|
|
6199
|
-
/*errorHandler:*/
|
|
6200
|
-
FfiConverterTypeBarkError
|
|
6201
|
-
)
|
|
5397
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6202
5398
|
);
|
|
6203
5399
|
} catch (__error: any) {
|
|
6204
5400
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6228,9 +5424,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6228
5424
|
/*liftFunc:*/ FfiConverterBool.lift.bind(FfiConverterBool),
|
|
6229
5425
|
/*liftString:*/ FfiConverterString.lift,
|
|
6230
5426
|
/*asyncOpts:*/ asyncOpts_,
|
|
6231
|
-
/*errorHandler:*/
|
|
6232
|
-
FfiConverterTypeBarkError
|
|
6233
|
-
)
|
|
5427
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6234
5428
|
);
|
|
6235
5429
|
} catch (__error: any) {
|
|
6236
5430
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6265,9 +5459,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6265
5459
|
),
|
|
6266
5460
|
/*liftString:*/ FfiConverterString.lift,
|
|
6267
5461
|
/*asyncOpts:*/ asyncOpts_,
|
|
6268
|
-
/*errorHandler:*/
|
|
6269
|
-
FfiConverterTypeBarkError
|
|
6270
|
-
)
|
|
5462
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6271
5463
|
);
|
|
6272
5464
|
} catch (__error: any) {
|
|
6273
5465
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6306,9 +5498,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6306
5498
|
),
|
|
6307
5499
|
/*liftString:*/ FfiConverterString.lift,
|
|
6308
5500
|
/*asyncOpts:*/ asyncOpts_,
|
|
6309
|
-
/*errorHandler:*/
|
|
6310
|
-
FfiConverterTypeBarkError
|
|
6311
|
-
)
|
|
5501
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6312
5502
|
);
|
|
6313
5503
|
} catch (__error: any) {
|
|
6314
5504
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6341,9 +5531,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6341
5531
|
/*liftFunc:*/ (_v) => {},
|
|
6342
5532
|
/*liftString:*/ FfiConverterString.lift,
|
|
6343
5533
|
/*asyncOpts:*/ asyncOpts_,
|
|
6344
|
-
/*errorHandler:*/
|
|
6345
|
-
FfiConverterTypeBarkError
|
|
6346
|
-
)
|
|
5534
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6347
5535
|
);
|
|
6348
5536
|
} catch (__error: any) {
|
|
6349
5537
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6375,9 +5563,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6375
5563
|
/*liftFunc:*/ FfiConverterBool.lift.bind(FfiConverterBool),
|
|
6376
5564
|
/*liftString:*/ FfiConverterString.lift,
|
|
6377
5565
|
/*asyncOpts:*/ asyncOpts_,
|
|
6378
|
-
/*errorHandler:*/
|
|
6379
|
-
FfiConverterTypeBarkError
|
|
6380
|
-
)
|
|
5566
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6381
5567
|
);
|
|
6382
5568
|
} catch (__error: any) {
|
|
6383
5569
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6414,9 +5600,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6414
5600
|
),
|
|
6415
5601
|
/*liftString:*/ FfiConverterString.lift,
|
|
6416
5602
|
/*asyncOpts:*/ asyncOpts_,
|
|
6417
|
-
/*errorHandler:*/
|
|
6418
|
-
FfiConverterTypeBarkError
|
|
6419
|
-
)
|
|
5603
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6420
5604
|
);
|
|
6421
5605
|
} catch (__error: any) {
|
|
6422
5606
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6453,9 +5637,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6453
5637
|
),
|
|
6454
5638
|
/*liftString:*/ FfiConverterString.lift,
|
|
6455
5639
|
/*asyncOpts:*/ asyncOpts_,
|
|
6456
|
-
/*errorHandler:*/
|
|
6457
|
-
FfiConverterTypeBarkError
|
|
6458
|
-
)
|
|
5640
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6459
5641
|
);
|
|
6460
5642
|
} catch (__error: any) {
|
|
6461
5643
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6490,9 +5672,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6490
5672
|
),
|
|
6491
5673
|
/*liftString:*/ FfiConverterString.lift,
|
|
6492
5674
|
/*asyncOpts:*/ asyncOpts_,
|
|
6493
|
-
/*errorHandler:*/
|
|
6494
|
-
FfiConverterTypeBarkError
|
|
6495
|
-
)
|
|
5675
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6496
5676
|
);
|
|
6497
5677
|
} catch (__error: any) {
|
|
6498
5678
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6505,9 +5685,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6505
5685
|
mailboxAuthorization(): string /*throws*/ {
|
|
6506
5686
|
return FfiConverterString.lift(
|
|
6507
5687
|
uniffiCaller.rustCallWithError(
|
|
6508
|
-
/*liftError:*/
|
|
6509
|
-
FfiConverterTypeBarkError
|
|
6510
|
-
),
|
|
5688
|
+
/*liftError:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError),
|
|
6511
5689
|
/*caller:*/ (callStatus) => {
|
|
6512
5690
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_mailbox_authorization(
|
|
6513
5691
|
uniffiTypeWalletObjectFactory.clonePointer(this),
|
|
@@ -6522,9 +5700,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6522
5700
|
mailboxIdentifier(): string /*throws*/ {
|
|
6523
5701
|
return FfiConverterString.lift(
|
|
6524
5702
|
uniffiCaller.rustCallWithError(
|
|
6525
|
-
/*liftError:*/
|
|
6526
|
-
FfiConverterTypeBarkError
|
|
6527
|
-
),
|
|
5703
|
+
/*liftError:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError),
|
|
6528
5704
|
/*caller:*/ (callStatus) => {
|
|
6529
5705
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_mailbox_identifier(
|
|
6530
5706
|
uniffiTypeWalletObjectFactory.clonePointer(this),
|
|
@@ -6557,9 +5733,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6557
5733
|
/*liftFunc:*/ (_v) => {},
|
|
6558
5734
|
/*liftString:*/ FfiConverterString.lift,
|
|
6559
5735
|
/*asyncOpts:*/ asyncOpts_,
|
|
6560
|
-
/*errorHandler:*/
|
|
6561
|
-
FfiConverterTypeBarkError
|
|
6562
|
-
)
|
|
5736
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6563
5737
|
);
|
|
6564
5738
|
} catch (__error: any) {
|
|
6565
5739
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6590,9 +5764,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6590
5764
|
/*liftFunc:*/ (_v) => {},
|
|
6591
5765
|
/*liftString:*/ FfiConverterString.lift,
|
|
6592
5766
|
/*asyncOpts:*/ asyncOpts_,
|
|
6593
|
-
/*errorHandler:*/
|
|
6594
|
-
FfiConverterTypeBarkError
|
|
6595
|
-
)
|
|
5767
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6596
5768
|
);
|
|
6597
5769
|
} catch (__error: any) {
|
|
6598
5770
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6627,9 +5799,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6627
5799
|
),
|
|
6628
5800
|
/*liftString:*/ FfiConverterString.lift,
|
|
6629
5801
|
/*asyncOpts:*/ asyncOpts_,
|
|
6630
|
-
/*errorHandler:*/
|
|
6631
|
-
FfiConverterTypeBarkError
|
|
6632
|
-
)
|
|
5802
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6633
5803
|
);
|
|
6634
5804
|
} catch (__error: any) {
|
|
6635
5805
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6662,9 +5832,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6662
5832
|
/*liftFunc:*/ (_v) => {},
|
|
6663
5833
|
/*liftString:*/ FfiConverterString.lift,
|
|
6664
5834
|
/*asyncOpts:*/ asyncOpts_,
|
|
6665
|
-
/*errorHandler:*/
|
|
6666
|
-
FfiConverterTypeBarkError
|
|
6667
|
-
)
|
|
5835
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6668
5836
|
);
|
|
6669
5837
|
} catch (__error: any) {
|
|
6670
5838
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6697,46 +5865,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6697
5865
|
/*liftFunc:*/ (_v) => {},
|
|
6698
5866
|
/*liftString:*/ FfiConverterString.lift,
|
|
6699
5867
|
/*asyncOpts:*/ asyncOpts_,
|
|
6700
|
-
/*errorHandler:*/
|
|
6701
|
-
FfiConverterTypeBarkError
|
|
6702
|
-
)
|
|
6703
|
-
);
|
|
6704
|
-
} catch (__error: any) {
|
|
6705
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
6706
|
-
__error.stack = __stack;
|
|
6707
|
-
}
|
|
6708
|
-
throw __error;
|
|
6709
|
-
}
|
|
6710
|
-
}
|
|
6711
|
-
|
|
6712
|
-
async maybeScheduleMaintenanceRefresh(asyncOpts_?: {
|
|
6713
|
-
signal: AbortSignal;
|
|
6714
|
-
}): Promise</*u32*/ number | undefined> /*throws*/ {
|
|
6715
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
6716
|
-
try {
|
|
6717
|
-
return await uniffiRustCallAsync(
|
|
6718
|
-
/*rustCaller:*/ uniffiCaller,
|
|
6719
|
-
/*rustFutureFunc:*/ () => {
|
|
6720
|
-
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_maybe_schedule_maintenance_refresh(
|
|
6721
|
-
uniffiTypeWalletObjectFactory.clonePointer(this)
|
|
6722
|
-
);
|
|
6723
|
-
},
|
|
6724
|
-
/*pollFunc:*/ nativeModule()
|
|
6725
|
-
.ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer,
|
|
6726
|
-
/*cancelFunc:*/ nativeModule()
|
|
6727
|
-
.ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer,
|
|
6728
|
-
/*completeFunc:*/ nativeModule()
|
|
6729
|
-
.ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer,
|
|
6730
|
-
/*freeFunc:*/ nativeModule()
|
|
6731
|
-
.ubrn_ffi_bark_ffi_rust_future_free_rust_buffer,
|
|
6732
|
-
/*liftFunc:*/ FfiConverterOptionalUInt32.lift.bind(
|
|
6733
|
-
FfiConverterOptionalUInt32
|
|
6734
|
-
),
|
|
6735
|
-
/*liftString:*/ FfiConverterString.lift,
|
|
6736
|
-
/*asyncOpts:*/ asyncOpts_,
|
|
6737
|
-
/*errorHandler:*/ FfiConverterTypeBarkError.lift.bind(
|
|
6738
|
-
FfiConverterTypeBarkError
|
|
6739
|
-
)
|
|
5868
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6740
5869
|
);
|
|
6741
5870
|
} catch (__error: any) {
|
|
6742
5871
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6771,9 +5900,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6771
5900
|
),
|
|
6772
5901
|
/*liftString:*/ FfiConverterString.lift,
|
|
6773
5902
|
/*asyncOpts:*/ asyncOpts_,
|
|
6774
|
-
/*errorHandler:*/
|
|
6775
|
-
FfiConverterTypeBarkError
|
|
6776
|
-
)
|
|
5903
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6777
5904
|
);
|
|
6778
5905
|
} catch (__error: any) {
|
|
6779
5906
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6806,9 +5933,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6806
5933
|
/*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
6807
5934
|
/*liftString:*/ FfiConverterString.lift,
|
|
6808
5935
|
/*asyncOpts:*/ asyncOpts_,
|
|
6809
|
-
/*errorHandler:*/
|
|
6810
|
-
FfiConverterTypeBarkError
|
|
6811
|
-
)
|
|
5936
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6812
5937
|
);
|
|
6813
5938
|
} catch (__error: any) {
|
|
6814
5939
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6843,9 +5968,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6843
5968
|
),
|
|
6844
5969
|
/*liftString:*/ FfiConverterString.lift,
|
|
6845
5970
|
/*asyncOpts:*/ asyncOpts_,
|
|
6846
|
-
/*errorHandler:*/
|
|
6847
|
-
FfiConverterTypeBarkError
|
|
6848
|
-
)
|
|
5971
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6849
5972
|
);
|
|
6850
5973
|
} catch (__error: any) {
|
|
6851
5974
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6875,9 +5998,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6875
5998
|
/*liftFunc:*/ FfiConverterUInt64.lift.bind(FfiConverterUInt64),
|
|
6876
5999
|
/*liftString:*/ FfiConverterString.lift,
|
|
6877
6000
|
/*asyncOpts:*/ asyncOpts_,
|
|
6878
|
-
/*errorHandler:*/
|
|
6879
|
-
FfiConverterTypeBarkError
|
|
6880
|
-
)
|
|
6001
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6881
6002
|
);
|
|
6882
6003
|
} catch (__error: any) {
|
|
6883
6004
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6928,9 +6049,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6928
6049
|
),
|
|
6929
6050
|
/*liftString:*/ FfiConverterString.lift,
|
|
6930
6051
|
/*asyncOpts:*/ asyncOpts_,
|
|
6931
|
-
/*errorHandler:*/
|
|
6932
|
-
FfiConverterTypeBarkError
|
|
6933
|
-
)
|
|
6052
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6934
6053
|
);
|
|
6935
6054
|
} catch (__error: any) {
|
|
6936
6055
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6967,9 +6086,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6967
6086
|
/*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
6968
6087
|
/*liftString:*/ FfiConverterString.lift,
|
|
6969
6088
|
/*asyncOpts:*/ asyncOpts_,
|
|
6970
|
-
/*errorHandler:*/
|
|
6971
|
-
FfiConverterTypeBarkError
|
|
6972
|
-
)
|
|
6089
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6973
6090
|
);
|
|
6974
6091
|
} catch (__error: any) {
|
|
6975
6092
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6986,7 +6103,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6986
6103
|
lightningAddress: string,
|
|
6987
6104
|
amountSats: /*u64*/ bigint,
|
|
6988
6105
|
comment: string | undefined,
|
|
6989
|
-
wait: boolean,
|
|
6106
|
+
wait: boolean = false,
|
|
6990
6107
|
asyncOpts_?: { signal: AbortSignal }
|
|
6991
6108
|
): Promise<LightningSendStatus> /*throws*/ {
|
|
6992
6109
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
@@ -7015,9 +6132,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7015
6132
|
),
|
|
7016
6133
|
/*liftString:*/ FfiConverterString.lift,
|
|
7017
6134
|
/*asyncOpts:*/ asyncOpts_,
|
|
7018
|
-
/*errorHandler:*/
|
|
7019
|
-
FfiConverterTypeBarkError
|
|
7020
|
-
)
|
|
6135
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7021
6136
|
);
|
|
7022
6137
|
} catch (__error: any) {
|
|
7023
6138
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7030,7 +6145,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7030
6145
|
async payLightningInvoice(
|
|
7031
6146
|
invoice: string,
|
|
7032
6147
|
amountSats: /*u64*/ bigint | undefined,
|
|
7033
|
-
wait: boolean,
|
|
6148
|
+
wait: boolean = false,
|
|
7034
6149
|
asyncOpts_?: { signal: AbortSignal }
|
|
7035
6150
|
): Promise<LightningSendStatus> /*throws*/ {
|
|
7036
6151
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
@@ -7058,9 +6173,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7058
6173
|
),
|
|
7059
6174
|
/*liftString:*/ FfiConverterString.lift,
|
|
7060
6175
|
/*asyncOpts:*/ asyncOpts_,
|
|
7061
|
-
/*errorHandler:*/
|
|
7062
|
-
FfiConverterTypeBarkError
|
|
7063
|
-
)
|
|
6176
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7064
6177
|
);
|
|
7065
6178
|
} catch (__error: any) {
|
|
7066
6179
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7073,7 +6186,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7073
6186
|
async payLightningOffer(
|
|
7074
6187
|
offer: string,
|
|
7075
6188
|
amountSats: /*u64*/ bigint | undefined,
|
|
7076
|
-
wait: boolean,
|
|
6189
|
+
wait: boolean = false,
|
|
7077
6190
|
asyncOpts_?: { signal: AbortSignal }
|
|
7078
6191
|
): Promise<LightningSendStatus> /*throws*/ {
|
|
7079
6192
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
@@ -7101,9 +6214,56 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7101
6214
|
),
|
|
7102
6215
|
/*liftString:*/ FfiConverterString.lift,
|
|
7103
6216
|
/*asyncOpts:*/ asyncOpts_,
|
|
7104
|
-
/*errorHandler:*/
|
|
7105
|
-
|
|
7106
|
-
|
|
6217
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6218
|
+
);
|
|
6219
|
+
} catch (__error: any) {
|
|
6220
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
6221
|
+
__error.stack = __stack;
|
|
6222
|
+
}
|
|
6223
|
+
throw __error;
|
|
6224
|
+
}
|
|
6225
|
+
}
|
|
6226
|
+
|
|
6227
|
+
/**
|
|
6228
|
+
* Pay a raw LNURL-pay link (`lnurl1…`). UniFFI-only — lnurl-rs is not wasm-compatible.
|
|
6229
|
+
*
|
|
6230
|
+
* Resolves the LNURL-pay endpoint to a BOLT11 invoice and pays it. Errors
|
|
6231
|
+
* if the link decodes to a non-pay LNURL (auth, withdraw, channel).
|
|
6232
|
+
*/
|
|
6233
|
+
async payLnurl(
|
|
6234
|
+
lnurl: string,
|
|
6235
|
+
amountSats: /*u64*/ bigint,
|
|
6236
|
+
comment: string | undefined,
|
|
6237
|
+
wait: boolean = false,
|
|
6238
|
+
asyncOpts_?: { signal: AbortSignal }
|
|
6239
|
+
): Promise<LightningSendStatus> /*throws*/ {
|
|
6240
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
6241
|
+
try {
|
|
6242
|
+
return await uniffiRustCallAsync(
|
|
6243
|
+
/*rustCaller:*/ uniffiCaller,
|
|
6244
|
+
/*rustFutureFunc:*/ () => {
|
|
6245
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lnurl(
|
|
6246
|
+
uniffiTypeWalletObjectFactory.clonePointer(this),
|
|
6247
|
+
FfiConverterString.lower(lnurl),
|
|
6248
|
+
FfiConverterUInt64.lower(amountSats),
|
|
6249
|
+
FfiConverterOptionalString.lower(comment),
|
|
6250
|
+
FfiConverterBool.lower(wait)
|
|
6251
|
+
);
|
|
6252
|
+
},
|
|
6253
|
+
/*pollFunc:*/ nativeModule()
|
|
6254
|
+
.ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer,
|
|
6255
|
+
/*cancelFunc:*/ nativeModule()
|
|
6256
|
+
.ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer,
|
|
6257
|
+
/*completeFunc:*/ nativeModule()
|
|
6258
|
+
.ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer,
|
|
6259
|
+
/*freeFunc:*/ nativeModule()
|
|
6260
|
+
.ubrn_ffi_bark_ffi_rust_future_free_rust_buffer,
|
|
6261
|
+
/*liftFunc:*/ FfiConverterTypeLightningSendStatus.lift.bind(
|
|
6262
|
+
FfiConverterTypeLightningSendStatus
|
|
6263
|
+
),
|
|
6264
|
+
/*liftString:*/ FfiConverterString.lift,
|
|
6265
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
6266
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7107
6267
|
);
|
|
7108
6268
|
} catch (__error: any) {
|
|
7109
6269
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7138,9 +6298,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7138
6298
|
/*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
7139
6299
|
/*liftString:*/ FfiConverterString.lift,
|
|
7140
6300
|
/*asyncOpts:*/ asyncOpts_,
|
|
7141
|
-
/*errorHandler:*/
|
|
7142
|
-
FfiConverterTypeBarkError
|
|
7143
|
-
)
|
|
6301
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7144
6302
|
);
|
|
7145
6303
|
} catch (__error: any) {
|
|
7146
6304
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7175,9 +6333,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7175
6333
|
),
|
|
7176
6334
|
/*liftString:*/ FfiConverterString.lift,
|
|
7177
6335
|
/*asyncOpts:*/ asyncOpts_,
|
|
7178
|
-
/*errorHandler:*/
|
|
7179
|
-
FfiConverterTypeBarkError
|
|
7180
|
-
)
|
|
6336
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7181
6337
|
);
|
|
7182
6338
|
} catch (__error: any) {
|
|
7183
6339
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7212,9 +6368,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7212
6368
|
),
|
|
7213
6369
|
/*liftString:*/ FfiConverterString.lift,
|
|
7214
6370
|
/*asyncOpts:*/ asyncOpts_,
|
|
7215
|
-
/*errorHandler:*/
|
|
7216
|
-
FfiConverterTypeBarkError
|
|
7217
|
-
)
|
|
6371
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7218
6372
|
);
|
|
7219
6373
|
} catch (__error: any) {
|
|
7220
6374
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7244,9 +6398,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7244
6398
|
/*liftFunc:*/ FfiConverterUInt64.lift.bind(FfiConverterUInt64),
|
|
7245
6399
|
/*liftString:*/ FfiConverterString.lift,
|
|
7246
6400
|
/*asyncOpts:*/ asyncOpts_,
|
|
7247
|
-
/*errorHandler:*/
|
|
7248
|
-
FfiConverterTypeBarkError
|
|
7249
|
-
)
|
|
6401
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7250
6402
|
);
|
|
7251
6403
|
} catch (__error: any) {
|
|
7252
6404
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7281,9 +6433,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7281
6433
|
),
|
|
7282
6434
|
/*liftString:*/ FfiConverterString.lift,
|
|
7283
6435
|
/*asyncOpts:*/ asyncOpts_,
|
|
7284
|
-
/*errorHandler:*/
|
|
7285
|
-
FfiConverterTypeBarkError
|
|
7286
|
-
)
|
|
6436
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7287
6437
|
);
|
|
7288
6438
|
} catch (__error: any) {
|
|
7289
6439
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7318,9 +6468,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7318
6468
|
),
|
|
7319
6469
|
/*liftString:*/ FfiConverterString.lift,
|
|
7320
6470
|
/*asyncOpts:*/ asyncOpts_,
|
|
7321
|
-
/*errorHandler:*/
|
|
7322
|
-
FfiConverterTypeBarkError
|
|
7323
|
-
)
|
|
6471
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7324
6472
|
);
|
|
7325
6473
|
} catch (__error: any) {
|
|
7326
6474
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7355,9 +6503,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7355
6503
|
),
|
|
7356
6504
|
/*liftString:*/ FfiConverterString.lift,
|
|
7357
6505
|
/*asyncOpts:*/ asyncOpts_,
|
|
7358
|
-
/*errorHandler:*/
|
|
7359
|
-
FfiConverterTypeBarkError
|
|
7360
|
-
)
|
|
6506
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7361
6507
|
);
|
|
7362
6508
|
} catch (__error: any) {
|
|
7363
6509
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7392,9 +6538,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7392
6538
|
),
|
|
7393
6539
|
/*liftString:*/ FfiConverterString.lift,
|
|
7394
6540
|
/*asyncOpts:*/ asyncOpts_,
|
|
7395
|
-
/*errorHandler:*/
|
|
7396
|
-
FfiConverterTypeBarkError
|
|
7397
|
-
)
|
|
6541
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7398
6542
|
);
|
|
7399
6543
|
} catch (__error: any) {
|
|
7400
6544
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7429,9 +6573,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7429
6573
|
),
|
|
7430
6574
|
/*liftString:*/ FfiConverterString.lift,
|
|
7431
6575
|
/*asyncOpts:*/ asyncOpts_,
|
|
7432
|
-
/*errorHandler:*/
|
|
7433
|
-
FfiConverterTypeBarkError
|
|
7434
|
-
)
|
|
6576
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7435
6577
|
);
|
|
7436
6578
|
} catch (__error: any) {
|
|
7437
6579
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7470,9 +6612,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7470
6612
|
),
|
|
7471
6613
|
/*liftString:*/ FfiConverterString.lift,
|
|
7472
6614
|
/*asyncOpts:*/ asyncOpts_,
|
|
7473
|
-
/*errorHandler:*/
|
|
7474
|
-
FfiConverterTypeBarkError
|
|
7475
|
-
)
|
|
6615
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7476
6616
|
);
|
|
7477
6617
|
} catch (__error: any) {
|
|
7478
6618
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7503,9 +6643,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7503
6643
|
/*liftFunc:*/ (_v) => {},
|
|
7504
6644
|
/*liftString:*/ FfiConverterString.lift,
|
|
7505
6645
|
/*asyncOpts:*/ asyncOpts_,
|
|
7506
|
-
/*errorHandler:*/
|
|
7507
|
-
FfiConverterTypeBarkError
|
|
7508
|
-
)
|
|
6646
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7509
6647
|
);
|
|
7510
6648
|
} catch (__error: any) {
|
|
7511
6649
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7540,9 +6678,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7540
6678
|
),
|
|
7541
6679
|
/*liftString:*/ FfiConverterString.lift,
|
|
7542
6680
|
/*asyncOpts:*/ asyncOpts_,
|
|
7543
|
-
/*errorHandler:*/
|
|
7544
|
-
FfiConverterTypeBarkError
|
|
7545
|
-
)
|
|
6681
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7546
6682
|
);
|
|
7547
6683
|
} catch (__error: any) {
|
|
7548
6684
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7573,9 +6709,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7573
6709
|
/*liftFunc:*/ (_v) => {},
|
|
7574
6710
|
/*liftString:*/ FfiConverterString.lift,
|
|
7575
6711
|
/*asyncOpts:*/ asyncOpts_,
|
|
7576
|
-
/*errorHandler:*/
|
|
7577
|
-
FfiConverterTypeBarkError
|
|
7578
|
-
)
|
|
6712
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7579
6713
|
);
|
|
7580
6714
|
} catch (__error: any) {
|
|
7581
6715
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7612,9 +6746,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7612
6746
|
),
|
|
7613
6747
|
/*liftString:*/ FfiConverterString.lift,
|
|
7614
6748
|
/*asyncOpts:*/ asyncOpts_,
|
|
7615
|
-
/*errorHandler:*/
|
|
7616
|
-
FfiConverterTypeBarkError
|
|
7617
|
-
)
|
|
6749
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7618
6750
|
);
|
|
7619
6751
|
} catch (__error: any) {
|
|
7620
6752
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7651,9 +6783,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7651
6783
|
),
|
|
7652
6784
|
/*liftString:*/ FfiConverterString.lift,
|
|
7653
6785
|
/*asyncOpts:*/ asyncOpts_,
|
|
7654
|
-
/*errorHandler:*/
|
|
7655
|
-
FfiConverterTypeBarkError
|
|
7656
|
-
)
|
|
6786
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7657
6787
|
);
|
|
7658
6788
|
} catch (__error: any) {
|
|
7659
6789
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7686,9 +6816,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7686
6816
|
/*liftFunc:*/ (_v) => {},
|
|
7687
6817
|
/*liftString:*/ FfiConverterString.lift,
|
|
7688
6818
|
/*asyncOpts:*/ asyncOpts_,
|
|
7689
|
-
/*errorHandler:*/
|
|
7690
|
-
FfiConverterTypeBarkError
|
|
7691
|
-
)
|
|
6819
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7692
6820
|
);
|
|
7693
6821
|
} catch (__error: any) {
|
|
7694
6822
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7702,7 +6830,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7702
6830
|
arkAddress: string,
|
|
7703
6831
|
amountSats: /*u64*/ bigint,
|
|
7704
6832
|
asyncOpts_?: { signal: AbortSignal }
|
|
7705
|
-
): Promise<
|
|
6833
|
+
): Promise<void> /*throws*/ {
|
|
7706
6834
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
7707
6835
|
try {
|
|
7708
6836
|
return await uniffiRustCallAsync(
|
|
@@ -7714,20 +6842,16 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7714
6842
|
FfiConverterUInt64.lower(amountSats)
|
|
7715
6843
|
);
|
|
7716
6844
|
},
|
|
7717
|
-
/*pollFunc:*/ nativeModule()
|
|
7718
|
-
.ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer,
|
|
6845
|
+
/*pollFunc:*/ nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void,
|
|
7719
6846
|
/*cancelFunc:*/ nativeModule()
|
|
7720
|
-
.
|
|
6847
|
+
.ubrn_ffi_bark_ffi_rust_future_cancel_void,
|
|
7721
6848
|
/*completeFunc:*/ nativeModule()
|
|
7722
|
-
.
|
|
7723
|
-
/*freeFunc:*/ nativeModule()
|
|
7724
|
-
|
|
7725
|
-
/*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
6849
|
+
.ubrn_ffi_bark_ffi_rust_future_complete_void,
|
|
6850
|
+
/*freeFunc:*/ nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void,
|
|
6851
|
+
/*liftFunc:*/ (_v) => {},
|
|
7726
6852
|
/*liftString:*/ FfiConverterString.lift,
|
|
7727
6853
|
/*asyncOpts:*/ asyncOpts_,
|
|
7728
|
-
/*errorHandler:*/
|
|
7729
|
-
FfiConverterTypeBarkError
|
|
7730
|
-
)
|
|
6854
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7731
6855
|
);
|
|
7732
6856
|
} catch (__error: any) {
|
|
7733
6857
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7764,9 +6888,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7764
6888
|
/*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
7765
6889
|
/*liftString:*/ FfiConverterString.lift,
|
|
7766
6890
|
/*asyncOpts:*/ asyncOpts_,
|
|
7767
|
-
/*errorHandler:*/
|
|
7768
|
-
FfiConverterTypeBarkError
|
|
7769
|
-
)
|
|
6891
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7770
6892
|
);
|
|
7771
6893
|
} catch (__error: any) {
|
|
7772
6894
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7801,9 +6923,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7801
6923
|
/*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
7802
6924
|
/*liftString:*/ FfiConverterString.lift,
|
|
7803
6925
|
/*asyncOpts:*/ asyncOpts_,
|
|
7804
|
-
/*errorHandler:*/
|
|
7805
|
-
FfiConverterTypeBarkError
|
|
7806
|
-
)
|
|
6926
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7807
6927
|
);
|
|
7808
6928
|
} catch (__error: any) {
|
|
7809
6929
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7838,9 +6958,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7838
6958
|
),
|
|
7839
6959
|
/*liftString:*/ FfiConverterString.lift,
|
|
7840
6960
|
/*asyncOpts:*/ asyncOpts_,
|
|
7841
|
-
/*errorHandler:*/
|
|
7842
|
-
FfiConverterTypeBarkError
|
|
7843
|
-
)
|
|
6961
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7844
6962
|
);
|
|
7845
6963
|
} catch (__error: any) {
|
|
7846
6964
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7871,9 +6989,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7871
6989
|
/*liftFunc:*/ (_v) => {},
|
|
7872
6990
|
/*liftString:*/ FfiConverterString.lift,
|
|
7873
6991
|
/*asyncOpts:*/ asyncOpts_,
|
|
7874
|
-
/*errorHandler:*/
|
|
7875
|
-
FfiConverterTypeBarkError
|
|
7876
|
-
)
|
|
6992
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7877
6993
|
);
|
|
7878
6994
|
} catch (__error: any) {
|
|
7879
6995
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7906,9 +7022,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7906
7022
|
/*liftFunc:*/ (_v) => {},
|
|
7907
7023
|
/*liftString:*/ FfiConverterString.lift,
|
|
7908
7024
|
/*asyncOpts:*/ asyncOpts_,
|
|
7909
|
-
/*errorHandler:*/
|
|
7910
|
-
FfiConverterTypeBarkError
|
|
7911
|
-
)
|
|
7025
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7912
7026
|
);
|
|
7913
7027
|
} catch (__error: any) {
|
|
7914
7028
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7939,9 +7053,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7939
7053
|
/*liftFunc:*/ (_v) => {},
|
|
7940
7054
|
/*liftString:*/ FfiConverterString.lift,
|
|
7941
7055
|
/*asyncOpts:*/ asyncOpts_,
|
|
7942
|
-
/*errorHandler:*/
|
|
7943
|
-
FfiConverterTypeBarkError
|
|
7944
|
-
)
|
|
7056
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7945
7057
|
);
|
|
7946
7058
|
} catch (__error: any) {
|
|
7947
7059
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7976,9 +7088,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7976
7088
|
),
|
|
7977
7089
|
/*liftString:*/ FfiConverterString.lift,
|
|
7978
7090
|
/*asyncOpts:*/ asyncOpts_,
|
|
7979
|
-
/*errorHandler:*/
|
|
7980
|
-
FfiConverterTypeBarkError
|
|
7981
|
-
)
|
|
7091
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7982
7092
|
);
|
|
7983
7093
|
} catch (__error: any) {
|
|
7984
7094
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -8007,9 +7117,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
8007
7117
|
/*liftFunc:*/ (_v) => {},
|
|
8008
7118
|
/*liftString:*/ FfiConverterString.lift,
|
|
8009
7119
|
/*asyncOpts:*/ asyncOpts_,
|
|
8010
|
-
/*errorHandler:*/
|
|
8011
|
-
FfiConverterTypeBarkError
|
|
8012
|
-
)
|
|
7120
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
8013
7121
|
);
|
|
8014
7122
|
} catch (__error: any) {
|
|
8015
7123
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -8042,9 +7150,45 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
8042
7150
|
/*liftFunc:*/ (_v) => {},
|
|
8043
7151
|
/*liftString:*/ FfiConverterString.lift,
|
|
8044
7152
|
/*asyncOpts:*/ asyncOpts_,
|
|
8045
|
-
/*errorHandler:*/
|
|
8046
|
-
|
|
8047
|
-
|
|
7153
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7154
|
+
);
|
|
7155
|
+
} catch (__error: any) {
|
|
7156
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
7157
|
+
__error.stack = __stack;
|
|
7158
|
+
}
|
|
7159
|
+
throw __error;
|
|
7160
|
+
}
|
|
7161
|
+
}
|
|
7162
|
+
|
|
7163
|
+
/**
|
|
7164
|
+
* Scan for VTXOs that were force-exited on-chain without the user asking
|
|
7165
|
+
* and route them into the unilateral-exit flow so the funds can be claimed.
|
|
7166
|
+
*
|
|
7167
|
+
* This already runs automatically as part of [`Self::sync`]; call it
|
|
7168
|
+
* directly to trigger the scan on demand.
|
|
7169
|
+
*/
|
|
7170
|
+
async syncForceExitedVtxos(asyncOpts_?: {
|
|
7171
|
+
signal: AbortSignal;
|
|
7172
|
+
}): Promise<void> /*throws*/ {
|
|
7173
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
7174
|
+
try {
|
|
7175
|
+
return await uniffiRustCallAsync(
|
|
7176
|
+
/*rustCaller:*/ uniffiCaller,
|
|
7177
|
+
/*rustFutureFunc:*/ () => {
|
|
7178
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_sync_force_exited_vtxos(
|
|
7179
|
+
uniffiTypeWalletObjectFactory.clonePointer(this)
|
|
7180
|
+
);
|
|
7181
|
+
},
|
|
7182
|
+
/*pollFunc:*/ nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void,
|
|
7183
|
+
/*cancelFunc:*/ nativeModule()
|
|
7184
|
+
.ubrn_ffi_bark_ffi_rust_future_cancel_void,
|
|
7185
|
+
/*completeFunc:*/ nativeModule()
|
|
7186
|
+
.ubrn_ffi_bark_ffi_rust_future_complete_void,
|
|
7187
|
+
/*freeFunc:*/ nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void,
|
|
7188
|
+
/*liftFunc:*/ (_v) => {},
|
|
7189
|
+
/*liftString:*/ FfiConverterString.lift,
|
|
7190
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
7191
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
8048
7192
|
);
|
|
8049
7193
|
} catch (__error: any) {
|
|
8050
7194
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -8075,9 +7219,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
8075
7219
|
/*liftFunc:*/ (_v) => {},
|
|
8076
7220
|
/*liftString:*/ FfiConverterString.lift,
|
|
8077
7221
|
/*asyncOpts:*/ asyncOpts_,
|
|
8078
|
-
/*errorHandler:*/
|
|
8079
|
-
FfiConverterTypeBarkError
|
|
8080
|
-
)
|
|
7222
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
8081
7223
|
);
|
|
8082
7224
|
} catch (__error: any) {
|
|
8083
7225
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -8088,7 +7230,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
8088
7230
|
}
|
|
8089
7231
|
|
|
8090
7232
|
async tryClaimAllLightningReceives(
|
|
8091
|
-
wait: boolean,
|
|
7233
|
+
wait: boolean = false,
|
|
8092
7234
|
asyncOpts_?: { signal: AbortSignal }
|
|
8093
7235
|
): Promise<Array<LightningReceive>> /*throws*/ {
|
|
8094
7236
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
@@ -8114,9 +7256,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
8114
7256
|
),
|
|
8115
7257
|
/*liftString:*/ FfiConverterString.lift,
|
|
8116
7258
|
/*asyncOpts:*/ asyncOpts_,
|
|
8117
|
-
/*errorHandler:*/
|
|
8118
|
-
FfiConverterTypeBarkError
|
|
8119
|
-
)
|
|
7259
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
8120
7260
|
);
|
|
8121
7261
|
} catch (__error: any) {
|
|
8122
7262
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -8128,7 +7268,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
8128
7268
|
|
|
8129
7269
|
async tryClaimLightningReceive(
|
|
8130
7270
|
paymentHash: string,
|
|
8131
|
-
wait: boolean,
|
|
7271
|
+
wait: boolean = false,
|
|
8132
7272
|
asyncOpts_?: { signal: AbortSignal }
|
|
8133
7273
|
): Promise<void> /*throws*/ {
|
|
8134
7274
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
@@ -8151,9 +7291,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
8151
7291
|
/*liftFunc:*/ (_v) => {},
|
|
8152
7292
|
/*liftString:*/ FfiConverterString.lift,
|
|
8153
7293
|
/*asyncOpts:*/ asyncOpts_,
|
|
8154
|
-
/*errorHandler:*/
|
|
8155
|
-
FfiConverterTypeBarkError
|
|
8156
|
-
)
|
|
7294
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
8157
7295
|
);
|
|
8158
7296
|
} catch (__error: any) {
|
|
8159
7297
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -8185,9 +7323,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
8185
7323
|
/*liftFunc:*/ FfiConverterBool.lift.bind(FfiConverterBool),
|
|
8186
7324
|
/*liftString:*/ FfiConverterString.lift,
|
|
8187
7325
|
/*asyncOpts:*/ asyncOpts_,
|
|
8188
|
-
/*errorHandler:*/
|
|
8189
|
-
FfiConverterTypeBarkError
|
|
8190
|
-
)
|
|
7326
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
8191
7327
|
);
|
|
8192
7328
|
} catch (__error: any) {
|
|
8193
7329
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -8222,9 +7358,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
8222
7358
|
),
|
|
8223
7359
|
/*liftString:*/ FfiConverterString.lift,
|
|
8224
7360
|
/*asyncOpts:*/ asyncOpts_,
|
|
8225
|
-
/*errorHandler:*/
|
|
8226
|
-
FfiConverterTypeBarkError
|
|
8227
|
-
)
|
|
7361
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
8228
7362
|
);
|
|
8229
7363
|
} catch (__error: any) {
|
|
8230
7364
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -8447,7 +7581,7 @@ function uniffiEnsureInitialized() {
|
|
|
8447
7581
|
}
|
|
8448
7582
|
if (
|
|
8449
7583
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_func_extract_tx_from_psbt() !==
|
|
8450
|
-
|
|
7584
|
+
8893
|
|
8451
7585
|
) {
|
|
8452
7586
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8453
7587
|
"uniffi_bark_ffi_checksum_func_extract_tx_from_psbt"
|
|
@@ -8455,7 +7589,7 @@ function uniffiEnsureInitialized() {
|
|
|
8455
7589
|
}
|
|
8456
7590
|
if (
|
|
8457
7591
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_func_generate_mnemonic() !==
|
|
8458
|
-
|
|
7592
|
+
65033
|
|
8459
7593
|
) {
|
|
8460
7594
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8461
7595
|
"uniffi_bark_ffi_checksum_func_generate_mnemonic"
|
|
@@ -8463,7 +7597,7 @@ function uniffiEnsureInitialized() {
|
|
|
8463
7597
|
}
|
|
8464
7598
|
if (
|
|
8465
7599
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_func_validate_ark_address() !==
|
|
8466
|
-
|
|
7600
|
+
43084
|
|
8467
7601
|
) {
|
|
8468
7602
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8469
7603
|
"uniffi_bark_ffi_checksum_func_validate_ark_address"
|
|
@@ -8471,17 +7605,26 @@ function uniffiEnsureInitialized() {
|
|
|
8471
7605
|
}
|
|
8472
7606
|
if (
|
|
8473
7607
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_func_validate_mnemonic() !==
|
|
8474
|
-
|
|
7608
|
+
33507
|
|
8475
7609
|
) {
|
|
8476
7610
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8477
7611
|
"uniffi_bark_ffi_checksum_func_validate_mnemonic"
|
|
8478
7612
|
);
|
|
8479
7613
|
}
|
|
8480
|
-
if (
|
|
7614
|
+
if (
|
|
7615
|
+
nativeModule().ubrn_uniffi_bark_ffi_checksum_func_set_logger() !== 16477
|
|
7616
|
+
) {
|
|
8481
7617
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8482
7618
|
"uniffi_bark_ffi_checksum_func_set_logger"
|
|
8483
7619
|
);
|
|
8484
7620
|
}
|
|
7621
|
+
if (
|
|
7622
|
+
nativeModule().ubrn_uniffi_bark_ffi_checksum_func_init_wallet() !== 41495
|
|
7623
|
+
) {
|
|
7624
|
+
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
7625
|
+
"uniffi_bark_ffi_checksum_func_init_wallet"
|
|
7626
|
+
);
|
|
7627
|
+
}
|
|
8485
7628
|
if (
|
|
8486
7629
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_notificationholder_cancel_next_notification_wait() !==
|
|
8487
7630
|
45269
|
|
@@ -8492,7 +7635,7 @@ function uniffiEnsureInitialized() {
|
|
|
8492
7635
|
}
|
|
8493
7636
|
if (
|
|
8494
7637
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_notificationholder_next_notification() !==
|
|
8495
|
-
|
|
7638
|
+
25507
|
|
8496
7639
|
) {
|
|
8497
7640
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8498
7641
|
"uniffi_bark_ffi_checksum_method_notificationholder_next_notification"
|
|
@@ -8500,7 +7643,7 @@ function uniffiEnsureInitialized() {
|
|
|
8500
7643
|
}
|
|
8501
7644
|
if (
|
|
8502
7645
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance() !==
|
|
8503
|
-
|
|
7646
|
+
34190
|
|
8504
7647
|
) {
|
|
8505
7648
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8506
7649
|
"uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance"
|
|
@@ -8508,7 +7651,7 @@ function uniffiEnsureInitialized() {
|
|
|
8508
7651
|
}
|
|
8509
7652
|
if (
|
|
8510
7653
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx() !==
|
|
8511
|
-
|
|
7654
|
+
25026
|
|
8512
7655
|
) {
|
|
8513
7656
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8514
7657
|
"uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx"
|
|
@@ -8516,7 +7659,7 @@ function uniffiEnsureInitialized() {
|
|
|
8516
7659
|
}
|
|
8517
7660
|
if (
|
|
8518
7661
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx() !==
|
|
8519
|
-
|
|
7662
|
+
53416
|
|
8520
7663
|
) {
|
|
8521
7664
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8522
7665
|
"uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx"
|
|
@@ -8524,7 +7667,7 @@ function uniffiEnsureInitialized() {
|
|
|
8524
7667
|
}
|
|
8525
7668
|
if (
|
|
8526
7669
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_psbt() !==
|
|
8527
|
-
|
|
7670
|
+
39878
|
|
8528
7671
|
) {
|
|
8529
7672
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8530
7673
|
"uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_psbt"
|
|
@@ -8532,7 +7675,7 @@ function uniffiEnsureInitialized() {
|
|
|
8532
7675
|
}
|
|
8533
7676
|
if (
|
|
8534
7677
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx() !==
|
|
8535
|
-
|
|
7678
|
+
40848
|
|
8536
7679
|
) {
|
|
8537
7680
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8538
7681
|
"uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx"
|
|
@@ -8540,7 +7683,7 @@ function uniffiEnsureInitialized() {
|
|
|
8540
7683
|
}
|
|
8541
7684
|
if (
|
|
8542
7685
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block() !==
|
|
8543
|
-
|
|
7686
|
+
20505
|
|
8544
7687
|
) {
|
|
8545
7688
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8546
7689
|
"uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block"
|
|
@@ -8548,7 +7691,7 @@ function uniffiEnsureInitialized() {
|
|
|
8548
7691
|
}
|
|
8549
7692
|
if (
|
|
8550
7693
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx() !==
|
|
8551
|
-
|
|
7694
|
+
24154
|
|
8552
7695
|
) {
|
|
8553
7696
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8554
7697
|
"uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx"
|
|
@@ -8556,7 +7699,7 @@ function uniffiEnsureInitialized() {
|
|
|
8556
7699
|
}
|
|
8557
7700
|
if (
|
|
8558
7701
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp() !==
|
|
8559
|
-
|
|
7702
|
+
58200
|
|
8560
7703
|
) {
|
|
8561
7704
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8562
7705
|
"uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp"
|
|
@@ -8564,15 +7707,23 @@ function uniffiEnsureInitialized() {
|
|
|
8564
7707
|
}
|
|
8565
7708
|
if (
|
|
8566
7709
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp() !==
|
|
8567
|
-
|
|
7710
|
+
64815
|
|
8568
7711
|
) {
|
|
8569
7712
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8570
7713
|
"uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp"
|
|
8571
7714
|
);
|
|
8572
7715
|
}
|
|
7716
|
+
if (
|
|
7717
|
+
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_sync() !==
|
|
7718
|
+
29018
|
|
7719
|
+
) {
|
|
7720
|
+
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
7721
|
+
"uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_sync"
|
|
7722
|
+
);
|
|
7723
|
+
}
|
|
8573
7724
|
if (
|
|
8574
7725
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_barklogger_log() !==
|
|
8575
|
-
|
|
7726
|
+
30279
|
|
8576
7727
|
) {
|
|
8577
7728
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8578
7729
|
"uniffi_bark_ffi_checksum_method_barklogger_log"
|
|
@@ -8580,7 +7731,7 @@ function uniffiEnsureInitialized() {
|
|
|
8580
7731
|
}
|
|
8581
7732
|
if (
|
|
8582
7733
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_balance() !==
|
|
8583
|
-
|
|
7734
|
+
39213
|
|
8584
7735
|
) {
|
|
8585
7736
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8586
7737
|
"uniffi_bark_ffi_checksum_method_onchainwallet_balance"
|
|
@@ -8588,7 +7739,7 @@ function uniffiEnsureInitialized() {
|
|
|
8588
7739
|
}
|
|
8589
7740
|
if (
|
|
8590
7741
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_new_address() !==
|
|
8591
|
-
|
|
7742
|
+
7405
|
|
8592
7743
|
) {
|
|
8593
7744
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8594
7745
|
"uniffi_bark_ffi_checksum_method_onchainwallet_new_address"
|
|
@@ -8596,7 +7747,7 @@ function uniffiEnsureInitialized() {
|
|
|
8596
7747
|
}
|
|
8597
7748
|
if (
|
|
8598
7749
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_send() !==
|
|
8599
|
-
|
|
7750
|
+
30495
|
|
8600
7751
|
) {
|
|
8601
7752
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8602
7753
|
"uniffi_bark_ffi_checksum_method_onchainwallet_send"
|
|
@@ -8604,7 +7755,7 @@ function uniffiEnsureInitialized() {
|
|
|
8604
7755
|
}
|
|
8605
7756
|
if (
|
|
8606
7757
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_sync() !==
|
|
8607
|
-
|
|
7758
|
+
4373
|
|
8608
7759
|
) {
|
|
8609
7760
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8610
7761
|
"uniffi_bark_ffi_checksum_method_onchainwallet_sync"
|
|
@@ -8612,7 +7763,7 @@ function uniffiEnsureInitialized() {
|
|
|
8612
7763
|
}
|
|
8613
7764
|
if (
|
|
8614
7765
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_exits_claimable_at_height() !==
|
|
8615
|
-
|
|
7766
|
+
59034
|
|
8616
7767
|
) {
|
|
8617
7768
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8618
7769
|
"uniffi_bark_ffi_checksum_method_wallet_all_exits_claimable_at_height"
|
|
@@ -8620,7 +7771,7 @@ function uniffiEnsureInitialized() {
|
|
|
8620
7771
|
}
|
|
8621
7772
|
if (
|
|
8622
7773
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_vtxos() !==
|
|
8623
|
-
|
|
7774
|
+
62209
|
|
8624
7775
|
) {
|
|
8625
7776
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8626
7777
|
"uniffi_bark_ffi_checksum_method_wallet_all_vtxos"
|
|
@@ -8628,7 +7779,7 @@ function uniffiEnsureInitialized() {
|
|
|
8628
7779
|
}
|
|
8629
7780
|
if (
|
|
8630
7781
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_allow_lightning_send_to_exit() !==
|
|
8631
|
-
|
|
7782
|
+
50764
|
|
8632
7783
|
) {
|
|
8633
7784
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8634
7785
|
"uniffi_bark_ffi_checksum_method_wallet_allow_lightning_send_to_exit"
|
|
@@ -8636,7 +7787,7 @@ function uniffiEnsureInitialized() {
|
|
|
8636
7787
|
}
|
|
8637
7788
|
if (
|
|
8638
7789
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_ark_info() !==
|
|
8639
|
-
|
|
7790
|
+
54388
|
|
8640
7791
|
) {
|
|
8641
7792
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8642
7793
|
"uniffi_bark_ffi_checksum_method_wallet_ark_info"
|
|
@@ -8644,7 +7795,7 @@ function uniffiEnsureInitialized() {
|
|
|
8644
7795
|
}
|
|
8645
7796
|
if (
|
|
8646
7797
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_attempt_lightning_receive_exit() !==
|
|
8647
|
-
|
|
7798
|
+
62153
|
|
8648
7799
|
) {
|
|
8649
7800
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8650
7801
|
"uniffi_bark_ffi_checksum_method_wallet_attempt_lightning_receive_exit"
|
|
@@ -8652,7 +7803,7 @@ function uniffiEnsureInitialized() {
|
|
|
8652
7803
|
}
|
|
8653
7804
|
if (
|
|
8654
7805
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_balance() !==
|
|
8655
|
-
|
|
7806
|
+
37345
|
|
8656
7807
|
) {
|
|
8657
7808
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8658
7809
|
"uniffi_bark_ffi_checksum_method_wallet_balance"
|
|
@@ -8660,7 +7811,7 @@ function uniffiEnsureInitialized() {
|
|
|
8660
7811
|
}
|
|
8661
7812
|
if (
|
|
8662
7813
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_all() !==
|
|
8663
|
-
|
|
7814
|
+
58611
|
|
8664
7815
|
) {
|
|
8665
7816
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8666
7817
|
"uniffi_bark_ffi_checksum_method_wallet_board_all"
|
|
@@ -8668,7 +7819,7 @@ function uniffiEnsureInitialized() {
|
|
|
8668
7819
|
}
|
|
8669
7820
|
if (
|
|
8670
7821
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_amount() !==
|
|
8671
|
-
|
|
7822
|
+
51838
|
|
8672
7823
|
) {
|
|
8673
7824
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8674
7825
|
"uniffi_bark_ffi_checksum_method_wallet_board_amount"
|
|
@@ -8676,7 +7827,7 @@ function uniffiEnsureInitialized() {
|
|
|
8676
7827
|
}
|
|
8677
7828
|
if (
|
|
8678
7829
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice() !==
|
|
8679
|
-
|
|
7830
|
+
43491
|
|
8680
7831
|
) {
|
|
8681
7832
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8682
7833
|
"uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice"
|
|
@@ -8684,7 +7835,7 @@ function uniffiEnsureInitialized() {
|
|
|
8684
7835
|
}
|
|
8685
7836
|
if (
|
|
8686
7837
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_broadcast_tx() !==
|
|
8687
|
-
|
|
7838
|
+
46367
|
|
8688
7839
|
) {
|
|
8689
7840
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8690
7841
|
"uniffi_bark_ffi_checksum_method_wallet_broadcast_tx"
|
|
@@ -8692,7 +7843,7 @@ function uniffiEnsureInitialized() {
|
|
|
8692
7843
|
}
|
|
8693
7844
|
if (
|
|
8694
7845
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds() !==
|
|
8695
|
-
|
|
7846
|
+
53455
|
|
8696
7847
|
) {
|
|
8697
7848
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8698
7849
|
"uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds"
|
|
@@ -8700,7 +7851,7 @@ function uniffiEnsureInitialized() {
|
|
|
8700
7851
|
}
|
|
8701
7852
|
if (
|
|
8702
7853
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_lightning_receive() !==
|
|
8703
|
-
|
|
7854
|
+
49444
|
|
8704
7855
|
) {
|
|
8705
7856
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8706
7857
|
"uniffi_bark_ffi_checksum_method_wallet_cancel_lightning_receive"
|
|
@@ -8708,7 +7859,7 @@ function uniffiEnsureInitialized() {
|
|
|
8708
7859
|
}
|
|
8709
7860
|
if (
|
|
8710
7861
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round() !==
|
|
8711
|
-
|
|
7862
|
+
13433
|
|
8712
7863
|
) {
|
|
8713
7864
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8714
7865
|
"uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round"
|
|
@@ -8716,7 +7867,7 @@ function uniffiEnsureInitialized() {
|
|
|
8716
7867
|
}
|
|
8717
7868
|
if (
|
|
8718
7869
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment() !==
|
|
8719
|
-
|
|
7870
|
+
50033
|
|
8720
7871
|
) {
|
|
8721
7872
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8722
7873
|
"uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment"
|
|
@@ -8724,7 +7875,7 @@ function uniffiEnsureInitialized() {
|
|
|
8724
7875
|
}
|
|
8725
7876
|
if (
|
|
8726
7877
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_claimable_lightning_receive_balance_sats() !==
|
|
8727
|
-
|
|
7878
|
+
7743
|
|
8728
7879
|
) {
|
|
8729
7880
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8730
7881
|
"uniffi_bark_ffi_checksum_method_wallet_claimable_lightning_receive_balance_sats"
|
|
@@ -8732,7 +7883,7 @@ function uniffiEnsureInitialized() {
|
|
|
8732
7883
|
}
|
|
8733
7884
|
if (
|
|
8734
7885
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_config() !==
|
|
8735
|
-
|
|
7886
|
+
23594
|
|
8736
7887
|
) {
|
|
8737
7888
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8738
7889
|
"uniffi_bark_ffi_checksum_method_wallet_config"
|
|
@@ -8740,7 +7891,7 @@ function uniffiEnsureInitialized() {
|
|
|
8740
7891
|
}
|
|
8741
7892
|
if (
|
|
8742
7893
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_drain_exits() !==
|
|
8743
|
-
|
|
7894
|
+
47845
|
|
8744
7895
|
) {
|
|
8745
7896
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8746
7897
|
"uniffi_bark_ffi_checksum_method_wallet_drain_exits"
|
|
@@ -8748,7 +7899,7 @@ function uniffiEnsureInitialized() {
|
|
|
8748
7899
|
}
|
|
8749
7900
|
if (
|
|
8750
7901
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_arkoor_payment_fee() !==
|
|
8751
|
-
|
|
7902
|
+
35980
|
|
8752
7903
|
) {
|
|
8753
7904
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8754
7905
|
"uniffi_bark_ffi_checksum_method_wallet_estimate_arkoor_payment_fee"
|
|
@@ -8756,7 +7907,7 @@ function uniffiEnsureInitialized() {
|
|
|
8756
7907
|
}
|
|
8757
7908
|
if (
|
|
8758
7909
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee() !==
|
|
8759
|
-
|
|
7910
|
+
55967
|
|
8760
7911
|
) {
|
|
8761
7912
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8762
7913
|
"uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee"
|
|
@@ -8764,7 +7915,7 @@ function uniffiEnsureInitialized() {
|
|
|
8764
7915
|
}
|
|
8765
7916
|
if (
|
|
8766
7917
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee() !==
|
|
8767
|
-
|
|
7918
|
+
33637
|
|
8768
7919
|
) {
|
|
8769
7920
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8770
7921
|
"uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee"
|
|
@@ -8772,7 +7923,7 @@ function uniffiEnsureInitialized() {
|
|
|
8772
7923
|
}
|
|
8773
7924
|
if (
|
|
8774
7925
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee() !==
|
|
8775
|
-
|
|
7926
|
+
11290
|
|
8776
7927
|
) {
|
|
8777
7928
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8778
7929
|
"uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee"
|
|
@@ -8780,7 +7931,7 @@ function uniffiEnsureInitialized() {
|
|
|
8780
7931
|
}
|
|
8781
7932
|
if (
|
|
8782
7933
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_all_fee() !==
|
|
8783
|
-
|
|
7934
|
+
24629
|
|
8784
7935
|
) {
|
|
8785
7936
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8786
7937
|
"uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_all_fee"
|
|
@@ -8788,7 +7939,7 @@ function uniffiEnsureInitialized() {
|
|
|
8788
7939
|
}
|
|
8789
7940
|
if (
|
|
8790
7941
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee() !==
|
|
8791
|
-
|
|
7942
|
+
37073
|
|
8792
7943
|
) {
|
|
8793
7944
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8794
7945
|
"uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee"
|
|
@@ -8796,7 +7947,7 @@ function uniffiEnsureInitialized() {
|
|
|
8796
7947
|
}
|
|
8797
7948
|
if (
|
|
8798
7949
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee() !==
|
|
8799
|
-
|
|
7950
|
+
18182
|
|
8800
7951
|
) {
|
|
8801
7952
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8802
7953
|
"uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee"
|
|
@@ -8804,7 +7955,7 @@ function uniffiEnsureInitialized() {
|
|
|
8804
7955
|
}
|
|
8805
7956
|
if (
|
|
8806
7957
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_send_onchain_fee() !==
|
|
8807
|
-
|
|
7958
|
+
1027
|
|
8808
7959
|
) {
|
|
8809
7960
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8810
7961
|
"uniffi_bark_ffi_checksum_method_wallet_estimate_send_onchain_fee"
|
|
@@ -8812,7 +7963,7 @@ function uniffiEnsureInitialized() {
|
|
|
8812
7963
|
}
|
|
8813
7964
|
if (
|
|
8814
7965
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_fingerprint() !==
|
|
8815
|
-
|
|
7966
|
+
51021
|
|
8816
7967
|
) {
|
|
8817
7968
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8818
7969
|
"uniffi_bark_ffi_checksum_method_wallet_fingerprint"
|
|
@@ -8820,7 +7971,7 @@ function uniffiEnsureInitialized() {
|
|
|
8820
7971
|
}
|
|
8821
7972
|
if (
|
|
8822
7973
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_status() !==
|
|
8823
|
-
|
|
7974
|
+
33054
|
|
8824
7975
|
) {
|
|
8825
7976
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8826
7977
|
"uniffi_bark_ffi_checksum_method_wallet_get_exit_status"
|
|
@@ -8828,7 +7979,7 @@ function uniffiEnsureInitialized() {
|
|
|
8828
7979
|
}
|
|
8829
7980
|
if (
|
|
8830
7981
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_vtxos() !==
|
|
8831
|
-
|
|
7982
|
+
20147
|
|
8832
7983
|
) {
|
|
8833
7984
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8834
7985
|
"uniffi_bark_ffi_checksum_method_wallet_get_exit_vtxos"
|
|
@@ -8836,7 +7987,7 @@ function uniffiEnsureInitialized() {
|
|
|
8836
7987
|
}
|
|
8837
7988
|
if (
|
|
8838
7989
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_expiring_vtxos() !==
|
|
8839
|
-
|
|
7990
|
+
39689
|
|
8840
7991
|
) {
|
|
8841
7992
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8842
7993
|
"uniffi_bark_ffi_checksum_method_wallet_get_expiring_vtxos"
|
|
@@ -8844,7 +7995,7 @@ function uniffiEnsureInitialized() {
|
|
|
8844
7995
|
}
|
|
8845
7996
|
if (
|
|
8846
7997
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_first_expiring_vtxo_blockheight() !==
|
|
8847
|
-
|
|
7998
|
+
33536
|
|
8848
7999
|
) {
|
|
8849
8000
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8850
8001
|
"uniffi_bark_ffi_checksum_method_wallet_get_first_expiring_vtxo_blockheight"
|
|
@@ -8852,7 +8003,7 @@ function uniffiEnsureInitialized() {
|
|
|
8852
8003
|
}
|
|
8853
8004
|
if (
|
|
8854
8005
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_next_required_refresh_blockheight() !==
|
|
8855
|
-
|
|
8006
|
+
58530
|
|
8856
8007
|
) {
|
|
8857
8008
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8858
8009
|
"uniffi_bark_ffi_checksum_method_wallet_get_next_required_refresh_blockheight"
|
|
@@ -8860,7 +8011,7 @@ function uniffiEnsureInitialized() {
|
|
|
8860
8011
|
}
|
|
8861
8012
|
if (
|
|
8862
8013
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxo_by_id() !==
|
|
8863
|
-
|
|
8014
|
+
34050
|
|
8864
8015
|
) {
|
|
8865
8016
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8866
8017
|
"uniffi_bark_ffi_checksum_method_wallet_get_vtxo_by_id"
|
|
@@ -8868,7 +8019,7 @@ function uniffiEnsureInitialized() {
|
|
|
8868
8019
|
}
|
|
8869
8020
|
if (
|
|
8870
8021
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxos_to_refresh() !==
|
|
8871
|
-
|
|
8022
|
+
52553
|
|
8872
8023
|
) {
|
|
8873
8024
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8874
8025
|
"uniffi_bark_ffi_checksum_method_wallet_get_vtxos_to_refresh"
|
|
@@ -8876,7 +8027,7 @@ function uniffiEnsureInitialized() {
|
|
|
8876
8027
|
}
|
|
8877
8028
|
if (
|
|
8878
8029
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_has_pending_exits() !==
|
|
8879
|
-
|
|
8030
|
+
19790
|
|
8880
8031
|
) {
|
|
8881
8032
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8882
8033
|
"uniffi_bark_ffi_checksum_method_wallet_has_pending_exits"
|
|
@@ -8884,7 +8035,7 @@ function uniffiEnsureInitialized() {
|
|
|
8884
8035
|
}
|
|
8885
8036
|
if (
|
|
8886
8037
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_history() !==
|
|
8887
|
-
|
|
8038
|
+
10552
|
|
8888
8039
|
) {
|
|
8889
8040
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8890
8041
|
"uniffi_bark_ffi_checksum_method_wallet_history"
|
|
@@ -8892,7 +8043,7 @@ function uniffiEnsureInitialized() {
|
|
|
8892
8043
|
}
|
|
8893
8044
|
if (
|
|
8894
8045
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method() !==
|
|
8895
|
-
|
|
8046
|
+
11845
|
|
8896
8047
|
) {
|
|
8897
8048
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8898
8049
|
"uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method"
|
|
@@ -8900,7 +8051,7 @@ function uniffiEnsureInitialized() {
|
|
|
8900
8051
|
}
|
|
8901
8052
|
if (
|
|
8902
8053
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_import_vtxo() !==
|
|
8903
|
-
|
|
8054
|
+
42571
|
|
8904
8055
|
) {
|
|
8905
8056
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8906
8057
|
"uniffi_bark_ffi_checksum_method_wallet_import_vtxo"
|
|
@@ -8908,7 +8059,7 @@ function uniffiEnsureInitialized() {
|
|
|
8908
8059
|
}
|
|
8909
8060
|
if (
|
|
8910
8061
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid() !==
|
|
8911
|
-
|
|
8062
|
+
31079
|
|
8912
8063
|
) {
|
|
8913
8064
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8914
8065
|
"uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid"
|
|
@@ -8916,7 +8067,7 @@ function uniffiEnsureInitialized() {
|
|
|
8916
8067
|
}
|
|
8917
8068
|
if (
|
|
8918
8069
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status() !==
|
|
8919
|
-
|
|
8070
|
+
27695
|
|
8920
8071
|
) {
|
|
8921
8072
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8922
8073
|
"uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status"
|
|
@@ -8924,7 +8075,7 @@ function uniffiEnsureInitialized() {
|
|
|
8924
8075
|
}
|
|
8925
8076
|
if (
|
|
8926
8077
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_send_state() !==
|
|
8927
|
-
|
|
8078
|
+
5687
|
|
8928
8079
|
) {
|
|
8929
8080
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8930
8081
|
"uniffi_bark_ffi_checksum_method_wallet_lightning_send_state"
|
|
@@ -8932,7 +8083,7 @@ function uniffiEnsureInitialized() {
|
|
|
8932
8083
|
}
|
|
8933
8084
|
if (
|
|
8934
8085
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits() !==
|
|
8935
|
-
|
|
8086
|
+
58660
|
|
8936
8087
|
) {
|
|
8937
8088
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8938
8089
|
"uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits"
|
|
@@ -8940,7 +8091,7 @@ function uniffiEnsureInitialized() {
|
|
|
8940
8091
|
}
|
|
8941
8092
|
if (
|
|
8942
8093
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization() !==
|
|
8943
|
-
|
|
8094
|
+
52372
|
|
8944
8095
|
) {
|
|
8945
8096
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8946
8097
|
"uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization"
|
|
@@ -8948,7 +8099,7 @@ function uniffiEnsureInitialized() {
|
|
|
8948
8099
|
}
|
|
8949
8100
|
if (
|
|
8950
8101
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier() !==
|
|
8951
|
-
|
|
8102
|
+
15231
|
|
8952
8103
|
) {
|
|
8953
8104
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8954
8105
|
"uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier"
|
|
@@ -8956,7 +8107,7 @@ function uniffiEnsureInitialized() {
|
|
|
8956
8107
|
}
|
|
8957
8108
|
if (
|
|
8958
8109
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance() !==
|
|
8959
|
-
|
|
8110
|
+
33161
|
|
8960
8111
|
) {
|
|
8961
8112
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8962
8113
|
"uniffi_bark_ffi_checksum_method_wallet_maintenance"
|
|
@@ -8964,7 +8115,7 @@ function uniffiEnsureInitialized() {
|
|
|
8964
8115
|
}
|
|
8965
8116
|
if (
|
|
8966
8117
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_delegated() !==
|
|
8967
|
-
|
|
8118
|
+
31668
|
|
8968
8119
|
) {
|
|
8969
8120
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8970
8121
|
"uniffi_bark_ffi_checksum_method_wallet_maintenance_delegated"
|
|
@@ -8972,7 +8123,7 @@ function uniffiEnsureInitialized() {
|
|
|
8972
8123
|
}
|
|
8973
8124
|
if (
|
|
8974
8125
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh() !==
|
|
8975
|
-
|
|
8126
|
+
34548
|
|
8976
8127
|
) {
|
|
8977
8128
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8978
8129
|
"uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh"
|
|
@@ -8980,7 +8131,7 @@ function uniffiEnsureInitialized() {
|
|
|
8980
8131
|
}
|
|
8981
8132
|
if (
|
|
8982
8133
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain() !==
|
|
8983
|
-
|
|
8134
|
+
16119
|
|
8984
8135
|
) {
|
|
8985
8136
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8986
8137
|
"uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain"
|
|
@@ -8988,23 +8139,15 @@ function uniffiEnsureInitialized() {
|
|
|
8988
8139
|
}
|
|
8989
8140
|
if (
|
|
8990
8141
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated() !==
|
|
8991
|
-
|
|
8142
|
+
40766
|
|
8992
8143
|
) {
|
|
8993
8144
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8994
8145
|
"uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated"
|
|
8995
8146
|
);
|
|
8996
8147
|
}
|
|
8997
|
-
if (
|
|
8998
|
-
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maybe_schedule_maintenance_refresh() !==
|
|
8999
|
-
24944
|
|
9000
|
-
) {
|
|
9001
|
-
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9002
|
-
"uniffi_bark_ffi_checksum_method_wallet_maybe_schedule_maintenance_refresh"
|
|
9003
|
-
);
|
|
9004
|
-
}
|
|
9005
8148
|
if (
|
|
9006
8149
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_network() !==
|
|
9007
|
-
|
|
8150
|
+
2007
|
|
9008
8151
|
) {
|
|
9009
8152
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9010
8153
|
"uniffi_bark_ffi_checksum_method_wallet_network"
|
|
@@ -9012,7 +8155,7 @@ function uniffiEnsureInitialized() {
|
|
|
9012
8155
|
}
|
|
9013
8156
|
if (
|
|
9014
8157
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address() !==
|
|
9015
|
-
|
|
8158
|
+
65478
|
|
9016
8159
|
) {
|
|
9017
8160
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9018
8161
|
"uniffi_bark_ffi_checksum_method_wallet_new_address"
|
|
@@ -9020,7 +8163,7 @@ function uniffiEnsureInitialized() {
|
|
|
9020
8163
|
}
|
|
9021
8164
|
if (
|
|
9022
8165
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address_with_index() !==
|
|
9023
|
-
|
|
8166
|
+
37344
|
|
9024
8167
|
) {
|
|
9025
8168
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9026
8169
|
"uniffi_bark_ffi_checksum_method_wallet_new_address_with_index"
|
|
@@ -9028,7 +8171,7 @@ function uniffiEnsureInitialized() {
|
|
|
9028
8171
|
}
|
|
9029
8172
|
if (
|
|
9030
8173
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_next_round_start_time() !==
|
|
9031
|
-
|
|
8174
|
+
20748
|
|
9032
8175
|
) {
|
|
9033
8176
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9034
8177
|
"uniffi_bark_ffi_checksum_method_wallet_next_round_start_time"
|
|
@@ -9036,7 +8179,7 @@ function uniffiEnsureInitialized() {
|
|
|
9036
8179
|
}
|
|
9037
8180
|
if (
|
|
9038
8181
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_notifications() !==
|
|
9039
|
-
|
|
8182
|
+
8597
|
|
9040
8183
|
) {
|
|
9041
8184
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9042
8185
|
"uniffi_bark_ffi_checksum_method_wallet_notifications"
|
|
@@ -9044,7 +8187,7 @@ function uniffiEnsureInitialized() {
|
|
|
9044
8187
|
}
|
|
9045
8188
|
if (
|
|
9046
8189
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_all() !==
|
|
9047
|
-
|
|
8190
|
+
7986
|
|
9048
8191
|
) {
|
|
9049
8192
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9050
8193
|
"uniffi_bark_ffi_checksum_method_wallet_offboard_all"
|
|
@@ -9052,7 +8195,7 @@ function uniffiEnsureInitialized() {
|
|
|
9052
8195
|
}
|
|
9053
8196
|
if (
|
|
9054
8197
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos() !==
|
|
9055
|
-
|
|
8198
|
+
26775
|
|
9056
8199
|
) {
|
|
9057
8200
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9058
8201
|
"uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos"
|
|
@@ -9060,7 +8203,7 @@ function uniffiEnsureInitialized() {
|
|
|
9060
8203
|
}
|
|
9061
8204
|
if (
|
|
9062
8205
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address() !==
|
|
9063
|
-
|
|
8206
|
+
19392
|
|
9064
8207
|
) {
|
|
9065
8208
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9066
8209
|
"uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address"
|
|
@@ -9068,7 +8211,7 @@ function uniffiEnsureInitialized() {
|
|
|
9068
8211
|
}
|
|
9069
8212
|
if (
|
|
9070
8213
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice() !==
|
|
9071
|
-
|
|
8214
|
+
26921
|
|
9072
8215
|
) {
|
|
9073
8216
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9074
8217
|
"uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice"
|
|
@@ -9076,15 +8219,23 @@ function uniffiEnsureInitialized() {
|
|
|
9076
8219
|
}
|
|
9077
8220
|
if (
|
|
9078
8221
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer() !==
|
|
9079
|
-
|
|
8222
|
+
25462
|
|
9080
8223
|
) {
|
|
9081
8224
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9082
8225
|
"uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer"
|
|
9083
8226
|
);
|
|
9084
8227
|
}
|
|
8228
|
+
if (
|
|
8229
|
+
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lnurl() !==
|
|
8230
|
+
25859
|
|
8231
|
+
) {
|
|
8232
|
+
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8233
|
+
"uniffi_bark_ffi_checksum_method_wallet_pay_lnurl"
|
|
8234
|
+
);
|
|
8235
|
+
}
|
|
9085
8236
|
if (
|
|
9086
8237
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_peek_address() !==
|
|
9087
|
-
|
|
8238
|
+
31847
|
|
9088
8239
|
) {
|
|
9089
8240
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9090
8241
|
"uniffi_bark_ffi_checksum_method_wallet_peek_address"
|
|
@@ -9092,7 +8243,7 @@ function uniffiEnsureInitialized() {
|
|
|
9092
8243
|
}
|
|
9093
8244
|
if (
|
|
9094
8245
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos() !==
|
|
9095
|
-
|
|
8246
|
+
53566
|
|
9096
8247
|
) {
|
|
9097
8248
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9098
8249
|
"uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos"
|
|
@@ -9100,7 +8251,7 @@ function uniffiEnsureInitialized() {
|
|
|
9100
8251
|
}
|
|
9101
8252
|
if (
|
|
9102
8253
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_boards() !==
|
|
9103
|
-
|
|
8254
|
+
61501
|
|
9104
8255
|
) {
|
|
9105
8256
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9106
8257
|
"uniffi_bark_ffi_checksum_method_wallet_pending_boards"
|
|
@@ -9108,7 +8259,7 @@ function uniffiEnsureInitialized() {
|
|
|
9108
8259
|
}
|
|
9109
8260
|
if (
|
|
9110
8261
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_exits_total_sats() !==
|
|
9111
|
-
|
|
8262
|
+
38418
|
|
9112
8263
|
) {
|
|
9113
8264
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9114
8265
|
"uniffi_bark_ffi_checksum_method_wallet_pending_exits_total_sats"
|
|
@@ -9116,7 +8267,7 @@ function uniffiEnsureInitialized() {
|
|
|
9116
8267
|
}
|
|
9117
8268
|
if (
|
|
9118
8269
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_receives() !==
|
|
9119
|
-
|
|
8270
|
+
26676
|
|
9120
8271
|
) {
|
|
9121
8272
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9122
8273
|
"uniffi_bark_ffi_checksum_method_wallet_pending_lightning_receives"
|
|
@@ -9124,7 +8275,7 @@ function uniffiEnsureInitialized() {
|
|
|
9124
8275
|
}
|
|
9125
8276
|
if (
|
|
9126
8277
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_send_vtxos() !==
|
|
9127
|
-
|
|
8278
|
+
62766
|
|
9128
8279
|
) {
|
|
9129
8280
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9130
8281
|
"uniffi_bark_ffi_checksum_method_wallet_pending_lightning_send_vtxos"
|
|
@@ -9132,7 +8283,7 @@ function uniffiEnsureInitialized() {
|
|
|
9132
8283
|
}
|
|
9133
8284
|
if (
|
|
9134
8285
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_sends() !==
|
|
9135
|
-
|
|
8286
|
+
8847
|
|
9136
8287
|
) {
|
|
9137
8288
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9138
8289
|
"uniffi_bark_ffi_checksum_method_wallet_pending_lightning_sends"
|
|
@@ -9140,7 +8291,7 @@ function uniffiEnsureInitialized() {
|
|
|
9140
8291
|
}
|
|
9141
8292
|
if (
|
|
9142
8293
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos() !==
|
|
9143
|
-
|
|
8294
|
+
54307
|
|
9144
8295
|
) {
|
|
9145
8296
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9146
8297
|
"uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos"
|
|
@@ -9148,7 +8299,7 @@ function uniffiEnsureInitialized() {
|
|
|
9148
8299
|
}
|
|
9149
8300
|
if (
|
|
9150
8301
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_states() !==
|
|
9151
|
-
|
|
8302
|
+
11480
|
|
9152
8303
|
) {
|
|
9153
8304
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9154
8305
|
"uniffi_bark_ffi_checksum_method_wallet_pending_round_states"
|
|
@@ -9156,7 +8307,7 @@ function uniffiEnsureInitialized() {
|
|
|
9156
8307
|
}
|
|
9157
8308
|
if (
|
|
9158
8309
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_exits() !==
|
|
9159
|
-
|
|
8310
|
+
7089
|
|
9160
8311
|
) {
|
|
9161
8312
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9162
8313
|
"uniffi_bark_ffi_checksum_method_wallet_progress_exits"
|
|
@@ -9164,7 +8315,7 @@ function uniffiEnsureInitialized() {
|
|
|
9164
8315
|
}
|
|
9165
8316
|
if (
|
|
9166
8317
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_pending_rounds() !==
|
|
9167
|
-
|
|
8318
|
+
43537
|
|
9168
8319
|
) {
|
|
9169
8320
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9170
8321
|
"uniffi_bark_ffi_checksum_method_wallet_progress_pending_rounds"
|
|
@@ -9172,7 +8323,7 @@ function uniffiEnsureInitialized() {
|
|
|
9172
8323
|
}
|
|
9173
8324
|
if (
|
|
9174
8325
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_properties() !==
|
|
9175
|
-
|
|
8326
|
+
9773
|
|
9176
8327
|
) {
|
|
9177
8328
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9178
8329
|
"uniffi_bark_ffi_checksum_method_wallet_properties"
|
|
@@ -9180,7 +8331,7 @@ function uniffiEnsureInitialized() {
|
|
|
9180
8331
|
}
|
|
9181
8332
|
if (
|
|
9182
8333
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_server() !==
|
|
9183
|
-
|
|
8334
|
+
41162
|
|
9184
8335
|
) {
|
|
9185
8336
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9186
8337
|
"uniffi_bark_ffi_checksum_method_wallet_refresh_server"
|
|
@@ -9188,7 +8339,7 @@ function uniffiEnsureInitialized() {
|
|
|
9188
8339
|
}
|
|
9189
8340
|
if (
|
|
9190
8341
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos() !==
|
|
9191
|
-
|
|
8342
|
+
52101
|
|
9192
8343
|
) {
|
|
9193
8344
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9194
8345
|
"uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos"
|
|
@@ -9196,7 +8347,7 @@ function uniffiEnsureInitialized() {
|
|
|
9196
8347
|
}
|
|
9197
8348
|
if (
|
|
9198
8349
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated() !==
|
|
9199
|
-
|
|
8350
|
+
61476
|
|
9200
8351
|
) {
|
|
9201
8352
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9202
8353
|
"uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated"
|
|
@@ -9204,7 +8355,7 @@ function uniffiEnsureInitialized() {
|
|
|
9204
8355
|
}
|
|
9205
8356
|
if (
|
|
9206
8357
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_run_daemon() !==
|
|
9207
|
-
|
|
8358
|
+
3475
|
|
9208
8359
|
) {
|
|
9209
8360
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9210
8361
|
"uniffi_bark_ffi_checksum_method_wallet_run_daemon"
|
|
@@ -9212,7 +8363,7 @@ function uniffiEnsureInitialized() {
|
|
|
9212
8363
|
}
|
|
9213
8364
|
if (
|
|
9214
8365
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment() !==
|
|
9215
|
-
|
|
8366
|
+
46166
|
|
9216
8367
|
) {
|
|
9217
8368
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9218
8369
|
"uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment"
|
|
@@ -9220,7 +8371,7 @@ function uniffiEnsureInitialized() {
|
|
|
9220
8371
|
}
|
|
9221
8372
|
if (
|
|
9222
8373
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_onchain() !==
|
|
9223
|
-
|
|
8374
|
+
42570
|
|
9224
8375
|
) {
|
|
9225
8376
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9226
8377
|
"uniffi_bark_ffi_checksum_method_wallet_send_onchain"
|
|
@@ -9228,7 +8379,7 @@ function uniffiEnsureInitialized() {
|
|
|
9228
8379
|
}
|
|
9229
8380
|
if (
|
|
9230
8381
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sign_exit_claim_inputs() !==
|
|
9231
|
-
|
|
8382
|
+
12930
|
|
9232
8383
|
) {
|
|
9233
8384
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9234
8385
|
"uniffi_bark_ffi_checksum_method_wallet_sign_exit_claim_inputs"
|
|
@@ -9236,7 +8387,7 @@ function uniffiEnsureInitialized() {
|
|
|
9236
8387
|
}
|
|
9237
8388
|
if (
|
|
9238
8389
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_spendable_vtxos() !==
|
|
9239
|
-
|
|
8390
|
+
22755
|
|
9240
8391
|
) {
|
|
9241
8392
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9242
8393
|
"uniffi_bark_ffi_checksum_method_wallet_spendable_vtxos"
|
|
@@ -9244,7 +8395,7 @@ function uniffiEnsureInitialized() {
|
|
|
9244
8395
|
}
|
|
9245
8396
|
if (
|
|
9246
8397
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_entire_wallet() !==
|
|
9247
|
-
|
|
8398
|
+
6525
|
|
9248
8399
|
) {
|
|
9249
8400
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9250
8401
|
"uniffi_bark_ffi_checksum_method_wallet_start_exit_for_entire_wallet"
|
|
@@ -9252,7 +8403,7 @@ function uniffiEnsureInitialized() {
|
|
|
9252
8403
|
}
|
|
9253
8404
|
if (
|
|
9254
8405
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos() !==
|
|
9255
|
-
|
|
8406
|
+
56154
|
|
9256
8407
|
) {
|
|
9257
8408
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9258
8409
|
"uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos"
|
|
@@ -9260,7 +8411,7 @@ function uniffiEnsureInitialized() {
|
|
|
9260
8411
|
}
|
|
9261
8412
|
if (
|
|
9262
8413
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_stop_daemon() !==
|
|
9263
|
-
|
|
8414
|
+
7109
|
|
9264
8415
|
) {
|
|
9265
8416
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9266
8417
|
"uniffi_bark_ffi_checksum_method_wallet_stop_daemon"
|
|
@@ -9268,14 +8419,14 @@ function uniffiEnsureInitialized() {
|
|
|
9268
8419
|
}
|
|
9269
8420
|
if (
|
|
9270
8421
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends() !==
|
|
9271
|
-
|
|
8422
|
+
31451
|
|
9272
8423
|
) {
|
|
9273
8424
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9274
8425
|
"uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends"
|
|
9275
8426
|
);
|
|
9276
8427
|
}
|
|
9277
8428
|
if (
|
|
9278
|
-
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync() !==
|
|
8429
|
+
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync() !== 2151
|
|
9279
8430
|
) {
|
|
9280
8431
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9281
8432
|
"uniffi_bark_ffi_checksum_method_wallet_sync"
|
|
@@ -9283,15 +8434,23 @@ function uniffiEnsureInitialized() {
|
|
|
9283
8434
|
}
|
|
9284
8435
|
if (
|
|
9285
8436
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_exits() !==
|
|
9286
|
-
|
|
8437
|
+
22078
|
|
9287
8438
|
) {
|
|
9288
8439
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9289
8440
|
"uniffi_bark_ffi_checksum_method_wallet_sync_exits"
|
|
9290
8441
|
);
|
|
9291
8442
|
}
|
|
8443
|
+
if (
|
|
8444
|
+
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_force_exited_vtxos() !==
|
|
8445
|
+
25363
|
|
8446
|
+
) {
|
|
8447
|
+
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8448
|
+
"uniffi_bark_ffi_checksum_method_wallet_sync_force_exited_vtxos"
|
|
8449
|
+
);
|
|
8450
|
+
}
|
|
9292
8451
|
if (
|
|
9293
8452
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards() !==
|
|
9294
|
-
|
|
8453
|
+
63453
|
|
9295
8454
|
) {
|
|
9296
8455
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9297
8456
|
"uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards"
|
|
@@ -9299,7 +8458,7 @@ function uniffiEnsureInitialized() {
|
|
|
9299
8458
|
}
|
|
9300
8459
|
if (
|
|
9301
8460
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives() !==
|
|
9302
|
-
|
|
8461
|
+
14560
|
|
9303
8462
|
) {
|
|
9304
8463
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9305
8464
|
"uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives"
|
|
@@ -9307,7 +8466,7 @@ function uniffiEnsureInitialized() {
|
|
|
9307
8466
|
}
|
|
9308
8467
|
if (
|
|
9309
8468
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive() !==
|
|
9310
|
-
|
|
8469
|
+
45229
|
|
9311
8470
|
) {
|
|
9312
8471
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9313
8472
|
"uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive"
|
|
@@ -9315,14 +8474,14 @@ function uniffiEnsureInitialized() {
|
|
|
9315
8474
|
}
|
|
9316
8475
|
if (
|
|
9317
8476
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address() !==
|
|
9318
|
-
|
|
8477
|
+
10861
|
|
9319
8478
|
) {
|
|
9320
8479
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9321
8480
|
"uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address"
|
|
9322
8481
|
);
|
|
9323
8482
|
}
|
|
9324
8483
|
if (
|
|
9325
|
-
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxos() !==
|
|
8484
|
+
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxos() !== 33207
|
|
9326
8485
|
) {
|
|
9327
8486
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9328
8487
|
"uniffi_bark_ffi_checksum_method_wallet_vtxos"
|
|
@@ -9330,7 +8489,7 @@ function uniffiEnsureInitialized() {
|
|
|
9330
8489
|
}
|
|
9331
8490
|
if (
|
|
9332
8491
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_onchainwallet_custom() !==
|
|
9333
|
-
|
|
8492
|
+
33645
|
|
9334
8493
|
) {
|
|
9335
8494
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9336
8495
|
"uniffi_bark_ffi_checksum_constructor_onchainwallet_custom"
|
|
@@ -9338,52 +8497,20 @@ function uniffiEnsureInitialized() {
|
|
|
9338
8497
|
}
|
|
9339
8498
|
if (
|
|
9340
8499
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_onchainwallet_default() !==
|
|
9341
|
-
|
|
8500
|
+
61714
|
|
9342
8501
|
) {
|
|
9343
8502
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9344
8503
|
"uniffi_bark_ffi_checksum_constructor_onchainwallet_default"
|
|
9345
8504
|
);
|
|
9346
8505
|
}
|
|
9347
|
-
if (
|
|
9348
|
-
nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_create() !==
|
|
9349
|
-
60393
|
|
9350
|
-
) {
|
|
9351
|
-
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9352
|
-
"uniffi_bark_ffi_checksum_constructor_wallet_create"
|
|
9353
|
-
);
|
|
9354
|
-
}
|
|
9355
|
-
if (
|
|
9356
|
-
nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_create_with_onchain() !==
|
|
9357
|
-
55243
|
|
9358
|
-
) {
|
|
9359
|
-
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9360
|
-
"uniffi_bark_ffi_checksum_constructor_wallet_create_with_onchain"
|
|
9361
|
-
);
|
|
9362
|
-
}
|
|
9363
8506
|
if (
|
|
9364
8507
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open() !==
|
|
9365
|
-
|
|
8508
|
+
37541
|
|
9366
8509
|
) {
|
|
9367
8510
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9368
8511
|
"uniffi_bark_ffi_checksum_constructor_wallet_open"
|
|
9369
8512
|
);
|
|
9370
8513
|
}
|
|
9371
|
-
if (
|
|
9372
|
-
nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open_with_daemon() !==
|
|
9373
|
-
9668
|
|
9374
|
-
) {
|
|
9375
|
-
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9376
|
-
"uniffi_bark_ffi_checksum_constructor_wallet_open_with_daemon"
|
|
9377
|
-
);
|
|
9378
|
-
}
|
|
9379
|
-
if (
|
|
9380
|
-
nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open_with_onchain() !==
|
|
9381
|
-
39500
|
|
9382
|
-
) {
|
|
9383
|
-
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9384
|
-
"uniffi_bark_ffi_checksum_constructor_wallet_open_with_onchain"
|
|
9385
|
-
);
|
|
9386
|
-
}
|
|
9387
8514
|
|
|
9388
8515
|
uniffiCallbackInterfaceBarkLogger.register();
|
|
9389
8516
|
uniffiCallbackInterfaceCustomOnchainWalletCallbacks.register();
|
|
@@ -9395,13 +8522,13 @@ export default Object.freeze({
|
|
|
9395
8522
|
FfiConverterTypeAddressWithIndex,
|
|
9396
8523
|
FfiConverterTypeArkInfo,
|
|
9397
8524
|
FfiConverterTypeBalance,
|
|
9398
|
-
FfiConverterTypeBarkError,
|
|
9399
8525
|
FfiConverterTypeBarkLogger,
|
|
9400
8526
|
FfiConverterTypeBlockRef,
|
|
9401
8527
|
FfiConverterTypeConfig,
|
|
9402
8528
|
FfiConverterTypeCpfpParams,
|
|
9403
8529
|
FfiConverterTypeCustomOnchainWalletCallbacks,
|
|
9404
8530
|
FfiConverterTypeDestination,
|
|
8531
|
+
FfiConverterTypeError,
|
|
9405
8532
|
FfiConverterTypeExitClaimTransaction,
|
|
9406
8533
|
FfiConverterTypeExitProgressStatus,
|
|
9407
8534
|
FfiConverterTypeExitTransactionStatus,
|
|
@@ -9424,6 +8551,7 @@ export default Object.freeze({
|
|
|
9424
8551
|
FfiConverterTypeVtxo,
|
|
9425
8552
|
FfiConverterTypeWallet,
|
|
9426
8553
|
FfiConverterTypeWalletNotification,
|
|
8554
|
+
FfiConverterTypeWalletOpenArgs,
|
|
9427
8555
|
FfiConverterTypeWalletProperties,
|
|
9428
8556
|
},
|
|
9429
8557
|
});
|