@xyo-network/chain-orchestration 1.17.1 → 1.17.3

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 (170) hide show
  1. package/dist/neutral/ChainInitializableParams.d.ts +11 -0
  2. package/dist/neutral/ChainInitializableParams.d.ts.map +1 -0
  3. package/dist/neutral/actor/Actor.d.ts.map +1 -1
  4. package/dist/neutral/actor/BalanceActor.d.ts +14 -0
  5. package/dist/neutral/actor/BalanceActor.d.ts.map +1 -0
  6. package/dist/neutral/actor/ValidatorActor.d.ts +23 -0
  7. package/dist/neutral/actor/ValidatorActor.d.ts.map +1 -0
  8. package/dist/neutral/actor/index.d.ts +2 -0
  9. package/dist/neutral/actor/index.d.ts.map +1 -1
  10. package/dist/neutral/archivists/ChainFinalized/archivist.d.ts +4 -0
  11. package/dist/neutral/archivists/ChainFinalized/archivist.d.ts.map +1 -0
  12. package/dist/neutral/archivists/ChainFinalized/index.d.ts +2 -0
  13. package/dist/neutral/archivists/ChainFinalized/index.d.ts.map +1 -0
  14. package/dist/neutral/archivists/ChainFinalized/local.d.ts +7 -0
  15. package/dist/neutral/archivists/ChainFinalized/local.d.ts.map +1 -0
  16. package/dist/neutral/archivists/PendingBlocks/archivist.d.ts +4 -0
  17. package/dist/neutral/archivists/PendingBlocks/archivist.d.ts.map +1 -0
  18. package/dist/neutral/archivists/PendingBlocks/index.d.ts +2 -0
  19. package/dist/neutral/archivists/PendingBlocks/index.d.ts.map +1 -0
  20. package/dist/neutral/archivists/PendingBlocks/local.d.ts +7 -0
  21. package/dist/neutral/archivists/PendingBlocks/local.d.ts.map +1 -0
  22. package/dist/neutral/archivists/PendingTransactions/archivist.d.ts +4 -0
  23. package/dist/neutral/archivists/PendingTransactions/archivist.d.ts.map +1 -0
  24. package/dist/neutral/archivists/PendingTransactions/index.d.ts +2 -0
  25. package/dist/neutral/archivists/PendingTransactions/index.d.ts.map +1 -0
  26. package/dist/neutral/archivists/PendingTransactions/local.d.ts +7 -0
  27. package/dist/neutral/archivists/PendingTransactions/local.d.ts.map +1 -0
  28. package/dist/neutral/archivists/RejectedTransactions/archivist.d.ts +4 -0
  29. package/dist/neutral/archivists/RejectedTransactions/archivist.d.ts.map +1 -0
  30. package/dist/neutral/archivists/RejectedTransactions/index.d.ts +2 -0
  31. package/dist/neutral/archivists/RejectedTransactions/index.d.ts.map +1 -0
  32. package/dist/neutral/archivists/RejectedTransactions/local.d.ts +4 -0
  33. package/dist/neutral/archivists/RejectedTransactions/local.d.ts.map +1 -0
  34. package/dist/neutral/archivists/StakeIntentState/archivist.d.ts +5 -0
  35. package/dist/neutral/archivists/StakeIntentState/archivist.d.ts.map +1 -0
  36. package/dist/neutral/archivists/StakeIntentState/index.d.ts +2 -0
  37. package/dist/neutral/archivists/StakeIntentState/index.d.ts.map +1 -0
  38. package/dist/neutral/archivists/StakeIntentState/local.d.ts +7 -0
  39. package/dist/neutral/archivists/StakeIntentState/local.d.ts.map +1 -0
  40. package/dist/neutral/archivists/index.d.ts +6 -0
  41. package/dist/neutral/archivists/index.d.ts.map +1 -0
  42. package/dist/neutral/archivists/lib/index.d.ts +2 -0
  43. package/dist/neutral/archivists/lib/index.d.ts.map +1 -0
  44. package/dist/neutral/archivists/lib/localPersistentArchivist.d.ts +21 -0
  45. package/dist/neutral/archivists/lib/localPersistentArchivist.d.ts.map +1 -0
  46. package/dist/neutral/buildTelemetryConfig.d.ts +13 -0
  47. package/dist/neutral/buildTelemetryConfig.d.ts.map +1 -0
  48. package/dist/neutral/health/index.d.ts +2 -0
  49. package/dist/neutral/health/index.d.ts.map +1 -0
  50. package/dist/neutral/health/initHealthEndpoints.d.ts +11 -0
  51. package/dist/neutral/health/initHealthEndpoints.d.ts.map +1 -0
  52. package/dist/neutral/host/implementation/DefaultHost.d.ts +12 -0
  53. package/dist/neutral/host/implementation/DefaultHost.d.ts.map +1 -0
  54. package/dist/neutral/host/implementation/DefaultServiceCollection.d.ts +24 -0
  55. package/dist/neutral/host/implementation/DefaultServiceCollection.d.ts.map +1 -0
  56. package/dist/neutral/host/implementation/DefaultServiceProvider.d.ts +7 -0
  57. package/dist/neutral/host/implementation/DefaultServiceProvider.d.ts.map +1 -0
  58. package/dist/neutral/host/implementation/index.d.ts +3 -0
  59. package/dist/neutral/host/implementation/index.d.ts.map +1 -0
  60. package/dist/neutral/host/index.d.ts +3 -0
  61. package/dist/neutral/host/index.d.ts.map +1 -0
  62. package/dist/neutral/host/model/Host.d.ts +19 -0
  63. package/dist/neutral/host/model/Host.d.ts.map +1 -0
  64. package/dist/neutral/host/model/ServiceCollection.d.ts +20 -0
  65. package/dist/neutral/host/model/ServiceCollection.d.ts.map +1 -0
  66. package/dist/neutral/host/model/ServiceProvider.d.ts +4 -0
  67. package/dist/neutral/host/model/ServiceProvider.d.ts.map +1 -0
  68. package/dist/neutral/host/model/index.d.ts +4 -0
  69. package/dist/neutral/host/model/index.d.ts.map +1 -0
  70. package/dist/neutral/index.d.ts +7 -2
  71. package/dist/neutral/index.d.ts.map +1 -1
  72. package/dist/neutral/index.mjs +701 -626
  73. package/dist/neutral/index.mjs.map +1 -1
  74. package/dist/neutral/init/index.d.ts +1 -2
  75. package/dist/neutral/init/index.d.ts.map +1 -1
  76. package/dist/neutral/init/initChainStakeViewer.d.ts +4 -1
  77. package/dist/neutral/init/initChainStakeViewer.d.ts.map +1 -1
  78. package/dist/neutral/init/initServerNode.d.ts +4 -2
  79. package/dist/neutral/init/initServerNode.d.ts.map +1 -1
  80. package/dist/neutral/init/initStatusReporter.d.ts +6 -0
  81. package/dist/neutral/init/initStatusReporter.d.ts.map +1 -0
  82. package/dist/neutral/manifest/getLocator.d.ts +1 -1
  83. package/dist/neutral/manifest/getLocator.d.ts.map +1 -1
  84. package/dist/neutral/manifest/loadNode.d.ts.map +1 -1
  85. package/dist/neutral/manifest/public/index.d.ts +5 -2
  86. package/dist/neutral/manifest/public/index.d.ts.map +1 -1
  87. package/dist/neutral/orchestrator/Orchestrator.d.ts +0 -2
  88. package/dist/neutral/orchestrator/Orchestrator.d.ts.map +1 -1
  89. package/dist/neutral/status/RuntimeStatusMonitor.d.ts +31 -0
  90. package/dist/neutral/status/RuntimeStatusMonitor.d.ts.map +1 -0
  91. package/dist/neutral/status/ServiceStatus.d.ts +8 -0
  92. package/dist/neutral/status/ServiceStatus.d.ts.map +1 -0
  93. package/dist/neutral/status/index.d.ts +3 -0
  94. package/dist/neutral/status/index.d.ts.map +1 -0
  95. package/package.json +34 -36
  96. package/src/ChainInitializableParams.ts +12 -0
  97. package/src/actor/Actor.ts +0 -1
  98. package/src/actor/BalanceActor.ts +36 -0
  99. package/src/actor/ValidatorActor.ts +126 -0
  100. package/src/actor/index.ts +2 -0
  101. package/src/archivists/ChainFinalized/archivist.ts +21 -0
  102. package/src/archivists/ChainFinalized/index.ts +1 -0
  103. package/src/archivists/ChainFinalized/local.ts +18 -0
  104. package/src/archivists/PendingBlocks/archivist.ts +21 -0
  105. package/src/archivists/PendingBlocks/index.ts +1 -0
  106. package/src/archivists/PendingBlocks/local.ts +18 -0
  107. package/src/archivists/PendingTransactions/archivist.ts +21 -0
  108. package/src/archivists/PendingTransactions/index.ts +1 -0
  109. package/src/archivists/PendingTransactions/local.ts +18 -0
  110. package/src/archivists/RejectedTransactions/archivist.ts +21 -0
  111. package/src/archivists/RejectedTransactions/index.ts +1 -0
  112. package/src/archivists/RejectedTransactions/local.ts +20 -0
  113. package/src/archivists/StakeIntentState/archivist.ts +24 -0
  114. package/src/archivists/StakeIntentState/index.ts +1 -0
  115. package/src/archivists/StakeIntentState/local.ts +19 -0
  116. package/src/archivists/index.ts +5 -0
  117. package/src/archivists/lib/index.ts +1 -0
  118. package/src/archivists/lib/localPersistentArchivist.ts +63 -0
  119. package/src/buildTelemetryConfig.ts +15 -0
  120. package/src/health/index.ts +1 -0
  121. package/src/health/initHealthEndpoints.ts +71 -0
  122. package/src/host/implementation/DefaultHost.ts +25 -0
  123. package/src/host/implementation/DefaultServiceCollection.ts +60 -0
  124. package/src/host/implementation/DefaultServiceProvider.ts +12 -0
  125. package/src/host/implementation/index.ts +2 -0
  126. package/src/host/index.ts +2 -0
  127. package/src/host/model/Host.ts +21 -0
  128. package/src/host/model/ServiceCollection.ts +22 -0
  129. package/src/host/model/ServiceProvider.ts +3 -0
  130. package/src/host/model/index.ts +3 -0
  131. package/src/index.ts +7 -2
  132. package/src/init/index.ts +1 -2
  133. package/src/init/initChainStakeViewer.ts +1 -1
  134. package/src/init/initServerNode.ts +26 -12
  135. package/src/init/initStatusReporter.ts +16 -0
  136. package/src/manifest/getLocator.ts +2 -33
  137. package/src/manifest/loadNode.ts +1 -3
  138. package/src/manifest/public/{WithoutMempool/Pending.json → Chain.json} +18 -18
  139. package/src/manifest/public/{WithMempool/Pending.json → Pending.json} +2 -2
  140. package/src/manifest/public/index.ts +20 -2
  141. package/src/orchestrator/Orchestrator.ts +0 -2
  142. package/src/status/RuntimeStatusMonitor.ts +117 -0
  143. package/src/status/ServiceStatus.ts +20 -0
  144. package/src/status/index.ts +2 -0
  145. package/dist/neutral/archivist/index.d.ts +0 -3
  146. package/dist/neutral/archivist/index.d.ts.map +0 -1
  147. package/dist/neutral/archivist/initArchivistSync.d.ts +0 -6
  148. package/dist/neutral/archivist/initArchivistSync.d.ts.map +0 -1
  149. package/dist/neutral/archivist/wrapWithReadCachingArchivist.d.ts +0 -5
  150. package/dist/neutral/archivist/wrapWithReadCachingArchivist.d.ts.map +0 -1
  151. package/dist/neutral/bridge.d.ts +0 -3
  152. package/dist/neutral/bridge.d.ts.map +0 -1
  153. package/dist/neutral/init/initPendingBlockArchivist.d.ts +0 -4
  154. package/dist/neutral/init/initPendingBlockArchivist.d.ts.map +0 -1
  155. package/dist/neutral/init/initPendingTransactionArchivist.d.ts +0 -4
  156. package/dist/neutral/init/initPendingTransactionArchivist.d.ts.map +0 -1
  157. package/dist/neutral/manifest/public/WithMempool/index.d.ts +0 -6
  158. package/dist/neutral/manifest/public/WithMempool/index.d.ts.map +0 -1
  159. package/dist/neutral/manifest/public/WithoutMempool/index.d.ts +0 -6
  160. package/dist/neutral/manifest/public/WithoutMempool/index.d.ts.map +0 -1
  161. package/src/archivist/index.ts +0 -2
  162. package/src/archivist/initArchivistSync.ts +0 -61
  163. package/src/archivist/wrapWithReadCachingArchivist.ts +0 -56
  164. package/src/bridge.ts +0 -25
  165. package/src/init/initPendingBlockArchivist.ts +0 -31
  166. package/src/init/initPendingTransactionArchivist.ts +0 -31
  167. package/src/manifest/public/WithMempool/Chain.json +0 -175
  168. package/src/manifest/public/WithMempool/index.ts +0 -20
  169. package/src/manifest/public/WithoutMempool/Chain.json +0 -97
  170. package/src/manifest/public/WithoutMempool/index.ts +0 -20
