@mainsail/contracts 0.0.1-alpha.9 → 0.0.1-evm.10

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 (436) hide show
  1. package/distribution/constants/channels.d.ts.map +1 -1
  2. package/distribution/constants/channels.js +1 -4
  3. package/distribution/constants/channels.js.map +1 -1
  4. package/distribution/constants/environment-variables.d.ts +2 -2
  5. package/distribution/constants/environment-variables.d.ts.map +1 -1
  6. package/distribution/constants/environment-variables.js +33 -9
  7. package/distribution/constants/environment-variables.js.map +1 -1
  8. package/distribution/constants/index.d.ts +3 -3
  9. package/distribution/constants/index.d.ts.map +1 -1
  10. package/distribution/constants/index.js +3 -19
  11. package/distribution/constants/index.js.map +1 -1
  12. package/distribution/constants/units.js +1 -4
  13. package/distribution/constants/units.js.map +1 -1
  14. package/distribution/contracts/{api.d.ts → api/api.d.ts} +7 -1
  15. package/distribution/contracts/api/api.d.ts.map +1 -0
  16. package/distribution/contracts/api/api.js +6 -0
  17. package/distribution/contracts/api/api.js.map +1 -0
  18. package/distribution/contracts/api/index.d.ts +3 -0
  19. package/distribution/contracts/api/index.d.ts.map +1 -0
  20. package/distribution/contracts/api/index.js +3 -0
  21. package/distribution/contracts/api/index.js.map +1 -0
  22. package/distribution/contracts/api/rpc.d.ts +39 -0
  23. package/distribution/contracts/api/rpc.d.ts.map +1 -0
  24. package/distribution/contracts/api/rpc.js +9 -0
  25. package/distribution/contracts/api/rpc.js.map +1 -0
  26. package/distribution/contracts/api-sync.d.ts +1 -2
  27. package/distribution/contracts/api-sync.d.ts.map +1 -1
  28. package/distribution/contracts/api-sync.js +1 -2
  29. package/distribution/contracts/consensus/consensus.d.ts +15 -26
  30. package/distribution/contracts/consensus/consensus.d.ts.map +1 -1
  31. package/distribution/contracts/consensus/consensus.js +1 -2
  32. package/distribution/contracts/consensus/enums.js +4 -7
  33. package/distribution/contracts/consensus/enums.js.map +1 -1
  34. package/distribution/contracts/consensus/index.d.ts +3 -3
  35. package/distribution/contracts/consensus/index.d.ts.map +1 -1
  36. package/distribution/contracts/consensus/index.js +3 -19
  37. package/distribution/contracts/consensus/index.js.map +1 -1
  38. package/distribution/contracts/consensus/processor.d.ts +3 -3
  39. package/distribution/contracts/consensus/processor.d.ts.map +1 -1
  40. package/distribution/contracts/consensus/processor.js +1 -2
  41. package/distribution/contracts/consensus-storage.d.ts +14 -0
  42. package/distribution/contracts/consensus-storage.d.ts.map +1 -0
  43. package/distribution/contracts/consensus-storage.js +2 -0
  44. package/distribution/contracts/consensus-storage.js.map +1 -0
  45. package/distribution/contracts/crypto/block.d.ts +10 -6
  46. package/distribution/contracts/crypto/block.d.ts.map +1 -1
  47. package/distribution/contracts/crypto/block.js +1 -2
  48. package/distribution/contracts/crypto/commit.d.ts +3 -3
  49. package/distribution/contracts/crypto/commit.d.ts.map +1 -1
  50. package/distribution/contracts/crypto/commit.js +1 -2
  51. package/distribution/contracts/crypto/config.d.ts +1 -1
  52. package/distribution/contracts/crypto/config.d.ts.map +1 -1
  53. package/distribution/contracts/crypto/config.js +1 -2
  54. package/distribution/contracts/crypto/crypto.d.ts +1 -1
  55. package/distribution/contracts/crypto/crypto.js +1 -2
  56. package/distribution/contracts/crypto/enums.d.ts +2 -1
  57. package/distribution/contracts/crypto/enums.d.ts.map +1 -1
  58. package/distribution/contracts/crypto/enums.js +5 -7
  59. package/distribution/contracts/crypto/enums.js.map +1 -1
  60. package/distribution/contracts/crypto/hash.d.ts +1 -1
  61. package/distribution/contracts/crypto/hash.js +1 -2
  62. package/distribution/contracts/crypto/identities.d.ts +5 -2
  63. package/distribution/contracts/crypto/identities.d.ts.map +1 -1
  64. package/distribution/contracts/crypto/identities.js +1 -2
  65. package/distribution/contracts/crypto/index.d.ts +13 -12
  66. package/distribution/contracts/crypto/index.d.ts.map +1 -1
  67. package/distribution/contracts/crypto/index.js +13 -28
  68. package/distribution/contracts/crypto/index.js.map +1 -1
  69. package/distribution/contracts/crypto/messages.d.ts +13 -15
  70. package/distribution/contracts/crypto/messages.d.ts.map +1 -1
  71. package/distribution/contracts/crypto/messages.js +2 -5
  72. package/distribution/contracts/crypto/messages.js.map +1 -1
  73. package/distribution/contracts/crypto/networks.d.ts +19 -5
  74. package/distribution/contracts/crypto/networks.d.ts.map +1 -1
  75. package/distribution/contracts/crypto/networks.js +1 -2
  76. package/distribution/contracts/crypto/signatures.js +1 -2
  77. package/distribution/contracts/crypto/transactions.d.ts +32 -56
  78. package/distribution/contracts/crypto/transactions.d.ts.map +1 -1
  79. package/distribution/contracts/crypto/transactions.js +1 -2
  80. package/distribution/contracts/crypto/validator.d.ts +4 -3
  81. package/distribution/contracts/crypto/validator.d.ts.map +1 -1
  82. package/distribution/contracts/crypto/validator.js +1 -2
  83. package/distribution/contracts/crypto/worker.d.ts +27 -0
  84. package/distribution/contracts/crypto/worker.d.ts.map +1 -0
  85. package/distribution/contracts/crypto/worker.js +2 -0
  86. package/distribution/contracts/crypto/worker.js.map +1 -0
  87. package/distribution/contracts/database.d.ts +14 -5
  88. package/distribution/contracts/database.d.ts.map +1 -1
  89. package/distribution/contracts/database.js +1 -2
  90. package/distribution/contracts/evm/contract-service.d.ts +23 -0
  91. package/distribution/contracts/evm/contract-service.d.ts.map +1 -0
  92. package/distribution/contracts/evm/contract-service.js +2 -0
  93. package/distribution/contracts/evm/contract-service.js.map +1 -0
  94. package/distribution/contracts/evm/evm.d.ts +123 -0
  95. package/distribution/contracts/evm/evm.d.ts.map +1 -0
  96. package/distribution/contracts/evm/evm.js +13 -0
  97. package/distribution/contracts/evm/evm.js.map +1 -0
  98. package/distribution/contracts/evm/gas-fee.d.ts +10 -0
  99. package/distribution/contracts/evm/gas-fee.d.ts.map +1 -0
  100. package/distribution/contracts/evm/gas-fee.js +2 -0
  101. package/distribution/contracts/evm/gas-fee.js.map +1 -0
  102. package/distribution/contracts/evm/index.d.ts +6 -0
  103. package/distribution/contracts/evm/index.d.ts.map +1 -0
  104. package/distribution/contracts/evm/index.js +6 -0
  105. package/distribution/contracts/evm/index.js.map +1 -0
  106. package/distribution/contracts/evm/state.d.ts +4 -0
  107. package/distribution/contracts/evm/state.d.ts.map +1 -0
  108. package/distribution/contracts/evm/state.js +2 -0
  109. package/distribution/contracts/evm/state.js.map +1 -0
  110. package/distribution/contracts/evm/worker.d.ts +20 -0
  111. package/distribution/contracts/evm/worker.d.ts.map +1 -0
  112. package/distribution/contracts/evm/worker.js +2 -0
  113. package/distribution/contracts/evm/worker.js.map +1 -0
  114. package/distribution/contracts/index.d.ts +21 -19
  115. package/distribution/contracts/index.d.ts.map +1 -1
  116. package/distribution/contracts/index.js +21 -45
  117. package/distribution/contracts/index.js.map +1 -1
  118. package/distribution/contracts/kernel/application.d.ts +7 -3
  119. package/distribution/contracts/kernel/application.d.ts.map +1 -1
  120. package/distribution/contracts/kernel/application.js +1 -2
  121. package/distribution/contracts/kernel/cache.js +1 -2
  122. package/distribution/contracts/kernel/config.js +1 -2
  123. package/distribution/contracts/kernel/container.js +1 -2
  124. package/distribution/contracts/kernel/environment-variables.d.ts +1 -1
  125. package/distribution/contracts/kernel/environment-variables.d.ts.map +1 -1
  126. package/distribution/contracts/kernel/environment-variables.js +1 -2
  127. package/distribution/contracts/kernel/events.js +1 -2
  128. package/distribution/contracts/kernel/filesystem.d.ts +7 -1
  129. package/distribution/contracts/kernel/filesystem.d.ts.map +1 -1
  130. package/distribution/contracts/kernel/filesystem.js +1 -2
  131. package/distribution/contracts/kernel/index.d.ts +14 -14
  132. package/distribution/contracts/kernel/index.d.ts.map +1 -1
  133. package/distribution/contracts/kernel/index.js +14 -30
  134. package/distribution/contracts/kernel/index.js.map +1 -1
  135. package/distribution/contracts/kernel/ipc.d.ts +35 -0
  136. package/distribution/contracts/kernel/ipc.d.ts.map +1 -0
  137. package/distribution/contracts/kernel/ipc.js +2 -0
  138. package/distribution/contracts/kernel/ipc.js.map +1 -0
  139. package/distribution/contracts/kernel/lock.js +1 -2
  140. package/distribution/contracts/kernel/log.d.ts +0 -1
  141. package/distribution/contracts/kernel/log.d.ts.map +1 -1
  142. package/distribution/contracts/kernel/log.js +1 -2
  143. package/distribution/contracts/kernel/pipeline.js +1 -2
  144. package/distribution/contracts/kernel/queue.d.ts +1 -1
  145. package/distribution/contracts/kernel/queue.js +1 -2
  146. package/distribution/contracts/kernel/repository.d.ts +1 -1
  147. package/distribution/contracts/kernel/repository.d.ts.map +1 -1
  148. package/distribution/contracts/kernel/repository.js +1 -2
  149. package/distribution/contracts/kernel/validation.d.ts +1 -1
  150. package/distribution/contracts/kernel/validation.d.ts.map +1 -1
  151. package/distribution/contracts/kernel/validation.js +1 -2
  152. package/distribution/contracts/network-generator.d.ts +1 -5
  153. package/distribution/contracts/network-generator.d.ts.map +1 -1
  154. package/distribution/contracts/network-generator.js +1 -2
  155. package/distribution/contracts/p2p/api-node-discoverer.d.ts +3 -4
  156. package/distribution/contracts/p2p/api-node-discoverer.d.ts.map +1 -1
  157. package/distribution/contracts/p2p/api-node-discoverer.js +1 -2
  158. package/distribution/contracts/p2p/api-node-processor.d.ts +1 -1
  159. package/distribution/contracts/p2p/api-node-processor.d.ts.map +1 -1
  160. package/distribution/contracts/p2p/api-node-processor.js +1 -2
  161. package/distribution/contracts/p2p/api-node-repository.d.ts +1 -1
  162. package/distribution/contracts/p2p/api-node-repository.d.ts.map +1 -1
  163. package/distribution/contracts/p2p/api-node-repository.js +1 -2
  164. package/distribution/contracts/p2p/api-node-verifier.d.ts +1 -1
  165. package/distribution/contracts/p2p/api-node-verifier.d.ts.map +1 -1
  166. package/distribution/contracts/p2p/api-node-verifier.js +1 -2
  167. package/distribution/contracts/p2p/api-node.d.ts +4 -5
  168. package/distribution/contracts/p2p/api-node.d.ts.map +1 -1
  169. package/distribution/contracts/p2p/api-node.js +1 -2
  170. package/distribution/contracts/p2p/broadcaster.d.ts +1 -2
  171. package/distribution/contracts/p2p/broadcaster.d.ts.map +1 -1
  172. package/distribution/contracts/p2p/broadcaster.js +1 -2
  173. package/distribution/contracts/p2p/downloader.d.ts +1 -1
  174. package/distribution/contracts/p2p/downloader.d.ts.map +1 -1
  175. package/distribution/contracts/p2p/downloader.js +1 -2
  176. package/distribution/contracts/p2p/endpoints.d.ts +6 -14
  177. package/distribution/contracts/p2p/endpoints.d.ts.map +1 -1
  178. package/distribution/contracts/p2p/endpoints.js +1 -2
  179. package/distribution/contracts/p2p/enums.js +2 -5
  180. package/distribution/contracts/p2p/enums.js.map +1 -1
  181. package/distribution/contracts/p2p/header-service.d.ts +2 -2
  182. package/distribution/contracts/p2p/header-service.d.ts.map +1 -1
  183. package/distribution/contracts/p2p/header-service.js +1 -2
  184. package/distribution/contracts/p2p/header.d.ts +1 -1
  185. package/distribution/contracts/p2p/header.d.ts.map +1 -1
  186. package/distribution/contracts/p2p/header.js +1 -2
  187. package/distribution/contracts/p2p/index.d.ts +25 -24
  188. package/distribution/contracts/p2p/index.d.ts.map +1 -1
  189. package/distribution/contracts/p2p/index.js +25 -40
  190. package/distribution/contracts/p2p/index.js.map +1 -1
  191. package/distribution/contracts/p2p/log.js +1 -2
  192. package/distribution/contracts/p2p/nes.js +1 -2
  193. package/distribution/contracts/p2p/peer-communicator.d.ts +3 -4
  194. package/distribution/contracts/p2p/peer-communicator.d.ts.map +1 -1
  195. package/distribution/contracts/p2p/peer-communicator.js +1 -2
  196. package/distribution/contracts/p2p/peer-connector.d.ts +2 -2
  197. package/distribution/contracts/p2p/peer-connector.d.ts.map +1 -1
  198. package/distribution/contracts/p2p/peer-connector.js +1 -2
  199. package/distribution/contracts/p2p/peer-discoverer.d.ts +1 -1
  200. package/distribution/contracts/p2p/peer-discoverer.d.ts.map +1 -1
  201. package/distribution/contracts/p2p/peer-discoverer.js +1 -2
  202. package/distribution/contracts/p2p/peer-disposer.d.ts +6 -2
  203. package/distribution/contracts/p2p/peer-disposer.d.ts.map +1 -1
  204. package/distribution/contracts/p2p/peer-disposer.js +1 -2
  205. package/distribution/contracts/p2p/peer-processor.js +1 -2
  206. package/distribution/contracts/p2p/peer-repository.d.ts +1 -1
  207. package/distribution/contracts/p2p/peer-repository.d.ts.map +1 -1
  208. package/distribution/contracts/p2p/peer-repository.js +1 -2
  209. package/distribution/contracts/p2p/peer-verifier.d.ts +1 -1
  210. package/distribution/contracts/p2p/peer-verifier.d.ts.map +1 -1
  211. package/distribution/contracts/p2p/peer-verifier.js +1 -2
  212. package/distribution/contracts/p2p/peer.d.ts +6 -6
  213. package/distribution/contracts/p2p/peer.d.ts.map +1 -1
  214. package/distribution/contracts/p2p/peer.js +1 -2
  215. package/distribution/contracts/p2p/server.js +1 -2
  216. package/distribution/contracts/p2p/service.js +1 -2
  217. package/distribution/contracts/p2p/state.js +1 -2
  218. package/distribution/contracts/p2p/tx-pool-node.d.ts +10 -0
  219. package/distribution/contracts/p2p/tx-pool-node.d.ts.map +1 -0
  220. package/distribution/contracts/p2p/tx-pool-node.js +2 -0
  221. package/distribution/contracts/p2p/tx-pool-node.js.map +1 -0
  222. package/distribution/contracts/processor.d.ts +13 -8
  223. package/distribution/contracts/processor.d.ts.map +1 -1
  224. package/distribution/contracts/processor.js +1 -2
  225. package/distribution/contracts/proposer.d.ts +1 -1
  226. package/distribution/contracts/proposer.d.ts.map +1 -1
  227. package/distribution/contracts/proposer.js +1 -2
  228. package/distribution/contracts/serializer.d.ts +2 -2
  229. package/distribution/contracts/serializer.d.ts.map +1 -1
  230. package/distribution/contracts/serializer.js +1 -2
  231. package/distribution/contracts/shared/dynamic-fee.d.ts +1 -1
  232. package/distribution/contracts/shared/dynamic-fee.d.ts.map +1 -1
  233. package/distribution/contracts/shared/dynamic-fee.js +1 -2
  234. package/distribution/contracts/shared/index.d.ts +2 -2
  235. package/distribution/contracts/shared/index.d.ts.map +1 -1
  236. package/distribution/contracts/shared/index.js +2 -18
  237. package/distribution/contracts/shared/index.js.map +1 -1
  238. package/distribution/contracts/shared/rounds.js +1 -2
  239. package/distribution/contracts/state/index.d.ts +3 -11
  240. package/distribution/contracts/state/index.d.ts.map +1 -1
  241. package/distribution/contracts/state/index.js +3 -27
  242. package/distribution/contracts/state/index.js.map +1 -1
  243. package/distribution/contracts/state/state.js +1 -2
  244. package/distribution/contracts/state/store.d.ts +4 -12
  245. package/distribution/contracts/state/store.d.ts.map +1 -1
  246. package/distribution/contracts/state/store.js +1 -2
  247. package/distribution/contracts/state/wallets.d.ts +5 -88
  248. package/distribution/contracts/state/wallets.d.ts.map +1 -1
  249. package/distribution/contracts/state/wallets.js +1 -18
  250. package/distribution/contracts/state/wallets.js.map +1 -1
  251. package/distribution/contracts/transaction-pool/broadcaster.d.ts +38 -0
  252. package/distribution/contracts/transaction-pool/broadcaster.d.ts.map +1 -0
  253. package/distribution/contracts/transaction-pool/broadcaster.js +6 -0
  254. package/distribution/contracts/transaction-pool/broadcaster.js.map +1 -0
  255. package/distribution/contracts/transaction-pool/client.d.ts +10 -0
  256. package/distribution/contracts/transaction-pool/client.d.ts.map +1 -0
  257. package/distribution/contracts/transaction-pool/client.js +2 -0
  258. package/distribution/contracts/transaction-pool/client.js.map +1 -0
  259. package/distribution/contracts/transaction-pool/dynamic-fee-matcher.d.ts +1 -1
  260. package/distribution/contracts/transaction-pool/dynamic-fee-matcher.d.ts.map +1 -1
  261. package/distribution/contracts/transaction-pool/dynamic-fee-matcher.js +1 -2
  262. package/distribution/contracts/transaction-pool/expiration-service.d.ts +1 -1
  263. package/distribution/contracts/transaction-pool/expiration-service.d.ts.map +1 -1
  264. package/distribution/contracts/transaction-pool/expiration-service.js +1 -2
  265. package/distribution/contracts/transaction-pool/index.d.ts +12 -10
  266. package/distribution/contracts/transaction-pool/index.d.ts.map +1 -1
  267. package/distribution/contracts/transaction-pool/index.js +12 -26
  268. package/distribution/contracts/transaction-pool/index.js.map +1 -1
  269. package/distribution/contracts/transaction-pool/mempool.d.ts +6 -6
  270. package/distribution/contracts/transaction-pool/mempool.d.ts.map +1 -1
  271. package/distribution/contracts/transaction-pool/mempool.js +1 -2
  272. package/distribution/contracts/transaction-pool/processor.d.ts +7 -7
  273. package/distribution/contracts/transaction-pool/processor.d.ts.map +1 -1
  274. package/distribution/contracts/transaction-pool/processor.js +1 -2
  275. package/distribution/contracts/transaction-pool/query.d.ts +1 -5
  276. package/distribution/contracts/transaction-pool/query.d.ts.map +1 -1
  277. package/distribution/contracts/transaction-pool/query.js +1 -2
  278. package/distribution/contracts/transaction-pool/sender-mempool.d.ts +4 -4
  279. package/distribution/contracts/transaction-pool/sender-mempool.d.ts.map +1 -1
  280. package/distribution/contracts/transaction-pool/sender-mempool.js +1 -2
  281. package/distribution/contracts/transaction-pool/sender-state.d.ts +4 -3
  282. package/distribution/contracts/transaction-pool/sender-state.d.ts.map +1 -1
  283. package/distribution/contracts/transaction-pool/sender-state.js +1 -2
  284. package/distribution/contracts/transaction-pool/service.d.ts +2 -4
  285. package/distribution/contracts/transaction-pool/service.d.ts.map +1 -1
  286. package/distribution/contracts/transaction-pool/service.js +1 -2
  287. package/distribution/contracts/transaction-pool/storage.d.ts +1 -1
  288. package/distribution/contracts/transaction-pool/storage.js +1 -2
  289. package/distribution/contracts/transaction-pool/worker.d.ts +26 -0
  290. package/distribution/contracts/transaction-pool/worker.d.ts.map +1 -0
  291. package/distribution/contracts/transaction-pool/worker.js +2 -0
  292. package/distribution/contracts/transaction-pool/worker.js.map +1 -0
  293. package/distribution/contracts/transactions.d.ts +27 -20
  294. package/distribution/contracts/transactions.d.ts.map +1 -1
  295. package/distribution/contracts/transactions.js +1 -2
  296. package/distribution/contracts/types/container.js +1 -2
  297. package/distribution/contracts/types/index.d.ts +1 -1
  298. package/distribution/contracts/types/index.d.ts.map +1 -1
  299. package/distribution/contracts/types/index.js +1 -2
  300. package/distribution/contracts/validator-set.d.ts +6 -4
  301. package/distribution/contracts/validator-set.d.ts.map +1 -1
  302. package/distribution/contracts/validator-set.js +1 -2
  303. package/distribution/contracts/validator.d.ts +8 -3
  304. package/distribution/contracts/validator.d.ts.map +1 -1
  305. package/distribution/contracts/validator.js +1 -2
  306. package/distribution/contracts/webhooks.d.ts +24 -0
  307. package/distribution/contracts/webhooks.d.ts.map +1 -0
  308. package/distribution/contracts/webhooks.js +2 -0
  309. package/distribution/contracts/webhooks.js.map +1 -0
  310. package/distribution/events.d.ts +86 -0
  311. package/distribution/events.d.ts.map +1 -0
  312. package/distribution/events.js +101 -0
  313. package/distribution/events.js.map +1 -0
  314. package/distribution/exceptions/base.js +1 -5
  315. package/distribution/exceptions/base.js.map +1 -1
  316. package/distribution/exceptions/cli.d.ts +1 -1
  317. package/distribution/exceptions/cli.d.ts.map +1 -1
  318. package/distribution/exceptions/cli.js +3 -8
  319. package/distribution/exceptions/cli.js.map +1 -1
  320. package/distribution/exceptions/config.d.ts +1 -1
  321. package/distribution/exceptions/config.d.ts.map +1 -1
  322. package/distribution/exceptions/config.js +8 -18
  323. package/distribution/exceptions/config.js.map +1 -1
  324. package/distribution/exceptions/consensus.d.ts +1 -1
  325. package/distribution/exceptions/consensus.d.ts.map +1 -1
  326. package/distribution/exceptions/consensus.js +2 -6
  327. package/distribution/exceptions/consensus.js.map +1 -1
  328. package/distribution/exceptions/container.d.ts +1 -1
  329. package/distribution/exceptions/container.d.ts.map +1 -1
  330. package/distribution/exceptions/container.js +8 -18
  331. package/distribution/exceptions/container.js.map +1 -1
  332. package/distribution/exceptions/crypto.d.ts +13 -11
  333. package/distribution/exceptions/crypto.d.ts.map +1 -1
  334. package/distribution/exceptions/crypto.js +78 -143
  335. package/distribution/exceptions/crypto.js.map +1 -1
  336. package/distribution/exceptions/filesystem.d.ts +1 -1
  337. package/distribution/exceptions/filesystem.d.ts.map +1 -1
  338. package/distribution/exceptions/filesystem.js +5 -12
  339. package/distribution/exceptions/filesystem.js.map +1 -1
  340. package/distribution/exceptions/index.d.ts +16 -15
  341. package/distribution/exceptions/index.d.ts.map +1 -1
  342. package/distribution/exceptions/index.js +16 -31
  343. package/distribution/exceptions/index.js.map +1 -1
  344. package/distribution/exceptions/logic.d.ts +1 -1
  345. package/distribution/exceptions/logic.d.ts.map +1 -1
  346. package/distribution/exceptions/logic.js +12 -26
  347. package/distribution/exceptions/logic.js.map +1 -1
  348. package/distribution/exceptions/p2p.d.ts +5 -2
  349. package/distribution/exceptions/p2p.d.ts.map +1 -1
  350. package/distribution/exceptions/p2p.js +12 -16
  351. package/distribution/exceptions/p2p.js.map +1 -1
  352. package/distribution/exceptions/plugins.d.ts +2 -2
  353. package/distribution/exceptions/plugins.d.ts.map +1 -1
  354. package/distribution/exceptions/plugins.js +10 -21
  355. package/distribution/exceptions/plugins.js.map +1 -1
  356. package/distribution/exceptions/pool.d.ts +6 -7
  357. package/distribution/exceptions/pool.d.ts.map +1 -1
  358. package/distribution/exceptions/pool.js +18 -34
  359. package/distribution/exceptions/pool.js.map +1 -1
  360. package/distribution/exceptions/processor.d.ts +5 -2
  361. package/distribution/exceptions/processor.d.ts.map +1 -1
  362. package/distribution/exceptions/processor.js +15 -20
  363. package/distribution/exceptions/processor.js.map +1 -1
  364. package/distribution/exceptions/rpc.d.ts +6 -0
  365. package/distribution/exceptions/rpc.d.ts.map +1 -0
  366. package/distribution/exceptions/rpc.js +8 -0
  367. package/distribution/exceptions/rpc.js.map +1 -0
  368. package/distribution/exceptions/runtime.d.ts +1 -1
  369. package/distribution/exceptions/runtime.d.ts.map +1 -1
  370. package/distribution/exceptions/runtime.js +4 -10
  371. package/distribution/exceptions/runtime.js.map +1 -1
  372. package/distribution/exceptions/state.d.ts +1 -1
  373. package/distribution/exceptions/state.d.ts.map +1 -1
  374. package/distribution/exceptions/state.js +3 -8
  375. package/distribution/exceptions/state.js.map +1 -1
  376. package/distribution/exceptions/validation.d.ts +2 -2
  377. package/distribution/exceptions/validation.d.ts.map +1 -1
  378. package/distribution/exceptions/validation.js +4 -8
  379. package/distribution/exceptions/validation.js.map +1 -1
  380. package/distribution/identifiers.d.ts +59 -42
  381. package/distribution/identifiers.d.ts.map +1 -1
  382. package/distribution/identifiers.js +61 -47
  383. package/distribution/identifiers.js.map +1 -1
  384. package/distribution/index.d.ts +6 -5
  385. package/distribution/index.d.ts.map +1 -1
  386. package/distribution/index.js +7 -35
  387. package/distribution/index.js.map +1 -1
  388. package/distribution/utils.js +1 -2
  389. package/package.json +9 -7
  390. package/distribution/contracts/api.d.ts.map +0 -1
  391. package/distribution/contracts/api.js +0 -9
  392. package/distribution/contracts/api.js.map +0 -1
  393. package/distribution/contracts/fees.d.ts +0 -6
  394. package/distribution/contracts/fees.d.ts.map +0 -1
  395. package/distribution/contracts/fees.js +0 -3
  396. package/distribution/contracts/fees.js.map +0 -1
  397. package/distribution/contracts/kernel/process-actions.d.ts +0 -9
  398. package/distribution/contracts/kernel/process-actions.d.ts.map +0 -1
  399. package/distribution/contracts/kernel/process-actions.js +0 -3
  400. package/distribution/contracts/kernel/process-actions.js.map +0 -1
  401. package/distribution/contracts/state/attributes.d.ts +0 -22
  402. package/distribution/contracts/state/attributes.d.ts.map +0 -1
  403. package/distribution/contracts/state/attributes.js +0 -12
  404. package/distribution/contracts/state/attributes.js.map +0 -1
  405. package/distribution/contracts/state/block-state.d.ts +0 -12
  406. package/distribution/contracts/state/block-state.d.ts.map +0 -1
  407. package/distribution/contracts/state/block-state.js +0 -3
  408. package/distribution/contracts/state/block-state.js.map +0 -1
  409. package/distribution/contracts/state/index-set.d.ts +0 -5
  410. package/distribution/contracts/state/index-set.d.ts.map +0 -1
  411. package/distribution/contracts/state/index-set.js +0 -3
  412. package/distribution/contracts/state/index-set.js.map +0 -1
  413. package/distribution/contracts/state/repository.d.ts +0 -14
  414. package/distribution/contracts/state/repository.d.ts.map +0 -1
  415. package/distribution/contracts/state/repository.js +0 -3
  416. package/distribution/contracts/state/repository.js.map +0 -1
  417. package/distribution/contracts/state/service.d.ts +0 -10
  418. package/distribution/contracts/state/service.d.ts.map +0 -1
  419. package/distribution/contracts/state/service.js +0 -3
  420. package/distribution/contracts/state/service.js.map +0 -1
  421. package/distribution/contracts/state/snapshots.d.ts +0 -8
  422. package/distribution/contracts/state/snapshots.d.ts.map +0 -1
  423. package/distribution/contracts/state/snapshots.js +0 -3
  424. package/distribution/contracts/state/snapshots.js.map +0 -1
  425. package/distribution/contracts/state/state-verifier.d.ts +0 -4
  426. package/distribution/contracts/state/state-verifier.d.ts.map +0 -1
  427. package/distribution/contracts/state/state-verifier.js +0 -3
  428. package/distribution/contracts/state/state-verifier.js.map +0 -1
  429. package/distribution/contracts/state/transaction-validator.d.ts +0 -6
  430. package/distribution/contracts/state/transaction-validator.d.ts.map +0 -1
  431. package/distribution/contracts/state/transaction-validator.js +0 -3
  432. package/distribution/contracts/state/transaction-validator.js.map +0 -1
  433. package/distribution/contracts/transaction-pool/collator.d.ts +0 -5
  434. package/distribution/contracts/transaction-pool/collator.d.ts.map +0 -1
  435. package/distribution/contracts/transaction-pool/collator.js +0 -3
  436. package/distribution/contracts/transaction-pool/collator.js.map +0 -1
