@mainsail/contracts 0.0.1-alpha.1

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 (481) hide show
  1. package/distribution/constants/flags.d.ts +3 -0
  2. package/distribution/constants/flags.d.ts.map +1 -0
  3. package/distribution/constants/flags.js +62 -0
  4. package/distribution/constants/flags.js.map +1 -0
  5. package/distribution/constants/index.d.ts +3 -0
  6. package/distribution/constants/index.d.ts.map +1 -0
  7. package/distribution/constants/index.js +19 -0
  8. package/distribution/constants/index.js.map +1 -0
  9. package/distribution/constants/units.d.ts +8 -0
  10. package/distribution/constants/units.d.ts.map +1 -0
  11. package/distribution/constants/units.js +12 -0
  12. package/distribution/constants/units.js.map +1 -0
  13. package/distribution/contracts/api-sync.d.ts +8 -0
  14. package/distribution/contracts/api-sync.d.ts.map +1 -0
  15. package/distribution/contracts/api-sync.js +3 -0
  16. package/distribution/contracts/api-sync.js.map +1 -0
  17. package/distribution/contracts/api.d.ts +34 -0
  18. package/distribution/contracts/api.d.ts.map +1 -0
  19. package/distribution/contracts/api.js +9 -0
  20. package/distribution/contracts/api.js.map +1 -0
  21. package/distribution/contracts/consensus/consensus.d.ts +96 -0
  22. package/distribution/contracts/consensus/consensus.d.ts.map +1 -0
  23. package/distribution/contracts/consensus/consensus.js +3 -0
  24. package/distribution/contracts/consensus/consensus.js.map +1 -0
  25. package/distribution/contracts/consensus/enums.d.ts +11 -0
  26. package/distribution/contracts/consensus/enums.d.ts.map +1 -0
  27. package/distribution/contracts/consensus/enums.js +16 -0
  28. package/distribution/contracts/consensus/enums.js.map +1 -0
  29. package/distribution/contracts/consensus/index.d.ts +4 -0
  30. package/distribution/contracts/consensus/index.d.ts.map +1 -0
  31. package/distribution/contracts/consensus/index.js +20 -0
  32. package/distribution/contracts/consensus/index.js.map +1 -0
  33. package/distribution/contracts/consensus/processor.d.ts +17 -0
  34. package/distribution/contracts/consensus/processor.d.ts.map +1 -0
  35. package/distribution/contracts/consensus/processor.js +3 -0
  36. package/distribution/contracts/consensus/processor.js.map +1 -0
  37. package/distribution/contracts/crypto/block.d.ts +75 -0
  38. package/distribution/contracts/crypto/block.d.ts.map +1 -0
  39. package/distribution/contracts/crypto/block.js +3 -0
  40. package/distribution/contracts/crypto/block.js.map +1 -0
  41. package/distribution/contracts/crypto/commit.d.ts +40 -0
  42. package/distribution/contracts/crypto/commit.d.ts.map +1 -0
  43. package/distribution/contracts/crypto/commit.js +3 -0
  44. package/distribution/contracts/crypto/commit.js.map +1 -0
  45. package/distribution/contracts/crypto/config.d.ts +16 -0
  46. package/distribution/contracts/crypto/config.d.ts.map +1 -0
  47. package/distribution/contracts/crypto/config.js +3 -0
  48. package/distribution/contracts/crypto/config.js.map +1 -0
  49. package/distribution/contracts/crypto/crypto.d.ts +6 -0
  50. package/distribution/contracts/crypto/crypto.d.ts.map +1 -0
  51. package/distribution/contracts/crypto/crypto.js +3 -0
  52. package/distribution/contracts/crypto/crypto.js.map +1 -0
  53. package/distribution/contracts/crypto/enums.d.ts +16 -0
  54. package/distribution/contracts/crypto/enums.d.ts.map +1 -0
  55. package/distribution/contracts/crypto/enums.js +22 -0
  56. package/distribution/contracts/crypto/enums.js.map +1 -0
  57. package/distribution/contracts/crypto/hash.d.ts +8 -0
  58. package/distribution/contracts/crypto/hash.d.ts.map +1 -0
  59. package/distribution/contracts/crypto/hash.js +3 -0
  60. package/distribution/contracts/crypto/hash.js.map +1 -0
  61. package/distribution/contracts/crypto/identities.d.ts +54 -0
  62. package/distribution/contracts/crypto/identities.d.ts.map +1 -0
  63. package/distribution/contracts/crypto/identities.js +3 -0
  64. package/distribution/contracts/crypto/identities.js.map +1 -0
  65. package/distribution/contracts/crypto/index.d.ts +13 -0
  66. package/distribution/contracts/crypto/index.d.ts.map +1 -0
  67. package/distribution/contracts/crypto/index.js +29 -0
  68. package/distribution/contracts/crypto/index.js.map +1 -0
  69. package/distribution/contracts/crypto/messages.d.ts +131 -0
  70. package/distribution/contracts/crypto/messages.d.ts.map +1 -0
  71. package/distribution/contracts/crypto/messages.js +9 -0
  72. package/distribution/contracts/crypto/messages.js.map +1 -0
  73. package/distribution/contracts/crypto/networks.d.ts +60 -0
  74. package/distribution/contracts/crypto/networks.d.ts.map +1 -0
  75. package/distribution/contracts/crypto/networks.js +3 -0
  76. package/distribution/contracts/crypto/networks.js.map +1 -0
  77. package/distribution/contracts/crypto/signatures.d.ts +5 -0
  78. package/distribution/contracts/crypto/signatures.d.ts.map +1 -0
  79. package/distribution/contracts/crypto/signatures.js +3 -0
  80. package/distribution/contracts/crypto/signatures.js.map +1 -0
  81. package/distribution/contracts/crypto/transactions.d.ts +129 -0
  82. package/distribution/contracts/crypto/transactions.d.ts.map +1 -0
  83. package/distribution/contracts/crypto/transactions.js +3 -0
  84. package/distribution/contracts/crypto/transactions.js.map +1 -0
  85. package/distribution/contracts/crypto/validator.d.ts +16 -0
  86. package/distribution/contracts/crypto/validator.d.ts.map +1 -0
  87. package/distribution/contracts/crypto/validator.js +3 -0
  88. package/distribution/contracts/crypto/validator.js.map +1 -0
  89. package/distribution/contracts/database.d.ts +13 -0
  90. package/distribution/contracts/database.d.ts.map +1 -0
  91. package/distribution/contracts/database.js +3 -0
  92. package/distribution/contracts/database.js.map +1 -0
  93. package/distribution/contracts/fees.d.ts +6 -0
  94. package/distribution/contracts/fees.d.ts.map +1 -0
  95. package/distribution/contracts/fees.js +3 -0
  96. package/distribution/contracts/fees.js.map +1 -0
  97. package/distribution/contracts/flags.d.ts +3 -0
  98. package/distribution/contracts/flags.d.ts.map +1 -0
  99. package/distribution/contracts/flags.js +3 -0
  100. package/distribution/contracts/flags.js.map +1 -0
  101. package/distribution/contracts/index.d.ts +21 -0
  102. package/distribution/contracts/index.d.ts.map +1 -0
  103. package/distribution/contracts/index.js +47 -0
  104. package/distribution/contracts/index.js.map +1 -0
  105. package/distribution/contracts/kernel/application.d.ts +54 -0
  106. package/distribution/contracts/kernel/application.d.ts.map +1 -0
  107. package/distribution/contracts/kernel/application.js +3 -0
  108. package/distribution/contracts/kernel/application.js.map +1 -0
  109. package/distribution/contracts/kernel/cache.d.ts +21 -0
  110. package/distribution/contracts/kernel/cache.d.ts.map +1 -0
  111. package/distribution/contracts/kernel/cache.js +3 -0
  112. package/distribution/contracts/kernel/cache.js.map +1 -0
  113. package/distribution/contracts/kernel/config.d.ts +5 -0
  114. package/distribution/contracts/kernel/config.d.ts.map +1 -0
  115. package/distribution/contracts/kernel/config.js +3 -0
  116. package/distribution/contracts/kernel/config.js.map +1 -0
  117. package/distribution/contracts/kernel/container.d.ts +2 -0
  118. package/distribution/contracts/kernel/container.d.ts.map +1 -0
  119. package/distribution/contracts/kernel/container.js +3 -0
  120. package/distribution/contracts/kernel/container.js.map +1 -0
  121. package/distribution/contracts/kernel/events.d.ts +24 -0
  122. package/distribution/contracts/kernel/events.d.ts.map +1 -0
  123. package/distribution/contracts/kernel/events.js +3 -0
  124. package/distribution/contracts/kernel/events.js.map +1 -0
  125. package/distribution/contracts/kernel/filesystem.d.ts +17 -0
  126. package/distribution/contracts/kernel/filesystem.d.ts.map +1 -0
  127. package/distribution/contracts/kernel/filesystem.js +3 -0
  128. package/distribution/contracts/kernel/filesystem.js.map +1 -0
  129. package/distribution/contracts/kernel/index.d.ts +14 -0
  130. package/distribution/contracts/kernel/index.d.ts.map +1 -0
  131. package/distribution/contracts/kernel/index.js +30 -0
  132. package/distribution/contracts/kernel/index.js.map +1 -0
  133. package/distribution/contracts/kernel/lock.d.ts +5 -0
  134. package/distribution/contracts/kernel/lock.d.ts.map +1 -0
  135. package/distribution/contracts/kernel/lock.js +3 -0
  136. package/distribution/contracts/kernel/lock.js.map +1 -0
  137. package/distribution/contracts/kernel/log.d.ts +14 -0
  138. package/distribution/contracts/kernel/log.d.ts.map +1 -0
  139. package/distribution/contracts/kernel/log.js +3 -0
  140. package/distribution/contracts/kernel/log.js.map +1 -0
  141. package/distribution/contracts/kernel/pipeline.d.ts +9 -0
  142. package/distribution/contracts/kernel/pipeline.d.ts.map +1 -0
  143. package/distribution/contracts/kernel/pipeline.js +3 -0
  144. package/distribution/contracts/kernel/pipeline.js.map +1 -0
  145. package/distribution/contracts/kernel/process-actions.d.ts +9 -0
  146. package/distribution/contracts/kernel/process-actions.d.ts.map +1 -0
  147. package/distribution/contracts/kernel/process-actions.js +3 -0
  148. package/distribution/contracts/kernel/process-actions.js.map +1 -0
  149. package/distribution/contracts/kernel/queue.d.ts +20 -0
  150. package/distribution/contracts/kernel/queue.d.ts.map +1 -0
  151. package/distribution/contracts/kernel/queue.js +3 -0
  152. package/distribution/contracts/kernel/queue.js.map +1 -0
  153. package/distribution/contracts/kernel/repository.d.ts +11 -0
  154. package/distribution/contracts/kernel/repository.d.ts.map +1 -0
  155. package/distribution/contracts/kernel/repository.js +3 -0
  156. package/distribution/contracts/kernel/repository.js.map +1 -0
  157. package/distribution/contracts/kernel/validation.d.ts +12 -0
  158. package/distribution/contracts/kernel/validation.d.ts.map +1 -0
  159. package/distribution/contracts/kernel/validation.js +3 -0
  160. package/distribution/contracts/kernel/validation.js.map +1 -0
  161. package/distribution/contracts/network-generator.d.ts +61 -0
  162. package/distribution/contracts/network-generator.d.ts.map +1 -0
  163. package/distribution/contracts/network-generator.js +3 -0
  164. package/distribution/contracts/network-generator.js.map +1 -0
  165. package/distribution/contracts/p2p/api-node-discoverer.d.ts +11 -0
  166. package/distribution/contracts/p2p/api-node-discoverer.d.ts.map +1 -0
  167. package/distribution/contracts/p2p/api-node-discoverer.js +3 -0
  168. package/distribution/contracts/p2p/api-node-discoverer.js.map +1 -0
  169. package/distribution/contracts/p2p/api-node-processor.d.ts +8 -0
  170. package/distribution/contracts/p2p/api-node-processor.d.ts.map +1 -0
  171. package/distribution/contracts/p2p/api-node-processor.js +3 -0
  172. package/distribution/contracts/p2p/api-node-processor.js.map +1 -0
  173. package/distribution/contracts/p2p/api-node-repository.d.ts +11 -0
  174. package/distribution/contracts/p2p/api-node-repository.d.ts.map +1 -0
  175. package/distribution/contracts/p2p/api-node-repository.js +3 -0
  176. package/distribution/contracts/p2p/api-node-repository.js.map +1 -0
  177. package/distribution/contracts/p2p/api-node-verifier.d.ts +5 -0
  178. package/distribution/contracts/p2p/api-node-verifier.d.ts.map +1 -0
  179. package/distribution/contracts/p2p/api-node-verifier.js +3 -0
  180. package/distribution/contracts/p2p/api-node-verifier.js.map +1 -0
  181. package/distribution/contracts/p2p/api-node.d.ts +14 -0
  182. package/distribution/contracts/p2p/api-node.d.ts.map +1 -0
  183. package/distribution/contracts/p2p/api-node.js +3 -0
  184. package/distribution/contracts/p2p/api-node.js.map +1 -0
  185. package/distribution/contracts/p2p/broadcaster.d.ts +8 -0
  186. package/distribution/contracts/p2p/broadcaster.d.ts.map +1 -0
  187. package/distribution/contracts/p2p/broadcaster.js +3 -0
  188. package/distribution/contracts/p2p/broadcaster.js.map +1 -0
  189. package/distribution/contracts/p2p/downloader.d.ts +7 -0
  190. package/distribution/contracts/p2p/downloader.d.ts.map +1 -0
  191. package/distribution/contracts/p2p/downloader.js +3 -0
  192. package/distribution/contracts/p2p/downloader.js.map +1 -0
  193. package/distribution/contracts/p2p/endpoints.d.ts +92 -0
  194. package/distribution/contracts/p2p/endpoints.d.ts.map +1 -0
  195. package/distribution/contracts/p2p/endpoints.js +3 -0
  196. package/distribution/contracts/p2p/endpoints.js.map +1 -0
  197. package/distribution/contracts/p2p/enums.d.ts +5 -0
  198. package/distribution/contracts/p2p/enums.d.ts.map +1 -0
  199. package/distribution/contracts/p2p/enums.js +9 -0
  200. package/distribution/contracts/p2p/enums.js.map +1 -0
  201. package/distribution/contracts/p2p/header-service.d.ts +6 -0
  202. package/distribution/contracts/p2p/header-service.d.ts.map +1 -0
  203. package/distribution/contracts/p2p/header-service.js +3 -0
  204. package/distribution/contracts/p2p/header-service.js.map +1 -0
  205. package/distribution/contracts/p2p/header.d.ts +22 -0
  206. package/distribution/contracts/p2p/header.d.ts.map +1 -0
  207. package/distribution/contracts/p2p/header.js +3 -0
  208. package/distribution/contracts/p2p/header.js.map +1 -0
  209. package/distribution/contracts/p2p/index.d.ts +25 -0
  210. package/distribution/contracts/p2p/index.d.ts.map +1 -0
  211. package/distribution/contracts/p2p/index.js +41 -0
  212. package/distribution/contracts/p2p/index.js.map +1 -0
  213. package/distribution/contracts/p2p/log.d.ts +13 -0
  214. package/distribution/contracts/p2p/log.d.ts.map +1 -0
  215. package/distribution/contracts/p2p/log.js +3 -0
  216. package/distribution/contracts/p2p/log.js.map +1 -0
  217. package/distribution/contracts/p2p/nes.d.ts +16 -0
  218. package/distribution/contracts/p2p/nes.d.ts.map +1 -0
  219. package/distribution/contracts/p2p/nes.js +3 -0
  220. package/distribution/contracts/p2p/nes.js.map +1 -0
  221. package/distribution/contracts/p2p/peer-communicator.d.ts +23 -0
  222. package/distribution/contracts/p2p/peer-communicator.d.ts.map +1 -0
  223. package/distribution/contracts/p2p/peer-communicator.js +3 -0
  224. package/distribution/contracts/p2p/peer-communicator.js.map +1 -0
  225. package/distribution/contracts/p2p/peer-connector.d.ts +8 -0
  226. package/distribution/contracts/p2p/peer-connector.d.ts.map +1 -0
  227. package/distribution/contracts/p2p/peer-connector.js +3 -0
  228. package/distribution/contracts/p2p/peer-connector.js.map +1 -0
  229. package/distribution/contracts/p2p/peer-discoverer.d.ts +6 -0
  230. package/distribution/contracts/p2p/peer-discoverer.d.ts.map +1 -0
  231. package/distribution/contracts/p2p/peer-discoverer.js +3 -0
  232. package/distribution/contracts/p2p/peer-discoverer.js.map +1 -0
  233. package/distribution/contracts/p2p/peer-disposer.d.ts +8 -0
  234. package/distribution/contracts/p2p/peer-disposer.d.ts.map +1 -0
  235. package/distribution/contracts/p2p/peer-disposer.js +3 -0
  236. package/distribution/contracts/p2p/peer-disposer.js.map +1 -0
  237. package/distribution/contracts/p2p/peer-processor.d.ts +10 -0
  238. package/distribution/contracts/p2p/peer-processor.d.ts.map +1 -0
  239. package/distribution/contracts/p2p/peer-processor.js +3 -0
  240. package/distribution/contracts/p2p/peer-processor.js.map +1 -0
  241. package/distribution/contracts/p2p/peer-repository.d.ts +18 -0
  242. package/distribution/contracts/p2p/peer-repository.d.ts.map +1 -0
  243. package/distribution/contracts/p2p/peer-repository.js +3 -0
  244. package/distribution/contracts/p2p/peer-repository.js.map +1 -0
  245. package/distribution/contracts/p2p/peer-verifier.d.ts +5 -0
  246. package/distribution/contracts/p2p/peer-verifier.d.ts.map +1 -0
  247. package/distribution/contracts/p2p/peer-verifier.js +3 -0
  248. package/distribution/contracts/p2p/peer-verifier.js.map +1 -0
  249. package/distribution/contracts/p2p/peer.d.ts +71 -0
  250. package/distribution/contracts/p2p/peer.d.ts.map +1 -0
  251. package/distribution/contracts/p2p/peer.js +3 -0
  252. package/distribution/contracts/p2p/peer.js.map +1 -0
  253. package/distribution/contracts/p2p/server.d.ts +16 -0
  254. package/distribution/contracts/p2p/server.d.ts.map +1 -0
  255. package/distribution/contracts/p2p/server.js +3 -0
  256. package/distribution/contracts/p2p/server.js.map +1 -0
  257. package/distribution/contracts/p2p/service.d.ts +6 -0
  258. package/distribution/contracts/p2p/service.d.ts.map +1 -0
  259. package/distribution/contracts/p2p/service.js +3 -0
  260. package/distribution/contracts/p2p/service.js.map +1 -0
  261. package/distribution/contracts/p2p/state.d.ts +6 -0
  262. package/distribution/contracts/p2p/state.d.ts.map +1 -0
  263. package/distribution/contracts/p2p/state.js +3 -0
  264. package/distribution/contracts/p2p/state.js.map +1 -0
  265. package/distribution/contracts/processor.d.ts +28 -0
  266. package/distribution/contracts/processor.d.ts.map +1 -0
  267. package/distribution/contracts/processor.js +3 -0
  268. package/distribution/contracts/processor.js.map +1 -0
  269. package/distribution/contracts/proposer.d.ts +5 -0
  270. package/distribution/contracts/proposer.d.ts.map +1 -0
  271. package/distribution/contracts/proposer.js +3 -0
  272. package/distribution/contracts/proposer.js.map +1 -0
  273. package/distribution/contracts/serializer.d.ts +32 -0
  274. package/distribution/contracts/serializer.d.ts.map +1 -0
  275. package/distribution/contracts/serializer.js +3 -0
  276. package/distribution/contracts/serializer.js.map +1 -0
  277. package/distribution/contracts/shared/dynamic-fee.d.ts +8 -0
  278. package/distribution/contracts/shared/dynamic-fee.d.ts.map +1 -0
  279. package/distribution/contracts/shared/dynamic-fee.js +3 -0
  280. package/distribution/contracts/shared/dynamic-fee.js.map +1 -0
  281. package/distribution/contracts/shared/index.d.ts +3 -0
  282. package/distribution/contracts/shared/index.d.ts.map +1 -0
  283. package/distribution/contracts/shared/index.js +19 -0
  284. package/distribution/contracts/shared/index.js.map +1 -0
  285. package/distribution/contracts/shared/rounds.d.ts +7 -0
  286. package/distribution/contracts/shared/rounds.d.ts.map +1 -0
  287. package/distribution/contracts/shared/rounds.js +3 -0
  288. package/distribution/contracts/shared/rounds.js.map +1 -0
  289. package/distribution/contracts/state/attributes.d.ts +22 -0
  290. package/distribution/contracts/state/attributes.d.ts.map +1 -0
  291. package/distribution/contracts/state/attributes.js +12 -0
  292. package/distribution/contracts/state/attributes.js.map +1 -0
  293. package/distribution/contracts/state/block-state.d.ts +12 -0
  294. package/distribution/contracts/state/block-state.d.ts.map +1 -0
  295. package/distribution/contracts/state/block-state.js +3 -0
  296. package/distribution/contracts/state/block-state.js.map +1 -0
  297. package/distribution/contracts/state/index-set.d.ts +5 -0
  298. package/distribution/contracts/state/index-set.d.ts.map +1 -0
  299. package/distribution/contracts/state/index-set.js +3 -0
  300. package/distribution/contracts/state/index-set.js.map +1 -0
  301. package/distribution/contracts/state/index.d.ts +12 -0
  302. package/distribution/contracts/state/index.d.ts.map +1 -0
  303. package/distribution/contracts/state/index.js +28 -0
  304. package/distribution/contracts/state/index.js.map +1 -0
  305. package/distribution/contracts/state/repository.d.ts +14 -0
  306. package/distribution/contracts/state/repository.d.ts.map +1 -0
  307. package/distribution/contracts/state/repository.js +3 -0
  308. package/distribution/contracts/state/repository.js.map +1 -0
  309. package/distribution/contracts/state/service.d.ts +10 -0
  310. package/distribution/contracts/state/service.d.ts.map +1 -0
  311. package/distribution/contracts/state/service.js +3 -0
  312. package/distribution/contracts/state/service.js.map +1 -0
  313. package/distribution/contracts/state/snapshots.d.ts +8 -0
  314. package/distribution/contracts/state/snapshots.d.ts.map +1 -0
  315. package/distribution/contracts/state/snapshots.js +3 -0
  316. package/distribution/contracts/state/snapshots.js.map +1 -0
  317. package/distribution/contracts/state/state-verifier.d.ts +4 -0
  318. package/distribution/contracts/state/state-verifier.d.ts.map +1 -0
  319. package/distribution/contracts/state/state-verifier.js +3 -0
  320. package/distribution/contracts/state/state-verifier.js.map +1 -0
  321. package/distribution/contracts/state/state.d.ts +5 -0
  322. package/distribution/contracts/state/state.d.ts.map +1 -0
  323. package/distribution/contracts/state/state.js +3 -0
  324. package/distribution/contracts/state/state.js.map +1 -0
  325. package/distribution/contracts/state/store.d.ts +21 -0
  326. package/distribution/contracts/state/store.d.ts.map +1 -0
  327. package/distribution/contracts/state/store.js +3 -0
  328. package/distribution/contracts/state/store.js.map +1 -0
  329. package/distribution/contracts/state/transaction-validator.d.ts +6 -0
  330. package/distribution/contracts/state/transaction-validator.d.ts.map +1 -0
  331. package/distribution/contracts/state/transaction-validator.js +3 -0
  332. package/distribution/contracts/state/transaction-validator.js.map +1 -0
  333. package/distribution/contracts/state/wallets.d.ts +103 -0
  334. package/distribution/contracts/state/wallets.d.ts.map +1 -0
  335. package/distribution/contracts/state/wallets.js +19 -0
  336. package/distribution/contracts/state/wallets.js.map +1 -0
  337. package/distribution/contracts/transaction-pool/collator.d.ts +5 -0
  338. package/distribution/contracts/transaction-pool/collator.d.ts.map +1 -0
  339. package/distribution/contracts/transaction-pool/collator.js +3 -0
  340. package/distribution/contracts/transaction-pool/collator.js.map +1 -0
  341. package/distribution/contracts/transaction-pool/dynamic-fee-matcher.d.ts +6 -0
  342. package/distribution/contracts/transaction-pool/dynamic-fee-matcher.d.ts.map +1 -0
  343. package/distribution/contracts/transaction-pool/dynamic-fee-matcher.js +3 -0
  344. package/distribution/contracts/transaction-pool/dynamic-fee-matcher.js.map +1 -0
  345. package/distribution/contracts/transaction-pool/expiration-service.d.ts +7 -0
  346. package/distribution/contracts/transaction-pool/expiration-service.d.ts.map +1 -0
  347. package/distribution/contracts/transaction-pool/expiration-service.js +3 -0
  348. package/distribution/contracts/transaction-pool/expiration-service.js.map +1 -0
  349. package/distribution/contracts/transaction-pool/index.d.ts +11 -0
  350. package/distribution/contracts/transaction-pool/index.d.ts.map +1 -0
  351. package/distribution/contracts/transaction-pool/index.js +27 -0
  352. package/distribution/contracts/transaction-pool/index.js.map +1 -0
  353. package/distribution/contracts/transaction-pool/mempool.d.ts +13 -0
  354. package/distribution/contracts/transaction-pool/mempool.d.ts.map +1 -0
  355. package/distribution/contracts/transaction-pool/mempool.js +3 -0
  356. package/distribution/contracts/transaction-pool/mempool.js.map +1 -0
  357. package/distribution/contracts/transaction-pool/processor.d.ts +23 -0
  358. package/distribution/contracts/transaction-pool/processor.d.ts.map +1 -0
  359. package/distribution/contracts/transaction-pool/processor.js +3 -0
  360. package/distribution/contracts/transaction-pool/processor.js.map +1 -0
  361. package/distribution/contracts/transaction-pool/query.d.ts +20 -0
  362. package/distribution/contracts/transaction-pool/query.d.ts.map +1 -0
  363. package/distribution/contracts/transaction-pool/query.js +3 -0
  364. package/distribution/contracts/transaction-pool/query.js.map +1 -0
  365. package/distribution/contracts/transaction-pool/sender-mempool.d.ts +12 -0
  366. package/distribution/contracts/transaction-pool/sender-mempool.d.ts.map +1 -0
  367. package/distribution/contracts/transaction-pool/sender-mempool.js +3 -0
  368. package/distribution/contracts/transaction-pool/sender-mempool.js.map +1 -0
  369. package/distribution/contracts/transaction-pool/sender-state.d.ts +7 -0
  370. package/distribution/contracts/transaction-pool/sender-state.d.ts.map +1 -0
  371. package/distribution/contracts/transaction-pool/sender-state.js +3 -0
  372. package/distribution/contracts/transaction-pool/sender-state.js.map +1 -0
  373. package/distribution/contracts/transaction-pool/service.d.ts +11 -0
  374. package/distribution/contracts/transaction-pool/service.d.ts.map +1 -0
  375. package/distribution/contracts/transaction-pool/service.js +3 -0
  376. package/distribution/contracts/transaction-pool/service.js.map +1 -0
  377. package/distribution/contracts/transaction-pool/storage.d.ts +16 -0
  378. package/distribution/contracts/transaction-pool/storage.d.ts.map +1 -0
  379. package/distribution/contracts/transaction-pool/storage.js +3 -0
  380. package/distribution/contracts/transaction-pool/storage.js.map +1 -0
  381. package/distribution/contracts/transactions.d.ts +42 -0
  382. package/distribution/contracts/transactions.d.ts.map +1 -0
  383. package/distribution/contracts/transactions.js +3 -0
  384. package/distribution/contracts/transactions.js.map +1 -0
  385. package/distribution/contracts/types/container.d.ts +4 -0
  386. package/distribution/contracts/types/container.d.ts.map +1 -0
  387. package/distribution/contracts/types/container.js +3 -0
  388. package/distribution/contracts/types/container.js.map +1 -0
  389. package/distribution/contracts/types/index.d.ts +8 -0
  390. package/distribution/contracts/types/index.d.ts.map +1 -0
  391. package/distribution/contracts/types/index.js +3 -0
  392. package/distribution/contracts/types/index.js.map +1 -0
  393. package/distribution/contracts/validator-set.d.ts +9 -0
  394. package/distribution/contracts/validator-set.d.ts.map +1 -0
  395. package/distribution/contracts/validator-set.js +3 -0
  396. package/distribution/contracts/validator-set.js.map +1 -0
  397. package/distribution/contracts/validator.d.ts +13 -0
  398. package/distribution/contracts/validator.d.ts.map +1 -0
  399. package/distribution/contracts/validator.js +3 -0
  400. package/distribution/contracts/validator.js.map +1 -0
  401. package/distribution/exceptions/base.d.ts +9 -0
  402. package/distribution/exceptions/base.d.ts.map +1 -0
  403. package/distribution/exceptions/base.js +29 -0
  404. package/distribution/exceptions/base.js.map +1 -0
  405. package/distribution/exceptions/cache.d.ts +6 -0
  406. package/distribution/exceptions/cache.d.ts.map +1 -0
  407. package/distribution/exceptions/cache.js +11 -0
  408. package/distribution/exceptions/cache.js.map +1 -0
  409. package/distribution/exceptions/cli.d.ts +8 -0
  410. package/distribution/exceptions/cli.d.ts.map +1 -0
  411. package/distribution/exceptions/cli.js +17 -0
  412. package/distribution/exceptions/cli.js.map +1 -0
  413. package/distribution/exceptions/config.d.ts +19 -0
  414. package/distribution/exceptions/config.d.ts.map +1 -0
  415. package/distribution/exceptions/config.js +35 -0
  416. package/distribution/exceptions/config.js.map +1 -0
  417. package/distribution/exceptions/consensus.d.ts +5 -0
  418. package/distribution/exceptions/consensus.d.ts.map +1 -0
  419. package/distribution/exceptions/consensus.js +11 -0
  420. package/distribution/exceptions/consensus.js.map +1 -0
  421. package/distribution/exceptions/container.d.ts +18 -0
  422. package/distribution/exceptions/container.d.ts.map +1 -0
  423. package/distribution/exceptions/container.js +32 -0
  424. package/distribution/exceptions/container.js.map +1 -0
  425. package/distribution/exceptions/crypto.d.ts +199 -0
  426. package/distribution/exceptions/crypto.d.ts.map +1 -0
  427. package/distribution/exceptions/crypto.js +400 -0
  428. package/distribution/exceptions/crypto.js.map +1 -0
  429. package/distribution/exceptions/filesystem.d.ts +12 -0
  430. package/distribution/exceptions/filesystem.d.ts.map +1 -0
  431. package/distribution/exceptions/filesystem.js +23 -0
  432. package/distribution/exceptions/filesystem.js.map +1 -0
  433. package/distribution/exceptions/forger.d.ts +8 -0
  434. package/distribution/exceptions/forger.d.ts.map +1 -0
  435. package/distribution/exceptions/forger.js +17 -0
  436. package/distribution/exceptions/forger.js.map +1 -0
  437. package/distribution/exceptions/index.d.ts +17 -0
  438. package/distribution/exceptions/index.d.ts.map +1 -0
  439. package/distribution/exceptions/index.js +33 -0
  440. package/distribution/exceptions/index.js.map +1 -0
  441. package/distribution/exceptions/logic.d.ts +28 -0
  442. package/distribution/exceptions/logic.d.ts.map +1 -0
  443. package/distribution/exceptions/logic.js +50 -0
  444. package/distribution/exceptions/logic.js.map +1 -0
  445. package/distribution/exceptions/p2p.d.ts +21 -0
  446. package/distribution/exceptions/p2p.d.ts.map +1 -0
  447. package/distribution/exceptions/p2p.js +41 -0
  448. package/distribution/exceptions/p2p.js.map +1 -0
  449. package/distribution/exceptions/plugins.d.ts +27 -0
  450. package/distribution/exceptions/plugins.d.ts.map +1 -0
  451. package/distribution/exceptions/plugins.js +54 -0
  452. package/distribution/exceptions/plugins.js.map +1 -0
  453. package/distribution/exceptions/pool.d.ts +50 -0
  454. package/distribution/exceptions/pool.d.ts.map +1 -0
  455. package/distribution/exceptions/pool.js +90 -0
  456. package/distribution/exceptions/pool.js.map +1 -0
  457. package/distribution/exceptions/runtime.d.ts +17 -0
  458. package/distribution/exceptions/runtime.d.ts.map +1 -0
  459. package/distribution/exceptions/runtime.js +29 -0
  460. package/distribution/exceptions/runtime.js.map +1 -0
  461. package/distribution/exceptions/state.d.ts +8 -0
  462. package/distribution/exceptions/state.d.ts.map +1 -0
  463. package/distribution/exceptions/state.js +17 -0
  464. package/distribution/exceptions/state.js.map +1 -0
  465. package/distribution/exceptions/validation.d.ts +5 -0
  466. package/distribution/exceptions/validation.d.ts.map +1 -0
  467. package/distribution/exceptions/validation.js +11 -0
  468. package/distribution/exceptions/validation.js.map +1 -0
  469. package/distribution/identifiers.d.ts +290 -0
  470. package/distribution/identifiers.d.ts.map +1 -0
  471. package/distribution/identifiers.js +293 -0
  472. package/distribution/identifiers.js.map +1 -0
  473. package/distribution/index.d.ts +7 -0
  474. package/distribution/index.d.ts.map +1 -0
  475. package/distribution/index.js +36 -0
  476. package/distribution/index.js.map +1 -0
  477. package/distribution/utils.d.ts +4 -0
  478. package/distribution/utils.d.ts.map +1 -0
  479. package/distribution/utils.js +3 -0
  480. package/distribution/utils.js.map +1 -0
  481. package/package.json +37 -0
