@arkade-os/sdk 0.5.0 → 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.
Files changed (72) hide show
  1. package/README.md +10 -6
  2. package/dist/adapters/expo.cjs +5 -5
  3. package/dist/adapters/expo.d.cts +2 -2
  4. package/dist/adapters/expo.d.ts +2 -2
  5. package/dist/adapters/expo.js +3 -3
  6. package/dist/{asyncStorageTaskQueue-qRRQUOE8.d.cts → asyncStorageTaskQueue-BtEc3Qca.d.cts} +2 -2
  7. package/dist/{asyncStorageTaskQueue-BFv2O1y1.d.ts → asyncStorageTaskQueue-DIn7bTqN.d.ts} +2 -2
  8. package/dist/{chunk-AU77RYOC.cjs → chunk-2OCYL6BJ.cjs} +1177 -864
  9. package/dist/chunk-2OCYL6BJ.cjs.map +1 -0
  10. package/dist/{chunk-K2E6X6JT.js → chunk-2QRUQXLS.js} +4 -4
  11. package/dist/{chunk-K2E6X6JT.js.map → chunk-2QRUQXLS.js.map} +1 -1
  12. package/dist/{chunk-IQWLFYT2.cjs → chunk-64R7CRKN.cjs} +18 -18
  13. package/dist/{chunk-IQWLFYT2.cjs.map → chunk-64R7CRKN.cjs.map} +1 -1
  14. package/dist/{chunk-GWJWXVUB.js → chunk-AJWXVQYG.js} +692 -379
  15. package/dist/chunk-AJWXVQYG.js.map +1 -0
  16. package/dist/{chunk-UUSKJOSX.cjs → chunk-GGKR4O5X.cjs} +3 -3
  17. package/dist/{chunk-UUSKJOSX.cjs.map → chunk-GGKR4O5X.cjs.map} +1 -1
  18. package/dist/{chunk-ZOEB53NQ.js → chunk-HKG26NUT.js} +3 -3
  19. package/dist/{chunk-ZOEB53NQ.js.map → chunk-HKG26NUT.js.map} +1 -1
  20. package/dist/{chunk-K352GMVL.js → chunk-LWRMSC4M.js} +3 -3
  21. package/dist/{chunk-K352GMVL.js.map → chunk-LWRMSC4M.js.map} +1 -1
  22. package/dist/{chunk-TZSKLERU.js → chunk-MOBDJ7U2.js} +4 -4
  23. package/dist/{chunk-TZSKLERU.js.map → chunk-MOBDJ7U2.js.map} +1 -1
  24. package/dist/{chunk-GN2K4WBP.cjs → chunk-OM6FJ76H.cjs} +48 -48
  25. package/dist/{chunk-GN2K4WBP.cjs.map → chunk-OM6FJ76H.cjs.map} +1 -1
  26. package/dist/{chunk-GOM26K6H.cjs → chunk-PVFQFQBY.cjs} +10 -10
  27. package/dist/{chunk-GOM26K6H.cjs.map → chunk-PVFQFQBY.cjs.map} +1 -1
  28. package/dist/{chunk-JT5YVMCJ.cjs → chunk-TAIWH3HG.cjs} +16 -16
  29. package/dist/{chunk-JT5YVMCJ.cjs.map → chunk-TAIWH3HG.cjs.map} +1 -1
  30. package/dist/{chunk-HABGVRLF.js → chunk-U5XG7SWA.js} +3 -3
  31. package/dist/{chunk-HABGVRLF.js.map → chunk-U5XG7SWA.js.map} +1 -1
  32. package/dist/contracts/handlers/index.cjs +9 -9
  33. package/dist/contracts/handlers/index.d.cts +3 -3
  34. package/dist/contracts/handlers/index.d.ts +3 -3
  35. package/dist/contracts/handlers/index.js +2 -2
  36. package/dist/{delegate-B5BmYkEY.d.cts → delegate-CaL8EN4Q.d.cts} +1 -1
  37. package/dist/{delegate-DNbiUgy8.d.ts → delegate-Jd4zs88Q.d.ts} +1 -1
  38. package/dist/{index-B4QuO9sH.d.cts → index-BwdGzNSn.d.cts} +2 -2
  39. package/dist/{index-CYeyT3kn.d.ts → index-D-xqVzf8.d.ts} +2 -2
  40. package/dist/{index-CZw-MMfY.d.cts → index-DdKxfC29.d.cts} +35 -17
  41. package/dist/{index-CZw-MMfY.d.ts → index-DdKxfC29.d.ts} +35 -17
  42. package/dist/index.cjs +313 -313
  43. package/dist/index.d.cts +100 -26
  44. package/dist/index.d.ts +100 -26
  45. package/dist/index.js +4 -4
  46. package/dist/repositories/realm/index.cjs +35 -35
  47. package/dist/repositories/realm/index.d.cts +2 -2
  48. package/dist/repositories/realm/index.d.ts +2 -2
  49. package/dist/repositories/realm/index.js +5 -5
  50. package/dist/repositories/sqlite/index.cjs +33 -33
  51. package/dist/repositories/sqlite/index.d.cts +2 -2
  52. package/dist/repositories/sqlite/index.d.ts +2 -2
  53. package/dist/repositories/sqlite/index.js +5 -5
  54. package/dist/{taskRunner-B3SLvUfL.d.cts → taskRunner-67YSEpsz.d.cts} +2 -2
  55. package/dist/{taskRunner-wm1bhmtP.d.ts → taskRunner-ZyGGjtIq.d.ts} +2 -2
  56. package/dist/wallet/expo/background.cjs +14 -14
  57. package/dist/wallet/expo/background.d.cts +3 -3
  58. package/dist/wallet/expo/background.d.ts +3 -3
  59. package/dist/wallet/expo/background.js +6 -6
  60. package/dist/wallet/expo/index.cjs +15 -15
  61. package/dist/wallet/expo/index.d.cts +4 -4
  62. package/dist/wallet/expo/index.d.ts +4 -4
  63. package/dist/wallet/expo/index.js +5 -5
  64. package/dist/{wallet-DGLXuwXT.d.ts → wallet-B8LW7cV1.d.cts} +7 -6
  65. package/dist/{wallet-DCZ2-Bea.d.cts → wallet-bFS7VybL.d.ts} +7 -6
  66. package/dist/worker/expo/index.cjs +9 -9
  67. package/dist/worker/expo/index.d.cts +4 -4
  68. package/dist/worker/expo/index.d.ts +4 -4
  69. package/dist/worker/expo/index.js +5 -5
  70. package/package.json +1 -1
  71. package/dist/chunk-AU77RYOC.cjs.map +0 -1
  72. package/dist/chunk-GWJWXVUB.js.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
