@arkade-os/sdk 0.4.61 → 0.4.63

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 (78) hide show
  1. package/README.md +20 -0
  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/adapters/indexedDB.cjs +5 -5
  7. package/dist/adapters/indexedDB.js +4 -4
  8. package/dist/{asyncStorageTaskQueue-BWDxp3Dr.d.cts → asyncStorageTaskQueue-CIUEhv2t.d.cts} +2 -2
  9. package/dist/{asyncStorageTaskQueue-Cq9FpKv6.d.ts → asyncStorageTaskQueue-LT-xvvDN.d.ts} +2 -2
  10. package/dist/{chunk-FNCQJLR2.cjs → chunk-AB67CMHS.cjs} +3 -3
  11. package/dist/{chunk-FNCQJLR2.cjs.map → chunk-AB67CMHS.cjs.map} +1 -1
  12. package/dist/{chunk-3NUDA3MB.cjs → chunk-COOBS7ET.cjs} +646 -476
  13. package/dist/chunk-COOBS7ET.cjs.map +1 -0
  14. package/dist/{chunk-YVQNHELA.js → chunk-CZFAMS57.js} +3 -3
  15. package/dist/{chunk-YVQNHELA.js.map → chunk-CZFAMS57.js.map} +1 -1
  16. package/dist/{chunk-GDI2A65Z.js → chunk-FKKERGKA.js} +4 -4
  17. package/dist/{chunk-GDI2A65Z.js.map → chunk-FKKERGKA.js.map} +1 -1
  18. package/dist/{chunk-XMRB74HA.cjs → chunk-K56BNZV3.cjs} +10 -10
  19. package/dist/{chunk-XMRB74HA.cjs.map → chunk-K56BNZV3.cjs.map} +1 -1
  20. package/dist/{chunk-XLHN5L2O.js → chunk-KWW74O2F.js} +4 -4
  21. package/dist/{chunk-XLHN5L2O.js.map → chunk-KWW74O2F.js.map} +1 -1
  22. package/dist/{chunk-2JHN5RCY.cjs → chunk-LG5GY73A.cjs} +17 -17
  23. package/dist/{chunk-2JHN5RCY.cjs.map → chunk-LG5GY73A.cjs.map} +1 -1
  24. package/dist/{chunk-PVY6DMN5.js → chunk-MA32NXUV.js} +3 -3
  25. package/dist/{chunk-PVY6DMN5.js.map → chunk-MA32NXUV.js.map} +1 -1
  26. package/dist/{chunk-6O5OLYTZ.js → chunk-OAESYVZQ.js} +3 -3
  27. package/dist/{chunk-6O5OLYTZ.js.map → chunk-OAESYVZQ.js.map} +1 -1
  28. package/dist/{chunk-SF5NKAUA.cjs → chunk-OL7V43WS.cjs} +48 -48
  29. package/dist/{chunk-SF5NKAUA.cjs.map → chunk-OL7V43WS.cjs.map} +1 -1
  30. package/dist/{chunk-XFYFREPH.cjs → chunk-P6XYE27K.cjs} +17 -17
  31. package/dist/{chunk-XFYFREPH.cjs.map → chunk-P6XYE27K.cjs.map} +1 -1
  32. package/dist/{chunk-AUEXB42T.js → chunk-X7MMBB7S.js} +252 -84
  33. package/dist/chunk-X7MMBB7S.js.map +1 -0
  34. package/dist/contracts/handlers/index.cjs +9 -9
  35. package/dist/contracts/handlers/index.d.cts +3 -3
  36. package/dist/contracts/handlers/index.d.ts +3 -3
  37. package/dist/contracts/handlers/index.js +2 -2
  38. package/dist/{delegate-C4Rl6h9l.d.cts → delegate-BBQW61ym.d.cts} +1 -1
  39. package/dist/{delegate-BySzD37I.d.ts → delegate-Dv_9OVHv.d.ts} +1 -1
  40. package/dist/{index-C29VNcxC.d.ts → index-Bxe9kBFs.d.ts} +2 -2
  41. package/dist/{index-BcRCHnzN.d.cts → index-CFOMyVMt.d.cts} +88 -12
  42. package/dist/{index-BcRCHnzN.d.ts → index-CFOMyVMt.d.ts} +88 -12
  43. package/dist/{index-Butfkm-K.d.cts → index-aZycGEsQ.d.cts} +2 -2
  44. package/dist/index.cjs +274 -266
  45. package/dist/index.d.cts +116 -20
  46. package/dist/index.d.ts +116 -20
  47. package/dist/index.js +4 -4
  48. package/dist/repositories/realm/index.cjs +19 -19
  49. package/dist/repositories/realm/index.d.cts +2 -2
  50. package/dist/repositories/realm/index.d.ts +2 -2
  51. package/dist/repositories/realm/index.js +5 -5
  52. package/dist/repositories/sqlite/index.cjs +27 -18
  53. package/dist/repositories/sqlite/index.cjs.map +1 -1
  54. package/dist/repositories/sqlite/index.d.cts +20 -3
  55. package/dist/repositories/sqlite/index.d.ts +20 -3
  56. package/dist/repositories/sqlite/index.js +13 -6
  57. package/dist/repositories/sqlite/index.js.map +1 -1
  58. package/dist/{taskRunner-BTq3rMpI.d.cts → taskRunner-BJ6_AnLq.d.cts} +2 -2
  59. package/dist/{taskRunner-DxMJYJ7Y.d.ts → taskRunner-BQb0W1XG.d.ts} +2 -2
  60. package/dist/wallet/expo/background.cjs +14 -14
  61. package/dist/wallet/expo/background.d.cts +3 -3
  62. package/dist/wallet/expo/background.d.ts +3 -3
  63. package/dist/wallet/expo/background.js +6 -6
  64. package/dist/wallet/expo/index.cjs +16 -16
  65. package/dist/wallet/expo/index.cjs.map +1 -1
  66. package/dist/wallet/expo/index.d.cts +5 -5
  67. package/dist/wallet/expo/index.d.ts +5 -5
  68. package/dist/wallet/expo/index.js +7 -7
  69. package/dist/wallet/expo/index.js.map +1 -1
  70. package/dist/{wallet-BVIfg2ic.d.ts → wallet-C2NvHjWB.d.cts} +14 -5
  71. package/dist/{wallet-DrSsUden.d.cts → wallet-DJUnN939.d.ts} +14 -5
  72. package/dist/worker/expo/index.cjs +9 -9
  73. package/dist/worker/expo/index.d.cts +4 -4
  74. package/dist/worker/expo/index.d.ts +4 -4
  75. package/dist/worker/expo/index.js +5 -5
  76. package/package.json +1 -1
  77. package/dist/chunk-3NUDA3MB.cjs.map +0 -1
  78. package/dist/chunk-AUEXB42T.js.map +0 -1