@@ -1,46 +1,22 @@
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.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.Kernel = __importStar(require("./kernel"));
34
- exports.NetworkGenerator = __importStar(require("./network-generator"));
35
- exports.P2P = __importStar(require("./p2p"));
36
- exports.Processor = __importStar(require("./processor"));
37
- exports.Proposer = __importStar(require("./proposer"));
38
- exports.Serializer = __importStar(require("./serializer"));
39
- exports.Shared = __importStar(require("./shared"));
40
- exports.State = __importStar(require("./state"));
41
- exports.TransactionPool = __importStar(require("./transaction-pool"));
42
- exports.Transactions = __importStar(require("./transactions"));
43
- exports.Types = __importStar(require("./types"));
44
- exports.Validator = __importStar(require("./validator"));
45
- exports.ValidatorSet = __importStar(require("./validator-set"));
1
+ export * as Api from "./api/index.js";
2
+ export * as ApiSync from "./api-sync.js";
3
+ export * as Consensus from "./consensus/index.js";
4
+ export * as ConsensusStorage from "./consensus-storage.js";
5
+ export * as Crypto from "./crypto/index.js";
6
+ export * as Database from "./database.js";
7
+ export * as Evm from "./evm/index.js";
8
+ export * as Kernel from "./kernel/index.js";
9
+ export * as NetworkGenerator from "./network-generator.js";
10
+ export * as P2P from "./p2p/index.js";
11
+ export * as Processor from "./processor.js";
12
+ export * as Proposer from "./proposer.js";
13
+ export * as Serializer from "./serializer.js";
14
+ export * as Shared from "./shared/index.js";
15
+ export * as State from "./state/index.js";
16
+ export * as TransactionPool from "./transaction-pool/index.js";
17
+ export * as Transactions from "./transactions.js";
18
+ export * as Types from "./types/index.js";
19
+ export * as Validator from "./validator.js";
20
+ export * as ValidatorSet from "./validator-set.js";
21
+ export * as Webhooks from "./webhooks.js";
46
22
  //# sourceMappingURL=index.js.map
