@secondts/bark-react-native 0.9.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/cpp/generated/bark.cpp +296 -194
- package/cpp/generated/bark.hpp +8 -10
- package/lib/commonjs/generated/bark-ffi.js.map +1 -1
- package/lib/commonjs/generated/bark.js +459 -962
- 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 +458 -962
- 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 +362 -1325
- 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 +362 -1325
- 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 +752 -1612
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
|
}
|
|
@@ -1136,6 +1169,9 @@ export type Movement = {
|
|
|
1136
1169
|
createdAt: string;
|
|
1137
1170
|
updatedAt: string;
|
|
1138
1171
|
completedAt?: string;
|
|
1172
|
+
paymentHash?: string;
|
|
1173
|
+
lightningInvoice?: string;
|
|
1174
|
+
lightningOffer?: string;
|
|
1139
1175
|
};
|
|
1140
1176
|
|
|
1141
1177
|
/**
|
|
@@ -1174,6 +1210,9 @@ const FfiConverterTypeMovement = (() => {
|
|
|
1174
1210
|
createdAt: FfiConverterString.read(from),
|
|
1175
1211
|
updatedAt: FfiConverterString.read(from),
|
|
1176
1212
|
completedAt: FfiConverterOptionalString.read(from),
|
|
1213
|
+
paymentHash: FfiConverterOptionalString.read(from),
|
|
1214
|
+
lightningInvoice: FfiConverterOptionalString.read(from),
|
|
1215
|
+
lightningOffer: FfiConverterOptionalString.read(from),
|
|
1177
1216
|
};
|
|
1178
1217
|
}
|
|
1179
1218
|
write(value: TypeName, into: RustBuffer): void {
|
|
@@ -1193,6 +1232,9 @@ const FfiConverterTypeMovement = (() => {
|
|
|
1193
1232
|
FfiConverterString.write(value.createdAt, into);
|
|
1194
1233
|
FfiConverterString.write(value.updatedAt, into);
|
|
1195
1234
|
FfiConverterOptionalString.write(value.completedAt, into);
|
|
1235
|
+
FfiConverterOptionalString.write(value.paymentHash, into);
|
|
1236
|
+
FfiConverterOptionalString.write(value.lightningInvoice, into);
|
|
1237
|
+
FfiConverterOptionalString.write(value.lightningOffer, into);
|
|
1196
1238
|
}
|
|
1197
1239
|
allocationSize(value: TypeName): number {
|
|
1198
1240
|
return (
|
|
@@ -1211,7 +1253,10 @@ const FfiConverterTypeMovement = (() => {
|
|
|
1211
1253
|
FfiConverterArrayString.allocationSize(value.exitedVtxoIds) +
|
|
1212
1254
|
FfiConverterString.allocationSize(value.createdAt) +
|
|
1213
1255
|
FfiConverterString.allocationSize(value.updatedAt) +
|
|
1214
|
-
FfiConverterOptionalString.allocationSize(value.completedAt)
|
|
1256
|
+
FfiConverterOptionalString.allocationSize(value.completedAt) +
|
|
1257
|
+
FfiConverterOptionalString.allocationSize(value.paymentHash) +
|
|
1258
|
+
FfiConverterOptionalString.allocationSize(value.lightningInvoice) +
|
|
1259
|
+
FfiConverterOptionalString.allocationSize(value.lightningOffer)
|
|
1215
1260
|
);
|
|
1216
1261
|
}
|
|
1217
1262
|
}
|
|
@@ -1523,6 +1568,98 @@ const FfiConverterTypeVtxo = (() => {
|
|
|
1523
1568
|
return new FFIConverter();
|
|
1524
1569
|
})();
|
|
1525
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
|
+
|
|
1526
1663
|
export type WalletProperties = {
|
|
1527
1664
|
network: Network;
|
|
1528
1665
|
fingerprint: string;
|
|
@@ -1584,843 +1721,101 @@ const stringConverter = {
|
|
|
1584
1721
|
)
|
|
1585
1722
|
),
|
|
1586
1723
|
stringByteLength: (s: string) =>
|
|
1587
|
-
uniffiCaller.rustCall((status) =>
|
|
1588
|
-
nativeModule().ubrn_uniffi_internal_fn_func_ffi__string_to_byte_length(
|
|
1589
|
-
s,
|
|
1590
|
-
status
|
|
1591
|
-
)
|
|
1592
|
-
),
|
|
1593
|
-
};
|
|
1594
|
-
const FfiConverterString = uniffiCreateFfiConverterString(stringConverter);
|
|
1595
|
-
|
|
1596
|
-
//
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
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
|
-
super("BarkError", "Database");
|
|
1669
|
-
this.inner = Object.freeze(inner);
|
|
1670
|
-
}
|
|
1671
|
-
|
|
1672
|
-
static new(inner: { errorMessage: string }): Database_ {
|
|
1673
|
-
return new Database_(inner);
|
|
1674
|
-
}
|
|
1675
|
-
|
|
1676
|
-
static instanceOf(obj: any): obj is Database_ {
|
|
1677
|
-
return obj.tag === BarkError_Tags.Database;
|
|
1678
|
-
}
|
|
1679
|
-
|
|
1680
|
-
static hasInner(obj: any): obj is Database_ {
|
|
1681
|
-
return Database_.instanceOf(obj);
|
|
1682
|
-
}
|
|
1683
|
-
|
|
1684
|
-
static getInner(obj: Database_): Readonly<{ errorMessage: string }> {
|
|
1685
|
-
return obj.inner;
|
|
1686
|
-
}
|
|
1687
|
-
}
|
|
1688
|
-
|
|
1689
|
-
type InvalidMnemonic__interface = {
|
|
1690
|
-
tag: BarkError_Tags.InvalidMnemonic;
|
|
1691
|
-
inner: Readonly<{ errorMessage: string }>;
|
|
1692
|
-
};
|
|
1693
|
-
|
|
1694
|
-
class InvalidMnemonic_
|
|
1695
|
-
extends UniffiError
|
|
1696
|
-
implements InvalidMnemonic__interface
|
|
1697
|
-
{
|
|
1698
|
-
/**
|
|
1699
|
-
* @private
|
|
1700
|
-
* This field is private and should not be used, use `tag` instead.
|
|
1701
|
-
*/
|
|
1702
|
-
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
1703
|
-
readonly tag = BarkError_Tags.InvalidMnemonic;
|
|
1704
|
-
readonly inner: Readonly<{ errorMessage: string }>;
|
|
1705
|
-
constructor(inner: { errorMessage: string }) {
|
|
1706
|
-
super("BarkError", "InvalidMnemonic");
|
|
1707
|
-
this.inner = Object.freeze(inner);
|
|
1708
|
-
}
|
|
1709
|
-
|
|
1710
|
-
static new(inner: { errorMessage: string }): InvalidMnemonic_ {
|
|
1711
|
-
return new InvalidMnemonic_(inner);
|
|
1712
|
-
}
|
|
1713
|
-
|
|
1714
|
-
static instanceOf(obj: any): obj is InvalidMnemonic_ {
|
|
1715
|
-
return obj.tag === BarkError_Tags.InvalidMnemonic;
|
|
1716
|
-
}
|
|
1717
|
-
|
|
1718
|
-
static hasInner(obj: any): obj is InvalidMnemonic_ {
|
|
1719
|
-
return InvalidMnemonic_.instanceOf(obj);
|
|
1720
|
-
}
|
|
1721
|
-
|
|
1722
|
-
static getInner(obj: InvalidMnemonic_): Readonly<{ errorMessage: string }> {
|
|
1723
|
-
return obj.inner;
|
|
1724
|
-
}
|
|
1725
|
-
}
|
|
1726
|
-
|
|
1727
|
-
type InvalidAddress__interface = {
|
|
1728
|
-
tag: BarkError_Tags.InvalidAddress;
|
|
1729
|
-
inner: Readonly<{ errorMessage: string }>;
|
|
1730
|
-
};
|
|
1731
|
-
|
|
1732
|
-
class InvalidAddress_
|
|
1733
|
-
extends UniffiError
|
|
1734
|
-
implements InvalidAddress__interface
|
|
1735
|
-
{
|
|
1736
|
-
/**
|
|
1737
|
-
* @private
|
|
1738
|
-
* This field is private and should not be used, use `tag` instead.
|
|
1739
|
-
*/
|
|
1740
|
-
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
1741
|
-
readonly tag = BarkError_Tags.InvalidAddress;
|
|
1742
|
-
readonly inner: Readonly<{ errorMessage: string }>;
|
|
1743
|
-
constructor(inner: { errorMessage: string }) {
|
|
1744
|
-
super("BarkError", "InvalidAddress");
|
|
1745
|
-
this.inner = Object.freeze(inner);
|
|
1746
|
-
}
|
|
1747
|
-
|
|
1748
|
-
static new(inner: { errorMessage: string }): InvalidAddress_ {
|
|
1749
|
-
return new InvalidAddress_(inner);
|
|
1750
|
-
}
|
|
1751
|
-
|
|
1752
|
-
static instanceOf(obj: any): obj is InvalidAddress_ {
|
|
1753
|
-
return obj.tag === BarkError_Tags.InvalidAddress;
|
|
1754
|
-
}
|
|
1755
|
-
|
|
1756
|
-
static hasInner(obj: any): obj is InvalidAddress_ {
|
|
1757
|
-
return InvalidAddress_.instanceOf(obj);
|
|
1758
|
-
}
|
|
1759
|
-
|
|
1760
|
-
static getInner(obj: InvalidAddress_): Readonly<{ errorMessage: string }> {
|
|
1761
|
-
return obj.inner;
|
|
1762
|
-
}
|
|
1763
|
-
}
|
|
1764
|
-
|
|
1765
|
-
type InvalidInvoice__interface = {
|
|
1766
|
-
tag: BarkError_Tags.InvalidInvoice;
|
|
1767
|
-
inner: Readonly<{ errorMessage: string }>;
|
|
1768
|
-
};
|
|
1769
|
-
|
|
1770
|
-
class InvalidInvoice_
|
|
1771
|
-
extends UniffiError
|
|
1772
|
-
implements InvalidInvoice__interface
|
|
1773
|
-
{
|
|
1774
|
-
/**
|
|
1775
|
-
* @private
|
|
1776
|
-
* This field is private and should not be used, use `tag` instead.
|
|
1777
|
-
*/
|
|
1778
|
-
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
1779
|
-
readonly tag = BarkError_Tags.InvalidInvoice;
|
|
1780
|
-
readonly inner: Readonly<{ errorMessage: string }>;
|
|
1781
|
-
constructor(inner: { errorMessage: string }) {
|
|
1782
|
-
super("BarkError", "InvalidInvoice");
|
|
1783
|
-
this.inner = Object.freeze(inner);
|
|
1784
|
-
}
|
|
1785
|
-
|
|
1786
|
-
static new(inner: { errorMessage: string }): InvalidInvoice_ {
|
|
1787
|
-
return new InvalidInvoice_(inner);
|
|
1788
|
-
}
|
|
1789
|
-
|
|
1790
|
-
static instanceOf(obj: any): obj is InvalidInvoice_ {
|
|
1791
|
-
return obj.tag === BarkError_Tags.InvalidInvoice;
|
|
1792
|
-
}
|
|
1793
|
-
|
|
1794
|
-
static hasInner(obj: any): obj is InvalidInvoice_ {
|
|
1795
|
-
return InvalidInvoice_.instanceOf(obj);
|
|
1796
|
-
}
|
|
1797
|
-
|
|
1798
|
-
static getInner(obj: InvalidInvoice_): Readonly<{ errorMessage: string }> {
|
|
1799
|
-
return obj.inner;
|
|
1800
|
-
}
|
|
1801
|
-
}
|
|
1802
|
-
|
|
1803
|
-
type InvalidPsbt__interface = {
|
|
1804
|
-
tag: BarkError_Tags.InvalidPsbt;
|
|
1805
|
-
inner: Readonly<{ errorMessage: string }>;
|
|
1806
|
-
};
|
|
1807
|
-
|
|
1808
|
-
class InvalidPsbt_ extends UniffiError implements InvalidPsbt__interface {
|
|
1809
|
-
/**
|
|
1810
|
-
* @private
|
|
1811
|
-
* This field is private and should not be used, use `tag` instead.
|
|
1812
|
-
*/
|
|
1813
|
-
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
1814
|
-
readonly tag = BarkError_Tags.InvalidPsbt;
|
|
1815
|
-
readonly inner: Readonly<{ errorMessage: string }>;
|
|
1816
|
-
constructor(inner: { errorMessage: string }) {
|
|
1817
|
-
super("BarkError", "InvalidPsbt");
|
|
1818
|
-
this.inner = Object.freeze(inner);
|
|
1819
|
-
}
|
|
1820
|
-
|
|
1821
|
-
static new(inner: { errorMessage: string }): InvalidPsbt_ {
|
|
1822
|
-
return new InvalidPsbt_(inner);
|
|
1823
|
-
}
|
|
1824
|
-
|
|
1825
|
-
static instanceOf(obj: any): obj is InvalidPsbt_ {
|
|
1826
|
-
return obj.tag === BarkError_Tags.InvalidPsbt;
|
|
1827
|
-
}
|
|
1828
|
-
|
|
1829
|
-
static hasInner(obj: any): obj is InvalidPsbt_ {
|
|
1830
|
-
return InvalidPsbt_.instanceOf(obj);
|
|
1831
|
-
}
|
|
1832
|
-
|
|
1833
|
-
static getInner(obj: InvalidPsbt_): Readonly<{ errorMessage: string }> {
|
|
1834
|
-
return obj.inner;
|
|
1835
|
-
}
|
|
1836
|
-
}
|
|
1837
|
-
|
|
1838
|
-
type InvalidTransaction__interface = {
|
|
1839
|
-
tag: BarkError_Tags.InvalidTransaction;
|
|
1840
|
-
inner: Readonly<{ errorMessage: string }>;
|
|
1841
|
-
};
|
|
1842
|
-
|
|
1843
|
-
class InvalidTransaction_
|
|
1844
|
-
extends UniffiError
|
|
1845
|
-
implements InvalidTransaction__interface
|
|
1846
|
-
{
|
|
1847
|
-
/**
|
|
1848
|
-
* @private
|
|
1849
|
-
* This field is private and should not be used, use `tag` instead.
|
|
1850
|
-
*/
|
|
1851
|
-
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
1852
|
-
readonly tag = BarkError_Tags.InvalidTransaction;
|
|
1853
|
-
readonly inner: Readonly<{ errorMessage: string }>;
|
|
1854
|
-
constructor(inner: { errorMessage: string }) {
|
|
1855
|
-
super("BarkError", "InvalidTransaction");
|
|
1856
|
-
this.inner = Object.freeze(inner);
|
|
1857
|
-
}
|
|
1858
|
-
|
|
1859
|
-
static new(inner: { errorMessage: string }): InvalidTransaction_ {
|
|
1860
|
-
return new InvalidTransaction_(inner);
|
|
1861
|
-
}
|
|
1862
|
-
|
|
1863
|
-
static instanceOf(obj: any): obj is InvalidTransaction_ {
|
|
1864
|
-
return obj.tag === BarkError_Tags.InvalidTransaction;
|
|
1865
|
-
}
|
|
1866
|
-
|
|
1867
|
-
static hasInner(obj: any): obj is InvalidTransaction_ {
|
|
1868
|
-
return InvalidTransaction_.instanceOf(obj);
|
|
1869
|
-
}
|
|
1870
|
-
|
|
1871
|
-
static getInner(
|
|
1872
|
-
obj: InvalidTransaction_
|
|
1873
|
-
): Readonly<{ errorMessage: string }> {
|
|
1874
|
-
return obj.inner;
|
|
1875
|
-
}
|
|
1876
|
-
}
|
|
1877
|
-
|
|
1878
|
-
type InsufficientFunds__interface = {
|
|
1879
|
-
tag: BarkError_Tags.InsufficientFunds;
|
|
1880
|
-
inner: Readonly<{ errorMessage: string }>;
|
|
1881
|
-
};
|
|
1882
|
-
|
|
1883
|
-
class InsufficientFunds_
|
|
1884
|
-
extends UniffiError
|
|
1885
|
-
implements InsufficientFunds__interface
|
|
1886
|
-
{
|
|
1887
|
-
/**
|
|
1888
|
-
* @private
|
|
1889
|
-
* This field is private and should not be used, use `tag` instead.
|
|
1890
|
-
*/
|
|
1891
|
-
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
1892
|
-
readonly tag = BarkError_Tags.InsufficientFunds;
|
|
1893
|
-
readonly inner: Readonly<{ errorMessage: string }>;
|
|
1894
|
-
constructor(inner: { errorMessage: string }) {
|
|
1895
|
-
super("BarkError", "InsufficientFunds");
|
|
1896
|
-
this.inner = Object.freeze(inner);
|
|
1897
|
-
}
|
|
1898
|
-
|
|
1899
|
-
static new(inner: { errorMessage: string }): InsufficientFunds_ {
|
|
1900
|
-
return new InsufficientFunds_(inner);
|
|
1901
|
-
}
|
|
1902
|
-
|
|
1903
|
-
static instanceOf(obj: any): obj is InsufficientFunds_ {
|
|
1904
|
-
return obj.tag === BarkError_Tags.InsufficientFunds;
|
|
1905
|
-
}
|
|
1906
|
-
|
|
1907
|
-
static hasInner(obj: any): obj is InsufficientFunds_ {
|
|
1908
|
-
return InsufficientFunds_.instanceOf(obj);
|
|
1909
|
-
}
|
|
1910
|
-
|
|
1911
|
-
static getInner(
|
|
1912
|
-
obj: InsufficientFunds_
|
|
1913
|
-
): Readonly<{ errorMessage: string }> {
|
|
1914
|
-
return obj.inner;
|
|
1915
|
-
}
|
|
1916
|
-
}
|
|
1917
|
-
|
|
1918
|
-
type NotFound__interface = {
|
|
1919
|
-
tag: BarkError_Tags.NotFound;
|
|
1920
|
-
inner: Readonly<{ errorMessage: string }>;
|
|
1921
|
-
};
|
|
1922
|
-
|
|
1923
|
-
class NotFound_ extends UniffiError implements NotFound__interface {
|
|
1924
|
-
/**
|
|
1925
|
-
* @private
|
|
1926
|
-
* This field is private and should not be used, use `tag` instead.
|
|
1927
|
-
*/
|
|
1928
|
-
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
1929
|
-
readonly tag = BarkError_Tags.NotFound;
|
|
1930
|
-
readonly inner: Readonly<{ errorMessage: string }>;
|
|
1931
|
-
constructor(inner: { errorMessage: string }) {
|
|
1932
|
-
super("BarkError", "NotFound");
|
|
1933
|
-
this.inner = Object.freeze(inner);
|
|
1934
|
-
}
|
|
1935
|
-
|
|
1936
|
-
static new(inner: { errorMessage: string }): NotFound_ {
|
|
1937
|
-
return new NotFound_(inner);
|
|
1938
|
-
}
|
|
1939
|
-
|
|
1940
|
-
static instanceOf(obj: any): obj is NotFound_ {
|
|
1941
|
-
return obj.tag === BarkError_Tags.NotFound;
|
|
1942
|
-
}
|
|
1943
|
-
|
|
1944
|
-
static hasInner(obj: any): obj is NotFound_ {
|
|
1945
|
-
return NotFound_.instanceOf(obj);
|
|
1946
|
-
}
|
|
1947
|
-
|
|
1948
|
-
static getInner(obj: NotFound_): Readonly<{ errorMessage: string }> {
|
|
1949
|
-
return obj.inner;
|
|
1950
|
-
}
|
|
1951
|
-
}
|
|
1952
|
-
|
|
1953
|
-
type ServerConnection__interface = {
|
|
1954
|
-
tag: BarkError_Tags.ServerConnection;
|
|
1955
|
-
inner: Readonly<{ errorMessage: string }>;
|
|
1956
|
-
};
|
|
1957
|
-
|
|
1958
|
-
class ServerConnection_
|
|
1959
|
-
extends UniffiError
|
|
1960
|
-
implements ServerConnection__interface
|
|
1961
|
-
{
|
|
1962
|
-
/**
|
|
1963
|
-
* @private
|
|
1964
|
-
* This field is private and should not be used, use `tag` instead.
|
|
1965
|
-
*/
|
|
1966
|
-
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
1967
|
-
readonly tag = BarkError_Tags.ServerConnection;
|
|
1968
|
-
readonly inner: Readonly<{ errorMessage: string }>;
|
|
1969
|
-
constructor(inner: { errorMessage: string }) {
|
|
1970
|
-
super("BarkError", "ServerConnection");
|
|
1971
|
-
this.inner = Object.freeze(inner);
|
|
1972
|
-
}
|
|
1973
|
-
|
|
1974
|
-
static new(inner: { errorMessage: string }): ServerConnection_ {
|
|
1975
|
-
return new ServerConnection_(inner);
|
|
1976
|
-
}
|
|
1977
|
-
|
|
1978
|
-
static instanceOf(obj: any): obj is ServerConnection_ {
|
|
1979
|
-
return obj.tag === BarkError_Tags.ServerConnection;
|
|
1980
|
-
}
|
|
1981
|
-
|
|
1982
|
-
static hasInner(obj: any): obj is ServerConnection_ {
|
|
1983
|
-
return ServerConnection_.instanceOf(obj);
|
|
1984
|
-
}
|
|
1985
|
-
|
|
1986
|
-
static getInner(
|
|
1987
|
-
obj: ServerConnection_
|
|
1988
|
-
): Readonly<{ errorMessage: string }> {
|
|
1989
|
-
return obj.inner;
|
|
1990
|
-
}
|
|
1991
|
-
}
|
|
1992
|
-
|
|
1993
|
-
type Internal__interface = {
|
|
1994
|
-
tag: BarkError_Tags.Internal;
|
|
1995
|
-
inner: Readonly<{ errorMessage: string }>;
|
|
1996
|
-
};
|
|
1997
|
-
|
|
1998
|
-
class Internal_ extends UniffiError implements Internal__interface {
|
|
1999
|
-
/**
|
|
2000
|
-
* @private
|
|
2001
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2002
|
-
*/
|
|
2003
|
-
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
2004
|
-
readonly tag = BarkError_Tags.Internal;
|
|
2005
|
-
readonly inner: Readonly<{ errorMessage: string }>;
|
|
2006
|
-
constructor(inner: { errorMessage: string }) {
|
|
2007
|
-
super("BarkError", "Internal");
|
|
2008
|
-
this.inner = Object.freeze(inner);
|
|
2009
|
-
}
|
|
2010
|
-
|
|
2011
|
-
static new(inner: { errorMessage: string }): Internal_ {
|
|
2012
|
-
return new Internal_(inner);
|
|
2013
|
-
}
|
|
2014
|
-
|
|
2015
|
-
static instanceOf(obj: any): obj is Internal_ {
|
|
2016
|
-
return obj.tag === BarkError_Tags.Internal;
|
|
2017
|
-
}
|
|
2018
|
-
|
|
2019
|
-
static hasInner(obj: any): obj is Internal_ {
|
|
2020
|
-
return Internal_.instanceOf(obj);
|
|
2021
|
-
}
|
|
2022
|
-
|
|
2023
|
-
static getInner(obj: Internal_): Readonly<{ errorMessage: string }> {
|
|
2024
|
-
return obj.inner;
|
|
2025
|
-
}
|
|
2026
|
-
}
|
|
2027
|
-
|
|
2028
|
-
type OnchainWalletRequired__interface = {
|
|
2029
|
-
tag: BarkError_Tags.OnchainWalletRequired;
|
|
2030
|
-
inner: Readonly<{ errorMessage: string }>;
|
|
2031
|
-
};
|
|
2032
|
-
|
|
2033
|
-
class OnchainWalletRequired_
|
|
2034
|
-
extends UniffiError
|
|
2035
|
-
implements OnchainWalletRequired__interface
|
|
2036
|
-
{
|
|
2037
|
-
/**
|
|
2038
|
-
* @private
|
|
2039
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2040
|
-
*/
|
|
2041
|
-
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
2042
|
-
readonly tag = BarkError_Tags.OnchainWalletRequired;
|
|
2043
|
-
readonly inner: Readonly<{ errorMessage: string }>;
|
|
2044
|
-
constructor(inner: { errorMessage: string }) {
|
|
2045
|
-
super("BarkError", "OnchainWalletRequired");
|
|
2046
|
-
this.inner = Object.freeze(inner);
|
|
2047
|
-
}
|
|
2048
|
-
|
|
2049
|
-
static new(inner: { errorMessage: string }): OnchainWalletRequired_ {
|
|
2050
|
-
return new OnchainWalletRequired_(inner);
|
|
2051
|
-
}
|
|
2052
|
-
|
|
2053
|
-
static instanceOf(obj: any): obj is OnchainWalletRequired_ {
|
|
2054
|
-
return obj.tag === BarkError_Tags.OnchainWalletRequired;
|
|
2055
|
-
}
|
|
2056
|
-
|
|
2057
|
-
static hasInner(obj: any): obj is OnchainWalletRequired_ {
|
|
2058
|
-
return OnchainWalletRequired_.instanceOf(obj);
|
|
2059
|
-
}
|
|
2060
|
-
|
|
2061
|
-
static getInner(
|
|
2062
|
-
obj: OnchainWalletRequired_
|
|
2063
|
-
): Readonly<{ errorMessage: string }> {
|
|
2064
|
-
return obj.inner;
|
|
2065
|
-
}
|
|
2066
|
-
}
|
|
2067
|
-
|
|
2068
|
-
type InvalidVtxoId__interface = {
|
|
2069
|
-
tag: BarkError_Tags.InvalidVtxoId;
|
|
2070
|
-
inner: Readonly<{ errorMessage: string }>;
|
|
2071
|
-
};
|
|
2072
|
-
|
|
2073
|
-
class InvalidVtxoId_ extends UniffiError implements InvalidVtxoId__interface {
|
|
2074
|
-
/**
|
|
2075
|
-
* @private
|
|
2076
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2077
|
-
*/
|
|
2078
|
-
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
2079
|
-
readonly tag = BarkError_Tags.InvalidVtxoId;
|
|
2080
|
-
readonly inner: Readonly<{ errorMessage: string }>;
|
|
2081
|
-
constructor(inner: { errorMessage: string }) {
|
|
2082
|
-
super("BarkError", "InvalidVtxoId");
|
|
2083
|
-
this.inner = Object.freeze(inner);
|
|
2084
|
-
}
|
|
2085
|
-
|
|
2086
|
-
static new(inner: { errorMessage: string }): InvalidVtxoId_ {
|
|
2087
|
-
return new InvalidVtxoId_(inner);
|
|
2088
|
-
}
|
|
2089
|
-
|
|
2090
|
-
static instanceOf(obj: any): obj is InvalidVtxoId_ {
|
|
2091
|
-
return obj.tag === BarkError_Tags.InvalidVtxoId;
|
|
2092
|
-
}
|
|
2093
|
-
|
|
2094
|
-
static hasInner(obj: any): obj is InvalidVtxoId_ {
|
|
2095
|
-
return InvalidVtxoId_.instanceOf(obj);
|
|
2096
|
-
}
|
|
2097
|
-
|
|
2098
|
-
static getInner(obj: InvalidVtxoId_): Readonly<{ errorMessage: string }> {
|
|
2099
|
-
return obj.inner;
|
|
2100
|
-
}
|
|
2101
|
-
}
|
|
2102
|
-
|
|
2103
|
-
type ServerPubkeyChanged__interface = {
|
|
2104
|
-
tag: BarkError_Tags.ServerPubkeyChanged;
|
|
2105
|
-
inner: Readonly<{ errorMessage: string }>;
|
|
2106
|
-
};
|
|
2107
|
-
|
|
2108
|
-
class ServerPubkeyChanged_
|
|
2109
|
-
extends UniffiError
|
|
2110
|
-
implements ServerPubkeyChanged__interface
|
|
2111
|
-
{
|
|
2112
|
-
/**
|
|
2113
|
-
* @private
|
|
2114
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2115
|
-
*/
|
|
2116
|
-
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
2117
|
-
readonly tag = BarkError_Tags.ServerPubkeyChanged;
|
|
2118
|
-
readonly inner: Readonly<{ errorMessage: string }>;
|
|
2119
|
-
constructor(inner: { errorMessage: string }) {
|
|
2120
|
-
super("BarkError", "ServerPubkeyChanged");
|
|
2121
|
-
this.inner = Object.freeze(inner);
|
|
2122
|
-
}
|
|
2123
|
-
|
|
2124
|
-
static new(inner: { errorMessage: string }): ServerPubkeyChanged_ {
|
|
2125
|
-
return new ServerPubkeyChanged_(inner);
|
|
2126
|
-
}
|
|
2127
|
-
|
|
2128
|
-
static instanceOf(obj: any): obj is ServerPubkeyChanged_ {
|
|
2129
|
-
return obj.tag === BarkError_Tags.ServerPubkeyChanged;
|
|
2130
|
-
}
|
|
2131
|
-
|
|
2132
|
-
static hasInner(obj: any): obj is ServerPubkeyChanged_ {
|
|
2133
|
-
return ServerPubkeyChanged_.instanceOf(obj);
|
|
2134
|
-
}
|
|
2135
|
-
|
|
2136
|
-
static getInner(
|
|
2137
|
-
obj: ServerPubkeyChanged_
|
|
2138
|
-
): Readonly<{ errorMessage: string }> {
|
|
2139
|
-
return obj.inner;
|
|
2140
|
-
}
|
|
2141
|
-
}
|
|
2142
|
-
|
|
2143
|
-
function instanceOf(obj: any): obj is BarkError {
|
|
2144
|
-
return obj[uniffiTypeNameSymbol] === "BarkError";
|
|
2145
|
-
}
|
|
2146
|
-
|
|
2147
|
-
return Object.freeze({
|
|
2148
|
-
instanceOf,
|
|
2149
|
-
Network: Network_,
|
|
2150
|
-
Database: Database_,
|
|
2151
|
-
InvalidMnemonic: InvalidMnemonic_,
|
|
2152
|
-
InvalidAddress: InvalidAddress_,
|
|
2153
|
-
InvalidInvoice: InvalidInvoice_,
|
|
2154
|
-
InvalidPsbt: InvalidPsbt_,
|
|
2155
|
-
InvalidTransaction: InvalidTransaction_,
|
|
2156
|
-
InsufficientFunds: InsufficientFunds_,
|
|
2157
|
-
NotFound: NotFound_,
|
|
2158
|
-
ServerConnection: ServerConnection_,
|
|
2159
|
-
Internal: Internal_,
|
|
2160
|
-
OnchainWalletRequired: OnchainWalletRequired_,
|
|
2161
|
-
InvalidVtxoId: InvalidVtxoId_,
|
|
2162
|
-
ServerPubkeyChanged: ServerPubkeyChanged_,
|
|
2163
|
-
});
|
|
2164
|
-
})();
|
|
2165
|
-
|
|
2166
|
-
/**
|
|
2167
|
-
* Error types that can occur when using the Bark wallet FFI
|
|
2168
|
-
*/
|
|
2169
|
-
|
|
2170
|
-
export type BarkError = InstanceType<
|
|
2171
|
-
(typeof BarkError)[keyof Omit<typeof BarkError, "instanceOf">]
|
|
2172
|
-
>;
|
|
2173
|
-
|
|
2174
|
-
// FfiConverter for enum BarkError
|
|
2175
|
-
const FfiConverterTypeBarkError = (() => {
|
|
2176
|
-
const ordinalConverter = FfiConverterInt32;
|
|
2177
|
-
type TypeName = BarkError;
|
|
2178
|
-
class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {
|
|
2179
|
-
read(from: RustBuffer): TypeName {
|
|
2180
|
-
switch (ordinalConverter.read(from)) {
|
|
2181
|
-
case 1:
|
|
2182
|
-
return new BarkError.Network({
|
|
2183
|
-
errorMessage: FfiConverterString.read(from),
|
|
2184
|
-
});
|
|
2185
|
-
case 2:
|
|
2186
|
-
return new BarkError.Database({
|
|
2187
|
-
errorMessage: FfiConverterString.read(from),
|
|
2188
|
-
});
|
|
2189
|
-
case 3:
|
|
2190
|
-
return new BarkError.InvalidMnemonic({
|
|
2191
|
-
errorMessage: FfiConverterString.read(from),
|
|
2192
|
-
});
|
|
2193
|
-
case 4:
|
|
2194
|
-
return new BarkError.InvalidAddress({
|
|
2195
|
-
errorMessage: FfiConverterString.read(from),
|
|
2196
|
-
});
|
|
2197
|
-
case 5:
|
|
2198
|
-
return new BarkError.InvalidInvoice({
|
|
2199
|
-
errorMessage: FfiConverterString.read(from),
|
|
2200
|
-
});
|
|
2201
|
-
case 6:
|
|
2202
|
-
return new BarkError.InvalidPsbt({
|
|
2203
|
-
errorMessage: FfiConverterString.read(from),
|
|
2204
|
-
});
|
|
2205
|
-
case 7:
|
|
2206
|
-
return new BarkError.InvalidTransaction({
|
|
2207
|
-
errorMessage: FfiConverterString.read(from),
|
|
2208
|
-
});
|
|
2209
|
-
case 8:
|
|
2210
|
-
return new BarkError.InsufficientFunds({
|
|
2211
|
-
errorMessage: FfiConverterString.read(from),
|
|
2212
|
-
});
|
|
2213
|
-
case 9:
|
|
2214
|
-
return new BarkError.NotFound({
|
|
2215
|
-
errorMessage: FfiConverterString.read(from),
|
|
2216
|
-
});
|
|
2217
|
-
case 10:
|
|
2218
|
-
return new BarkError.ServerConnection({
|
|
2219
|
-
errorMessage: FfiConverterString.read(from),
|
|
2220
|
-
});
|
|
2221
|
-
case 11:
|
|
2222
|
-
return new BarkError.Internal({
|
|
2223
|
-
errorMessage: FfiConverterString.read(from),
|
|
2224
|
-
});
|
|
2225
|
-
case 12:
|
|
2226
|
-
return new BarkError.OnchainWalletRequired({
|
|
2227
|
-
errorMessage: FfiConverterString.read(from),
|
|
2228
|
-
});
|
|
2229
|
-
case 13:
|
|
2230
|
-
return new BarkError.InvalidVtxoId({
|
|
2231
|
-
errorMessage: FfiConverterString.read(from),
|
|
2232
|
-
});
|
|
2233
|
-
case 14:
|
|
2234
|
-
return new BarkError.ServerPubkeyChanged({
|
|
2235
|
-
errorMessage: FfiConverterString.read(from),
|
|
2236
|
-
});
|
|
2237
|
-
default:
|
|
2238
|
-
throw new UniffiInternalError.UnexpectedEnumCase();
|
|
2239
|
-
}
|
|
2240
|
-
}
|
|
2241
|
-
write(value: TypeName, into: RustBuffer): void {
|
|
2242
|
-
switch (value.tag) {
|
|
2243
|
-
case BarkError_Tags.Network: {
|
|
2244
|
-
ordinalConverter.write(1, into);
|
|
2245
|
-
const inner = value.inner;
|
|
2246
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
2247
|
-
return;
|
|
2248
|
-
}
|
|
2249
|
-
case BarkError_Tags.Database: {
|
|
2250
|
-
ordinalConverter.write(2, into);
|
|
2251
|
-
const inner = value.inner;
|
|
2252
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
2253
|
-
return;
|
|
2254
|
-
}
|
|
2255
|
-
case BarkError_Tags.InvalidMnemonic: {
|
|
2256
|
-
ordinalConverter.write(3, into);
|
|
2257
|
-
const inner = value.inner;
|
|
2258
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
2259
|
-
return;
|
|
2260
|
-
}
|
|
2261
|
-
case BarkError_Tags.InvalidAddress: {
|
|
2262
|
-
ordinalConverter.write(4, into);
|
|
2263
|
-
const inner = value.inner;
|
|
2264
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
2265
|
-
return;
|
|
2266
|
-
}
|
|
2267
|
-
case BarkError_Tags.InvalidInvoice: {
|
|
2268
|
-
ordinalConverter.write(5, into);
|
|
2269
|
-
const inner = value.inner;
|
|
2270
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
2271
|
-
return;
|
|
2272
|
-
}
|
|
2273
|
-
case BarkError_Tags.InvalidPsbt: {
|
|
2274
|
-
ordinalConverter.write(6, into);
|
|
2275
|
-
const inner = value.inner;
|
|
2276
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
2277
|
-
return;
|
|
2278
|
-
}
|
|
2279
|
-
case BarkError_Tags.InvalidTransaction: {
|
|
2280
|
-
ordinalConverter.write(7, into);
|
|
2281
|
-
const inner = value.inner;
|
|
2282
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
2283
|
-
return;
|
|
2284
|
-
}
|
|
2285
|
-
case BarkError_Tags.InsufficientFunds: {
|
|
2286
|
-
ordinalConverter.write(8, into);
|
|
2287
|
-
const inner = value.inner;
|
|
2288
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
2289
|
-
return;
|
|
2290
|
-
}
|
|
2291
|
-
case BarkError_Tags.NotFound: {
|
|
2292
|
-
ordinalConverter.write(9, into);
|
|
2293
|
-
const inner = value.inner;
|
|
2294
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
2295
|
-
return;
|
|
2296
|
-
}
|
|
2297
|
-
case BarkError_Tags.ServerConnection: {
|
|
2298
|
-
ordinalConverter.write(10, into);
|
|
2299
|
-
const inner = value.inner;
|
|
2300
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
2301
|
-
return;
|
|
2302
|
-
}
|
|
2303
|
-
case BarkError_Tags.Internal: {
|
|
2304
|
-
ordinalConverter.write(11, into);
|
|
2305
|
-
const inner = value.inner;
|
|
2306
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
2307
|
-
return;
|
|
2308
|
-
}
|
|
2309
|
-
case BarkError_Tags.OnchainWalletRequired: {
|
|
2310
|
-
ordinalConverter.write(12, into);
|
|
2311
|
-
const inner = value.inner;
|
|
2312
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
2313
|
-
return;
|
|
2314
|
-
}
|
|
2315
|
-
case BarkError_Tags.InvalidVtxoId: {
|
|
2316
|
-
ordinalConverter.write(13, into);
|
|
2317
|
-
const inner = value.inner;
|
|
2318
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
2319
|
-
return;
|
|
2320
|
-
}
|
|
2321
|
-
case BarkError_Tags.ServerPubkeyChanged: {
|
|
2322
|
-
ordinalConverter.write(14, into);
|
|
2323
|
-
const inner = value.inner;
|
|
2324
|
-
FfiConverterString.write(inner.errorMessage, into);
|
|
2325
|
-
return;
|
|
2326
|
-
}
|
|
2327
|
-
default:
|
|
2328
|
-
// Throwing from here means that BarkError_Tags hasn't matched an ordinal.
|
|
2329
|
-
throw new UniffiInternalError.UnexpectedEnumCase();
|
|
2330
|
-
}
|
|
2331
|
-
}
|
|
2332
|
-
allocationSize(value: TypeName): number {
|
|
2333
|
-
switch (value.tag) {
|
|
2334
|
-
case BarkError_Tags.Network: {
|
|
2335
|
-
const inner = value.inner;
|
|
2336
|
-
let size = ordinalConverter.allocationSize(1);
|
|
2337
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
2338
|
-
return size;
|
|
2339
|
-
}
|
|
2340
|
-
case BarkError_Tags.Database: {
|
|
2341
|
-
const inner = value.inner;
|
|
2342
|
-
let size = ordinalConverter.allocationSize(2);
|
|
2343
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
2344
|
-
return size;
|
|
2345
|
-
}
|
|
2346
|
-
case BarkError_Tags.InvalidMnemonic: {
|
|
2347
|
-
const inner = value.inner;
|
|
2348
|
-
let size = ordinalConverter.allocationSize(3);
|
|
2349
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
2350
|
-
return size;
|
|
2351
|
-
}
|
|
2352
|
-
case BarkError_Tags.InvalidAddress: {
|
|
2353
|
-
const inner = value.inner;
|
|
2354
|
-
let size = ordinalConverter.allocationSize(4);
|
|
2355
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
2356
|
-
return size;
|
|
2357
|
-
}
|
|
2358
|
-
case BarkError_Tags.InvalidInvoice: {
|
|
2359
|
-
const inner = value.inner;
|
|
2360
|
-
let size = ordinalConverter.allocationSize(5);
|
|
2361
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
2362
|
-
return size;
|
|
2363
|
-
}
|
|
2364
|
-
case BarkError_Tags.InvalidPsbt: {
|
|
2365
|
-
const inner = value.inner;
|
|
2366
|
-
let size = ordinalConverter.allocationSize(6);
|
|
2367
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
2368
|
-
return size;
|
|
2369
|
-
}
|
|
2370
|
-
case BarkError_Tags.InvalidTransaction: {
|
|
2371
|
-
const inner = value.inner;
|
|
2372
|
-
let size = ordinalConverter.allocationSize(7);
|
|
2373
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
2374
|
-
return size;
|
|
2375
|
-
}
|
|
2376
|
-
case BarkError_Tags.InsufficientFunds: {
|
|
2377
|
-
const inner = value.inner;
|
|
2378
|
-
let size = ordinalConverter.allocationSize(8);
|
|
2379
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
2380
|
-
return size;
|
|
2381
|
-
}
|
|
2382
|
-
case BarkError_Tags.NotFound: {
|
|
2383
|
-
const inner = value.inner;
|
|
2384
|
-
let size = ordinalConverter.allocationSize(9);
|
|
2385
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
2386
|
-
return size;
|
|
2387
|
-
}
|
|
2388
|
-
case BarkError_Tags.ServerConnection: {
|
|
2389
|
-
const inner = value.inner;
|
|
2390
|
-
let size = ordinalConverter.allocationSize(10);
|
|
2391
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
2392
|
-
return size;
|
|
2393
|
-
}
|
|
2394
|
-
case BarkError_Tags.Internal: {
|
|
2395
|
-
const inner = value.inner;
|
|
2396
|
-
let size = ordinalConverter.allocationSize(11);
|
|
2397
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
2398
|
-
return size;
|
|
2399
|
-
}
|
|
2400
|
-
case BarkError_Tags.OnchainWalletRequired: {
|
|
2401
|
-
const inner = value.inner;
|
|
2402
|
-
let size = ordinalConverter.allocationSize(12);
|
|
2403
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
2404
|
-
return size;
|
|
2405
|
-
}
|
|
2406
|
-
case BarkError_Tags.InvalidVtxoId: {
|
|
2407
|
-
const inner = value.inner;
|
|
2408
|
-
let size = ordinalConverter.allocationSize(13);
|
|
2409
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
2410
|
-
return size;
|
|
2411
|
-
}
|
|
2412
|
-
case BarkError_Tags.ServerPubkeyChanged: {
|
|
2413
|
-
const inner = value.inner;
|
|
2414
|
-
let size = ordinalConverter.allocationSize(14);
|
|
2415
|
-
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
2416
|
-
return size;
|
|
2417
|
-
}
|
|
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
|
+
|
|
2418
1805
|
default:
|
|
2419
1806
|
throw new UniffiInternalError.UnexpectedEnumCase();
|
|
2420
1807
|
}
|
|
2421
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
|
+
}
|
|
2422
1817
|
}
|
|
2423
|
-
return new
|
|
1818
|
+
return new FfiConverter();
|
|
2424
1819
|
})();
|
|
2425
1820
|
|
|
2426
1821
|
// Enum: LightningSendStatus
|
|
@@ -3196,6 +2591,15 @@ export interface CustomOnchainWalletCallbacks {
|
|
|
3196
2591
|
* * `tx_hex` - Hex-encoded transaction
|
|
3197
2592
|
*/
|
|
3198
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;
|
|
3199
2603
|
}
|
|
3200
2604
|
|
|
3201
2605
|
/**
|
|
@@ -3224,9 +2628,7 @@ export class CustomOnchainWalletCallbacksImpl
|
|
|
3224
2628
|
getBalance(): /*u64*/ bigint /*throws*/ {
|
|
3225
2629
|
return FfiConverterUInt64.lift(
|
|
3226
2630
|
uniffiCaller.rustCallWithError(
|
|
3227
|
-
/*liftError:*/
|
|
3228
|
-
FfiConverterTypeBarkError
|
|
3229
|
-
),
|
|
2631
|
+
/*liftError:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError),
|
|
3230
2632
|
/*caller:*/ (callStatus) => {
|
|
3231
2633
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_balance(
|
|
3232
2634
|
uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(
|
|
@@ -3256,9 +2658,7 @@ export class CustomOnchainWalletCallbacksImpl
|
|
|
3256
2658
|
): string /*throws*/ {
|
|
3257
2659
|
return FfiConverterString.lift(
|
|
3258
2660
|
uniffiCaller.rustCallWithError(
|
|
3259
|
-
/*liftError:*/
|
|
3260
|
-
FfiConverterTypeBarkError
|
|
3261
|
-
),
|
|
2661
|
+
/*liftError:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError),
|
|
3262
2662
|
/*caller:*/ (callStatus) => {
|
|
3263
2663
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_prepare_tx(
|
|
3264
2664
|
uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(
|
|
@@ -3290,9 +2690,7 @@ export class CustomOnchainWalletCallbacksImpl
|
|
|
3290
2690
|
): string /*throws*/ {
|
|
3291
2691
|
return FfiConverterString.lift(
|
|
3292
2692
|
uniffiCaller.rustCallWithError(
|
|
3293
|
-
/*liftError:*/
|
|
3294
|
-
FfiConverterTypeBarkError
|
|
3295
|
-
),
|
|
2693
|
+
/*liftError:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError),
|
|
3296
2694
|
/*caller:*/ (callStatus) => {
|
|
3297
2695
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_prepare_drain_tx(
|
|
3298
2696
|
uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(
|
|
@@ -3320,9 +2718,7 @@ export class CustomOnchainWalletCallbacksImpl
|
|
|
3320
2718
|
finishPsbt(psbtBase64: string): string /*throws*/ {
|
|
3321
2719
|
return FfiConverterString.lift(
|
|
3322
2720
|
uniffiCaller.rustCallWithError(
|
|
3323
|
-
/*liftError:*/
|
|
3324
|
-
FfiConverterTypeBarkError
|
|
3325
|
-
),
|
|
2721
|
+
/*liftError:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError),
|
|
3326
2722
|
/*caller:*/ (callStatus) => {
|
|
3327
2723
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_finish_psbt(
|
|
3328
2724
|
uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(
|
|
@@ -3349,9 +2745,7 @@ export class CustomOnchainWalletCallbacksImpl
|
|
|
3349
2745
|
getWalletTx(txid: string): string | undefined /*throws*/ {
|
|
3350
2746
|
return FfiConverterOptionalString.lift(
|
|
3351
2747
|
uniffiCaller.rustCallWithError(
|
|
3352
|
-
/*liftError:*/
|
|
3353
|
-
FfiConverterTypeBarkError
|
|
3354
|
-
),
|
|
2748
|
+
/*liftError:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError),
|
|
3355
2749
|
/*caller:*/ (callStatus) => {
|
|
3356
2750
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_wallet_tx(
|
|
3357
2751
|
uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(
|
|
@@ -3378,9 +2772,7 @@ export class CustomOnchainWalletCallbacksImpl
|
|
|
3378
2772
|
getWalletTxConfirmedBlock(txid: string): BlockRef | undefined /*throws*/ {
|
|
3379
2773
|
return FfiConverterOptionalTypeBlockRef.lift(
|
|
3380
2774
|
uniffiCaller.rustCallWithError(
|
|
3381
|
-
/*liftError:*/
|
|
3382
|
-
FfiConverterTypeBarkError
|
|
3383
|
-
),
|
|
2775
|
+
/*liftError:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError),
|
|
3384
2776
|
/*caller:*/ (callStatus) => {
|
|
3385
2777
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block(
|
|
3386
2778
|
uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(
|
|
@@ -3407,9 +2799,7 @@ export class CustomOnchainWalletCallbacksImpl
|
|
|
3407
2799
|
getSpendingTx(outpoint: OutPoint): string | undefined /*throws*/ {
|
|
3408
2800
|
return FfiConverterOptionalString.lift(
|
|
3409
2801
|
uniffiCaller.rustCallWithError(
|
|
3410
|
-
/*liftError:*/
|
|
3411
|
-
FfiConverterTypeBarkError
|
|
3412
|
-
),
|
|
2802
|
+
/*liftError:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError),
|
|
3413
2803
|
/*caller:*/ (callStatus) => {
|
|
3414
2804
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_spending_tx(
|
|
3415
2805
|
uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(
|
|
@@ -3436,9 +2826,7 @@ export class CustomOnchainWalletCallbacksImpl
|
|
|
3436
2826
|
makeSignedP2aCpfp(params: CpfpParams): string /*throws*/ {
|
|
3437
2827
|
return FfiConverterString.lift(
|
|
3438
2828
|
uniffiCaller.rustCallWithError(
|
|
3439
|
-
/*liftError:*/
|
|
3440
|
-
FfiConverterTypeBarkError
|
|
3441
|
-
),
|
|
2829
|
+
/*liftError:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError),
|
|
3442
2830
|
/*caller:*/ (callStatus) => {
|
|
3443
2831
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_make_signed_p2a_cpfp(
|
|
3444
2832
|
uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(
|
|
@@ -3461,9 +2849,7 @@ export class CustomOnchainWalletCallbacksImpl
|
|
|
3461
2849
|
*/
|
|
3462
2850
|
storeSignedP2aCpfp(txHex: string): void /*throws*/ {
|
|
3463
2851
|
uniffiCaller.rustCallWithError(
|
|
3464
|
-
/*liftError:*/
|
|
3465
|
-
FfiConverterTypeBarkError
|
|
3466
|
-
),
|
|
2852
|
+
/*liftError:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError),
|
|
3467
2853
|
/*caller:*/ (callStatus) => {
|
|
3468
2854
|
nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_store_signed_p2a_cpfp(
|
|
3469
2855
|
uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(
|
|
@@ -3477,6 +2863,29 @@ export class CustomOnchainWalletCallbacksImpl
|
|
|
3477
2863
|
);
|
|
3478
2864
|
}
|
|
3479
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
|
+
|
|
3480
2889
|
/**
|
|
3481
2890
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3482
2891
|
*/
|
|
@@ -3599,10 +3008,8 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks: {
|
|
|
3599
3008
|
/*makeCall:*/ uniffiMakeCall,
|
|
3600
3009
|
/*handleSuccess:*/ uniffiHandleSuccess,
|
|
3601
3010
|
/*handleError:*/ uniffiHandleError,
|
|
3602
|
-
/*isErrorType:*/
|
|
3603
|
-
/*lowerError:*/
|
|
3604
|
-
FfiConverterTypeBarkError
|
|
3605
|
-
),
|
|
3011
|
+
/*isErrorType:*/ Exception.instanceOf,
|
|
3012
|
+
/*lowerError:*/ FfiConverterTypeError.lower.bind(FfiConverterTypeError),
|
|
3606
3013
|
/*lowerString:*/ FfiConverterString.lower
|
|
3607
3014
|
);
|
|
3608
3015
|
return uniffiResult;
|
|
@@ -3631,10 +3038,8 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks: {
|
|
|
3631
3038
|
/*makeCall:*/ uniffiMakeCall,
|
|
3632
3039
|
/*handleSuccess:*/ uniffiHandleSuccess,
|
|
3633
3040
|
/*handleError:*/ uniffiHandleError,
|
|
3634
|
-
/*isErrorType:*/
|
|
3635
|
-
/*lowerError:*/
|
|
3636
|
-
FfiConverterTypeBarkError
|
|
3637
|
-
),
|
|
3041
|
+
/*isErrorType:*/ Exception.instanceOf,
|
|
3042
|
+
/*lowerError:*/ FfiConverterTypeError.lower.bind(FfiConverterTypeError),
|
|
3638
3043
|
/*lowerString:*/ FfiConverterString.lower
|
|
3639
3044
|
);
|
|
3640
3045
|
return uniffiResult;
|
|
@@ -3663,10 +3068,8 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks: {
|
|
|
3663
3068
|
/*makeCall:*/ uniffiMakeCall,
|
|
3664
3069
|
/*handleSuccess:*/ uniffiHandleSuccess,
|
|
3665
3070
|
/*handleError:*/ uniffiHandleError,
|
|
3666
|
-
/*isErrorType:*/
|
|
3667
|
-
/*lowerError:*/
|
|
3668
|
-
FfiConverterTypeBarkError
|
|
3669
|
-
),
|
|
3071
|
+
/*isErrorType:*/ Exception.instanceOf,
|
|
3072
|
+
/*lowerError:*/ FfiConverterTypeError.lower.bind(FfiConverterTypeError),
|
|
3670
3073
|
/*lowerString:*/ FfiConverterString.lower
|
|
3671
3074
|
);
|
|
3672
3075
|
return uniffiResult;
|
|
@@ -3688,10 +3091,8 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks: {
|
|
|
3688
3091
|
/*makeCall:*/ uniffiMakeCall,
|
|
3689
3092
|
/*handleSuccess:*/ uniffiHandleSuccess,
|
|
3690
3093
|
/*handleError:*/ uniffiHandleError,
|
|
3691
|
-
/*isErrorType:*/
|
|
3692
|
-
/*lowerError:*/
|
|
3693
|
-
FfiConverterTypeBarkError
|
|
3694
|
-
),
|
|
3094
|
+
/*isErrorType:*/ Exception.instanceOf,
|
|
3095
|
+
/*lowerError:*/ FfiConverterTypeError.lower.bind(FfiConverterTypeError),
|
|
3695
3096
|
/*lowerString:*/ FfiConverterString.lower
|
|
3696
3097
|
);
|
|
3697
3098
|
return uniffiResult;
|
|
@@ -3716,10 +3117,8 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks: {
|
|
|
3716
3117
|
/*makeCall:*/ uniffiMakeCall,
|
|
3717
3118
|
/*handleSuccess:*/ uniffiHandleSuccess,
|
|
3718
3119
|
/*handleError:*/ uniffiHandleError,
|
|
3719
|
-
/*isErrorType:*/
|
|
3720
|
-
/*lowerError:*/
|
|
3721
|
-
FfiConverterTypeBarkError
|
|
3722
|
-
),
|
|
3120
|
+
/*isErrorType:*/ Exception.instanceOf,
|
|
3121
|
+
/*lowerError:*/ FfiConverterTypeError.lower.bind(FfiConverterTypeError),
|
|
3723
3122
|
/*lowerString:*/ FfiConverterString.lower
|
|
3724
3123
|
);
|
|
3725
3124
|
return uniffiResult;
|
|
@@ -3746,10 +3145,8 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks: {
|
|
|
3746
3145
|
/*makeCall:*/ uniffiMakeCall,
|
|
3747
3146
|
/*handleSuccess:*/ uniffiHandleSuccess,
|
|
3748
3147
|
/*handleError:*/ uniffiHandleError,
|
|
3749
|
-
/*isErrorType:*/
|
|
3750
|
-
/*lowerError:*/
|
|
3751
|
-
FfiConverterTypeBarkError
|
|
3752
|
-
),
|
|
3148
|
+
/*isErrorType:*/ Exception.instanceOf,
|
|
3149
|
+
/*lowerError:*/ FfiConverterTypeError.lower.bind(FfiConverterTypeError),
|
|
3753
3150
|
/*lowerString:*/ FfiConverterString.lower
|
|
3754
3151
|
);
|
|
3755
3152
|
return uniffiResult;
|
|
@@ -3776,10 +3173,8 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks: {
|
|
|
3776
3173
|
/*makeCall:*/ uniffiMakeCall,
|
|
3777
3174
|
/*handleSuccess:*/ uniffiHandleSuccess,
|
|
3778
3175
|
/*handleError:*/ uniffiHandleError,
|
|
3779
|
-
/*isErrorType:*/
|
|
3780
|
-
/*lowerError:*/
|
|
3781
|
-
FfiConverterTypeBarkError
|
|
3782
|
-
),
|
|
3176
|
+
/*isErrorType:*/ Exception.instanceOf,
|
|
3177
|
+
/*lowerError:*/ FfiConverterTypeError.lower.bind(FfiConverterTypeError),
|
|
3783
3178
|
/*lowerString:*/ FfiConverterString.lower
|
|
3784
3179
|
);
|
|
3785
3180
|
return uniffiResult;
|
|
@@ -3803,10 +3198,8 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks: {
|
|
|
3803
3198
|
/*makeCall:*/ uniffiMakeCall,
|
|
3804
3199
|
/*handleSuccess:*/ uniffiHandleSuccess,
|
|
3805
3200
|
/*handleError:*/ uniffiHandleError,
|
|
3806
|
-
/*isErrorType:*/
|
|
3807
|
-
/*lowerError:*/
|
|
3808
|
-
FfiConverterTypeBarkError
|
|
3809
|
-
),
|
|
3201
|
+
/*isErrorType:*/ Exception.instanceOf,
|
|
3202
|
+
/*lowerError:*/ FfiConverterTypeError.lower.bind(FfiConverterTypeError),
|
|
3810
3203
|
/*lowerString:*/ FfiConverterString.lower
|
|
3811
3204
|
);
|
|
3812
3205
|
return uniffiResult;
|
|
@@ -3826,10 +3219,29 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks: {
|
|
|
3826
3219
|
/*makeCall:*/ uniffiMakeCall,
|
|
3827
3220
|
/*handleSuccess:*/ uniffiHandleSuccess,
|
|
3828
3221
|
/*handleError:*/ uniffiHandleError,
|
|
3829
|
-
/*isErrorType:*/
|
|
3830
|
-
/*lowerError:*/
|
|
3831
|
-
|
|
3832
|
-
|
|
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),
|
|
3833
3245
|
/*lowerString:*/ FfiConverterString.lower
|
|
3834
3246
|
);
|
|
3835
3247
|
return uniffiResult;
|
|
@@ -3882,7 +3294,7 @@ export interface NotificationHolderLike {
|
|
|
3882
3294
|
* (cancellation only affects the current wait; the stream lives on)
|
|
3883
3295
|
* - The wallet's notification source was shut down permanently
|
|
3884
3296
|
*
|
|
3885
|
-
* Returns
|
|
3297
|
+
* Returns an error if called concurrently on the same holder.
|
|
3886
3298
|
*
|
|
3887
3299
|
* After a cancellation this method can be called again normally — the
|
|
3888
3300
|
* underlying `NotificationStream` is preserved in `self.stream` and a
|
|
@@ -3955,7 +3367,7 @@ export class NotificationHolder
|
|
|
3955
3367
|
* (cancellation only affects the current wait; the stream lives on)
|
|
3956
3368
|
* - The wallet's notification source was shut down permanently
|
|
3957
3369
|
*
|
|
3958
|
-
* Returns
|
|
3370
|
+
* Returns an error if called concurrently on the same holder.
|
|
3959
3371
|
*
|
|
3960
3372
|
* After a cancellation this method can be called again normally — the
|
|
3961
3373
|
* underlying `NotificationStream` is preserved in `self.stream` and a
|
|
@@ -3986,9 +3398,7 @@ export class NotificationHolder
|
|
|
3986
3398
|
),
|
|
3987
3399
|
/*liftString:*/ FfiConverterString.lift,
|
|
3988
3400
|
/*asyncOpts:*/ asyncOpts_,
|
|
3989
|
-
/*errorHandler:*/
|
|
3990
|
-
FfiConverterTypeBarkError
|
|
3991
|
-
)
|
|
3401
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
3992
3402
|
);
|
|
3993
3403
|
} catch (__error: any) {
|
|
3994
3404
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -4138,9 +3548,7 @@ export class OnchainWallet
|
|
|
4138
3548
|
): OnchainWalletLike /*throws*/ {
|
|
4139
3549
|
return FfiConverterTypeOnchainWallet.lift(
|
|
4140
3550
|
uniffiCaller.rustCallWithError(
|
|
4141
|
-
/*liftError:*/
|
|
4142
|
-
FfiConverterTypeBarkError
|
|
4143
|
-
),
|
|
3551
|
+
/*liftError:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError),
|
|
4144
3552
|
/*caller:*/ (callStatus) => {
|
|
4145
3553
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_onchainwallet_custom(
|
|
4146
3554
|
FfiConverterTypeCustomOnchainWalletCallbacks.lower(callbacks),
|
|
@@ -4156,6 +3564,7 @@ export class OnchainWallet
|
|
|
4156
3564
|
* BDK-backed wallet. Opens the shared sqlite cache.
|
|
4157
3565
|
*/
|
|
4158
3566
|
static async default_(
|
|
3567
|
+
network: Network,
|
|
4159
3568
|
mnemonic: string,
|
|
4160
3569
|
config: Config,
|
|
4161
3570
|
datadir: string,
|
|
@@ -4167,6 +3576,7 @@ export class OnchainWallet
|
|
|
4167
3576
|
/*rustCaller:*/ uniffiCaller,
|
|
4168
3577
|
/*rustFutureFunc:*/ () => {
|
|
4169
3578
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_onchainwallet_default(
|
|
3579
|
+
FfiConverterTypeNetwork.lower(network),
|
|
4170
3580
|
FfiConverterString.lower(mnemonic),
|
|
4171
3581
|
FfiConverterTypeConfig.lower(config),
|
|
4172
3582
|
FfiConverterString.lower(datadir)
|
|
@@ -4182,9 +3592,7 @@ export class OnchainWallet
|
|
|
4182
3592
|
),
|
|
4183
3593
|
/*liftString:*/ FfiConverterString.lift,
|
|
4184
3594
|
/*asyncOpts:*/ asyncOpts_,
|
|
4185
|
-
/*errorHandler:*/
|
|
4186
|
-
FfiConverterTypeBarkError
|
|
4187
|
-
)
|
|
3595
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
4188
3596
|
);
|
|
4189
3597
|
} catch (__error: any) {
|
|
4190
3598
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -4219,9 +3627,7 @@ export class OnchainWallet
|
|
|
4219
3627
|
),
|
|
4220
3628
|
/*liftString:*/ FfiConverterString.lift,
|
|
4221
3629
|
/*asyncOpts:*/ asyncOpts_,
|
|
4222
|
-
/*errorHandler:*/
|
|
4223
|
-
FfiConverterTypeBarkError
|
|
4224
|
-
)
|
|
3630
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
4225
3631
|
);
|
|
4226
3632
|
} catch (__error: any) {
|
|
4227
3633
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -4254,9 +3660,7 @@ export class OnchainWallet
|
|
|
4254
3660
|
/*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
4255
3661
|
/*liftString:*/ FfiConverterString.lift,
|
|
4256
3662
|
/*asyncOpts:*/ asyncOpts_,
|
|
4257
|
-
/*errorHandler:*/
|
|
4258
|
-
FfiConverterTypeBarkError
|
|
4259
|
-
)
|
|
3663
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
4260
3664
|
);
|
|
4261
3665
|
} catch (__error: any) {
|
|
4262
3666
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -4295,9 +3699,7 @@ export class OnchainWallet
|
|
|
4295
3699
|
/*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
4296
3700
|
/*liftString:*/ FfiConverterString.lift,
|
|
4297
3701
|
/*asyncOpts:*/ asyncOpts_,
|
|
4298
|
-
/*errorHandler:*/
|
|
4299
|
-
FfiConverterTypeBarkError
|
|
4300
|
-
)
|
|
3702
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
4301
3703
|
);
|
|
4302
3704
|
} catch (__error: any) {
|
|
4303
3705
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -4327,9 +3729,7 @@ export class OnchainWallet
|
|
|
4327
3729
|
/*liftFunc:*/ FfiConverterUInt64.lift.bind(FfiConverterUInt64),
|
|
4328
3730
|
/*liftString:*/ FfiConverterString.lift,
|
|
4329
3731
|
/*asyncOpts:*/ asyncOpts_,
|
|
4330
|
-
/*errorHandler:*/
|
|
4331
|
-
FfiConverterTypeBarkError
|
|
4332
|
-
)
|
|
3732
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
4333
3733
|
);
|
|
4334
3734
|
} catch (__error: any) {
|
|
4335
3735
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -4606,9 +4006,6 @@ export interface WalletLike {
|
|
|
4606
4006
|
onchainWallet: OnchainWalletLike,
|
|
4607
4007
|
asyncOpts_?: { signal: AbortSignal }
|
|
4608
4008
|
): /*throws*/ Promise<void>;
|
|
4609
|
-
maybeScheduleMaintenanceRefresh(asyncOpts_?: {
|
|
4610
|
-
signal: AbortSignal;
|
|
4611
|
-
}): /*throws*/ Promise</*u32*/ number | undefined>;
|
|
4612
4009
|
network(asyncOpts_?: { signal: AbortSignal }): /*throws*/ Promise<Network>;
|
|
4613
4010
|
newAddress(asyncOpts_?: { signal: AbortSignal }): /*throws*/ Promise<string>;
|
|
4614
4011
|
newAddressWithIndex(asyncOpts_?: {
|
|
@@ -4649,6 +4046,19 @@ export interface WalletLike {
|
|
|
4649
4046
|
wait: boolean,
|
|
4650
4047
|
asyncOpts_?: { signal: AbortSignal }
|
|
4651
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>;
|
|
4652
4062
|
peekAddress(
|
|
4653
4063
|
index: /*u32*/ number,
|
|
4654
4064
|
asyncOpts_?: { signal: AbortSignal }
|
|
@@ -4705,7 +4115,7 @@ export interface WalletLike {
|
|
|
4705
4115
|
arkAddress: string,
|
|
4706
4116
|
amountSats: /*u64*/ bigint,
|
|
4707
4117
|
asyncOpts_?: { signal: AbortSignal }
|
|
4708
|
-
): /*throws*/ Promise<
|
|
4118
|
+
): /*throws*/ Promise<void>;
|
|
4709
4119
|
sendOnchain(
|
|
4710
4120
|
address: string,
|
|
4711
4121
|
amountSats: /*u64*/ bigint,
|
|
@@ -4734,215 +4144,75 @@ export interface WalletLike {
|
|
|
4734
4144
|
onchainWallet: OnchainWalletLike,
|
|
4735
4145
|
asyncOpts_?: { signal: AbortSignal }
|
|
4736
4146
|
): /*throws*/ Promise<void>;
|
|
4737
|
-
syncPendingBoards(asyncOpts_?: {
|
|
4738
|
-
signal: AbortSignal;
|
|
4739
|
-
}): /*throws*/ Promise<void>;
|
|
4740
|
-
tryClaimAllLightningReceives(
|
|
4741
|
-
wait: boolean,
|
|
4742
|
-
asyncOpts_?: { signal: AbortSignal }
|
|
4743
|
-
): /*throws*/ Promise<Array<LightningReceive>>;
|
|
4744
|
-
tryClaimLightningReceive(
|
|
4745
|
-
paymentHash: string,
|
|
4746
|
-
wait: boolean,
|
|
4747
|
-
asyncOpts_?: { signal: AbortSignal }
|
|
4748
|
-
): /*throws*/ Promise<void>;
|
|
4749
|
-
validateArkoorAddress(
|
|
4750
|
-
address: string,
|
|
4751
|
-
asyncOpts_?: { signal: AbortSignal }
|
|
4752
|
-
): /*throws*/ Promise<boolean>;
|
|
4753
|
-
vtxos(asyncOpts_?: { signal: AbortSignal }): /*throws*/ Promise<Array<Vtxo>>;
|
|
4754
|
-
}
|
|
4755
|
-
/**
|
|
4756
|
-
* @deprecated Use `WalletLike` instead.
|
|
4757
|
-
*/
|
|
4758
|
-
export type WalletInterface = WalletLike;
|
|
4759
|
-
|
|
4760
|
-
/**
|
|
4761
|
-
* UniFFI-facing Bark wallet.
|
|
4762
|
-
*
|
|
4763
|
-
* Wraps `core::Wallet` and adds:
|
|
4764
|
-
* - `run_async` runtime offload on every entry point
|
|
4765
|
-
* - mailbox processor task + cancellation on drop
|
|
4766
|
-
* - LNURL `pay_lightning_address`
|
|
4767
|
-
* - Daemon control methods
|
|
4768
|
-
* - Notification holder
|
|
4769
|
-
* - Callback onchain dispatch
|
|
4770
|
-
*/
|
|
4771
|
-
export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
4772
|
-
readonly [uniffiTypeNameSymbol] = "Wallet";
|
|
4773
|
-
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
4774
|
-
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
4775
|
-
// No primary constructor declared for this class.
|
|
4776
|
-
private constructor(pointer: UniffiHandle) {
|
|
4777
|
-
super();
|
|
4778
|
-
this[pointerLiteralSymbol] = pointer;
|
|
4779
|
-
this[destructorGuardSymbol] = uniffiTypeWalletObjectFactory.bless(pointer);
|
|
4780
|
-
}
|
|
4781
|
-
|
|
4782
|
-
static async create(
|
|
4783
|
-
mnemonic: string,
|
|
4784
|
-
config: Config,
|
|
4785
|
-
datadir: string,
|
|
4786
|
-
forceRescan: boolean,
|
|
4787
|
-
asyncOpts_?: { signal: AbortSignal }
|
|
4788
|
-
): Promise<WalletLike> /*throws*/ {
|
|
4789
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4790
|
-
try {
|
|
4791
|
-
return await uniffiRustCallAsync(
|
|
4792
|
-
/*rustCaller:*/ uniffiCaller,
|
|
4793
|
-
/*rustFutureFunc:*/ () => {
|
|
4794
|
-
return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_wallet_create(
|
|
4795
|
-
FfiConverterString.lower(mnemonic),
|
|
4796
|
-
FfiConverterTypeConfig.lower(config),
|
|
4797
|
-
FfiConverterString.lower(datadir),
|
|
4798
|
-
FfiConverterBool.lower(forceRescan)
|
|
4799
|
-
);
|
|
4800
|
-
},
|
|
4801
|
-
/*pollFunc:*/ nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64,
|
|
4802
|
-
/*cancelFunc:*/ nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64,
|
|
4803
|
-
/*completeFunc:*/ nativeModule()
|
|
4804
|
-
.ubrn_ffi_bark_ffi_rust_future_complete_u64,
|
|
4805
|
-
/*freeFunc:*/ nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64,
|
|
4806
|
-
/*liftFunc:*/ FfiConverterTypeWallet.lift.bind(FfiConverterTypeWallet),
|
|
4807
|
-
/*liftString:*/ FfiConverterString.lift,
|
|
4808
|
-
/*asyncOpts:*/ asyncOpts_,
|
|
4809
|
-
/*errorHandler:*/ FfiConverterTypeBarkError.lift.bind(
|
|
4810
|
-
FfiConverterTypeBarkError
|
|
4811
|
-
)
|
|
4812
|
-
);
|
|
4813
|
-
} catch (__error: any) {
|
|
4814
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
4815
|
-
__error.stack = __stack;
|
|
4816
|
-
}
|
|
4817
|
-
throw __error;
|
|
4818
|
-
}
|
|
4819
|
-
}
|
|
4820
|
-
|
|
4821
|
-
static async createWithOnchain(
|
|
4822
|
-
mnemonic: string,
|
|
4823
|
-
config: Config,
|
|
4824
|
-
datadir: string,
|
|
4825
|
-
onchainWallet: OnchainWalletLike,
|
|
4826
|
-
forceRescan: boolean,
|
|
4827
|
-
asyncOpts_?: { signal: AbortSignal }
|
|
4828
|
-
): Promise<WalletLike> /*throws*/ {
|
|
4829
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4830
|
-
try {
|
|
4831
|
-
return await uniffiRustCallAsync(
|
|
4832
|
-
/*rustCaller:*/ uniffiCaller,
|
|
4833
|
-
/*rustFutureFunc:*/ () => {
|
|
4834
|
-
return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_wallet_create_with_onchain(
|
|
4835
|
-
FfiConverterString.lower(mnemonic),
|
|
4836
|
-
FfiConverterTypeConfig.lower(config),
|
|
4837
|
-
FfiConverterString.lower(datadir),
|
|
4838
|
-
FfiConverterTypeOnchainWallet.lower(onchainWallet),
|
|
4839
|
-
FfiConverterBool.lower(forceRescan)
|
|
4840
|
-
);
|
|
4841
|
-
},
|
|
4842
|
-
/*pollFunc:*/ nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64,
|
|
4843
|
-
/*cancelFunc:*/ nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64,
|
|
4844
|
-
/*completeFunc:*/ nativeModule()
|
|
4845
|
-
.ubrn_ffi_bark_ffi_rust_future_complete_u64,
|
|
4846
|
-
/*freeFunc:*/ nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64,
|
|
4847
|
-
/*liftFunc:*/ FfiConverterTypeWallet.lift.bind(FfiConverterTypeWallet),
|
|
4848
|
-
/*liftString:*/ FfiConverterString.lift,
|
|
4849
|
-
/*asyncOpts:*/ asyncOpts_,
|
|
4850
|
-
/*errorHandler:*/ FfiConverterTypeBarkError.lift.bind(
|
|
4851
|
-
FfiConverterTypeBarkError
|
|
4852
|
-
)
|
|
4853
|
-
);
|
|
4854
|
-
} catch (__error: any) {
|
|
4855
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
4856
|
-
__error.stack = __stack;
|
|
4857
|
-
}
|
|
4858
|
-
throw __error;
|
|
4859
|
-
}
|
|
4860
|
-
}
|
|
4861
|
-
|
|
4862
|
-
static async open(
|
|
4863
|
-
mnemonic: string,
|
|
4864
|
-
config: Config,
|
|
4865
|
-
datadir: string,
|
|
4866
|
-
asyncOpts_?: { signal: AbortSignal }
|
|
4867
|
-
): Promise<WalletLike> /*throws*/ {
|
|
4868
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4869
|
-
try {
|
|
4870
|
-
return await uniffiRustCallAsync(
|
|
4871
|
-
/*rustCaller:*/ uniffiCaller,
|
|
4872
|
-
/*rustFutureFunc:*/ () => {
|
|
4873
|
-
return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_wallet_open(
|
|
4874
|
-
FfiConverterString.lower(mnemonic),
|
|
4875
|
-
FfiConverterTypeConfig.lower(config),
|
|
4876
|
-
FfiConverterString.lower(datadir)
|
|
4877
|
-
);
|
|
4878
|
-
},
|
|
4879
|
-
/*pollFunc:*/ nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64,
|
|
4880
|
-
/*cancelFunc:*/ nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64,
|
|
4881
|
-
/*completeFunc:*/ nativeModule()
|
|
4882
|
-
.ubrn_ffi_bark_ffi_rust_future_complete_u64,
|
|
4883
|
-
/*freeFunc:*/ nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64,
|
|
4884
|
-
/*liftFunc:*/ FfiConverterTypeWallet.lift.bind(FfiConverterTypeWallet),
|
|
4885
|
-
/*liftString:*/ FfiConverterString.lift,
|
|
4886
|
-
/*asyncOpts:*/ asyncOpts_,
|
|
4887
|
-
/*errorHandler:*/ FfiConverterTypeBarkError.lift.bind(
|
|
4888
|
-
FfiConverterTypeBarkError
|
|
4889
|
-
)
|
|
4890
|
-
);
|
|
4891
|
-
} catch (__error: any) {
|
|
4892
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
4893
|
-
__error.stack = __stack;
|
|
4894
|
-
}
|
|
4895
|
-
throw __error;
|
|
4896
|
-
}
|
|
4897
|
-
}
|
|
4898
|
-
|
|
4899
4147
|
/**
|
|
4900
|
-
*
|
|
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.
|
|
4901
4153
|
*/
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
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,
|
|
4907
4162
|
asyncOpts_?: { signal: AbortSignal }
|
|
4908
|
-
):
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
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);
|
|
4939
4200
|
}
|
|
4940
4201
|
|
|
4941
|
-
|
|
4942
|
-
|
|
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,
|
|
4943
4214
|
config: Config,
|
|
4944
|
-
|
|
4945
|
-
onchainWallet: OnchainWalletLike,
|
|
4215
|
+
args: WalletOpenArgs,
|
|
4946
4216
|
asyncOpts_?: { signal: AbortSignal }
|
|
4947
4217
|
): Promise<WalletLike> /*throws*/ {
|
|
4948
4218
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
@@ -4950,11 +4220,11 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
4950
4220
|
return await uniffiRustCallAsync(
|
|
4951
4221
|
/*rustCaller:*/ uniffiCaller,
|
|
4952
4222
|
/*rustFutureFunc:*/ () => {
|
|
4953
|
-
return nativeModule().
|
|
4954
|
-
|
|
4223
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_wallet_open(
|
|
4224
|
+
FfiConverterTypeNetwork.lower(network),
|
|
4225
|
+
FfiConverterString.lower(mnemonicOrSeed),
|
|
4955
4226
|
FfiConverterTypeConfig.lower(config),
|
|
4956
|
-
|
|
4957
|
-
FfiConverterTypeOnchainWallet.lower(onchainWallet)
|
|
4227
|
+
FfiConverterTypeWalletOpenArgs.lower(args)
|
|
4958
4228
|
);
|
|
4959
4229
|
},
|
|
4960
4230
|
/*pollFunc:*/ nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64,
|
|
@@ -4965,9 +4235,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
4965
4235
|
/*liftFunc:*/ FfiConverterTypeWallet.lift.bind(FfiConverterTypeWallet),
|
|
4966
4236
|
/*liftString:*/ FfiConverterString.lift,
|
|
4967
4237
|
/*asyncOpts:*/ asyncOpts_,
|
|
4968
|
-
/*errorHandler:*/
|
|
4969
|
-
FfiConverterTypeBarkError
|
|
4970
|
-
)
|
|
4238
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
4971
4239
|
);
|
|
4972
4240
|
} catch (__error: any) {
|
|
4973
4241
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5002,9 +4270,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5002
4270
|
),
|
|
5003
4271
|
/*liftString:*/ FfiConverterString.lift,
|
|
5004
4272
|
/*asyncOpts:*/ asyncOpts_,
|
|
5005
|
-
/*errorHandler:*/
|
|
5006
|
-
FfiConverterTypeBarkError
|
|
5007
|
-
)
|
|
4273
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5008
4274
|
);
|
|
5009
4275
|
} catch (__error: any) {
|
|
5010
4276
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5039,9 +4305,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5039
4305
|
),
|
|
5040
4306
|
/*liftString:*/ FfiConverterString.lift,
|
|
5041
4307
|
/*asyncOpts:*/ asyncOpts_,
|
|
5042
|
-
/*errorHandler:*/
|
|
5043
|
-
FfiConverterTypeBarkError
|
|
5044
|
-
)
|
|
4308
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5045
4309
|
);
|
|
5046
4310
|
} catch (__error: any) {
|
|
5047
4311
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5074,9 +4338,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5074
4338
|
/*liftFunc:*/ (_v) => {},
|
|
5075
4339
|
/*liftString:*/ FfiConverterString.lift,
|
|
5076
4340
|
/*asyncOpts:*/ asyncOpts_,
|
|
5077
|
-
/*errorHandler:*/
|
|
5078
|
-
FfiConverterTypeBarkError
|
|
5079
|
-
)
|
|
4341
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5080
4342
|
);
|
|
5081
4343
|
} catch (__error: any) {
|
|
5082
4344
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5143,9 +4405,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5143
4405
|
/*liftFunc:*/ (_v) => {},
|
|
5144
4406
|
/*liftString:*/ FfiConverterString.lift,
|
|
5145
4407
|
/*asyncOpts:*/ asyncOpts_,
|
|
5146
|
-
/*errorHandler:*/
|
|
5147
|
-
FfiConverterTypeBarkError
|
|
5148
|
-
)
|
|
4408
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5149
4409
|
);
|
|
5150
4410
|
} catch (__error: any) {
|
|
5151
4411
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5180,9 +4440,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5180
4440
|
),
|
|
5181
4441
|
/*liftString:*/ FfiConverterString.lift,
|
|
5182
4442
|
/*asyncOpts:*/ asyncOpts_,
|
|
5183
|
-
/*errorHandler:*/
|
|
5184
|
-
FfiConverterTypeBarkError
|
|
5185
|
-
)
|
|
4443
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5186
4444
|
);
|
|
5187
4445
|
} catch (__error: any) {
|
|
5188
4446
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5219,9 +4477,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5219
4477
|
),
|
|
5220
4478
|
/*liftString:*/ FfiConverterString.lift,
|
|
5221
4479
|
/*asyncOpts:*/ asyncOpts_,
|
|
5222
|
-
/*errorHandler:*/
|
|
5223
|
-
FfiConverterTypeBarkError
|
|
5224
|
-
)
|
|
4480
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5225
4481
|
);
|
|
5226
4482
|
} catch (__error: any) {
|
|
5227
4483
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5260,9 +4516,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5260
4516
|
),
|
|
5261
4517
|
/*liftString:*/ FfiConverterString.lift,
|
|
5262
4518
|
/*asyncOpts:*/ asyncOpts_,
|
|
5263
|
-
/*errorHandler:*/
|
|
5264
|
-
FfiConverterTypeBarkError
|
|
5265
|
-
)
|
|
4519
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5266
4520
|
);
|
|
5267
4521
|
} catch (__error: any) {
|
|
5268
4522
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5301,9 +4555,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5301
4555
|
),
|
|
5302
4556
|
/*liftString:*/ FfiConverterString.lift,
|
|
5303
4557
|
/*asyncOpts:*/ asyncOpts_,
|
|
5304
|
-
/*errorHandler:*/
|
|
5305
|
-
FfiConverterTypeBarkError
|
|
5306
|
-
)
|
|
4558
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5307
4559
|
);
|
|
5308
4560
|
} catch (__error: any) {
|
|
5309
4561
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5338,9 +4590,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5338
4590
|
/*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
5339
4591
|
/*liftString:*/ FfiConverterString.lift,
|
|
5340
4592
|
/*asyncOpts:*/ asyncOpts_,
|
|
5341
|
-
/*errorHandler:*/
|
|
5342
|
-
FfiConverterTypeBarkError
|
|
5343
|
-
)
|
|
4593
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5344
4594
|
);
|
|
5345
4595
|
} catch (__error: any) {
|
|
5346
4596
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5371,9 +4621,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5371
4621
|
/*liftFunc:*/ (_v) => {},
|
|
5372
4622
|
/*liftString:*/ FfiConverterString.lift,
|
|
5373
4623
|
/*asyncOpts:*/ asyncOpts_,
|
|
5374
|
-
/*errorHandler:*/
|
|
5375
|
-
FfiConverterTypeBarkError
|
|
5376
|
-
)
|
|
4624
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5377
4625
|
);
|
|
5378
4626
|
} catch (__error: any) {
|
|
5379
4627
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5406,9 +4654,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5406
4654
|
/*liftFunc:*/ (_v) => {},
|
|
5407
4655
|
/*liftString:*/ FfiConverterString.lift,
|
|
5408
4656
|
/*asyncOpts:*/ asyncOpts_,
|
|
5409
|
-
/*errorHandler:*/
|
|
5410
|
-
FfiConverterTypeBarkError
|
|
5411
|
-
)
|
|
4657
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5412
4658
|
);
|
|
5413
4659
|
} catch (__error: any) {
|
|
5414
4660
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5441,9 +4687,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5441
4687
|
/*liftFunc:*/ (_v) => {},
|
|
5442
4688
|
/*liftString:*/ FfiConverterString.lift,
|
|
5443
4689
|
/*asyncOpts:*/ asyncOpts_,
|
|
5444
|
-
/*errorHandler:*/
|
|
5445
|
-
FfiConverterTypeBarkError
|
|
5446
|
-
)
|
|
4690
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5447
4691
|
);
|
|
5448
4692
|
} catch (__error: any) {
|
|
5449
4693
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5455,7 +4699,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5455
4699
|
|
|
5456
4700
|
async checkLightningPayment(
|
|
5457
4701
|
paymentHash: string,
|
|
5458
|
-
wait: boolean,
|
|
4702
|
+
wait: boolean = false,
|
|
5459
4703
|
asyncOpts_?: { signal: AbortSignal }
|
|
5460
4704
|
): Promise<LightningSendStatus> /*throws*/ {
|
|
5461
4705
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
@@ -5482,9 +4726,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5482
4726
|
),
|
|
5483
4727
|
/*liftString:*/ FfiConverterString.lift,
|
|
5484
4728
|
/*asyncOpts:*/ asyncOpts_,
|
|
5485
|
-
/*errorHandler:*/
|
|
5486
|
-
FfiConverterTypeBarkError
|
|
5487
|
-
)
|
|
4729
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5488
4730
|
);
|
|
5489
4731
|
} catch (__error: any) {
|
|
5490
4732
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5514,9 +4756,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5514
4756
|
/*liftFunc:*/ FfiConverterUInt64.lift.bind(FfiConverterUInt64),
|
|
5515
4757
|
/*liftString:*/ FfiConverterString.lift,
|
|
5516
4758
|
/*asyncOpts:*/ asyncOpts_,
|
|
5517
|
-
/*errorHandler:*/
|
|
5518
|
-
FfiConverterTypeBarkError
|
|
5519
|
-
)
|
|
4759
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5520
4760
|
);
|
|
5521
4761
|
} catch (__error: any) {
|
|
5522
4762
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5587,9 +4827,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5587
4827
|
),
|
|
5588
4828
|
/*liftString:*/ FfiConverterString.lift,
|
|
5589
4829
|
/*asyncOpts:*/ asyncOpts_,
|
|
5590
|
-
/*errorHandler:*/
|
|
5591
|
-
FfiConverterTypeBarkError
|
|
5592
|
-
)
|
|
4830
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5593
4831
|
);
|
|
5594
4832
|
} catch (__error: any) {
|
|
5595
4833
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5626,9 +4864,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5626
4864
|
),
|
|
5627
4865
|
/*liftString:*/ FfiConverterString.lift,
|
|
5628
4866
|
/*asyncOpts:*/ asyncOpts_,
|
|
5629
|
-
/*errorHandler:*/
|
|
5630
|
-
FfiConverterTypeBarkError
|
|
5631
|
-
)
|
|
4867
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5632
4868
|
);
|
|
5633
4869
|
} catch (__error: any) {
|
|
5634
4870
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5665,9 +4901,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5665
4901
|
),
|
|
5666
4902
|
/*liftString:*/ FfiConverterString.lift,
|
|
5667
4903
|
/*asyncOpts:*/ asyncOpts_,
|
|
5668
|
-
/*errorHandler:*/
|
|
5669
|
-
FfiConverterTypeBarkError
|
|
5670
|
-
)
|
|
4904
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5671
4905
|
);
|
|
5672
4906
|
} catch (__error: any) {
|
|
5673
4907
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5704,9 +4938,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5704
4938
|
),
|
|
5705
4939
|
/*liftString:*/ FfiConverterString.lift,
|
|
5706
4940
|
/*asyncOpts:*/ asyncOpts_,
|
|
5707
|
-
/*errorHandler:*/
|
|
5708
|
-
FfiConverterTypeBarkError
|
|
5709
|
-
)
|
|
4941
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5710
4942
|
);
|
|
5711
4943
|
} catch (__error: any) {
|
|
5712
4944
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5743,9 +4975,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5743
4975
|
),
|
|
5744
4976
|
/*liftString:*/ FfiConverterString.lift,
|
|
5745
4977
|
/*asyncOpts:*/ asyncOpts_,
|
|
5746
|
-
/*errorHandler:*/
|
|
5747
|
-
FfiConverterTypeBarkError
|
|
5748
|
-
)
|
|
4978
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5749
4979
|
);
|
|
5750
4980
|
} catch (__error: any) {
|
|
5751
4981
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5782,9 +5012,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5782
5012
|
),
|
|
5783
5013
|
/*liftString:*/ FfiConverterString.lift,
|
|
5784
5014
|
/*asyncOpts:*/ asyncOpts_,
|
|
5785
|
-
/*errorHandler:*/
|
|
5786
|
-
FfiConverterTypeBarkError
|
|
5787
|
-
)
|
|
5015
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5788
5016
|
);
|
|
5789
5017
|
} catch (__error: any) {
|
|
5790
5018
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5823,9 +5051,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5823
5051
|
),
|
|
5824
5052
|
/*liftString:*/ FfiConverterString.lift,
|
|
5825
5053
|
/*asyncOpts:*/ asyncOpts_,
|
|
5826
|
-
/*errorHandler:*/
|
|
5827
|
-
FfiConverterTypeBarkError
|
|
5828
|
-
)
|
|
5054
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5829
5055
|
);
|
|
5830
5056
|
} catch (__error: any) {
|
|
5831
5057
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5862,9 +5088,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5862
5088
|
),
|
|
5863
5089
|
/*liftString:*/ FfiConverterString.lift,
|
|
5864
5090
|
/*asyncOpts:*/ asyncOpts_,
|
|
5865
|
-
/*errorHandler:*/
|
|
5866
|
-
FfiConverterTypeBarkError
|
|
5867
|
-
)
|
|
5091
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5868
5092
|
);
|
|
5869
5093
|
} catch (__error: any) {
|
|
5870
5094
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5903,9 +5127,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5903
5127
|
),
|
|
5904
5128
|
/*liftString:*/ FfiConverterString.lift,
|
|
5905
5129
|
/*asyncOpts:*/ asyncOpts_,
|
|
5906
|
-
/*errorHandler:*/
|
|
5907
|
-
FfiConverterTypeBarkError
|
|
5908
|
-
)
|
|
5130
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5909
5131
|
);
|
|
5910
5132
|
} catch (__error: any) {
|
|
5911
5133
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5960,9 +5182,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5960
5182
|
),
|
|
5961
5183
|
/*liftString:*/ FfiConverterString.lift,
|
|
5962
5184
|
/*asyncOpts:*/ asyncOpts_,
|
|
5963
|
-
/*errorHandler:*/
|
|
5964
|
-
FfiConverterTypeBarkError
|
|
5965
|
-
)
|
|
5185
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
5966
5186
|
);
|
|
5967
5187
|
} catch (__error: any) {
|
|
5968
5188
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -5997,9 +5217,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
5997
5217
|
),
|
|
5998
5218
|
/*liftString:*/ FfiConverterString.lift,
|
|
5999
5219
|
/*asyncOpts:*/ asyncOpts_,
|
|
6000
|
-
/*errorHandler:*/
|
|
6001
|
-
FfiConverterTypeBarkError
|
|
6002
|
-
)
|
|
5220
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6003
5221
|
);
|
|
6004
5222
|
} catch (__error: any) {
|
|
6005
5223
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6036,9 +5254,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6036
5254
|
),
|
|
6037
5255
|
/*liftString:*/ FfiConverterString.lift,
|
|
6038
5256
|
/*asyncOpts:*/ asyncOpts_,
|
|
6039
|
-
/*errorHandler:*/
|
|
6040
|
-
FfiConverterTypeBarkError
|
|
6041
|
-
)
|
|
5257
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6042
5258
|
);
|
|
6043
5259
|
} catch (__error: any) {
|
|
6044
5260
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6073,9 +5289,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6073
5289
|
),
|
|
6074
5290
|
/*liftString:*/ FfiConverterString.lift,
|
|
6075
5291
|
/*asyncOpts:*/ asyncOpts_,
|
|
6076
|
-
/*errorHandler:*/
|
|
6077
|
-
FfiConverterTypeBarkError
|
|
6078
|
-
)
|
|
5292
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6079
5293
|
);
|
|
6080
5294
|
} catch (__error: any) {
|
|
6081
5295
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6110,9 +5324,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6110
5324
|
),
|
|
6111
5325
|
/*liftString:*/ FfiConverterString.lift,
|
|
6112
5326
|
/*asyncOpts:*/ asyncOpts_,
|
|
6113
|
-
/*errorHandler:*/
|
|
6114
|
-
FfiConverterTypeBarkError
|
|
6115
|
-
)
|
|
5327
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6116
5328
|
);
|
|
6117
5329
|
} catch (__error: any) {
|
|
6118
5330
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6147,9 +5359,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6147
5359
|
/*liftFunc:*/ FfiConverterTypeVtxo.lift.bind(FfiConverterTypeVtxo),
|
|
6148
5360
|
/*liftString:*/ FfiConverterString.lift,
|
|
6149
5361
|
/*asyncOpts:*/ asyncOpts_,
|
|
6150
|
-
/*errorHandler:*/
|
|
6151
|
-
FfiConverterTypeBarkError
|
|
6152
|
-
)
|
|
5362
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6153
5363
|
);
|
|
6154
5364
|
} catch (__error: any) {
|
|
6155
5365
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6184,9 +5394,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6184
5394
|
),
|
|
6185
5395
|
/*liftString:*/ FfiConverterString.lift,
|
|
6186
5396
|
/*asyncOpts:*/ asyncOpts_,
|
|
6187
|
-
/*errorHandler:*/
|
|
6188
|
-
FfiConverterTypeBarkError
|
|
6189
|
-
)
|
|
5397
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6190
5398
|
);
|
|
6191
5399
|
} catch (__error: any) {
|
|
6192
5400
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6216,9 +5424,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6216
5424
|
/*liftFunc:*/ FfiConverterBool.lift.bind(FfiConverterBool),
|
|
6217
5425
|
/*liftString:*/ FfiConverterString.lift,
|
|
6218
5426
|
/*asyncOpts:*/ asyncOpts_,
|
|
6219
|
-
/*errorHandler:*/
|
|
6220
|
-
FfiConverterTypeBarkError
|
|
6221
|
-
)
|
|
5427
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6222
5428
|
);
|
|
6223
5429
|
} catch (__error: any) {
|
|
6224
5430
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6253,9 +5459,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6253
5459
|
),
|
|
6254
5460
|
/*liftString:*/ FfiConverterString.lift,
|
|
6255
5461
|
/*asyncOpts:*/ asyncOpts_,
|
|
6256
|
-
/*errorHandler:*/
|
|
6257
|
-
FfiConverterTypeBarkError
|
|
6258
|
-
)
|
|
5462
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6259
5463
|
);
|
|
6260
5464
|
} catch (__error: any) {
|
|
6261
5465
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6294,9 +5498,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6294
5498
|
),
|
|
6295
5499
|
/*liftString:*/ FfiConverterString.lift,
|
|
6296
5500
|
/*asyncOpts:*/ asyncOpts_,
|
|
6297
|
-
/*errorHandler:*/
|
|
6298
|
-
FfiConverterTypeBarkError
|
|
6299
|
-
)
|
|
5501
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6300
5502
|
);
|
|
6301
5503
|
} catch (__error: any) {
|
|
6302
5504
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6329,9 +5531,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6329
5531
|
/*liftFunc:*/ (_v) => {},
|
|
6330
5532
|
/*liftString:*/ FfiConverterString.lift,
|
|
6331
5533
|
/*asyncOpts:*/ asyncOpts_,
|
|
6332
|
-
/*errorHandler:*/
|
|
6333
|
-
FfiConverterTypeBarkError
|
|
6334
|
-
)
|
|
5534
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6335
5535
|
);
|
|
6336
5536
|
} catch (__error: any) {
|
|
6337
5537
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6363,9 +5563,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6363
5563
|
/*liftFunc:*/ FfiConverterBool.lift.bind(FfiConverterBool),
|
|
6364
5564
|
/*liftString:*/ FfiConverterString.lift,
|
|
6365
5565
|
/*asyncOpts:*/ asyncOpts_,
|
|
6366
|
-
/*errorHandler:*/
|
|
6367
|
-
FfiConverterTypeBarkError
|
|
6368
|
-
)
|
|
5566
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6369
5567
|
);
|
|
6370
5568
|
} catch (__error: any) {
|
|
6371
5569
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6402,9 +5600,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6402
5600
|
),
|
|
6403
5601
|
/*liftString:*/ FfiConverterString.lift,
|
|
6404
5602
|
/*asyncOpts:*/ asyncOpts_,
|
|
6405
|
-
/*errorHandler:*/
|
|
6406
|
-
FfiConverterTypeBarkError
|
|
6407
|
-
)
|
|
5603
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6408
5604
|
);
|
|
6409
5605
|
} catch (__error: any) {
|
|
6410
5606
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6441,9 +5637,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6441
5637
|
),
|
|
6442
5638
|
/*liftString:*/ FfiConverterString.lift,
|
|
6443
5639
|
/*asyncOpts:*/ asyncOpts_,
|
|
6444
|
-
/*errorHandler:*/
|
|
6445
|
-
FfiConverterTypeBarkError
|
|
6446
|
-
)
|
|
5640
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6447
5641
|
);
|
|
6448
5642
|
} catch (__error: any) {
|
|
6449
5643
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6478,9 +5672,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6478
5672
|
),
|
|
6479
5673
|
/*liftString:*/ FfiConverterString.lift,
|
|
6480
5674
|
/*asyncOpts:*/ asyncOpts_,
|
|
6481
|
-
/*errorHandler:*/
|
|
6482
|
-
FfiConverterTypeBarkError
|
|
6483
|
-
)
|
|
5675
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6484
5676
|
);
|
|
6485
5677
|
} catch (__error: any) {
|
|
6486
5678
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6493,9 +5685,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6493
5685
|
mailboxAuthorization(): string /*throws*/ {
|
|
6494
5686
|
return FfiConverterString.lift(
|
|
6495
5687
|
uniffiCaller.rustCallWithError(
|
|
6496
|
-
/*liftError:*/
|
|
6497
|
-
FfiConverterTypeBarkError
|
|
6498
|
-
),
|
|
5688
|
+
/*liftError:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError),
|
|
6499
5689
|
/*caller:*/ (callStatus) => {
|
|
6500
5690
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_mailbox_authorization(
|
|
6501
5691
|
uniffiTypeWalletObjectFactory.clonePointer(this),
|
|
@@ -6510,9 +5700,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6510
5700
|
mailboxIdentifier(): string /*throws*/ {
|
|
6511
5701
|
return FfiConverterString.lift(
|
|
6512
5702
|
uniffiCaller.rustCallWithError(
|
|
6513
|
-
/*liftError:*/
|
|
6514
|
-
FfiConverterTypeBarkError
|
|
6515
|
-
),
|
|
5703
|
+
/*liftError:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError),
|
|
6516
5704
|
/*caller:*/ (callStatus) => {
|
|
6517
5705
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_mailbox_identifier(
|
|
6518
5706
|
uniffiTypeWalletObjectFactory.clonePointer(this),
|
|
@@ -6545,9 +5733,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6545
5733
|
/*liftFunc:*/ (_v) => {},
|
|
6546
5734
|
/*liftString:*/ FfiConverterString.lift,
|
|
6547
5735
|
/*asyncOpts:*/ asyncOpts_,
|
|
6548
|
-
/*errorHandler:*/
|
|
6549
|
-
FfiConverterTypeBarkError
|
|
6550
|
-
)
|
|
5736
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6551
5737
|
);
|
|
6552
5738
|
} catch (__error: any) {
|
|
6553
5739
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6578,9 +5764,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6578
5764
|
/*liftFunc:*/ (_v) => {},
|
|
6579
5765
|
/*liftString:*/ FfiConverterString.lift,
|
|
6580
5766
|
/*asyncOpts:*/ asyncOpts_,
|
|
6581
|
-
/*errorHandler:*/
|
|
6582
|
-
FfiConverterTypeBarkError
|
|
6583
|
-
)
|
|
5767
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6584
5768
|
);
|
|
6585
5769
|
} catch (__error: any) {
|
|
6586
5770
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6615,9 +5799,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6615
5799
|
),
|
|
6616
5800
|
/*liftString:*/ FfiConverterString.lift,
|
|
6617
5801
|
/*asyncOpts:*/ asyncOpts_,
|
|
6618
|
-
/*errorHandler:*/
|
|
6619
|
-
FfiConverterTypeBarkError
|
|
6620
|
-
)
|
|
5802
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6621
5803
|
);
|
|
6622
5804
|
} catch (__error: any) {
|
|
6623
5805
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6650,9 +5832,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6650
5832
|
/*liftFunc:*/ (_v) => {},
|
|
6651
5833
|
/*liftString:*/ FfiConverterString.lift,
|
|
6652
5834
|
/*asyncOpts:*/ asyncOpts_,
|
|
6653
|
-
/*errorHandler:*/
|
|
6654
|
-
FfiConverterTypeBarkError
|
|
6655
|
-
)
|
|
5835
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6656
5836
|
);
|
|
6657
5837
|
} catch (__error: any) {
|
|
6658
5838
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6685,46 +5865,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6685
5865
|
/*liftFunc:*/ (_v) => {},
|
|
6686
5866
|
/*liftString:*/ FfiConverterString.lift,
|
|
6687
5867
|
/*asyncOpts:*/ asyncOpts_,
|
|
6688
|
-
/*errorHandler:*/
|
|
6689
|
-
FfiConverterTypeBarkError
|
|
6690
|
-
)
|
|
6691
|
-
);
|
|
6692
|
-
} catch (__error: any) {
|
|
6693
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
6694
|
-
__error.stack = __stack;
|
|
6695
|
-
}
|
|
6696
|
-
throw __error;
|
|
6697
|
-
}
|
|
6698
|
-
}
|
|
6699
|
-
|
|
6700
|
-
async maybeScheduleMaintenanceRefresh(asyncOpts_?: {
|
|
6701
|
-
signal: AbortSignal;
|
|
6702
|
-
}): Promise</*u32*/ number | undefined> /*throws*/ {
|
|
6703
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
6704
|
-
try {
|
|
6705
|
-
return await uniffiRustCallAsync(
|
|
6706
|
-
/*rustCaller:*/ uniffiCaller,
|
|
6707
|
-
/*rustFutureFunc:*/ () => {
|
|
6708
|
-
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_maybe_schedule_maintenance_refresh(
|
|
6709
|
-
uniffiTypeWalletObjectFactory.clonePointer(this)
|
|
6710
|
-
);
|
|
6711
|
-
},
|
|
6712
|
-
/*pollFunc:*/ nativeModule()
|
|
6713
|
-
.ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer,
|
|
6714
|
-
/*cancelFunc:*/ nativeModule()
|
|
6715
|
-
.ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer,
|
|
6716
|
-
/*completeFunc:*/ nativeModule()
|
|
6717
|
-
.ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer,
|
|
6718
|
-
/*freeFunc:*/ nativeModule()
|
|
6719
|
-
.ubrn_ffi_bark_ffi_rust_future_free_rust_buffer,
|
|
6720
|
-
/*liftFunc:*/ FfiConverterOptionalUInt32.lift.bind(
|
|
6721
|
-
FfiConverterOptionalUInt32
|
|
6722
|
-
),
|
|
6723
|
-
/*liftString:*/ FfiConverterString.lift,
|
|
6724
|
-
/*asyncOpts:*/ asyncOpts_,
|
|
6725
|
-
/*errorHandler:*/ FfiConverterTypeBarkError.lift.bind(
|
|
6726
|
-
FfiConverterTypeBarkError
|
|
6727
|
-
)
|
|
5868
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6728
5869
|
);
|
|
6729
5870
|
} catch (__error: any) {
|
|
6730
5871
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6759,9 +5900,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6759
5900
|
),
|
|
6760
5901
|
/*liftString:*/ FfiConverterString.lift,
|
|
6761
5902
|
/*asyncOpts:*/ asyncOpts_,
|
|
6762
|
-
/*errorHandler:*/
|
|
6763
|
-
FfiConverterTypeBarkError
|
|
6764
|
-
)
|
|
5903
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6765
5904
|
);
|
|
6766
5905
|
} catch (__error: any) {
|
|
6767
5906
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6794,9 +5933,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6794
5933
|
/*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
6795
5934
|
/*liftString:*/ FfiConverterString.lift,
|
|
6796
5935
|
/*asyncOpts:*/ asyncOpts_,
|
|
6797
|
-
/*errorHandler:*/
|
|
6798
|
-
FfiConverterTypeBarkError
|
|
6799
|
-
)
|
|
5936
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6800
5937
|
);
|
|
6801
5938
|
} catch (__error: any) {
|
|
6802
5939
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6831,9 +5968,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6831
5968
|
),
|
|
6832
5969
|
/*liftString:*/ FfiConverterString.lift,
|
|
6833
5970
|
/*asyncOpts:*/ asyncOpts_,
|
|
6834
|
-
/*errorHandler:*/
|
|
6835
|
-
FfiConverterTypeBarkError
|
|
6836
|
-
)
|
|
5971
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6837
5972
|
);
|
|
6838
5973
|
} catch (__error: any) {
|
|
6839
5974
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6863,9 +5998,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6863
5998
|
/*liftFunc:*/ FfiConverterUInt64.lift.bind(FfiConverterUInt64),
|
|
6864
5999
|
/*liftString:*/ FfiConverterString.lift,
|
|
6865
6000
|
/*asyncOpts:*/ asyncOpts_,
|
|
6866
|
-
/*errorHandler:*/
|
|
6867
|
-
FfiConverterTypeBarkError
|
|
6868
|
-
)
|
|
6001
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6869
6002
|
);
|
|
6870
6003
|
} catch (__error: any) {
|
|
6871
6004
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6916,9 +6049,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6916
6049
|
),
|
|
6917
6050
|
/*liftString:*/ FfiConverterString.lift,
|
|
6918
6051
|
/*asyncOpts:*/ asyncOpts_,
|
|
6919
|
-
/*errorHandler:*/
|
|
6920
|
-
FfiConverterTypeBarkError
|
|
6921
|
-
)
|
|
6052
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6922
6053
|
);
|
|
6923
6054
|
} catch (__error: any) {
|
|
6924
6055
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6955,9 +6086,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6955
6086
|
/*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
6956
6087
|
/*liftString:*/ FfiConverterString.lift,
|
|
6957
6088
|
/*asyncOpts:*/ asyncOpts_,
|
|
6958
|
-
/*errorHandler:*/
|
|
6959
|
-
FfiConverterTypeBarkError
|
|
6960
|
-
)
|
|
6089
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
6961
6090
|
);
|
|
6962
6091
|
} catch (__error: any) {
|
|
6963
6092
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -6974,7 +6103,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
6974
6103
|
lightningAddress: string,
|
|
6975
6104
|
amountSats: /*u64*/ bigint,
|
|
6976
6105
|
comment: string | undefined,
|
|
6977
|
-
wait: boolean,
|
|
6106
|
+
wait: boolean = false,
|
|
6978
6107
|
asyncOpts_?: { signal: AbortSignal }
|
|
6979
6108
|
): Promise<LightningSendStatus> /*throws*/ {
|
|
6980
6109
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
@@ -7003,9 +6132,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7003
6132
|
),
|
|
7004
6133
|
/*liftString:*/ FfiConverterString.lift,
|
|
7005
6134
|
/*asyncOpts:*/ asyncOpts_,
|
|
7006
|
-
/*errorHandler:*/
|
|
7007
|
-
FfiConverterTypeBarkError
|
|
7008
|
-
)
|
|
6135
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7009
6136
|
);
|
|
7010
6137
|
} catch (__error: any) {
|
|
7011
6138
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7018,7 +6145,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7018
6145
|
async payLightningInvoice(
|
|
7019
6146
|
invoice: string,
|
|
7020
6147
|
amountSats: /*u64*/ bigint | undefined,
|
|
7021
|
-
wait: boolean,
|
|
6148
|
+
wait: boolean = false,
|
|
7022
6149
|
asyncOpts_?: { signal: AbortSignal }
|
|
7023
6150
|
): Promise<LightningSendStatus> /*throws*/ {
|
|
7024
6151
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
@@ -7046,9 +6173,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7046
6173
|
),
|
|
7047
6174
|
/*liftString:*/ FfiConverterString.lift,
|
|
7048
6175
|
/*asyncOpts:*/ asyncOpts_,
|
|
7049
|
-
/*errorHandler:*/
|
|
7050
|
-
FfiConverterTypeBarkError
|
|
7051
|
-
)
|
|
6176
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7052
6177
|
);
|
|
7053
6178
|
} catch (__error: any) {
|
|
7054
6179
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7061,7 +6186,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7061
6186
|
async payLightningOffer(
|
|
7062
6187
|
offer: string,
|
|
7063
6188
|
amountSats: /*u64*/ bigint | undefined,
|
|
7064
|
-
wait: boolean,
|
|
6189
|
+
wait: boolean = false,
|
|
7065
6190
|
asyncOpts_?: { signal: AbortSignal }
|
|
7066
6191
|
): Promise<LightningSendStatus> /*throws*/ {
|
|
7067
6192
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
@@ -7089,9 +6214,56 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7089
6214
|
),
|
|
7090
6215
|
/*liftString:*/ FfiConverterString.lift,
|
|
7091
6216
|
/*asyncOpts:*/ asyncOpts_,
|
|
7092
|
-
/*errorHandler:*/
|
|
7093
|
-
|
|
7094
|
-
|
|
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)
|
|
7095
6267
|
);
|
|
7096
6268
|
} catch (__error: any) {
|
|
7097
6269
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7126,9 +6298,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7126
6298
|
/*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
7127
6299
|
/*liftString:*/ FfiConverterString.lift,
|
|
7128
6300
|
/*asyncOpts:*/ asyncOpts_,
|
|
7129
|
-
/*errorHandler:*/
|
|
7130
|
-
FfiConverterTypeBarkError
|
|
7131
|
-
)
|
|
6301
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7132
6302
|
);
|
|
7133
6303
|
} catch (__error: any) {
|
|
7134
6304
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7163,9 +6333,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7163
6333
|
),
|
|
7164
6334
|
/*liftString:*/ FfiConverterString.lift,
|
|
7165
6335
|
/*asyncOpts:*/ asyncOpts_,
|
|
7166
|
-
/*errorHandler:*/
|
|
7167
|
-
FfiConverterTypeBarkError
|
|
7168
|
-
)
|
|
6336
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7169
6337
|
);
|
|
7170
6338
|
} catch (__error: any) {
|
|
7171
6339
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7200,9 +6368,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7200
6368
|
),
|
|
7201
6369
|
/*liftString:*/ FfiConverterString.lift,
|
|
7202
6370
|
/*asyncOpts:*/ asyncOpts_,
|
|
7203
|
-
/*errorHandler:*/
|
|
7204
|
-
FfiConverterTypeBarkError
|
|
7205
|
-
)
|
|
6371
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7206
6372
|
);
|
|
7207
6373
|
} catch (__error: any) {
|
|
7208
6374
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7232,9 +6398,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7232
6398
|
/*liftFunc:*/ FfiConverterUInt64.lift.bind(FfiConverterUInt64),
|
|
7233
6399
|
/*liftString:*/ FfiConverterString.lift,
|
|
7234
6400
|
/*asyncOpts:*/ asyncOpts_,
|
|
7235
|
-
/*errorHandler:*/
|
|
7236
|
-
FfiConverterTypeBarkError
|
|
7237
|
-
)
|
|
6401
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7238
6402
|
);
|
|
7239
6403
|
} catch (__error: any) {
|
|
7240
6404
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7269,9 +6433,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7269
6433
|
),
|
|
7270
6434
|
/*liftString:*/ FfiConverterString.lift,
|
|
7271
6435
|
/*asyncOpts:*/ asyncOpts_,
|
|
7272
|
-
/*errorHandler:*/
|
|
7273
|
-
FfiConverterTypeBarkError
|
|
7274
|
-
)
|
|
6436
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7275
6437
|
);
|
|
7276
6438
|
} catch (__error: any) {
|
|
7277
6439
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7306,9 +6468,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7306
6468
|
),
|
|
7307
6469
|
/*liftString:*/ FfiConverterString.lift,
|
|
7308
6470
|
/*asyncOpts:*/ asyncOpts_,
|
|
7309
|
-
/*errorHandler:*/
|
|
7310
|
-
FfiConverterTypeBarkError
|
|
7311
|
-
)
|
|
6471
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7312
6472
|
);
|
|
7313
6473
|
} catch (__error: any) {
|
|
7314
6474
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7343,9 +6503,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7343
6503
|
),
|
|
7344
6504
|
/*liftString:*/ FfiConverterString.lift,
|
|
7345
6505
|
/*asyncOpts:*/ asyncOpts_,
|
|
7346
|
-
/*errorHandler:*/
|
|
7347
|
-
FfiConverterTypeBarkError
|
|
7348
|
-
)
|
|
6506
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7349
6507
|
);
|
|
7350
6508
|
} catch (__error: any) {
|
|
7351
6509
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7380,9 +6538,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7380
6538
|
),
|
|
7381
6539
|
/*liftString:*/ FfiConverterString.lift,
|
|
7382
6540
|
/*asyncOpts:*/ asyncOpts_,
|
|
7383
|
-
/*errorHandler:*/
|
|
7384
|
-
FfiConverterTypeBarkError
|
|
7385
|
-
)
|
|
6541
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7386
6542
|
);
|
|
7387
6543
|
} catch (__error: any) {
|
|
7388
6544
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7417,9 +6573,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7417
6573
|
),
|
|
7418
6574
|
/*liftString:*/ FfiConverterString.lift,
|
|
7419
6575
|
/*asyncOpts:*/ asyncOpts_,
|
|
7420
|
-
/*errorHandler:*/
|
|
7421
|
-
FfiConverterTypeBarkError
|
|
7422
|
-
)
|
|
6576
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7423
6577
|
);
|
|
7424
6578
|
} catch (__error: any) {
|
|
7425
6579
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7458,9 +6612,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7458
6612
|
),
|
|
7459
6613
|
/*liftString:*/ FfiConverterString.lift,
|
|
7460
6614
|
/*asyncOpts:*/ asyncOpts_,
|
|
7461
|
-
/*errorHandler:*/
|
|
7462
|
-
FfiConverterTypeBarkError
|
|
7463
|
-
)
|
|
6615
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7464
6616
|
);
|
|
7465
6617
|
} catch (__error: any) {
|
|
7466
6618
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7491,9 +6643,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7491
6643
|
/*liftFunc:*/ (_v) => {},
|
|
7492
6644
|
/*liftString:*/ FfiConverterString.lift,
|
|
7493
6645
|
/*asyncOpts:*/ asyncOpts_,
|
|
7494
|
-
/*errorHandler:*/
|
|
7495
|
-
FfiConverterTypeBarkError
|
|
7496
|
-
)
|
|
6646
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7497
6647
|
);
|
|
7498
6648
|
} catch (__error: any) {
|
|
7499
6649
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7528,9 +6678,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7528
6678
|
),
|
|
7529
6679
|
/*liftString:*/ FfiConverterString.lift,
|
|
7530
6680
|
/*asyncOpts:*/ asyncOpts_,
|
|
7531
|
-
/*errorHandler:*/
|
|
7532
|
-
FfiConverterTypeBarkError
|
|
7533
|
-
)
|
|
6681
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7534
6682
|
);
|
|
7535
6683
|
} catch (__error: any) {
|
|
7536
6684
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7561,9 +6709,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7561
6709
|
/*liftFunc:*/ (_v) => {},
|
|
7562
6710
|
/*liftString:*/ FfiConverterString.lift,
|
|
7563
6711
|
/*asyncOpts:*/ asyncOpts_,
|
|
7564
|
-
/*errorHandler:*/
|
|
7565
|
-
FfiConverterTypeBarkError
|
|
7566
|
-
)
|
|
6712
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7567
6713
|
);
|
|
7568
6714
|
} catch (__error: any) {
|
|
7569
6715
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7600,9 +6746,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7600
6746
|
),
|
|
7601
6747
|
/*liftString:*/ FfiConverterString.lift,
|
|
7602
6748
|
/*asyncOpts:*/ asyncOpts_,
|
|
7603
|
-
/*errorHandler:*/
|
|
7604
|
-
FfiConverterTypeBarkError
|
|
7605
|
-
)
|
|
6749
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7606
6750
|
);
|
|
7607
6751
|
} catch (__error: any) {
|
|
7608
6752
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7639,9 +6783,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7639
6783
|
),
|
|
7640
6784
|
/*liftString:*/ FfiConverterString.lift,
|
|
7641
6785
|
/*asyncOpts:*/ asyncOpts_,
|
|
7642
|
-
/*errorHandler:*/
|
|
7643
|
-
FfiConverterTypeBarkError
|
|
7644
|
-
)
|
|
6786
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7645
6787
|
);
|
|
7646
6788
|
} catch (__error: any) {
|
|
7647
6789
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7674,9 +6816,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7674
6816
|
/*liftFunc:*/ (_v) => {},
|
|
7675
6817
|
/*liftString:*/ FfiConverterString.lift,
|
|
7676
6818
|
/*asyncOpts:*/ asyncOpts_,
|
|
7677
|
-
/*errorHandler:*/
|
|
7678
|
-
FfiConverterTypeBarkError
|
|
7679
|
-
)
|
|
6819
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7680
6820
|
);
|
|
7681
6821
|
} catch (__error: any) {
|
|
7682
6822
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7690,7 +6830,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7690
6830
|
arkAddress: string,
|
|
7691
6831
|
amountSats: /*u64*/ bigint,
|
|
7692
6832
|
asyncOpts_?: { signal: AbortSignal }
|
|
7693
|
-
): Promise<
|
|
6833
|
+
): Promise<void> /*throws*/ {
|
|
7694
6834
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
7695
6835
|
try {
|
|
7696
6836
|
return await uniffiRustCallAsync(
|
|
@@ -7702,20 +6842,16 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7702
6842
|
FfiConverterUInt64.lower(amountSats)
|
|
7703
6843
|
);
|
|
7704
6844
|
},
|
|
7705
|
-
/*pollFunc:*/ nativeModule()
|
|
7706
|
-
.ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer,
|
|
6845
|
+
/*pollFunc:*/ nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void,
|
|
7707
6846
|
/*cancelFunc:*/ nativeModule()
|
|
7708
|
-
.
|
|
6847
|
+
.ubrn_ffi_bark_ffi_rust_future_cancel_void,
|
|
7709
6848
|
/*completeFunc:*/ nativeModule()
|
|
7710
|
-
.
|
|
7711
|
-
/*freeFunc:*/ nativeModule()
|
|
7712
|
-
|
|
7713
|
-
/*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) => {},
|
|
7714
6852
|
/*liftString:*/ FfiConverterString.lift,
|
|
7715
6853
|
/*asyncOpts:*/ asyncOpts_,
|
|
7716
|
-
/*errorHandler:*/
|
|
7717
|
-
FfiConverterTypeBarkError
|
|
7718
|
-
)
|
|
6854
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7719
6855
|
);
|
|
7720
6856
|
} catch (__error: any) {
|
|
7721
6857
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7752,9 +6888,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7752
6888
|
/*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
7753
6889
|
/*liftString:*/ FfiConverterString.lift,
|
|
7754
6890
|
/*asyncOpts:*/ asyncOpts_,
|
|
7755
|
-
/*errorHandler:*/
|
|
7756
|
-
FfiConverterTypeBarkError
|
|
7757
|
-
)
|
|
6891
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7758
6892
|
);
|
|
7759
6893
|
} catch (__error: any) {
|
|
7760
6894
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7789,9 +6923,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7789
6923
|
/*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
7790
6924
|
/*liftString:*/ FfiConverterString.lift,
|
|
7791
6925
|
/*asyncOpts:*/ asyncOpts_,
|
|
7792
|
-
/*errorHandler:*/
|
|
7793
|
-
FfiConverterTypeBarkError
|
|
7794
|
-
)
|
|
6926
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7795
6927
|
);
|
|
7796
6928
|
} catch (__error: any) {
|
|
7797
6929
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7826,9 +6958,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7826
6958
|
),
|
|
7827
6959
|
/*liftString:*/ FfiConverterString.lift,
|
|
7828
6960
|
/*asyncOpts:*/ asyncOpts_,
|
|
7829
|
-
/*errorHandler:*/
|
|
7830
|
-
FfiConverterTypeBarkError
|
|
7831
|
-
)
|
|
6961
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7832
6962
|
);
|
|
7833
6963
|
} catch (__error: any) {
|
|
7834
6964
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7859,9 +6989,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7859
6989
|
/*liftFunc:*/ (_v) => {},
|
|
7860
6990
|
/*liftString:*/ FfiConverterString.lift,
|
|
7861
6991
|
/*asyncOpts:*/ asyncOpts_,
|
|
7862
|
-
/*errorHandler:*/
|
|
7863
|
-
FfiConverterTypeBarkError
|
|
7864
|
-
)
|
|
6992
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7865
6993
|
);
|
|
7866
6994
|
} catch (__error: any) {
|
|
7867
6995
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7894,9 +7022,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7894
7022
|
/*liftFunc:*/ (_v) => {},
|
|
7895
7023
|
/*liftString:*/ FfiConverterString.lift,
|
|
7896
7024
|
/*asyncOpts:*/ asyncOpts_,
|
|
7897
|
-
/*errorHandler:*/
|
|
7898
|
-
FfiConverterTypeBarkError
|
|
7899
|
-
)
|
|
7025
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7900
7026
|
);
|
|
7901
7027
|
} catch (__error: any) {
|
|
7902
7028
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7927,9 +7053,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7927
7053
|
/*liftFunc:*/ (_v) => {},
|
|
7928
7054
|
/*liftString:*/ FfiConverterString.lift,
|
|
7929
7055
|
/*asyncOpts:*/ asyncOpts_,
|
|
7930
|
-
/*errorHandler:*/
|
|
7931
|
-
FfiConverterTypeBarkError
|
|
7932
|
-
)
|
|
7056
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7933
7057
|
);
|
|
7934
7058
|
} catch (__error: any) {
|
|
7935
7059
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7964,9 +7088,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7964
7088
|
),
|
|
7965
7089
|
/*liftString:*/ FfiConverterString.lift,
|
|
7966
7090
|
/*asyncOpts:*/ asyncOpts_,
|
|
7967
|
-
/*errorHandler:*/
|
|
7968
|
-
FfiConverterTypeBarkError
|
|
7969
|
-
)
|
|
7091
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
7970
7092
|
);
|
|
7971
7093
|
} catch (__error: any) {
|
|
7972
7094
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -7995,9 +7117,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
7995
7117
|
/*liftFunc:*/ (_v) => {},
|
|
7996
7118
|
/*liftString:*/ FfiConverterString.lift,
|
|
7997
7119
|
/*asyncOpts:*/ asyncOpts_,
|
|
7998
|
-
/*errorHandler:*/
|
|
7999
|
-
FfiConverterTypeBarkError
|
|
8000
|
-
)
|
|
7120
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
8001
7121
|
);
|
|
8002
7122
|
} catch (__error: any) {
|
|
8003
7123
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -8030,9 +7150,45 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
8030
7150
|
/*liftFunc:*/ (_v) => {},
|
|
8031
7151
|
/*liftString:*/ FfiConverterString.lift,
|
|
8032
7152
|
/*asyncOpts:*/ asyncOpts_,
|
|
8033
|
-
/*errorHandler:*/
|
|
8034
|
-
|
|
8035
|
-
|
|
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)
|
|
8036
7192
|
);
|
|
8037
7193
|
} catch (__error: any) {
|
|
8038
7194
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -8063,9 +7219,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
8063
7219
|
/*liftFunc:*/ (_v) => {},
|
|
8064
7220
|
/*liftString:*/ FfiConverterString.lift,
|
|
8065
7221
|
/*asyncOpts:*/ asyncOpts_,
|
|
8066
|
-
/*errorHandler:*/
|
|
8067
|
-
FfiConverterTypeBarkError
|
|
8068
|
-
)
|
|
7222
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
8069
7223
|
);
|
|
8070
7224
|
} catch (__error: any) {
|
|
8071
7225
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -8076,7 +7230,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
8076
7230
|
}
|
|
8077
7231
|
|
|
8078
7232
|
async tryClaimAllLightningReceives(
|
|
8079
|
-
wait: boolean,
|
|
7233
|
+
wait: boolean = false,
|
|
8080
7234
|
asyncOpts_?: { signal: AbortSignal }
|
|
8081
7235
|
): Promise<Array<LightningReceive>> /*throws*/ {
|
|
8082
7236
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
@@ -8102,9 +7256,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
8102
7256
|
),
|
|
8103
7257
|
/*liftString:*/ FfiConverterString.lift,
|
|
8104
7258
|
/*asyncOpts:*/ asyncOpts_,
|
|
8105
|
-
/*errorHandler:*/
|
|
8106
|
-
FfiConverterTypeBarkError
|
|
8107
|
-
)
|
|
7259
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
8108
7260
|
);
|
|
8109
7261
|
} catch (__error: any) {
|
|
8110
7262
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -8116,7 +7268,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
8116
7268
|
|
|
8117
7269
|
async tryClaimLightningReceive(
|
|
8118
7270
|
paymentHash: string,
|
|
8119
|
-
wait: boolean,
|
|
7271
|
+
wait: boolean = false,
|
|
8120
7272
|
asyncOpts_?: { signal: AbortSignal }
|
|
8121
7273
|
): Promise<void> /*throws*/ {
|
|
8122
7274
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
@@ -8139,9 +7291,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
8139
7291
|
/*liftFunc:*/ (_v) => {},
|
|
8140
7292
|
/*liftString:*/ FfiConverterString.lift,
|
|
8141
7293
|
/*asyncOpts:*/ asyncOpts_,
|
|
8142
|
-
/*errorHandler:*/
|
|
8143
|
-
FfiConverterTypeBarkError
|
|
8144
|
-
)
|
|
7294
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
8145
7295
|
);
|
|
8146
7296
|
} catch (__error: any) {
|
|
8147
7297
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -8173,9 +7323,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
8173
7323
|
/*liftFunc:*/ FfiConverterBool.lift.bind(FfiConverterBool),
|
|
8174
7324
|
/*liftString:*/ FfiConverterString.lift,
|
|
8175
7325
|
/*asyncOpts:*/ asyncOpts_,
|
|
8176
|
-
/*errorHandler:*/
|
|
8177
|
-
FfiConverterTypeBarkError
|
|
8178
|
-
)
|
|
7326
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
8179
7327
|
);
|
|
8180
7328
|
} catch (__error: any) {
|
|
8181
7329
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -8210,9 +7358,7 @@ export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
|
8210
7358
|
),
|
|
8211
7359
|
/*liftString:*/ FfiConverterString.lift,
|
|
8212
7360
|
/*asyncOpts:*/ asyncOpts_,
|
|
8213
|
-
/*errorHandler:*/
|
|
8214
|
-
FfiConverterTypeBarkError
|
|
8215
|
-
)
|
|
7361
|
+
/*errorHandler:*/ FfiConverterTypeError.lift.bind(FfiConverterTypeError)
|
|
8216
7362
|
);
|
|
8217
7363
|
} catch (__error: any) {
|
|
8218
7364
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -8435,7 +7581,7 @@ function uniffiEnsureInitialized() {
|
|
|
8435
7581
|
}
|
|
8436
7582
|
if (
|
|
8437
7583
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_func_extract_tx_from_psbt() !==
|
|
8438
|
-
|
|
7584
|
+
8893
|
|
8439
7585
|
) {
|
|
8440
7586
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8441
7587
|
"uniffi_bark_ffi_checksum_func_extract_tx_from_psbt"
|
|
@@ -8443,7 +7589,7 @@ function uniffiEnsureInitialized() {
|
|
|
8443
7589
|
}
|
|
8444
7590
|
if (
|
|
8445
7591
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_func_generate_mnemonic() !==
|
|
8446
|
-
|
|
7592
|
+
65033
|
|
8447
7593
|
) {
|
|
8448
7594
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8449
7595
|
"uniffi_bark_ffi_checksum_func_generate_mnemonic"
|
|
@@ -8451,7 +7597,7 @@ function uniffiEnsureInitialized() {
|
|
|
8451
7597
|
}
|
|
8452
7598
|
if (
|
|
8453
7599
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_func_validate_ark_address() !==
|
|
8454
|
-
|
|
7600
|
+
43084
|
|
8455
7601
|
) {
|
|
8456
7602
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8457
7603
|
"uniffi_bark_ffi_checksum_func_validate_ark_address"
|
|
@@ -8459,17 +7605,26 @@ function uniffiEnsureInitialized() {
|
|
|
8459
7605
|
}
|
|
8460
7606
|
if (
|
|
8461
7607
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_func_validate_mnemonic() !==
|
|
8462
|
-
|
|
7608
|
+
33507
|
|
8463
7609
|
) {
|
|
8464
7610
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8465
7611
|
"uniffi_bark_ffi_checksum_func_validate_mnemonic"
|
|
8466
7612
|
);
|
|
8467
7613
|
}
|
|
8468
|
-
if (
|
|
7614
|
+
if (
|
|
7615
|
+
nativeModule().ubrn_uniffi_bark_ffi_checksum_func_set_logger() !== 16477
|
|
7616
|
+
) {
|
|
8469
7617
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8470
7618
|
"uniffi_bark_ffi_checksum_func_set_logger"
|
|
8471
7619
|
);
|
|
8472
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
|
+
}
|
|
8473
7628
|
if (
|
|
8474
7629
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_notificationholder_cancel_next_notification_wait() !==
|
|
8475
7630
|
45269
|
|
@@ -8480,7 +7635,7 @@ function uniffiEnsureInitialized() {
|
|
|
8480
7635
|
}
|
|
8481
7636
|
if (
|
|
8482
7637
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_notificationholder_next_notification() !==
|
|
8483
|
-
|
|
7638
|
+
25507
|
|
8484
7639
|
) {
|
|
8485
7640
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8486
7641
|
"uniffi_bark_ffi_checksum_method_notificationholder_next_notification"
|
|
@@ -8488,7 +7643,7 @@ function uniffiEnsureInitialized() {
|
|
|
8488
7643
|
}
|
|
8489
7644
|
if (
|
|
8490
7645
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance() !==
|
|
8491
|
-
|
|
7646
|
+
34190
|
|
8492
7647
|
) {
|
|
8493
7648
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8494
7649
|
"uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance"
|
|
@@ -8496,7 +7651,7 @@ function uniffiEnsureInitialized() {
|
|
|
8496
7651
|
}
|
|
8497
7652
|
if (
|
|
8498
7653
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx() !==
|
|
8499
|
-
|
|
7654
|
+
25026
|
|
8500
7655
|
) {
|
|
8501
7656
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8502
7657
|
"uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx"
|
|
@@ -8504,7 +7659,7 @@ function uniffiEnsureInitialized() {
|
|
|
8504
7659
|
}
|
|
8505
7660
|
if (
|
|
8506
7661
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx() !==
|
|
8507
|
-
|
|
7662
|
+
53416
|
|
8508
7663
|
) {
|
|
8509
7664
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8510
7665
|
"uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx"
|
|
@@ -8512,7 +7667,7 @@ function uniffiEnsureInitialized() {
|
|
|
8512
7667
|
}
|
|
8513
7668
|
if (
|
|
8514
7669
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_psbt() !==
|
|
8515
|
-
|
|
7670
|
+
39878
|
|
8516
7671
|
) {
|
|
8517
7672
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8518
7673
|
"uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_psbt"
|
|
@@ -8520,7 +7675,7 @@ function uniffiEnsureInitialized() {
|
|
|
8520
7675
|
}
|
|
8521
7676
|
if (
|
|
8522
7677
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx() !==
|
|
8523
|
-
|
|
7678
|
+
40848
|
|
8524
7679
|
) {
|
|
8525
7680
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8526
7681
|
"uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx"
|
|
@@ -8528,7 +7683,7 @@ function uniffiEnsureInitialized() {
|
|
|
8528
7683
|
}
|
|
8529
7684
|
if (
|
|
8530
7685
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block() !==
|
|
8531
|
-
|
|
7686
|
+
20505
|
|
8532
7687
|
) {
|
|
8533
7688
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8534
7689
|
"uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block"
|
|
@@ -8536,7 +7691,7 @@ function uniffiEnsureInitialized() {
|
|
|
8536
7691
|
}
|
|
8537
7692
|
if (
|
|
8538
7693
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx() !==
|
|
8539
|
-
|
|
7694
|
+
24154
|
|
8540
7695
|
) {
|
|
8541
7696
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8542
7697
|
"uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx"
|
|
@@ -8544,7 +7699,7 @@ function uniffiEnsureInitialized() {
|
|
|
8544
7699
|
}
|
|
8545
7700
|
if (
|
|
8546
7701
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp() !==
|
|
8547
|
-
|
|
7702
|
+
58200
|
|
8548
7703
|
) {
|
|
8549
7704
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8550
7705
|
"uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp"
|
|
@@ -8552,15 +7707,23 @@ function uniffiEnsureInitialized() {
|
|
|
8552
7707
|
}
|
|
8553
7708
|
if (
|
|
8554
7709
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp() !==
|
|
8555
|
-
|
|
7710
|
+
64815
|
|
8556
7711
|
) {
|
|
8557
7712
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8558
7713
|
"uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp"
|
|
8559
7714
|
);
|
|
8560
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
|
+
}
|
|
8561
7724
|
if (
|
|
8562
7725
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_barklogger_log() !==
|
|
8563
|
-
|
|
7726
|
+
30279
|
|
8564
7727
|
) {
|
|
8565
7728
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8566
7729
|
"uniffi_bark_ffi_checksum_method_barklogger_log"
|
|
@@ -8568,7 +7731,7 @@ function uniffiEnsureInitialized() {
|
|
|
8568
7731
|
}
|
|
8569
7732
|
if (
|
|
8570
7733
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_balance() !==
|
|
8571
|
-
|
|
7734
|
+
39213
|
|
8572
7735
|
) {
|
|
8573
7736
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8574
7737
|
"uniffi_bark_ffi_checksum_method_onchainwallet_balance"
|
|
@@ -8576,7 +7739,7 @@ function uniffiEnsureInitialized() {
|
|
|
8576
7739
|
}
|
|
8577
7740
|
if (
|
|
8578
7741
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_new_address() !==
|
|
8579
|
-
|
|
7742
|
+
7405
|
|
8580
7743
|
) {
|
|
8581
7744
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8582
7745
|
"uniffi_bark_ffi_checksum_method_onchainwallet_new_address"
|
|
@@ -8584,7 +7747,7 @@ function uniffiEnsureInitialized() {
|
|
|
8584
7747
|
}
|
|
8585
7748
|
if (
|
|
8586
7749
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_send() !==
|
|
8587
|
-
|
|
7750
|
+
30495
|
|
8588
7751
|
) {
|
|
8589
7752
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8590
7753
|
"uniffi_bark_ffi_checksum_method_onchainwallet_send"
|
|
@@ -8592,7 +7755,7 @@ function uniffiEnsureInitialized() {
|
|
|
8592
7755
|
}
|
|
8593
7756
|
if (
|
|
8594
7757
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_sync() !==
|
|
8595
|
-
|
|
7758
|
+
4373
|
|
8596
7759
|
) {
|
|
8597
7760
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8598
7761
|
"uniffi_bark_ffi_checksum_method_onchainwallet_sync"
|
|
@@ -8600,7 +7763,7 @@ function uniffiEnsureInitialized() {
|
|
|
8600
7763
|
}
|
|
8601
7764
|
if (
|
|
8602
7765
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_exits_claimable_at_height() !==
|
|
8603
|
-
|
|
7766
|
+
59034
|
|
8604
7767
|
) {
|
|
8605
7768
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8606
7769
|
"uniffi_bark_ffi_checksum_method_wallet_all_exits_claimable_at_height"
|
|
@@ -8608,7 +7771,7 @@ function uniffiEnsureInitialized() {
|
|
|
8608
7771
|
}
|
|
8609
7772
|
if (
|
|
8610
7773
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_vtxos() !==
|
|
8611
|
-
|
|
7774
|
+
62209
|
|
8612
7775
|
) {
|
|
8613
7776
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8614
7777
|
"uniffi_bark_ffi_checksum_method_wallet_all_vtxos"
|
|
@@ -8616,7 +7779,7 @@ function uniffiEnsureInitialized() {
|
|
|
8616
7779
|
}
|
|
8617
7780
|
if (
|
|
8618
7781
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_allow_lightning_send_to_exit() !==
|
|
8619
|
-
|
|
7782
|
+
50764
|
|
8620
7783
|
) {
|
|
8621
7784
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8622
7785
|
"uniffi_bark_ffi_checksum_method_wallet_allow_lightning_send_to_exit"
|
|
@@ -8624,7 +7787,7 @@ function uniffiEnsureInitialized() {
|
|
|
8624
7787
|
}
|
|
8625
7788
|
if (
|
|
8626
7789
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_ark_info() !==
|
|
8627
|
-
|
|
7790
|
+
54388
|
|
8628
7791
|
) {
|
|
8629
7792
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8630
7793
|
"uniffi_bark_ffi_checksum_method_wallet_ark_info"
|
|
@@ -8632,7 +7795,7 @@ function uniffiEnsureInitialized() {
|
|
|
8632
7795
|
}
|
|
8633
7796
|
if (
|
|
8634
7797
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_attempt_lightning_receive_exit() !==
|
|
8635
|
-
|
|
7798
|
+
62153
|
|
8636
7799
|
) {
|
|
8637
7800
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8638
7801
|
"uniffi_bark_ffi_checksum_method_wallet_attempt_lightning_receive_exit"
|
|
@@ -8640,7 +7803,7 @@ function uniffiEnsureInitialized() {
|
|
|
8640
7803
|
}
|
|
8641
7804
|
if (
|
|
8642
7805
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_balance() !==
|
|
8643
|
-
|
|
7806
|
+
37345
|
|
8644
7807
|
) {
|
|
8645
7808
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8646
7809
|
"uniffi_bark_ffi_checksum_method_wallet_balance"
|
|
@@ -8648,7 +7811,7 @@ function uniffiEnsureInitialized() {
|
|
|
8648
7811
|
}
|
|
8649
7812
|
if (
|
|
8650
7813
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_all() !==
|
|
8651
|
-
|
|
7814
|
+
58611
|
|
8652
7815
|
) {
|
|
8653
7816
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8654
7817
|
"uniffi_bark_ffi_checksum_method_wallet_board_all"
|
|
@@ -8656,7 +7819,7 @@ function uniffiEnsureInitialized() {
|
|
|
8656
7819
|
}
|
|
8657
7820
|
if (
|
|
8658
7821
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_amount() !==
|
|
8659
|
-
|
|
7822
|
+
51838
|
|
8660
7823
|
) {
|
|
8661
7824
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8662
7825
|
"uniffi_bark_ffi_checksum_method_wallet_board_amount"
|
|
@@ -8664,7 +7827,7 @@ function uniffiEnsureInitialized() {
|
|
|
8664
7827
|
}
|
|
8665
7828
|
if (
|
|
8666
7829
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice() !==
|
|
8667
|
-
|
|
7830
|
+
43491
|
|
8668
7831
|
) {
|
|
8669
7832
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8670
7833
|
"uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice"
|
|
@@ -8672,7 +7835,7 @@ function uniffiEnsureInitialized() {
|
|
|
8672
7835
|
}
|
|
8673
7836
|
if (
|
|
8674
7837
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_broadcast_tx() !==
|
|
8675
|
-
|
|
7838
|
+
46367
|
|
8676
7839
|
) {
|
|
8677
7840
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8678
7841
|
"uniffi_bark_ffi_checksum_method_wallet_broadcast_tx"
|
|
@@ -8680,7 +7843,7 @@ function uniffiEnsureInitialized() {
|
|
|
8680
7843
|
}
|
|
8681
7844
|
if (
|
|
8682
7845
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds() !==
|
|
8683
|
-
|
|
7846
|
+
53455
|
|
8684
7847
|
) {
|
|
8685
7848
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8686
7849
|
"uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds"
|
|
@@ -8688,7 +7851,7 @@ function uniffiEnsureInitialized() {
|
|
|
8688
7851
|
}
|
|
8689
7852
|
if (
|
|
8690
7853
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_lightning_receive() !==
|
|
8691
|
-
|
|
7854
|
+
49444
|
|
8692
7855
|
) {
|
|
8693
7856
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8694
7857
|
"uniffi_bark_ffi_checksum_method_wallet_cancel_lightning_receive"
|
|
@@ -8696,7 +7859,7 @@ function uniffiEnsureInitialized() {
|
|
|
8696
7859
|
}
|
|
8697
7860
|
if (
|
|
8698
7861
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round() !==
|
|
8699
|
-
|
|
7862
|
+
13433
|
|
8700
7863
|
) {
|
|
8701
7864
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8702
7865
|
"uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round"
|
|
@@ -8704,7 +7867,7 @@ function uniffiEnsureInitialized() {
|
|
|
8704
7867
|
}
|
|
8705
7868
|
if (
|
|
8706
7869
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment() !==
|
|
8707
|
-
|
|
7870
|
+
50033
|
|
8708
7871
|
) {
|
|
8709
7872
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8710
7873
|
"uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment"
|
|
@@ -8712,7 +7875,7 @@ function uniffiEnsureInitialized() {
|
|
|
8712
7875
|
}
|
|
8713
7876
|
if (
|
|
8714
7877
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_claimable_lightning_receive_balance_sats() !==
|
|
8715
|
-
|
|
7878
|
+
7743
|
|
8716
7879
|
) {
|
|
8717
7880
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8718
7881
|
"uniffi_bark_ffi_checksum_method_wallet_claimable_lightning_receive_balance_sats"
|
|
@@ -8720,7 +7883,7 @@ function uniffiEnsureInitialized() {
|
|
|
8720
7883
|
}
|
|
8721
7884
|
if (
|
|
8722
7885
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_config() !==
|
|
8723
|
-
|
|
7886
|
+
23594
|
|
8724
7887
|
) {
|
|
8725
7888
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8726
7889
|
"uniffi_bark_ffi_checksum_method_wallet_config"
|
|
@@ -8728,7 +7891,7 @@ function uniffiEnsureInitialized() {
|
|
|
8728
7891
|
}
|
|
8729
7892
|
if (
|
|
8730
7893
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_drain_exits() !==
|
|
8731
|
-
|
|
7894
|
+
47845
|
|
8732
7895
|
) {
|
|
8733
7896
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8734
7897
|
"uniffi_bark_ffi_checksum_method_wallet_drain_exits"
|
|
@@ -8736,7 +7899,7 @@ function uniffiEnsureInitialized() {
|
|
|
8736
7899
|
}
|
|
8737
7900
|
if (
|
|
8738
7901
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_arkoor_payment_fee() !==
|
|
8739
|
-
|
|
7902
|
+
35980
|
|
8740
7903
|
) {
|
|
8741
7904
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8742
7905
|
"uniffi_bark_ffi_checksum_method_wallet_estimate_arkoor_payment_fee"
|
|
@@ -8744,7 +7907,7 @@ function uniffiEnsureInitialized() {
|
|
|
8744
7907
|
}
|
|
8745
7908
|
if (
|
|
8746
7909
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee() !==
|
|
8747
|
-
|
|
7910
|
+
55967
|
|
8748
7911
|
) {
|
|
8749
7912
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8750
7913
|
"uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee"
|
|
@@ -8752,7 +7915,7 @@ function uniffiEnsureInitialized() {
|
|
|
8752
7915
|
}
|
|
8753
7916
|
if (
|
|
8754
7917
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee() !==
|
|
8755
|
-
|
|
7918
|
+
33637
|
|
8756
7919
|
) {
|
|
8757
7920
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8758
7921
|
"uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee"
|
|
@@ -8760,7 +7923,7 @@ function uniffiEnsureInitialized() {
|
|
|
8760
7923
|
}
|
|
8761
7924
|
if (
|
|
8762
7925
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee() !==
|
|
8763
|
-
|
|
7926
|
+
11290
|
|
8764
7927
|
) {
|
|
8765
7928
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8766
7929
|
"uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee"
|
|
@@ -8768,7 +7931,7 @@ function uniffiEnsureInitialized() {
|
|
|
8768
7931
|
}
|
|
8769
7932
|
if (
|
|
8770
7933
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_all_fee() !==
|
|
8771
|
-
|
|
7934
|
+
24629
|
|
8772
7935
|
) {
|
|
8773
7936
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8774
7937
|
"uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_all_fee"
|
|
@@ -8776,7 +7939,7 @@ function uniffiEnsureInitialized() {
|
|
|
8776
7939
|
}
|
|
8777
7940
|
if (
|
|
8778
7941
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee() !==
|
|
8779
|
-
|
|
7942
|
+
37073
|
|
8780
7943
|
) {
|
|
8781
7944
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8782
7945
|
"uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee"
|
|
@@ -8784,7 +7947,7 @@ function uniffiEnsureInitialized() {
|
|
|
8784
7947
|
}
|
|
8785
7948
|
if (
|
|
8786
7949
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee() !==
|
|
8787
|
-
|
|
7950
|
+
18182
|
|
8788
7951
|
) {
|
|
8789
7952
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8790
7953
|
"uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee"
|
|
@@ -8792,7 +7955,7 @@ function uniffiEnsureInitialized() {
|
|
|
8792
7955
|
}
|
|
8793
7956
|
if (
|
|
8794
7957
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_send_onchain_fee() !==
|
|
8795
|
-
|
|
7958
|
+
1027
|
|
8796
7959
|
) {
|
|
8797
7960
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8798
7961
|
"uniffi_bark_ffi_checksum_method_wallet_estimate_send_onchain_fee"
|
|
@@ -8800,7 +7963,7 @@ function uniffiEnsureInitialized() {
|
|
|
8800
7963
|
}
|
|
8801
7964
|
if (
|
|
8802
7965
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_fingerprint() !==
|
|
8803
|
-
|
|
7966
|
+
51021
|
|
8804
7967
|
) {
|
|
8805
7968
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8806
7969
|
"uniffi_bark_ffi_checksum_method_wallet_fingerprint"
|
|
@@ -8808,7 +7971,7 @@ function uniffiEnsureInitialized() {
|
|
|
8808
7971
|
}
|
|
8809
7972
|
if (
|
|
8810
7973
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_status() !==
|
|
8811
|
-
|
|
7974
|
+
33054
|
|
8812
7975
|
) {
|
|
8813
7976
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8814
7977
|
"uniffi_bark_ffi_checksum_method_wallet_get_exit_status"
|
|
@@ -8816,7 +7979,7 @@ function uniffiEnsureInitialized() {
|
|
|
8816
7979
|
}
|
|
8817
7980
|
if (
|
|
8818
7981
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_vtxos() !==
|
|
8819
|
-
|
|
7982
|
+
20147
|
|
8820
7983
|
) {
|
|
8821
7984
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8822
7985
|
"uniffi_bark_ffi_checksum_method_wallet_get_exit_vtxos"
|
|
@@ -8824,7 +7987,7 @@ function uniffiEnsureInitialized() {
|
|
|
8824
7987
|
}
|
|
8825
7988
|
if (
|
|
8826
7989
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_expiring_vtxos() !==
|
|
8827
|
-
|
|
7990
|
+
39689
|
|
8828
7991
|
) {
|
|
8829
7992
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8830
7993
|
"uniffi_bark_ffi_checksum_method_wallet_get_expiring_vtxos"
|
|
@@ -8832,7 +7995,7 @@ function uniffiEnsureInitialized() {
|
|
|
8832
7995
|
}
|
|
8833
7996
|
if (
|
|
8834
7997
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_first_expiring_vtxo_blockheight() !==
|
|
8835
|
-
|
|
7998
|
+
33536
|
|
8836
7999
|
) {
|
|
8837
8000
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8838
8001
|
"uniffi_bark_ffi_checksum_method_wallet_get_first_expiring_vtxo_blockheight"
|
|
@@ -8840,7 +8003,7 @@ function uniffiEnsureInitialized() {
|
|
|
8840
8003
|
}
|
|
8841
8004
|
if (
|
|
8842
8005
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_next_required_refresh_blockheight() !==
|
|
8843
|
-
|
|
8006
|
+
58530
|
|
8844
8007
|
) {
|
|
8845
8008
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8846
8009
|
"uniffi_bark_ffi_checksum_method_wallet_get_next_required_refresh_blockheight"
|
|
@@ -8848,7 +8011,7 @@ function uniffiEnsureInitialized() {
|
|
|
8848
8011
|
}
|
|
8849
8012
|
if (
|
|
8850
8013
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxo_by_id() !==
|
|
8851
|
-
|
|
8014
|
+
34050
|
|
8852
8015
|
) {
|
|
8853
8016
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8854
8017
|
"uniffi_bark_ffi_checksum_method_wallet_get_vtxo_by_id"
|
|
@@ -8856,7 +8019,7 @@ function uniffiEnsureInitialized() {
|
|
|
8856
8019
|
}
|
|
8857
8020
|
if (
|
|
8858
8021
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxos_to_refresh() !==
|
|
8859
|
-
|
|
8022
|
+
52553
|
|
8860
8023
|
) {
|
|
8861
8024
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8862
8025
|
"uniffi_bark_ffi_checksum_method_wallet_get_vtxos_to_refresh"
|
|
@@ -8864,7 +8027,7 @@ function uniffiEnsureInitialized() {
|
|
|
8864
8027
|
}
|
|
8865
8028
|
if (
|
|
8866
8029
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_has_pending_exits() !==
|
|
8867
|
-
|
|
8030
|
+
19790
|
|
8868
8031
|
) {
|
|
8869
8032
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8870
8033
|
"uniffi_bark_ffi_checksum_method_wallet_has_pending_exits"
|
|
@@ -8872,7 +8035,7 @@ function uniffiEnsureInitialized() {
|
|
|
8872
8035
|
}
|
|
8873
8036
|
if (
|
|
8874
8037
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_history() !==
|
|
8875
|
-
|
|
8038
|
+
10552
|
|
8876
8039
|
) {
|
|
8877
8040
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8878
8041
|
"uniffi_bark_ffi_checksum_method_wallet_history"
|
|
@@ -8880,7 +8043,7 @@ function uniffiEnsureInitialized() {
|
|
|
8880
8043
|
}
|
|
8881
8044
|
if (
|
|
8882
8045
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method() !==
|
|
8883
|
-
|
|
8046
|
+
11845
|
|
8884
8047
|
) {
|
|
8885
8048
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8886
8049
|
"uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method"
|
|
@@ -8888,7 +8051,7 @@ function uniffiEnsureInitialized() {
|
|
|
8888
8051
|
}
|
|
8889
8052
|
if (
|
|
8890
8053
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_import_vtxo() !==
|
|
8891
|
-
|
|
8054
|
+
42571
|
|
8892
8055
|
) {
|
|
8893
8056
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8894
8057
|
"uniffi_bark_ffi_checksum_method_wallet_import_vtxo"
|
|
@@ -8896,7 +8059,7 @@ function uniffiEnsureInitialized() {
|
|
|
8896
8059
|
}
|
|
8897
8060
|
if (
|
|
8898
8061
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid() !==
|
|
8899
|
-
|
|
8062
|
+
31079
|
|
8900
8063
|
) {
|
|
8901
8064
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8902
8065
|
"uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid"
|
|
@@ -8904,7 +8067,7 @@ function uniffiEnsureInitialized() {
|
|
|
8904
8067
|
}
|
|
8905
8068
|
if (
|
|
8906
8069
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status() !==
|
|
8907
|
-
|
|
8070
|
+
27695
|
|
8908
8071
|
) {
|
|
8909
8072
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8910
8073
|
"uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status"
|
|
@@ -8912,7 +8075,7 @@ function uniffiEnsureInitialized() {
|
|
|
8912
8075
|
}
|
|
8913
8076
|
if (
|
|
8914
8077
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_send_state() !==
|
|
8915
|
-
|
|
8078
|
+
5687
|
|
8916
8079
|
) {
|
|
8917
8080
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8918
8081
|
"uniffi_bark_ffi_checksum_method_wallet_lightning_send_state"
|
|
@@ -8920,7 +8083,7 @@ function uniffiEnsureInitialized() {
|
|
|
8920
8083
|
}
|
|
8921
8084
|
if (
|
|
8922
8085
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits() !==
|
|
8923
|
-
|
|
8086
|
+
58660
|
|
8924
8087
|
) {
|
|
8925
8088
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8926
8089
|
"uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits"
|
|
@@ -8928,7 +8091,7 @@ function uniffiEnsureInitialized() {
|
|
|
8928
8091
|
}
|
|
8929
8092
|
if (
|
|
8930
8093
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization() !==
|
|
8931
|
-
|
|
8094
|
+
52372
|
|
8932
8095
|
) {
|
|
8933
8096
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8934
8097
|
"uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization"
|
|
@@ -8936,7 +8099,7 @@ function uniffiEnsureInitialized() {
|
|
|
8936
8099
|
}
|
|
8937
8100
|
if (
|
|
8938
8101
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier() !==
|
|
8939
|
-
|
|
8102
|
+
15231
|
|
8940
8103
|
) {
|
|
8941
8104
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8942
8105
|
"uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier"
|
|
@@ -8944,7 +8107,7 @@ function uniffiEnsureInitialized() {
|
|
|
8944
8107
|
}
|
|
8945
8108
|
if (
|
|
8946
8109
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance() !==
|
|
8947
|
-
|
|
8110
|
+
33161
|
|
8948
8111
|
) {
|
|
8949
8112
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8950
8113
|
"uniffi_bark_ffi_checksum_method_wallet_maintenance"
|
|
@@ -8952,7 +8115,7 @@ function uniffiEnsureInitialized() {
|
|
|
8952
8115
|
}
|
|
8953
8116
|
if (
|
|
8954
8117
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_delegated() !==
|
|
8955
|
-
|
|
8118
|
+
31668
|
|
8956
8119
|
) {
|
|
8957
8120
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8958
8121
|
"uniffi_bark_ffi_checksum_method_wallet_maintenance_delegated"
|
|
@@ -8960,7 +8123,7 @@ function uniffiEnsureInitialized() {
|
|
|
8960
8123
|
}
|
|
8961
8124
|
if (
|
|
8962
8125
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh() !==
|
|
8963
|
-
|
|
8126
|
+
34548
|
|
8964
8127
|
) {
|
|
8965
8128
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8966
8129
|
"uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh"
|
|
@@ -8968,7 +8131,7 @@ function uniffiEnsureInitialized() {
|
|
|
8968
8131
|
}
|
|
8969
8132
|
if (
|
|
8970
8133
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain() !==
|
|
8971
|
-
|
|
8134
|
+
16119
|
|
8972
8135
|
) {
|
|
8973
8136
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8974
8137
|
"uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain"
|
|
@@ -8976,23 +8139,15 @@ function uniffiEnsureInitialized() {
|
|
|
8976
8139
|
}
|
|
8977
8140
|
if (
|
|
8978
8141
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated() !==
|
|
8979
|
-
|
|
8142
|
+
40766
|
|
8980
8143
|
) {
|
|
8981
8144
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8982
8145
|
"uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated"
|
|
8983
8146
|
);
|
|
8984
8147
|
}
|
|
8985
|
-
if (
|
|
8986
|
-
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maybe_schedule_maintenance_refresh() !==
|
|
8987
|
-
24944
|
|
8988
|
-
) {
|
|
8989
|
-
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8990
|
-
"uniffi_bark_ffi_checksum_method_wallet_maybe_schedule_maintenance_refresh"
|
|
8991
|
-
);
|
|
8992
|
-
}
|
|
8993
8148
|
if (
|
|
8994
8149
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_network() !==
|
|
8995
|
-
|
|
8150
|
+
2007
|
|
8996
8151
|
) {
|
|
8997
8152
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8998
8153
|
"uniffi_bark_ffi_checksum_method_wallet_network"
|
|
@@ -9000,7 +8155,7 @@ function uniffiEnsureInitialized() {
|
|
|
9000
8155
|
}
|
|
9001
8156
|
if (
|
|
9002
8157
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address() !==
|
|
9003
|
-
|
|
8158
|
+
65478
|
|
9004
8159
|
) {
|
|
9005
8160
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9006
8161
|
"uniffi_bark_ffi_checksum_method_wallet_new_address"
|
|
@@ -9008,7 +8163,7 @@ function uniffiEnsureInitialized() {
|
|
|
9008
8163
|
}
|
|
9009
8164
|
if (
|
|
9010
8165
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address_with_index() !==
|
|
9011
|
-
|
|
8166
|
+
37344
|
|
9012
8167
|
) {
|
|
9013
8168
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9014
8169
|
"uniffi_bark_ffi_checksum_method_wallet_new_address_with_index"
|
|
@@ -9016,7 +8171,7 @@ function uniffiEnsureInitialized() {
|
|
|
9016
8171
|
}
|
|
9017
8172
|
if (
|
|
9018
8173
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_next_round_start_time() !==
|
|
9019
|
-
|
|
8174
|
+
20748
|
|
9020
8175
|
) {
|
|
9021
8176
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9022
8177
|
"uniffi_bark_ffi_checksum_method_wallet_next_round_start_time"
|
|
@@ -9024,7 +8179,7 @@ function uniffiEnsureInitialized() {
|
|
|
9024
8179
|
}
|
|
9025
8180
|
if (
|
|
9026
8181
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_notifications() !==
|
|
9027
|
-
|
|
8182
|
+
8597
|
|
9028
8183
|
) {
|
|
9029
8184
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9030
8185
|
"uniffi_bark_ffi_checksum_method_wallet_notifications"
|
|
@@ -9032,7 +8187,7 @@ function uniffiEnsureInitialized() {
|
|
|
9032
8187
|
}
|
|
9033
8188
|
if (
|
|
9034
8189
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_all() !==
|
|
9035
|
-
|
|
8190
|
+
7986
|
|
9036
8191
|
) {
|
|
9037
8192
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9038
8193
|
"uniffi_bark_ffi_checksum_method_wallet_offboard_all"
|
|
@@ -9040,7 +8195,7 @@ function uniffiEnsureInitialized() {
|
|
|
9040
8195
|
}
|
|
9041
8196
|
if (
|
|
9042
8197
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos() !==
|
|
9043
|
-
|
|
8198
|
+
26775
|
|
9044
8199
|
) {
|
|
9045
8200
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9046
8201
|
"uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos"
|
|
@@ -9048,7 +8203,7 @@ function uniffiEnsureInitialized() {
|
|
|
9048
8203
|
}
|
|
9049
8204
|
if (
|
|
9050
8205
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address() !==
|
|
9051
|
-
|
|
8206
|
+
19392
|
|
9052
8207
|
) {
|
|
9053
8208
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9054
8209
|
"uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address"
|
|
@@ -9056,7 +8211,7 @@ function uniffiEnsureInitialized() {
|
|
|
9056
8211
|
}
|
|
9057
8212
|
if (
|
|
9058
8213
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice() !==
|
|
9059
|
-
|
|
8214
|
+
26921
|
|
9060
8215
|
) {
|
|
9061
8216
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9062
8217
|
"uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice"
|
|
@@ -9064,15 +8219,23 @@ function uniffiEnsureInitialized() {
|
|
|
9064
8219
|
}
|
|
9065
8220
|
if (
|
|
9066
8221
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer() !==
|
|
9067
|
-
|
|
8222
|
+
25462
|
|
9068
8223
|
) {
|
|
9069
8224
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9070
8225
|
"uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer"
|
|
9071
8226
|
);
|
|
9072
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
|
+
}
|
|
9073
8236
|
if (
|
|
9074
8237
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_peek_address() !==
|
|
9075
|
-
|
|
8238
|
+
31847
|
|
9076
8239
|
) {
|
|
9077
8240
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9078
8241
|
"uniffi_bark_ffi_checksum_method_wallet_peek_address"
|
|
@@ -9080,7 +8243,7 @@ function uniffiEnsureInitialized() {
|
|
|
9080
8243
|
}
|
|
9081
8244
|
if (
|
|
9082
8245
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos() !==
|
|
9083
|
-
|
|
8246
|
+
53566
|
|
9084
8247
|
) {
|
|
9085
8248
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9086
8249
|
"uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos"
|
|
@@ -9088,7 +8251,7 @@ function uniffiEnsureInitialized() {
|
|
|
9088
8251
|
}
|
|
9089
8252
|
if (
|
|
9090
8253
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_boards() !==
|
|
9091
|
-
|
|
8254
|
+
61501
|
|
9092
8255
|
) {
|
|
9093
8256
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9094
8257
|
"uniffi_bark_ffi_checksum_method_wallet_pending_boards"
|
|
@@ -9096,7 +8259,7 @@ function uniffiEnsureInitialized() {
|
|
|
9096
8259
|
}
|
|
9097
8260
|
if (
|
|
9098
8261
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_exits_total_sats() !==
|
|
9099
|
-
|
|
8262
|
+
38418
|
|
9100
8263
|
) {
|
|
9101
8264
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9102
8265
|
"uniffi_bark_ffi_checksum_method_wallet_pending_exits_total_sats"
|
|
@@ -9104,7 +8267,7 @@ function uniffiEnsureInitialized() {
|
|
|
9104
8267
|
}
|
|
9105
8268
|
if (
|
|
9106
8269
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_receives() !==
|
|
9107
|
-
|
|
8270
|
+
26676
|
|
9108
8271
|
) {
|
|
9109
8272
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9110
8273
|
"uniffi_bark_ffi_checksum_method_wallet_pending_lightning_receives"
|
|
@@ -9112,7 +8275,7 @@ function uniffiEnsureInitialized() {
|
|
|
9112
8275
|
}
|
|
9113
8276
|
if (
|
|
9114
8277
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_send_vtxos() !==
|
|
9115
|
-
|
|
8278
|
+
62766
|
|
9116
8279
|
) {
|
|
9117
8280
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9118
8281
|
"uniffi_bark_ffi_checksum_method_wallet_pending_lightning_send_vtxos"
|
|
@@ -9120,7 +8283,7 @@ function uniffiEnsureInitialized() {
|
|
|
9120
8283
|
}
|
|
9121
8284
|
if (
|
|
9122
8285
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_sends() !==
|
|
9123
|
-
|
|
8286
|
+
8847
|
|
9124
8287
|
) {
|
|
9125
8288
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9126
8289
|
"uniffi_bark_ffi_checksum_method_wallet_pending_lightning_sends"
|
|
@@ -9128,7 +8291,7 @@ function uniffiEnsureInitialized() {
|
|
|
9128
8291
|
}
|
|
9129
8292
|
if (
|
|
9130
8293
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos() !==
|
|
9131
|
-
|
|
8294
|
+
54307
|
|
9132
8295
|
) {
|
|
9133
8296
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9134
8297
|
"uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos"
|
|
@@ -9136,7 +8299,7 @@ function uniffiEnsureInitialized() {
|
|
|
9136
8299
|
}
|
|
9137
8300
|
if (
|
|
9138
8301
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_states() !==
|
|
9139
|
-
|
|
8302
|
+
11480
|
|
9140
8303
|
) {
|
|
9141
8304
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9142
8305
|
"uniffi_bark_ffi_checksum_method_wallet_pending_round_states"
|
|
@@ -9144,7 +8307,7 @@ function uniffiEnsureInitialized() {
|
|
|
9144
8307
|
}
|
|
9145
8308
|
if (
|
|
9146
8309
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_exits() !==
|
|
9147
|
-
|
|
8310
|
+
7089
|
|
9148
8311
|
) {
|
|
9149
8312
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9150
8313
|
"uniffi_bark_ffi_checksum_method_wallet_progress_exits"
|
|
@@ -9152,7 +8315,7 @@ function uniffiEnsureInitialized() {
|
|
|
9152
8315
|
}
|
|
9153
8316
|
if (
|
|
9154
8317
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_pending_rounds() !==
|
|
9155
|
-
|
|
8318
|
+
43537
|
|
9156
8319
|
) {
|
|
9157
8320
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9158
8321
|
"uniffi_bark_ffi_checksum_method_wallet_progress_pending_rounds"
|
|
@@ -9160,7 +8323,7 @@ function uniffiEnsureInitialized() {
|
|
|
9160
8323
|
}
|
|
9161
8324
|
if (
|
|
9162
8325
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_properties() !==
|
|
9163
|
-
|
|
8326
|
+
9773
|
|
9164
8327
|
) {
|
|
9165
8328
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9166
8329
|
"uniffi_bark_ffi_checksum_method_wallet_properties"
|
|
@@ -9168,7 +8331,7 @@ function uniffiEnsureInitialized() {
|
|
|
9168
8331
|
}
|
|
9169
8332
|
if (
|
|
9170
8333
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_server() !==
|
|
9171
|
-
|
|
8334
|
+
41162
|
|
9172
8335
|
) {
|
|
9173
8336
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9174
8337
|
"uniffi_bark_ffi_checksum_method_wallet_refresh_server"
|
|
@@ -9176,7 +8339,7 @@ function uniffiEnsureInitialized() {
|
|
|
9176
8339
|
}
|
|
9177
8340
|
if (
|
|
9178
8341
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos() !==
|
|
9179
|
-
|
|
8342
|
+
52101
|
|
9180
8343
|
) {
|
|
9181
8344
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9182
8345
|
"uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos"
|
|
@@ -9184,7 +8347,7 @@ function uniffiEnsureInitialized() {
|
|
|
9184
8347
|
}
|
|
9185
8348
|
if (
|
|
9186
8349
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated() !==
|
|
9187
|
-
|
|
8350
|
+
61476
|
|
9188
8351
|
) {
|
|
9189
8352
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9190
8353
|
"uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated"
|
|
@@ -9192,7 +8355,7 @@ function uniffiEnsureInitialized() {
|
|
|
9192
8355
|
}
|
|
9193
8356
|
if (
|
|
9194
8357
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_run_daemon() !==
|
|
9195
|
-
|
|
8358
|
+
3475
|
|
9196
8359
|
) {
|
|
9197
8360
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9198
8361
|
"uniffi_bark_ffi_checksum_method_wallet_run_daemon"
|
|
@@ -9200,7 +8363,7 @@ function uniffiEnsureInitialized() {
|
|
|
9200
8363
|
}
|
|
9201
8364
|
if (
|
|
9202
8365
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment() !==
|
|
9203
|
-
|
|
8366
|
+
46166
|
|
9204
8367
|
) {
|
|
9205
8368
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9206
8369
|
"uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment"
|
|
@@ -9208,7 +8371,7 @@ function uniffiEnsureInitialized() {
|
|
|
9208
8371
|
}
|
|
9209
8372
|
if (
|
|
9210
8373
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_onchain() !==
|
|
9211
|
-
|
|
8374
|
+
42570
|
|
9212
8375
|
) {
|
|
9213
8376
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9214
8377
|
"uniffi_bark_ffi_checksum_method_wallet_send_onchain"
|
|
@@ -9216,7 +8379,7 @@ function uniffiEnsureInitialized() {
|
|
|
9216
8379
|
}
|
|
9217
8380
|
if (
|
|
9218
8381
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sign_exit_claim_inputs() !==
|
|
9219
|
-
|
|
8382
|
+
12930
|
|
9220
8383
|
) {
|
|
9221
8384
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9222
8385
|
"uniffi_bark_ffi_checksum_method_wallet_sign_exit_claim_inputs"
|
|
@@ -9224,7 +8387,7 @@ function uniffiEnsureInitialized() {
|
|
|
9224
8387
|
}
|
|
9225
8388
|
if (
|
|
9226
8389
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_spendable_vtxos() !==
|
|
9227
|
-
|
|
8390
|
+
22755
|
|
9228
8391
|
) {
|
|
9229
8392
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9230
8393
|
"uniffi_bark_ffi_checksum_method_wallet_spendable_vtxos"
|
|
@@ -9232,7 +8395,7 @@ function uniffiEnsureInitialized() {
|
|
|
9232
8395
|
}
|
|
9233
8396
|
if (
|
|
9234
8397
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_entire_wallet() !==
|
|
9235
|
-
|
|
8398
|
+
6525
|
|
9236
8399
|
) {
|
|
9237
8400
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9238
8401
|
"uniffi_bark_ffi_checksum_method_wallet_start_exit_for_entire_wallet"
|
|
@@ -9240,7 +8403,7 @@ function uniffiEnsureInitialized() {
|
|
|
9240
8403
|
}
|
|
9241
8404
|
if (
|
|
9242
8405
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos() !==
|
|
9243
|
-
|
|
8406
|
+
56154
|
|
9244
8407
|
) {
|
|
9245
8408
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9246
8409
|
"uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos"
|
|
@@ -9248,7 +8411,7 @@ function uniffiEnsureInitialized() {
|
|
|
9248
8411
|
}
|
|
9249
8412
|
if (
|
|
9250
8413
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_stop_daemon() !==
|
|
9251
|
-
|
|
8414
|
+
7109
|
|
9252
8415
|
) {
|
|
9253
8416
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9254
8417
|
"uniffi_bark_ffi_checksum_method_wallet_stop_daemon"
|
|
@@ -9256,14 +8419,14 @@ function uniffiEnsureInitialized() {
|
|
|
9256
8419
|
}
|
|
9257
8420
|
if (
|
|
9258
8421
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends() !==
|
|
9259
|
-
|
|
8422
|
+
31451
|
|
9260
8423
|
) {
|
|
9261
8424
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9262
8425
|
"uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends"
|
|
9263
8426
|
);
|
|
9264
8427
|
}
|
|
9265
8428
|
if (
|
|
9266
|
-
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync() !==
|
|
8429
|
+
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync() !== 2151
|
|
9267
8430
|
) {
|
|
9268
8431
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9269
8432
|
"uniffi_bark_ffi_checksum_method_wallet_sync"
|
|
@@ -9271,15 +8434,23 @@ function uniffiEnsureInitialized() {
|
|
|
9271
8434
|
}
|
|
9272
8435
|
if (
|
|
9273
8436
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_exits() !==
|
|
9274
|
-
|
|
8437
|
+
22078
|
|
9275
8438
|
) {
|
|
9276
8439
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9277
8440
|
"uniffi_bark_ffi_checksum_method_wallet_sync_exits"
|
|
9278
8441
|
);
|
|
9279
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
|
+
}
|
|
9280
8451
|
if (
|
|
9281
8452
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards() !==
|
|
9282
|
-
|
|
8453
|
+
63453
|
|
9283
8454
|
) {
|
|
9284
8455
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9285
8456
|
"uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards"
|
|
@@ -9287,7 +8458,7 @@ function uniffiEnsureInitialized() {
|
|
|
9287
8458
|
}
|
|
9288
8459
|
if (
|
|
9289
8460
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives() !==
|
|
9290
|
-
|
|
8461
|
+
14560
|
|
9291
8462
|
) {
|
|
9292
8463
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9293
8464
|
"uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives"
|
|
@@ -9295,7 +8466,7 @@ function uniffiEnsureInitialized() {
|
|
|
9295
8466
|
}
|
|
9296
8467
|
if (
|
|
9297
8468
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive() !==
|
|
9298
|
-
|
|
8469
|
+
45229
|
|
9299
8470
|
) {
|
|
9300
8471
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9301
8472
|
"uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive"
|
|
@@ -9303,14 +8474,14 @@ function uniffiEnsureInitialized() {
|
|
|
9303
8474
|
}
|
|
9304
8475
|
if (
|
|
9305
8476
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address() !==
|
|
9306
|
-
|
|
8477
|
+
10861
|
|
9307
8478
|
) {
|
|
9308
8479
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9309
8480
|
"uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address"
|
|
9310
8481
|
);
|
|
9311
8482
|
}
|
|
9312
8483
|
if (
|
|
9313
|
-
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxos() !==
|
|
8484
|
+
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxos() !== 33207
|
|
9314
8485
|
) {
|
|
9315
8486
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9316
8487
|
"uniffi_bark_ffi_checksum_method_wallet_vtxos"
|
|
@@ -9318,7 +8489,7 @@ function uniffiEnsureInitialized() {
|
|
|
9318
8489
|
}
|
|
9319
8490
|
if (
|
|
9320
8491
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_onchainwallet_custom() !==
|
|
9321
|
-
|
|
8492
|
+
33645
|
|
9322
8493
|
) {
|
|
9323
8494
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9324
8495
|
"uniffi_bark_ffi_checksum_constructor_onchainwallet_custom"
|
|
@@ -9326,52 +8497,20 @@ function uniffiEnsureInitialized() {
|
|
|
9326
8497
|
}
|
|
9327
8498
|
if (
|
|
9328
8499
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_onchainwallet_default() !==
|
|
9329
|
-
|
|
8500
|
+
61714
|
|
9330
8501
|
) {
|
|
9331
8502
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9332
8503
|
"uniffi_bark_ffi_checksum_constructor_onchainwallet_default"
|
|
9333
8504
|
);
|
|
9334
8505
|
}
|
|
9335
|
-
if (
|
|
9336
|
-
nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_create() !==
|
|
9337
|
-
60393
|
|
9338
|
-
) {
|
|
9339
|
-
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9340
|
-
"uniffi_bark_ffi_checksum_constructor_wallet_create"
|
|
9341
|
-
);
|
|
9342
|
-
}
|
|
9343
|
-
if (
|
|
9344
|
-
nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_create_with_onchain() !==
|
|
9345
|
-
55243
|
|
9346
|
-
) {
|
|
9347
|
-
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9348
|
-
"uniffi_bark_ffi_checksum_constructor_wallet_create_with_onchain"
|
|
9349
|
-
);
|
|
9350
|
-
}
|
|
9351
8506
|
if (
|
|
9352
8507
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open() !==
|
|
9353
|
-
|
|
8508
|
+
37541
|
|
9354
8509
|
) {
|
|
9355
8510
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9356
8511
|
"uniffi_bark_ffi_checksum_constructor_wallet_open"
|
|
9357
8512
|
);
|
|
9358
8513
|
}
|
|
9359
|
-
if (
|
|
9360
|
-
nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open_with_daemon() !==
|
|
9361
|
-
9668
|
|
9362
|
-
) {
|
|
9363
|
-
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9364
|
-
"uniffi_bark_ffi_checksum_constructor_wallet_open_with_daemon"
|
|
9365
|
-
);
|
|
9366
|
-
}
|
|
9367
|
-
if (
|
|
9368
|
-
nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open_with_onchain() !==
|
|
9369
|
-
39500
|
|
9370
|
-
) {
|
|
9371
|
-
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9372
|
-
"uniffi_bark_ffi_checksum_constructor_wallet_open_with_onchain"
|
|
9373
|
-
);
|
|
9374
|
-
}
|
|
9375
8514
|
|
|
9376
8515
|
uniffiCallbackInterfaceBarkLogger.register();
|
|
9377
8516
|
uniffiCallbackInterfaceCustomOnchainWalletCallbacks.register();
|
|
@@ -9383,13 +8522,13 @@ export default Object.freeze({
|
|
|
9383
8522
|
FfiConverterTypeAddressWithIndex,
|
|
9384
8523
|
FfiConverterTypeArkInfo,
|
|
9385
8524
|
FfiConverterTypeBalance,
|
|
9386
|
-
FfiConverterTypeBarkError,
|
|
9387
8525
|
FfiConverterTypeBarkLogger,
|
|
9388
8526
|
FfiConverterTypeBlockRef,
|
|
9389
8527
|
FfiConverterTypeConfig,
|
|
9390
8528
|
FfiConverterTypeCpfpParams,
|
|
9391
8529
|
FfiConverterTypeCustomOnchainWalletCallbacks,
|
|
9392
8530
|
FfiConverterTypeDestination,
|
|
8531
|
+
FfiConverterTypeError,
|
|
9393
8532
|
FfiConverterTypeExitClaimTransaction,
|
|
9394
8533
|
FfiConverterTypeExitProgressStatus,
|
|
9395
8534
|
FfiConverterTypeExitTransactionStatus,
|
|
@@ -9412,6 +8551,7 @@ export default Object.freeze({
|
|
|
9412
8551
|
FfiConverterTypeVtxo,
|
|
9413
8552
|
FfiConverterTypeWallet,
|
|
9414
8553
|
FfiConverterTypeWalletNotification,
|
|
8554
|
+
FfiConverterTypeWalletOpenArgs,
|
|
9415
8555
|
FfiConverterTypeWalletProperties,
|
|
9416
8556
|
},
|
|
9417
8557
|
});
|