@xyo-network/xl1-cli 1.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (281) hide show
  1. package/LICENSE +165 -0
  2. package/README.md +23 -0
  3. package/build/commands/api/index.d.ts +2 -0
  4. package/build/commands/api/index.d.ts.map +1 -0
  5. package/build/commands/api/runApi.d.ts +2 -0
  6. package/build/commands/api/runApi.d.ts.map +1 -0
  7. package/build/commands/index.d.ts +4 -0
  8. package/build/commands/index.d.ts.map +1 -0
  9. package/build/commands/producer/createDeclaration.d.ts +2 -0
  10. package/build/commands/producer/createDeclaration.d.ts.map +1 -0
  11. package/build/commands/producer/index.d.ts +3 -0
  12. package/build/commands/producer/index.d.ts.map +1 -0
  13. package/build/commands/producer/runProducer.d.ts +3 -0
  14. package/build/commands/producer/runProducer.d.ts.map +1 -0
  15. package/build/commands/validator/index.d.ts +2 -0
  16. package/build/commands/validator/index.d.ts.map +1 -0
  17. package/build/commands/validator/runValidator.d.ts +3 -0
  18. package/build/commands/validator/runValidator.d.ts.map +1 -0
  19. package/build/index.d.ts +4 -0
  20. package/build/index.d.ts.map +1 -0
  21. package/build/initEnv.d.ts +2 -0
  22. package/build/initEnv.d.ts.map +1 -0
  23. package/build/node/index.mjs +1502 -0
  24. package/build/node/index.mjs.map +1 -0
  25. package/build/node/xl1.mjs +1474 -0
  26. package/build/node/xl1.mjs.map +1 -0
  27. package/build/orchestration/actor/implementation/BalanceActor.d.ts +17 -0
  28. package/build/orchestration/actor/implementation/BalanceActor.d.ts.map +1 -0
  29. package/build/orchestration/actor/implementation/ChainHeadUpdateActor.d.ts +16 -0
  30. package/build/orchestration/actor/implementation/ChainHeadUpdateActor.d.ts.map +1 -0
  31. package/build/orchestration/actor/implementation/ProducerActor.d.ts +25 -0
  32. package/build/orchestration/actor/implementation/ProducerActor.d.ts.map +1 -0
  33. package/build/orchestration/actor/implementation/index.d.ts +4 -0
  34. package/build/orchestration/actor/implementation/index.d.ts.map +1 -0
  35. package/build/orchestration/actor/index.d.ts +3 -0
  36. package/build/orchestration/actor/index.d.ts.map +1 -0
  37. package/build/orchestration/actor/model/Actor.d.ts +38 -0
  38. package/build/orchestration/actor/model/Actor.d.ts.map +1 -0
  39. package/build/orchestration/actor/model/Orchestrator.d.ts +24 -0
  40. package/build/orchestration/actor/model/Orchestrator.d.ts.map +1 -0
  41. package/build/orchestration/actor/model/index.d.ts +3 -0
  42. package/build/orchestration/actor/model/index.d.ts.map +1 -0
  43. package/build/orchestration/archivists/ChainFinalized/archivist.d.ts +4 -0
  44. package/build/orchestration/archivists/ChainFinalized/archivist.d.ts.map +1 -0
  45. package/build/orchestration/archivists/ChainFinalized/index.d.ts +2 -0
  46. package/build/orchestration/archivists/ChainFinalized/index.d.ts.map +1 -0
  47. package/build/orchestration/archivists/ChainFinalized/local.d.ts +4 -0
  48. package/build/orchestration/archivists/ChainFinalized/local.d.ts.map +1 -0
  49. package/build/orchestration/archivists/ChainFinalized/remote.d.ts +4 -0
  50. package/build/orchestration/archivists/ChainFinalized/remote.d.ts.map +1 -0
  51. package/build/orchestration/archivists/ChainSubmissions/archivist.d.ts +4 -0
  52. package/build/orchestration/archivists/ChainSubmissions/archivist.d.ts.map +1 -0
  53. package/build/orchestration/archivists/ChainSubmissions/index.d.ts +2 -0
  54. package/build/orchestration/archivists/ChainSubmissions/index.d.ts.map +1 -0
  55. package/build/orchestration/archivists/ChainSubmissions/remote.d.ts +4 -0
  56. package/build/orchestration/archivists/ChainSubmissions/remote.d.ts.map +1 -0
  57. package/build/orchestration/archivists/PendingTransactions/archivist.d.ts +4 -0
  58. package/build/orchestration/archivists/PendingTransactions/archivist.d.ts.map +1 -0
  59. package/build/orchestration/archivists/PendingTransactions/index.d.ts +2 -0
  60. package/build/orchestration/archivists/PendingTransactions/index.d.ts.map +1 -0
  61. package/build/orchestration/archivists/PendingTransactions/local.d.ts +4 -0
  62. package/build/orchestration/archivists/PendingTransactions/local.d.ts.map +1 -0
  63. package/build/orchestration/archivists/PendingTransactions/remote.d.ts +4 -0
  64. package/build/orchestration/archivists/PendingTransactions/remote.d.ts.map +1 -0
  65. package/build/orchestration/archivists/RejectedTransactions/archivist.d.ts +4 -0
  66. package/build/orchestration/archivists/RejectedTransactions/archivist.d.ts.map +1 -0
  67. package/build/orchestration/archivists/RejectedTransactions/index.d.ts +2 -0
  68. package/build/orchestration/archivists/RejectedTransactions/index.d.ts.map +1 -0
  69. package/build/orchestration/archivists/RejectedTransactions/local.d.ts +4 -0
  70. package/build/orchestration/archivists/RejectedTransactions/local.d.ts.map +1 -0
  71. package/build/orchestration/archivists/StakeIntentState/archivist.d.ts +4 -0
  72. package/build/orchestration/archivists/StakeIntentState/archivist.d.ts.map +1 -0
  73. package/build/orchestration/archivists/StakeIntentState/index.d.ts +2 -0
  74. package/build/orchestration/archivists/StakeIntentState/index.d.ts.map +1 -0
  75. package/build/orchestration/archivists/StakeIntentState/local.d.ts +4 -0
  76. package/build/orchestration/archivists/StakeIntentState/local.d.ts.map +1 -0
  77. package/build/orchestration/archivists/index.d.ts +6 -0
  78. package/build/orchestration/archivists/index.d.ts.map +1 -0
  79. package/build/orchestration/archivists/lib/index.d.ts +2 -0
  80. package/build/orchestration/archivists/lib/index.d.ts.map +1 -0
  81. package/build/orchestration/archivists/lib/localPersistentArchivist.d.ts +12 -0
  82. package/build/orchestration/archivists/lib/localPersistentArchivist.d.ts.map +1 -0
  83. package/build/orchestration/health/index.d.ts +2 -0
  84. package/build/orchestration/health/index.d.ts.map +1 -0
  85. package/build/orchestration/health/initHealthEndpoints.d.ts +7 -0
  86. package/build/orchestration/health/initHealthEndpoints.d.ts.map +1 -0
  87. package/build/orchestration/host/implementation/DefaultHost.d.ts +12 -0
  88. package/build/orchestration/host/implementation/DefaultHost.d.ts.map +1 -0
  89. package/build/orchestration/host/implementation/DefaultServiceCollection.d.ts +24 -0
  90. package/build/orchestration/host/implementation/DefaultServiceCollection.d.ts.map +1 -0
  91. package/build/orchestration/host/implementation/DefaultServiceProvider.d.ts +7 -0
  92. package/build/orchestration/host/implementation/DefaultServiceProvider.d.ts.map +1 -0
  93. package/build/orchestration/host/implementation/index.d.ts +3 -0
  94. package/build/orchestration/host/implementation/index.d.ts.map +1 -0
  95. package/build/orchestration/host/index.d.ts +3 -0
  96. package/build/orchestration/host/index.d.ts.map +1 -0
  97. package/build/orchestration/host/model/Host.d.ts +19 -0
  98. package/build/orchestration/host/model/Host.d.ts.map +1 -0
  99. package/build/orchestration/host/model/ServiceCollection.d.ts +20 -0
  100. package/build/orchestration/host/model/ServiceCollection.d.ts.map +1 -0
  101. package/build/orchestration/host/model/ServiceProvider.d.ts +4 -0
  102. package/build/orchestration/host/model/ServiceProvider.d.ts.map +1 -0
  103. package/build/orchestration/host/model/index.d.ts +4 -0
  104. package/build/orchestration/host/model/index.d.ts.map +1 -0
  105. package/build/orchestration/index.d.ts +6 -0
  106. package/build/orchestration/index.d.ts.map +1 -0
  107. package/build/orchestration/initServices.d.ts +4 -0
  108. package/build/orchestration/initServices.d.ts.map +1 -0
  109. package/build/orchestration/map/BalanceSummary/index.d.ts +2 -0
  110. package/build/orchestration/map/BalanceSummary/index.d.ts.map +1 -0
  111. package/build/orchestration/map/BalanceSummary/initBalanceSummaryMap.d.ts +7 -0
  112. package/build/orchestration/map/BalanceSummary/initBalanceSummaryMap.d.ts.map +1 -0
  113. package/build/orchestration/map/BalanceSummary/local.d.ts +6 -0
  114. package/build/orchestration/map/BalanceSummary/local.d.ts.map +1 -0
  115. package/build/orchestration/map/driver/index.d.ts +2 -0
  116. package/build/orchestration/map/driver/index.d.ts.map +1 -0
  117. package/build/orchestration/map/driver/lmdb/Params.d.ts +7 -0
  118. package/build/orchestration/map/driver/lmdb/Params.d.ts.map +1 -0
  119. package/build/orchestration/map/driver/lmdb/SynchronousLmdbMap.d.ts +32 -0
  120. package/build/orchestration/map/driver/lmdb/SynchronousLmdbMap.d.ts.map +1 -0
  121. package/build/orchestration/map/driver/lmdb/index.d.ts +2 -0
  122. package/build/orchestration/map/driver/lmdb/index.d.ts.map +1 -0
  123. package/build/orchestration/map/index.d.ts +3 -0
  124. package/build/orchestration/map/index.d.ts.map +1 -0
  125. package/build/orchestration/map/localPersistentMap.d.ts +12 -0
  126. package/build/orchestration/map/localPersistentMap.d.ts.map +1 -0
  127. package/build/orchestration/repository/index.d.ts +2 -0
  128. package/build/orchestration/repository/index.d.ts.map +1 -0
  129. package/build/orchestration/repository/lib/index.d.ts +2 -0
  130. package/build/orchestration/repository/lib/index.d.ts.map +1 -0
  131. package/build/orchestration/repository/lib/repositoryFromArchivist.d.ts +6 -0
  132. package/build/orchestration/repository/lib/repositoryFromArchivist.d.ts.map +1 -0
  133. package/build/orchestration/services/implementation/account.d.ts +4 -0
  134. package/build/orchestration/services/implementation/account.d.ts.map +1 -0
  135. package/build/orchestration/services/implementation/balance.d.ts +4 -0
  136. package/build/orchestration/services/implementation/balance.d.ts.map +1 -0
  137. package/build/orchestration/services/implementation/chain/evm.d.ts +6 -0
  138. package/build/orchestration/services/implementation/chain/evm.d.ts.map +1 -0
  139. package/build/orchestration/services/implementation/chain/index.d.ts +4 -0
  140. package/build/orchestration/services/implementation/chain/index.d.ts.map +1 -0
  141. package/build/orchestration/services/implementation/evm/index.d.ts +2 -0
  142. package/build/orchestration/services/implementation/evm/index.d.ts.map +1 -0
  143. package/build/orchestration/services/implementation/evm/initChainId.d.ts +3 -0
  144. package/build/orchestration/services/implementation/evm/initChainId.d.ts.map +1 -0
  145. package/build/orchestration/services/implementation/evm/initEvmProvider.d.ts +4 -0
  146. package/build/orchestration/services/implementation/evm/initEvmProvider.d.ts.map +1 -0
  147. package/build/orchestration/services/implementation/evm/initGanacheProvider.d.ts +5 -0
  148. package/build/orchestration/services/implementation/evm/initGanacheProvider.d.ts.map +1 -0
  149. package/build/orchestration/services/implementation/evm/initInfuraProvider.d.ts +5 -0
  150. package/build/orchestration/services/implementation/evm/initInfuraProvider.d.ts.map +1 -0
  151. package/build/orchestration/services/implementation/head.d.ts +10 -0
  152. package/build/orchestration/services/implementation/head.d.ts.map +1 -0
  153. package/build/orchestration/services/implementation/index.d.ts +11 -0
  154. package/build/orchestration/services/implementation/index.d.ts.map +1 -0
  155. package/build/orchestration/services/implementation/iterator.d.ts +6 -0
  156. package/build/orchestration/services/implementation/iterator.d.ts.map +1 -0
  157. package/build/orchestration/services/implementation/pendingTransactions.d.ts +4 -0
  158. package/build/orchestration/services/implementation/pendingTransactions.d.ts.map +1 -0
  159. package/build/orchestration/services/implementation/producer.d.ts +4 -0
  160. package/build/orchestration/services/implementation/producer.d.ts.map +1 -0
  161. package/build/orchestration/services/implementation/reward.d.ts +4 -0
  162. package/build/orchestration/services/implementation/reward.d.ts.map +1 -0
  163. package/build/orchestration/services/implementation/validator.d.ts +4 -0
  164. package/build/orchestration/services/implementation/validator.d.ts.map +1 -0
  165. package/build/orchestration/services/index.d.ts +2 -0
  166. package/build/orchestration/services/index.d.ts.map +1 -0
  167. package/build/orchestration/status/RuntimeStatusMonitor.d.ts +31 -0
  168. package/build/orchestration/status/RuntimeStatusMonitor.d.ts.map +1 -0
  169. package/build/orchestration/status/ServiceStatus.d.ts +9 -0
  170. package/build/orchestration/status/ServiceStatus.d.ts.map +1 -0
  171. package/build/orchestration/status/index.d.ts +3 -0
  172. package/build/orchestration/status/index.d.ts.map +1 -0
  173. package/build/orchestration/store/StoreKind.d.ts +2 -0
  174. package/build/orchestration/store/StoreKind.d.ts.map +1 -0
  175. package/build/orchestration/store/getStoreDirectory.d.ts +9 -0
  176. package/build/orchestration/store/getStoreDirectory.d.ts.map +1 -0
  177. package/build/orchestration/store/index.d.ts +3 -0
  178. package/build/orchestration/store/index.d.ts.map +1 -0
  179. package/build/runCLI.d.ts +3 -0
  180. package/build/runCLI.d.ts.map +1 -0
  181. package/build/start.d.ts +2 -0
  182. package/build/start.d.ts.map +1 -0
  183. package/build/xl1.d.ts +2 -0
  184. package/build/xl1.d.ts.map +1 -0
  185. package/dist/cli-min.mjs +400 -0
  186. package/nodemon.json +9 -0
  187. package/package.json +97 -0
  188. package/rollup.config.mjs +73 -0
  189. package/scripts/xl1.mjs +3 -0
  190. package/src/commands/api/index.ts +1 -0
  191. package/src/commands/api/runApi.ts +7 -0
  192. package/src/commands/index.ts +3 -0
  193. package/src/commands/producer/createDeclaration.ts +17 -0
  194. package/src/commands/producer/index.ts +2 -0
  195. package/src/commands/producer/runProducer.ts +25 -0
  196. package/src/commands/validator/index.ts +1 -0
  197. package/src/commands/validator/runValidator.ts +13 -0
  198. package/src/index.ts +3 -0
  199. package/src/initEnv.ts +8 -0
  200. package/src/orchestration/actor/implementation/BalanceActor.ts +51 -0
  201. package/src/orchestration/actor/implementation/ChainHeadUpdateActor.ts +65 -0
  202. package/src/orchestration/actor/implementation/ProducerActor.ts +250 -0
  203. package/src/orchestration/actor/implementation/index.ts +3 -0
  204. package/src/orchestration/actor/index.ts +2 -0
  205. package/src/orchestration/actor/model/Actor.ts +113 -0
  206. package/src/orchestration/actor/model/Orchestrator.ts +65 -0
  207. package/src/orchestration/actor/model/index.ts +2 -0
  208. package/src/orchestration/archivists/ChainFinalized/archivist.ts +27 -0
  209. package/src/orchestration/archivists/ChainFinalized/index.ts +1 -0
  210. package/src/orchestration/archivists/ChainFinalized/local.ts +16 -0
  211. package/src/orchestration/archivists/ChainFinalized/remote.ts +18 -0
  212. package/src/orchestration/archivists/ChainSubmissions/archivist.ts +19 -0
  213. package/src/orchestration/archivists/ChainSubmissions/index.ts +1 -0
  214. package/src/orchestration/archivists/ChainSubmissions/remote.ts +18 -0
  215. package/src/orchestration/archivists/PendingTransactions/archivist.ts +29 -0
  216. package/src/orchestration/archivists/PendingTransactions/index.ts +1 -0
  217. package/src/orchestration/archivists/PendingTransactions/local.ts +20 -0
  218. package/src/orchestration/archivists/PendingTransactions/remote.ts +18 -0
  219. package/src/orchestration/archivists/RejectedTransactions/archivist.ts +18 -0
  220. package/src/orchestration/archivists/RejectedTransactions/index.ts +1 -0
  221. package/src/orchestration/archivists/RejectedTransactions/local.ts +20 -0
  222. package/src/orchestration/archivists/StakeIntentState/archivist.ts +19 -0
  223. package/src/orchestration/archivists/StakeIntentState/index.ts +1 -0
  224. package/src/orchestration/archivists/StakeIntentState/local.ts +19 -0
  225. package/src/orchestration/archivists/index.ts +5 -0
  226. package/src/orchestration/archivists/lib/index.ts +1 -0
  227. package/src/orchestration/archivists/lib/localPersistentArchivist.ts +44 -0
  228. package/src/orchestration/health/index.ts +1 -0
  229. package/src/orchestration/health/initHealthEndpoints.ts +70 -0
  230. package/src/orchestration/host/implementation/DefaultHost.ts +25 -0
  231. package/src/orchestration/host/implementation/DefaultServiceCollection.ts +60 -0
  232. package/src/orchestration/host/implementation/DefaultServiceProvider.ts +12 -0
  233. package/src/orchestration/host/implementation/index.ts +2 -0
  234. package/src/orchestration/host/index.ts +2 -0
  235. package/src/orchestration/host/model/Host.ts +21 -0
  236. package/src/orchestration/host/model/ServiceCollection.ts +22 -0
  237. package/src/orchestration/host/model/ServiceProvider.ts +3 -0
  238. package/src/orchestration/host/model/index.ts +3 -0
  239. package/src/orchestration/index.ts +5 -0
  240. package/src/orchestration/initServices.ts +237 -0
  241. package/src/orchestration/map/BalanceSummary/index.ts +1 -0
  242. package/src/orchestration/map/BalanceSummary/initBalanceSummaryMap.ts +22 -0
  243. package/src/orchestration/map/BalanceSummary/local.ts +19 -0
  244. package/src/orchestration/map/driver/index.ts +1 -0
  245. package/src/orchestration/map/driver/lmdb/Params.ts +7 -0
  246. package/src/orchestration/map/driver/lmdb/SynchronousLmdbMap.ts +67 -0
  247. package/src/orchestration/map/driver/lmdb/index.ts +1 -0
  248. package/src/orchestration/map/index.ts +2 -0
  249. package/src/orchestration/map/localPersistentMap.ts +39 -0
  250. package/src/orchestration/repository/index.ts +1 -0
  251. package/src/orchestration/repository/lib/index.ts +1 -0
  252. package/src/orchestration/repository/lib/repositoryFromArchivist.ts +27 -0
  253. package/src/orchestration/services/implementation/account.ts +23 -0
  254. package/src/orchestration/services/implementation/balance.ts +13 -0
  255. package/src/orchestration/services/implementation/chain/evm.ts +35 -0
  256. package/src/orchestration/services/implementation/chain/index.ts +27 -0
  257. package/src/orchestration/services/implementation/evm/index.ts +1 -0
  258. package/src/orchestration/services/implementation/evm/initChainId.ts +18 -0
  259. package/src/orchestration/services/implementation/evm/initEvmProvider.ts +21 -0
  260. package/src/orchestration/services/implementation/evm/initGanacheProvider.ts +19 -0
  261. package/src/orchestration/services/implementation/evm/initInfuraProvider.ts +25 -0
  262. package/src/orchestration/services/implementation/head.ts +44 -0
  263. package/src/orchestration/services/implementation/index.ts +10 -0
  264. package/src/orchestration/services/implementation/iterator.ts +36 -0
  265. package/src/orchestration/services/implementation/pendingTransactions.ts +14 -0
  266. package/src/orchestration/services/implementation/producer.ts +13 -0
  267. package/src/orchestration/services/implementation/reward.ts +37 -0
  268. package/src/orchestration/services/implementation/validator.ts +14 -0
  269. package/src/orchestration/services/index.ts +1 -0
  270. package/src/orchestration/status/RuntimeStatusMonitor.ts +117 -0
  271. package/src/orchestration/status/ServiceStatus.ts +21 -0
  272. package/src/orchestration/status/index.ts +2 -0
  273. package/src/orchestration/store/StoreKind.ts +1 -0
  274. package/src/orchestration/store/getStoreDirectory.ts +15 -0
  275. package/src/orchestration/store/index.ts +2 -0
  276. package/src/runCLI.ts +96 -0
  277. package/src/spec/MultiProducer.ChainOutput.json +864 -0
  278. package/src/start.ts +26 -0
  279. package/src/xl1.ts +6 -0
  280. package/vitest.config.ts +11 -0
  281. package/xy.config.ts +11 -0
