@xyo-network/xl1-cli-lib 1.7.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 (296) hide show
  1. package/LICENSE +165 -0
  2. package/README.md +46 -0
  3. package/dist/node/commands/api/index.d.ts +2 -0
  4. package/dist/node/commands/api/index.d.ts.map +1 -0
  5. package/dist/node/commands/api/runApi.d.ts +9 -0
  6. package/dist/node/commands/api/runApi.d.ts.map +1 -0
  7. package/dist/node/commands/index.d.ts +4 -0
  8. package/dist/node/commands/index.d.ts.map +1 -0
  9. package/dist/node/commands/producer/index.d.ts +2 -0
  10. package/dist/node/commands/producer/index.d.ts.map +1 -0
  11. package/dist/node/commands/producer/runProducer.d.ts +11 -0
  12. package/dist/node/commands/producer/runProducer.d.ts.map +1 -0
  13. package/dist/node/commands/validator/index.d.ts +2 -0
  14. package/dist/node/commands/validator/index.d.ts.map +1 -0
  15. package/dist/node/commands/validator/runValidator.d.ts +11 -0
  16. package/dist/node/commands/validator/runValidator.d.ts.map +1 -0
  17. package/dist/node/images.d.ts +2 -0
  18. package/dist/node/images.d.ts.map +1 -0
  19. package/dist/node/index.d.ts +4 -0
  20. package/dist/node/index.d.ts.map +1 -0
  21. package/dist/node/index.mjs +1712 -0
  22. package/dist/node/index.mjs.map +1 -0
  23. package/dist/node/initConfig.d.ts +3 -0
  24. package/dist/node/initConfig.d.ts.map +1 -0
  25. package/dist/node/initLogger.d.ts +4 -0
  26. package/dist/node/initLogger.d.ts.map +1 -0
  27. package/dist/node/optionsFromZodSchema.d.ts +4 -0
  28. package/dist/node/optionsFromZodSchema.d.ts.map +1 -0
  29. package/dist/node/orchestration/ChainInitializableParams.d.ts +11 -0
  30. package/dist/node/orchestration/ChainInitializableParams.d.ts.map +1 -0
  31. package/dist/node/orchestration/actor/implementation/BalanceActor.d.ts +18 -0
  32. package/dist/node/orchestration/actor/implementation/BalanceActor.d.ts.map +1 -0
  33. package/dist/node/orchestration/actor/implementation/ChainHeadUpdateActor.d.ts +19 -0
  34. package/dist/node/orchestration/actor/implementation/ChainHeadUpdateActor.d.ts.map +1 -0
  35. package/dist/node/orchestration/actor/implementation/ProducerActor.d.ts +28 -0
  36. package/dist/node/orchestration/actor/implementation/ProducerActor.d.ts.map +1 -0
  37. package/dist/node/orchestration/actor/implementation/ValidatorActor.d.ts +26 -0
  38. package/dist/node/orchestration/actor/implementation/ValidatorActor.d.ts.map +1 -0
  39. package/dist/node/orchestration/actor/implementation/index.d.ts +5 -0
  40. package/dist/node/orchestration/actor/implementation/index.d.ts.map +1 -0
  41. package/dist/node/orchestration/actor/index.d.ts +3 -0
  42. package/dist/node/orchestration/actor/index.d.ts.map +1 -0
  43. package/dist/node/orchestration/actor/model/Actor.d.ts +39 -0
  44. package/dist/node/orchestration/actor/model/Actor.d.ts.map +1 -0
  45. package/dist/node/orchestration/actor/model/Orchestrator.d.ts +27 -0
  46. package/dist/node/orchestration/actor/model/Orchestrator.d.ts.map +1 -0
  47. package/dist/node/orchestration/actor/model/index.d.ts +3 -0
  48. package/dist/node/orchestration/actor/model/index.d.ts.map +1 -0
  49. package/dist/node/orchestration/archivists/ChainFinalized/archivist.d.ts +4 -0
  50. package/dist/node/orchestration/archivists/ChainFinalized/archivist.d.ts.map +1 -0
  51. package/dist/node/orchestration/archivists/ChainFinalized/index.d.ts +2 -0
  52. package/dist/node/orchestration/archivists/ChainFinalized/index.d.ts.map +1 -0
  53. package/dist/node/orchestration/archivists/ChainFinalized/local.d.ts +7 -0
  54. package/dist/node/orchestration/archivists/ChainFinalized/local.d.ts.map +1 -0
  55. package/dist/node/orchestration/archivists/ChainFinalized/remote.d.ts +7 -0
  56. package/dist/node/orchestration/archivists/ChainFinalized/remote.d.ts.map +1 -0
  57. package/dist/node/orchestration/archivists/ChainSubmissions/archivist.d.ts +7 -0
  58. package/dist/node/orchestration/archivists/ChainSubmissions/archivist.d.ts.map +1 -0
  59. package/dist/node/orchestration/archivists/ChainSubmissions/index.d.ts +2 -0
  60. package/dist/node/orchestration/archivists/ChainSubmissions/index.d.ts.map +1 -0
  61. package/dist/node/orchestration/archivists/ChainSubmissions/remote.d.ts +7 -0
  62. package/dist/node/orchestration/archivists/ChainSubmissions/remote.d.ts.map +1 -0
  63. package/dist/node/orchestration/archivists/PendingTransactions/archivist.d.ts +6 -0
  64. package/dist/node/orchestration/archivists/PendingTransactions/archivist.d.ts.map +1 -0
  65. package/dist/node/orchestration/archivists/PendingTransactions/index.d.ts +2 -0
  66. package/dist/node/orchestration/archivists/PendingTransactions/index.d.ts.map +1 -0
  67. package/dist/node/orchestration/archivists/PendingTransactions/local.d.ts +7 -0
  68. package/dist/node/orchestration/archivists/PendingTransactions/local.d.ts.map +1 -0
  69. package/dist/node/orchestration/archivists/PendingTransactions/remote.d.ts +7 -0
  70. package/dist/node/orchestration/archivists/PendingTransactions/remote.d.ts.map +1 -0
  71. package/dist/node/orchestration/archivists/RejectedTransactions/archivist.d.ts +4 -0
  72. package/dist/node/orchestration/archivists/RejectedTransactions/archivist.d.ts.map +1 -0
  73. package/dist/node/orchestration/archivists/RejectedTransactions/index.d.ts +2 -0
  74. package/dist/node/orchestration/archivists/RejectedTransactions/index.d.ts.map +1 -0
  75. package/dist/node/orchestration/archivists/RejectedTransactions/local.d.ts +4 -0
  76. package/dist/node/orchestration/archivists/RejectedTransactions/local.d.ts.map +1 -0
  77. package/dist/node/orchestration/archivists/StakeIntentState/archivist.d.ts +5 -0
  78. package/dist/node/orchestration/archivists/StakeIntentState/archivist.d.ts.map +1 -0
  79. package/dist/node/orchestration/archivists/StakeIntentState/index.d.ts +2 -0
  80. package/dist/node/orchestration/archivists/StakeIntentState/index.d.ts.map +1 -0
  81. package/dist/node/orchestration/archivists/StakeIntentState/local.d.ts +7 -0
  82. package/dist/node/orchestration/archivists/StakeIntentState/local.d.ts.map +1 -0
  83. package/dist/node/orchestration/archivists/index.d.ts +6 -0
  84. package/dist/node/orchestration/archivists/index.d.ts.map +1 -0
  85. package/dist/node/orchestration/archivists/lib/index.d.ts +2 -0
  86. package/dist/node/orchestration/archivists/lib/index.d.ts.map +1 -0
  87. package/dist/node/orchestration/archivists/lib/localPersistentArchivist.d.ts +20 -0
  88. package/dist/node/orchestration/archivists/lib/localPersistentArchivist.d.ts.map +1 -0
  89. package/dist/node/orchestration/health/index.d.ts +2 -0
  90. package/dist/node/orchestration/health/index.d.ts.map +1 -0
  91. package/dist/node/orchestration/health/initHealthEndpoints.d.ts +11 -0
  92. package/dist/node/orchestration/health/initHealthEndpoints.d.ts.map +1 -0
  93. package/dist/node/orchestration/host/implementation/DefaultHost.d.ts +12 -0
  94. package/dist/node/orchestration/host/implementation/DefaultHost.d.ts.map +1 -0
  95. package/dist/node/orchestration/host/implementation/DefaultServiceCollection.d.ts +24 -0
  96. package/dist/node/orchestration/host/implementation/DefaultServiceCollection.d.ts.map +1 -0
  97. package/dist/node/orchestration/host/implementation/DefaultServiceProvider.d.ts +7 -0
  98. package/dist/node/orchestration/host/implementation/DefaultServiceProvider.d.ts.map +1 -0
  99. package/dist/node/orchestration/host/implementation/index.d.ts +3 -0
  100. package/dist/node/orchestration/host/implementation/index.d.ts.map +1 -0
  101. package/dist/node/orchestration/host/index.d.ts +3 -0
  102. package/dist/node/orchestration/host/index.d.ts.map +1 -0
  103. package/dist/node/orchestration/host/model/Host.d.ts +19 -0
  104. package/dist/node/orchestration/host/model/Host.d.ts.map +1 -0
  105. package/dist/node/orchestration/host/model/ServiceCollection.d.ts +20 -0
  106. package/dist/node/orchestration/host/model/ServiceCollection.d.ts.map +1 -0
  107. package/dist/node/orchestration/host/model/ServiceProvider.d.ts +4 -0
  108. package/dist/node/orchestration/host/model/ServiceProvider.d.ts.map +1 -0
  109. package/dist/node/orchestration/host/model/index.d.ts +4 -0
  110. package/dist/node/orchestration/host/model/index.d.ts.map +1 -0
  111. package/dist/node/orchestration/index.d.ts +6 -0
  112. package/dist/node/orchestration/index.d.ts.map +1 -0
  113. package/dist/node/orchestration/initServices.d.ts +9 -0
  114. package/dist/node/orchestration/initServices.d.ts.map +1 -0
  115. package/dist/node/orchestration/map/BalanceSummary/index.d.ts +2 -0
  116. package/dist/node/orchestration/map/BalanceSummary/index.d.ts.map +1 -0
  117. package/dist/node/orchestration/map/BalanceSummary/initBalanceSummaryMap.d.ts +7 -0
  118. package/dist/node/orchestration/map/BalanceSummary/initBalanceSummaryMap.d.ts.map +1 -0
  119. package/dist/node/orchestration/map/BalanceSummary/local.d.ts +7 -0
  120. package/dist/node/orchestration/map/BalanceSummary/local.d.ts.map +1 -0
  121. package/dist/node/orchestration/map/driver/index.d.ts +2 -0
  122. package/dist/node/orchestration/map/driver/index.d.ts.map +1 -0
  123. package/dist/node/orchestration/map/driver/lmdb/Params.d.ts +7 -0
  124. package/dist/node/orchestration/map/driver/lmdb/Params.d.ts.map +1 -0
  125. package/dist/node/orchestration/map/driver/lmdb/SynchronousLmdbMap.d.ts +32 -0
  126. package/dist/node/orchestration/map/driver/lmdb/SynchronousLmdbMap.d.ts.map +1 -0
  127. package/dist/node/orchestration/map/driver/lmdb/index.d.ts +2 -0
  128. package/dist/node/orchestration/map/driver/lmdb/index.d.ts.map +1 -0
  129. package/dist/node/orchestration/map/driver/lmdb/spec/SynchronousLmdbMap.spec.d.ts +2 -0
  130. package/dist/node/orchestration/map/driver/lmdb/spec/SynchronousLmdbMap.spec.d.ts.map +1 -0
  131. package/dist/node/orchestration/map/index.d.ts +3 -0
  132. package/dist/node/orchestration/map/index.d.ts.map +1 -0
  133. package/dist/node/orchestration/map/localPersistentMap.d.ts +13 -0
  134. package/dist/node/orchestration/map/localPersistentMap.d.ts.map +1 -0
  135. package/dist/node/orchestration/repository/index.d.ts +2 -0
  136. package/dist/node/orchestration/repository/index.d.ts.map +1 -0
  137. package/dist/node/orchestration/repository/lib/index.d.ts +2 -0
  138. package/dist/node/orchestration/repository/lib/index.d.ts.map +1 -0
  139. package/dist/node/orchestration/repository/lib/repositoryFromArchivist.d.ts +6 -0
  140. package/dist/node/orchestration/repository/lib/repositoryFromArchivist.d.ts.map +1 -0
  141. package/dist/node/orchestration/services/implementation/account.d.ts +7 -0
  142. package/dist/node/orchestration/services/implementation/account.d.ts.map +1 -0
  143. package/dist/node/orchestration/services/implementation/balance.d.ts +4 -0
  144. package/dist/node/orchestration/services/implementation/balance.d.ts.map +1 -0
  145. package/dist/node/orchestration/services/implementation/chain/evm.d.ts +7 -0
  146. package/dist/node/orchestration/services/implementation/chain/evm.d.ts.map +1 -0
  147. package/dist/node/orchestration/services/implementation/chain/index.d.ts +4 -0
  148. package/dist/node/orchestration/services/implementation/chain/index.d.ts.map +1 -0
  149. package/dist/node/orchestration/services/implementation/evm/index.d.ts +2 -0
  150. package/dist/node/orchestration/services/implementation/evm/index.d.ts.map +1 -0
  151. package/dist/node/orchestration/services/implementation/evm/initChainId.d.ts +4 -0
  152. package/dist/node/orchestration/services/implementation/evm/initChainId.d.ts.map +1 -0
  153. package/dist/node/orchestration/services/implementation/evm/initEvmProvider.d.ts +11 -0
  154. package/dist/node/orchestration/services/implementation/evm/initEvmProvider.d.ts.map +1 -0
  155. package/dist/node/orchestration/services/implementation/evm/initInfuraProvider.d.ts +6 -0
  156. package/dist/node/orchestration/services/implementation/evm/initInfuraProvider.d.ts.map +1 -0
  157. package/dist/node/orchestration/services/implementation/evm/initJsonRpcProvider.d.ts +6 -0
  158. package/dist/node/orchestration/services/implementation/evm/initJsonRpcProvider.d.ts.map +1 -0
  159. package/dist/node/orchestration/services/implementation/head.d.ts +10 -0
  160. package/dist/node/orchestration/services/implementation/head.d.ts.map +1 -0
  161. package/dist/node/orchestration/services/implementation/index.d.ts +11 -0
  162. package/dist/node/orchestration/services/implementation/index.d.ts.map +1 -0
  163. package/dist/node/orchestration/services/implementation/iterator.d.ts +6 -0
  164. package/dist/node/orchestration/services/implementation/iterator.d.ts.map +1 -0
  165. package/dist/node/orchestration/services/implementation/pendingTransactions.d.ts +4 -0
  166. package/dist/node/orchestration/services/implementation/pendingTransactions.d.ts.map +1 -0
  167. package/dist/node/orchestration/services/implementation/producer.d.ts +4 -0
  168. package/dist/node/orchestration/services/implementation/producer.d.ts.map +1 -0
  169. package/dist/node/orchestration/services/implementation/reward.d.ts +4 -0
  170. package/dist/node/orchestration/services/implementation/reward.d.ts.map +1 -0
  171. package/dist/node/orchestration/services/implementation/validator.d.ts +4 -0
  172. package/dist/node/orchestration/services/implementation/validator.d.ts.map +1 -0
  173. package/dist/node/orchestration/services/index.d.ts +2 -0
  174. package/dist/node/orchestration/services/index.d.ts.map +1 -0
  175. package/dist/node/orchestration/status/RuntimeStatusMonitor.d.ts +31 -0
  176. package/dist/node/orchestration/status/RuntimeStatusMonitor.d.ts.map +1 -0
  177. package/dist/node/orchestration/status/ServiceStatus.d.ts +9 -0
  178. package/dist/node/orchestration/status/ServiceStatus.d.ts.map +1 -0
  179. package/dist/node/orchestration/status/index.d.ts +3 -0
  180. package/dist/node/orchestration/status/index.d.ts.map +1 -0
  181. package/dist/node/orchestration/store/StoreKind.d.ts +2 -0
  182. package/dist/node/orchestration/store/StoreKind.d.ts.map +1 -0
  183. package/dist/node/orchestration/store/getStoreDirectory.d.ts +10 -0
  184. package/dist/node/orchestration/store/getStoreDirectory.d.ts.map +1 -0
  185. package/dist/node/orchestration/store/index.d.ts +3 -0
  186. package/dist/node/orchestration/store/index.d.ts.map +1 -0
  187. package/dist/node/runCLI.d.ts +2 -0
  188. package/dist/node/runCLI.d.ts.map +1 -0
  189. package/dist/node/spec/BootstrapChain.spec.d.ts +2 -0
  190. package/dist/node/spec/BootstrapChain.spec.d.ts.map +1 -0
  191. package/dist/node/start.d.ts +2 -0
  192. package/dist/node/start.d.ts.map +1 -0
  193. package/dist/node/waitForHostPort.d.ts +2 -0
  194. package/dist/node/waitForHostPort.d.ts.map +1 -0
  195. package/dist/node/xl1.d.ts +2 -0
  196. package/dist/node/xl1.d.ts.map +1 -0
  197. package/dist/node/xl1.mjs +1610 -0
  198. package/dist/node/xl1.mjs.map +1 -0
  199. package/package.json +96 -0
  200. package/src/commands/api/index.ts +1 -0
  201. package/src/commands/api/runApi.ts +12 -0
  202. package/src/commands/index.ts +3 -0
  203. package/src/commands/producer/index.ts +1 -0
  204. package/src/commands/producer/runProducer.ts +38 -0
  205. package/src/commands/validator/index.ts +1 -0
  206. package/src/commands/validator/runValidator.ts +38 -0
  207. package/src/images.ts +19 -0
  208. package/src/index.ts +3 -0
  209. package/src/initConfig.ts +6 -0
  210. package/src/initLogger.ts +23 -0
  211. package/src/optionsFromZodSchema.ts +69 -0
  212. package/src/orchestration/ChainInitializableParams.ts +12 -0
  213. package/src/orchestration/actor/implementation/BalanceActor.ts +50 -0
  214. package/src/orchestration/actor/implementation/ChainHeadUpdateActor.ts +65 -0
  215. package/src/orchestration/actor/implementation/ProducerActor.ts +244 -0
  216. package/src/orchestration/actor/implementation/ValidatorActor.ts +113 -0
  217. package/src/orchestration/actor/implementation/index.ts +4 -0
  218. package/src/orchestration/actor/index.ts +2 -0
  219. package/src/orchestration/actor/model/Actor.ts +114 -0
  220. package/src/orchestration/actor/model/Orchestrator.ts +71 -0
  221. package/src/orchestration/actor/model/index.ts +2 -0
  222. package/src/orchestration/archivists/ChainFinalized/archivist.ts +29 -0
  223. package/src/orchestration/archivists/ChainFinalized/index.ts +1 -0
  224. package/src/orchestration/archivists/ChainFinalized/local.ts +18 -0
  225. package/src/orchestration/archivists/ChainFinalized/remote.ts +20 -0
  226. package/src/orchestration/archivists/ChainSubmissions/archivist.ts +20 -0
  227. package/src/orchestration/archivists/ChainSubmissions/index.ts +1 -0
  228. package/src/orchestration/archivists/ChainSubmissions/remote.ts +20 -0
  229. package/src/orchestration/archivists/PendingTransactions/archivist.ts +29 -0
  230. package/src/orchestration/archivists/PendingTransactions/index.ts +1 -0
  231. package/src/orchestration/archivists/PendingTransactions/local.ts +21 -0
  232. package/src/orchestration/archivists/PendingTransactions/remote.ts +20 -0
  233. package/src/orchestration/archivists/RejectedTransactions/archivist.ts +18 -0
  234. package/src/orchestration/archivists/RejectedTransactions/index.ts +1 -0
  235. package/src/orchestration/archivists/RejectedTransactions/local.ts +20 -0
  236. package/src/orchestration/archivists/StakeIntentState/archivist.ts +21 -0
  237. package/src/orchestration/archivists/StakeIntentState/index.ts +1 -0
  238. package/src/orchestration/archivists/StakeIntentState/local.ts +19 -0
  239. package/src/orchestration/archivists/index.ts +5 -0
  240. package/src/orchestration/archivists/lib/index.ts +1 -0
  241. package/src/orchestration/archivists/lib/localPersistentArchivist.ts +57 -0
  242. package/src/orchestration/health/index.ts +1 -0
  243. package/src/orchestration/health/initHealthEndpoints.ts +72 -0
  244. package/src/orchestration/host/implementation/DefaultHost.ts +25 -0
  245. package/src/orchestration/host/implementation/DefaultServiceCollection.ts +60 -0
  246. package/src/orchestration/host/implementation/DefaultServiceProvider.ts +12 -0
  247. package/src/orchestration/host/implementation/index.ts +2 -0
  248. package/src/orchestration/host/index.ts +2 -0
  249. package/src/orchestration/host/model/Host.ts +21 -0
  250. package/src/orchestration/host/model/ServiceCollection.ts +22 -0
  251. package/src/orchestration/host/model/ServiceProvider.ts +3 -0
  252. package/src/orchestration/host/model/index.ts +3 -0
  253. package/src/orchestration/index.ts +5 -0
  254. package/src/orchestration/initServices.ts +240 -0
  255. package/src/orchestration/map/BalanceSummary/index.ts +1 -0
  256. package/src/orchestration/map/BalanceSummary/initBalanceSummaryMap.ts +22 -0
  257. package/src/orchestration/map/BalanceSummary/local.ts +21 -0
  258. package/src/orchestration/map/driver/index.ts +1 -0
  259. package/src/orchestration/map/driver/lmdb/Params.ts +7 -0
  260. package/src/orchestration/map/driver/lmdb/SynchronousLmdbMap.ts +66 -0
  261. package/src/orchestration/map/driver/lmdb/index.ts +1 -0
  262. package/src/orchestration/map/driver/lmdb/spec/SynchronousLmdbMap.spec.ts +97 -0
  263. package/src/orchestration/map/index.ts +2 -0
  264. package/src/orchestration/map/localPersistentMap.ts +52 -0
  265. package/src/orchestration/repository/index.ts +1 -0
  266. package/src/orchestration/repository/lib/index.ts +1 -0
  267. package/src/orchestration/repository/lib/repositoryFromArchivist.ts +27 -0
  268. package/src/orchestration/services/implementation/account.ts +24 -0
  269. package/src/orchestration/services/implementation/balance.ts +13 -0
  270. package/src/orchestration/services/implementation/chain/evm.ts +38 -0
  271. package/src/orchestration/services/implementation/chain/index.ts +22 -0
  272. package/src/orchestration/services/implementation/evm/index.ts +1 -0
  273. package/src/orchestration/services/implementation/evm/initChainId.ts +20 -0
  274. package/src/orchestration/services/implementation/evm/initEvmProvider.ts +23 -0
  275. package/src/orchestration/services/implementation/evm/initInfuraProvider.ts +27 -0
  276. package/src/orchestration/services/implementation/evm/initJsonRpcProvider.ts +21 -0
  277. package/src/orchestration/services/implementation/head.ts +44 -0
  278. package/src/orchestration/services/implementation/index.ts +10 -0
  279. package/src/orchestration/services/implementation/iterator.ts +36 -0
  280. package/src/orchestration/services/implementation/pendingTransactions.ts +14 -0
  281. package/src/orchestration/services/implementation/producer.ts +13 -0
  282. package/src/orchestration/services/implementation/reward.ts +41 -0
  283. package/src/orchestration/services/implementation/validator.ts +14 -0
  284. package/src/orchestration/services/index.ts +1 -0
  285. package/src/orchestration/status/RuntimeStatusMonitor.ts +117 -0
  286. package/src/orchestration/status/ServiceStatus.ts +21 -0
  287. package/src/orchestration/status/index.ts +2 -0
  288. package/src/orchestration/store/StoreKind.ts +1 -0
  289. package/src/orchestration/store/getStoreDirectory.ts +14 -0
  290. package/src/orchestration/store/index.ts +2 -0
  291. package/src/runCLI.ts +111 -0
  292. package/src/spec/BootstrapChain.spec.ts +133 -0
  293. package/src/spec/MultiProducer.ChainOutput.json +864 -0
  294. package/src/start.ts +8 -0
  295. package/src/waitForHostPort.ts +26 -0
  296. package/src/xl1.ts +8 -0
