@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
package/README.md
CHANGED
|
@@ -411,21 +411,25 @@ const balance = await wallet.getBalance()
|
|
|
411
411
|
| `settled` | Finalized offchain funds the wallet owns, spendable or not. |
|
|
412
412
|
| `preconfirmed` | Owned offchain funds not yet finalized in a batch. |
|
|
413
413
|
| `available` | What `send` and every other automatic coin selection can spend now. |
|
|
414
|
-
| `
|
|
414
|
+
| `contractLocked` | Held by a contract that generic spending refuses (chiefly swap escrow); only that contract can spend it ([Contract Management](#contract-management)). |
|
|
415
415
|
| `pendingSettlement` | Committed to an in-flight settlement intent; back in `available` when the intent ends. Always `0` without `storage.intentRepository`. |
|
|
416
416
|
| `reserved` | Held by [`reserveVtxos`](#holding-vtxos-for-your-own-use) until released. |
|
|
417
417
|
| `recoverable` | Swept or subdust virtual outputs that [`recoverVtxos`](#recovery-reclaim-swept-vtxos) can reclaim; `getRecoverableBalance()` gives what a batch would return today. |
|
|
418
|
-
| `
|
|
418
|
+
| `deprecatedSignerLocked` | Under a server signer past its cutoff, which the operator no longer co-signs; recovers once swept and re-settled. |
|
|
419
419
|
| `unrolled` | Already [unilaterally exited](#unilateral-exit): onchain behind its CSV timelock, movable only by `Unroll.completeUnroll`. |
|
|
420
|
-
| `total` | Everything the wallet owns: `boarding.total + settled + preconfirmed + recoverable +
|
|
420
|
+
| `total` | Everything the wallet owns: `boarding.total + settled + preconfirmed + recoverable + deprecatedSignerLocked + unrolled`. |
|
|
421
421
|
| `assets` | Every [asset](#assets-issue-reissue-burn-send) balance the wallet owns. |
|
|
422
422
|
| `availableAssets` | The subset of `assets` generic spending can move: the asset counterpart of `available`. |
|
|
423
423
|
|
|
424
|
+
Older code can read `gated`, `intentLocked`, and `pendingRecovery`. These deprecated aliases
|
|
425
|
+
hold the same values as `contractLocked`, `pendingSettlement`, and `deprecatedSignerLocked`,
|
|
426
|
+
so new code should use those names.
|
|
427
|
+
|
|
424
428
|
`available` is what remains of the owned offchain funds once everything held for a
|
|
425
429
|
cause is taken out:
|
|
426
430
|
|
|
427
431
|
```text
|
|
428
|
-
settled + preconfirmed === available +
|
|
432
|
+
settled + preconfirmed === available + contractLocked + pendingSettlement + reserved
|
|
429
433
|
```
|
|
430
434
|
|
|
431
435
|
plus one dust carrier when the wallet holds available assets, since an asset moves
|
|
@@ -433,7 +437,7 @@ only with the output that carries it.
|
|
|
433
437
|
|
|
434
438
|
To show "your money, minus what is tied up", subtract from `settled + preconfirmed`
|
|
435
439
|
— **not from `total`**, which also contains `boarding.total`, `recoverable`,
|
|
436
|
-
`
|
|
440
|
+
`deprecatedSignerLocked` and `unrolled`. Those are still your funds, so subtracting a bucket
|
|
437
441
|
from `total` silently drops them from the figure.
|
|
438
442
|
|
|
439
443
|
```typescript
|
package/dist/adapters/expo.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var chunkTAIWH3HG_cjs = require('../chunk-TAIWH3HG.cjs');
|
|
4
|
+
require('../chunk-64R7CRKN.cjs');
|
|
5
|
+
require('../chunk-GGKR4O5X.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "ExpoArkProvider", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkTAIWH3HG_cjs.ExpoArkProvider; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "ExpoIndexerProvider", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkTAIWH3HG_cjs.ExpoIndexerProvider; }
|
|
16
16
|
});
|
|
17
17
|
//# sourceMappingURL=expo.cjs.map
|
|
18
18
|
//# sourceMappingURL=expo.cjs.map
|
package/dist/adapters/expo.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as RestArkProvider, o as SettlementEvent, T as TxNotificationEvent, s as RestIndexerProvider, t as SubscriptionEvent, u as SubscriptionHeartbeat } from '../index-
|
|
2
|
-
export { v as ArkProvider, w as IndexerProvider } from '../index-
|
|
1
|
+
import { r as RestArkProvider, o as SettlementEvent, T as TxNotificationEvent, s as RestIndexerProvider, t as SubscriptionEvent, u as SubscriptionHeartbeat } from '../index-DdKxfC29.cjs';
|
|
2
|
+
export { v as ArkProvider, w as IndexerProvider } from '../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';
|
package/dist/adapters/expo.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as RestArkProvider, o as SettlementEvent, T as TxNotificationEvent, s as RestIndexerProvider, t as SubscriptionEvent, u as SubscriptionHeartbeat } from '../index-
|
|
2
|
-
export { v as ArkProvider, w as IndexerProvider } from '../index-
|
|
1
|
+
import { r as RestArkProvider, o as SettlementEvent, T as TxNotificationEvent, s as RestIndexerProvider, t as SubscriptionEvent, u as SubscriptionHeartbeat } from '../index-DdKxfC29.js';
|
|
2
|
+
export { v as ArkProvider, w as IndexerProvider } from '../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';
|
package/dist/adapters/expo.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ExpoArkProvider, ExpoIndexerProvider } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { ExpoArkProvider, ExpoIndexerProvider } from '../chunk-2QRUQXLS.js';
|
|
2
|
+
import '../chunk-U5XG7SWA.js';
|
|
3
|
+
import '../chunk-HKG26NUT.js';
|
|
4
4
|
//# sourceMappingURL=expo.js.map
|
|
5
5
|
//# sourceMappingURL=expo.js.map
|