@@ -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 initLocalPendingTransactionsArchivist: Initializable<void, ArchivistInstance>;
4
+ //# 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;AAM9D,eAAO,MAAM,qCAAqC,EAAE,aAAa,CAAC,IAAI,EAAE,iBAAiB,CAWxF,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 initRemotePendingTransactionsArchivist: Initializable<void, ArchivistInstance>;
4
+ //# 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;AAO9D,eAAO,MAAM,sCAAsC,EAAE,aAAa,CAAC,IAAI,EAAE,iBAAiB,CAOzF,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { TracerProvider } from '@opentelemetry/api';
2
+ import type { ArchivistInstance } from '@xyo-network/archivist-model';
3
+ export declare function initRejectedTransactionsArchivist(_traceProvider: TracerProvider): 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,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AASrE,wBAAsB,iCAAiC,CAAC,cAAc,EAAE,cAAc,kTAOrF"}
@@ -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<void, 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,IAAI,EAAE,iBAAiB,CAWzF,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 initStakeIntentStateArchivist: Initializable<void, ArchivistInstance>;
4
+ //# 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;AAQ9D,eAAO,MAAM,6BAA6B,EAAE,aAAa,CAAC,IAAI,EAAE,iBAAiB,CAOhF,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,4 @@
1
+ import type { ArchivistInstance } from '@xyo-network/archivist-model';
2
+ import type { Initializable } from '@xyo-network/xl1-protocol';
3
+ export declare const initLocalStakeIntentStateArchivist: Initializable<void, ArchivistInstance>;
4
+ //# 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;AAQ9D,eAAO,MAAM,kCAAkC,EAAE,aAAa,CAAC,IAAI,EAAE,iBAAiB,CAQrF,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,12 @@
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 kind The kind of the archivist
8
+ * @returns an archivist instance
9
+ */
10
+ export declare const getLocalPersistentArchivist: (dbName: string, storeName: string, kind?: StoreKind) => Promise<ArchivistInstance>;
11
+ export declare const deleteLocalPersistentArchivist: (dbName: string, _storeName: string, kind?: StoreKind) => Promise<void>;
12
+ //# 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":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAErE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAGrD;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,GAAI,QAAQ,MAAM,EAAE,WAAW,MAAM,EAAE,OAAM,SAAkB,KAAG,OAAO,CAAC,iBAAiB,CAelI,CAAA;AAED,eAAO,MAAM,8BAA8B,GAAU,QAAQ,MAAM,EAAE,YAAY,MAAM,EAAE,OAAM,SAAkB,KAAG,OAAO,CAAC,IAAI,CAW/H,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,7 @@
1
+ import type { Server } from 'node:http';
2
+ import type { Initializable } from '@xyo-network/xl1-protocol';
3
+ import type { RuntimeStatusMonitor } from '../status/index.ts';
4
+ export declare const initHealthEndpoints: Initializable<{
5
+ statusReporter: RuntimeStatusMonitor;
6
+ }, Server | undefined>;
7
+ //# 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;AAKlB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAE9D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AAsD9D,eAAO,MAAM,mBAAmB,EAAE,aAAa,CAAC;IAAE,cAAc,EAAE,oBAAoB,CAAA;CAAE,EAAE,MAAM,GAAG,SAAS,CAM3G,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,4 @@
1
+ import type { Logger } from '@xylabs/logger';
2
+ import type { ChainServiceCollectionV2 } from '@xyo-network/xl1-protocol-sdk';
3
+ export declare const initServices: (logger?: Logger) => Promise<ChainServiceCollectionV2>;
4
+ //# sourceMappingURL=initServices.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"initServices.d.ts","sourceRoot":"","sources":["../../src/orchestration/initServices.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAS5C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAA;AAiC7E,eAAO,MAAM,YAAY,GAAU,SAAS,MAAM,KAAG,OAAO,CAAC,wBAAwB,CA+LpF,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 { TracerProvider } from '@opentelemetry/api';
2
+ import type { Hash } from '@xylabs/hex';
3
+ import type { MapType } from '@xyo-network/chain-protocol';
4
+ import type { WithStorageMeta } from '@xyo-network/payload-model';
5
+ import type { BalancesStepSummary } from '@xyo-network/xl1-protocol-sdk';
6
+ export declare function initBalanceSummaryMap(_traceProvider: TracerProvider): 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,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACxD,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;AAQxE,wBAAsB,qBAAqB,CAAC,cAAc,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,eAAe,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAOxI"}
@@ -0,0 +1,6 @@
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
+ export declare const initLocalBalanceSummaryMap: () => Promise<MapType<Hash, WithStorageMeta<BalancesStepSummary>>>;
6
+ //# 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;AAQxE,eAAO,MAAM,0BAA0B,QAAa,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,eAAe,CAAC,mBAAmB,CAAC,CAAC,CAM9G,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 { BaseServiceParams } from '@xyo-network/chain-services';
2
+ export interface LmdbMapParams extends BaseServiceParams {
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,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAEpE,MAAM,WAAW,aAAc,SAAQ,iBAAiB;IACtD,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;CAClB"}
@@ -0,0 +1,32 @@
1
+ import { SynchronousMap } from '@xyo-network/chain-protocol';
2
+ import { BaseService } from '@xyo-network/chain-services';
3
+ import { Database, Key, RootDatabase } from 'lmdb';
4
+ import { LmdbMapParams } from './Params.ts';
5
+ /**
6
+ * A synchronous LMDB-backed Map implementation.
7
+ * This class provides a synchronous interface to an LMDB database, allowing for key-value storage.
8
+ * It allows for multi-tenancy within a single LMDB environment by using a root database (located
9
+ * at this.folderPath) and a specific DB within the environment (specified by this.params.storeName).
10
+ * @template K - The type of keys in the map.
11
+ * @template V - The type of values in the map.
12
+ */
13
+ export declare class SynchronousLmdbMap<K extends Key, V> extends BaseService<LmdbMapParams> implements SynchronousMap<K, V> {
14
+ protected db: Database<V, K>;
15
+ protected rootDatabase: RootDatabase;
16
+ /**
17
+ * The path to the LMDB folder where the database is stored.
18
+ * This is constructed from the location and dbName parameters
19
+ * allowing for multiple DBs within the root (by specifying a
20
+ * different storeName).
21
+ * @returns The folder path for the LMDB database.
22
+ */
23
+ get folderPath(): string;
24
+ all(): V[];
25
+ clear(): void;
26
+ delete(id: K): boolean;
27
+ get(id: K): V | undefined;
28
+ has(id: K): boolean;
29
+ set(id: K, data: V): this;
30
+ startHandler(): Promise<void>;
31
+ }
32
+ //# sourceMappingURL=SynchronousLmdbMap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SynchronousLmdbMap.d.ts","sourceRoot":"","sources":["../../../../../src/orchestration/map/driver/lmdb/SynchronousLmdbMap.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACzD,OAAO,EACL,QAAQ,EAAE,GAAG,EAAQ,YAAY,EAClC,MAAM,MAAM,CAAA;AAEb,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAG3C;;;;;;;GAOG;AACH,qBACa,kBAAkB,CAAC,CAAC,SAAS,GAAG,EAAE,CAAC,CAAE,SAAQ,WAAW,CAAC,aAAa,CAAE,YAAW,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC;IAClH,SAAS,CAAC,EAAE,EAAG,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;IAC7B,SAAS,CAAC,YAAY,EAAG,YAAY,CAAA;IAErC;;;;;;OAMG;IACH,IAAI,UAAU,WAEb;IAED,GAAG,IAAI,CAAC,EAAE;IAIV,KAAK,IAAI,IAAI;IAIb,MAAM,CAAC,EAAE,EAAE,CAAC,GAAG,OAAO;IAItB,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,SAAS;IAIzB,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,OAAO;IAInB,GAAG,CAAC,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,IAAI;IAKV,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;CAO7C"}
@@ -0,0 +1,2 @@
1
+ export * from './SynchronousLmdbMap.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/orchestration/map/driver/lmdb/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './BalanceSummary/index.ts';
2
+ export * from './driver/index.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/orchestration/map/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,mBAAmB,CAAA"}
@@ -0,0 +1,12 @@
1
+ import type { MapType } from '@xyo-network/chain-protocol';
2
+ import type { StoreKind } from '../store/index.ts';
3
+ /**
4
+ * Returns a local persistent map
5
+ * @param dbName The name of the database
6
+ * @param storeName The name of the store
7
+ * @param kind The kind of the map
8
+ * @returns a map
9
+ */
10
+ export declare const getLocalPersistentMap: <TId, TData>(dbName: string, storeName: string, kind?: StoreKind) => Promise<MapType<TId, TData>>;
11
+ export declare const deleteLocalPersistentMap: (dbName: string, _storeName: string, kind?: StoreKind) => Promise<void>;
12
+ //# sourceMappingURL=localPersistentMap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"localPersistentMap.d.ts","sourceRoot":"","sources":["../../../src/orchestration/map/localPersistentMap.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AAE1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAIlD;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,GAAU,GAAG,EAAE,KAAK,EAAE,QAAQ,MAAM,EAAE,WAAW,MAAM,EAAE,OAAM,SAAkB,KAAG,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,CAUhJ,CAAA;AAED,eAAO,MAAM,wBAAwB,GAAU,QAAQ,MAAM,EAAE,YAAY,MAAM,EAAE,OAAM,SAAkB,KAAG,OAAO,CAAC,IAAI,CAWzH,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './lib/index.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/orchestration/repository/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './repositoryFromArchivist.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/orchestration/repository/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA"}
@@ -0,0 +1,6 @@
1
+ import type { AnyNonPromise } from '@xylabs/promise';
2
+ import type { ArchivistInstance } from '@xyo-network/archivist-model';
3
+ import type { Payload, WithStorageMeta } from '@xyo-network/payload-model';
4
+ import type { PayloadRepository } from '@xyo-network/xl1-protocol';
5
+ export declare const repositoryFromArchivist: <T extends Payload = Payload>(archivist: ArchivistInstance, predicate: (value: AnyNonPromise) => WithStorageMeta<T>) => PayloadRepository<Lowercase<string>, WithStorageMeta<T>>;
6
+ //# sourceMappingURL=repositoryFromArchivist.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repositoryFromArchivist.d.ts","sourceRoot":"","sources":["../../../../src/orchestration/repository/lib/repositoryFromArchivist.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AACpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC1E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAElE,eAAO,MAAM,uBAAuB,GAAI,CAAC,SAAS,OAAO,GAAG,OAAO,EACjE,WAAW,iBAAiB,EAC5B,WAAW,CAAC,KAAK,EAAE,aAAa,KAAK,eAAe,CAAC,CAAC,CAAC,6DAiBxD,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { WalletInstance } from '@xyo-network/wallet-model';
2
+ import type { Initializable } from '@xyo-network/xl1-protocol';
3
+ export declare const initAccount: Initializable<void, WalletInstance>;
4
+ //# sourceMappingURL=account.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../src/orchestration/services/implementation/account.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAI9D,eAAO,MAAM,WAAW,EAAE,aAAa,CAAC,IAAI,EAAE,cAAc,CAa3D,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { BaseAccountBalanceServiceParams } from '@xyo-network/chain-services';
2
+ import type { AccountBalanceServiceV2, Initializable } from '@xyo-network/xl1-protocol';
3
+ export declare const initBalanceService: Initializable<BaseAccountBalanceServiceParams, AccountBalanceServiceV2>;
4
+ //# sourceMappingURL=balance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"balance.d.ts","sourceRoot":"","sources":["../../../../src/orchestration/services/implementation/balance.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,6BAA6B,CAAA;AAElF,OAAO,KAAK,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAIvF,eAAO,MAAM,kBAAkB,EAAE,aAAa,CAAC,+BAA+B,EAAE,uBAAuB,CAKtG,CAAA"}
@@ -0,0 +1,6 @@
1
+ import type { BaseAccountableServiceParams } from '@xyo-network/chain-services';
2
+ import { EvmChainService } from '@xyo-network/chain-services';
3
+ import type { Initializable } from '@xyo-network/xl1-protocol';
4
+ export declare const canUseEvmContractChainService: () => boolean;
5
+ export declare const initEvmContractChainService: Initializable<BaseAccountableServiceParams, EvmChainService>;
6
+ //# sourceMappingURL=evm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evm.d.ts","sourceRoot":"","sources":["../../../../../src/orchestration/services/implementation/chain/evm.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAQ9D,eAAO,MAAM,6BAA6B,eAEzC,CAAA;AAED,eAAO,MAAM,2BAA2B,EAAE,aAAa,CAAC,4BAA4B,EAAE,eAAe,CAgBpG,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { BaseAccountableServiceParams } from '@xyo-network/chain-services';
2
+ import type { ChainService, Initializable } from '@xyo-network/xl1-protocol';
3
+ export declare const initChainService: Initializable<BaseAccountableServiceParams, ChainService>;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/orchestration/services/implementation/chain/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAE/E,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAM5E,eAAO,MAAM,gBAAgB,EAAE,aAAa,CAAC,4BAA4B,EAAE,YAAY,CAA4D,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './initEvmProvider.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/orchestration/services/implementation/evm/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare const canUseChainId: () => boolean;
2
+ export declare const getChainId: () => number;
3
+ //# sourceMappingURL=initChainId.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"initChainId.d.ts","sourceRoot":"","sources":["../../../../../src/orchestration/services/implementation/evm/initChainId.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,QAAO,OAEhC,CAAA;AAED,eAAO,MAAM,UAAU,cAUtB,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { JsonRpcProvider } from 'ethers/providers';
2
+ export declare const initEvmProvider: () => Promise<JsonRpcProvider>;
3
+ export declare const canUseEvmProvider: () => boolean;
4
+ //# sourceMappingURL=initEvmProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"initEvmProvider.d.ts","sourceRoot":"","sources":["../../../../../src/orchestration/services/implementation/evm/initEvmProvider.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAOvD,eAAO,MAAM,eAAe,gCAQ3B,CAAA;AAED,eAAO,MAAM,iBAAiB,eAE7B,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { JsonRpcProvider } from 'ethers/providers';
2
+ export declare const initJsonRpcProvider: () => Promise<JsonRpcProvider>;
3
+ export declare const canUseJsonRpcProvider: () => boolean;
4
+ export declare const getJsonRpcProviderConfig: () => readonly [string, number];
5
+ //# sourceMappingURL=initGanacheProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"initGanacheProvider.d.ts","sourceRoot":"","sources":["../../../../../src/orchestration/services/implementation/evm/initGanacheProvider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAIlD,eAAO,MAAM,mBAAmB,gCAG/B,CAAA;AAED,eAAO,MAAM,qBAAqB,eAGjC,CAAA;AAED,eAAO,MAAM,wBAAwB,iCAGpC,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { InfuraProvider } from 'ethers/providers';
2
+ export declare const initInfuraProvider: () => Promise<InfuraProvider>;
3
+ export declare const canUseInfuraProvider: () => boolean;
4
+ export declare const getInfuraProviderConfig: () => readonly [number, string, string];
5
+ //# sourceMappingURL=initInfuraProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"initInfuraProvider.d.ts","sourceRoot":"","sources":["../../../../../src/orchestration/services/implementation/evm/initInfuraProvider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAMjD,eAAO,MAAM,kBAAkB,+BAK9B,CAAA;AAED,eAAO,MAAM,oBAAoB,QAAO,OAIvC,CAAA;AAED,eAAO,MAAM,uBAAuB,yCAInC,CAAA"}
@@ -0,0 +1,10 @@
1
+ import type { ArchivistInstance } from '@xyo-network/archivist-model';
2
+ import type { WithStorageMeta } from '@xyo-network/payload-model';
3
+ import type { WalletInstance } from '@xyo-network/wallet-model';
4
+ import type { BlockBoundWitness, Initializable } from '@xyo-network/xl1-protocol';
5
+ export declare const initHead: Initializable<{
6
+ account: WalletInstance;
7
+ chainArchivist: ArchivistInstance;
8
+ chainSubmissionsArchivistWrite: ArchivistInstance;
9
+ }, WithStorageMeta<BlockBoundWitness>>;
10
+ //# sourceMappingURL=head.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"head.d.ts","sourceRoot":"","sources":["../../../../src/orchestration/services/implementation/head.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAErE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAsBjF,eAAO,MAAM,QAAQ,EAAE,aAAa,CAAC;IACnC,OAAO,EAAE,cAAc,CAAA;IACvB,cAAc,EAAE,iBAAiB,CAAA;IACjC,8BAA8B,EAAE,iBAAiB,CAAA;CAClD,EAAE,eAAe,CAAC,iBAAiB,CAAC,CAUnC,CAAA"}