@@ -0,0 +1,39 @@
1
+ import type { TracerProvider } from '@opentelemetry/api';
2
+ import { Base, type BaseParams } from '@xylabs/base';
3
+ import type { Promisable } from '@xylabs/promise';
4
+ import type { Config } from '@xyo-network/xl1-protocol-sdk';
5
+ export interface IActor {
6
+ start(): Promise<void>;
7
+ stop(): Promise<void>;
8
+ }
9
+ export type ActorParams = BaseParams<{
10
+ config: Config;
11
+ traceProvider?: TracerProvider;
12
+ }>;
13
+ export declare class Actor<TParams extends ActorParams = ActorParams> extends Base<TParams> implements IActor {
14
+ protected readonly _timers: Map<string, ReturnType<typeof setTimeout>>;
15
+ private _active;
16
+ private readonly _displayName;
17
+ private readonly _id;
18
+ constructor(id: string, displayName: string | undefined, params: TParams);
19
+ get displayName(): string;
20
+ get id(): string;
21
+ get name(): string;
22
+ protected get logPrefix(): string;
23
+ /**
24
+ * The timer runs until the actor is deactivated (or you manually stop it).
25
+ */
26
+ registerTimer(timerName: string, callback: () => Promisable<void>, dueTimeMs: number, periodMs: number): void;
27
+ span<T>(name: string, fn: () => T): T;
28
+ spanAsync<T>(name: string, fn: () => Promise<T>): Promise<T>;
29
+ /**
30
+ * Called by the Orchestrator when the actor is activated.
31
+ */
32
+ start(): Promise<void>;
33
+ /**
34
+ * Called by the Orchestrator when the actor is deactivated.
35
+ * Stop all running timers.
36
+ */
37
+ stop(): Promise<void>;
38
+ }
39
+ //# sourceMappingURL=Actor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Actor.d.ts","sourceRoot":"","sources":["../../../../../src/orchestration/actor/model/Actor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAE,IAAI,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAA;AAGpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAE3D,MAAM,WAAW,MAAM;IACrB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;IACtB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;CACtB;AAED,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC;IACnC,MAAM,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,cAAc,CAAA;CAC/B,CAAC,CAAA;AAEF,qBAAa,KAAK,CAAC,OAAO,SAAS,WAAW,GAAG,WAAW,CAAE,SAAQ,IAAI,CAAC,OAAO,CAAE,YAAW,MAAM;IACnG,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC,CAAY;IAClF,OAAO,CAAC,OAAO,CAAQ;IACvB,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAQ;IACrC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAQ;gBAEhB,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,YAAU,EAAE,MAAM,EAAE,OAAO;IAOtE,IAAI,WAAW,WAEd;IAED,IAAI,EAAE,WAEL;IAED,IAAI,IAAI,WAEP;IAED,SAAS,KAAK,SAAS,WAEtB;IAED;;OAEG;IACH,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAgCtG,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC;IAI/B,SAAS,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAIlE;;OAEG;IACG,KAAK;IAMX;;;OAGG;IACG,IAAI;CAUX"}
@@ -0,0 +1,27 @@
1
+ import type { Logger } from '@xylabs/logger';
2
+ import type { IActor } from './Actor.ts';
3
+ export interface IOrchestrator {
4
+ start(): Promise<void>;
5
+ stop(): Promise<void>;
6
+ }
7
+ export declare class Orchestrator implements IOrchestrator {
8
+ protected actors: IActor[];
9
+ protected keepAliveHandle: NodeJS.Timeout | null;
10
+ protected readonly logger?: Logger;
11
+ protected running: boolean;
12
+ constructor(logger?: Logger);
13
+ /**
14
+ * Registers an actor.
15
+ * (We won't activate the actor until `start()` is called.)
16
+ */
17
+ registerActor(actor: IActor): Promise<void>;
18
+ /**
19
+ * Starts the orchestrator: activates all actors.
20
+ */
21
+ start(): Promise<void>;
22
+ /**
23
+ * Stops the orchestrator: deactivates all actors.
24
+ */
25
+ stop(): Promise<void>;
26
+ }
27
+ //# sourceMappingURL=Orchestrator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Orchestrator.d.ts","sourceRoot":"","sources":["../../../../../src/orchestration/actor/model/Orchestrator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAE5C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAExC,MAAM,WAAW,aAAa;IAC5B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;IACtB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;CACtB;AAED,qBAAa,YAAa,YAAW,aAAa;IAChD,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,CAAK;IAC/B,SAAS,CAAC,eAAe,EAAE,MAAM,CAAC,OAAO,GAAG,IAAI,CAAO;IACvD,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IAClC,SAAS,CAAC,OAAO,UAAQ;gBAEb,MAAM,CAAC,EAAE,MAAM;IAI3B;;;OAGG;IACG,aAAa,CAAC,KAAK,EAAE,MAAM;IAQjC;;OAEG;IACG,KAAK;IAkBX;;OAEG;IACG,IAAI;CAeX"}
@@ -0,0 +1,3 @@
1
+ export * from './Actor.ts';
2
+ export * from './Orchestrator.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/orchestration/actor/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,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, traceProvider, }: 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/orchestration/archivists/ChainFinalized/archivist.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAKrE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAA;AAOjF,wBAAsB,2BAA2B,CAAC,EAChD,MAAM,EAAE,MAAM,EAAE,aAAa,GAC9B,EAAE,wBAAwB,kTAc1B"}
@@ -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/orchestration/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/orchestration/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,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 initRemoteChainFinalizedArchivist: Initializable<{
5
+ config: Config;
6
+ }, ArchivistInstance>;
7
+ //# sourceMappingURL=remote.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remote.d.ts","sourceRoot":"","sources":["../../../../../src/orchestration/archivists/ChainFinalized/remote.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAErE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,EAAE,KAAK,MAAM,EAAU,MAAM,+BAA+B,CAAA;AAMnE,eAAO,MAAM,iCAAiC,EAAE,aAAa,CAAC;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,EAAE,iBAAiB,CASlG,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 initChainSubmissionsArchivist: Initializable<{
5
+ config: Config;
6
+ }, ArchivistInstance>;
7
+ //# sourceMappingURL=archivist.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"archivist.d.ts","sourceRoot":"","sources":["../../../../../src/orchestration/archivists/ChainSubmissions/archivist.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAErE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAQ3D,eAAO,MAAM,6BAA6B,EAAE,aAAa,CAAC;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,EAAE,iBAAiB,CAO9F,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/orchestration/archivists/ChainSubmissions/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 initRemoteChainSubmissionsArchivist: Initializable<{
5
+ config: Config;
6
+ }, ArchivistInstance>;
7
+ //# sourceMappingURL=remote.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remote.d.ts","sourceRoot":"","sources":["../../../../../src/orchestration/archivists/ChainSubmissions/remote.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAErE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,EAAE,KAAK,MAAM,EAAU,MAAM,+BAA+B,CAAA;AAMnE,eAAO,MAAM,mCAAmC,EAAE,aAAa,CAAC;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,EAAE,iBAAiB,CASpG,CAAA"}
@@ -0,0 +1,6 @@
1
+ import type { ArchivistInstance } from '@xyo-network/archivist-model';
2
+ import type { Config } from '@xyo-network/xl1-protocol-sdk';
3
+ export declare const initPendingBundledTransactionsArchivist: (params: {
4
+ config: Config;
5
+ }) => Promise<[local: ArchivistInstance, remote: ArchivistInstance]>;
6
+ //# sourceMappingURL=archivist.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"archivist.d.ts","sourceRoot":"","sources":["../../../../../src/orchestration/archivists/PendingTransactions/archivist.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAGrE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAS3D,eAAO,MAAM,uCAAuC,GAAU,QAAQ;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,KAAG,OAAO,CAAC,CAAC,KAAK,EAAE,iBAAiB,EAAE,MAAM,EAAE,iBAAiB,CAAC,CAgBvJ,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/orchestration/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/orchestration/archivists/PendingTransactions/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;AAM3D,eAAO,MAAM,qCAAqC,EAAE,aAAa,CAAC;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,EAAE,iBAAiB,CAWtG,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 initRemotePendingTransactionsArchivist: Initializable<{
5
+ config: Config;
6
+ }, ArchivistInstance>;
7
+ //# sourceMappingURL=remote.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remote.d.ts","sourceRoot":"","sources":["../../../../../src/orchestration/archivists/PendingTransactions/remote.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAErE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,EAAE,KAAK,MAAM,EAAU,MAAM,+BAA+B,CAAA;AAMnE,eAAO,MAAM,sCAAsC,EAAE,aAAa,CAAC;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,EAAE,iBAAiB,CASvG,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/orchestration/archivists/RejectedTransactions/archivist.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAErE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAQpE,wBAAsB,iCAAiC,CAAC,MAAM,EAAE,mBAAmB,kTAOlF"}
@@ -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/orchestration/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/orchestration/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/orchestration/archivists/StakeIntentState/archivist.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAErE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAG9D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAA;AAMjF,eAAO,MAAM,6BAA6B,EAAE,aAAa,CAAC,wBAAwB,EAAE,iBAAiB,CAQlG,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/orchestration/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/orchestration/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 './ChainSubmissions/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/orchestration/archivists/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,6BAA6B,CAAA;AAC3C,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/orchestration/archivists/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAA"}
@@ -0,0 +1,20 @@
1
+ import type { ArchivistInstance } from '@xyo-network/archivist-model';
2
+ import type { StoreKind } from '../../store/index.ts';
3
+ /**
4
+ * Returns a local persistent archivist
5
+ * @param dbName The name of the database
6
+ * @param storeName The name of the store
7
+ * @param storageRoot The root directory for storage (default is '.store' in the current working directory)
8
+ * @param kind The kind of the archivist
9
+ * @returns an archivist instance
10
+ */
11
+ export declare const getLocalPersistentArchivist: (dbName: string, storeName: string, storageRoot?: string, kind?: StoreKind) => Promise<ArchivistInstance>;
12
+ /**
13
+ * Deletes a local persistent archivist
14
+ * @param dbName The name of the database
15
+ * @param storageRoot The root directory for storage (default is '.store' in the current working directory)
16
+ * @param kind The kind of the archivist
17
+ * @returns A promise that resolves when the archivist is deleted
18
+ */
19
+ export declare const deleteLocalPersistentArchivist: (dbName: string, storageRoot?: string, kind?: StoreKind) => Promise<void>;
20
+ //# sourceMappingURL=localPersistentArchivist.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"localPersistentArchivist.d.ts","sourceRoot":"","sources":["../../../../../src/orchestration/archivists/lib/localPersistentArchivist.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAErE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAKrD;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B,GAAI,QAAQ,MAAM,EAAE,WAAW,MAAM,EAAE,cAAc,MAAM,EAAE,OAAM,SAAkB,KAAG,OAAO,CAAC,iBAAiB,CAgBxJ,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,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/orchestration/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/logger';
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/orchestration/health/initHealthEndpoints.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACO,MAAM,EACxB,MAAM,WAAW,CAAA;AAIlB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAE5C,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/orchestration/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/orchestration/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/orchestration/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/orchestration/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/orchestration/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/orchestration/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/orchestration/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/orchestration/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/orchestration/host/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA"}
@@ -0,0 +1,6 @@
1
+ export * from './actor/index.ts';
2
+ export * from './health/index.ts';
3
+ export * from './initServices.ts';
4
+ export * from './services/index.ts';
5
+ export * from './status/index.ts';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/orchestration/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,mBAAmB,CAAA"}
@@ -0,0 +1,9 @@
1
+ import type { Logger } from '@xylabs/logger';
2
+ import type { ChainServiceCollectionV2, Config } from '@xyo-network/xl1-protocol-sdk';
3
+ interface InitServicesContext {
4
+ config: Config;
5
+ logger: Logger;
6
+ }
7
+ export declare const initServices: (context: InitServicesContext) => Promise<ChainServiceCollectionV2>;
8
+ export {};
9
+ //# sourceMappingURL=initServices.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"initServices.d.ts","sourceRoot":"","sources":["../../../src/orchestration/initServices.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAO5C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAkCrF,UAAU,mBAAmB;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;CACf;AAED,eAAO,MAAM,YAAY,GAAU,SAAS,mBAAmB,KAAG,OAAO,CAAC,wBAAwB,CA+LjG,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './initBalanceSummaryMap.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/orchestration/map/BalanceSummary/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA"}
@@ -0,0 +1,7 @@
1
+ import type { Hash } from '@xylabs/hex';
2
+ import type { MapType } from '@xyo-network/chain-protocol';
3
+ import type { WithStorageMeta } from '@xyo-network/payload-model';
4
+ import type { BalancesStepSummary } from '@xyo-network/xl1-protocol-sdk';
5
+ import type { ChainInitializableParams } from '../../ChainInitializableParams.ts';
6
+ export declare function initBalanceSummaryMap(params: ChainInitializableParams): Promise<MapType<Hash, WithStorageMeta<BalancesStepSummary>>>;
7
+ //# sourceMappingURL=initBalanceSummaryMap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"initBalanceSummaryMap.d.ts","sourceRoot":"","sources":["../../../../../src/orchestration/map/BalanceSummary/initBalanceSummaryMap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AAE1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAA;AAGxE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAA;AAMjF,wBAAsB,qBAAqB,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,eAAe,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAO1I"}
@@ -0,0 +1,7 @@
1
+ import type { Hash } from '@xylabs/hex';
2
+ import type { MapType } from '@xyo-network/chain-protocol';
3
+ import type { WithStorageMeta } from '@xyo-network/payload-model';
4
+ import type { BalancesStepSummary } from '@xyo-network/xl1-protocol-sdk';
5
+ import type { ChainInitializableParams } from '../../ChainInitializableParams.ts';
6
+ export declare const initLocalBalanceSummaryMap: (params: ChainInitializableParams) => Promise<MapType<Hash, WithStorageMeta<BalancesStepSummary>>>;
7
+ //# sourceMappingURL=local.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"local.d.ts","sourceRoot":"","sources":["../../../../../src/orchestration/map/BalanceSummary/local.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AAC1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAA;AAGxE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAA;AAMjF,eAAO,MAAM,0BAA0B,GAAU,QAAQ,wBAAwB,KAAG,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,eAAe,CAAC,mBAAmB,CAAC,CAAC,CAO9I,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './lmdb/index.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/orchestration/map/driver/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
@@ -0,0 +1,7 @@
1
+ import type { CreatableParams } from '@xylabs/creatable';
2
+ export interface LmdbMapParams extends CreatableParams {
3
+ dbName: string;
4
+ location: string;
5
+ storeName: string;
6
+ }
7
+ //# sourceMappingURL=Params.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../../../../../src/orchestration/map/driver/lmdb/Params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAExD,MAAM,WAAW,aAAc,SAAQ,eAAe;IACpD,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;CAClB"}