@arkade-os/sdk 0.5.2 → 0.5.4

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 (88) hide show
  1. package/README.md +36 -34
  2. package/dist/adapters/expo.cjs +9 -5
  3. package/dist/adapters/expo.d.cts +11 -7
  4. package/dist/adapters/expo.d.ts +11 -7
  5. package/dist/adapters/expo.js +3 -3
  6. package/dist/{asyncStorageTaskQueue-DIn7bTqN.d.ts → asyncStorageTaskQueue-DHMIxY04.d.ts} +2 -2
  7. package/dist/{asyncStorageTaskQueue-BtEc3Qca.d.cts → asyncStorageTaskQueue-DTBa8EH7.d.cts} +2 -2
  8. package/dist/{chunk-LWRMSC4M.js → chunk-6CUP6ZIF.js} +4 -4
  9. package/dist/{chunk-LWRMSC4M.js.map → chunk-6CUP6ZIF.js.map} +1 -1
  10. package/dist/{chunk-HKG26NUT.js → chunk-AG4TFD6F.js} +140 -59
  11. package/dist/chunk-AG4TFD6F.js.map +1 -0
  12. package/dist/{chunk-PVFQFQBY.cjs → chunk-B6VNKGIH.cjs} +10 -10
  13. package/dist/chunk-B6VNKGIH.cjs.map +1 -0
  14. package/dist/{chunk-U5XG7SWA.js → chunk-BTRCN4JJ.js} +22 -19
  15. package/dist/chunk-BTRCN4JJ.js.map +1 -0
  16. package/dist/{chunk-TAIWH3HG.cjs → chunk-DNITZVNG.cjs} +28 -47
  17. package/dist/chunk-DNITZVNG.cjs.map +1 -0
  18. package/dist/{chunk-OM6FJ76H.cjs → chunk-E6OOJEHL.cjs} +49 -49
  19. package/dist/{chunk-OM6FJ76H.cjs.map → chunk-E6OOJEHL.cjs.map} +1 -1
  20. package/dist/{chunk-2OCYL6BJ.cjs → chunk-F3FAE7VJ.cjs} +850 -652
  21. package/dist/chunk-F3FAE7VJ.cjs.map +1 -0
  22. package/dist/{chunk-GGKR4O5X.cjs → chunk-GHUUT54D.cjs} +143 -58
  23. package/dist/chunk-GHUUT54D.cjs.map +1 -0
  24. package/dist/{chunk-MOBDJ7U2.js → chunk-MWVAWFX6.js} +4 -4
  25. package/dist/chunk-MWVAWFX6.js.map +1 -0
  26. package/dist/{chunk-2QRUQXLS.js → chunk-TUOLZBNC.js} +19 -39
  27. package/dist/chunk-TUOLZBNC.js.map +1 -0
  28. package/dist/{chunk-64R7CRKN.cjs → chunk-WXNSISXK.cjs} +37 -34
  29. package/dist/chunk-WXNSISXK.cjs.map +1 -0
  30. package/dist/{chunk-AJWXVQYG.js → chunk-ZJHLLDBP.js} +372 -177
  31. package/dist/chunk-ZJHLLDBP.js.map +1 -0
  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-CaL8EN4Q.d.cts → delegate-f4_t864Z.d.cts} +1 -1
  37. package/dist/{delegate-Jd4zs88Q.d.ts → delegate-xrSBNybC.d.ts} +1 -1
  38. package/dist/{index-D-xqVzf8.d.ts → index-BJDz15ms.d.ts} +5 -5
  39. package/dist/{index-BwdGzNSn.d.cts → index-BjiVGtp8.d.cts} +5 -5
  40. package/dist/{index-DdKxfC29.d.cts → index-DRwe0UDN.d.cts} +194 -114
  41. package/dist/{index-DdKxfC29.d.ts → index-DRwe0UDN.d.ts} +194 -114
  42. package/dist/index.cjs +333 -313
  43. package/dist/index.d.cts +80 -45
  44. package/dist/index.d.ts +80 -45
  45. package/dist/index.js +4 -4
  46. package/dist/repositories/realm/index.cjs +65 -36
  47. package/dist/repositories/realm/index.cjs.map +1 -1
  48. package/dist/repositories/realm/index.d.cts +7 -3
  49. package/dist/repositories/realm/index.d.ts +7 -3
  50. package/dist/repositories/realm/index.js +35 -6
  51. package/dist/repositories/realm/index.js.map +1 -1
  52. package/dist/repositories/sqlite/index.cjs +176 -110
  53. package/dist/repositories/sqlite/index.cjs.map +1 -1
  54. package/dist/repositories/sqlite/index.d.cts +23 -13
  55. package/dist/repositories/sqlite/index.d.ts +23 -13
  56. package/dist/repositories/sqlite/index.js +148 -83
  57. package/dist/repositories/sqlite/index.js.map +1 -1
  58. package/dist/{taskRunner-ZyGGjtIq.d.ts → taskRunner-BPPU-YHG.d.cts} +4 -4
  59. package/dist/{taskRunner-67YSEpsz.d.cts → taskRunner-CDlNeth0.d.ts} +4 -4
  60. package/dist/wallet/expo/background.cjs +14 -14
  61. package/dist/wallet/expo/background.cjs.map +1 -1
  62. package/dist/wallet/expo/background.d.cts +3 -3
  63. package/dist/wallet/expo/background.d.ts +3 -3
  64. package/dist/wallet/expo/background.js +7 -7
  65. package/dist/wallet/expo/background.js.map +1 -1
  66. package/dist/wallet/expo/index.cjs +18 -15
  67. package/dist/wallet/expo/index.cjs.map +1 -1
  68. package/dist/wallet/expo/index.d.cts +7 -6
  69. package/dist/wallet/expo/index.d.ts +7 -6
  70. package/dist/wallet/expo/index.js +9 -6
  71. package/dist/wallet/expo/index.js.map +1 -1
  72. package/dist/{wallet-bFS7VybL.d.ts → wallet-Oc3Wd5gv.d.ts} +27 -19
  73. package/dist/{wallet-B8LW7cV1.d.cts → wallet-jVBDQl6R.d.cts} +27 -19
  74. package/dist/worker/expo/index.cjs +9 -9
  75. package/dist/worker/expo/index.d.cts +4 -4
  76. package/dist/worker/expo/index.d.ts +4 -4
  77. package/dist/worker/expo/index.js +5 -5
  78. package/package.json +1 -1
  79. package/dist/chunk-2OCYL6BJ.cjs.map +0 -1
  80. package/dist/chunk-2QRUQXLS.js.map +0 -1
  81. package/dist/chunk-64R7CRKN.cjs.map +0 -1
  82. package/dist/chunk-AJWXVQYG.js.map +0 -1
  83. package/dist/chunk-GGKR4O5X.cjs.map +0 -1
  84. package/dist/chunk-HKG26NUT.js.map +0 -1
  85. package/dist/chunk-MOBDJ7U2.js.map +0 -1
  86. package/dist/chunk-PVFQFQBY.cjs.map +0 -1
  87. package/dist/chunk-TAIWH3HG.cjs.map +0 -1
  88. package/dist/chunk-U5XG7SWA.js.map +0 -1
