@secondts/bark-react-native 0.17.0 → 0.19.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 +146 -0
- package/cpp/generated/bark.hpp +8 -0
- package/lib/commonjs/generated/bark-ffi.js.map +1 -1
- package/lib/commonjs/generated/bark.js +359 -3
- 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 +358 -2
- package/lib/module/generated/bark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts +8 -0
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark.d.ts +216 -2
- package/lib/typescript/commonjs/src/generated/bark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark-ffi.d.ts +8 -0
- package/lib/typescript/module/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark.d.ts +216 -2
- package/lib/typescript/module/src/generated/bark.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/generated/bark-ffi.ts +22 -0
- package/src/generated/bark.ts +528 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getter","globalThis","NativeBark","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/bark-ffi.ts"],"mappings":";;AAAA;AACA;;AAEA;AACA;AACA;;
|
|
1
|
+
{"version":3,"names":["getter","globalThis","NativeBark","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/bark-ffi.ts"],"mappings":";;AAAA;AACA;;AAEA;AACA;AACA;;AAwyBA;AACA;AACA;AACA;AACA;AACA,MAAMA,MAAmC,GAAGA,CAAA,KACzCC,UAAU,CAASC,UAAU;AAChC,eAAeF,MAAM;;AAErB;;AAwKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMG,8CAGL,GAAG,IAAI;AACR,MAAMC,mCAGL,GAAG,IAAI","ignoreList":[]}
|
|
@@ -443,6 +443,47 @@ const FfiConverterTypeDestination = (() => {
|
|
|
443
443
|
return new FFIConverter();
|
|
444
444
|
})();
|
|
445
445
|
|
|
446
|
+
/**
|
|
447
|
+
* Outcome of a cancellation request.
|
|
448
|
+
*
|
|
449
|
+
* `canceled` is `true` when the exit is now canceled — including when it was
|
|
450
|
+
* already canceled by an earlier call, since cancellation is idempotent.
|
|
451
|
+
* When `false`, `reason` says why.
|
|
452
|
+
*/
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Generated factory for {@link ExitCancelResult} record objects.
|
|
456
|
+
*/
|
|
457
|
+
export const ExitCancelResult = (() => {
|
|
458
|
+
const defaults = () => ({});
|
|
459
|
+
const create = (() => {
|
|
460
|
+
return uniffiCreateRecord(defaults);
|
|
461
|
+
})();
|
|
462
|
+
return Object.freeze({
|
|
463
|
+
create,
|
|
464
|
+
new: create,
|
|
465
|
+
defaults: () => Object.freeze(defaults())
|
|
466
|
+
});
|
|
467
|
+
})();
|
|
468
|
+
const FfiConverterTypeExitCancelResult = (() => {
|
|
469
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
470
|
+
read(from) {
|
|
471
|
+
return {
|
|
472
|
+
canceled: FfiConverterBool.read(from),
|
|
473
|
+
reason: FfiConverterOptionalTypeExitCancelFailure.read(from)
|
|
474
|
+
};
|
|
475
|
+
}
|
|
476
|
+
write(value, into) {
|
|
477
|
+
FfiConverterBool.write(value.canceled, into);
|
|
478
|
+
FfiConverterOptionalTypeExitCancelFailure.write(value.reason, into);
|
|
479
|
+
}
|
|
480
|
+
allocationSize(value) {
|
|
481
|
+
return FfiConverterBool.allocationSize(value.canceled) + FfiConverterOptionalTypeExitCancelFailure.allocationSize(value.reason);
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
return new FFIConverter();
|
|
485
|
+
})();
|
|
486
|
+
|
|
446
487
|
/**
|
|
447
488
|
* Claim transaction for exited funds
|
|
448
489
|
*/
|
|
@@ -1658,6 +1699,180 @@ const FfiConverterTypeError = (() => {
|
|
|
1658
1699
|
return new FfiConverter();
|
|
1659
1700
|
})();
|
|
1660
1701
|
|
|
1702
|
+
// Enum: ExitCancelFailure
|
|
1703
|
+
export let ExitCancelFailure_Tags = /*#__PURE__*/function (ExitCancelFailure_Tags) {
|
|
1704
|
+
ExitCancelFailure_Tags["NotExiting"] = "NotExiting";
|
|
1705
|
+
ExitCancelFailure_Tags["TooLate"] = "TooLate";
|
|
1706
|
+
ExitCancelFailure_Tags["AlreadyBroadcast"] = "AlreadyBroadcast";
|
|
1707
|
+
return ExitCancelFailure_Tags;
|
|
1708
|
+
}({});
|
|
1709
|
+
/**
|
|
1710
|
+
* Why a [`Wallet::cancel_exit`](crate::core::Wallet::cancel_exit) did not
|
|
1711
|
+
* cancel the exit.
|
|
1712
|
+
*
|
|
1713
|
+
* These are the *expected* negative outcomes of asking to cancel, not faults:
|
|
1714
|
+
* each is a normal state the exit can legitimately be in. Genuine failures
|
|
1715
|
+
* (database, chain source unreachable) still surface as `Err`.
|
|
1716
|
+
*/
|
|
1717
|
+
export const ExitCancelFailure = (() => {
|
|
1718
|
+
/**
|
|
1719
|
+
* No exit was ever started for this VTXO.
|
|
1720
|
+
*/
|
|
1721
|
+
class NotExiting_ extends UniffiEnum {
|
|
1722
|
+
/**
|
|
1723
|
+
* @private
|
|
1724
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1725
|
+
*/
|
|
1726
|
+
[uniffiTypeNameSymbol] = "ExitCancelFailure";
|
|
1727
|
+
tag = ExitCancelFailure_Tags.NotExiting;
|
|
1728
|
+
constructor() {
|
|
1729
|
+
super("ExitCancelFailure", "NotExiting");
|
|
1730
|
+
}
|
|
1731
|
+
static new() {
|
|
1732
|
+
return new NotExiting_();
|
|
1733
|
+
}
|
|
1734
|
+
static instanceOf(obj) {
|
|
1735
|
+
return obj.tag === ExitCancelFailure_Tags.NotExiting;
|
|
1736
|
+
}
|
|
1737
|
+
}
|
|
1738
|
+
/**
|
|
1739
|
+
* The exit has progressed past its abortable window. `state` is the
|
|
1740
|
+
* state that blocked the cancellation.
|
|
1741
|
+
*/
|
|
1742
|
+
class TooLate_ extends UniffiEnum {
|
|
1743
|
+
/**
|
|
1744
|
+
* @private
|
|
1745
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1746
|
+
*/
|
|
1747
|
+
[uniffiTypeNameSymbol] = "ExitCancelFailure";
|
|
1748
|
+
tag = ExitCancelFailure_Tags.TooLate;
|
|
1749
|
+
constructor(inner) {
|
|
1750
|
+
super("ExitCancelFailure", "TooLate");
|
|
1751
|
+
this.inner = Object.freeze(inner);
|
|
1752
|
+
}
|
|
1753
|
+
static new(inner) {
|
|
1754
|
+
return new TooLate_(inner);
|
|
1755
|
+
}
|
|
1756
|
+
static instanceOf(obj) {
|
|
1757
|
+
return obj.tag === ExitCancelFailure_Tags.TooLate;
|
|
1758
|
+
}
|
|
1759
|
+
}
|
|
1760
|
+
/**
|
|
1761
|
+
* The final exit transaction is already in the mempool or a block, so
|
|
1762
|
+
* the exit can no longer be called off.
|
|
1763
|
+
*/
|
|
1764
|
+
class AlreadyBroadcast_ extends UniffiEnum {
|
|
1765
|
+
/**
|
|
1766
|
+
* @private
|
|
1767
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1768
|
+
*/
|
|
1769
|
+
[uniffiTypeNameSymbol] = "ExitCancelFailure";
|
|
1770
|
+
tag = ExitCancelFailure_Tags.AlreadyBroadcast;
|
|
1771
|
+
constructor(inner) {
|
|
1772
|
+
super("ExitCancelFailure", "AlreadyBroadcast");
|
|
1773
|
+
this.inner = Object.freeze(inner);
|
|
1774
|
+
}
|
|
1775
|
+
static new(inner) {
|
|
1776
|
+
return new AlreadyBroadcast_(inner);
|
|
1777
|
+
}
|
|
1778
|
+
static instanceOf(obj) {
|
|
1779
|
+
return obj.tag === ExitCancelFailure_Tags.AlreadyBroadcast;
|
|
1780
|
+
}
|
|
1781
|
+
}
|
|
1782
|
+
function instanceOf(obj) {
|
|
1783
|
+
return obj[uniffiTypeNameSymbol] === "ExitCancelFailure";
|
|
1784
|
+
}
|
|
1785
|
+
return Object.freeze({
|
|
1786
|
+
instanceOf,
|
|
1787
|
+
NotExiting: NotExiting_,
|
|
1788
|
+
TooLate: TooLate_,
|
|
1789
|
+
AlreadyBroadcast: AlreadyBroadcast_
|
|
1790
|
+
});
|
|
1791
|
+
})();
|
|
1792
|
+
|
|
1793
|
+
/**
|
|
1794
|
+
* Why a [`Wallet::cancel_exit`](crate::core::Wallet::cancel_exit) did not
|
|
1795
|
+
* cancel the exit.
|
|
1796
|
+
*
|
|
1797
|
+
* These are the *expected* negative outcomes of asking to cancel, not faults:
|
|
1798
|
+
* each is a normal state the exit can legitimately be in. Genuine failures
|
|
1799
|
+
* (database, chain source unreachable) still surface as `Err`.
|
|
1800
|
+
*/
|
|
1801
|
+
|
|
1802
|
+
// FfiConverter for enum ExitCancelFailure
|
|
1803
|
+
const FfiConverterTypeExitCancelFailure = (() => {
|
|
1804
|
+
const ordinalConverter = FfiConverterInt32;
|
|
1805
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
1806
|
+
read(from) {
|
|
1807
|
+
switch (ordinalConverter.read(from)) {
|
|
1808
|
+
case 1:
|
|
1809
|
+
return new ExitCancelFailure.NotExiting();
|
|
1810
|
+
case 2:
|
|
1811
|
+
return new ExitCancelFailure.TooLate({
|
|
1812
|
+
state: FfiConverterTypeExitStateKind.read(from)
|
|
1813
|
+
});
|
|
1814
|
+
case 3:
|
|
1815
|
+
return new ExitCancelFailure.AlreadyBroadcast({
|
|
1816
|
+
txid: FfiConverterString.read(from)
|
|
1817
|
+
});
|
|
1818
|
+
default:
|
|
1819
|
+
throw new UniffiInternalError.UnexpectedEnumCase();
|
|
1820
|
+
}
|
|
1821
|
+
}
|
|
1822
|
+
write(value, into) {
|
|
1823
|
+
switch (value.tag) {
|
|
1824
|
+
case ExitCancelFailure_Tags.NotExiting:
|
|
1825
|
+
{
|
|
1826
|
+
ordinalConverter.write(1, into);
|
|
1827
|
+
return;
|
|
1828
|
+
}
|
|
1829
|
+
case ExitCancelFailure_Tags.TooLate:
|
|
1830
|
+
{
|
|
1831
|
+
ordinalConverter.write(2, into);
|
|
1832
|
+
const inner = value.inner;
|
|
1833
|
+
FfiConverterTypeExitStateKind.write(inner.state, into);
|
|
1834
|
+
return;
|
|
1835
|
+
}
|
|
1836
|
+
case ExitCancelFailure_Tags.AlreadyBroadcast:
|
|
1837
|
+
{
|
|
1838
|
+
ordinalConverter.write(3, into);
|
|
1839
|
+
const inner = value.inner;
|
|
1840
|
+
FfiConverterString.write(inner.txid, into);
|
|
1841
|
+
return;
|
|
1842
|
+
}
|
|
1843
|
+
default:
|
|
1844
|
+
// Throwing from here means that ExitCancelFailure_Tags hasn't matched an ordinal.
|
|
1845
|
+
throw new UniffiInternalError.UnexpectedEnumCase();
|
|
1846
|
+
}
|
|
1847
|
+
}
|
|
1848
|
+
allocationSize(value) {
|
|
1849
|
+
switch (value.tag) {
|
|
1850
|
+
case ExitCancelFailure_Tags.NotExiting:
|
|
1851
|
+
{
|
|
1852
|
+
return ordinalConverter.allocationSize(1);
|
|
1853
|
+
}
|
|
1854
|
+
case ExitCancelFailure_Tags.TooLate:
|
|
1855
|
+
{
|
|
1856
|
+
const inner = value.inner;
|
|
1857
|
+
let size = ordinalConverter.allocationSize(2);
|
|
1858
|
+
size += FfiConverterTypeExitStateKind.allocationSize(inner.state);
|
|
1859
|
+
return size;
|
|
1860
|
+
}
|
|
1861
|
+
case ExitCancelFailure_Tags.AlreadyBroadcast:
|
|
1862
|
+
{
|
|
1863
|
+
const inner = value.inner;
|
|
1864
|
+
let size = ordinalConverter.allocationSize(3);
|
|
1865
|
+
size += FfiConverterString.allocationSize(inner.txid);
|
|
1866
|
+
return size;
|
|
1867
|
+
}
|
|
1868
|
+
default:
|
|
1869
|
+
throw new UniffiInternalError.UnexpectedEnumCase();
|
|
1870
|
+
}
|
|
1871
|
+
}
|
|
1872
|
+
}
|
|
1873
|
+
return new FFIConverter();
|
|
1874
|
+
})();
|
|
1875
|
+
|
|
1661
1876
|
// Enum: ExitState
|
|
1662
1877
|
export let ExitState_Tags = /*#__PURE__*/function (ExitState_Tags) {
|
|
1663
1878
|
ExitState_Tags["Start"] = "Start";
|
|
@@ -2070,6 +2285,77 @@ const FfiConverterTypeExitState = (() => {
|
|
|
2070
2285
|
return new FFIConverter();
|
|
2071
2286
|
})();
|
|
2072
2287
|
|
|
2288
|
+
/**
|
|
2289
|
+
* Lightweight discriminator for [`ExitState`], mirroring
|
|
2290
|
+
* `bark::exit::ExitStateKind`.
|
|
2291
|
+
*
|
|
2292
|
+
* Carries no payload — use it where only the variant matters (e.g. reporting
|
|
2293
|
+
* which state blocked a cancellation). Serde/TS tags match upstream's
|
|
2294
|
+
* kebab-case serialization.
|
|
2295
|
+
*/
|
|
2296
|
+
export let ExitStateKind = /*#__PURE__*/function (ExitStateKind) {
|
|
2297
|
+
ExitStateKind[ExitStateKind["Start"] = 0] = "Start";
|
|
2298
|
+
ExitStateKind[ExitStateKind["Processing"] = 1] = "Processing";
|
|
2299
|
+
ExitStateKind[ExitStateKind["AwaitingDelta"] = 2] = "AwaitingDelta";
|
|
2300
|
+
ExitStateKind[ExitStateKind["Claimable"] = 3] = "Claimable";
|
|
2301
|
+
ExitStateKind[ExitStateKind["ClaimInProgress"] = 4] = "ClaimInProgress";
|
|
2302
|
+
ExitStateKind[ExitStateKind["Claimed"] = 5] = "Claimed";
|
|
2303
|
+
ExitStateKind[ExitStateKind["VtxoAlreadySpent"] = 6] = "VtxoAlreadySpent";
|
|
2304
|
+
ExitStateKind[ExitStateKind["Canceled"] = 7] = "Canceled";
|
|
2305
|
+
return ExitStateKind;
|
|
2306
|
+
}({});
|
|
2307
|
+
const FfiConverterTypeExitStateKind = (() => {
|
|
2308
|
+
const ordinalConverter = FfiConverterInt32;
|
|
2309
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
2310
|
+
read(from) {
|
|
2311
|
+
switch (ordinalConverter.read(from)) {
|
|
2312
|
+
case 1:
|
|
2313
|
+
return ExitStateKind.Start;
|
|
2314
|
+
case 2:
|
|
2315
|
+
return ExitStateKind.Processing;
|
|
2316
|
+
case 3:
|
|
2317
|
+
return ExitStateKind.AwaitingDelta;
|
|
2318
|
+
case 4:
|
|
2319
|
+
return ExitStateKind.Claimable;
|
|
2320
|
+
case 5:
|
|
2321
|
+
return ExitStateKind.ClaimInProgress;
|
|
2322
|
+
case 6:
|
|
2323
|
+
return ExitStateKind.Claimed;
|
|
2324
|
+
case 7:
|
|
2325
|
+
return ExitStateKind.VtxoAlreadySpent;
|
|
2326
|
+
case 8:
|
|
2327
|
+
return ExitStateKind.Canceled;
|
|
2328
|
+
default:
|
|
2329
|
+
throw new UniffiInternalError.UnexpectedEnumCase();
|
|
2330
|
+
}
|
|
2331
|
+
}
|
|
2332
|
+
write(value, into) {
|
|
2333
|
+
switch (value) {
|
|
2334
|
+
case ExitStateKind.Start:
|
|
2335
|
+
return ordinalConverter.write(1, into);
|
|
2336
|
+
case ExitStateKind.Processing:
|
|
2337
|
+
return ordinalConverter.write(2, into);
|
|
2338
|
+
case ExitStateKind.AwaitingDelta:
|
|
2339
|
+
return ordinalConverter.write(3, into);
|
|
2340
|
+
case ExitStateKind.Claimable:
|
|
2341
|
+
return ordinalConverter.write(4, into);
|
|
2342
|
+
case ExitStateKind.ClaimInProgress:
|
|
2343
|
+
return ordinalConverter.write(5, into);
|
|
2344
|
+
case ExitStateKind.Claimed:
|
|
2345
|
+
return ordinalConverter.write(6, into);
|
|
2346
|
+
case ExitStateKind.VtxoAlreadySpent:
|
|
2347
|
+
return ordinalConverter.write(7, into);
|
|
2348
|
+
case ExitStateKind.Canceled:
|
|
2349
|
+
return ordinalConverter.write(8, into);
|
|
2350
|
+
}
|
|
2351
|
+
}
|
|
2352
|
+
allocationSize(value) {
|
|
2353
|
+
return ordinalConverter.allocationSize(0);
|
|
2354
|
+
}
|
|
2355
|
+
}
|
|
2356
|
+
return new FFIConverter();
|
|
2357
|
+
})();
|
|
2358
|
+
|
|
2073
2359
|
// Enum: ExitTxOrigin
|
|
2074
2360
|
export let ExitTxOrigin_Tags = /*#__PURE__*/function (ExitTxOrigin_Tags) {
|
|
2075
2361
|
ExitTxOrigin_Tags["Wallet"] = "Wallet";
|
|
@@ -4210,7 +4496,7 @@ const FfiConverterTypeOnchainWallet = new FfiConverterObject(uniffiTypeOnchainWa
|
|
|
4210
4496
|
*
|
|
4211
4497
|
* Wraps `core::Wallet` and adds:
|
|
4212
4498
|
* - `run_async` runtime offload on every entry point
|
|
4213
|
-
* -
|
|
4499
|
+
* - daemon shutdown on drop
|
|
4214
4500
|
* - LNURL `pay_lightning_address`
|
|
4215
4501
|
* - Daemon control methods
|
|
4216
4502
|
* - Notification holder
|
|
@@ -4226,7 +4512,7 @@ const FfiConverterTypeOnchainWallet = new FfiConverterObject(uniffiTypeOnchainWa
|
|
|
4226
4512
|
*
|
|
4227
4513
|
* Wraps `core::Wallet` and adds:
|
|
4228
4514
|
* - `run_async` runtime offload on every entry point
|
|
4229
|
-
* -
|
|
4515
|
+
* - daemon shutdown on drop
|
|
4230
4516
|
* - LNURL `pay_lightning_address`
|
|
4231
4517
|
* - Daemon control methods
|
|
4232
4518
|
* - Notification holder
|
|
@@ -4436,6 +4722,19 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
4436
4722
|
throw __error;
|
|
4437
4723
|
}
|
|
4438
4724
|
}
|
|
4725
|
+
async cancelExit(vtxoId, asyncOpts_) /*throws*/{
|
|
4726
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4727
|
+
try {
|
|
4728
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
4729
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_cancel_exit(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(vtxoId));
|
|
4730
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeExitCancelResult.lift.bind(FfiConverterTypeExitCancelResult), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
4731
|
+
} catch (__error) {
|
|
4732
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
4733
|
+
__error.stack = __stack;
|
|
4734
|
+
}
|
|
4735
|
+
throw __error;
|
|
4736
|
+
}
|
|
4737
|
+
}
|
|
4439
4738
|
async cancelLightningReceive(paymentHash, asyncOpts_) /*throws*/{
|
|
4440
4739
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4441
4740
|
try {
|
|
@@ -4831,6 +5130,19 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
4831
5130
|
throw __error;
|
|
4832
5131
|
}
|
|
4833
5132
|
}
|
|
5133
|
+
async lockVtxos(vtxoIds, holder, asyncOpts_) /*throws*/{
|
|
5134
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
5135
|
+
try {
|
|
5136
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
5137
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_lock_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterArrayString.lower(vtxoIds), FfiConverterOptionalTypeVtxoLockHolder.lower(holder));
|
|
5138
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
5139
|
+
} catch (__error) {
|
|
5140
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
5141
|
+
__error.stack = __stack;
|
|
5142
|
+
}
|
|
5143
|
+
throw __error;
|
|
5144
|
+
}
|
|
5145
|
+
}
|
|
4834
5146
|
mailboxAuthorization() /*throws*/{
|
|
4835
5147
|
return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
|
|
4836
5148
|
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_mailbox_authorization(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
|
|
@@ -5373,6 +5685,19 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
5373
5685
|
throw __error;
|
|
5374
5686
|
}
|
|
5375
5687
|
}
|
|
5688
|
+
async startExitForVtxosIncludingNonStandard(vtxoIds, asyncOpts_) /*throws*/{
|
|
5689
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
5690
|
+
try {
|
|
5691
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
5692
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_start_exit_for_vtxos_including_non_standard(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterArrayString.lower(vtxoIds));
|
|
5693
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
5694
|
+
} catch (__error) {
|
|
5695
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
5696
|
+
__error.stack = __stack;
|
|
5697
|
+
}
|
|
5698
|
+
throw __error;
|
|
5699
|
+
}
|
|
5700
|
+
}
|
|
5376
5701
|
async stopDaemon(asyncOpts_) /*throws*/{
|
|
5377
5702
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
5378
5703
|
try {
|
|
@@ -5485,6 +5810,19 @@ export class Wallet extends UniffiAbstractObject {
|
|
|
5485
5810
|
throw __error;
|
|
5486
5811
|
}
|
|
5487
5812
|
}
|
|
5813
|
+
async unlockVtxos(vtxoIds, expectedHolder, asyncOpts_) /*throws*/{
|
|
5814
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
5815
|
+
try {
|
|
5816
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
5817
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_unlock_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterArrayString.lower(vtxoIds), FfiConverterOptionalTypeVtxoLockHolder.lower(expectedHolder));
|
|
5818
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
5819
|
+
} catch (__error) {
|
|
5820
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
5821
|
+
__error.stack = __stack;
|
|
5822
|
+
}
|
|
5823
|
+
throw __error;
|
|
5824
|
+
}
|
|
5825
|
+
}
|
|
5488
5826
|
async validateArkoorAddress(address, asyncOpts_) /*throws*/{
|
|
5489
5827
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
5490
5828
|
try {
|
|
@@ -5658,6 +5996,9 @@ const FfiConverterArrayTypeWalletTransaction = new FfiConverterArray(FfiConverte
|
|
|
5658
5996
|
// FfiConverter for Array<string>
|
|
5659
5997
|
const FfiConverterArrayString = new FfiConverterArray(FfiConverterString);
|
|
5660
5998
|
|
|
5999
|
+
// FfiConverter for ExitCancelFailure | undefined
|
|
6000
|
+
const FfiConverterOptionalTypeExitCancelFailure = new FfiConverterOptional(FfiConverterTypeExitCancelFailure);
|
|
6001
|
+
|
|
5661
6002
|
// FfiConverter for VtxoLockHolder | undefined
|
|
5662
6003
|
const FfiConverterOptionalTypeVtxoLockHolder = new FfiConverterOptional(FfiConverterTypeVtxoLockHolder);
|
|
5663
6004
|
|
|
@@ -5808,6 +6149,9 @@ function uniffiEnsureInitialized() {
|
|
|
5808
6149
|
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds() !== 53455) {
|
|
5809
6150
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds");
|
|
5810
6151
|
}
|
|
6152
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_exit() !== 1772) {
|
|
6153
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_cancel_exit");
|
|
6154
|
+
}
|
|
5811
6155
|
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_lightning_receive() !== 49444) {
|
|
5812
6156
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_cancel_lightning_receive");
|
|
5813
6157
|
}
|
|
@@ -5898,6 +6242,9 @@ function uniffiEnsureInitialized() {
|
|
|
5898
6242
|
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits() !== 58660) {
|
|
5899
6243
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits");
|
|
5900
6244
|
}
|
|
6245
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_lock_vtxos() !== 25205) {
|
|
6246
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_lock_vtxos");
|
|
6247
|
+
}
|
|
5901
6248
|
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization() !== 52372) {
|
|
5902
6249
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization");
|
|
5903
6250
|
}
|
|
@@ -6021,6 +6368,9 @@ function uniffiEnsureInitialized() {
|
|
|
6021
6368
|
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos() !== 56154) {
|
|
6022
6369
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos");
|
|
6023
6370
|
}
|
|
6371
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos_including_non_standard() !== 29239) {
|
|
6372
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos_including_non_standard");
|
|
6373
|
+
}
|
|
6024
6374
|
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_stop_daemon() !== 7109) {
|
|
6025
6375
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_stop_daemon");
|
|
6026
6376
|
}
|
|
@@ -6045,6 +6395,9 @@ function uniffiEnsureInitialized() {
|
|
|
6045
6395
|
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive() !== 43209) {
|
|
6046
6396
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive");
|
|
6047
6397
|
}
|
|
6398
|
+
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_unlock_vtxos() !== 42168) {
|
|
6399
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_unlock_vtxos");
|
|
6400
|
+
}
|
|
6048
6401
|
if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address() !== 10861) {
|
|
6049
6402
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address");
|
|
6050
6403
|
}
|
|
@@ -6080,9 +6433,12 @@ export default Object.freeze({
|
|
|
6080
6433
|
FfiConverterTypeCustomOnchainWalletCallbacks,
|
|
6081
6434
|
FfiConverterTypeDestination,
|
|
6082
6435
|
FfiConverterTypeError,
|
|
6436
|
+
FfiConverterTypeExitCancelFailure,
|
|
6437
|
+
FfiConverterTypeExitCancelResult,
|
|
6083
6438
|
FfiConverterTypeExitClaimTransaction,
|
|
6084
6439
|
FfiConverterTypeExitProgressStatus,
|
|
6085
6440
|
FfiConverterTypeExitState,
|
|
6441
|
+
FfiConverterTypeExitStateKind,
|
|
6086
6442
|
FfiConverterTypeExitTransactionStatus,
|
|
6087
6443
|
FfiConverterTypeExitTx,
|
|
6088
6444
|
FfiConverterTypeExitTxOrigin,
|