@@ -0,0 +1,13 @@
1
+ /// <reference types="node" />
2
+ import { Block } from "./crypto";
3
+ import { Commit } from "./crypto/commit";
4
+ export interface DatabaseService {
5
+ getBlock(height: number): Promise<Block | undefined>;
6
+ findCommitBuffers(start: number, end: number): Promise<Buffer[]>;
7
+ readCommits(start: number, end: number): AsyncGenerator<Commit>;
8
+ findBlocks(start: number, end: number): Promise<Block[]>;
9
+ getLastBlock(): Promise<Block | undefined>;
10
+ addCommit(block: Commit): void;
11
+ persist(): Promise<void>;
12
+ }
13
+ //# sourceMappingURL=database.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"database.d.ts","sourceRoot":"","sources":["../../source/contracts/database.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,MAAM,WAAW,eAAe;IAC/B,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC;IAErD,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAEjE,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;IAEhE,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;IAEzD,YAAY,IAAI,OAAO,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC;IAE3C,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACzB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=database.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"database.js","sourceRoot":"","sources":["../../source/contracts/database.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import { BigNumber } from "@mainsail/utils";
2
+ export interface FeeRegistry {
3
+ get(transaction: string, version: number): BigNumber;
4
+ set(transaction: string, version: number, fee: BigNumber): void;
5
+ }
6
+ //# sourceMappingURL=fees.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fees.d.ts","sourceRoot":"","sources":["../../source/contracts/fees.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,WAAW,WAAW;IAC3B,GAAG,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAErD,GAAG,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,SAAS,GAAG,IAAI,CAAC;CAChE"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=fees.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fees.js","sourceRoot":"","sources":["../../source/contracts/fees.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import { FlagNames } from "../constants";
2
+ export type Flag = (typeof FlagNames)[number];
3
+ //# sourceMappingURL=flags.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flags.d.ts","sourceRoot":"","sources":["../../source/contracts/flags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,MAAM,IAAI,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=flags.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flags.js","sourceRoot":"","sources":["../../source/contracts/flags.ts"],"names":[],"mappings":""}
@@ -0,0 +1,21 @@
1
+ export * as Api from "./api";
2
+ export * as ApiSync from "./api-sync";
3
+ export * as Consensus from "./consensus";
4
+ export * as Crypto from "./crypto";
5
+ export * as Database from "./database";
6
+ export * as Fee from "./fees";
7
+ export * as Flags from "./flags";
8
+ export * as Kernel from "./kernel";
9
+ export * as NetworkGenerator from "./network-generator";
10
+ export * as P2P from "./p2p";
11
+ export * as Processor from "./processor";
12
+ export * as Proposer from "./proposer";
13
+ export * as Serializer from "./serializer";
14
+ export * as Shared from "./shared";
15
+ export * as State from "./state";
16
+ export * as TransactionPool from "./transaction-pool";
17
+ export * as Transactions from "./transactions";
18
+ export * as Types from "./types";
19
+ export * as Validator from "./validator";
20
+ export * as ValidatorSet from "./validator-set";
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../source/contracts/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,OAAO,CAAC;AAC7B,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,GAAG,MAAM,QAAQ,CAAC;AAC9B,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,gBAAgB,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,GAAG,MAAM,OAAO,CAAC;AAC7B,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,eAAe,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,YAAY,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.ValidatorSet = exports.Validator = exports.Types = exports.Transactions = exports.TransactionPool = exports.State = exports.Shared = exports.Serializer = exports.Proposer = exports.Processor = exports.P2P = exports.NetworkGenerator = exports.Kernel = exports.Flags = exports.Fee = exports.Database = exports.Crypto = exports.Consensus = exports.ApiSync = exports.Api = void 0;
27
+ exports.Api = __importStar(require("./api"));
28
+ exports.ApiSync = __importStar(require("./api-sync"));
29
+ exports.Consensus = __importStar(require("./consensus"));
30
+ exports.Crypto = __importStar(require("./crypto"));
31
+ exports.Database = __importStar(require("./database"));
32
+ exports.Fee = __importStar(require("./fees"));
33
+ exports.Flags = __importStar(require("./flags"));
34
+ exports.Kernel = __importStar(require("./kernel"));
35
+ exports.NetworkGenerator = __importStar(require("./network-generator"));
36
+ exports.P2P = __importStar(require("./p2p"));
37
+ exports.Processor = __importStar(require("./processor"));
38
+ exports.Proposer = __importStar(require("./proposer"));
39
+ exports.Serializer = __importStar(require("./serializer"));
40
+ exports.Shared = __importStar(require("./shared"));
41
+ exports.State = __importStar(require("./state"));
42
+ exports.TransactionPool = __importStar(require("./transaction-pool"));
43
+ exports.Transactions = __importStar(require("./transactions"));
44
+ exports.Types = __importStar(require("./types"));
45
+ exports.Validator = __importStar(require("./validator"));
46
+ exports.ValidatorSet = __importStar(require("./validator-set"));
47
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/contracts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6B;AAC7B,sDAAsC;AACtC,yDAAyC;AACzC,mDAAmC;AACnC,uDAAuC;AACvC,8CAA8B;AAC9B,iDAAiC;AACjC,mDAAmC;AACnC,wEAAwD;AACxD,6CAA6B;AAC7B,yDAAyC;AACzC,uDAAuC;AACvC,2DAA2C;AAC3C,mDAAmC;AACnC,iDAAiC;AACjC,sEAAsD;AACtD,+DAA+C;AAC/C,iDAAiC;AACjC,yDAAyC;AACzC,gEAAgD"}
@@ -0,0 +1,54 @@
1
+ import { JsonObject } from "../types";
2
+ import { Container } from "./container";
3
+ export interface Application {
4
+ readonly container: Container.Container;
5
+ bootstrap({ flags, plugins }: {
6
+ flags: JsonObject;
7
+ plugins?: JsonObject;
8
+ }): Promise<void>;
9
+ boot(): void;
10
+ reboot(): void;
11
+ config<T = any>(key: string, value?: T, defaultValue?: T): T | undefined;
12
+ namespace(): string;
13
+ version(): string;
14
+ token(): string;
15
+ network(): string;
16
+ name(): string;
17
+ useNetwork(value: string): void;
18
+ dataPath(path?: string): string;
19
+ useDataPath(path: string): void;
20
+ configPath(path?: string): string;
21
+ useConfigPath(path: string): void;
22
+ cachePath(path?: string): string;
23
+ useCachePath(path: string): void;
24
+ logPath(path?: string): string;
25
+ useLogPath(path: string): void;
26
+ tempPath(path?: string): string;
27
+ useTempPath(path: string): void;
28
+ environmentFile(): string;
29
+ environment(): string;
30
+ useEnvironment(value: string): void;
31
+ isProduction(): boolean;
32
+ isDevelopment(): boolean;
33
+ runningTests(): boolean;
34
+ isBooted(): boolean;
35
+ isWorker(): boolean;
36
+ enableMaintenance(): void;
37
+ disableMaintenance(): void;
38
+ isDownForMaintenance(): boolean;
39
+ terminate(reason?: string, error?: Error): Promise<void>;
40
+ bind<T>(serviceIdentifier: Container.ServiceIdentifier<T>): Container.BindingToSyntax<T>;
41
+ rebind<T>(serviceIdentifier: Container.ServiceIdentifier<T>): Container.BindingToSyntax<T>;
42
+ unbind<T>(serviceIdentifier: Container.ServiceIdentifier<T>): void;
43
+ get<T>(serviceIdentifier: Container.ServiceIdentifier<T>): T;
44
+ getTagged<T>(serviceIdentifier: Container.ServiceIdentifier<T>, key: string | number | symbol, value: any): T;
45
+ isBound<T>(serviceIdentifier: Container.ServiceIdentifier<T>): boolean;
46
+ isBoundTagged<T>(serviceIdentifier: Container.ServiceIdentifier<T>, key: string | number | symbol, value: any): boolean;
47
+ resolve<T>(constructorFunction: Container.Newable<T>): T;
48
+ }
49
+ export interface PluginDependency {
50
+ name: string;
51
+ version?: string;
52
+ required?: boolean | (() => Promise<boolean>);
53
+ }
54
+ //# sourceMappingURL=application.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/application.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,WAAW,WAAW;IAC3B,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC,SAAS,CAAC;IAExC,SAAS,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;QAAE,KAAK,EAAE,UAAU,CAAC;QAAC,OAAO,CAAC,EAAE,UAAU,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1F,IAAI,IAAI,IAAI,CAAC;IAEb,MAAM,IAAI,IAAI,CAAC;IAEf,MAAM,CAAC,CAAC,GA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AE,MAAM,CAAC;IAEb,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,QAAQ,CAAC,EAAE,OAAO,GAAG,CAAC,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;CAC9C"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=application.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"application.js","sourceRoot":"","sources":["../../../source/contracts/kernel/application.ts"],"names":[],"mappings":""}
@@ -0,0 +1,21 @@
1
+ export interface CacheStore<K, T> {
2
+ make(): Promise<CacheStore<K, T>>;
3
+ all(): Promise<Array<[K, T]>>;
4
+ keys(): Promise<K[]>;
5
+ values(): Promise<T[]>;
6
+ get(key: K): Promise<T | undefined>;
7
+ getMany(keys: K[]): Promise<Array<T | undefined>>;
8
+ put(key: K, value: T, seconds: number): Promise<boolean>;
9
+ putMany(values: Array<[K, T]>, seconds: number): Promise<boolean[]>;
10
+ has(key: K): Promise<boolean>;
11
+ hasMany(keys: K[]): Promise<boolean[]>;
12
+ missing(key: K): Promise<boolean>;
13
+ missingMany(keys: K[]): Promise<boolean[]>;
14
+ forever(key: K, value: T): Promise<boolean>;
15
+ foreverMany(values: Array<[K, T]>, value: T): Promise<boolean[]>;
16
+ forget(key: K): Promise<boolean>;
17
+ forgetMany(keys: K[]): Promise<boolean[]>;
18
+ flush(): Promise<boolean>;
19
+ getPrefix(): Promise<string>;
20
+ }
21
+ //# sourceMappingURL=cache.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/cache.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU,CAAC,CAAC,EAAE,CAAC;IAC/B,IAAI,IAAI,OAAO,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAElC,GAAG,IAAI,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,EA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AAC;IAEjC,UAAU,CAAC,IAAI,EAAE,CAAC,EAAE,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;IAE1C,KAAK,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAE1B,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CAC7B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=cache.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cache.js","sourceRoot":"","sources":["../../../source/contracts/kernel/cache.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export interface ConfigLoader {
2
+ loadEnvironmentVariables(): Promise<void>;
3
+ loadConfiguration(): Promise<void>;
4
+ }
5
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/config.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC5B,wBAAwB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1C,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACnC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../source/contracts/kernel/config.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export { interfaces as Container } from "inversify";
2
+ //# sourceMappingURL=container.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/container.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,SAAS,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=container.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"container.js","sourceRoot":"","sources":["../../../source/contracts/kernel/container.ts"],"names":[],"mappings":""}
@@ -0,0 +1,24 @@
1
+ export type EventName = string | symbol;
2
+ export interface EventListener {
3
+ handle(payload: {
4
+ name: EventName;
5
+ data: any;
6
+ }): void;
7
+ }
8
+ export interface EventDispatcher {
9
+ listen(event: EventName, listener: EventListener): () => void;
10
+ listenMany(events: Array<[EventName, EventListener]>): Map<EventName, () => void>;
11
+ listenOnce(name: EventName, listener: EventListener): void;
12
+ forget(event: EventName, listener?: EventListener): void;
13
+ forgetMany(events: Array<[EventName, EventListener]>): void;
14
+ flush(): void;
15
+ getListeners(event: EventName): EventListener[];
16
+ hasListeners(event: EventName): boolean;
17
+ dispatch<T = any>(event: EventName, data?: T): Promise<void>;
18
+ dispatchSeq<T = any>(event: EventName, data?: T): Promise<void>;
19
+ dispatchSync<T = any>(event: EventName, data?: T): void;
20
+ dispatchMany<T = any>(events: Array<[EventName, T]>): Promise<void>;
21
+ dispatchManySeq<T = any>(events: Array<[EventName, T]>): Promise<void>;
22
+ dispatchManySync<T = any>(events: Array<[EventName, T]>): void;
23
+ }
24
+ //# sourceMappingURL=events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/events.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AAExC,MAAM,WAAW,aAAa;IAC7B,MAAM,CAAC,OAAO,EAAE;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,IAAI,EAAE,GAAG,CAAA;KAAE,GAAG,IAAI,CAAC;CACtD;AAED,MAAM,WAAW,eAAe;IAC/B,MAAM,CAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,aAAa,GAAG,MAAM,IAAI,CAAC;IAE9D,UAAU,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,SAAS,EA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C,GAAG,IAAI,CAAC;CAC/D"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.js","sourceRoot":"","sources":["../../../source/contracts/kernel/events.ts"],"names":[],"mappings":""}
@@ -0,0 +1,17 @@
1
+ /// <reference types="node" />
2
+ export interface Filesystem {
3
+ make(): Promise<Filesystem>;
4
+ exists(path: string): Promise<boolean>;
5
+ get(path: string): Promise<Buffer>;
6
+ put(path: string, contents: string): Promise<boolean>;
7
+ delete(path: string): Promise<boolean>;
8
+ copy(from: string, to: string): Promise<boolean>;
9
+ move(from: string, to: string): Promise<boolean>;
10
+ size(path: string): Promise<number>;
11
+ lastModified(path: string): Promise<number>;
12
+ files(directory: string): Promise<string[]>;
13
+ directories(directory: string): Promise<string[]>;
14
+ makeDirectory(path: any): Promise<boolean>;
15
+ deleteDirectory(directory: string): Promise<boolean>;
16
+ }
17
+ //# sourceMappingURL=filesystem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filesystem.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/filesystem.ts"],"names":[],"mappings":";AAAA,MAAM,WAAW,UAAU;IAC1B,IAAI,IAAI,OAAO,CAAC,UAAU,CAAC,CAAC;IAE5B,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEvC,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAEnC,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEtD,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEvC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEjD,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEjD,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAEpC,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAE5C,KAAK,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAE5C,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAElD,aAAa,CAAC,IAAI,KAAA,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEtC,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACrD"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=filesystem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filesystem.js","sourceRoot":"","sources":["../../../source/contracts/kernel/filesystem.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ export * from "./application";
2
+ export * from "./cache";
3
+ export * from "./config";
4
+ export * from "./container";
5
+ export * from "./events";
6
+ export * from "./filesystem";
7
+ export * from "./lock";
8
+ export * from "./log";
9
+ export * from "./pipeline";
10
+ export * from "./process-actions";
11
+ export * from "./queue";
12
+ export * from "./repository";
13
+ export * from "./validation";
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC"}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./application"), exports);
18
+ __exportStar(require("./cache"), exports);
19
+ __exportStar(require("./config"), exports);
20
+ __exportStar(require("./container"), exports);
21
+ __exportStar(require("./events"), exports);
22
+ __exportStar(require("./filesystem"), exports);
23
+ __exportStar(require("./lock"), exports);
24
+ __exportStar(require("./log"), exports);
25
+ __exportStar(require("./pipeline"), exports);
26
+ __exportStar(require("./process-actions"), exports);
27
+ __exportStar(require("./queue"), exports);
28
+ __exportStar(require("./repository"), exports);
29
+ __exportStar(require("./validation"), exports);
30
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/contracts/kernel/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,0CAAwB;AACxB,2CAAyB;AACzB,8CAA4B;AAC5B,2CAAyB;AACzB,+CAA6B;AAC7B,yCAAuB;AACvB,wCAAsB;AACtB,6CAA2B;AAC3B,oDAAkC;AAClC,0CAAwB;AACxB,+CAA6B;AAC7B,+CAA6B"}
@@ -0,0 +1,5 @@
1
+ export interface Lock {
2
+ runExclusive<T>(callback: () => Promise<T>): Promise<T>;
3
+ runNonExclusive<T>(callback: () => Promise<T>): Promise<T>;
4
+ }
5
+ //# sourceMappingURL=lock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lock.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/lock.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,IAAI;IACpB,YAAY,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IACxD,eAAe,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;CAC3D"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=lock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lock.js","sourceRoot":"","sources":["../../../source/contracts/kernel/lock.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ export interface Logger {
2
+ make(options?: any): Promise<Logger>;
3
+ emergency(message: string): void;
4
+ alert(message: string): void;
5
+ critical(message: string): void;
6
+ error(message: string): void;
7
+ warning(message: string): void;
8
+ notice(message: string): void;
9
+ info(message: string): void;
10
+ debug(message: string): void;
11
+ suppressConsoleOutput(suppress: boolean): void;
12
+ dispose(): Promise<void>;
13
+ }
14
+ //# sourceMappingURL=log.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/log.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACtB,IAAI,CAAC,OAAO,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAErC,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjC,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B,qBAAqB,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,CAAC;IAE/C,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAIzB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=log.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"log.js","sourceRoot":"","sources":["../../../source/contracts/kernel/log.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ export interface Stage {
2
+ process(payload: any): any;
3
+ }
4
+ export interface Pipeline {
5
+ pipe(stage: Function | Stage): Pipeline;
6
+ process<T>(payload: T): Promise<T | undefined>;
7
+ processSync<T>(payload: T): T | undefined;
8
+ }
9
+ //# sourceMappingURL=pipeline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/pipeline.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACrB,OAAO,CAAC,OAAO,EAAE,GAAG,OAAE;CACtB;AAED,MAAM,WAAW,QAAQ;IACxB,IAAI,CAAC,KAAK,EAAE,QAAQ,GAAG,KAAK,GAAG,QAAQ,CAAC;IAExC,OAAO,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC;IAE/C,WAAW,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC;CAC1C"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=pipeline.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipeline.js","sourceRoot":"","sources":["../../../source/contracts/kernel/pipeline.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ export type ProcessActionHandler = () => Promise<any>;
2
+ export interface ProcessAction {
3
+ name: string;
4
+ handler: ProcessActionHandler;
5
+ }
6
+ export interface ProcessActionsService {
7
+ register(remoteAction: ProcessAction): void;
8
+ }
9
+ //# sourceMappingURL=process-actions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"process-actions.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/process-actions.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC;AAEtD,MAAM,WAAW,aAAa;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,oBAAoB,CAAC;CAC9B;AAED,MAAM,WAAW,qBAAqB;IACrC,QAAQ,CAAC,YAAY,EAAE,aAAa,GAAG,IAAI,CAAC;CAC5C"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=process-actions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"process-actions.js","sourceRoot":"","sources":["../../../source/contracts/kernel/process-actions.ts"],"names":[],"mappings":""}
@@ -0,0 +1,20 @@
1
+ /// <reference types="node" />
2
+ import { EventEmitter } from "events";
3
+ export interface QueueJob {
4
+ handle(): Promise<void>;
5
+ }
6
+ export interface Queue extends EventEmitter {
7
+ make(): Promise<Queue>;
8
+ start(): Promise<void>;
9
+ stop(): Promise<void>;
10
+ pause(): Promise<void>;
11
+ resume(): Promise<void>;
12
+ clear(): Promise<void>;
13
+ push(job: QueueJob): Promise<void>;
14
+ later(delay: number, job: QueueJob): Promise<void>;
15
+ bulk(jobs: QueueJob[]): Promise<void>;
16
+ size(): number;
17
+ isStarted(): boolean;
18
+ isRunning(): boolean;
19
+ }
20
+ //# sourceMappingURL=queue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queue.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/queue.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,MAAM,WAAW,QAAQ;IACxB,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB;AAED,MAAM,WAAW,KAAM,SAAQ,YAAY;IAC1C,IAAI,IAAI,OAAO,CAAC,KAAK,CAAC,CAAC;IAEvB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvB,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAExB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvB,IAAI,CAAC,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnC,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnD,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtC,IAAI,IAAI,MAAM,CAAC;IAEf,SAAS,IAAI,OAAO,CAAC;IAErB,SAAS,IAAI,OAAO,CAAC;CACrB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=queue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queue.js","sourceRoot":"","sources":["../../../source/contracts/kernel/queue.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import type { JsonObject, KeyValuePair } from "../types";
2
+ export interface Repository {
3
+ all(): JsonObject;
4
+ get<T>(key: string, defaultValue?: T): T;
5
+ set<T>(key: string, value: T): boolean;
6
+ unset<T>(key: string): boolean;
7
+ has<T>(key: string): boolean;
8
+ hasAll<T>(keys: string[]): boolean;
9
+ merge(items: KeyValuePair): void;
10
+ }
11
+ //# sourceMappingURL=repository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/repository.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAEzD,MAAM,WAAW,UAAU;IAC1B,GAAG,IAAI,UAAU,CAAC;IAElB,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IAEzC,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC;IAEvC,KAAK,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IAE/B,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IAE7B,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAEnC,KAAK,CAAC,KAAK,EAAE,YAAY,GAAG,IAAI,CAAC;CACjC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repository.js","sourceRoot":"","sources":["../../../source/contracts/kernel/repository.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ import type { JsonObject } from "../types";
2
+ export interface Validator {
3
+ validate(data: JsonObject, schema: object): void;
4
+ passes(): boolean;
5
+ fails(): boolean;
6
+ failed(): Record<string, string[]>;
7
+ errors(): Record<string, string[]>;
8
+ valid(): JsonObject | undefined;
9
+ invalid(): JsonObject;
10
+ attributes(): JsonObject;
11
+ }
12
+ //# sourceMappingURL=validation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/validation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,WAAW,SAAS;IACzB,QAAQ,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjD,MAAM,IAAI,OAAO,CAAC;IAElB,KAAK,IAAI,OAAO,CAAC;IAEjB,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAEnC,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAEnC,KAAK,IAAI,UAAU,GAAG,SAAS,CAAC;IAEhC,OAAO,IAAI,UAAU,CAAC;IAEtB,UAAU,IAAI,UAAU,CAAC;CACzB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=validation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validation.js","sourceRoot":"","sources":["../../../source/contracts/kernel/validation.ts"],"names":[],"mappings":""}