@@ -0,0 +1,11 @@
1
+ import type { MeterProvider, TracerProvider } from '@opentelemetry/api';
2
+ import type { InitializableParams } from '@xyo-network/xl1-protocol';
3
+ import type { Config } from '@xyo-network/xl1-protocol-sdk';
4
+ import type { RuntimeStatusMonitor } from './status/index.ts';
5
+ export type ChainInitializableParams = InitializableParams<{
6
+ config: Config;
7
+ meterProvider: MeterProvider;
8
+ statusReporter: RuntimeStatusMonitor;
9
+ traceProvider: TracerProvider;
10
+ }>;
11
+ //# sourceMappingURL=ChainInitializableParams.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChainInitializableParams.d.ts","sourceRoot":"","sources":["../../src/ChainInitializableParams.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AACpE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAE3D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAE7D,MAAM,MAAM,wBAAwB,GAAG,mBAAmB,CAAC;IACzD,MAAM,EAAE,MAAM,CAAA;IACd,aAAa,EAAE,aAAa,CAAA;IAC5B,cAAc,EAAE,oBAAoB,CAAA;IACpC,aAAa,EAAE,cAAc,CAAA;CAC9B,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Actor.d.ts","sourceRoot":"","sources":["../../../src/actor/Actor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EAAE,eAAe,EAAE,WAAW,EAChD,MAAM,gBAAgB,CAAA;AACvB,OAAO,EACL,iBAAiB,EAElB,MAAM,gBAAgB,CAAA;AAEvB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,WAAW,GAAG,IAAI,GAAG,IAAI,IAAI,eAAe,GAAG;IAC/E,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,EAAE,EAAE,MAAM,CAAA;CACX,GAAG,CAAC,CAAC,SAAS,IAAI,GAAG,WAAW,GAAG,CAAC,CAAC,CAAA;AAEtC,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,IAAI,iBAAiB,CAAC,CAAC,CAAC,GAAG;IACtF,KAAK,IAAI,OAAO,CAAC,OAAO,CAAC,CAAA;IACzB,IAAI,IAAI,OAAO,CAAC,OAAO,CAAC,CAAA;CACzB,CAAA;AAED,qBACa,KAAK,CAAC,OAAO,SAAS,WAAW,GAAG,WAAW,CAAE,SAAQ,iBAAiB,CAAC,OAAO,CAAC;IAC9F,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC,CAAY;IACtF,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAAY;IAClE,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC,CAAY;IACpF,OAAO,CAAC,OAAO,CAAQ;IAEvB,IAAI,WAAW,WAEd;IAED,IAAI,EAAE,WAEL;IAED,SAAS,KAAK,SAAS,WAEtB;WAEqB,aAAa,CAAC,CAAC,SAAS,WAAW,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;IAY9E;;OAEG;IACH,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IA8DnG;;OAEG;IACY,YAAY;IAM3B;;;OAGG;IACY,WAAW;CA+B3B"}
1
+ {"version":3,"file":"Actor.d.ts","sourceRoot":"","sources":["../../../src/actor/Actor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EAAE,eAAe,EAAE,WAAW,EAChD,MAAM,gBAAgB,CAAA;AACvB,OAAO,EACL,iBAAiB,EAElB,MAAM,gBAAgB,CAAA;AACvB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,WAAW,GAAG,IAAI,GAAG,IAAI,IAAI,eAAe,GAAG;IAC/E,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,EAAE,EAAE,MAAM,CAAA;CACX,GAAG,CAAC,CAAC,SAAS,IAAI,GAAG,WAAW,GAAG,CAAC,CAAC,CAAA;AAEtC,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,IAAI,iBAAiB,CAAC,CAAC,CAAC,GAAG;IACtF,KAAK,IAAI,OAAO,CAAC,OAAO,CAAC,CAAA;IACzB,IAAI,IAAI,OAAO,CAAC,OAAO,CAAC,CAAA;CACzB,CAAA;AAED,qBACa,KAAK,CAAC,OAAO,SAAS,WAAW,GAAG,WAAW,CAAE,SAAQ,iBAAiB,CAAC,OAAO,CAAC;IAC9F,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC,CAAY;IACtF,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAAY;IAClE,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC,CAAY;IACpF,OAAO,CAAC,OAAO,CAAQ;IAEvB,IAAI,WAAW,WAEd;IAED,IAAI,EAAE,WAEL;IAED,SAAS,KAAK,SAAS,WAEtB;WAEqB,aAAa,CAAC,CAAC,SAAS,WAAW,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;IAY9E;;OAEG;IACH,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IA8DnG;;OAEG;IACY,YAAY;IAM3B;;;OAGG;IACY,WAAW;CA+B3B"}
@@ -0,0 +1,14 @@
1
+ import type { ChainServiceCollectionV2, Config } from '@xyo-network/xl1-protocol-sdk';
2
+ import { Mutex } from 'async-mutex';
3
+ import { Actor, type ActorParams } from './Actor.ts';
4
+ export type BalanceActorParams = ActorParams<Pick<ChainServiceCollectionV2, 'balance' | 'blockViewer'> & {
5
+ config: Config;
6
+ }>;
7
+ export declare class BalanceActor extends Actor<BalanceActorParams> {
8
+ protected _updateMutex: Mutex;
9
+ protected get balanceService(): import("@xyo-network/xl1-protocol-sdk").AccountBalanceViewer;
10
+ protected get blockViewer(): import("@xyo-network/xl1-protocol-sdk").BlockViewer;
11
+ startHandler(): Promise<void>;
12
+ protected updateBalance(): Promise<void>;
13
+ }
14
+ //# sourceMappingURL=BalanceActor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BalanceActor.d.ts","sourceRoot":"","sources":["../../../src/actor/BalanceActor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AACrF,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAEnC,OAAO,EAAE,KAAK,EAAE,KAAK,WAAW,EAAE,MAAM,YAAY,CAAA;AAEpD,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAC1C,IAAI,CAAC,wBAAwB,EAAE,SAAS,GAAG,aAAa,CAAC,GACvD;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAAA;AAEvB,qBAAa,YAAa,SAAQ,KAAK,CAAC,kBAAkB,CAAC;IACzD,SAAS,CAAC,YAAY,QAAc;IAEpC,SAAS,KAAK,cAAc,iEAE3B;IAED,SAAS,KAAK,WAAW,wDAExB;IAEc,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;cAO5B,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;CAO/C"}
@@ -0,0 +1,23 @@
1
+ import type { Hash } from '@xylabs/sdk-js';
2
+ import { ArchivistInstance } from '@xyo-network/archivist-model';
3
+ import type { BlockBoundWitness } from '@xyo-network/xl1-protocol';
4
+ import type { ChainServiceCollectionV2, Config } from '@xyo-network/xl1-protocol-sdk';
5
+ import { Actor, ActorParams } from './Actor.ts';
6
+ export type ValidatorActorParams = ActorParams<Pick<ChainServiceCollectionV2, 'account' | 'balance' | 'blockViewer' | 'chainStakeViewer' | 'mempoolViewer'> & {
7
+ config: Config;
8
+ pendingBlocksArchivist: ArchivistInstance;
9
+ }>;
10
+ export declare class ValidatorActor extends Actor<ValidatorActorParams> {
11
+ protected _lastValidatedBlock: BlockBoundWitness | undefined;
12
+ protected _lastValidatedBlockHash: Hash | undefined;
13
+ protected get account(): import("@xyo-network/wallet-model").WalletInstance;
14
+ protected get balanceService(): import("@xyo-network/xl1-protocol-sdk").AccountBalanceViewer;
15
+ protected get blockViewer(): import("@xyo-network/xl1-protocol-sdk").BlockViewer;
16
+ protected get chainStakeViewer(): import("@xyo-network/xl1-protocol-sdk").ChainStakeViewer;
17
+ protected get mempoolViewer(): import("@xyo-network/xl1-protocol-sdk").MempoolViewer;
18
+ protected get pendingBlocksArchivist(): ArchivistInstance<import("@xyo-network/archivist-model").ArchivistParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/archivist-model").ArchivistConfig>>, import("@xyo-network/archivist-model").ArchivistModuleEventData, import("@xyo-network/payload-model").Payload>;
19
+ startHandler(): Promise<void>;
20
+ protected slashInvalidBlock(_block: BlockBoundWitness): Promise<boolean>;
21
+ protected validateBlock(block: BlockBoundWitness): Promise<boolean>;
22
+ }
23
+ //# sourceMappingURL=ValidatorActor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ValidatorActor.d.ts","sourceRoot":"","sources":["../../../src/actor/ValidatorActor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAE1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAGhE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAErF,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE/C,MAAM,MAAM,oBAAoB,GAAG,WAAW,CAC5C,IAAI,CAAC,wBAAwB,EAC7B,SAAS,GACP,SAAS,GACT,aAAa,GACb,kBAAkB,GAClB,eAAe,CAIhB,GAAG;IACF,MAAM,EAAE,MAAM,CAAA;IACd,sBAAsB,EAAE,iBAAiB,CAAA;CAC1C,CAAC,CAAA;AAEJ,qBACa,cAAe,SAAQ,KAAK,CAAC,oBAAoB,CAAC;IAC7D,SAAS,CAAC,mBAAmB,EAAE,iBAAiB,GAAG,SAAS,CAAA;IAC5D,SAAS,CAAC,uBAAuB,EAAE,IAAI,GAAG,SAAS,CAAA;IAEnD,SAAS,KAAK,OAAO,uDAEpB;IAED,SAAS,KAAK,cAAc,iEAE3B;IAED,SAAS,KAAK,WAAW,wDAExB;IAED,SAAS,KAAK,gBAAgB,6DAE7B;IAED,SAAS,KAAK,aAAa,0DAE1B;IAED,SAAS,KAAK,sBAAsB,0SAEnC;IAkBc,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;cAuC5B,iBAAiB,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,OAAO,CAAC;cAM9D,aAAa,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC,OAAO,CAAC;CAU1E"}
@@ -1,2 +1,4 @@
1
1
  export * from './Actor.ts';
2
+ export * from './BalanceActor.ts';
3
+ export * from './ValidatorActor.ts';
2
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/actor/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/actor/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { ArchivistInstance } from '@xyo-network/archivist-model';
2
+ import type { ChainInitializableParams } from '../../ChainInitializableParams.ts';
3
+ export declare function initChainFinalizedArchivist({ config, logger }: ChainInitializableParams): Promise<ArchivistInstance<import("@xyo-network/archivist-model").ArchivistParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/archivist-model").ArchivistConfig>>, import("@xyo-network/archivist-model").ArchivistModuleEventData, import("@xyo-network/payload-model").Payload>>;
4
+ //# sourceMappingURL=archivist.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"archivist.d.ts","sourceRoot":"","sources":["../../../../src/archivists/ChainFinalized/archivist.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAKrE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAA;AAMjF,wBAAsB,2BAA2B,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,wBAAwB,kTAS7F"}
@@ -0,0 +1,2 @@
1
+ export * from './archivist.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/archivists/ChainFinalized/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
@@ -0,0 +1,7 @@
1
+ import type { ArchivistInstance } from '@xyo-network/archivist-model';
2
+ import type { Initializable } from '@xyo-network/xl1-protocol';
3
+ import type { Config } from '@xyo-network/xl1-protocol-sdk';
4
+ export declare const initLocalChainFinalizedArchivist: Initializable<{
5
+ config: Config;
6
+ }, ArchivistInstance>;
7
+ //# sourceMappingURL=local.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"local.d.ts","sourceRoot":"","sources":["../../../../src/archivists/ChainFinalized/local.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAQ3D,eAAO,MAAM,gCAAgC,EAAE,aAAa,CAAC;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,EAAE,iBAAiB,CAOjG,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { ArchivistInstance } from '@xyo-network/archivist-model';
2
+ import type { ChainInitializableParams } from '../../ChainInitializableParams.ts';
3
+ export declare function initPendingBlocksArchivist({ config, logger }: ChainInitializableParams): Promise<ArchivistInstance<import("@xyo-network/archivist-model").ArchivistParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/archivist-model").ArchivistConfig>>, import("@xyo-network/archivist-model").ArchivistModuleEventData, import("@xyo-network/payload-model").Payload>>;
4
+ //# sourceMappingURL=archivist.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"archivist.d.ts","sourceRoot":"","sources":["../../../../src/archivists/PendingBlocks/archivist.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAKrE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAA;AAMjF,wBAAsB,0BAA0B,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,wBAAwB,kTAS5F"}
@@ -0,0 +1,2 @@
1
+ export * from './archivist.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/archivists/PendingBlocks/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
@@ -0,0 +1,7 @@
1
+ import type { ArchivistInstance } from '@xyo-network/archivist-model';
2
+ import type { Initializable } from '@xyo-network/xl1-protocol';
3
+ import type { Config } from '@xyo-network/xl1-protocol-sdk';
4
+ export declare const initLocalPendingBlocksArchivist: Initializable<{
5
+ config: Config;
6
+ }, ArchivistInstance>;
7
+ //# sourceMappingURL=local.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"local.d.ts","sourceRoot":"","sources":["../../../../src/archivists/PendingBlocks/local.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAQ3D,eAAO,MAAM,+BAA+B,EAAE,aAAa,CAAC;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,EAAE,iBAAiB,CAOhG,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { ArchivistInstance } from '@xyo-network/archivist-model';
2
+ import type { ChainInitializableParams } from '../../ChainInitializableParams.ts';
3
+ export declare function initPendingTransactionsArchivist({ config, logger }: ChainInitializableParams): Promise<ArchivistInstance<import("@xyo-network/archivist-model").ArchivistParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/archivist-model").ArchivistConfig>>, import("@xyo-network/archivist-model").ArchivistModuleEventData, import("@xyo-network/payload-model").Payload>>;
4
+ //# sourceMappingURL=archivist.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"archivist.d.ts","sourceRoot":"","sources":["../../../../src/archivists/PendingTransactions/archivist.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAKrE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAA;AAMjF,wBAAsB,gCAAgC,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,wBAAwB,kTASlG"}
@@ -0,0 +1,2 @@
1
+ export * from './archivist.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/archivists/PendingTransactions/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
@@ -0,0 +1,7 @@
1
+ import type { ArchivistInstance } from '@xyo-network/archivist-model';
2
+ import type { Initializable } from '@xyo-network/xl1-protocol';
3
+ import type { Config } from '@xyo-network/xl1-protocol-sdk';
4
+ export declare const initLocalPendingTransactionsArchivist: Initializable<{
5
+ config: Config;
6
+ }, ArchivistInstance>;
7
+ //# sourceMappingURL=local.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"local.d.ts","sourceRoot":"","sources":["../../../../src/archivists/PendingTransactions/local.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAQ3D,eAAO,MAAM,qCAAqC,EAAE,aAAa,CAAC;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,EAAE,iBAAiB,CAOtG,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { ArchivistInstance } from '@xyo-network/archivist-model';
2
+ import type { InitializableParams } from '@xyo-network/xl1-protocol';
3
+ export declare function initRejectedTransactionsArchivist(params: InitializableParams): Promise<ArchivistInstance<import("@xyo-network/archivist-model").ArchivistParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/archivist-model").ArchivistConfig>>, import("@xyo-network/archivist-model").ArchivistModuleEventData, import("@xyo-network/payload-model").Payload>>;
4
+ //# sourceMappingURL=archivist.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"archivist.d.ts","sourceRoot":"","sources":["../../../../src/archivists/RejectedTransactions/archivist.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAErE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AASpE,wBAAsB,iCAAiC,CAAC,MAAM,EAAE,mBAAmB,kTASlF"}
@@ -0,0 +1,2 @@
1
+ export * from './archivist.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/archivists/RejectedTransactions/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { ArchivistInstance } from '@xyo-network/archivist-model';
2
+ import type { Initializable } from '@xyo-network/xl1-protocol';
3
+ export declare const initLocalRejectedTransactionsArchivist: Initializable<{}, ArchivistInstance>;
4
+ //# sourceMappingURL=local.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"local.d.ts","sourceRoot":"","sources":["../../../../src/archivists/RejectedTransactions/local.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAM9D,eAAO,MAAM,sCAAsC,EAAE,aAAa,CAAC,EAAE,EAAE,iBAAiB,CAWvF,CAAA"}
@@ -0,0 +1,5 @@
1
+ import type { ArchivistInstance } from '@xyo-network/archivist-model';
2
+ import type { Initializable } from '@xyo-network/xl1-protocol';
3
+ import type { ChainInitializableParams } from '../../ChainInitializableParams.ts';
4
+ export declare const initStakeIntentStateArchivist: Initializable<ChainInitializableParams, ArchivistInstance>;
5
+ //# sourceMappingURL=archivist.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"archivist.d.ts","sourceRoot":"","sources":["../../../../src/archivists/StakeIntentState/archivist.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAErE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAI9D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAA;AAMjF,eAAO,MAAM,6BAA6B,EAAE,aAAa,CAAC,wBAAwB,EAAE,iBAAiB,CAUlG,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './archivist.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/archivists/StakeIntentState/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
@@ -0,0 +1,7 @@
1
+ import type { ArchivistInstance } from '@xyo-network/archivist-model';
2
+ import type { Initializable } from '@xyo-network/xl1-protocol';
3
+ import type { Config } from '@xyo-network/xl1-protocol-sdk';
4
+ export declare const initLocalStakeIntentStateArchivist: Initializable<{
5
+ config: Config;
6
+ }, ArchivistInstance>;
7
+ //# sourceMappingURL=local.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"local.d.ts","sourceRoot":"","sources":["../../../../src/archivists/StakeIntentState/local.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAQ3D,eAAO,MAAM,kCAAkC,EAAE,aAAa,CAAC;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,EAAE,iBAAiB,CAOnG,CAAA"}
@@ -0,0 +1,6 @@
1
+ export * from './ChainFinalized/index.ts';
2
+ export * from './PendingBlocks/index.ts';
3
+ export * from './PendingTransactions/index.ts';
4
+ export * from './RejectedTransactions/index.ts';
5
+ export * from './StakeIntentState/index.ts';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/archivists/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,0BAA0B,CAAA;AACxC,cAAc,gCAAgC,CAAA;AAC9C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,6BAA6B,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './localPersistentArchivist.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/archivists/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAA"}
@@ -0,0 +1,21 @@
1
+ import type { ArchivistInstance } from '@xyo-network/archivist-model';
2
+ import { type StoreKind } from '@xyo-network/chain-protocol';
3
+ /**
4
+ * Returns a local persistent archivist
5
+ * @param name The name of the archivist
6
+ * @param dbName The name of the database
7
+ * @param storeName The name of the store
8
+ * @param storageRoot The root directory for storage (default is '.store' in the current working directory)
9
+ * @param kind The kind of the archivist
10
+ * @returns an archivist instance
11
+ */
12
+ export declare const getLocalPersistentArchivist: (name: string, dbName: string, storeName: string, storageRoot?: string, kind?: StoreKind) => Promise<ArchivistInstance>;
13
+ /**
14
+ * Deletes a local persistent archivist
15
+ * @param dbName The name of the database
16
+ * @param storageRoot The root directory for storage (default is '.store' in the current working directory)
17
+ * @param kind The kind of the archivist
18
+ * @returns A promise that resolves when the archivist is deleted
19
+ */
20
+ export declare const deleteLocalPersistentArchivist: (dbName: string, storageRoot?: string, kind?: StoreKind) => Promise<void>;
21
+ //# sourceMappingURL=localPersistentArchivist.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"localPersistentArchivist.d.ts","sourceRoot":"","sources":["../../../../src/archivists/lib/localPersistentArchivist.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,EAAqB,KAAK,SAAS,EAAE,MAAM,6BAA6B,CAAA;AAI/E;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B,GACtC,MAAM,MAAM,EACZ,QAAQ,MAAM,EACd,WAAW,MAAM,EACjB,cAAc,MAAM,EACpB,OAAM,SAAkB,KACvB,OAAO,CAAC,iBAAiB,CAiB3B,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B,GAAU,QAAQ,MAAM,EAAE,cAAc,MAAM,EAAE,OAAM,SAAkB,KAAG,OAAO,CAAC,IAAI,CAYjI,CAAA"}
@@ -0,0 +1,13 @@
1
+ import type { Config } from '@xyo-network/xl1-protocol-sdk';
2
+ export declare function buildTelemetryConfig(config: Config, serviceName: string, serviceVersion: string): {
3
+ attributes: {
4
+ serviceName: string;
5
+ serviceVersion: string;
6
+ };
7
+ otlpEndpoint: string | undefined;
8
+ metricsConfig: {
9
+ endpoint: string;
10
+ port: number;
11
+ };
12
+ };
13
+ //# sourceMappingURL=buildTelemetryConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildTelemetryConfig.d.ts","sourceRoot":"","sources":["../../src/buildTelemetryConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAE3D,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM;;;;;;;;;;EAY/F"}
@@ -0,0 +1,2 @@
1
+ export * from './initHealthEndpoints.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/health/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA"}
@@ -0,0 +1,11 @@
1
+ import type { Server } from 'node:http';
2
+ import type { Logger } from '@xylabs/sdk-js';
3
+ import type { Initializable } from '@xyo-network/xl1-protocol';
4
+ import type { Config } from '@xyo-network/xl1-protocol-sdk';
5
+ import type { RuntimeStatusMonitor } from '../status/index.ts';
6
+ export declare const initHealthEndpoints: Initializable<{
7
+ config: Config;
8
+ logger: Logger;
9
+ statusReporter: RuntimeStatusMonitor;
10
+ }, Server | undefined>;
11
+ //# sourceMappingURL=initHealthEndpoints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"initHealthEndpoints.d.ts","sourceRoot":"","sources":["../../../src/health/initHealthEndpoints.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACO,MAAM,EACxB,MAAM,WAAW,CAAA;AAGlB,OAAO,KAAK,EAAmB,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAE7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAE3D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AAsD9D,eAAO,MAAM,mBAAmB,EAAE,aAAa,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,cAAc,EAAE,oBAAoB,CAAA;CAAE,EAAE,MAAM,GAAG,SAAS,CAM3I,CAAA"}
@@ -0,0 +1,12 @@
1
+ import type { Host, ServiceProvider } from '../model/index.ts';
2
+ /**
3
+ * A generic host implementation that can be used as a starting point for
4
+ * more complex host implementations.
5
+ */
6
+ export declare class GenericHost implements Host {
7
+ services: ServiceProvider;
8
+ constructor(services: ServiceProvider);
9
+ start(): Promise<void>;
10
+ stop(): Promise<void>;
11
+ }
12
+ //# sourceMappingURL=DefaultHost.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DefaultHost.d.ts","sourceRoot":"","sources":["../../../../src/host/implementation/DefaultHost.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAE9D;;;GAGG;AACH,qBAAa,WAAY,YAAW,IAAI;IACtC,QAAQ,EAAE,eAAe,CAAA;gBAEb,QAAQ,EAAE,eAAe;IAI/B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAMtB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAK5B"}
@@ -0,0 +1,24 @@
1
+ import type { ServiceCollection, ServiceProvider } from '../model/index.ts';
2
+ /**
3
+ * A collection of service descriptors, allowing adding/removing services before building.
4
+ */
5
+ export declare class DefaultServiceCollection implements ServiceCollection {
6
+ private readonly descriptors;
7
+ /**
8
+ * Register a service as Singleton: a single instance is created and shared.
9
+ */
10
+ addSingleton<T>(identifier: string | symbol, implementationFactory: () => T): void;
11
+ /**
12
+ * Register a service as Transient: a new instance is created on each request.
13
+ */
14
+ addTransient<T>(_identifier: string | symbol, _implementationFactory: () => T): void;
15
+ /**
16
+ * Build a concrete, immutable service provider from the current descriptors.
17
+ */
18
+ build(): ServiceProvider;
19
+ /**
20
+ * Removes all registrations matching the given identifier.
21
+ */
22
+ remove(identifier: string | symbol): void;
23
+ }
24
+ //# sourceMappingURL=DefaultServiceCollection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DefaultServiceCollection.d.ts","sourceRoot":"","sources":["../../../../src/host/implementation/DefaultServiceCollection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EAAqB,eAAe,EACtD,MAAM,mBAAmB,CAAA;AAI1B;;GAEG;AACH,qBAAa,wBAAyB,YAAW,iBAAiB;IAChE,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA0B;IAEtD;;OAEG;IACH,YAAY,CAAC,CAAC,EACZ,UAAU,EAAE,MAAM,GAAG,MAAM,EAC3B,qBAAqB,EAAE,MAAM,CAAC,GAC7B,IAAI;IAQP;;OAEG;IACH,YAAY,CAAC,CAAC,EACZ,WAAW,EAAE,MAAM,GAAG,MAAM,EAC5B,sBAAsB,EAAE,MAAM,CAAC,GAC9B,IAAI;IAIP;;OAEG;IACH,KAAK,IAAI,eAAe;IAUxB;;OAEG;IACH,MAAM,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;CAO1C"}
@@ -0,0 +1,7 @@
1
+ import type { ServiceProvider } from '../model/index.ts';
2
+ export declare class DefaultServiceProvider implements ServiceProvider {
3
+ protected _services: Record<string, unknown>;
4
+ constructor(services: Record<string, unknown>);
5
+ getService<T>(serviceIdentifier: string): T | undefined;
6
+ }
7
+ //# sourceMappingURL=DefaultServiceProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DefaultServiceProvider.d.ts","sourceRoot":"","sources":["../../../../src/host/implementation/DefaultServiceProvider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAExD,qBAAa,sBAAuB,YAAW,eAAe;IAC5D,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;gBAChC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAI7C,UAAU,CAAC,CAAC,EAAE,iBAAiB,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS;CAGxD"}
@@ -0,0 +1,3 @@
1
+ export * from './DefaultHost.ts';
2
+ export * from './DefaultServiceProvider.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/host/implementation/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,6BAA6B,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './implementation/index.ts';
2
+ export * from './model/index.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/host/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,kBAAkB,CAAA"}
@@ -0,0 +1,19 @@
1
+ import type { ServiceProvider } from './ServiceProvider.ts';
2
+ /**
3
+ * Represents the host for an application.
4
+ */
5
+ export interface Host {
6
+ /**
7
+ * Provides access to the application's services (for dependency injection).
8
+ */
9
+ services: ServiceProvider;
10
+ /**
11
+ * Starts the host and any underlying services (e.g., background tasks).
12
+ */
13
+ start(): Promise<void>;
14
+ /**
15
+ * Stops the host and attempts to gracefully shut down services.
16
+ */
17
+ stop(): Promise<void>;
18
+ }
19
+ //# sourceMappingURL=Host.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Host.d.ts","sourceRoot":"","sources":["../../../../src/host/model/Host.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAE3D;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB;;OAEG;IACH,QAAQ,EAAE,eAAe,CAAA;IAEzB;;OAEG;IACH,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;IAEtB;;OAEG;IACH,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;CACtB"}
@@ -0,0 +1,20 @@
1
+ import type { ServiceProvider } from './ServiceProvider.ts';
2
+ export interface ServiceCollection {
3
+ build(): ServiceProvider;
4
+ }
5
+ /**
6
+ * Represents the lifetime of a service
7
+ */
8
+ export declare const ServiceLifetime: {
9
+ readonly Singleton: "Singleton";
10
+ readonly Transient: "Transient";
11
+ };
12
+ /**
13
+ * Describes a single service registration
14
+ */
15
+ export interface ServiceDescriptor<T = unknown> {
16
+ identifier: string | symbol;
17
+ implementationFactory: () => T;
18
+ lifetime: keyof typeof ServiceLifetime;
19
+ }
20
+ //# sourceMappingURL=ServiceCollection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServiceCollection.d.ts","sourceRoot":"","sources":["../../../../src/host/model/ServiceCollection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAE3D,MAAM,WAAW,iBAAiB;IAChC,KAAK,IAAI,eAAe,CAAA;CACzB;AAED;;GAEG;AACH,eAAO,MAAM,eAAe;;;CAGlB,CAAA;AAEV;;GAEG;AACH,MAAM,WAAW,iBAAiB,CAAC,CAAC,GAAG,OAAO;IAC5C,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,qBAAqB,EAAE,MAAM,CAAC,CAAA;IAC9B,QAAQ,EAAE,MAAM,OAAO,eAAe,CAAA;CACvC"}
@@ -0,0 +1,4 @@
1
+ export interface ServiceProvider {
2
+ getService<T = unknown>(serviceIdentifier: string): T | undefined;
3
+ }
4
+ //# sourceMappingURL=ServiceProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServiceProvider.d.ts","sourceRoot":"","sources":["../../../../src/host/model/ServiceProvider.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,UAAU,CAAC,CAAC,GAAG,OAAO,EAAE,iBAAiB,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS,CAAA;CAClE"}
@@ -0,0 +1,4 @@
1
+ export * from './Host.ts';
2
+ export * from './ServiceCollection.ts';
3
+ export * from './ServiceProvider.ts';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/host/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA"}
@@ -1,9 +1,14 @@
1
1
  export * from './actor/index.ts';
2
- export * from './archivist/index.ts';
3
- export * from './bridge.ts';
2
+ export * from './archivists/index.ts';
3
+ export * from './buildTelemetryConfig.ts';
4
+ export * from './ChainInitializableParams.ts';
4
5
  export * from './ConfigContext.ts';
5
6
  export * from './createDeclarationIntentBlock.ts';
7
+ export * from './evm/index.ts';
8
+ export * from './health/index.ts';
9
+ export * from './host/index.ts';
6
10
  export * from './init/index.ts';
7
11
  export * from './manifest/index.ts';
8
12
  export * from './orchestrator/index.ts';
13
+ export * from './status/index.ts';
9
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,sBAAsB,CAAA;AACpC,cAAc,aAAa,CAAA;AAC3B,cAAc,oBAAoB,CAAA;AAClC,cAAc,mCAAmC,CAAA;AACjD,cAAc,iBAAiB,CAAA;AAC/B,cAAc,qBAAqB,CAAA;AACnC,cAAc,yBAAyB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,uBAAuB,CAAA;AACrC,cAAc,2BAA2B,CAAA;AACzC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,oBAAoB,CAAA;AAClC,cAAc,mCAAmC,CAAA;AACjD,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,qBAAqB,CAAA;AACnC,cAAc,yBAAyB,CAAA;AACvC,cAAc,mBAAmB,CAAA"}