package/README.md CHANGED
@@ -341,7 +341,27 @@ console.log('Boarding Total:', balance.boarding.total)
341
341
  console.log('Offchain Available:', balance.available)
342
342
  console.log('Offchain Settled:', balance.settled)
343
343
  console.log('Offchain Preconfirmed:', balance.preconfirmed)
344
+ console.log('Gated by a contract:', balance.gated) // swap escrow, chiefly
345
+ console.log('Locked by an in-flight intent:', balance.intentLocked)
344
346
  console.log('Recoverable:', balance.recoverable)
347
+ console.log('Awaiting recovery:', balance.pendingRecovery)
348
+ ```
349
+
350
+ `settled` and `preconfirmed` are the owned offchain buckets this relationship is
351
+ about — `recoverable` and `pendingRecovery` are the wallet's funds too, just held
352
+ under a different predicate. `available` is what generic spending will actually
353
+ pick, and the difference between the two is accounted for exactly:
354
+
355
+ ```text
356
+ settled + preconfirmed === available + gated + intentLocked
357
+ ```
358
+
359
+ To show "your money, minus what is tied up", subtract from `settled + preconfirmed`
360
+ — **not from `total`**, which also contains `boarding.total`, `recoverable` and
361
+ `pendingRecovery`. Those are still your funds, so subtracting a bucket from `total`
362
+ silently drops them from the figure.
363
+
364
+ ```typescript
345
365
 
346
366
  // Get virtual outputs (available for offchain spending)
347
367
  const vtxos = await wallet.getVtxos()
@@ -1,19 +1,19 @@
1
1
  'use strict';
2
2
 
3
- var chunkXFYFREPH_cjs = require('../chunk-XFYFREPH.cjs');
4
- require('../chunk-2JHN5RCY.cjs');
5
- require('../chunk-FNCQJLR2.cjs');
3
+ var chunkP6XYE27K_cjs = require('../chunk-P6XYE27K.cjs');
4
+ require('../chunk-LG5GY73A.cjs');
5
+ require('../chunk-AB67CMHS.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 chunkXFYFREPH_cjs.ExpoArkProvider; }
12
+ get: function () { return chunkP6XYE27K_cjs.ExpoArkProvider; }
13
13
  });
14
14
  Object.defineProperty(exports, "ExpoIndexerProvider", {
15
15
  enumerable: true,
16
- get: function () { return chunkXFYFREPH_cjs.ExpoIndexerProvider; }
16
+ get: function () { return chunkP6XYE27K_cjs.ExpoIndexerProvider; }
17
17
  });
18
18
  //# sourceMappingURL=expo.cjs.map
19
19
  //# sourceMappingURL=expo.cjs.map
@@ -1,5 +1,5 @@
1
- import { k as RestArkProvider, i as SettlementEvent, T as TxNotification, l as RestIndexerProvider, m as SubscriptionResponse } from '../index-BcRCHnzN.cjs';
2
- export { n as ArkProvider, o as IndexerProvider } from '../index-BcRCHnzN.cjs';
1
+ import { l as RestArkProvider, i as SettlementEvent, T as TxNotification, m as RestIndexerProvider, n as SubscriptionResponse } from '../index-CFOMyVMt.cjs';
2
+ export { o as ArkProvider, p as IndexerProvider } from '../index-CFOMyVMt.cjs';
3
3
  import '@scure/btc-signer/utils.js';