@@ -1,37 +1,37 @@
1
1
  'use strict';
2
2
 
3
- var chunkOM6FJ76H_cjs = require('../../chunk-OM6FJ76H.cjs');
4
- require('../../chunk-GGKR4O5X.cjs');
3
+ var chunkE6OOJEHL_cjs = require('../../chunk-E6OOJEHL.cjs');
4
+ require('../../chunk-GHUUT54D.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "ArkadeContractHandler", {
9
9
  enumerable: true,
10
- get: function () { return chunkOM6FJ76H_cjs.ArkadeContractHandler; }
10
+ get: function () { return chunkE6OOJEHL_cjs.ArkadeContractHandler; }
11
11
  });
12
12
  Object.defineProperty(exports, "BoardingContractHandler", {
13
13
  enumerable: true,
14
- get: function () { return chunkOM6FJ76H_cjs.BoardingContractHandler; }
14
+ get: function () { return chunkE6OOJEHL_cjs.BoardingContractHandler; }
15
15
  });
16
16
  Object.defineProperty(exports, "DefaultContractHandler", {
17
17
  enumerable: true,
18
- get: function () { return chunkOM6FJ76H_cjs.DefaultContractHandler; }
18
+ get: function () { return chunkE6OOJEHL_cjs.DefaultContractHandler; }
19
19
  });
