@arkade-os/sdk 0.5.1 → 0.5.2
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 +9 -5
- 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/{asyncStorageTaskQueue-DFt5LgW5.d.cts → asyncStorageTaskQueue-BtEc3Qca.d.cts} +1 -1
- package/dist/{asyncStorageTaskQueue-CdWheMqT.d.ts → asyncStorageTaskQueue-DIn7bTqN.d.ts} +1 -1
- package/dist/{chunk-QKNSMVBW.cjs → chunk-2OCYL6BJ.cjs} +1142 -843
- package/dist/chunk-2OCYL6BJ.cjs.map +1 -0
- package/dist/{chunk-FXVEOEYB.js → chunk-2QRUQXLS.js} +4 -4
- package/dist/{chunk-FXVEOEYB.js.map → chunk-2QRUQXLS.js.map} +1 -1
- package/dist/{chunk-HQNQ3CLQ.cjs → chunk-64R7CRKN.cjs} +18 -18
- package/dist/{chunk-HQNQ3CLQ.cjs.map → chunk-64R7CRKN.cjs.map} +1 -1
- package/dist/{chunk-NKKJEA3Z.js → chunk-AJWXVQYG.js} +657 -358
- package/dist/chunk-AJWXVQYG.js.map +1 -0
- package/dist/{chunk-XLHUGP3G.cjs → chunk-GGKR4O5X.cjs} +3 -3
- package/dist/{chunk-XLHUGP3G.cjs.map → chunk-GGKR4O5X.cjs.map} +1 -1
- package/dist/{chunk-QFB55EOZ.js → chunk-HKG26NUT.js} +3 -3
- package/dist/{chunk-QFB55EOZ.js.map → chunk-HKG26NUT.js.map} +1 -1
- package/dist/{chunk-3M22PJVB.js → chunk-LWRMSC4M.js} +3 -3
- package/dist/{chunk-3M22PJVB.js.map → chunk-LWRMSC4M.js.map} +1 -1
- package/dist/{chunk-XQRIY5K5.js → chunk-MOBDJ7U2.js} +4 -4
- package/dist/{chunk-XQRIY5K5.js.map → chunk-MOBDJ7U2.js.map} +1 -1
- package/dist/{chunk-GW42FS2X.cjs → chunk-OM6FJ76H.cjs} +48 -48
- package/dist/{chunk-GW42FS2X.cjs.map → chunk-OM6FJ76H.cjs.map} +1 -1
- package/dist/{chunk-JJ6QKTFZ.cjs → chunk-PVFQFQBY.cjs} +10 -10
- package/dist/{chunk-JJ6QKTFZ.cjs.map → chunk-PVFQFQBY.cjs.map} +1 -1
- package/dist/{chunk-GQUFPTN7.cjs → chunk-TAIWH3HG.cjs} +16 -16
- package/dist/{chunk-GQUFPTN7.cjs.map → chunk-TAIWH3HG.cjs.map} +1 -1
- package/dist/{chunk-6MIGYYWB.js → chunk-U5XG7SWA.js} +3 -3
- package/dist/{chunk-6MIGYYWB.js.map → chunk-U5XG7SWA.js.map} +1 -1
- package/dist/contracts/handlers/index.cjs +9 -9
- 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-CFCfrReG.d.cts → delegate-CaL8EN4Q.d.cts} +1 -1
- package/dist/{delegate-BSbGQabI.d.ts → delegate-Jd4zs88Q.d.ts} +1 -1
- package/dist/{index-Fpf4mQZr.d.cts → index-BwdGzNSn.d.cts} +2 -2
- package/dist/{index-CzUVvIxA.d.ts → index-D-xqVzf8.d.ts} +2 -2
- package/dist/{index-B3fRWO5i.d.cts → index-DdKxfC29.d.cts} +26 -16
- package/dist/{index-B3fRWO5i.d.ts → index-DdKxfC29.d.ts} +26 -16
- package/dist/index.cjs +313 -313
- package/dist/index.d.cts +93 -26
- package/dist/index.d.ts +93 -26
- package/dist/index.js +4 -4
- package/dist/repositories/realm/index.cjs +35 -35
- package/dist/repositories/realm/index.d.cts +2 -2
- package/dist/repositories/realm/index.d.ts +2 -2
- package/dist/repositories/realm/index.js +5 -5
- package/dist/repositories/sqlite/index.cjs +33 -33
- package/dist/repositories/sqlite/index.d.cts +2 -2
- package/dist/repositories/sqlite/index.d.ts +2 -2
- package/dist/repositories/sqlite/index.js +5 -5
- package/dist/{taskRunner-Dk6oDAtd.d.cts → taskRunner-67YSEpsz.d.cts} +1 -1
- package/dist/{taskRunner-CdfoCMaw.d.ts → taskRunner-ZyGGjtIq.d.ts} +1 -1
- 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 +15 -15
- package/dist/wallet/expo/index.d.cts +4 -4
- package/dist/wallet/expo/index.d.ts +4 -4
- package/dist/wallet/expo/index.js +5 -5
- package/dist/{wallet-D9dvXu-K.d.cts → wallet-B8LW7cV1.d.cts} +6 -5
- package/dist/{wallet-BQHNgc_v.d.ts → wallet-bFS7VybL.d.ts} +6 -5
- package/dist/worker/expo/index.cjs +9 -9
- package/dist/worker/expo/index.d.cts +4 -4
- package/dist/worker/expo/index.d.ts +4 -4
- package/dist/worker/expo/index.js +5 -5
- package/package.json +1 -1
- package/dist/chunk-NKKJEA3Z.js.map +0 -1
- package/dist/chunk-QKNSMVBW.cjs.map +0 -1
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
3
|
+
var chunkOM6FJ76H_cjs = require('../../chunk-OM6FJ76H.cjs');
|
|
4
|
+
require('../../chunk-GGKR4O5X.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "ArkadeContractHandler", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkOM6FJ76H_cjs.ArkadeContractHandler; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "BoardingContractHandler", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkOM6FJ76H_cjs.BoardingContractHandler; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "DefaultContractHandler", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkOM6FJ76H_cjs.DefaultContractHandler; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "DelegateContractHandler", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkOM6FJ76H_cjs.DelegateContractHandler; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "VHTLCContractHandler", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkOM6FJ76H_cjs.VHTLCContractHandler; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "VHTLCV2ContractHandler", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkOM6FJ76H_cjs.VHTLCV2ContractHandler; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "contractHandlers", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkOM6FJ76H_cjs.contractHandlers; }
|
|
35
35
|
});
|
|
36
36
|
//# sourceMappingURL=index.cjs.map
|
|
37
37
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { o as ArkadeContractHandler, B as BoardingContractHandler, q as BoardingContractParams, D as DefaultContractHandler, t as DefaultContractParams, u as DelegateContractHandler, x as DelegateContractParams, y as VHTLCContractHandler, z as VHTLCContractParams, E as VHTLCV2ContractHandler, F as VHTLCV2ContractParams, G as contractHandlers } from '../../index-
|
|
2
|
-
import '../../index-
|
|
1
|
+
export { o as ArkadeContractHandler, B as BoardingContractHandler, q as BoardingContractParams, D as DefaultContractHandler, t as DefaultContractParams, u as DelegateContractHandler, x as DelegateContractParams, y as VHTLCContractHandler, z as VHTLCContractParams, E as VHTLCV2ContractHandler, F as VHTLCV2ContractParams, G as contractHandlers } from '../../index-BwdGzNSn.cjs';
|
|
2
|
+
import '../../index-DdKxfC29.cjs';
|
|
3
3
|
import '@scure/btc-signer/utils.js';
|
|
4
4
|
import '@scure/btc-signer/psbt.js';
|
|
5
5
|
import '@scure/btc-signer';
|
|
6
6
|
import '@scure/btc-signer/transaction.js';
|
|
7
|
-
import '../../delegate-
|
|
7
|
+
import '../../delegate-CaL8EN4Q.cjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { o as ArkadeContractHandler, B as BoardingContractHandler, q as BoardingContractParams, D as DefaultContractHandler, t as DefaultContractParams, u as DelegateContractHandler, x as DelegateContractParams, y as VHTLCContractHandler, z as VHTLCContractParams, E as VHTLCV2ContractHandler, F as VHTLCV2ContractParams, G as contractHandlers } from '../../index-
|
|
2
|
-
import '../../index-
|
|
1
|
+
export { o as ArkadeContractHandler, B as BoardingContractHandler, q as BoardingContractParams, D as DefaultContractHandler, t as DefaultContractParams, u as DelegateContractHandler, x as DelegateContractParams, y as VHTLCContractHandler, z as VHTLCContractParams, E as VHTLCV2ContractHandler, F as VHTLCV2ContractParams, G as contractHandlers } from '../../index-D-xqVzf8.js';
|
|
2
|
+
import '../../index-DdKxfC29.js';
|
|
3
3
|
import '@scure/btc-signer/utils.js';
|
|
4
4
|
import '@scure/btc-signer/psbt.js';
|
|
5
5
|
import '@scure/btc-signer';
|
|
6
6
|
import '@scure/btc-signer/transaction.js';
|
|
7
|
-
import '../../delegate-
|
|
7
|
+
import '../../delegate-Jd4zs88Q.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ArkadeContractHandler, BoardingContractHandler, DefaultContractHandler, DelegateContractHandler, VHTLCContractHandler, VHTLCV2ContractHandler, contractHandlers } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { ArkadeContractHandler, BoardingContractHandler, DefaultContractHandler, DelegateContractHandler, VHTLCContractHandler, VHTLCV2ContractHandler, contractHandlers } from '../../chunk-LWRMSC4M.js';
|
|
2
|
+
import '../../chunk-HKG26NUT.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Bytes } from '@scure/btc-signer/utils.js';
|
|
2
|
-
import { x as RelativeTimelock, V as VtxoScript, y as TapLeafScript } from './index-
|
|
2
|
+
import { x as RelativeTimelock, V as VtxoScript, y as TapLeafScript } from './index-DdKxfC29.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* DefaultVtxo is the default implementation of a VtxoScript.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Bytes } from '@scure/btc-signer/utils.js';
|
|
2
|
-
import { x as RelativeTimelock, V as VtxoScript, y as TapLeafScript } from './index-
|
|
2
|
+
import { x as RelativeTimelock, V as VtxoScript, y as TapLeafScript } from './index-DdKxfC29.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* DefaultVtxo is the default implementation of a VtxoScript.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { bF as ContractHandler, x as RelativeTimelock, bR as Discoverable, V as VtxoScript, y as TapLeafScript, dI as TapscriptDeriving } from './index-
|
|
2
|
-
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-
|
|
1
|
+
import { bF as ContractHandler, x as RelativeTimelock, bR as Discoverable, V as VtxoScript, y as TapLeafScript, dI as TapscriptDeriving } from './index-DdKxfC29.cjs';
|
|
2
|
+
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-CaL8EN4Q.cjs';
|
|
3
3
|
import { Bytes } from '@scure/btc-signer/utils.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { bF as ContractHandler, x as RelativeTimelock, bR as Discoverable, V as VtxoScript, y as TapLeafScript, dI as TapscriptDeriving } from './index-
|
|
2
|
-
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-
|
|
1
|
+
import { bF as ContractHandler, x as RelativeTimelock, bR as Discoverable, V as VtxoScript, y as TapLeafScript, dI as TapscriptDeriving } from './index-DdKxfC29.js';
|
|
2
|
+
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-Jd4zs88Q.js';
|
|
3
3
|
import { Bytes } from '@scure/btc-signer/utils.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1942,7 +1942,7 @@ interface SignerSet {
|
|
|
1942
1942
|
* Deprecated signers (x-only hex) → cutoff; `0n` means none advertised (→ `DUE_NOW`).
|
|
1943
1943
|
*
|
|
1944
1944
|
* Read-only: the wallet hands out its live `_deprecatedSigners`, which drives coin selection
|
|
1945
|
-
* and the
|
|
1945
|
+
* and the `deprecatedSignerLocked` balance bucket. Never write through it.
|
|
1946
1946
|
*/
|
|
1947
1947
|
deprecated: ReadonlyMap<string, bigint>;
|
|
1948
1948
|
}
|
|
@@ -1971,7 +1971,7 @@ declare function isCooperativelyMigratable(status: SignerStatus): boolean;
|
|
|
1971
1971
|
/**
|
|
1972
1972
|
* Outpoints (`txid:vout`) of VTXOs whose contract signer is past its cutoff (`EXPIRED`) and that
|
|
1973
1973
|
* the server has not swept yet. The operator will not co-sign them, so `getBalance` buckets them
|
|
1974
|
-
* under `
|
|
1974
|
+
* under `deprecatedSignerLocked` and coin selection skips them (a send would fail at submit); they
|
|
1975
1975
|
* recover once swept and re-settled under the active signer.
|
|
1976
1976
|
*
|
|
1977
1977
|
* Pure + offline: classifies against a cached {@link SignerSet}, never a fresh GetInfo.
|
|
@@ -2881,7 +2881,7 @@ interface IntentReconciliationDeps {
|
|
|
2881
2881
|
intentRepository: IntentRepository;
|
|
2882
2882
|
indexerProvider: IntentReconcilerIndexer;
|
|
2883
2883
|
/**
|
|
2884
|
-
* Replays an intent's stored delete proof against arkd. Absent ⇒
|
|
2884
|
+
* Replays an intent's stored delete proof against arkd. Absent ⇒ an unresolved, unexpired
|
|
2885
2885
|
* intent stays locked, since arkd never expires a queued intent on its own.
|
|
2886
2886
|
*/
|
|
2887
2887
|
deleteIntent?: (intent: SignedIntent<Intent.DeleteMessage>) => Promise<void>;
|
|
@@ -4860,14 +4860,17 @@ interface WalletBalance {
|
|
|
4860
4860
|
* boarding inputs, so zero boarding may only mean "not loaded". */
|
|
4861
4861
|
loaded?: boolean;
|
|
4862
4862
|
};
|
|
4863
|
-
/**
|
|
4863
|
+
/**
|
|
4864
|
+
* Settled (finalized) balance the wallet owns, including {@link contractLocked} and
|
|
4865
|
+
* {@link pendingSettlement} funds.
|
|
4866
|
+
*/
|
|
4864
4867
|
settled: number;
|
|
4865
4868
|
/** Preconfirmed (unfinalized) balance the wallet owns, on the same owned rule as {@link settled}. */
|
|
4866
4869
|
preconfirmed: number;
|
|
4867
4870
|
/**
|
|
4868
4871
|
* Immediately spendable offchain balance — what generic selection would pick, so `send` never
|
|
4869
|
-
* refuses it: `settled + preconfirmed -
|
|
4870
|
-
* carrier kept back if any of these outputs hold assets.
|
|
4872
|
+
* refuses it: `settled + preconfirmed - contractLocked - pendingSettlement - reserved`, minus
|
|
4873
|
+
* one dust carrier kept back if any of these outputs hold assets.
|
|
4871
4874
|
*/
|
|
4872
4875
|
available: number;
|
|
4873
4876
|
/**
|
|
@@ -4876,12 +4879,12 @@ interface WalletBalance {
|
|
|
4876
4879
|
* `available`. Takes precedence over {@link pendingSettlement} (the gate is durable; a lock clears).
|
|
4877
4880
|
*
|
|
4878
4881
|
* Subtract it from `settled + preconfirmed`, never from `total`, which also carries boarding,
|
|
4879
|
-
* recoverable
|
|
4882
|
+
* `recoverable`, `deprecatedSignerLocked` and `unrolled` funds.
|
|
4880
4883
|
*/
|
|
4881
|
-
|
|
4884
|
+
contractLocked: number;
|
|
4882
4885
|
/**
|
|
4883
|
-
* Committed to an in-flight intent and not {@link
|
|
4884
|
-
* intent terminates. Zero when unknown (no intent repository or a failed read), so it
|
|
4886
|
+
* Committed to an in-flight intent and not {@link contractLocked}; returns to `available` when
|
|
4887
|
+
* the intent terminates. Zero when unknown (no intent repository or a failed read), so it
|
|
4885
4888
|
* under-reports into `available` rather than misattributing.
|
|
4886
4889
|
*/
|
|
4887
4890
|
pendingSettlement: number;
|
|
@@ -4897,7 +4900,7 @@ interface WalletBalance {
|
|
|
4897
4900
|
* Unswept funds under a deprecated signer past its cutoff. Not spendable until recovered
|
|
4898
4901
|
* (excluded from `available`/`settled`/`preconfirmed` and coin selection), but in `total`.
|
|
4899
4902
|
*/
|
|
4900
|
-
|
|
4903
|
+
deprecatedSignerLocked: number;
|
|
4901
4904
|
/**
|
|
4902
4905
|
* Already unilaterally exited: onchain behind its CSV, movable only by
|
|
4903
4906
|
* `Unroll.completeUnroll`. Excluded from every spendable bucket and `recoverable`, but in
|
|
@@ -4905,7 +4908,8 @@ interface WalletBalance {
|
|
|
4905
4908
|
*/
|
|
4906
4909
|
unrolled: number;
|
|
4907
4910
|
/**
|
|
4908
|
-
* Total across offchain, recoverable
|
|
4911
|
+
* Total across offchain, `recoverable`, `deprecatedSignerLocked`, `unrolled` and boarding
|
|
4912
|
+
* funds.
|
|
4909
4913
|
*
|
|
4910
4914
|
* Known wedge: while a `send`/`sendBitcoin`/`settle` is in flight, its VTXO inputs (not
|
|
4911
4915
|
* boarding) are withheld from every bucket on the `Wallet` instance driving it; a
|
|
@@ -4919,6 +4923,12 @@ interface WalletBalance {
|
|
|
4919
4923
|
* {@link available}). Assets have no per-cause split of what is held but not selectable.
|
|
4920
4924
|
*/
|
|
4921
4925
|
availableAssets: Asset[];
|
|
4926
|
+
/** @deprecated Use {@link contractLocked}. It holds the same value. */
|
|
4927
|
+
gated: number;
|
|
4928
|
+
/** @deprecated Use {@link pendingSettlement}. It holds the same value. */
|
|
4929
|
+
intentLocked: number;
|
|
4930
|
+
/** @deprecated Use {@link deprecatedSignerLocked}. It holds the same value. */
|
|
4931
|
+
pendingRecovery: number;
|
|
4922
4932
|
}
|
|
4923
4933
|
/**
|
|
4924
4934
|
* Parameters accepted by `OnchainWallet.send`.
|
|
@@ -5229,7 +5239,7 @@ interface TxKey {
|
|
|
5229
5239
|
/**
|
|
5230
5240
|
* The categories the history builder itself assigns. Four name the mechanism that moved the
|
|
5231
5241
|
* coin; `"gated"` names the counterparty: an offchain movement into or out of one of this
|
|
5232
|
-
* wallet's gated contracts (swap covenant, lockup — the {@link WalletBalance.
|
|
5242
|
+
* wallet's gated contracts (swap covenant, lockup — the {@link WalletBalance.contractLocked} money).
|
|
5233
5243
|
* History treats that contract as external, so the tag tells "my own escrow" from "a stranger".
|
|
5234
5244
|
*/
|
|
5235
5245
|
type BuiltinTxTag = "offchain" | "boarding" | "exit" | "batch" | "gated";
|
|
@@ -5503,9 +5513,9 @@ interface IReadonlyWallet {
|
|
|
5503
5513
|
/** Cached display coins; may be incomplete until synchronization finishes. */
|
|
5504
5514
|
getStoredVtxos?(filter?: GetVtxosFilter): Promise<NormalizedExtendedVirtualCoin[]>;
|
|
5505
5515
|
/**
|
|
5506
|
-
* The subset of {@link getVtxos} generic spending may select: minus
|
|
5507
|
-
*
|
|
5508
|
-
* implicit coin selection reads this; `getVtxos` stays the raw reporting/recovery read.
|
|
5516
|
+
* The subset of {@link getVtxos} generic spending may select: minus `contractLocked`,
|
|
5517
|
+
* `deprecatedSignerLocked` and `pendingSettlement` outpoints (all from one contract snapshot).
|
|
5518
|
+
* Every implicit coin selection reads this; `getVtxos` stays the raw reporting/recovery read.
|
|
5509
5519
|
*
|
|
5510
5520
|
* @param filter - Same coin flags and defaults as {@link getVtxos}, with opt-in contract scopes
|
|
5511
5521
|
* @see GetSpendableVtxosFilter
|
|
@@ -1942,7 +1942,7 @@ interface SignerSet {
|
|
|
1942
1942
|
* Deprecated signers (x-only hex) → cutoff; `0n` means none advertised (→ `DUE_NOW`).
|
|
1943
1943
|
*
|
|
1944
1944
|
* Read-only: the wallet hands out its live `_deprecatedSigners`, which drives coin selection
|
|
1945
|
-
* and the
|
|
1945
|
+
* and the `deprecatedSignerLocked` balance bucket. Never write through it.
|
|
1946
1946
|
*/
|
|
1947
1947
|
deprecated: ReadonlyMap<string, bigint>;
|
|
1948
1948
|
}
|
|
@@ -1971,7 +1971,7 @@ declare function isCooperativelyMigratable(status: SignerStatus): boolean;
|
|
|
1971
1971
|
/**
|
|
1972
1972
|
* Outpoints (`txid:vout`) of VTXOs whose contract signer is past its cutoff (`EXPIRED`) and that
|
|
1973
1973
|
* the server has not swept yet. The operator will not co-sign them, so `getBalance` buckets them
|
|
1974
|
-
* under `
|
|
1974
|
+
* under `deprecatedSignerLocked` and coin selection skips them (a send would fail at submit); they
|
|
1975
1975
|
* recover once swept and re-settled under the active signer.
|
|
1976
1976
|
*
|
|
1977
1977
|
* Pure + offline: classifies against a cached {@link SignerSet}, never a fresh GetInfo.
|
|
@@ -2881,7 +2881,7 @@ interface IntentReconciliationDeps {
|
|
|
2881
2881
|
intentRepository: IntentRepository;
|
|
2882
2882
|
indexerProvider: IntentReconcilerIndexer;
|
|
2883
2883
|
/**
|
|
2884
|
-
* Replays an intent's stored delete proof against arkd. Absent ⇒
|
|
2884
|
+
* Replays an intent's stored delete proof against arkd. Absent ⇒ an unresolved, unexpired
|
|
2885
2885
|
* intent stays locked, since arkd never expires a queued intent on its own.
|
|
2886
2886
|
*/
|
|
2887
2887
|
deleteIntent?: (intent: SignedIntent<Intent.DeleteMessage>) => Promise<void>;
|
|
@@ -4860,14 +4860,17 @@ interface WalletBalance {
|
|
|
4860
4860
|
* boarding inputs, so zero boarding may only mean "not loaded". */
|
|
4861
4861
|
loaded?: boolean;
|
|
4862
4862
|
};
|
|
4863
|
-
/**
|
|
4863
|
+
/**
|
|
4864
|
+
* Settled (finalized) balance the wallet owns, including {@link contractLocked} and
|
|
4865
|
+
* {@link pendingSettlement} funds.
|
|
4866
|
+
*/
|
|
4864
4867
|
settled: number;
|
|
4865
4868
|
/** Preconfirmed (unfinalized) balance the wallet owns, on the same owned rule as {@link settled}. */
|
|
4866
4869
|
preconfirmed: number;
|
|
4867
4870
|
/**
|
|
4868
4871
|
* Immediately spendable offchain balance — what generic selection would pick, so `send` never
|
|
4869
|
-
* refuses it: `settled + preconfirmed -
|
|
4870
|
-
* carrier kept back if any of these outputs hold assets.
|
|
4872
|
+
* refuses it: `settled + preconfirmed - contractLocked - pendingSettlement - reserved`, minus
|
|
4873
|
+
* one dust carrier kept back if any of these outputs hold assets.
|
|
4871
4874
|
*/
|
|
4872
4875
|
available: number;
|
|
4873
4876
|
/**
|
|
@@ -4876,12 +4879,12 @@ interface WalletBalance {
|
|
|
4876
4879
|
* `available`. Takes precedence over {@link pendingSettlement} (the gate is durable; a lock clears).
|
|
4877
4880
|
*
|
|
4878
4881
|
* Subtract it from `settled + preconfirmed`, never from `total`, which also carries boarding,
|
|
4879
|
-
* recoverable
|
|
4882
|
+
* `recoverable`, `deprecatedSignerLocked` and `unrolled` funds.
|
|
4880
4883
|
*/
|
|
4881
|
-
|
|
4884
|
+
contractLocked: number;
|
|
4882
4885
|
/**
|
|
4883
|
-
* Committed to an in-flight intent and not {@link
|
|
4884
|
-
* intent terminates. Zero when unknown (no intent repository or a failed read), so it
|
|
4886
|
+
* Committed to an in-flight intent and not {@link contractLocked}; returns to `available` when
|
|
4887
|
+
* the intent terminates. Zero when unknown (no intent repository or a failed read), so it
|
|
4885
4888
|
* under-reports into `available` rather than misattributing.
|
|
4886
4889
|
*/
|
|
4887
4890
|
pendingSettlement: number;
|
|
@@ -4897,7 +4900,7 @@ interface WalletBalance {
|
|
|
4897
4900
|
* Unswept funds under a deprecated signer past its cutoff. Not spendable until recovered
|
|
4898
4901
|
* (excluded from `available`/`settled`/`preconfirmed` and coin selection), but in `total`.
|
|
4899
4902
|
*/
|
|
4900
|
-
|
|
4903
|
+
deprecatedSignerLocked: number;
|
|
4901
4904
|
/**
|
|
4902
4905
|
* Already unilaterally exited: onchain behind its CSV, movable only by
|
|
4903
4906
|
* `Unroll.completeUnroll`. Excluded from every spendable bucket and `recoverable`, but in
|
|
@@ -4905,7 +4908,8 @@ interface WalletBalance {
|
|
|
4905
4908
|
*/
|
|
4906
4909
|
unrolled: number;
|
|
4907
4910
|
/**
|
|
4908
|
-
* Total across offchain, recoverable
|
|
4911
|
+
* Total across offchain, `recoverable`, `deprecatedSignerLocked`, `unrolled` and boarding
|
|
4912
|
+
* funds.
|
|
4909
4913
|
*
|
|
4910
4914
|
* Known wedge: while a `send`/`sendBitcoin`/`settle` is in flight, its VTXO inputs (not
|
|
4911
4915
|
* boarding) are withheld from every bucket on the `Wallet` instance driving it; a
|
|
@@ -4919,6 +4923,12 @@ interface WalletBalance {
|
|
|
4919
4923
|
* {@link available}). Assets have no per-cause split of what is held but not selectable.
|
|
4920
4924
|
*/
|
|
4921
4925
|
availableAssets: Asset[];
|
|
4926
|
+
/** @deprecated Use {@link contractLocked}. It holds the same value. */
|
|
4927
|
+
gated: number;
|
|
4928
|
+
/** @deprecated Use {@link pendingSettlement}. It holds the same value. */
|
|
4929
|
+
intentLocked: number;
|
|
4930
|
+
/** @deprecated Use {@link deprecatedSignerLocked}. It holds the same value. */
|
|
4931
|
+
pendingRecovery: number;
|
|
4922
4932
|
}
|
|
4923
4933
|
/**
|
|
4924
4934
|
* Parameters accepted by `OnchainWallet.send`.
|
|
@@ -5229,7 +5239,7 @@ interface TxKey {
|
|
|
5229
5239
|
/**
|
|
5230
5240
|
* The categories the history builder itself assigns. Four name the mechanism that moved the
|
|
5231
5241
|
* coin; `"gated"` names the counterparty: an offchain movement into or out of one of this
|
|
5232
|
-
* wallet's gated contracts (swap covenant, lockup — the {@link WalletBalance.
|
|
5242
|
+
* wallet's gated contracts (swap covenant, lockup — the {@link WalletBalance.contractLocked} money).
|
|
5233
5243
|
* History treats that contract as external, so the tag tells "my own escrow" from "a stranger".
|
|
5234
5244
|
*/
|
|
5235
5245
|
type BuiltinTxTag = "offchain" | "boarding" | "exit" | "batch" | "gated";
|
|
@@ -5503,9 +5513,9 @@ interface IReadonlyWallet {
|
|
|
5503
5513
|
/** Cached display coins; may be incomplete until synchronization finishes. */
|
|
5504
5514
|
getStoredVtxos?(filter?: GetVtxosFilter): Promise<NormalizedExtendedVirtualCoin[]>;
|
|
5505
5515
|
/**
|
|
5506
|
-
* The subset of {@link getVtxos} generic spending may select: minus
|
|
5507
|
-
*
|
|
5508
|
-
* implicit coin selection reads this; `getVtxos` stays the raw reporting/recovery read.
|
|
5516
|
+
* The subset of {@link getVtxos} generic spending may select: minus `contractLocked`,
|
|
5517
|
+
* `deprecatedSignerLocked` and `pendingSettlement` outpoints (all from one contract snapshot).
|
|
5518
|
+
* Every implicit coin selection reads this; `getVtxos` stays the raw reporting/recovery read.
|
|
5509
5519
|
*
|
|
5510
5520
|
* @param filter - Same coin flags and defaults as {@link getVtxos}, with opt-in contract scopes
|
|
5511
5521
|
* @see GetSpendableVtxosFilter
|