- | `gated` | Held by a contract that generic spending refuses (chiefly swap escrow); only that contract can spend it ([Contract Management](#contract-management)). |
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
- | `pendingRecovery` | Under a server signer past its cutoff, which the operator no longer co-signs; recovers once swept and re-settled. |
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 + pendingRecovery + unrolled`. |
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 + gated + pendingSettlement + reserved
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
- `pendingRecovery` and `unrolled`. Those are still your funds, so subtracting a bucket
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
@@ -704,7 +708,7 @@ console.log('Failed:', delegationResult.failed.length)
704
708
 
705
709
  The `delegate` method groups virtual outputs by expiry date and submits them to the delegation service.
706
710
 
707
- By default, delegation is scheduled at 90% of each virtual output's remaining lifetime.
711
+ By default, delegation is scheduled three operator sessions before the earliest expiry in each group. This is best effort: a delegator outage near expiry can miss it, leaving the virtual output recoverable.
708
712
 
709
713
  You can override this with an explicit date:
710
714
 
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var chunkJT5YVMCJ_cjs = require('../chunk-JT5YVMCJ.cjs');
4
- require('../chunk-IQWLFYT2.cjs');
5
- require('../chunk-UUSKJOSX.cjs');
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 chunkJT5YVMCJ_cjs.ExpoArkProvider; }
11
+ get: function () { return chunkTAIWH3HG_cjs.ExpoArkProvider; }
12
12
  });
13
13
  Object.defineProperty(exports, "ExpoIndexerProvider", {
14
14
  enumerable: true,
15
- get: function () { return chunkJT5YVMCJ_cjs.ExpoIndexerProvider; }
15
+ get: function () { return chunkTAIWH3HG_cjs.ExpoIndexerProvider; }
16
16
  });
17
17
  //# sourceMappingURL=expo.cjs.map
18
18
  //# sourceMappingURL=expo.cjs.map
@@ -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-CZw-MMfY.cjs';
2
- export { v as ArkProvider, w as IndexerProvider } from '../index-CZw-MMfY.cjs';
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';
@@ -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-CZw-MMfY.js';
2
- export { v as ArkProvider, w as IndexerProvider } from '../index-CZw-MMfY.js';
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';
@@ -1,5 +1,5 @@
1
- export { ExpoArkProvider, ExpoIndexerProvider } from '../chunk-K2E6X6JT.js';
2
- import '../chunk-HABGVRLF.js';
3
- import '../chunk-ZOEB53NQ.js';
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
@@ -1,4 +1,4 @@
1
- import { c as TaskQueue, b as TaskItem, d as TaskResult } from './taskRunner-B3SLvUfL.cjs';
1
+ import { a as TaskQueue, c as TaskItem, d as TaskResult } from './taskRunner-67YSEpsz.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 { type AsyncStorageLike as A, AsyncStorageTaskQueue as a };
49
+ export { AsyncStorageTaskQueue as A, type AsyncStorageLike as a };
@@ -1,4 +1,4 @@
1
- import { c as TaskQueue, b as TaskItem, d as TaskResult } from './taskRunner-wm1bhmtP.js';
1
+ import { a as TaskQueue, c as TaskItem, d as TaskResult } from './taskRunner-ZyGGjtIq.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 { type AsyncStorageLike as A, AsyncStorageTaskQueue as a };
49
+ export { AsyncStorageTaskQueue as A, type AsyncStorageLike as a };