@arkade-os/sdk 0.4.44 → 0.4.46
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 +35 -0
- package/dist/adapters/expo.cjs +5 -5
- package/dist/adapters/expo.d.cts +2 -2
- package/dist/adapters/expo.d.ts +2 -2
- package/dist/adapters/expo.js +3 -3
- package/dist/adapters/indexedDB.cjs +5 -5
- package/dist/adapters/indexedDB.js +4 -4
- package/dist/{ark-I8jfe5VE.d.cts → ark-C9ognsOV.d.cts} +94 -2
- package/dist/{ark-I8jfe5VE.d.ts → ark-C9ognsOV.d.ts} +94 -2
- package/dist/{asyncStorageTaskQueue-BtSOVZFn.d.ts → asyncStorageTaskQueue-BAKZ5cS5.d.ts} +2 -2
- package/dist/{asyncStorageTaskQueue-Dap7qUlF.d.cts → asyncStorageTaskQueue-CmBYVlxw.d.cts} +2 -2
- package/dist/{chunk-32YKLQPS.cjs → chunk-4KXOCVXP.cjs} +32 -29
- package/dist/chunk-4KXOCVXP.cjs.map +1 -0
- package/dist/{chunk-RJ6XVCX4.cjs → chunk-6TQJOD72.cjs} +7 -7
- package/dist/{chunk-RJ6XVCX4.cjs.map → chunk-6TQJOD72.cjs.map} +1 -1
- package/dist/{chunk-UBYY2TPK.cjs → chunk-7IYIFMF4.cjs} +178 -79
- package/dist/chunk-7IYIFMF4.cjs.map +1 -0
- package/dist/{chunk-LJ35HPJW.js → chunk-CWJ7ZCP7.js} +171 -75
- package/dist/chunk-CWJ7ZCP7.js.map +1 -0
- package/dist/{chunk-XIVCG6EP.cjs → chunk-D46YDM36.cjs} +1173 -425
- package/dist/chunk-D46YDM36.cjs.map +1 -0
- package/dist/{chunk-BE5MUB7T.js → chunk-FWG4TSPN.js} +7 -2
- package/dist/chunk-FWG4TSPN.js.map +1 -0
- package/dist/{chunk-V7WIZR2B.js → chunk-JTCQ6QXQ.js} +4 -4
- package/dist/{chunk-V7WIZR2B.js.map → chunk-JTCQ6QXQ.js.map} +1 -1
- package/dist/{chunk-HXDZ2QTW.cjs → chunk-MQB5H4X5.cjs} +7 -2
- package/dist/chunk-MQB5H4X5.cjs.map +1 -0
- package/dist/{chunk-FMI2GKYO.js → chunk-P6VBP3CT.js} +977 -231
- package/dist/chunk-P6VBP3CT.js.map +1 -0
- package/dist/{chunk-YNEDJTX2.js → chunk-QKC2T54O.js} +6 -3
- package/dist/chunk-QKC2T54O.js.map +1 -0
- package/dist/{chunk-LCQQPOIT.js → chunk-R2SVAM5Q.js} +3 -3
- package/dist/{chunk-LCQQPOIT.js.map → chunk-R2SVAM5Q.js.map} +1 -1
- package/dist/{chunk-X37EKDIH.cjs → chunk-SOXGAA52.cjs} +14 -14
- package/dist/{chunk-X37EKDIH.cjs.map → chunk-SOXGAA52.cjs.map} +1 -1
- package/dist/contracts/handlers/index.cjs +7 -7
- package/dist/contracts/handlers/index.d.cts +3 -3
- package/dist/contracts/handlers/index.d.ts +3 -3
- package/dist/contracts/handlers/index.js +2 -2
- package/dist/{delegate-BRqbh2fW.d.cts → delegate-DVEgyRwI.d.cts} +1 -1
- package/dist/{delegate-CgjVjYOP.d.ts → delegate-aOd5qINr.d.ts} +1 -1
- package/dist/{index-DvWNB_rl.d.ts → index-CPzL4tqg.d.ts} +2 -2
- package/dist/{index-DHuXlDEg.d.cts → index-D8vmtWWO.d.cts} +2 -2
- package/dist/index.cjs +176 -156
- package/dist/index.d.cts +45 -20
- package/dist/index.d.ts +45 -20
- package/dist/index.js +4 -4
- package/dist/repositories/realm/index.cjs +23 -19
- package/dist/repositories/realm/index.cjs.map +1 -1
- package/dist/repositories/realm/index.d.cts +2 -2
- package/dist/repositories/realm/index.d.ts +2 -2
- package/dist/repositories/realm/index.js +9 -5
- package/dist/repositories/realm/index.js.map +1 -1
- package/dist/repositories/sqlite/index.cjs +22 -18
- package/dist/repositories/sqlite/index.cjs.map +1 -1
- package/dist/repositories/sqlite/index.d.cts +2 -2
- package/dist/repositories/sqlite/index.d.ts +2 -2
- package/dist/repositories/sqlite/index.js +9 -5
- package/dist/repositories/sqlite/index.js.map +1 -1
- package/dist/{taskRunner-Bptw9UMa.d.ts → taskRunner-B48-V-Pb.d.ts} +2 -2
- package/dist/{taskRunner-CeFxKhSH.d.cts → taskRunner-nNecmQ2C.d.cts} +2 -2
- package/dist/wallet/expo/background.cjs +14 -14
- package/dist/wallet/expo/background.d.cts +3 -3
- package/dist/wallet/expo/background.d.ts +3 -3
- package/dist/wallet/expo/background.js +6 -6
- package/dist/wallet/expo/index.cjs +27 -14
- package/dist/wallet/expo/index.cjs.map +1 -1
- package/dist/wallet/expo/index.d.cts +11 -4
- package/dist/wallet/expo/index.d.ts +11 -4
- package/dist/wallet/expo/index.js +18 -5
- package/dist/wallet/expo/index.js.map +1 -1
- package/dist/{wallet-BsqRU8KM.d.cts → wallet-BUg3D4WJ.d.cts} +139 -3
- package/dist/{wallet-D9z7wssl.d.ts → wallet-DM0oShTu.d.ts} +139 -3
- package/dist/worker/expo/index.cjs +10 -9
- package/dist/worker/expo/index.cjs.map +1 -1
- package/dist/worker/expo/index.d.cts +4 -4
- package/dist/worker/expo/index.d.ts +4 -4
- package/dist/worker/expo/index.js +6 -5
- package/dist/worker/expo/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-32YKLQPS.cjs.map +0 -1
- package/dist/chunk-BE5MUB7T.js.map +0 -1
- package/dist/chunk-FMI2GKYO.js.map +0 -1
- package/dist/chunk-HXDZ2QTW.cjs.map +0 -1
- package/dist/chunk-LJ35HPJW.js.map +0 -1
- package/dist/chunk-UBYY2TPK.cjs.map +0 -1
- package/dist/chunk-XIVCG6EP.cjs.map +0 -1
- package/dist/chunk-YNEDJTX2.js.map +0 -1
package/README.md
CHANGED
|
@@ -862,6 +862,41 @@ Key properties:
|
|
|
862
862
|
- `validUntil` carries the earliest batch expiry: execute before it, or the operator may
|
|
863
863
|
sweep the expired batch first.
|
|
864
864
|
|
|
865
|
+
### Exit data available offline
|
|
866
|
+
|
|
867
|
+
The exit above resolves a VTXO's transaction chain from the Ark **indexer** at
|
|
868
|
+
exit time. To make a unilateral exit work even when the indexer is unreachable,
|
|
869
|
+
configure a `virtualTxRepository` (SQLite / Realm / IndexedDB / InMemory): the
|
|
870
|
+
wallet then captures each received VTXO's exit branch locally and prunes it on
|
|
871
|
+
spend, and `estimate` / `prepare` read that data **local-first**, falling back to
|
|
872
|
+
the indexer only on a miss.
|
|
873
|
+
|
|
874
|
+
```typescript
|
|
875
|
+
import { Wallet, InMemoryVirtualTxRepository } from '@arkade-os/sdk'
|
|
876
|
+
|
|
877
|
+
const wallet = await Wallet.create({
|
|
878
|
+
identity,
|
|
879
|
+
storage: {
|
|
880
|
+
walletRepository,
|
|
881
|
+
contractRepository,
|
|
882
|
+
virtualTxRepository: new InMemoryVirtualTxRepository(),
|
|
883
|
+
// Optional. `mode` defaults to "lite" (structure only, cheap — most VTXOs
|
|
884
|
+
// never exit). Use "full" to also store the pre-signed PSBTs, so an exit
|
|
885
|
+
// needs no Ark indexer (only an Esplora endpoint to broadcast).
|
|
886
|
+
exitDataCapture: { mode: 'full' },
|
|
887
|
+
},
|
|
888
|
+
})
|
|
889
|
+
```
|
|
890
|
+
|
|
891
|
+
- **Lite (default)** stores only the chain structure; an exit still fetches PSBTs
|
|
892
|
+
from the indexer. **Full** stores the PSBTs too, so the exit is fully
|
|
893
|
+
indexer-independent. `minExitWorthSats` (default 1000) skips dust VTXOs.
|
|
894
|
+
- Capture and prune are best-effort — a persistence failure never blocks sync or
|
|
895
|
+
the exit. Pruning is ref-counted, so tree ancestors shared by other VTXOs survive.
|
|
896
|
+
- **Provider tier:** pass extra sources via `exitDataCapture.sources` to resolve
|
|
897
|
+
exit data from your own service before the indexer — implement the
|
|
898
|
+
`ExitDataSource` interface (`getVtxoChain` / `getVirtualTxs`).
|
|
899
|
+
|
|
865
900
|
### Running the wallet in a service worker
|
|
866
901
|
|
|
867
902
|
The SDK provides a `MessageBus` orchestrator that runs inside a service worker
|
package/dist/adapters/expo.cjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var chunkSOXGAA52_cjs = require('../chunk-SOXGAA52.cjs');
|
|
4
|
+
require('../chunk-7IYIFMF4.cjs');
|
|
5
|
+
require('../chunk-MQB5H4X5.cjs');
|
|
6
6
|
require('../chunk-5BLDMQED.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "ExpoArkProvider", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkSOXGAA52_cjs.ExpoArkProvider; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "ExpoIndexerProvider", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkSOXGAA52_cjs.ExpoIndexerProvider; }
|
|
17
17
|
});
|
|
18
18
|
//# sourceMappingURL=expo.cjs.map
|
|
19
19
|
//# sourceMappingURL=expo.cjs.map
|
package/dist/adapters/expo.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as RestArkProvider, j as SettlementEvent, T as TxNotification, m as RestIndexerProvider, n as SubscriptionResponse } from '../ark-
|
|
2
|
-
export { o as ArkProvider, p as IndexerProvider } from '../ark-
|
|
1
|
+
import { l as RestArkProvider, j as SettlementEvent, T as TxNotification, m as RestIndexerProvider, n as SubscriptionResponse } from '../ark-C9ognsOV.cjs';
|
|
2
|
+
export { o as ArkProvider, p as IndexerProvider } from '../ark-C9ognsOV.cjs';
|
|
3
3
|
import '@scure/btc-signer/transaction.js';
|
|
4
4
|
import '@scure/btc-signer/utils.js';
|
|
5
5
|
import '@scure/btc-signer/psbt.js';
|
package/dist/adapters/expo.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as RestArkProvider, j as SettlementEvent, T as TxNotification, m as RestIndexerProvider, n as SubscriptionResponse } from '../ark-
|
|
2
|
-
export { o as ArkProvider, p as IndexerProvider } from '../ark-
|
|
1
|
+
import { l as RestArkProvider, j as SettlementEvent, T as TxNotification, m as RestIndexerProvider, n as SubscriptionResponse } from '../ark-C9ognsOV.js';
|
|
2
|
+
export { o as ArkProvider, p as IndexerProvider } from '../ark-C9ognsOV.js';
|
|
3
3
|
import '@scure/btc-signer/transaction.js';
|
|
4
4
|
import '@scure/btc-signer/utils.js';
|
|
5
5
|
import '@scure/btc-signer/psbt.js';
|
package/dist/adapters/expo.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { ExpoArkProvider, ExpoIndexerProvider } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { ExpoArkProvider, ExpoIndexerProvider } from '../chunk-JTCQ6QXQ.js';
|
|
2
|
+
import '../chunk-CWJ7ZCP7.js';
|
|
3
|
+
import '../chunk-FWG4TSPN.js';
|
|
4
4
|
import '../chunk-NSBPE2FW.js';
|
|
5
5
|
//# sourceMappingURL=expo.js.map
|
|
6
6
|
//# sourceMappingURL=expo.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
3
|
+
var chunkD46YDM36_cjs = require('../chunk-D46YDM36.cjs');
|
|
4
|
+
require('../chunk-7IYIFMF4.cjs');
|
|
5
|
+
require('../chunk-4KXOCVXP.cjs');
|
|
6
|
+
require('../chunk-MQB5H4X5.cjs');
|
|
7
7
|
require('../chunk-5BLDMQED.cjs');
|
|
8
8
|
|
|
9
9
|
// src/storage/indexedDB.ts
|
|
@@ -11,7 +11,7 @@ var IndexedDBStorageAdapter = class {
|
|
|
11
11
|
dbName;
|
|
12
12
|
version;
|
|
13
13
|
db = null;
|
|
14
|
-
constructor(dbName, version =
|
|
14
|
+
constructor(dbName, version = chunkD46YDM36_cjs.DB_VERSION) {
|
|
15
15
|
this.dbName = dbName;
|
|
16
16
|
this.version = version;
|
|
17
17
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DB_VERSION } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
import { DB_VERSION } from '../chunk-P6VBP3CT.js';
|
|
2
|
+
import '../chunk-CWJ7ZCP7.js';
|
|
3
|
+
import '../chunk-QKC2T54O.js';
|
|
4
|
+
import '../chunk-FWG4TSPN.js';
|
|
5
5
|
import '../chunk-NSBPE2FW.js';
|
|
6
6
|
|
|
7
7
|
// src/storage/indexedDB.ts
|
|
@@ -1836,6 +1836,21 @@ interface ScanContractsOptions {
|
|
|
1836
1836
|
/** Read-only context injected into every `discoverAt` call. */
|
|
1837
1837
|
deps: DiscoveryDeps;
|
|
1838
1838
|
}
|
|
1839
|
+
/**
|
|
1840
|
+
* Freshness of the ContractManager's provider-backed sync. `degraded` means the
|
|
1841
|
+
* most recent sync (boot, best-effort read, or contract hydration) hit a
|
|
1842
|
+
* retryable indexer/operator failure and the manager is serving repository
|
|
1843
|
+
* state; it returns to `online` on the next successful sync. This only
|
|
1844
|
+
* describes sync freshness — never wallet data itself.
|
|
1845
|
+
*/
|
|
1846
|
+
type ContractSyncState = {
|
|
1847
|
+
mode: "online";
|
|
1848
|
+
lastSyncedAt?: number;
|
|
1849
|
+
} | {
|
|
1850
|
+
mode: "degraded";
|
|
1851
|
+
reason: string;
|
|
1852
|
+
lastSyncedAt?: number;
|
|
1853
|
+
};
|
|
1839
1854
|
interface IContractManager extends Disposable {
|
|
1840
1855
|
/**
|
|
1841
1856
|
* Create and register a new contract.
|
|
@@ -1863,6 +1878,11 @@ interface IContractManager extends Disposable {
|
|
|
1863
1878
|
* If no filter is provided, returns all contracts with their virtual outputs.
|
|
1864
1879
|
*/
|
|
1865
1880
|
getContractsWithVtxos(filter?: GetContractsFilter): Promise<ContractWithVtxos[]>;
|
|
1881
|
+
/**
|
|
1882
|
+
* Latest provider-sync health (online vs. degraded to repository data).
|
|
1883
|
+
* See {@link ContractSyncState}.
|
|
1884
|
+
*/
|
|
1885
|
+
getSyncState(): ContractSyncState;
|
|
1866
1886
|
/**
|
|
1867
1887
|
* Stamp raw virtual outputs with the correct per-contract tapscripts
|
|
1868
1888
|
* (forfeit, intent, tap tree).
|
|
@@ -2003,6 +2023,18 @@ interface ContractManagerConfig {
|
|
|
2003
2023
|
* {@link reconcileIntents}. Absent ⇒ no-op.
|
|
2004
2024
|
*/
|
|
2005
2025
|
intentRepository?: IntentRepository;
|
|
2026
|
+
/**
|
|
2027
|
+
* Optional exit-data capture hook. Fired best-effort after VTXOs are
|
|
2028
|
+
* persisted so a configured virtualTxRepository can store each one's
|
|
2029
|
+
* unilateral-exit branch. Absent ⇒ no-op.
|
|
2030
|
+
*/
|
|
2031
|
+
onVtxosPersisted?: (contract: Contract, vtxos: ExtendedVirtualCoin[]) => Promise<void>;
|
|
2032
|
+
/**
|
|
2033
|
+
* Optional exit-data prune hook. Fired best-effort with the spent outpoints
|
|
2034
|
+
* on `vtxo_spent` so a configured virtualTxRepository can drop their branch.
|
|
2035
|
+
* Absent ⇒ no-op.
|
|
2036
|
+
*/
|
|
2037
|
+
onVtxosSpent?: (vtxos: Outpoint[]) => Promise<void>;
|
|
2006
2038
|
/** Watcher configuration */
|
|
2007
2039
|
watcherConfig?: Partial<ContractWatcherConfig>;
|
|
2008
2040
|
}
|
|
@@ -2066,6 +2098,10 @@ declare class ContractManager implements IContractManager {
|
|
|
2066
2098
|
private initialized;
|
|
2067
2099
|
private eventCallbacks;
|
|
2068
2100
|
private stopWatcherFn?;
|
|
2101
|
+
/** `undefined` while online; the failure reason once a sync degrades. */
|
|
2102
|
+
private syncDegradedReason?;
|
|
2103
|
+
/** Epoch-ms of the last successful provider sync, if any. */
|
|
2104
|
+
private lastSyncedAt?;
|
|
2069
2105
|
private constructor();
|
|
2070
2106
|
/**
|
|
2071
2107
|
* Static factory method for creating a new ContractManager.
|
|
@@ -2077,6 +2113,15 @@ declare class ContractManager implements IContractManager {
|
|
|
2077
2113
|
* @param config ContractManagerConfig
|
|
2078
2114
|
*/
|
|
2079
2115
|
static create(config: ContractManagerConfig): Promise<ContractManager>;
|
|
2116
|
+
/**
|
|
2117
|
+
* Latest provider-sync health. See {@link ContractSyncState}. Degradation is
|
|
2118
|
+
* recorded by {@link initialize}, {@link getContractsWithVtxos}, and
|
|
2119
|
+
* {@link createContract}; it flips back to `online` on the next successful
|
|
2120
|
+
* sync. Purely a freshness signal — not a source of truth for wallet data.
|
|
2121
|
+
*/
|
|
2122
|
+
getSyncState(): ContractSyncState;
|
|
2123
|
+
private markSyncOnline;
|
|
2124
|
+
private markSyncDegraded;
|
|
2080
2125
|
private initialize;
|
|
2081
2126
|
/**
|
|
2082
2127
|
* Delta-sync the full watched set and reconcile the pending frontier.
|
|
@@ -3134,6 +3179,36 @@ declare function boardingResolver(): ActivityResolver;
|
|
|
3134
3179
|
/** Default registry with SDK built-ins. */
|
|
3135
3180
|
declare function createDefaultActivityRegistry(): ActivityRegistry;
|
|
3136
3181
|
|
|
3182
|
+
/**
|
|
3183
|
+
* A source of unilateral-exit chain data for a set of VTXOs. Sources are tried
|
|
3184
|
+
* in order by the resolver; a source returns `null` (chain) or omits keys (psbts)
|
|
3185
|
+
* for data it cannot supply — a "miss" — and the resolver falls through.
|
|
3186
|
+
*/
|
|
3187
|
+
interface ExitDataSource {
|
|
3188
|
+
readonly name: string;
|
|
3189
|
+
/** Full ancestry chain for a vtxo (all pages merged), or null on a miss. */
|
|
3190
|
+
getVtxoChain(vtxo: Outpoint): Promise<ChainTx[] | null>;
|
|
3191
|
+
/** Base64 PSBTs this source has, keyed by (unsigned) txid. Absent key = miss. */
|
|
3192
|
+
getVirtualTxs(txids: string[]): Promise<Map<string, string>>;
|
|
3193
|
+
}
|
|
3194
|
+
/** Reads exit chain data through an ordered chain of sources. */
|
|
3195
|
+
interface ExitChainResolver {
|
|
3196
|
+
getVtxoChain(vtxo: Outpoint): Promise<ChainTx[]>;
|
|
3197
|
+
getVirtualTxs(txids: string[]): Promise<string[]>;
|
|
3198
|
+
}
|
|
3199
|
+
/**
|
|
3200
|
+
* Assemble the standard exit-data resolver: local repo (if configured) → any
|
|
3201
|
+
* extra sources (e.g. a future provider) → indexer. Read-through persists to the
|
|
3202
|
+
* repository. With no repository this is exactly the indexer path (a no-op seam).
|
|
3203
|
+
*/
|
|
3204
|
+
declare function createExitChainResolver(params: {
|
|
3205
|
+
indexer: IndexerProvider;
|
|
3206
|
+
repository?: VirtualTxRepository;
|
|
3207
|
+
extraSources?: ExitDataSource[];
|
|
3208
|
+
}): ExitChainResolver;
|
|
3209
|
+
|
|
3210
|
+
type ExitCaptureMode = "lite" | "full";
|
|
3211
|
+
|
|
3137
3212
|
/**
|
|
3138
3213
|
* Wallet receive-address strategy.
|
|
3139
3214
|
*
|
|
@@ -3346,6 +3421,19 @@ type StorageConfig = {
|
|
|
3346
3421
|
* option as experimental until those paths land. Absent ⇒ no-op.
|
|
3347
3422
|
*/
|
|
3348
3423
|
virtualTxRepository?: VirtualTxRepository;
|
|
3424
|
+
/**
|
|
3425
|
+
* Optional exit-data capture settings (only in effect when
|
|
3426
|
+
* `virtualTxRepository` is set). `mode` "lite" (default) stores structure
|
|
3427
|
+
* only; "full" stores PSBTs so a unilateral exit needs no Ark indexer.
|
|
3428
|
+
* `minExitWorthSats` (default 1000) skips dust. `sources` are extra
|
|
3429
|
+
* `ExitDataSource`s (e.g. a wallet-provider) tried before the indexer for
|
|
3430
|
+
* both capture and exit reads.
|
|
3431
|
+
*/
|
|
3432
|
+
exitDataCapture?: {
|
|
3433
|
+
mode?: ExitCaptureMode;
|
|
3434
|
+
minExitWorthSats?: number;
|
|
3435
|
+
sources?: ExitDataSource[];
|
|
3436
|
+
};
|
|
3349
3437
|
};
|
|
3350
3438
|
/**
|
|
3351
3439
|
* Provider class constructor interface for dependency injection.
|
|
@@ -3787,7 +3875,9 @@ declare function isExpired(vtxo: VirtualCoin): boolean;
|
|
|
3787
3875
|
*
|
|
3788
3876
|
* @see isRecoverable
|
|
3789
3877
|
*/
|
|
3790
|
-
declare function isSubdust(vtxo:
|
|
3878
|
+
declare function isSubdust(vtxo: {
|
|
3879
|
+
value: number;
|
|
3880
|
+
} | bigint, dust: bigint): boolean;
|
|
3791
3881
|
/**
|
|
3792
3882
|
* Filtering options for `IWallet.getVtxos`.
|
|
3793
3883
|
*
|
|
@@ -4065,6 +4155,8 @@ type GetVtxosOptions = PaginationOptions & {
|
|
|
4065
4155
|
recoverableOnly?: boolean;
|
|
4066
4156
|
/** Only return pending/preconfirmed virtual outputs. */
|
|
4067
4157
|
pendingOnly?: boolean;
|
|
4158
|
+
/** Only return renewable virtual outputs (the union of the spendable and recoverable sets). */
|
|
4159
|
+
renewableOnly?: boolean;
|
|
4068
4160
|
/** Only return virtual outputs created after this timestamp. */
|
|
4069
4161
|
after?: number;
|
|
4070
4162
|
/** Only return virtual outputs created before this timestamp. */
|
|
@@ -4694,4 +4786,4 @@ declare namespace ProtoTypes {
|
|
|
4694
4786
|
export { };
|
|
4695
4787
|
}
|
|
4696
4788
|
|
|
4697
|
-
export {
|
|
4789
|
+
export { type Network as $, type ArkTransaction as A, type VirtualTxRepository as B, type ContractRepository as C, type VirtualTx as D, type ExtendedVirtualCoin as E, type VtxoBranch as F, type GetVtxosFilter as G, ChainedTxType as H, type IWallet as I, type BatchStartedEvent as J, type TreeSigningStartedEvent as K, TxTree as L, type TreeNoncesEvent as M, type BatchFinalizationEvent as N, type Outpoint as O, type BatchFinalizedEvent as P, type BatchFailedEvent as Q, type Recipient as R, type SendBitcoinParams as S, type TxNotification as T, type TreeTxEvent as U, VtxoScript as V, type WalletRepository as W, type TreeSignatureEvent as X, type DescriptorProvider as Y, type IReadonlyWallet as Z, type ReadonlyIdentity as _, type Identity as a, ConditionCSVMultisigTapscript as a$, type OnchainProvider as a0, type DelegateProvider as a1, type ReadonlyWalletConfig as a2, type ExitCaptureMode as a3, type ExitDataSource as a4, type IReadonlyAssetManager as a5, type ContractSyncState as a6, type NetworkName as a7, type ArkInfo as a8, ArkAddress as a9, type PathSelection as aA, type ContractEvent as aB, type AssetDetails as aC, type IssuanceResult as aD, type DelegateInfo as aE, type MigrationGlobalSkipReason as aF, type MigrationLegSkipReason as aG, type SignerStatus as aH, type StorageConfig as aI, type IVtxoManager as aJ, type ExplorerTransaction as aK, type EncodedVtxoScript as aL, type Status as aM, type ChainTx as aN, type PathContext as aO, type ActivityIntent as aP, type ActivityResolver as aQ, type ArkIntentState as aR, type ArkTapscript as aS, type Asset as aT, type AssetMetadata as aU, type BaseWalletConfig as aV, type BatchInfo as aW, type BatchSignableIdentity as aX, CLTVMultisigTapscript as aY, ChainTxType as aZ, type CommitmentTx as a_, type Coin as aa, ContractManager as ab, CSVMultisigTapscript as ac, type SettlementConfig as ad, VtxoManager as ae, type SignerSession as af, type SignedIntent as ag, Intent as ah, type DescriptorSigningRequest as ai, Transaction as aj, type IntentFeeConfig as ak, type OffchainInput as al, FeeAmount as am, type OnchainInput as an, type FeeOutput as ao, type ContractWatcherConfig as ap, type FeeInfo as aq, type CreateContractParams as ar, type GetContractsFilter as as, type GetSpendablePathsOptions as at, type GetAllSpendingPathsOptions as au, type IssuanceParams as av, type ReissuanceParams as aw, type BurnParams as ax, type RenewVtxosOptions as ay, type ContractWithVtxos as az, type WalletConfig as b, type WalletMode as b$, ConditionMultisigTapscript as b0, type ContractBalance as b1, type ContractEventCallback as b2, type ContractHandler as b3, type ContractManagerConfig as b4, type ContractState as b5, type ContractVtxo as b6, ContractWatcher as b7, DelegateManagerImpl as b8, type DelegateOptions as b9, PartialSig as bA, type ProviderClass as bB, RestDelegateProvider as bC, RestDelegatorProvider as bD, type ScanContractsOptions as bE, type ScanResult as bF, type ScheduledSession as bG, SettlementEventType as bH, type SignRequest as bI, type SignerClassification as bJ, type SignerSet as bK, type SubscriptionEvent as bL, type SubscriptionHeartbeat as bM, type TapLeaves as bN, TapTreeCoder as bO, TapscriptType as bP, type TreeNonces as bQ, type TreePartialSigs as bR, type Tx as bS, type TxHistoryRecord as bT, type TxKey as bU, type TxTreeNode as bV, TxType as bW, type VirtualStatus as bX, type Vtxo as bY, type VtxoChain as bZ, type VtxoType as b_, DelegatorManagerImpl as ba, type DelegatorProvider as bb, type DeprecatedSignerMigrationReport as bc, type DeprecatedSignerReport as bd, DigestMismatchError as be, type Discoverable as bf, type DiscoveredContract as bg, type DiscoveryDeps as bh, ESPLORA_URL as bi, EsploraProvider as bj, type ExitChainResolver as bk, type ExtendedContractVtxo as bl, type GroupMembership as bm, type HandlerError as bn, type IDelegatorManager as bo, INTENT_TERMINAL_STATES as bp, IndexerTxType as bq, type KnownMetadata as br, type MigrateDeprecatedSignerOptions as bs, type MigrationLegReport as bt, type MigrationVtxoRef as bu, MultisigTapscript as bv, type Nonces as bw, type Output as bx, type PageResponse as by, type PaginationOptions as bz, type WalletBalance as c, boardingResolver as c0, classifyAgainstSignerSet as c1, classifyContractSigner as c2, createDefaultActivityRegistry as c3, createExitChainResolver as c4, decodeTapscript as c5, getNetwork as c6, getSequence as c7, isBatchSignable as c8, isCooperativelyMigratable as c9, isDiscoverable as ca, isExpired as cb, isRecoverable as cc, isSpendable as cd, isSubdust as ce, isTerminalIntentState as cf, isVtxoExpiringSoon as cg, networks as ch, signerSetFromInfo as ci, toXOnlySignerHex as cj, type ExtendedCoin as d, ActivityRegistry as e, type Activity as f, type IContractManager as g, type IDelegateManager as h, type SettleParams as i, type SettlementEvent as j, type IAssetManager as k, RestArkProvider as l, RestIndexerProvider as m, type SubscriptionResponse as n, type ArkProvider as o, type IndexerProvider as p, type RelativeTimelock as q, type TapLeafScript as r, type VirtualCoin as s, type Contract as t, type VtxoRepositoryKey as u, type WalletState as v, type ContractFilter as w, type IntentRepository as x, type ArkIntent as y, type IntentFilter as z };
|
|
@@ -1836,6 +1836,21 @@ interface ScanContractsOptions {
|
|
|
1836
1836
|
/** Read-only context injected into every `discoverAt` call. */
|
|
1837
1837
|
deps: DiscoveryDeps;
|
|
1838
1838
|
}
|
|
1839
|
+
/**
|
|
1840
|
+
* Freshness of the ContractManager's provider-backed sync. `degraded` means the
|
|
1841
|
+
* most recent sync (boot, best-effort read, or contract hydration) hit a
|
|
1842
|
+
* retryable indexer/operator failure and the manager is serving repository
|
|
1843
|
+
* state; it returns to `online` on the next successful sync. This only
|
|
1844
|
+
* describes sync freshness — never wallet data itself.
|
|
1845
|
+
*/
|
|
1846
|
+
type ContractSyncState = {
|
|
1847
|
+
mode: "online";
|
|
1848
|
+
lastSyncedAt?: number;
|
|
1849
|
+
} | {
|
|
1850
|
+
mode: "degraded";
|
|
1851
|
+
reason: string;
|
|
1852
|
+
lastSyncedAt?: number;
|
|
1853
|
+
};
|
|
1839
1854
|
interface IContractManager extends Disposable {
|
|
1840
1855
|
/**
|
|
1841
1856
|
* Create and register a new contract.
|
|
@@ -1863,6 +1878,11 @@ interface IContractManager extends Disposable {
|
|
|
1863
1878
|
* If no filter is provided, returns all contracts with their virtual outputs.
|
|
1864
1879
|
*/
|
|
1865
1880
|
getContractsWithVtxos(filter?: GetContractsFilter): Promise<ContractWithVtxos[]>;
|
|
1881
|
+
/**
|
|
1882
|
+
* Latest provider-sync health (online vs. degraded to repository data).
|
|
1883
|
+
* See {@link ContractSyncState}.
|
|
1884
|
+
*/
|
|
1885
|
+
getSyncState(): ContractSyncState;
|
|
1866
1886
|
/**
|
|
1867
1887
|
* Stamp raw virtual outputs with the correct per-contract tapscripts
|
|
1868
1888
|
* (forfeit, intent, tap tree).
|
|
@@ -2003,6 +2023,18 @@ interface ContractManagerConfig {
|
|
|
2003
2023
|
* {@link reconcileIntents}. Absent ⇒ no-op.
|
|
2004
2024
|
*/
|
|
2005
2025
|
intentRepository?: IntentRepository;
|
|
2026
|
+
/**
|
|
2027
|
+
* Optional exit-data capture hook. Fired best-effort after VTXOs are
|
|
2028
|
+
* persisted so a configured virtualTxRepository can store each one's
|
|
2029
|
+
* unilateral-exit branch. Absent ⇒ no-op.
|
|
2030
|
+
*/
|
|
2031
|
+
onVtxosPersisted?: (contract: Contract, vtxos: ExtendedVirtualCoin[]) => Promise<void>;
|
|
2032
|
+
/**
|
|
2033
|
+
* Optional exit-data prune hook. Fired best-effort with the spent outpoints
|
|
2034
|
+
* on `vtxo_spent` so a configured virtualTxRepository can drop their branch.
|
|
2035
|
+
* Absent ⇒ no-op.
|
|
2036
|
+
*/
|
|
2037
|
+
onVtxosSpent?: (vtxos: Outpoint[]) => Promise<void>;
|
|
2006
2038
|
/** Watcher configuration */
|
|
2007
2039
|
watcherConfig?: Partial<ContractWatcherConfig>;
|
|
2008
2040
|
}
|
|
@@ -2066,6 +2098,10 @@ declare class ContractManager implements IContractManager {
|
|
|
2066
2098
|
private initialized;
|
|
2067
2099
|
private eventCallbacks;
|
|
2068
2100
|
private stopWatcherFn?;
|
|
2101
|
+
/** `undefined` while online; the failure reason once a sync degrades. */
|
|
2102
|
+
private syncDegradedReason?;
|
|
2103
|
+
/** Epoch-ms of the last successful provider sync, if any. */
|
|
2104
|
+
private lastSyncedAt?;
|
|
2069
2105
|
private constructor();
|
|
2070
2106
|
/**
|
|
2071
2107
|
* Static factory method for creating a new ContractManager.
|
|
@@ -2077,6 +2113,15 @@ declare class ContractManager implements IContractManager {
|
|
|
2077
2113
|
* @param config ContractManagerConfig
|
|
2078
2114
|
*/
|
|
2079
2115
|
static create(config: ContractManagerConfig): Promise<ContractManager>;
|
|
2116
|
+
/**
|
|
2117
|
+
* Latest provider-sync health. See {@link ContractSyncState}. Degradation is
|
|
2118
|
+
* recorded by {@link initialize}, {@link getContractsWithVtxos}, and
|
|
2119
|
+
* {@link createContract}; it flips back to `online` on the next successful
|
|
2120
|
+
* sync. Purely a freshness signal — not a source of truth for wallet data.
|
|
2121
|
+
*/
|
|
2122
|
+
getSyncState(): ContractSyncState;
|
|
2123
|
+
private markSyncOnline;
|
|
2124
|
+
private markSyncDegraded;
|
|
2080
2125
|
private initialize;
|
|
2081
2126
|
/**
|
|
2082
2127
|
* Delta-sync the full watched set and reconcile the pending frontier.
|
|
@@ -3134,6 +3179,36 @@ declare function boardingResolver(): ActivityResolver;
|
|
|
3134
3179
|
/** Default registry with SDK built-ins. */
|
|
3135
3180
|
declare function createDefaultActivityRegistry(): ActivityRegistry;
|
|
3136
3181
|
|
|
3182
|
+
/**
|
|
3183
|
+
* A source of unilateral-exit chain data for a set of VTXOs. Sources are tried
|
|
3184
|
+
* in order by the resolver; a source returns `null` (chain) or omits keys (psbts)
|
|
3185
|
+
* for data it cannot supply — a "miss" — and the resolver falls through.
|
|
3186
|
+
*/
|
|
3187
|
+
interface ExitDataSource {
|
|
3188
|
+
readonly name: string;
|
|
3189
|
+
/** Full ancestry chain for a vtxo (all pages merged), or null on a miss. */
|
|
3190
|
+
getVtxoChain(vtxo: Outpoint): Promise<ChainTx[] | null>;
|
|
3191
|
+
/** Base64 PSBTs this source has, keyed by (unsigned) txid. Absent key = miss. */
|
|
3192
|
+
getVirtualTxs(txids: string[]): Promise<Map<string, string>>;
|
|
3193
|
+
}
|
|
3194
|
+
/** Reads exit chain data through an ordered chain of sources. */
|
|
3195
|
+
interface ExitChainResolver {
|
|
3196
|
+
getVtxoChain(vtxo: Outpoint): Promise<ChainTx[]>;
|
|
3197
|
+
getVirtualTxs(txids: string[]): Promise<string[]>;
|
|
3198
|
+
}
|
|
3199
|
+
/**
|
|
3200
|
+
* Assemble the standard exit-data resolver: local repo (if configured) → any
|
|
3201
|
+
* extra sources (e.g. a future provider) → indexer. Read-through persists to the
|
|
3202
|
+
* repository. With no repository this is exactly the indexer path (a no-op seam).
|
|
3203
|
+
*/
|
|
3204
|
+
declare function createExitChainResolver(params: {
|
|
3205
|
+
indexer: IndexerProvider;
|
|
3206
|
+
repository?: VirtualTxRepository;
|
|
3207
|
+
extraSources?: ExitDataSource[];
|
|
3208
|
+
}): ExitChainResolver;
|
|
3209
|
+
|
|
3210
|
+
type ExitCaptureMode = "lite" | "full";
|
|
3211
|
+
|
|
3137
3212
|
/**
|
|
3138
3213
|
* Wallet receive-address strategy.
|
|
3139
3214
|
*
|
|
@@ -3346,6 +3421,19 @@ type StorageConfig = {
|
|
|
3346
3421
|
* option as experimental until those paths land. Absent ⇒ no-op.
|
|
3347
3422
|
*/
|
|
3348
3423
|
virtualTxRepository?: VirtualTxRepository;
|
|
3424
|
+
/**
|
|
3425
|
+
* Optional exit-data capture settings (only in effect when
|
|
3426
|
+
* `virtualTxRepository` is set). `mode` "lite" (default) stores structure
|
|
3427
|
+
* only; "full" stores PSBTs so a unilateral exit needs no Ark indexer.
|
|
3428
|
+
* `minExitWorthSats` (default 1000) skips dust. `sources` are extra
|
|
3429
|
+
* `ExitDataSource`s (e.g. a wallet-provider) tried before the indexer for
|
|
3430
|
+
* both capture and exit reads.
|
|
3431
|
+
*/
|
|
3432
|
+
exitDataCapture?: {
|
|
3433
|
+
mode?: ExitCaptureMode;
|
|
3434
|
+
minExitWorthSats?: number;
|
|
3435
|
+
sources?: ExitDataSource[];
|
|
3436
|
+
};
|
|
3349
3437
|
};
|
|
3350
3438
|
/**
|
|
3351
3439
|
* Provider class constructor interface for dependency injection.
|
|
@@ -3787,7 +3875,9 @@ declare function isExpired(vtxo: VirtualCoin): boolean;
|
|
|
3787
3875
|
*
|
|
3788
3876
|
* @see isRecoverable
|
|
3789
3877
|
*/
|
|
3790
|
-
declare function isSubdust(vtxo:
|
|
3878
|
+
declare function isSubdust(vtxo: {
|
|
3879
|
+
value: number;
|
|
3880
|
+
} | bigint, dust: bigint): boolean;
|
|
3791
3881
|
/**
|
|
3792
3882
|
* Filtering options for `IWallet.getVtxos`.
|
|
3793
3883
|
*
|
|
@@ -4065,6 +4155,8 @@ type GetVtxosOptions = PaginationOptions & {
|
|
|
4065
4155
|
recoverableOnly?: boolean;
|
|
4066
4156
|
/** Only return pending/preconfirmed virtual outputs. */
|
|
4067
4157
|
pendingOnly?: boolean;
|
|
4158
|
+
/** Only return renewable virtual outputs (the union of the spendable and recoverable sets). */
|
|
4159
|
+
renewableOnly?: boolean;
|
|
4068
4160
|
/** Only return virtual outputs created after this timestamp. */
|
|
4069
4161
|
after?: number;
|
|
4070
4162
|
/** Only return virtual outputs created before this timestamp. */
|
|
@@ -4694,4 +4786,4 @@ declare namespace ProtoTypes {
|
|
|
4694
4786
|
export { };
|
|
4695
4787
|
}
|
|
4696
4788
|
|
|
4697
|
-
export {
|
|
4789
|
+
export { type Network as $, type ArkTransaction as A, type VirtualTxRepository as B, type ContractRepository as C, type VirtualTx as D, type ExtendedVirtualCoin as E, type VtxoBranch as F, type GetVtxosFilter as G, ChainedTxType as H, type IWallet as I, type BatchStartedEvent as J, type TreeSigningStartedEvent as K, TxTree as L, type TreeNoncesEvent as M, type BatchFinalizationEvent as N, type Outpoint as O, type BatchFinalizedEvent as P, type BatchFailedEvent as Q, type Recipient as R, type SendBitcoinParams as S, type TxNotification as T, type TreeTxEvent as U, VtxoScript as V, type WalletRepository as W, type TreeSignatureEvent as X, type DescriptorProvider as Y, type IReadonlyWallet as Z, type ReadonlyIdentity as _, type Identity as a, ConditionCSVMultisigTapscript as a$, type OnchainProvider as a0, type DelegateProvider as a1, type ReadonlyWalletConfig as a2, type ExitCaptureMode as a3, type ExitDataSource as a4, type IReadonlyAssetManager as a5, type ContractSyncState as a6, type NetworkName as a7, type ArkInfo as a8, ArkAddress as a9, type PathSelection as aA, type ContractEvent as aB, type AssetDetails as aC, type IssuanceResult as aD, type DelegateInfo as aE, type MigrationGlobalSkipReason as aF, type MigrationLegSkipReason as aG, type SignerStatus as aH, type StorageConfig as aI, type IVtxoManager as aJ, type ExplorerTransaction as aK, type EncodedVtxoScript as aL, type Status as aM, type ChainTx as aN, type PathContext as aO, type ActivityIntent as aP, type ActivityResolver as aQ, type ArkIntentState as aR, type ArkTapscript as aS, type Asset as aT, type AssetMetadata as aU, type BaseWalletConfig as aV, type BatchInfo as aW, type BatchSignableIdentity as aX, CLTVMultisigTapscript as aY, ChainTxType as aZ, type CommitmentTx as a_, type Coin as aa, ContractManager as ab, CSVMultisigTapscript as ac, type SettlementConfig as ad, VtxoManager as ae, type SignerSession as af, type SignedIntent as ag, Intent as ah, type DescriptorSigningRequest as ai, Transaction as aj, type IntentFeeConfig as ak, type OffchainInput as al, FeeAmount as am, type OnchainInput as an, type FeeOutput as ao, type ContractWatcherConfig as ap, type FeeInfo as aq, type CreateContractParams as ar, type GetContractsFilter as as, type GetSpendablePathsOptions as at, type GetAllSpendingPathsOptions as au, type IssuanceParams as av, type ReissuanceParams as aw, type BurnParams as ax, type RenewVtxosOptions as ay, type ContractWithVtxos as az, type WalletConfig as b, type WalletMode as b$, ConditionMultisigTapscript as b0, type ContractBalance as b1, type ContractEventCallback as b2, type ContractHandler as b3, type ContractManagerConfig as b4, type ContractState as b5, type ContractVtxo as b6, ContractWatcher as b7, DelegateManagerImpl as b8, type DelegateOptions as b9, PartialSig as bA, type ProviderClass as bB, RestDelegateProvider as bC, RestDelegatorProvider as bD, type ScanContractsOptions as bE, type ScanResult as bF, type ScheduledSession as bG, SettlementEventType as bH, type SignRequest as bI, type SignerClassification as bJ, type SignerSet as bK, type SubscriptionEvent as bL, type SubscriptionHeartbeat as bM, type TapLeaves as bN, TapTreeCoder as bO, TapscriptType as bP, type TreeNonces as bQ, type TreePartialSigs as bR, type Tx as bS, type TxHistoryRecord as bT, type TxKey as bU, type TxTreeNode as bV, TxType as bW, type VirtualStatus as bX, type Vtxo as bY, type VtxoChain as bZ, type VtxoType as b_, DelegatorManagerImpl as ba, type DelegatorProvider as bb, type DeprecatedSignerMigrationReport as bc, type DeprecatedSignerReport as bd, DigestMismatchError as be, type Discoverable as bf, type DiscoveredContract as bg, type DiscoveryDeps as bh, ESPLORA_URL as bi, EsploraProvider as bj, type ExitChainResolver as bk, type ExtendedContractVtxo as bl, type GroupMembership as bm, type HandlerError as bn, type IDelegatorManager as bo, INTENT_TERMINAL_STATES as bp, IndexerTxType as bq, type KnownMetadata as br, type MigrateDeprecatedSignerOptions as bs, type MigrationLegReport as bt, type MigrationVtxoRef as bu, MultisigTapscript as bv, type Nonces as bw, type Output as bx, type PageResponse as by, type PaginationOptions as bz, type WalletBalance as c, boardingResolver as c0, classifyAgainstSignerSet as c1, classifyContractSigner as c2, createDefaultActivityRegistry as c3, createExitChainResolver as c4, decodeTapscript as c5, getNetwork as c6, getSequence as c7, isBatchSignable as c8, isCooperativelyMigratable as c9, isDiscoverable as ca, isExpired as cb, isRecoverable as cc, isSpendable as cd, isSubdust as ce, isTerminalIntentState as cf, isVtxoExpiringSoon as cg, networks as ch, signerSetFromInfo as ci, toXOnlySignerHex as cj, type ExtendedCoin as d, ActivityRegistry as e, type Activity as f, type IContractManager as g, type IDelegateManager as h, type SettleParams as i, type SettlementEvent as j, type IAssetManager as k, RestArkProvider as l, RestIndexerProvider as m, type SubscriptionResponse as n, type ArkProvider as o, type IndexerProvider as p, type RelativeTimelock as q, type TapLeafScript as r, type VirtualCoin as s, type Contract as t, type VtxoRepositoryKey as u, type WalletState as v, type ContractFilter as w, type IntentRepository as x, type ArkIntent as y, type IntentFilter as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as TaskQueue, c as TaskItem, d as TaskResult } from './taskRunner-B48-V-Pb.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Minimal async key-value storage interface.
|
|
@@ -46,4 +46,4 @@ declare class AsyncStorageTaskQueue implements TaskQueue {
|
|
|
46
46
|
private writeList;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
export {
|
|
49
|
+
export { AsyncStorageTaskQueue as A, type AsyncStorageLike as a };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as TaskQueue, c as TaskItem, d as TaskResult } from './taskRunner-nNecmQ2C.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Minimal async key-value storage interface.
|
|
@@ -46,4 +46,4 @@ declare class AsyncStorageTaskQueue implements TaskQueue {
|
|
|
46
46
|
private writeList;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
export {
|
|
49
|
+
export { AsyncStorageTaskQueue as A, type AsyncStorageLike as a };
|