@@ -1 +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,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"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/contracts/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,gBAAgB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,eAAe,CAAC;AACzC,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,gBAAgB,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,GAAG,MAAM,gBAAgB,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,gBAAgB,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,GAAG,MAAM,gBAAgB,CAAC;AACtC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,eAAe,MAAM,6BAA6B,CAAC;AAC/D,OAAO,KAAK,YAAY,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,YAAY,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC"}
@@ -1,5 +1,5 @@
1
- import { JsonObject } from "../types";
2
- import { Container } from "./container";
1
+ import { JsonObject } from "../types/index.js";
2
+ import { Container } from "./container.js";
3
3
  export interface Application {
4
4
  readonly container: Container.Container;
5
5
  bootstrap({ flags, plugins }: {
@@ -11,6 +11,7 @@ export interface Application {
11
11
  config<T = any>(key: string, value?: T, defaultValue?: T): T | undefined;
12
12
  version(): string;
13
13
  name(): string;
14
+ thread(): string;
14
15
  dataPath(path?: string): string;
15
16
  useDataPath(path: string): void;
16
17
  configPath(path?: string): string;
@@ -29,7 +30,7 @@ export interface Application {
29
30
  enableMaintenance(): void;
30
31
  disableMaintenance(): void;
31
32
  isDownForMaintenance(): boolean;
32
- terminate(reason?: string, error?: Error): Promise<void>;
33
+ terminate(reason?: string, error?: Error): Promise<never>;
33
34
  bind<T>(serviceIdentifier: Container.ServiceIdentifier<T>): Container.BindingToSyntax<T>;
34
35
  rebind<T>(serviceIdentifier: Container.ServiceIdentifier<T>): Container.BindingToSyntax<T>;
35
36
  unbind<T>(serviceIdentifier: Container.ServiceIdentifier<T>): void;
@@ -44,4 +45,7 @@ export interface PluginDependency {
44
45
  version?: string;
45
46
  required?: boolean | (() => Promise<boolean>);
46
47
  }
48
+ export interface Bootstrapper {
49
+ bootstrap(): Promise<void>;
50
+ }
47
51
  //# sourceMappingURL=application.d.ts.map
@@ -1 +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,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AAiB,EAAE,SAAS,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,CAAC,CAAC;IAE9G,OAAO,CAAC,CAAC,EAAE,iBAAiB,EAAE,SAAS,CAAC,iBAAiB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC;IAEvE,aAAa,CAAC,CAAC,EACd,iBAAiB,EAAE,SAAS,CAAC,iBAAiB,CAAC,CAAC,CAAC,EACjD,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAC7B,KAAK,EAAE,GAAG,GACR,OAAO,CAAC;IAEX,OAAO,CAAC,CAAC,EAAE,mBAAmB,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;CACzD;AAED,MAAM,WAAW,gBAAgB;IAChC,IAAI,EAAE,MAAM,CAAC;IAEb,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,QAAQ,CAAC,EAAE,OAAO,GAAG,CAAC,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;CAC9C;AAED,MAAM,WAAW,YAAY;IAC5B,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3B"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=application.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=cache.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=config.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=container.js.map
@@ -1,3 +1,3 @@
1
- import { EnvironmentVariableNames } from "../../constants";
1
+ import { EnvironmentVariableNames } from "../../constants/index.js";
2
2
  export type EnvironmentVariable = (typeof EnvironmentVariableNames)[number];
3
3
  //# sourceMappingURL=environment-variables.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"environment-variables.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/environment-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAE3D,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"environment-variables.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/environment-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=environment-variables.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=events.js.map
@@ -1,4 +1,5 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
+ /// <reference types="node" resolution-mode="require"/>
2
3
  export interface Filesystem {
3
4
  make(): Promise<Filesystem>;
4
5
  exists(path: string): Promise<boolean>;
@@ -13,5 +14,10 @@ export interface Filesystem {
13
14
  directories(directory: string): Promise<string[]>;
14
15
  makeDirectory(path: any): Promise<boolean>;
15
16
  deleteDirectory(directory: string): Promise<boolean>;
17
+ writeFileSync(file: string, data: string | NodeJS.ArrayBufferView, options: any): void;
18
+ existsSync(path: string): boolean;
19
+ removeSync(path: string): void;
20
+ readJSONSync<T>(file: string, options?: Record<string, any>): T;
21
+ ensureDirSync(path: string, options?: any): void;
16
22
  }
17
23
  //# sourceMappingURL=filesystem.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"filesystem.d.ts","sourceRoot":"","sources":["../../../source/contrac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G,OAAO,CAAC;IAElC,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B,YAAY,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;IAEhE,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC;CACjD"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=filesystem.js.map
@@ -1,15 +1,15 @@
1
- export * from "./application";
2
- export * from "./cache";
3
- export * from "./config";
4
- export * from "./container";
5
- export * from "./environment-variables";
6
- export * from "./events";
7
- export * from "./filesystem";
8
- export * from "./lock";
9
- export * from "./log";
10
- export * from "./pipeline";
11
- export * from "./process-actions";
12
- export * from "./queue";
13
- export * from "./repository";
14
- export * from "./validation";
1
+ export * from "./application.js";
2
+ export * from "./cache.js";
3
+ export * from "./config.js";
4
+ export * from "./container.js";
5
+ export * from "./environment-variables.js";
6
+ export * from "./events.js";
7
+ export * from "./filesystem.js";
8
+ export * as IPC from "./ipc.js";
9
+ export * from "./lock.js";
10
+ export * from "./log.js";
11
+ export * from "./pipeline.js";
12
+ export * from "./queue.js";
13
+ export * from "./repository.js";
14
+ export * from "./validation.js";
15
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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,yBAAyB,CAAC;AACxC,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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,OAAO,KAAK,GAAG,MAAM,UAAU,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
@@ -1,31 +1,15 @@
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("./environment-variables"), exports);
22
- __exportStar(require("./events"), exports);
23
- __exportStar(require("./filesystem"), exports);
24
- __exportStar(require("./lock"), exports);
25
- __exportStar(require("./log"), exports);
26
- __exportStar(require("./pipeline"), exports);
27
- __exportStar(require("./process-actions"), exports);
28
- __exportStar(require("./queue"), exports);
29
- __exportStar(require("./repository"), exports);
30
- __exportStar(require("./validation"), exports);
1
+ export * from "./application.js";
2
+ export * from "./cache.js";
3
+ export * from "./config.js";
4
+ export * from "./container.js";
5
+ export * from "./environment-variables.js";
6
+ export * from "./events.js";
7
+ export * from "./filesystem.js";
8
+ export * as IPC from "./ipc.js";
9
+ export * from "./lock.js";
10
+ export * from "./log.js";
11
+ export * from "./pipeline.js";
12
+ export * from "./queue.js";
13
+ export * from "./repository.js";
14
+ export * from "./validation.js";
31
15
  //# sourceMappingURL=index.js.map
@@ -1 +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,0DAAwC;AACxC,2CAAyB;AACzB,+CAA6B;AAC7B,yCAAuB;AACvB,wCAAsB;AACtB,6CAA2B;AAC3B,oDAAkC;AAClC,0CAAwB;AACxB,+CAA6B;AAC7B,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/contracts/kernel/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,OAAO,KAAK,GAAG,MAAM,UAAU,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,35 @@
1
+ export type Actions<T extends {}> = {
2
+ [K in keyof T]: T[K] extends (...arguments_: any[]) => any ? (ReturnType<T[K]> extends void ? K : never) : never;
3
+ }[keyof T];
4
+ export type Requests<T extends {}> = {
5
+ [K in keyof T]: T[K] extends (...arguments_: any[]) => any ? ReturnType<T[K]> extends Promise<any> ? K : never : never;
6
+ }[keyof T];
7
+ export type SuccessReply = {
8
+ id: number;
9
+ result: any;
10
+ };
11
+ export type ErrorReply = {
12
+ id: number;
13
+ error: string;
14
+ };
15
+ export type Event = {
16
+ event: string;
17
+ data: string;
18
+ };
19
+ export type Reply = SuccessReply | ErrorReply;
20
+ export type RequestCallback<T extends {}, K extends Requests<T>> = {
21
+ resolve: (result: ReturnType<T[K]>) => void;
22
+ reject: (error: Error) => void;
23
+ };
24
+ export type RequestCallbacks<T extends {}> = RequestCallback<T, Requests<T>>;
25
+ export type EventCallback<T> = (data: T) => void;
26
+ export interface Handler<T extends {}> {
27
+ handleRequest<K extends Requests<T>>(method: K): void;
28
+ }
29
+ export interface Subprocess<T extends {}> {
30
+ getQueueSize(): number;
31
+ kill(): Promise<number>;
32
+ sendRequest(method: string, ...arguments_: any): Promise<any>;
33
+ registerEventHandler(event: string, callback: EventCallback<any>): void;
34
+ }
35
+ //# sourceMappingURL=ipc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ipc.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/ipc.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,EAAE,IAAI;KAClC,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,UAAU,EAAE,GAAG,EAAE,KAAK,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,IAAI,GAAG,CAAC,GAAG,KAAK,CAAC,GAAG,KAAK;CAChH,CAAC,MAAM,CAAC,CAAC,CAAC;AAEX,MAAM,M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AC,EAAE,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC;CACtD;AAED,MAAM,WAAW,UAAU,CAAC,CAAC,SAAS,EAAE;IACvC,YAAY,IAAI,MAAM,CAAC;IACvB,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IACxB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,UAAU,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAC9D,oBAAoB,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;CACxE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ipc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ipc.js","sourceRoot":"","sources":["../../../source/contracts/kernel/ipc.ts"],"names":[],"mappings":""}
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=lock.js.map
@@ -1,5 +1,4 @@
1
1
  export interface Logger {
2
- make(options?: any): Promise<Logger>;
3
2
  emergency(message: string): void;
4
3
  alert(message: string): void;
5
4
  critical(message: string): void;
@@ -1 +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"}
1
+ {"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/log.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACtB,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;CACzB"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=log.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=pipeline.js.map
@@ -1,4 +1,4 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  import { EventEmitter } from "events";
3
3
  export interface QueueJob {
4
4
  handle(): Promise<void>;
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=queue.js.map
@@ -1,4 +1,4 @@
1
- import type { JsonObject, KeyValuePair } from "../types";
1
+ import type { JsonObject, KeyValuePair } from "../types/index.js";
2
2
  export interface Repository {
3
3
  all(): JsonObject;
4
4
  get<T>(key: string, defaultValue?: T): T;
@@ -1 +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"}
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,mBAAmB,CAAC;AAElE,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"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=repository.js.map
@@ -1,4 +1,4 @@
1
- import type { JsonObject } from "../types";
1
+ import type { JsonObject } from "../types/index.js";
2
2
  export interface Validator {
3
3
  validate(data: JsonObject, schema: object): void;
4
4
  passes(): boolean;
@@ -1 +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"}
1
+ {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/validation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,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"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=validation.js.map
@@ -10,15 +10,11 @@ export type EnvironmentOptions = {
10
10
  export type MilestoneOptions = {
11
11
  validators: number;
12
12
  maxBlockPayload: number;
13
+ maxBlockGasLimit: number;
13
14
  maxTxPerBlock: number;
14
15
  blockTime: number;
15
16
  epoch: Date;
16
17
  vendorFieldLength: number;
17
- address: {
18
- bech32m: string;
19
- } | {
20
- base58: number;
21
- };
22
18
  };
23
19
  export type NetworkOptions = {
24
20
  network: string;
@@ -1 +1 @@
1
- {"version":3,"file":"network-generator.d.ts","sourceRoot":"","sources":["../../source/contracts/network-generator.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC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;IACd,MAAM,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IAC1B,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,eAAe,EAAE,OAAO,CAAC;IACzB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,WAAW,EAAE,OAAO,CAAC;CACrB,CAAC"}
1
+ {"version":3,"file":"network-generator.d.ts","sourceRoot":"","sources":["../../source/contracts/network-generator.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,IAAI,CAAC;IACZ,iBAAiB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IACjC,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,IAAI,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,kBAAkB,GAC/C,gBAAgB,GAChB,cAAc,GACd,aAAa,GACb,mBAAmB,GAAG;IAErB,KAAK,EAAE,MAAM,EAAE,CAAC;IAGhB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,OAAO,CAAC;IACzB,KAAK,EAAE,OAAO,CAAC;CACf,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC,GAAG;IAChD,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IAC1B,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,eAAe,EAAE,OAAO,CAAC;IACzB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,WAAW,EAAE,OAAO,CAAC;CACrB,CAAC"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=network-generator.js.map
@@ -1,7 +1,6 @@
1
- import { ApiNode } from "./api-node";
2
- import { PeerProtocol } from "./enums";
3
- import { Peer } from "./peer";
4
- export type ApiNodeFactory = (ip: string, port: string | number, protocol?: PeerProtocol) => ApiNode;
1
+ import { ApiNode } from "./api-node.js";
2
+ import { Peer } from "./peer.js";
3
+ export type ApiNodeFactory = (url: string) => ApiNode;
5
4
  export interface ApiNodeDiscoverer {
6
5
  populateApiNodesFromConfiguration(): Promise<void>;
7
6
  discoverApiNodes(peer: Peer): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"api-node-discoverer.d.ts","sourceRoot":"","sources":["../../../source/contracts/p2p/api-node-discoverer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,MAAM,MAAM,cAAc,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,QAAQ,CAAC,EAAE,YAAY,KAAK,OAAO,CAAC;AAErG,MAAM,WAAW,iBAAiB;IACjC,iCAAiC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACnD,gBAAgB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACjC"}
1
+ {"version":3,"file":"api-node-discoverer.d.ts","sourceRoot":"","sources":["../../../source/contracts/p2p/api-node-discoverer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,MAAM,MAAM,cAAc,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;AAEtD,MAAM,WAAW,iBAAiB;IACjC,iCAAiC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACnD,gBAAgB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACjC"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=api-node-discoverer.js.map
@@ -1,4 +1,4 @@
1
- import { ApiNode } from "./api-node";
1
+ import { ApiNode } from "./api-node.js";
2
2
  export interface AcceptNewApiNodeOptions {
3
3
  seed?: boolean;
4
4
  }
@@ -1 +1 @@
1
- {"version":3,"file":"api-node-processor.d.ts","sourceRoot":"","sources":["../../../source/contracts/p2p/api-node-processor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,MAAM,WAAW,uBAAuB;IACvC,IAAI,CAAC,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,gBAAgB;IAChC,wBAAwB,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7F"}
1
+ {"version":3,"file":"api-node-processor.d.ts","sourceRoot":"","sources":["../../../source/contracts/p2p/api-node-processor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,MAAM,WAAW,uBAAuB;IACvC,IAAI,CAAC,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,gBAAgB;IAChC,wBAAwB,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7F"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=api-node-processor.js.map
@@ -1,4 +1,4 @@
1
- import { ApiNode } from "./api-node";
1
+ import { ApiNode } from "./api-node.js";
2
2
  export interface ApiNodeRepository {
3
3
  getApiNodes(): ApiNode[];
4
4
  hasApiNode(apiNode: ApiNode): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"api-node-repository.d.ts","sourceRoot":"","sources":["../../../source/contracts/p2p/api-node-repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,MAAM,WAAW,iBAAiB;IACjC,WAAW,IAAI,OAAO,EAAE,CAAC;IACzB,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC;IACtC,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IACnC,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IACtC,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IAC1C,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IAC7C,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC;CAC7C"}
1
+ {"version":3,"file":"api-node-repository.d.ts","sourceRoot":"","sources":["../../../source/contracts/p2p/api-node-repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,MAAM,WAAW,iBAAiB;IACjC,WAAW,IAAI,OAAO,EAAE,CAAC;IACzB,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC;IACtC,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IACnC,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IACtC,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IAC1C,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IAC7C,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC;CAC7C"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=api-node-repository.js.map
@@ -1,4 +1,4 @@
1
- import { ApiNode } from "./api-node";
1
+ import { ApiNode } from "./api-node.js";
2
2
  export interface ApiNodeVerifier {
3
3
  verify(apiNode: ApiNode): Promise<boolean>;
4
4
  }
@@ -1 +1 @@
1
- {"version":3,"file":"api-node-verifier.d.ts","sourceRoot":"","sources":["../../../source/contracts/p2p/api-node-verifier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,MAAM,WAAW,eAAe;IAC/B,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAC3C"}
1
+ {"version":3,"file":"api-node-verifier.d.ts","sourceRoot":"","sources":["../../../source/contracts/p2p/api-node-verifier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,MAAM,WAAW,eAAe;IAC/B,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAC3C"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=api-node-verifier.js.map
@@ -1,14 +1,13 @@
1
1
  import { Dayjs } from "dayjs";
2
- import { PeerProtocol } from "./enums";
3
2
  export interface ApiNode {
4
- readonly ip: string;
5
- readonly port: number;
6
- readonly protocol: PeerProtocol;
7
- url(): string;
3
+ readonly url: string;
8
4
  statusCode?: number;
9
5
  latency?: number;
10
6
  lastPinged?: Dayjs;
11
7
  height?: number;
12
8
  version?: string;
13
9
  }
10
+ export interface ApiNodeBroadcast {
11
+ url: string;
12
+ }
14
13
  //# sourceMappingURL=api-node.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"api-node.d.ts","sourceRoot":"","sources":["../../../source/contracts/p2p/api-node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAE9B,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,MAAM,WAAW,OAAO;IACvB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,YAAY,CAAC;IAEhC,GAAG,IAAI,MAAM,CAAC;IAEd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,KAAK,CAAC;IAGnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB"}
1
+ {"version":3,"file":"api-node.d.ts","sourceRoot":"","sources":["../../../source/contracts/p2p/api-node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAE9B,MAAM,WAAW,OAAO;IACvB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAErB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,KAAK,CAAC;IAGnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,gBAAgB;IAChC,GAAG,EAAE,MAAM,CAAC;CACZ"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=api-node.js.map