4
4
  import '@scure/btc-signer/transaction.js';
5
5
  import '@scure/btc-signer';
@@ -1,5 +1,5 @@
1
- import { k as RestArkProvider, i as SettlementEvent, T as TxNotification, l as RestIndexerProvider, m as SubscriptionResponse } from '../index-BcRCHnzN.js';
2
- export { n as ArkProvider, o as IndexerProvider } from '../index-BcRCHnzN.js';
1
+ import { l as RestArkProvider, i as SettlementEvent, T as TxNotification, m as RestIndexerProvider, n as SubscriptionResponse } from '../index-CFOMyVMt.js';
2
+ export { o as ArkProvider, p as IndexerProvider } from '../index-CFOMyVMt.js';
3
3
  import '@scure/btc-signer/utils.js';
4
4
  import '@scure/btc-signer/transaction.js';
5
5
  import '@scure/btc-signer';
@@ -1,6 +1,6 @@
1
- export { ExpoArkProvider, ExpoIndexerProvider } from '../chunk-GDI2A65Z.js';
2
- import '../chunk-YVQNHELA.js';
3
- import '../chunk-PVY6DMN5.js';
1
+ export { ExpoArkProvider, ExpoIndexerProvider } from '../chunk-FKKERGKA.js';
2
+ import '../chunk-CZFAMS57.js';
3
+ import '../chunk-MA32NXUV.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 chunk3NUDA3MB_cjs = require('../chunk-3NUDA3MB.cjs');
4
- require('../chunk-2JHN5RCY.cjs');
5
- require('../chunk-SF5NKAUA.cjs');
6
- require('../chunk-FNCQJLR2.cjs');
3
+ var chunkCOOBS7ET_cjs = require('../chunk-COOBS7ET.cjs');
4
+ require('../chunk-LG5GY73A.cjs');
5
+ require('../chunk-OL7V43WS.cjs');
6
+ require('../chunk-AB67CMHS.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 = chunk3NUDA3MB_cjs.DB_VERSION) {
14
+ constructor(dbName, version = chunkCOOBS7ET_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-AUEXB42T.js';
2
- import '../chunk-YVQNHELA.js';
3
- import '../chunk-6O5OLYTZ.js';
4
- import '../chunk-PVY6DMN5.js';
1
+ import { DB_VERSION } from '../chunk-X7MMBB7S.js';
2
+ import '../chunk-CZFAMS57.js';
3
+ import '../chunk-OAESYVZQ.js';
4
+ import '../chunk-MA32NXUV.js';
5
5
  import '../chunk-NSBPE2FW.js';
6
6
 
7
7
  // src/storage/indexedDB.ts
@@ -1,4 +1,4 @@
1
- import { a as TaskQueue, c as TaskItem, d as TaskResult } from './taskRunner-BTq3rMpI.cjs';
1
+ import { c as TaskQueue, b as TaskItem, d as TaskResult } from './taskRunner-BJ6_AnLq.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 { AsyncStorageTaskQueue as A, type AsyncStorageLike as a };
49
+ export { type AsyncStorageLike as A, AsyncStorageTaskQueue as a };
@@ -1,4 +1,4 @@
1
- import { a as TaskQueue, c as TaskItem, d as TaskResult } from './taskRunner-DxMJYJ7Y.js';
1
+ import { c as TaskQueue, b as TaskItem, d as TaskResult } from './taskRunner-BQb0W1XG.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 { AsyncStorageTaskQueue as A, type AsyncStorageLike as a };
49
+ export { type AsyncStorageLike as A, AsyncStorageTaskQueue as a };
@@ -1032,7 +1032,7 @@ function resolveEventSource(override) {
1032
1032
  }
1033
1033
 
1034
1034
  // package.json
1035
- var version = "0.4.61";
1035
+ var version = "0.4.63";
1036
1036
 
1037
1037
  // src/utils/fetch.ts
1038
1038
  var buildVersion = "0.9.9";
@@ -2485,5 +2485,5 @@ exports.toBatchExpiry = toBatchExpiry;
2485
2485
  exports.toOffchainInputFeeParams = toOffchainInputFeeParams;
2486
2486
  exports.toProviderUnavailable = toProviderUnavailable;
2487
2487
  exports.toVirtualStatus = toVirtualStatus;
2488
- //# sourceMappingURL=chunk-FNCQJLR2.cjs.map
2489
- //# sourceMappingURL=chunk-FNCQJLR2.cjs.map
2488
+ //# sourceMappingURL=chunk-AB67CMHS.cjs.map
2489
+ //# sourceMappingURL=chunk-AB67CMHS.cjs.map