20
20
  Object.defineProperty(exports, "DelegateContractHandler", {
21
21
  enumerable: true,
22
- get: function () { return chunkOM6FJ76H_cjs.DelegateContractHandler; }
22
+ get: function () { return chunkE6OOJEHL_cjs.DelegateContractHandler; }
23
23
  });
24
24
  Object.defineProperty(exports, "VHTLCContractHandler", {
25
25
  enumerable: true,
26
- get: function () { return chunkOM6FJ76H_cjs.VHTLCContractHandler; }
26
+ get: function () { return chunkE6OOJEHL_cjs.VHTLCContractHandler; }
27
27
  });
28
28
  Object.defineProperty(exports, "VHTLCV2ContractHandler", {
29
29
  enumerable: true,
30
- get: function () { return chunkOM6FJ76H_cjs.VHTLCV2ContractHandler; }
30
+ get: function () { return chunkE6OOJEHL_cjs.VHTLCV2ContractHandler; }
31
31
  });
32
32
  Object.defineProperty(exports, "contractHandlers", {
33
33
  enumerable: true,
34
- get: function () { return chunkOM6FJ76H_cjs.contractHandlers; }
34
+ get: function () { return chunkE6OOJEHL_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-BwdGzNSn.cjs';
2
- import '../../index-DdKxfC29.cjs';
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-BjiVGtp8.cjs';
2
+ import '../../index-DRwe0UDN.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-CaL8EN4Q.cjs';
7
+ import '../../delegate-f4_t864Z.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-D-xqVzf8.js';
2
- import '../../index-DdKxfC29.js';
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-BJDz15ms.js';
2
+ import '../../index-DRwe0UDN.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-Jd4zs88Q.js';
7
+ import '../../delegate-xrSBNybC.js';
@@ -1,4 +1,4 @@
1
- export { ArkadeContractHandler, BoardingContractHandler, DefaultContractHandler, DelegateContractHandler, VHTLCContractHandler, VHTLCV2ContractHandler, contractHandlers } from '../../chunk-LWRMSC4M.js';
2
- import '../../chunk-HKG26NUT.js';
1
+ export { ArkadeContractHandler, BoardingContractHandler, DefaultContractHandler, DelegateContractHandler, VHTLCContractHandler, VHTLCV2ContractHandler, contractHandlers } from '../../chunk-6CUP6ZIF.js';
2
+ import '../../chunk-AG4TFD6F.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-DdKxfC29.cjs';
2
+ import { x as RelativeTimelock, V as VtxoScript, y as TapLeafScript } from './index-DRwe0UDN.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-DdKxfC29.js';
2
+ import { x as RelativeTimelock, V as VtxoScript, y as TapLeafScript } from './index-DRwe0UDN.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-DdKxfC29.js';
2
- import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-Jd4zs88Q.js';
1
+ import { bK as ContractHandler, x as RelativeTimelock, bW as Discoverable, V as VtxoScript, y as TapLeafScript, dR as TapscriptDeriving } from './index-DRwe0UDN.js';
2
+ import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-xrSBNybC.js';
3
3
  import { Bytes } from '@scure/btc-signer/utils.js';
4
4
 
5
5
  /**
@@ -340,7 +340,7 @@ declare const VHTLCV2ContractHandler: ContractHandler<VHTLCV2ContractParams, VHT
340
340
 
341
341
  /**
342
342
  * Typed parameters for boarding contracts: the `default` shape, with `csvTimelock` carrying the
343
- * server's boarding-exit delay (`ArkadeInfo.boardingExitDelay`) instead of the unilateral-exit
343
+ * operator's boarding-exit delay (`OperatorInfo.boardingExitDelay`) instead of the unilateral-exit
344
344
  * delay.
345
345
  */
346
346
  type BoardingContractParams = DefaultContractParams;
@@ -352,7 +352,7 @@ type BoardingContractParams = DefaultContractParams;
352
352
  * {@link Discoverable.discoverAt} probes the **on-chain** UTXO set at the P2TR address, not the
353
353
  * Ark indexer, and no-ops when `deps.boardingTimelock` / `deps.onchainNetwork` are absent.
354
354
  *
355
- * Default/boarding collision: a script owns exactly one repository row. A sound server keeps
355
+ * Default/boarding collision: a script owns exactly one repository row. The operator should keep
356
356
  * boardingExitDelay > unilateralExitDelay (equal delays expose it to a double-spend); if they
357
357
  * coincide the two scripts are byte-identical. Discovery still emits `type: "boarding"` and the
358
358
  * row is resolved first-wins in {@link ContractManager.upsertContract}; the scan probes boarding
@@ -642,4 +642,4 @@ declare function deserializeArkadeContractParams(params: Record<string, string>)
642
642
  */
643
643
  declare const ArkadeContractHandler: ContractHandler<ArkadeContractParams, ArkadeProgramScript> & TapscriptDeriving<ArkadeProgramScript>;
644
644
 
645
- export { type ArkadeParamValue as A, BoardingContractHandler as B, type CompiledProgramFunction as C, DefaultContractHandler as D, VHTLCV2ContractHandler as E, type VHTLCV2ContractParams as F, contractHandlers as G, type InputDef as I, type Program as P, SUPPORTED_PROGRAM_VERSION as S, type TapscriptSegment as T, UnsupportedProgramVersionError as U, VHTLC as V, type WitnessRef as W, ArkadeProgramScript as a, type ProgramKeys as b, type ArkadeArgValue as c, type ArkadeFunction as d, type ArkadeValueType as e, type ArkadeArgType as f, type ArkadeContractParams as g, type ArkadeSegment as h, type AsmToken as i, type InputRef as j, type SignerRef as k, type TweakedSigner as l, deserializeArkadeContractParams as m, stringifyArtifact as n, ArkadeContractHandler as o, parseArtifact as p, type BoardingContractParams as q, resolveAsm as r, serializeArkadeContractParams as s, type DefaultContractParams as t, DelegateContractHandler as u, validateProgram as v, witnessRefToBytes as w, type DelegateContractParams as x, VHTLCContractHandler as y, type VHTLCContractParams as z };
645
+ export { type ArkadeArgValue as A, BoardingContractHandler as B, type CompiledProgramFunction as C, DefaultContractHandler as D, VHTLCV2ContractHandler as E, type VHTLCV2ContractParams as F, contractHandlers as G, type InputDef as I, type Program as P, SUPPORTED_PROGRAM_VERSION as S, type TapscriptSegment as T, UnsupportedProgramVersionError as U, VHTLC as V, type WitnessRef as W, ArkadeProgramScript as a, type ProgramKeys as b, type ArkadeParamValue as c, type ArkadeFunction as d, type ArkadeValueType as e, type ArkadeArgType as f, type ArkadeContractParams as g, type ArkadeSegment as h, type AsmToken as i, type InputRef as j, type SignerRef as k, type TweakedSigner as l, deserializeArkadeContractParams as m, stringifyArtifact as n, ArkadeContractHandler as o, parseArtifact as p, type BoardingContractParams as q, resolveAsm as r, serializeArkadeContractParams as s, type DefaultContractParams as t, DelegateContractHandler as u, validateProgram as v, witnessRefToBytes as w, type DelegateContractParams as x, VHTLCContractHandler as y, type VHTLCContractParams as z };
@@ -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-DdKxfC29.cjs';
2
- import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-CaL8EN4Q.cjs';
1
+ import { bK as ContractHandler, x as RelativeTimelock, bW as Discoverable, V as VtxoScript, y as TapLeafScript, dR as TapscriptDeriving } from './index-DRwe0UDN.cjs';
2
+ import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-f4_t864Z.cjs';
3
3
  import { Bytes } from '@scure/btc-signer/utils.js';
4
4
 
5
5
  /**
@@ -340,7 +340,7 @@ declare const VHTLCV2ContractHandler: ContractHandler<VHTLCV2ContractParams, VHT
340
340
 
341
341
  /**
342
342
  * Typed parameters for boarding contracts: the `default` shape, with `csvTimelock` carrying the
343
- * server's boarding-exit delay (`ArkadeInfo.boardingExitDelay`) instead of the unilateral-exit
343
+ * operator's boarding-exit delay (`OperatorInfo.boardingExitDelay`) instead of the unilateral-exit
344
344
  * delay.
345
345
  */
346
346
  type BoardingContractParams = DefaultContractParams;
@@ -352,7 +352,7 @@ type BoardingContractParams = DefaultContractParams;
352
352
  * {@link Discoverable.discoverAt} probes the **on-chain** UTXO set at the P2TR address, not the
353
353
  * Ark indexer, and no-ops when `deps.boardingTimelock` / `deps.onchainNetwork` are absent.
354
354
  *
355
- * Default/boarding collision: a script owns exactly one repository row. A sound server keeps
355
+ * Default/boarding collision: a script owns exactly one repository row. The operator should keep
356
356
  * boardingExitDelay > unilateralExitDelay (equal delays expose it to a double-spend); if they
357
357
  * coincide the two scripts are byte-identical. Discovery still emits `type: "boarding"` and the
358
358
  * row is resolved first-wins in {@link ContractManager.upsertContract}; the scan probes boarding
@@ -642,4 +642,4 @@ declare function deserializeArkadeContractParams(params: Record<string, string>)
642
642
  */
643
643
  declare const ArkadeContractHandler: ContractHandler<ArkadeContractParams, ArkadeProgramScript> & TapscriptDeriving<ArkadeProgramScript>;
644
644
 
645
- export { type ArkadeParamValue as A, BoardingContractHandler as B, type CompiledProgramFunction as C, DefaultContractHandler as D, VHTLCV2ContractHandler as E, type VHTLCV2ContractParams as F, contractHandlers as G, type InputDef as I, type Program as P, SUPPORTED_PROGRAM_VERSION as S, type TapscriptSegment as T, UnsupportedProgramVersionError as U, VHTLC as V, type WitnessRef as W, ArkadeProgramScript as a, type ProgramKeys as b, type ArkadeArgValue as c, type ArkadeFunction as d, type ArkadeValueType as e, type ArkadeArgType as f, type ArkadeContractParams as g, type ArkadeSegment as h, type AsmToken as i, type InputRef as j, type SignerRef as k, type TweakedSigner as l, deserializeArkadeContractParams as m, stringifyArtifact as n, ArkadeContractHandler as o, parseArtifact as p, type BoardingContractParams as q, resolveAsm as r, serializeArkadeContractParams as s, type DefaultContractParams as t, DelegateContractHandler as u, validateProgram as v, witnessRefToBytes as w, type DelegateContractParams as x, VHTLCContractHandler as y, type VHTLCContractParams as z };
645
+ export { type ArkadeArgValue as A, BoardingContractHandler as B, type CompiledProgramFunction as C, DefaultContractHandler as D, VHTLCV2ContractHandler as E, type VHTLCV2ContractParams as F, contractHandlers as G, type InputDef as I, type Program as P, SUPPORTED_PROGRAM_VERSION as S, type TapscriptSegment as T, UnsupportedProgramVersionError as U, VHTLC as V, type WitnessRef as W, ArkadeProgramScript as a, type ProgramKeys as b, type ArkadeParamValue as c, type ArkadeFunction as d, type ArkadeValueType as e, type ArkadeArgType as f, type ArkadeContractParams as g, type ArkadeSegment as h, type AsmToken as i, type InputRef as j, type SignerRef as k, type TweakedSigner as l, deserializeArkadeContractParams as m, stringifyArtifact as n, ArkadeContractHandler as o, parseArtifact as p, type BoardingContractParams as q, resolveAsm as r, serializeArkadeContractParams as s, type DefaultContractParams as t, DelegateContractHandler as u, validateProgram as v, witnessRefToBytes as w, type DelegateContractParams as x, VHTLCContractHandler as y, type VHTLCContractParams as z };