@xyo-network/chain-sdk 4.0.4 → 4.0.5

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 (1141) hide show
  1. package/dist/browser/analyze.d.ts +2 -0
  2. package/dist/browser/analyze.d.ts.map +1 -0
  3. package/dist/browser/browser/telemetry.d.ts +2 -0
  4. package/dist/browser/browser/telemetry.d.ts.map +1 -0
  5. package/dist/browser/ethereum.d.ts +2 -0
  6. package/dist/browser/ethereum.d.ts.map +1 -0
  7. package/dist/browser/index.d.ts +9 -9
  8. package/dist/browser/index.d.ts.map +1 -1
  9. package/dist/browser/index.mjs +9 -9
  10. package/dist/browser/index.mjs.map +2 -2
  11. package/dist/browser/modules/analyze/BalanceAnalyzer/BalanceAnalyzer.d.ts +19 -0
  12. package/dist/browser/modules/analyze/BalanceAnalyzer/BalanceAnalyzer.d.ts.map +1 -0
  13. package/dist/browser/modules/analyze/BalanceAnalyzer/ChainSummaryBalances.d.ts +16 -0
  14. package/dist/browser/modules/analyze/BalanceAnalyzer/ChainSummaryBalances.d.ts.map +1 -0
  15. package/dist/browser/modules/analyze/BalanceAnalyzer/index.d.ts +3 -0
  16. package/dist/browser/modules/analyze/BalanceAnalyzer/index.d.ts.map +1 -0
  17. package/dist/browser/modules/analyze/ChainFinalizer.d.ts +20 -0
  18. package/dist/browser/modules/analyze/ChainFinalizer.d.ts.map +1 -0
  19. package/dist/browser/modules/analyze/ChainHeadSelector.d.ts +34 -0
  20. package/dist/browser/modules/analyze/ChainHeadSelector.d.ts.map +1 -0
  21. package/dist/browser/modules/analyze/TransferAnalyzer/ChainSummaryTransfers.d.ts +16 -0
  22. package/dist/browser/modules/analyze/TransferAnalyzer/ChainSummaryTransfers.d.ts.map +1 -0
  23. package/dist/browser/modules/analyze/TransferAnalyzer/TransferAnalyzer.d.ts +15 -0
  24. package/dist/browser/modules/analyze/TransferAnalyzer/TransferAnalyzer.d.ts.map +1 -0
  25. package/dist/browser/modules/analyze/TransferAnalyzer/index.d.ts +3 -0
  26. package/dist/browser/modules/analyze/TransferAnalyzer/index.d.ts.map +1 -0
  27. package/dist/browser/modules/analyze/analyzeChain.d.ts +5 -0
  28. package/dist/browser/modules/analyze/analyzeChain.d.ts.map +1 -0
  29. package/dist/browser/modules/analyze/index.d.ts +7 -0
  30. package/dist/browser/modules/analyze/index.d.ts.map +1 -0
  31. package/dist/browser/modules/analyze/producer/ChainProducersAnalyzer.d.ts +12 -0
  32. package/dist/browser/modules/analyze/producer/ChainProducersAnalyzer.d.ts.map +1 -0
  33. package/dist/browser/modules/analyze/producer/ChainStakeIntentAnalyzer.d.ts +14 -0
  34. package/dist/browser/modules/analyze/producer/ChainStakeIntentAnalyzer.d.ts.map +1 -0
  35. package/dist/browser/modules/analyze/producer/ChainSummaryProducers.d.ts +19 -0
  36. package/dist/browser/modules/analyze/producer/ChainSummaryProducers.d.ts.map +1 -0
  37. package/dist/browser/modules/analyze/producer/ChainSummaryStakeIntent.d.ts +15 -0
  38. package/dist/browser/modules/analyze/producer/ChainSummaryStakeIntent.d.ts.map +1 -0
  39. package/dist/browser/modules/analyze/producer/index.d.ts +5 -0
  40. package/dist/browser/modules/analyze/producer/index.d.ts.map +1 -0
  41. package/dist/browser/modules/ethereum/BaseEthProvider.d.ts +56 -0
  42. package/dist/browser/modules/ethereum/BaseEthProvider.d.ts.map +1 -0
  43. package/dist/browser/modules/ethereum/block/index.d.ts +2 -0
  44. package/dist/browser/modules/ethereum/block/index.d.ts.map +1 -0
  45. package/dist/browser/modules/ethereum/block/rate/blockRate.d.ts +9 -0
  46. package/dist/browser/modules/ethereum/block/rate/blockRate.d.ts.map +1 -0
  47. package/dist/browser/modules/ethereum/block/rate/index.d.ts +3 -0
  48. package/dist/browser/modules/ethereum/block/rate/index.d.ts.map +1 -0
  49. package/dist/browser/modules/ethereum/block/rate/timeRate.d.ts +4 -0
  50. package/dist/browser/modules/ethereum/block/rate/timeRate.d.ts.map +1 -0
  51. package/dist/browser/modules/ethereum/createChain.d.ts +11 -0
  52. package/dist/browser/modules/ethereum/createChain.d.ts.map +1 -0
  53. package/dist/browser/modules/ethereum/createChainContract.d.ts +9 -0
  54. package/dist/browser/modules/ethereum/createChainContract.d.ts.map +1 -0
  55. package/dist/browser/modules/ethereum/createChainRewardsContract.d.ts +5 -0
  56. package/dist/browser/modules/ethereum/createChainRewardsContract.d.ts.map +1 -0
  57. package/dist/browser/modules/ethereum/drivers/EvmStakeEventZod.d.ts +245 -0
  58. package/dist/browser/modules/ethereum/drivers/EvmStakeEventZod.d.ts.map +1 -0
  59. package/dist/browser/modules/ethereum/drivers/EvmStakeEventsViewer.d.ts +31 -0
  60. package/dist/browser/modules/ethereum/drivers/EvmStakeEventsViewer.d.ts.map +1 -0
  61. package/dist/browser/modules/ethereum/drivers/EvmStakeViewer.d.ts +42 -0
  62. package/dist/browser/modules/ethereum/drivers/EvmStakeViewer.d.ts.map +1 -0
  63. package/dist/browser/modules/ethereum/drivers/index.d.ts +4 -0
  64. package/dist/browser/modules/ethereum/drivers/index.d.ts.map +1 -0
  65. package/dist/browser/modules/ethereum/ethereum.d.ts +6 -0
  66. package/dist/browser/modules/ethereum/ethereum.d.ts.map +1 -0
  67. package/dist/browser/modules/ethereum/index.d.ts +10 -0
  68. package/dist/browser/modules/ethereum/index.d.ts.map +1 -0
  69. package/dist/browser/modules/ethereum/model/ReturnTypeForOverload.d.ts +12 -0
  70. package/dist/browser/modules/ethereum/model/ReturnTypeForOverload.d.ts.map +1 -0
  71. package/dist/browser/modules/ethereum/model/index.d.ts +2 -0
  72. package/dist/browser/modules/ethereum/model/index.d.ts.map +1 -0
  73. package/dist/browser/modules/ethereum/nextContractAddress.d.ts +24 -0
  74. package/dist/browser/modules/ethereum/nextContractAddress.d.ts.map +1 -0
  75. package/dist/browser/modules/ethereum/providers/AbstractEvmProvider.d.ts +15 -0
  76. package/dist/browser/modules/ethereum/providers/AbstractEvmProvider.d.ts.map +1 -0
  77. package/dist/browser/modules/ethereum/providers/AbstractEvmRunner.d.ts +10 -0
  78. package/dist/browser/modules/ethereum/providers/AbstractEvmRunner.d.ts.map +1 -0
  79. package/dist/browser/modules/ethereum/providers/AbstractEvmViewer.d.ts +8 -0
  80. package/dist/browser/modules/ethereum/providers/AbstractEvmViewer.d.ts.map +1 -0
  81. package/dist/browser/modules/ethereum/providers/EvmChainContractViewer.d.ts +37 -0
  82. package/dist/browser/modules/ethereum/providers/EvmChainContractViewer.d.ts.map +1 -0
  83. package/dist/browser/modules/ethereum/providers/EvmStakeRunner.d.ts +20 -0
  84. package/dist/browser/modules/ethereum/providers/EvmStakeRunner.d.ts.map +1 -0
  85. package/dist/browser/modules/ethereum/providers/EvmStakeTotalsViewer.d.ts +27 -0
  86. package/dist/browser/modules/ethereum/providers/EvmStakeTotalsViewer.d.ts.map +1 -0
  87. package/dist/browser/modules/ethereum/providers/index.d.ts +7 -0
  88. package/dist/browser/modules/ethereum/providers/index.d.ts.map +1 -0
  89. package/dist/browser/modules/modules/diviners/BlockReward/Abstract/Config.d.ts +10 -0
  90. package/dist/browser/modules/modules/diviners/BlockReward/Abstract/Config.d.ts.map +1 -0
  91. package/dist/browser/modules/modules/diviners/BlockReward/Abstract/Diviner.d.ts +10 -0
  92. package/dist/browser/modules/modules/diviners/BlockReward/Abstract/Diviner.d.ts.map +1 -0
  93. package/dist/browser/modules/modules/diviners/BlockReward/Abstract/Params.d.ts +5 -0
  94. package/dist/browser/modules/modules/diviners/BlockReward/Abstract/Params.d.ts.map +1 -0
  95. package/dist/browser/modules/modules/diviners/BlockReward/Abstract/Payload.d.ts +32 -0
  96. package/dist/browser/modules/modules/diviners/BlockReward/Abstract/Payload.d.ts.map +1 -0
  97. package/dist/browser/modules/modules/diviners/BlockReward/Abstract/index.d.ts +5 -0
  98. package/dist/browser/modules/modules/diviners/BlockReward/Abstract/index.d.ts.map +1 -0
  99. package/dist/browser/modules/modules/diviners/BlockReward/FixedPercentage/Config.d.ts +19 -0
  100. package/dist/browser/modules/modules/diviners/BlockReward/FixedPercentage/Config.d.ts.map +1 -0
  101. package/dist/browser/modules/modules/diviners/BlockReward/FixedPercentage/Diviner.d.ts +27 -0
  102. package/dist/browser/modules/modules/diviners/BlockReward/FixedPercentage/Diviner.d.ts.map +1 -0
  103. package/dist/browser/modules/modules/diviners/BlockReward/FixedPercentage/Params.d.ts +8 -0
  104. package/dist/browser/modules/modules/diviners/BlockReward/FixedPercentage/Params.d.ts.map +1 -0
  105. package/dist/browser/modules/modules/diviners/BlockReward/FixedPercentage/index.d.ts +4 -0
  106. package/dist/browser/modules/modules/diviners/BlockReward/FixedPercentage/index.d.ts.map +1 -0
  107. package/dist/browser/modules/modules/diviners/BlockReward/index.d.ts +3 -0
  108. package/dist/browser/modules/modules/diviners/BlockReward/index.d.ts.map +1 -0
  109. package/dist/browser/modules/modules/diviners/BlockValidationDiviner.d.ts +38 -0
  110. package/dist/browser/modules/modules/diviners/BlockValidationDiviner.d.ts.map +1 -0
  111. package/dist/browser/modules/modules/diviners/HeadValidationDiviner.d.ts +68 -0
  112. package/dist/browser/modules/modules/diviners/HeadValidationDiviner.d.ts.map +1 -0
  113. package/dist/browser/modules/modules/diviners/index.d.ts +4 -0
  114. package/dist/browser/modules/modules/diviners/index.d.ts.map +1 -0
  115. package/dist/browser/modules/modules/index.d.ts +3 -0
  116. package/dist/browser/modules/modules/index.d.ts.map +1 -0
  117. package/dist/browser/modules/modules/witnesses/ArchivistNextWitness.d.ts +20 -0
  118. package/dist/browser/modules/modules/witnesses/ArchivistNextWitness.d.ts.map +1 -0
  119. package/dist/browser/modules/modules/witnesses/NetworkStake/NetworkStake.d.ts +15 -0
  120. package/dist/browser/modules/modules/witnesses/NetworkStake/NetworkStake.d.ts.map +1 -0
  121. package/dist/browser/modules/modules/witnesses/NetworkStake/NetworkStakeObserve.d.ts +15 -0
  122. package/dist/browser/modules/modules/witnesses/NetworkStake/NetworkStakeObserve.d.ts.map +1 -0
  123. package/dist/browser/modules/modules/witnesses/NetworkStake/index.d.ts +3 -0
  124. package/dist/browser/modules/modules/witnesses/NetworkStake/index.d.ts.map +1 -0
  125. package/dist/browser/modules/modules/witnesses/index.d.ts +3 -0
  126. package/dist/browser/modules/modules/witnesses/index.d.ts.map +1 -0
  127. package/dist/browser/modules/protocol/block/BuildBlockOptions.d.ts +26 -0
  128. package/dist/browser/modules/protocol/block/BuildBlockOptions.d.ts.map +1 -0
  129. package/dist/browser/modules/protocol/block/buildBlock.d.ts +4 -0
  130. package/dist/browser/modules/protocol/block/buildBlock.d.ts.map +1 -0
  131. package/dist/browser/modules/protocol/block/buildGenesisBlock.d.ts +8 -0
  132. package/dist/browser/modules/protocol/block/buildGenesisBlock.d.ts.map +1 -0
  133. package/dist/browser/modules/protocol/block/buildNextBlock.d.ts +9 -0
  134. package/dist/browser/modules/protocol/block/buildNextBlock.d.ts.map +1 -0
  135. package/dist/browser/modules/protocol/block/createGenesisBlock.d.ts +4 -0
  136. package/dist/browser/modules/protocol/block/createGenesisBlock.d.ts.map +1 -0
  137. package/dist/browser/modules/protocol/block/createProducerChainStakeIntentTransaction.d.ts +15 -0
  138. package/dist/browser/modules/protocol/block/createProducerChainStakeIntentTransaction.d.ts.map +1 -0
  139. package/dist/browser/modules/protocol/block/index.d.ts +8 -0
  140. package/dist/browser/modules/protocol/block/index.d.ts.map +1 -0
  141. package/dist/browser/modules/protocol/block/sort.d.ts +7 -0
  142. package/dist/browser/modules/protocol/block/sort.d.ts.map +1 -0
  143. package/dist/browser/modules/protocol/frameList.d.ts +5 -0
  144. package/dist/browser/modules/protocol/frameList.d.ts.map +1 -0
  145. package/dist/browser/modules/protocol/index.d.ts +3 -0
  146. package/dist/browser/modules/protocol/index.d.ts.map +1 -0
  147. package/dist/browser/modules/protocol-test/buildRandomChain.d.ts +17 -0
  148. package/dist/browser/modules/protocol-test/buildRandomChain.d.ts.map +1 -0
  149. package/dist/browser/modules/protocol-test/buildRandomChainArchivist.d.ts +5 -0
  150. package/dist/browser/modules/protocol-test/buildRandomChainArchivist.d.ts.map +1 -0
  151. package/dist/browser/modules/protocol-test/buildRandomGenesisBlock.d.ts +12 -0
  152. package/dist/browser/modules/protocol-test/buildRandomGenesisBlock.d.ts.map +1 -0
  153. package/dist/browser/modules/protocol-test/buildRandomNextBlock.d.ts +11 -0
  154. package/dist/browser/modules/protocol-test/buildRandomNextBlock.d.ts.map +1 -0
  155. package/dist/browser/modules/protocol-test/index.d.ts +5 -0
  156. package/dist/browser/modules/protocol-test/index.d.ts.map +1 -0
  157. package/dist/browser/modules/services/BlockReward/EvmBlockRewardViewer.d.ts +22 -0
  158. package/dist/browser/modules/services/BlockReward/EvmBlockRewardViewer.d.ts.map +1 -0
  159. package/dist/browser/modules/services/BlockReward/index.d.ts +2 -0
  160. package/dist/browser/modules/services/BlockReward/index.d.ts.map +1 -0
  161. package/dist/browser/modules/services/ChainValidator/XyoValidator.d.ts +18 -0
  162. package/dist/browser/modules/services/ChainValidator/XyoValidator.d.ts.map +1 -0
  163. package/dist/browser/modules/services/ChainValidator/index.d.ts +3 -0
  164. package/dist/browser/modules/services/ChainValidator/index.d.ts.map +1 -0
  165. package/dist/browser/modules/services/ChainValidator/model/Validator.d.ts +7 -0
  166. package/dist/browser/modules/services/ChainValidator/model/Validator.d.ts.map +1 -0
  167. package/dist/browser/modules/services/ChainValidator/model/index.d.ts +2 -0
  168. package/dist/browser/modules/services/ChainValidator/model/index.d.ts.map +1 -0
  169. package/dist/browser/modules/services/Election/BaseElectionService.d.ts +21 -0
  170. package/dist/browser/modules/services/Election/BaseElectionService.d.ts.map +1 -0
  171. package/dist/browser/modules/services/Election/index.d.ts +2 -0
  172. package/dist/browser/modules/services/Election/index.d.ts.map +1 -0
  173. package/dist/browser/modules/services/NetworkStakeStepReward/BaseNetworkStakeStepRewardService.d.ts +35 -0
  174. package/dist/browser/modules/services/NetworkStakeStepReward/BaseNetworkStakeStepRewardService.d.ts.map +1 -0
  175. package/dist/browser/modules/services/NetworkStakeStepReward/index.d.ts +2 -0
  176. package/dist/browser/modules/services/NetworkStakeStepReward/index.d.ts.map +1 -0
  177. package/dist/browser/modules/services/StepStake/BaseStepStakeService.d.ts +16 -0
  178. package/dist/browser/modules/services/StepStake/BaseStepStakeService.d.ts.map +1 -0
  179. package/dist/browser/modules/services/StepStake/index.d.ts +2 -0
  180. package/dist/browser/modules/services/StepStake/index.d.ts.map +1 -0
  181. package/dist/browser/modules/services/implementation/head/createBootstrapHead.d.ts +4 -0
  182. package/dist/browser/modules/services/implementation/head/createBootstrapHead.d.ts.map +1 -0
  183. package/dist/browser/modules/services/implementation/head/index.d.ts +2 -0
  184. package/dist/browser/modules/services/implementation/head/index.d.ts.map +1 -0
  185. package/dist/browser/modules/services/implementation/index.d.ts +3 -0
  186. package/dist/browser/modules/services/implementation/index.d.ts.map +1 -0
  187. package/dist/browser/modules/services/implementation/processPendingBlocks.d.ts +48 -0
  188. package/dist/browser/modules/services/implementation/processPendingBlocks.d.ts.map +1 -0
  189. package/dist/browser/modules/services/index.d.ts +9 -0
  190. package/dist/browser/modules/services/index.d.ts.map +1 -0
  191. package/dist/browser/modules/services/model/Params.d.ts +8 -0
  192. package/dist/browser/modules/services/model/Params.d.ts.map +1 -0
  193. package/dist/browser/modules/services/model/index.d.ts +2 -0
  194. package/dist/browser/modules/services/model/index.d.ts.map +1 -0
  195. package/dist/browser/modules/services/simple/block/index.d.ts +2 -0
  196. package/dist/browser/modules/services/simple/block/index.d.ts.map +1 -0
  197. package/dist/browser/modules/services/simple/block/runner/SimpleBlockRunner.d.ts +152 -0
  198. package/dist/browser/modules/services/simple/block/runner/SimpleBlockRunner.d.ts.map +1 -0
  199. package/dist/browser/modules/services/simple/block/runner/generateTransactionFeeTransfers.d.ts +4 -0
  200. package/dist/browser/modules/services/simple/block/runner/generateTransactionFeeTransfers.d.ts.map +1 -0
  201. package/dist/browser/modules/services/simple/block/runner/identifyOffendingTransactions.d.ts +12 -0
  202. package/dist/browser/modules/services/simple/block/runner/identifyOffendingTransactions.d.ts.map +1 -0
  203. package/dist/browser/modules/services/simple/block/runner/index.d.ts +2 -0
  204. package/dist/browser/modules/services/simple/block/runner/index.d.ts.map +1 -0
  205. package/dist/browser/modules/services/simple/index.d.ts +2 -0
  206. package/dist/browser/modules/services/simple/index.d.ts.map +1 -0
  207. package/dist/browser/modules/telemetry/TelemetryProviders.d.ts +6 -0
  208. package/dist/browser/modules/telemetry/TelemetryProviders.d.ts.map +1 -0
  209. package/dist/browser/modules/telemetry/index-node.d.ts +3 -0
  210. package/dist/browser/modules/telemetry/index-node.d.ts.map +1 -0
  211. package/dist/browser/modules/telemetry/index.d.ts +3 -0
  212. package/dist/browser/modules/telemetry/index.d.ts.map +1 -0
  213. package/dist/browser/modules/telemetry/initTelemetry.d.ts +19 -0
  214. package/dist/browser/modules/telemetry/initTelemetry.d.ts.map +1 -0
  215. package/dist/browser/modules/telemetry/initTelemetryNode.d.ts +19 -0
  216. package/dist/browser/modules/telemetry/initTelemetryNode.d.ts.map +1 -0
  217. package/dist/browser/modules/utils/archivist/findFirstMatching.d.ts +11 -0
  218. package/dist/browser/modules/utils/archivist/findFirstMatching.d.ts.map +1 -0
  219. package/dist/browser/modules/utils/archivist/index.d.ts +4 -0
  220. package/dist/browser/modules/utils/archivist/index.d.ts.map +1 -0
  221. package/dist/browser/modules/utils/archivist/payloadsToArchivist.d.ts +3 -0
  222. package/dist/browser/modules/utils/archivist/payloadsToArchivist.d.ts.map +1 -0
  223. package/dist/browser/modules/utils/archivist/synchronizeArchivists.d.ts +12 -0
  224. package/dist/browser/modules/utils/archivist/synchronizeArchivists.d.ts.map +1 -0
  225. package/dist/browser/modules/utils/conversion/index.d.ts +2 -0
  226. package/dist/browser/modules/utils/conversion/index.d.ts.map +1 -0
  227. package/dist/browser/modules/utils/conversion/units.d.ts +3 -0
  228. package/dist/browser/modules/utils/conversion/units.d.ts.map +1 -0
  229. package/dist/browser/modules/utils/formatters/index.d.ts +2 -0
  230. package/dist/browser/modules/utils/formatters/index.d.ts.map +1 -0
  231. package/dist/browser/modules/utils/formatters/string/bigIntToFixedPointString.d.ts +2 -0
  232. package/dist/browser/modules/utils/formatters/string/bigIntToFixedPointString.d.ts.map +1 -0
  233. package/dist/browser/modules/utils/formatters/string/formatNumber.d.ts +8 -0
  234. package/dist/browser/modules/utils/formatters/string/formatNumber.d.ts.map +1 -0
  235. package/dist/browser/modules/utils/formatters/string/index.d.ts +4 -0
  236. package/dist/browser/modules/utils/formatters/string/index.d.ts.map +1 -0
  237. package/dist/browser/modules/utils/formatters/string/removeTrailingZeros.d.ts +2 -0
  238. package/dist/browser/modules/utils/formatters/string/removeTrailingZeros.d.ts.map +1 -0
  239. package/dist/browser/modules/utils/hex/hexToLastFourBytesInt.d.ts +3 -0
  240. package/dist/browser/modules/utils/hex/hexToLastFourBytesInt.d.ts.map +1 -0
  241. package/dist/browser/modules/utils/hex/index.d.ts +2 -0
  242. package/dist/browser/modules/utils/hex/index.d.ts.map +1 -0
  243. package/dist/browser/modules/utils/index.d.ts +9 -0
  244. package/dist/browser/modules/utils/index.d.ts.map +1 -0
  245. package/dist/browser/modules/utils/interval/IntervalMap.d.ts +14 -0
  246. package/dist/browser/modules/utils/interval/IntervalMap.d.ts.map +1 -0
  247. package/dist/browser/modules/utils/interval/IntervalTree.d.ts +89 -0
  248. package/dist/browser/modules/utils/interval/IntervalTree.d.ts.map +1 -0
  249. package/dist/browser/modules/utils/interval/index.d.ts +3 -0
  250. package/dist/browser/modules/utils/interval/index.d.ts.map +1 -0
  251. package/dist/browser/modules/utils/random/index.d.ts +2 -0
  252. package/dist/browser/modules/utils/random/index.d.ts.map +1 -0
  253. package/dist/browser/modules/utils/random/shuffleWithSeed.d.ts +2 -0
  254. package/dist/browser/modules/utils/random/shuffleWithSeed.d.ts.map +1 -0
  255. package/dist/browser/modules/utils/steps/calculator/index.d.ts +2 -0
  256. package/dist/browser/modules/utils/steps/calculator/index.d.ts.map +1 -0
  257. package/dist/browser/modules/utils/steps/calculator/window/index.d.ts +2 -0
  258. package/dist/browser/modules/utils/steps/calculator/window/index.d.ts.map +1 -0
  259. package/dist/browser/modules/utils/steps/calculator/window/stepWindowCalculatorFromBlock.d.ts +8 -0
  260. package/dist/browser/modules/utils/steps/calculator/window/stepWindowCalculatorFromBlock.d.ts.map +1 -0
  261. package/dist/browser/modules/utils/steps/index.d.ts +2 -0
  262. package/dist/browser/modules/utils/steps/index.d.ts.map +1 -0
  263. package/dist/browser/modules/utils/telemetry/XyoConsoleSpanExporter.d.ts +14 -0
  264. package/dist/browser/modules/utils/telemetry/XyoConsoleSpanExporter.d.ts.map +1 -0
  265. package/dist/browser/modules/utils/telemetry/index.d.ts +3 -0
  266. package/dist/browser/modules/utils/telemetry/index.d.ts.map +1 -0
  267. package/dist/browser/modules/utils/telemetry/startupSpanAsync.d.ts +14 -0
  268. package/dist/browser/modules/utils/telemetry/startupSpanAsync.d.ts.map +1 -0
  269. package/dist/browser/modules/validation/block/index.d.ts +3 -0
  270. package/dist/browser/modules/validation/block/index.d.ts.map +1 -0
  271. package/dist/browser/modules/validation/block/validateBlock.d.ts +4 -0
  272. package/dist/browser/modules/validation/block/validateBlock.d.ts.map +1 -0
  273. package/dist/browser/modules/validation/block/validators/AllowedPayloadSchemas.d.ts +3 -0
  274. package/dist/browser/modules/validation/block/validators/AllowedPayloadSchemas.d.ts.map +1 -0
  275. package/dist/browser/modules/validation/block/validators/BoundWitness.d.ts +11 -0
  276. package/dist/browser/modules/validation/block/validators/BoundWitness.d.ts.map +1 -0
  277. package/dist/browser/modules/validation/block/validators/Fields.d.ts +3 -0
  278. package/dist/browser/modules/validation/block/validators/Fields.d.ts.map +1 -0
  279. package/dist/browser/modules/validation/block/validators/JsonSchema.d.ts +4 -0
  280. package/dist/browser/modules/validation/block/validators/JsonSchema.d.ts.map +1 -0
  281. package/dist/browser/modules/validation/block/validators/PreviousHash.d.ts +3 -0
  282. package/dist/browser/modules/validation/block/validators/PreviousHash.d.ts.map +1 -0
  283. package/dist/browser/modules/validation/block/validators/index.d.ts +6 -0
  284. package/dist/browser/modules/validation/block/validators/index.d.ts.map +1 -0
  285. package/dist/browser/modules/validation/elevatedPayload/index.d.ts +2 -0
  286. package/dist/browser/modules/validation/elevatedPayload/index.d.ts.map +1 -0
  287. package/dist/browser/modules/validation/elevatedPayload/lib/index.d.ts +7 -0
  288. package/dist/browser/modules/validation/elevatedPayload/lib/index.d.ts.map +1 -0
  289. package/dist/browser/modules/validation/elevatedPayload/lib/isElevatedFromBlock.d.ts +4 -0
  290. package/dist/browser/modules/validation/elevatedPayload/lib/isElevatedFromBlock.d.ts.map +1 -0
  291. package/dist/browser/modules/validation/elevatedPayload/lib/validateElevatedFromBlock.d.ts +3 -0
  292. package/dist/browser/modules/validation/elevatedPayload/lib/validateElevatedFromBlock.d.ts.map +1 -0
  293. package/dist/browser/modules/validation/elevatedPayload/lib/validateElevatedFromTransaction.d.ts +3 -0
  294. package/dist/browser/modules/validation/elevatedPayload/lib/validateElevatedFromTransaction.d.ts.map +1 -0
  295. package/dist/browser/modules/validation/elevatedPayload/lib/validateIncludedInBlock.d.ts +4 -0
  296. package/dist/browser/modules/validation/elevatedPayload/lib/validateIncludedInBlock.d.ts.map +1 -0
  297. package/dist/browser/modules/validation/elevatedPayload/lib/validateTransactionInBlock.d.ts +3 -0
  298. package/dist/browser/modules/validation/elevatedPayload/lib/validateTransactionInBlock.d.ts.map +1 -0
  299. package/dist/browser/modules/validation/elevatedPayload/lib/validateTypedPayloadInBlock.d.ts +5 -0
  300. package/dist/browser/modules/validation/elevatedPayload/lib/validateTypedPayloadInBlock.d.ts.map +1 -0
  301. package/dist/browser/modules/validation/elevatedPayload/payloads/index.d.ts +9 -0
  302. package/dist/browser/modules/validation/elevatedPayload/payloads/index.d.ts.map +1 -0
  303. package/dist/browser/modules/validation/elevatedPayload/payloads/validateBridgeDestinationObservationInBlock.d.ts +3 -0
  304. package/dist/browser/modules/validation/elevatedPayload/payloads/validateBridgeDestinationObservationInBlock.d.ts.map +1 -0
  305. package/dist/browser/modules/validation/elevatedPayload/payloads/validateBridgeIntentInBlock.d.ts +3 -0
  306. package/dist/browser/modules/validation/elevatedPayload/payloads/validateBridgeIntentInBlock.d.ts.map +1 -0
  307. package/dist/browser/modules/validation/elevatedPayload/payloads/validateBridgeSourceObservationInBlock.d.ts +3 -0
  308. package/dist/browser/modules/validation/elevatedPayload/payloads/validateBridgeSourceObservationInBlock.d.ts.map +1 -0
  309. package/dist/browser/modules/validation/elevatedPayload/payloads/validateChainStakeIntentInBlock.d.ts +3 -0
  310. package/dist/browser/modules/validation/elevatedPayload/payloads/validateChainStakeIntentInBlock.d.ts.map +1 -0
  311. package/dist/browser/modules/validation/elevatedPayload/payloads/validateHashInBlock.d.ts +3 -0
  312. package/dist/browser/modules/validation/elevatedPayload/payloads/validateHashInBlock.d.ts.map +1 -0
  313. package/dist/browser/modules/validation/elevatedPayload/payloads/validateSchemaInBlock.d.ts +3 -0
  314. package/dist/browser/modules/validation/elevatedPayload/payloads/validateSchemaInBlock.d.ts.map +1 -0
  315. package/dist/browser/modules/validation/elevatedPayload/payloads/validateTimeInBlock.d.ts +3 -0
  316. package/dist/browser/modules/validation/elevatedPayload/payloads/validateTimeInBlock.d.ts.map +1 -0
  317. package/dist/browser/modules/validation/elevatedPayload/payloads/validateTransferInBlock.d.ts +3 -0
  318. package/dist/browser/modules/validation/elevatedPayload/payloads/validateTransferInBlock.d.ts.map +1 -0
  319. package/dist/browser/modules/validation/elevatedPayload/validatePayloadInBlock.d.ts +3 -0
  320. package/dist/browser/modules/validation/elevatedPayload/validatePayloadInBlock.d.ts.map +1 -0
  321. package/dist/browser/modules/validation/hydratedBlock/index.d.ts +3 -0
  322. package/dist/browser/modules/validation/hydratedBlock/index.d.ts.map +1 -0
  323. package/dist/browser/modules/validation/hydratedBlock/validateHydratedBlock.d.ts +5 -0
  324. package/dist/browser/modules/validation/hydratedBlock/validateHydratedBlock.d.ts.map +1 -0
  325. package/dist/browser/modules/validation/hydratedBlock/validators/Payloads.d.ts +3 -0
  326. package/dist/browser/modules/validation/hydratedBlock/validators/Payloads.d.ts.map +1 -0
  327. package/dist/browser/modules/validation/hydratedBlock/validators/TransactionTransfersInBlock.d.ts +10 -0
  328. package/dist/browser/modules/validation/hydratedBlock/validators/TransactionTransfersInBlock.d.ts.map +1 -0
  329. package/dist/browser/modules/validation/hydratedBlock/validators/index.d.ts +3 -0
  330. package/dist/browser/modules/validation/hydratedBlock/validators/index.d.ts.map +1 -0
  331. package/dist/browser/modules/validation/hydratedBlockState/index.d.ts +3 -0
  332. package/dist/browser/modules/validation/hydratedBlockState/index.d.ts.map +1 -0
  333. package/dist/browser/modules/validation/hydratedBlockState/validateHydratedBlockState.d.ts +3 -0
  334. package/dist/browser/modules/validation/hydratedBlockState/validateHydratedBlockState.d.ts.map +1 -0
  335. package/dist/browser/modules/validation/hydratedBlockState/validators/RequiredBalance.d.ts +3 -0
  336. package/dist/browser/modules/validation/hydratedBlockState/validators/RequiredBalance.d.ts.map +1 -0
  337. package/dist/browser/modules/validation/hydratedBlockState/validators/index.d.ts +2 -0
  338. package/dist/browser/modules/validation/hydratedBlockState/validators/index.d.ts.map +1 -0
  339. package/dist/browser/modules/validation/hydratedTransactionState/index.d.ts +3 -0
  340. package/dist/browser/modules/validation/hydratedTransactionState/index.d.ts.map +1 -0
  341. package/dist/browser/modules/validation/hydratedTransactionState/validateHydratedTransactionState.d.ts +3 -0
  342. package/dist/browser/modules/validation/hydratedTransactionState/validateHydratedTransactionState.d.ts.map +1 -0
  343. package/dist/browser/modules/validation/hydratedTransactionState/validators/RequiredBalance.d.ts +3 -0
  344. package/dist/browser/modules/validation/hydratedTransactionState/validators/RequiredBalance.d.ts.map +1 -0
  345. package/dist/browser/modules/validation/hydratedTransactionState/validators/index.d.ts +2 -0
  346. package/dist/browser/modules/validation/hydratedTransactionState/validators/index.d.ts.map +1 -0
  347. package/dist/browser/modules/validation/index.d.ts +5 -0
  348. package/dist/browser/modules/validation/index.d.ts.map +1 -0
  349. package/dist/browser/modules/wrappers/block/HydratedBlock.d.ts +34 -0
  350. package/dist/browser/modules/wrappers/block/HydratedBlock.d.ts.map +1 -0
  351. package/dist/browser/modules/wrappers/block/index.d.ts +2 -0
  352. package/dist/browser/modules/wrappers/block/index.d.ts.map +1 -0
  353. package/dist/browser/modules/wrappers/index.d.ts +3 -0
  354. package/dist/browser/modules/wrappers/index.d.ts.map +1 -0
  355. package/dist/browser/modules.d.ts +2 -0
  356. package/dist/browser/modules.d.ts.map +1 -0
  357. package/dist/browser/node/telemetry.d.ts +2 -0
  358. package/dist/browser/node/telemetry.d.ts.map +1 -0
  359. package/dist/browser/protocol-test.d.ts +2 -0
  360. package/dist/browser/protocol-test.d.ts.map +1 -0
  361. package/dist/browser/protocol.d.ts +2 -0
  362. package/dist/browser/protocol.d.ts.map +1 -0
  363. package/dist/browser/services.d.ts +2 -0
  364. package/dist/browser/services.d.ts.map +1 -0
  365. package/dist/browser/telemetry.d.ts +2 -0
  366. package/dist/browser/telemetry.d.ts.map +1 -0
  367. package/dist/browser/telemetry.mjs +120 -0
  368. package/dist/browser/telemetry.mjs.map +7 -0
  369. package/dist/browser/utils.d.ts +2 -0
  370. package/dist/browser/utils.d.ts.map +1 -0
  371. package/dist/browser/validation.d.ts +2 -0
  372. package/dist/browser/validation.d.ts.map +1 -0
  373. package/dist/browser/wrappers.d.ts +2 -0
  374. package/dist/browser/wrappers.d.ts.map +1 -0
  375. package/dist/neutral/analyze.d.ts +2 -0
  376. package/dist/neutral/analyze.d.ts.map +1 -0
  377. package/dist/neutral/analyze.mjs +381 -0
  378. package/dist/neutral/analyze.mjs.map +7 -0
  379. package/dist/neutral/browser/telemetry.d.ts +2 -0
  380. package/dist/neutral/browser/telemetry.d.ts.map +1 -0
  381. package/dist/neutral/ethereum.d.ts +2 -0
  382. package/dist/neutral/ethereum.d.ts.map +1 -0
  383. package/dist/neutral/ethereum.mjs +1104 -0
  384. package/dist/neutral/ethereum.mjs.map +7 -0
  385. package/dist/neutral/index.d.ts +9 -9
  386. package/dist/neutral/index.d.ts.map +1 -1
  387. package/dist/neutral/index.mjs +9 -9
  388. package/dist/neutral/index.mjs.map +2 -2
  389. package/dist/neutral/modules/analyze/BalanceAnalyzer/BalanceAnalyzer.d.ts +19 -0
  390. package/dist/neutral/modules/analyze/BalanceAnalyzer/BalanceAnalyzer.d.ts.map +1 -0
  391. package/dist/neutral/modules/analyze/BalanceAnalyzer/ChainSummaryBalances.d.ts +16 -0
  392. package/dist/neutral/modules/analyze/BalanceAnalyzer/ChainSummaryBalances.d.ts.map +1 -0
  393. package/dist/neutral/modules/analyze/BalanceAnalyzer/index.d.ts +3 -0
  394. package/dist/neutral/modules/analyze/BalanceAnalyzer/index.d.ts.map +1 -0
  395. package/dist/neutral/modules/analyze/ChainFinalizer.d.ts +20 -0
  396. package/dist/neutral/modules/analyze/ChainFinalizer.d.ts.map +1 -0
  397. package/dist/neutral/modules/analyze/ChainHeadSelector.d.ts +34 -0
  398. package/dist/neutral/modules/analyze/ChainHeadSelector.d.ts.map +1 -0
  399. package/dist/neutral/modules/analyze/TransferAnalyzer/ChainSummaryTransfers.d.ts +16 -0
  400. package/dist/neutral/modules/analyze/TransferAnalyzer/ChainSummaryTransfers.d.ts.map +1 -0
  401. package/dist/neutral/modules/analyze/TransferAnalyzer/TransferAnalyzer.d.ts +15 -0
  402. package/dist/neutral/modules/analyze/TransferAnalyzer/TransferAnalyzer.d.ts.map +1 -0
  403. package/dist/neutral/modules/analyze/TransferAnalyzer/index.d.ts +3 -0
  404. package/dist/neutral/modules/analyze/TransferAnalyzer/index.d.ts.map +1 -0
  405. package/dist/neutral/modules/analyze/analyzeChain.d.ts +5 -0
  406. package/dist/neutral/modules/analyze/analyzeChain.d.ts.map +1 -0
  407. package/dist/neutral/modules/analyze/index.d.ts +7 -0
  408. package/dist/neutral/modules/analyze/index.d.ts.map +1 -0
  409. package/dist/neutral/modules/analyze/producer/ChainProducersAnalyzer.d.ts +12 -0
  410. package/dist/neutral/modules/analyze/producer/ChainProducersAnalyzer.d.ts.map +1 -0
  411. package/dist/neutral/modules/analyze/producer/ChainStakeIntentAnalyzer.d.ts +14 -0
  412. package/dist/neutral/modules/analyze/producer/ChainStakeIntentAnalyzer.d.ts.map +1 -0
  413. package/dist/neutral/modules/analyze/producer/ChainSummaryProducers.d.ts +19 -0
  414. package/dist/neutral/modules/analyze/producer/ChainSummaryProducers.d.ts.map +1 -0
  415. package/dist/neutral/modules/analyze/producer/ChainSummaryStakeIntent.d.ts +15 -0
  416. package/dist/neutral/modules/analyze/producer/ChainSummaryStakeIntent.d.ts.map +1 -0
  417. package/dist/neutral/modules/analyze/producer/index.d.ts +5 -0
  418. package/dist/neutral/modules/analyze/producer/index.d.ts.map +1 -0
  419. package/dist/neutral/modules/ethereum/BaseEthProvider.d.ts +56 -0
  420. package/dist/neutral/modules/ethereum/BaseEthProvider.d.ts.map +1 -0
  421. package/dist/neutral/modules/ethereum/block/index.d.ts +2 -0
  422. package/dist/neutral/modules/ethereum/block/index.d.ts.map +1 -0
  423. package/dist/neutral/modules/ethereum/block/rate/blockRate.d.ts +9 -0
  424. package/dist/neutral/modules/ethereum/block/rate/blockRate.d.ts.map +1 -0
  425. package/dist/neutral/modules/ethereum/block/rate/index.d.ts +3 -0
  426. package/dist/neutral/modules/ethereum/block/rate/index.d.ts.map +1 -0
  427. package/dist/neutral/modules/ethereum/block/rate/timeRate.d.ts +4 -0
  428. package/dist/neutral/modules/ethereum/block/rate/timeRate.d.ts.map +1 -0
  429. package/dist/neutral/modules/ethereum/createChain.d.ts +11 -0
  430. package/dist/neutral/modules/ethereum/createChain.d.ts.map +1 -0
  431. package/dist/neutral/modules/ethereum/createChainContract.d.ts +9 -0
  432. package/dist/neutral/modules/ethereum/createChainContract.d.ts.map +1 -0
  433. package/dist/neutral/modules/ethereum/createChainRewardsContract.d.ts +5 -0
  434. package/dist/neutral/modules/ethereum/createChainRewardsContract.d.ts.map +1 -0
  435. package/dist/neutral/modules/ethereum/drivers/EvmStakeEventZod.d.ts +245 -0
  436. package/dist/neutral/modules/ethereum/drivers/EvmStakeEventZod.d.ts.map +1 -0
  437. package/dist/neutral/modules/ethereum/drivers/EvmStakeEventsViewer.d.ts +31 -0
  438. package/dist/neutral/modules/ethereum/drivers/EvmStakeEventsViewer.d.ts.map +1 -0
  439. package/dist/neutral/modules/ethereum/drivers/EvmStakeViewer.d.ts +42 -0
  440. package/dist/neutral/modules/ethereum/drivers/EvmStakeViewer.d.ts.map +1 -0
  441. package/dist/neutral/modules/ethereum/drivers/index.d.ts +4 -0
  442. package/dist/neutral/modules/ethereum/drivers/index.d.ts.map +1 -0
  443. package/dist/neutral/modules/ethereum/ethereum.d.ts +6 -0
  444. package/dist/neutral/modules/ethereum/ethereum.d.ts.map +1 -0
  445. package/dist/neutral/modules/ethereum/index.d.ts +10 -0
  446. package/dist/neutral/modules/ethereum/index.d.ts.map +1 -0
  447. package/dist/neutral/modules/ethereum/model/ReturnTypeForOverload.d.ts +12 -0
  448. package/dist/neutral/modules/ethereum/model/ReturnTypeForOverload.d.ts.map +1 -0
  449. package/dist/neutral/modules/ethereum/model/index.d.ts +2 -0
  450. package/dist/neutral/modules/ethereum/model/index.d.ts.map +1 -0
  451. package/dist/neutral/modules/ethereum/nextContractAddress.d.ts +24 -0
  452. package/dist/neutral/modules/ethereum/nextContractAddress.d.ts.map +1 -0
  453. package/dist/neutral/modules/ethereum/providers/AbstractEvmProvider.d.ts +15 -0
  454. package/dist/neutral/modules/ethereum/providers/AbstractEvmProvider.d.ts.map +1 -0
  455. package/dist/neutral/modules/ethereum/providers/AbstractEvmRunner.d.ts +10 -0
  456. package/dist/neutral/modules/ethereum/providers/AbstractEvmRunner.d.ts.map +1 -0
  457. package/dist/neutral/modules/ethereum/providers/AbstractEvmViewer.d.ts +8 -0
  458. package/dist/neutral/modules/ethereum/providers/AbstractEvmViewer.d.ts.map +1 -0
  459. package/dist/neutral/modules/ethereum/providers/EvmChainContractViewer.d.ts +37 -0
  460. package/dist/neutral/modules/ethereum/providers/EvmChainContractViewer.d.ts.map +1 -0
  461. package/dist/neutral/modules/ethereum/providers/EvmStakeRunner.d.ts +20 -0
  462. package/dist/neutral/modules/ethereum/providers/EvmStakeRunner.d.ts.map +1 -0
  463. package/dist/neutral/modules/ethereum/providers/EvmStakeTotalsViewer.d.ts +27 -0
  464. package/dist/neutral/modules/ethereum/providers/EvmStakeTotalsViewer.d.ts.map +1 -0
  465. package/dist/neutral/modules/ethereum/providers/index.d.ts +7 -0
  466. package/dist/neutral/modules/ethereum/providers/index.d.ts.map +1 -0
  467. package/dist/neutral/modules/modules/diviners/BlockReward/Abstract/Config.d.ts +10 -0
  468. package/dist/neutral/modules/modules/diviners/BlockReward/Abstract/Config.d.ts.map +1 -0
  469. package/dist/neutral/modules/modules/diviners/BlockReward/Abstract/Diviner.d.ts +10 -0
  470. package/dist/neutral/modules/modules/diviners/BlockReward/Abstract/Diviner.d.ts.map +1 -0
  471. package/dist/neutral/modules/modules/diviners/BlockReward/Abstract/Params.d.ts +5 -0
  472. package/dist/neutral/modules/modules/diviners/BlockReward/Abstract/Params.d.ts.map +1 -0
  473. package/dist/neutral/modules/modules/diviners/BlockReward/Abstract/Payload.d.ts +32 -0
  474. package/dist/neutral/modules/modules/diviners/BlockReward/Abstract/Payload.d.ts.map +1 -0
  475. package/dist/neutral/modules/modules/diviners/BlockReward/Abstract/index.d.ts +5 -0
  476. package/dist/neutral/modules/modules/diviners/BlockReward/Abstract/index.d.ts.map +1 -0
  477. package/dist/neutral/modules/modules/diviners/BlockReward/FixedPercentage/Config.d.ts +19 -0
  478. package/dist/neutral/modules/modules/diviners/BlockReward/FixedPercentage/Config.d.ts.map +1 -0
  479. package/dist/neutral/modules/modules/diviners/BlockReward/FixedPercentage/Diviner.d.ts +27 -0
  480. package/dist/neutral/modules/modules/diviners/BlockReward/FixedPercentage/Diviner.d.ts.map +1 -0
  481. package/dist/neutral/modules/modules/diviners/BlockReward/FixedPercentage/Params.d.ts +8 -0
  482. package/dist/neutral/modules/modules/diviners/BlockReward/FixedPercentage/Params.d.ts.map +1 -0
  483. package/dist/neutral/modules/modules/diviners/BlockReward/FixedPercentage/index.d.ts +4 -0
  484. package/dist/neutral/modules/modules/diviners/BlockReward/FixedPercentage/index.d.ts.map +1 -0
  485. package/dist/neutral/modules/modules/diviners/BlockReward/index.d.ts +3 -0
  486. package/dist/neutral/modules/modules/diviners/BlockReward/index.d.ts.map +1 -0
  487. package/dist/neutral/modules/modules/diviners/BlockValidationDiviner.d.ts +38 -0
  488. package/dist/neutral/modules/modules/diviners/BlockValidationDiviner.d.ts.map +1 -0
  489. package/dist/neutral/modules/modules/diviners/HeadValidationDiviner.d.ts +68 -0
  490. package/dist/neutral/modules/modules/diviners/HeadValidationDiviner.d.ts.map +1 -0
  491. package/dist/neutral/modules/modules/diviners/index.d.ts +4 -0
  492. package/dist/neutral/modules/modules/diviners/index.d.ts.map +1 -0
  493. package/dist/neutral/modules/modules/index.d.ts +3 -0
  494. package/dist/neutral/modules/modules/index.d.ts.map +1 -0
  495. package/dist/neutral/modules/modules/witnesses/ArchivistNextWitness.d.ts +20 -0
  496. package/dist/neutral/modules/modules/witnesses/ArchivistNextWitness.d.ts.map +1 -0
  497. package/dist/neutral/modules/modules/witnesses/NetworkStake/NetworkStake.d.ts +15 -0
  498. package/dist/neutral/modules/modules/witnesses/NetworkStake/NetworkStake.d.ts.map +1 -0
  499. package/dist/neutral/modules/modules/witnesses/NetworkStake/NetworkStakeObserve.d.ts +15 -0
  500. package/dist/neutral/modules/modules/witnesses/NetworkStake/NetworkStakeObserve.d.ts.map +1 -0
  501. package/dist/neutral/modules/modules/witnesses/NetworkStake/index.d.ts +3 -0
  502. package/dist/neutral/modules/modules/witnesses/NetworkStake/index.d.ts.map +1 -0
  503. package/dist/neutral/modules/modules/witnesses/index.d.ts +3 -0
  504. package/dist/neutral/modules/modules/witnesses/index.d.ts.map +1 -0
  505. package/dist/neutral/modules/protocol/block/BuildBlockOptions.d.ts +26 -0
  506. package/dist/neutral/modules/protocol/block/BuildBlockOptions.d.ts.map +1 -0
  507. package/dist/neutral/modules/protocol/block/buildBlock.d.ts +4 -0
  508. package/dist/neutral/modules/protocol/block/buildBlock.d.ts.map +1 -0
  509. package/dist/neutral/modules/protocol/block/buildGenesisBlock.d.ts +8 -0
  510. package/dist/neutral/modules/protocol/block/buildGenesisBlock.d.ts.map +1 -0
  511. package/dist/neutral/modules/protocol/block/buildNextBlock.d.ts +9 -0
  512. package/dist/neutral/modules/protocol/block/buildNextBlock.d.ts.map +1 -0
  513. package/dist/neutral/modules/protocol/block/createGenesisBlock.d.ts +4 -0
  514. package/dist/neutral/modules/protocol/block/createGenesisBlock.d.ts.map +1 -0
  515. package/dist/neutral/modules/protocol/block/createProducerChainStakeIntentTransaction.d.ts +15 -0
  516. package/dist/neutral/modules/protocol/block/createProducerChainStakeIntentTransaction.d.ts.map +1 -0
  517. package/dist/neutral/modules/protocol/block/index.d.ts +8 -0
  518. package/dist/neutral/modules/protocol/block/index.d.ts.map +1 -0
  519. package/dist/neutral/modules/protocol/block/sort.d.ts +7 -0
  520. package/dist/neutral/modules/protocol/block/sort.d.ts.map +1 -0
  521. package/dist/neutral/modules/protocol/frameList.d.ts +5 -0
  522. package/dist/neutral/modules/protocol/frameList.d.ts.map +1 -0
  523. package/dist/neutral/modules/protocol/index.d.ts +3 -0
  524. package/dist/neutral/modules/protocol/index.d.ts.map +1 -0
  525. package/dist/neutral/modules/protocol-test/buildRandomChain.d.ts +17 -0
  526. package/dist/neutral/modules/protocol-test/buildRandomChain.d.ts.map +1 -0
  527. package/dist/neutral/modules/protocol-test/buildRandomChainArchivist.d.ts +5 -0
  528. package/dist/neutral/modules/protocol-test/buildRandomChainArchivist.d.ts.map +1 -0
  529. package/dist/neutral/modules/protocol-test/buildRandomGenesisBlock.d.ts +12 -0
  530. package/dist/neutral/modules/protocol-test/buildRandomGenesisBlock.d.ts.map +1 -0
  531. package/dist/neutral/modules/protocol-test/buildRandomNextBlock.d.ts +11 -0
  532. package/dist/neutral/modules/protocol-test/buildRandomNextBlock.d.ts.map +1 -0
  533. package/dist/neutral/modules/protocol-test/index.d.ts +5 -0
  534. package/dist/neutral/modules/protocol-test/index.d.ts.map +1 -0
  535. package/dist/neutral/modules/services/BlockReward/EvmBlockRewardViewer.d.ts +22 -0
  536. package/dist/neutral/modules/services/BlockReward/EvmBlockRewardViewer.d.ts.map +1 -0
  537. package/dist/neutral/modules/services/BlockReward/index.d.ts +2 -0
  538. package/dist/neutral/modules/services/BlockReward/index.d.ts.map +1 -0
  539. package/dist/neutral/modules/services/ChainValidator/XyoValidator.d.ts +18 -0
  540. package/dist/neutral/modules/services/ChainValidator/XyoValidator.d.ts.map +1 -0
  541. package/dist/neutral/modules/services/ChainValidator/index.d.ts +3 -0
  542. package/dist/neutral/modules/services/ChainValidator/index.d.ts.map +1 -0
  543. package/dist/neutral/modules/services/ChainValidator/model/Validator.d.ts +7 -0
  544. package/dist/neutral/modules/services/ChainValidator/model/Validator.d.ts.map +1 -0
  545. package/dist/neutral/modules/services/ChainValidator/model/index.d.ts +2 -0
  546. package/dist/neutral/modules/services/ChainValidator/model/index.d.ts.map +1 -0
  547. package/dist/neutral/modules/services/Election/BaseElectionService.d.ts +21 -0
  548. package/dist/neutral/modules/services/Election/BaseElectionService.d.ts.map +1 -0
  549. package/dist/neutral/modules/services/Election/index.d.ts +2 -0
  550. package/dist/neutral/modules/services/Election/index.d.ts.map +1 -0
  551. package/dist/neutral/modules/services/NetworkStakeStepReward/BaseNetworkStakeStepRewardService.d.ts +35 -0
  552. package/dist/neutral/modules/services/NetworkStakeStepReward/BaseNetworkStakeStepRewardService.d.ts.map +1 -0
  553. package/dist/neutral/modules/services/NetworkStakeStepReward/index.d.ts +2 -0
  554. package/dist/neutral/modules/services/NetworkStakeStepReward/index.d.ts.map +1 -0
  555. package/dist/neutral/modules/services/StepStake/BaseStepStakeService.d.ts +16 -0
  556. package/dist/neutral/modules/services/StepStake/BaseStepStakeService.d.ts.map +1 -0
  557. package/dist/neutral/modules/services/StepStake/index.d.ts +2 -0
  558. package/dist/neutral/modules/services/StepStake/index.d.ts.map +1 -0
  559. package/dist/neutral/modules/services/implementation/head/createBootstrapHead.d.ts +4 -0
  560. package/dist/neutral/modules/services/implementation/head/createBootstrapHead.d.ts.map +1 -0
  561. package/dist/neutral/modules/services/implementation/head/index.d.ts +2 -0
  562. package/dist/neutral/modules/services/implementation/head/index.d.ts.map +1 -0
  563. package/dist/neutral/modules/services/implementation/index.d.ts +3 -0
  564. package/dist/neutral/modules/services/implementation/index.d.ts.map +1 -0
  565. package/dist/neutral/modules/services/implementation/processPendingBlocks.d.ts +48 -0
  566. package/dist/neutral/modules/services/implementation/processPendingBlocks.d.ts.map +1 -0
  567. package/dist/neutral/modules/services/index.d.ts +9 -0
  568. package/dist/neutral/modules/services/index.d.ts.map +1 -0
  569. package/dist/neutral/modules/services/model/Params.d.ts +8 -0
  570. package/dist/neutral/modules/services/model/Params.d.ts.map +1 -0
  571. package/dist/neutral/modules/services/model/index.d.ts +2 -0
  572. package/dist/neutral/modules/services/model/index.d.ts.map +1 -0
  573. package/dist/neutral/modules/services/simple/block/index.d.ts +2 -0
  574. package/dist/neutral/modules/services/simple/block/index.d.ts.map +1 -0
  575. package/dist/neutral/modules/services/simple/block/runner/SimpleBlockRunner.d.ts +152 -0
  576. package/dist/neutral/modules/services/simple/block/runner/SimpleBlockRunner.d.ts.map +1 -0
  577. package/dist/neutral/modules/services/simple/block/runner/generateTransactionFeeTransfers.d.ts +4 -0
  578. package/dist/neutral/modules/services/simple/block/runner/generateTransactionFeeTransfers.d.ts.map +1 -0
  579. package/dist/neutral/modules/services/simple/block/runner/identifyOffendingTransactions.d.ts +12 -0
  580. package/dist/neutral/modules/services/simple/block/runner/identifyOffendingTransactions.d.ts.map +1 -0
  581. package/dist/neutral/modules/services/simple/block/runner/index.d.ts +2 -0
  582. package/dist/neutral/modules/services/simple/block/runner/index.d.ts.map +1 -0
  583. package/dist/neutral/modules/services/simple/index.d.ts +2 -0
  584. package/dist/neutral/modules/services/simple/index.d.ts.map +1 -0
  585. package/dist/neutral/modules/telemetry/TelemetryProviders.d.ts +6 -0
  586. package/dist/neutral/modules/telemetry/TelemetryProviders.d.ts.map +1 -0
  587. package/dist/neutral/modules/telemetry/index-node.d.ts +3 -0
  588. package/dist/neutral/modules/telemetry/index-node.d.ts.map +1 -0
  589. package/dist/neutral/modules/telemetry/index.d.ts +3 -0
  590. package/dist/neutral/modules/telemetry/index.d.ts.map +1 -0
  591. package/dist/neutral/modules/telemetry/initTelemetry.d.ts +19 -0
  592. package/dist/neutral/modules/telemetry/initTelemetry.d.ts.map +1 -0
  593. package/dist/neutral/modules/telemetry/initTelemetryNode.d.ts +19 -0
  594. package/dist/neutral/modules/telemetry/initTelemetryNode.d.ts.map +1 -0
  595. package/dist/neutral/modules/utils/archivist/findFirstMatching.d.ts +11 -0
  596. package/dist/neutral/modules/utils/archivist/findFirstMatching.d.ts.map +1 -0
  597. package/dist/neutral/modules/utils/archivist/index.d.ts +4 -0
  598. package/dist/neutral/modules/utils/archivist/index.d.ts.map +1 -0
  599. package/dist/neutral/modules/utils/archivist/payloadsToArchivist.d.ts +3 -0
  600. package/dist/neutral/modules/utils/archivist/payloadsToArchivist.d.ts.map +1 -0
  601. package/dist/neutral/modules/utils/archivist/synchronizeArchivists.d.ts +12 -0
  602. package/dist/neutral/modules/utils/archivist/synchronizeArchivists.d.ts.map +1 -0
  603. package/dist/neutral/modules/utils/conversion/index.d.ts +2 -0
  604. package/dist/neutral/modules/utils/conversion/index.d.ts.map +1 -0
  605. package/dist/neutral/modules/utils/conversion/units.d.ts +3 -0
  606. package/dist/neutral/modules/utils/conversion/units.d.ts.map +1 -0
  607. package/dist/neutral/modules/utils/formatters/index.d.ts +2 -0
  608. package/dist/neutral/modules/utils/formatters/index.d.ts.map +1 -0
  609. package/dist/neutral/modules/utils/formatters/string/bigIntToFixedPointString.d.ts +2 -0
  610. package/dist/neutral/modules/utils/formatters/string/bigIntToFixedPointString.d.ts.map +1 -0
  611. package/dist/neutral/modules/utils/formatters/string/formatNumber.d.ts +8 -0
  612. package/dist/neutral/modules/utils/formatters/string/formatNumber.d.ts.map +1 -0
  613. package/dist/neutral/modules/utils/formatters/string/index.d.ts +4 -0
  614. package/dist/neutral/modules/utils/formatters/string/index.d.ts.map +1 -0
  615. package/dist/neutral/modules/utils/formatters/string/removeTrailingZeros.d.ts +2 -0
  616. package/dist/neutral/modules/utils/formatters/string/removeTrailingZeros.d.ts.map +1 -0
  617. package/dist/neutral/modules/utils/hex/hexToLastFourBytesInt.d.ts +3 -0
  618. package/dist/neutral/modules/utils/hex/hexToLastFourBytesInt.d.ts.map +1 -0
  619. package/dist/neutral/modules/utils/hex/index.d.ts +2 -0
  620. package/dist/neutral/modules/utils/hex/index.d.ts.map +1 -0
  621. package/dist/neutral/modules/utils/index.d.ts +9 -0
  622. package/dist/neutral/modules/utils/index.d.ts.map +1 -0
  623. package/dist/neutral/modules/utils/interval/IntervalMap.d.ts +14 -0
  624. package/dist/neutral/modules/utils/interval/IntervalMap.d.ts.map +1 -0
  625. package/dist/neutral/modules/utils/interval/IntervalTree.d.ts +89 -0
  626. package/dist/neutral/modules/utils/interval/IntervalTree.d.ts.map +1 -0
  627. package/dist/neutral/modules/utils/interval/index.d.ts +3 -0
  628. package/dist/neutral/modules/utils/interval/index.d.ts.map +1 -0
  629. package/dist/neutral/modules/utils/random/index.d.ts +2 -0
  630. package/dist/neutral/modules/utils/random/index.d.ts.map +1 -0
  631. package/dist/neutral/modules/utils/random/shuffleWithSeed.d.ts +2 -0
  632. package/dist/neutral/modules/utils/random/shuffleWithSeed.d.ts.map +1 -0
  633. package/dist/neutral/modules/utils/steps/calculator/index.d.ts +2 -0
  634. package/dist/neutral/modules/utils/steps/calculator/index.d.ts.map +1 -0
  635. package/dist/neutral/modules/utils/steps/calculator/window/index.d.ts +2 -0
  636. package/dist/neutral/modules/utils/steps/calculator/window/index.d.ts.map +1 -0
  637. package/dist/neutral/modules/utils/steps/calculator/window/stepWindowCalculatorFromBlock.d.ts +8 -0
  638. package/dist/neutral/modules/utils/steps/calculator/window/stepWindowCalculatorFromBlock.d.ts.map +1 -0
  639. package/dist/neutral/modules/utils/steps/index.d.ts +2 -0
  640. package/dist/neutral/modules/utils/steps/index.d.ts.map +1 -0
  641. package/dist/neutral/modules/utils/telemetry/XyoConsoleSpanExporter.d.ts +14 -0
  642. package/dist/neutral/modules/utils/telemetry/XyoConsoleSpanExporter.d.ts.map +1 -0
  643. package/dist/neutral/modules/utils/telemetry/index.d.ts +3 -0
  644. package/dist/neutral/modules/utils/telemetry/index.d.ts.map +1 -0
  645. package/dist/neutral/modules/utils/telemetry/startupSpanAsync.d.ts +14 -0
  646. package/dist/neutral/modules/utils/telemetry/startupSpanAsync.d.ts.map +1 -0
  647. package/dist/neutral/modules/validation/block/index.d.ts +3 -0
  648. package/dist/neutral/modules/validation/block/index.d.ts.map +1 -0
  649. package/dist/neutral/modules/validation/block/validateBlock.d.ts +4 -0
  650. package/dist/neutral/modules/validation/block/validateBlock.d.ts.map +1 -0
  651. package/dist/neutral/modules/validation/block/validators/AllowedPayloadSchemas.d.ts +3 -0
  652. package/dist/neutral/modules/validation/block/validators/AllowedPayloadSchemas.d.ts.map +1 -0
  653. package/dist/neutral/modules/validation/block/validators/BoundWitness.d.ts +11 -0
  654. package/dist/neutral/modules/validation/block/validators/BoundWitness.d.ts.map +1 -0
  655. package/dist/neutral/modules/validation/block/validators/Fields.d.ts +3 -0
  656. package/dist/neutral/modules/validation/block/validators/Fields.d.ts.map +1 -0
  657. package/dist/neutral/modules/validation/block/validators/JsonSchema.d.ts +4 -0
  658. package/dist/neutral/modules/validation/block/validators/JsonSchema.d.ts.map +1 -0
  659. package/dist/neutral/modules/validation/block/validators/PreviousHash.d.ts +3 -0
  660. package/dist/neutral/modules/validation/block/validators/PreviousHash.d.ts.map +1 -0
  661. package/dist/neutral/modules/validation/block/validators/index.d.ts +6 -0
  662. package/dist/neutral/modules/validation/block/validators/index.d.ts.map +1 -0
  663. package/dist/neutral/modules/validation/elevatedPayload/index.d.ts +2 -0
  664. package/dist/neutral/modules/validation/elevatedPayload/index.d.ts.map +1 -0
  665. package/dist/neutral/modules/validation/elevatedPayload/lib/index.d.ts +7 -0
  666. package/dist/neutral/modules/validation/elevatedPayload/lib/index.d.ts.map +1 -0
  667. package/dist/neutral/modules/validation/elevatedPayload/lib/isElevatedFromBlock.d.ts +4 -0
  668. package/dist/neutral/modules/validation/elevatedPayload/lib/isElevatedFromBlock.d.ts.map +1 -0
  669. package/dist/neutral/modules/validation/elevatedPayload/lib/validateElevatedFromBlock.d.ts +3 -0
  670. package/dist/neutral/modules/validation/elevatedPayload/lib/validateElevatedFromBlock.d.ts.map +1 -0
  671. package/dist/neutral/modules/validation/elevatedPayload/lib/validateElevatedFromTransaction.d.ts +3 -0
  672. package/dist/neutral/modules/validation/elevatedPayload/lib/validateElevatedFromTransaction.d.ts.map +1 -0
  673. package/dist/neutral/modules/validation/elevatedPayload/lib/validateIncludedInBlock.d.ts +4 -0
  674. package/dist/neutral/modules/validation/elevatedPayload/lib/validateIncludedInBlock.d.ts.map +1 -0
  675. package/dist/neutral/modules/validation/elevatedPayload/lib/validateTransactionInBlock.d.ts +3 -0
  676. package/dist/neutral/modules/validation/elevatedPayload/lib/validateTransactionInBlock.d.ts.map +1 -0
  677. package/dist/neutral/modules/validation/elevatedPayload/lib/validateTypedPayloadInBlock.d.ts +5 -0
  678. package/dist/neutral/modules/validation/elevatedPayload/lib/validateTypedPayloadInBlock.d.ts.map +1 -0
  679. package/dist/neutral/modules/validation/elevatedPayload/payloads/index.d.ts +9 -0
  680. package/dist/neutral/modules/validation/elevatedPayload/payloads/index.d.ts.map +1 -0
  681. package/dist/neutral/modules/validation/elevatedPayload/payloads/validateBridgeDestinationObservationInBlock.d.ts +3 -0
  682. package/dist/neutral/modules/validation/elevatedPayload/payloads/validateBridgeDestinationObservationInBlock.d.ts.map +1 -0
  683. package/dist/neutral/modules/validation/elevatedPayload/payloads/validateBridgeIntentInBlock.d.ts +3 -0
  684. package/dist/neutral/modules/validation/elevatedPayload/payloads/validateBridgeIntentInBlock.d.ts.map +1 -0
  685. package/dist/neutral/modules/validation/elevatedPayload/payloads/validateBridgeSourceObservationInBlock.d.ts +3 -0
  686. package/dist/neutral/modules/validation/elevatedPayload/payloads/validateBridgeSourceObservationInBlock.d.ts.map +1 -0
  687. package/dist/neutral/modules/validation/elevatedPayload/payloads/validateChainStakeIntentInBlock.d.ts +3 -0
  688. package/dist/neutral/modules/validation/elevatedPayload/payloads/validateChainStakeIntentInBlock.d.ts.map +1 -0
  689. package/dist/neutral/modules/validation/elevatedPayload/payloads/validateHashInBlock.d.ts +3 -0
  690. package/dist/neutral/modules/validation/elevatedPayload/payloads/validateHashInBlock.d.ts.map +1 -0
  691. package/dist/neutral/modules/validation/elevatedPayload/payloads/validateSchemaInBlock.d.ts +3 -0
  692. package/dist/neutral/modules/validation/elevatedPayload/payloads/validateSchemaInBlock.d.ts.map +1 -0
  693. package/dist/neutral/modules/validation/elevatedPayload/payloads/validateTimeInBlock.d.ts +3 -0
  694. package/dist/neutral/modules/validation/elevatedPayload/payloads/validateTimeInBlock.d.ts.map +1 -0
  695. package/dist/neutral/modules/validation/elevatedPayload/payloads/validateTransferInBlock.d.ts +3 -0
  696. package/dist/neutral/modules/validation/elevatedPayload/payloads/validateTransferInBlock.d.ts.map +1 -0
  697. package/dist/neutral/modules/validation/elevatedPayload/validatePayloadInBlock.d.ts +3 -0
  698. package/dist/neutral/modules/validation/elevatedPayload/validatePayloadInBlock.d.ts.map +1 -0
  699. package/dist/neutral/modules/validation/hydratedBlock/index.d.ts +3 -0
  700. package/dist/neutral/modules/validation/hydratedBlock/index.d.ts.map +1 -0
  701. package/dist/neutral/modules/validation/hydratedBlock/validateHydratedBlock.d.ts +5 -0
  702. package/dist/neutral/modules/validation/hydratedBlock/validateHydratedBlock.d.ts.map +1 -0
  703. package/dist/neutral/modules/validation/hydratedBlock/validators/Payloads.d.ts +3 -0
  704. package/dist/neutral/modules/validation/hydratedBlock/validators/Payloads.d.ts.map +1 -0
  705. package/dist/neutral/modules/validation/hydratedBlock/validators/TransactionTransfersInBlock.d.ts +10 -0
  706. package/dist/neutral/modules/validation/hydratedBlock/validators/TransactionTransfersInBlock.d.ts.map +1 -0
  707. package/dist/neutral/modules/validation/hydratedBlock/validators/index.d.ts +3 -0
  708. package/dist/neutral/modules/validation/hydratedBlock/validators/index.d.ts.map +1 -0
  709. package/dist/neutral/modules/validation/hydratedBlockState/index.d.ts +3 -0
  710. package/dist/neutral/modules/validation/hydratedBlockState/index.d.ts.map +1 -0
  711. package/dist/neutral/modules/validation/hydratedBlockState/validateHydratedBlockState.d.ts +3 -0
  712. package/dist/neutral/modules/validation/hydratedBlockState/validateHydratedBlockState.d.ts.map +1 -0
  713. package/dist/neutral/modules/validation/hydratedBlockState/validators/RequiredBalance.d.ts +3 -0
  714. package/dist/neutral/modules/validation/hydratedBlockState/validators/RequiredBalance.d.ts.map +1 -0
  715. package/dist/neutral/modules/validation/hydratedBlockState/validators/index.d.ts +2 -0
  716. package/dist/neutral/modules/validation/hydratedBlockState/validators/index.d.ts.map +1 -0
  717. package/dist/neutral/modules/validation/hydratedTransactionState/index.d.ts +3 -0
  718. package/dist/neutral/modules/validation/hydratedTransactionState/index.d.ts.map +1 -0
  719. package/dist/neutral/modules/validation/hydratedTransactionState/validateHydratedTransactionState.d.ts +3 -0
  720. package/dist/neutral/modules/validation/hydratedTransactionState/validateHydratedTransactionState.d.ts.map +1 -0
  721. package/dist/neutral/modules/validation/hydratedTransactionState/validators/RequiredBalance.d.ts +3 -0
  722. package/dist/neutral/modules/validation/hydratedTransactionState/validators/RequiredBalance.d.ts.map +1 -0
  723. package/dist/neutral/modules/validation/hydratedTransactionState/validators/index.d.ts +2 -0
  724. package/dist/neutral/modules/validation/hydratedTransactionState/validators/index.d.ts.map +1 -0
  725. package/dist/neutral/modules/validation/index.d.ts +5 -0
  726. package/dist/neutral/modules/validation/index.d.ts.map +1 -0
  727. package/dist/neutral/modules/wrappers/block/HydratedBlock.d.ts +34 -0
  728. package/dist/neutral/modules/wrappers/block/HydratedBlock.d.ts.map +1 -0
  729. package/dist/neutral/modules/wrappers/block/index.d.ts +2 -0
  730. package/dist/neutral/modules/wrappers/block/index.d.ts.map +1 -0
  731. package/dist/neutral/modules/wrappers/index.d.ts +3 -0
  732. package/dist/neutral/modules/wrappers/index.d.ts.map +1 -0
  733. package/dist/neutral/modules.d.ts +2 -0
  734. package/dist/neutral/modules.d.ts.map +1 -0
  735. package/dist/neutral/modules.mjs +403 -0
  736. package/dist/neutral/modules.mjs.map +7 -0
  737. package/dist/neutral/node/telemetry.d.ts +2 -0
  738. package/dist/neutral/node/telemetry.d.ts.map +1 -0
  739. package/dist/neutral/protocol-test.d.ts +2 -0
  740. package/dist/neutral/protocol-test.d.ts.map +1 -0
  741. package/dist/neutral/protocol-test.mjs +165 -0
  742. package/dist/neutral/protocol-test.mjs.map +7 -0
  743. package/dist/neutral/protocol.d.ts +2 -0
  744. package/dist/neutral/protocol.d.ts.map +1 -0
  745. package/dist/neutral/protocol.mjs +311 -0
  746. package/dist/neutral/protocol.mjs.map +7 -0
  747. package/dist/neutral/services.d.ts +2 -0
  748. package/dist/neutral/services.d.ts.map +1 -0
  749. package/dist/neutral/services.mjs +841 -0
  750. package/dist/neutral/services.mjs.map +7 -0
  751. package/dist/neutral/telemetry.d.ts +2 -0
  752. package/dist/neutral/telemetry.d.ts.map +1 -0
  753. package/dist/neutral/telemetry.mjs +120 -0
  754. package/dist/neutral/telemetry.mjs.map +7 -0
  755. package/dist/neutral/utils.d.ts +2 -0
  756. package/dist/neutral/utils.d.ts.map +1 -0
  757. package/dist/neutral/utils.mjs +991 -0
  758. package/dist/neutral/utils.mjs.map +7 -0
  759. package/dist/neutral/validation.d.ts +2 -0
  760. package/dist/neutral/validation.d.ts.map +1 -0
  761. package/dist/neutral/validation.mjs +863 -0
  762. package/dist/neutral/validation.mjs.map +7 -0
  763. package/dist/neutral/wrappers.d.ts +2 -0
  764. package/dist/neutral/wrappers.d.ts.map +1 -0
  765. package/dist/neutral/wrappers.mjs +114 -0
  766. package/dist/neutral/wrappers.mjs.map +7 -0
  767. package/dist/node/analyze.d.ts +2 -0
  768. package/dist/node/analyze.d.ts.map +1 -0
  769. package/dist/node/browser/telemetry.d.ts +2 -0
  770. package/dist/node/browser/telemetry.d.ts.map +1 -0
  771. package/dist/node/ethereum.d.ts +2 -0
  772. package/dist/node/ethereum.d.ts.map +1 -0
  773. package/dist/node/index.d.ts +9 -9
  774. package/dist/node/index.d.ts.map +1 -1
  775. package/dist/node/index.mjs +9 -9
  776. package/dist/node/index.mjs.map +2 -2
  777. package/dist/node/modules/analyze/BalanceAnalyzer/BalanceAnalyzer.d.ts +19 -0
  778. package/dist/node/modules/analyze/BalanceAnalyzer/BalanceAnalyzer.d.ts.map +1 -0
  779. package/dist/node/modules/analyze/BalanceAnalyzer/ChainSummaryBalances.d.ts +16 -0
  780. package/dist/node/modules/analyze/BalanceAnalyzer/ChainSummaryBalances.d.ts.map +1 -0
  781. package/dist/node/modules/analyze/BalanceAnalyzer/index.d.ts +3 -0
  782. package/dist/node/modules/analyze/BalanceAnalyzer/index.d.ts.map +1 -0
  783. package/dist/node/modules/analyze/ChainFinalizer.d.ts +20 -0
  784. package/dist/node/modules/analyze/ChainFinalizer.d.ts.map +1 -0
  785. package/dist/node/modules/analyze/ChainHeadSelector.d.ts +34 -0
  786. package/dist/node/modules/analyze/ChainHeadSelector.d.ts.map +1 -0
  787. package/dist/node/modules/analyze/TransferAnalyzer/ChainSummaryTransfers.d.ts +16 -0
  788. package/dist/node/modules/analyze/TransferAnalyzer/ChainSummaryTransfers.d.ts.map +1 -0
  789. package/dist/node/modules/analyze/TransferAnalyzer/TransferAnalyzer.d.ts +15 -0
  790. package/dist/node/modules/analyze/TransferAnalyzer/TransferAnalyzer.d.ts.map +1 -0
  791. package/dist/node/modules/analyze/TransferAnalyzer/index.d.ts +3 -0
  792. package/dist/node/modules/analyze/TransferAnalyzer/index.d.ts.map +1 -0
  793. package/dist/node/modules/analyze/analyzeChain.d.ts +5 -0
  794. package/dist/node/modules/analyze/analyzeChain.d.ts.map +1 -0
  795. package/dist/node/modules/analyze/index.d.ts +7 -0
  796. package/dist/node/modules/analyze/index.d.ts.map +1 -0
  797. package/dist/node/modules/analyze/producer/ChainProducersAnalyzer.d.ts +12 -0
  798. package/dist/node/modules/analyze/producer/ChainProducersAnalyzer.d.ts.map +1 -0
  799. package/dist/node/modules/analyze/producer/ChainStakeIntentAnalyzer.d.ts +14 -0
  800. package/dist/node/modules/analyze/producer/ChainStakeIntentAnalyzer.d.ts.map +1 -0
  801. package/dist/node/modules/analyze/producer/ChainSummaryProducers.d.ts +19 -0
  802. package/dist/node/modules/analyze/producer/ChainSummaryProducers.d.ts.map +1 -0
  803. package/dist/node/modules/analyze/producer/ChainSummaryStakeIntent.d.ts +15 -0
  804. package/dist/node/modules/analyze/producer/ChainSummaryStakeIntent.d.ts.map +1 -0
  805. package/dist/node/modules/analyze/producer/index.d.ts +5 -0
  806. package/dist/node/modules/analyze/producer/index.d.ts.map +1 -0
  807. package/dist/node/modules/ethereum/BaseEthProvider.d.ts +56 -0
  808. package/dist/node/modules/ethereum/BaseEthProvider.d.ts.map +1 -0
  809. package/dist/node/modules/ethereum/block/index.d.ts +2 -0
  810. package/dist/node/modules/ethereum/block/index.d.ts.map +1 -0
  811. package/dist/node/modules/ethereum/block/rate/blockRate.d.ts +9 -0
  812. package/dist/node/modules/ethereum/block/rate/blockRate.d.ts.map +1 -0
  813. package/dist/node/modules/ethereum/block/rate/index.d.ts +3 -0
  814. package/dist/node/modules/ethereum/block/rate/index.d.ts.map +1 -0
  815. package/dist/node/modules/ethereum/block/rate/timeRate.d.ts +4 -0
  816. package/dist/node/modules/ethereum/block/rate/timeRate.d.ts.map +1 -0
  817. package/dist/node/modules/ethereum/createChain.d.ts +11 -0
  818. package/dist/node/modules/ethereum/createChain.d.ts.map +1 -0
  819. package/dist/node/modules/ethereum/createChainContract.d.ts +9 -0
  820. package/dist/node/modules/ethereum/createChainContract.d.ts.map +1 -0
  821. package/dist/node/modules/ethereum/createChainRewardsContract.d.ts +5 -0
  822. package/dist/node/modules/ethereum/createChainRewardsContract.d.ts.map +1 -0
  823. package/dist/node/modules/ethereum/drivers/EvmStakeEventZod.d.ts +245 -0
  824. package/dist/node/modules/ethereum/drivers/EvmStakeEventZod.d.ts.map +1 -0
  825. package/dist/node/modules/ethereum/drivers/EvmStakeEventsViewer.d.ts +31 -0
  826. package/dist/node/modules/ethereum/drivers/EvmStakeEventsViewer.d.ts.map +1 -0
  827. package/dist/node/modules/ethereum/drivers/EvmStakeViewer.d.ts +42 -0
  828. package/dist/node/modules/ethereum/drivers/EvmStakeViewer.d.ts.map +1 -0
  829. package/dist/node/modules/ethereum/drivers/index.d.ts +4 -0
  830. package/dist/node/modules/ethereum/drivers/index.d.ts.map +1 -0
  831. package/dist/node/modules/ethereum/ethereum.d.ts +6 -0
  832. package/dist/node/modules/ethereum/ethereum.d.ts.map +1 -0
  833. package/dist/node/modules/ethereum/index.d.ts +10 -0
  834. package/dist/node/modules/ethereum/index.d.ts.map +1 -0
  835. package/dist/node/modules/ethereum/model/ReturnTypeForOverload.d.ts +12 -0
  836. package/dist/node/modules/ethereum/model/ReturnTypeForOverload.d.ts.map +1 -0
  837. package/dist/node/modules/ethereum/model/index.d.ts +2 -0
  838. package/dist/node/modules/ethereum/model/index.d.ts.map +1 -0
  839. package/dist/node/modules/ethereum/nextContractAddress.d.ts +24 -0
  840. package/dist/node/modules/ethereum/nextContractAddress.d.ts.map +1 -0
  841. package/dist/node/modules/ethereum/providers/AbstractEvmProvider.d.ts +15 -0
  842. package/dist/node/modules/ethereum/providers/AbstractEvmProvider.d.ts.map +1 -0
  843. package/dist/node/modules/ethereum/providers/AbstractEvmRunner.d.ts +10 -0
  844. package/dist/node/modules/ethereum/providers/AbstractEvmRunner.d.ts.map +1 -0
  845. package/dist/node/modules/ethereum/providers/AbstractEvmViewer.d.ts +8 -0
  846. package/dist/node/modules/ethereum/providers/AbstractEvmViewer.d.ts.map +1 -0
  847. package/dist/node/modules/ethereum/providers/EvmChainContractViewer.d.ts +37 -0
  848. package/dist/node/modules/ethereum/providers/EvmChainContractViewer.d.ts.map +1 -0
  849. package/dist/node/modules/ethereum/providers/EvmStakeRunner.d.ts +20 -0
  850. package/dist/node/modules/ethereum/providers/EvmStakeRunner.d.ts.map +1 -0
  851. package/dist/node/modules/ethereum/providers/EvmStakeTotalsViewer.d.ts +27 -0
  852. package/dist/node/modules/ethereum/providers/EvmStakeTotalsViewer.d.ts.map +1 -0
  853. package/dist/node/modules/ethereum/providers/index.d.ts +7 -0
  854. package/dist/node/modules/ethereum/providers/index.d.ts.map +1 -0
  855. package/dist/node/modules/modules/diviners/BlockReward/Abstract/Config.d.ts +10 -0
  856. package/dist/node/modules/modules/diviners/BlockReward/Abstract/Config.d.ts.map +1 -0
  857. package/dist/node/modules/modules/diviners/BlockReward/Abstract/Diviner.d.ts +10 -0
  858. package/dist/node/modules/modules/diviners/BlockReward/Abstract/Diviner.d.ts.map +1 -0
  859. package/dist/node/modules/modules/diviners/BlockReward/Abstract/Params.d.ts +5 -0
  860. package/dist/node/modules/modules/diviners/BlockReward/Abstract/Params.d.ts.map +1 -0
  861. package/dist/node/modules/modules/diviners/BlockReward/Abstract/Payload.d.ts +32 -0
  862. package/dist/node/modules/modules/diviners/BlockReward/Abstract/Payload.d.ts.map +1 -0
  863. package/dist/node/modules/modules/diviners/BlockReward/Abstract/index.d.ts +5 -0
  864. package/dist/node/modules/modules/diviners/BlockReward/Abstract/index.d.ts.map +1 -0
  865. package/dist/node/modules/modules/diviners/BlockReward/FixedPercentage/Config.d.ts +19 -0
  866. package/dist/node/modules/modules/diviners/BlockReward/FixedPercentage/Config.d.ts.map +1 -0
  867. package/dist/node/modules/modules/diviners/BlockReward/FixedPercentage/Diviner.d.ts +27 -0
  868. package/dist/node/modules/modules/diviners/BlockReward/FixedPercentage/Diviner.d.ts.map +1 -0
  869. package/dist/node/modules/modules/diviners/BlockReward/FixedPercentage/Params.d.ts +8 -0
  870. package/dist/node/modules/modules/diviners/BlockReward/FixedPercentage/Params.d.ts.map +1 -0
  871. package/dist/node/modules/modules/diviners/BlockReward/FixedPercentage/index.d.ts +4 -0
  872. package/dist/node/modules/modules/diviners/BlockReward/FixedPercentage/index.d.ts.map +1 -0
  873. package/dist/node/modules/modules/diviners/BlockReward/index.d.ts +3 -0
  874. package/dist/node/modules/modules/diviners/BlockReward/index.d.ts.map +1 -0
  875. package/dist/node/modules/modules/diviners/BlockValidationDiviner.d.ts +38 -0
  876. package/dist/node/modules/modules/diviners/BlockValidationDiviner.d.ts.map +1 -0
  877. package/dist/node/modules/modules/diviners/HeadValidationDiviner.d.ts +68 -0
  878. package/dist/node/modules/modules/diviners/HeadValidationDiviner.d.ts.map +1 -0
  879. package/dist/node/modules/modules/diviners/index.d.ts +4 -0
  880. package/dist/node/modules/modules/diviners/index.d.ts.map +1 -0
  881. package/dist/node/modules/modules/index.d.ts +3 -0
  882. package/dist/node/modules/modules/index.d.ts.map +1 -0
  883. package/dist/node/modules/modules/witnesses/ArchivistNextWitness.d.ts +20 -0
  884. package/dist/node/modules/modules/witnesses/ArchivistNextWitness.d.ts.map +1 -0
  885. package/dist/node/modules/modules/witnesses/NetworkStake/NetworkStake.d.ts +15 -0
  886. package/dist/node/modules/modules/witnesses/NetworkStake/NetworkStake.d.ts.map +1 -0
  887. package/dist/node/modules/modules/witnesses/NetworkStake/NetworkStakeObserve.d.ts +15 -0
  888. package/dist/node/modules/modules/witnesses/NetworkStake/NetworkStakeObserve.d.ts.map +1 -0
  889. package/dist/node/modules/modules/witnesses/NetworkStake/index.d.ts +3 -0
  890. package/dist/node/modules/modules/witnesses/NetworkStake/index.d.ts.map +1 -0
  891. package/dist/node/modules/modules/witnesses/index.d.ts +3 -0
  892. package/dist/node/modules/modules/witnesses/index.d.ts.map +1 -0
  893. package/dist/node/modules/protocol/block/BuildBlockOptions.d.ts +26 -0
  894. package/dist/node/modules/protocol/block/BuildBlockOptions.d.ts.map +1 -0
  895. package/dist/node/modules/protocol/block/buildBlock.d.ts +4 -0
  896. package/dist/node/modules/protocol/block/buildBlock.d.ts.map +1 -0
  897. package/dist/node/modules/protocol/block/buildGenesisBlock.d.ts +8 -0
  898. package/dist/node/modules/protocol/block/buildGenesisBlock.d.ts.map +1 -0
  899. package/dist/node/modules/protocol/block/buildNextBlock.d.ts +9 -0
  900. package/dist/node/modules/protocol/block/buildNextBlock.d.ts.map +1 -0
  901. package/dist/node/modules/protocol/block/createGenesisBlock.d.ts +4 -0
  902. package/dist/node/modules/protocol/block/createGenesisBlock.d.ts.map +1 -0
  903. package/dist/node/modules/protocol/block/createProducerChainStakeIntentTransaction.d.ts +15 -0
  904. package/dist/node/modules/protocol/block/createProducerChainStakeIntentTransaction.d.ts.map +1 -0
  905. package/dist/node/modules/protocol/block/index.d.ts +8 -0
  906. package/dist/node/modules/protocol/block/index.d.ts.map +1 -0
  907. package/dist/node/modules/protocol/block/sort.d.ts +7 -0
  908. package/dist/node/modules/protocol/block/sort.d.ts.map +1 -0
  909. package/dist/node/modules/protocol/frameList.d.ts +5 -0
  910. package/dist/node/modules/protocol/frameList.d.ts.map +1 -0
  911. package/dist/node/modules/protocol/index.d.ts +3 -0
  912. package/dist/node/modules/protocol/index.d.ts.map +1 -0
  913. package/dist/node/modules/protocol-test/buildRandomChain.d.ts +17 -0
  914. package/dist/node/modules/protocol-test/buildRandomChain.d.ts.map +1 -0
  915. package/dist/node/modules/protocol-test/buildRandomChainArchivist.d.ts +5 -0
  916. package/dist/node/modules/protocol-test/buildRandomChainArchivist.d.ts.map +1 -0
  917. package/dist/node/modules/protocol-test/buildRandomGenesisBlock.d.ts +12 -0
  918. package/dist/node/modules/protocol-test/buildRandomGenesisBlock.d.ts.map +1 -0
  919. package/dist/node/modules/protocol-test/buildRandomNextBlock.d.ts +11 -0
  920. package/dist/node/modules/protocol-test/buildRandomNextBlock.d.ts.map +1 -0
  921. package/dist/node/modules/protocol-test/index.d.ts +5 -0
  922. package/dist/node/modules/protocol-test/index.d.ts.map +1 -0
  923. package/dist/node/modules/services/BlockReward/EvmBlockRewardViewer.d.ts +22 -0
  924. package/dist/node/modules/services/BlockReward/EvmBlockRewardViewer.d.ts.map +1 -0
  925. package/dist/node/modules/services/BlockReward/index.d.ts +2 -0
  926. package/dist/node/modules/services/BlockReward/index.d.ts.map +1 -0
  927. package/dist/node/modules/services/ChainValidator/XyoValidator.d.ts +18 -0
  928. package/dist/node/modules/services/ChainValidator/XyoValidator.d.ts.map +1 -0
  929. package/dist/node/modules/services/ChainValidator/index.d.ts +3 -0
  930. package/dist/node/modules/services/ChainValidator/index.d.ts.map +1 -0
  931. package/dist/node/modules/services/ChainValidator/model/Validator.d.ts +7 -0
  932. package/dist/node/modules/services/ChainValidator/model/Validator.d.ts.map +1 -0
  933. package/dist/node/modules/services/ChainValidator/model/index.d.ts +2 -0
  934. package/dist/node/modules/services/ChainValidator/model/index.d.ts.map +1 -0
  935. package/dist/node/modules/services/Election/BaseElectionService.d.ts +21 -0
  936. package/dist/node/modules/services/Election/BaseElectionService.d.ts.map +1 -0
  937. package/dist/node/modules/services/Election/index.d.ts +2 -0
  938. package/dist/node/modules/services/Election/index.d.ts.map +1 -0
  939. package/dist/node/modules/services/NetworkStakeStepReward/BaseNetworkStakeStepRewardService.d.ts +35 -0
  940. package/dist/node/modules/services/NetworkStakeStepReward/BaseNetworkStakeStepRewardService.d.ts.map +1 -0
  941. package/dist/node/modules/services/NetworkStakeStepReward/index.d.ts +2 -0
  942. package/dist/node/modules/services/NetworkStakeStepReward/index.d.ts.map +1 -0
  943. package/dist/node/modules/services/StepStake/BaseStepStakeService.d.ts +16 -0
  944. package/dist/node/modules/services/StepStake/BaseStepStakeService.d.ts.map +1 -0
  945. package/dist/node/modules/services/StepStake/index.d.ts +2 -0
  946. package/dist/node/modules/services/StepStake/index.d.ts.map +1 -0
  947. package/dist/node/modules/services/implementation/head/createBootstrapHead.d.ts +4 -0
  948. package/dist/node/modules/services/implementation/head/createBootstrapHead.d.ts.map +1 -0
  949. package/dist/node/modules/services/implementation/head/index.d.ts +2 -0
  950. package/dist/node/modules/services/implementation/head/index.d.ts.map +1 -0
  951. package/dist/node/modules/services/implementation/index.d.ts +3 -0
  952. package/dist/node/modules/services/implementation/index.d.ts.map +1 -0
  953. package/dist/node/modules/services/implementation/processPendingBlocks.d.ts +48 -0
  954. package/dist/node/modules/services/implementation/processPendingBlocks.d.ts.map +1 -0
  955. package/dist/node/modules/services/index.d.ts +9 -0
  956. package/dist/node/modules/services/index.d.ts.map +1 -0
  957. package/dist/node/modules/services/model/Params.d.ts +8 -0
  958. package/dist/node/modules/services/model/Params.d.ts.map +1 -0
  959. package/dist/node/modules/services/model/index.d.ts +2 -0
  960. package/dist/node/modules/services/model/index.d.ts.map +1 -0
  961. package/dist/node/modules/services/simple/block/index.d.ts +2 -0
  962. package/dist/node/modules/services/simple/block/index.d.ts.map +1 -0
  963. package/dist/node/modules/services/simple/block/runner/SimpleBlockRunner.d.ts +152 -0
  964. package/dist/node/modules/services/simple/block/runner/SimpleBlockRunner.d.ts.map +1 -0
  965. package/dist/node/modules/services/simple/block/runner/generateTransactionFeeTransfers.d.ts +4 -0
  966. package/dist/node/modules/services/simple/block/runner/generateTransactionFeeTransfers.d.ts.map +1 -0
  967. package/dist/node/modules/services/simple/block/runner/identifyOffendingTransactions.d.ts +12 -0
  968. package/dist/node/modules/services/simple/block/runner/identifyOffendingTransactions.d.ts.map +1 -0
  969. package/dist/node/modules/services/simple/block/runner/index.d.ts +2 -0
  970. package/dist/node/modules/services/simple/block/runner/index.d.ts.map +1 -0
  971. package/dist/node/modules/services/simple/index.d.ts +2 -0
  972. package/dist/node/modules/services/simple/index.d.ts.map +1 -0
  973. package/dist/node/modules/telemetry/TelemetryProviders.d.ts +6 -0
  974. package/dist/node/modules/telemetry/TelemetryProviders.d.ts.map +1 -0
  975. package/dist/node/modules/telemetry/index-node.d.ts +3 -0
  976. package/dist/node/modules/telemetry/index-node.d.ts.map +1 -0
  977. package/dist/node/modules/telemetry/index.d.ts +3 -0
  978. package/dist/node/modules/telemetry/index.d.ts.map +1 -0
  979. package/dist/node/modules/telemetry/initTelemetry.d.ts +19 -0
  980. package/dist/node/modules/telemetry/initTelemetry.d.ts.map +1 -0
  981. package/dist/node/modules/telemetry/initTelemetryNode.d.ts +19 -0
  982. package/dist/node/modules/telemetry/initTelemetryNode.d.ts.map +1 -0
  983. package/dist/node/modules/utils/archivist/findFirstMatching.d.ts +11 -0
  984. package/dist/node/modules/utils/archivist/findFirstMatching.d.ts.map +1 -0
  985. package/dist/node/modules/utils/archivist/index.d.ts +4 -0
  986. package/dist/node/modules/utils/archivist/index.d.ts.map +1 -0
  987. package/dist/node/modules/utils/archivist/payloadsToArchivist.d.ts +3 -0
  988. package/dist/node/modules/utils/archivist/payloadsToArchivist.d.ts.map +1 -0
  989. package/dist/node/modules/utils/archivist/synchronizeArchivists.d.ts +12 -0
  990. package/dist/node/modules/utils/archivist/synchronizeArchivists.d.ts.map +1 -0
  991. package/dist/node/modules/utils/conversion/index.d.ts +2 -0
  992. package/dist/node/modules/utils/conversion/index.d.ts.map +1 -0
  993. package/dist/node/modules/utils/conversion/units.d.ts +3 -0
  994. package/dist/node/modules/utils/conversion/units.d.ts.map +1 -0
  995. package/dist/node/modules/utils/formatters/index.d.ts +2 -0
  996. package/dist/node/modules/utils/formatters/index.d.ts.map +1 -0
  997. package/dist/node/modules/utils/formatters/string/bigIntToFixedPointString.d.ts +2 -0
  998. package/dist/node/modules/utils/formatters/string/bigIntToFixedPointString.d.ts.map +1 -0
  999. package/dist/node/modules/utils/formatters/string/formatNumber.d.ts +8 -0
  1000. package/dist/node/modules/utils/formatters/string/formatNumber.d.ts.map +1 -0
  1001. package/dist/node/modules/utils/formatters/string/index.d.ts +4 -0
  1002. package/dist/node/modules/utils/formatters/string/index.d.ts.map +1 -0
  1003. package/dist/node/modules/utils/formatters/string/removeTrailingZeros.d.ts +2 -0
  1004. package/dist/node/modules/utils/formatters/string/removeTrailingZeros.d.ts.map +1 -0
  1005. package/dist/node/modules/utils/hex/hexToLastFourBytesInt.d.ts +3 -0
  1006. package/dist/node/modules/utils/hex/hexToLastFourBytesInt.d.ts.map +1 -0
  1007. package/dist/node/modules/utils/hex/index.d.ts +2 -0
  1008. package/dist/node/modules/utils/hex/index.d.ts.map +1 -0
  1009. package/dist/node/modules/utils/index.d.ts +9 -0
  1010. package/dist/node/modules/utils/index.d.ts.map +1 -0
  1011. package/dist/node/modules/utils/interval/IntervalMap.d.ts +14 -0
  1012. package/dist/node/modules/utils/interval/IntervalMap.d.ts.map +1 -0
  1013. package/dist/node/modules/utils/interval/IntervalTree.d.ts +89 -0
  1014. package/dist/node/modules/utils/interval/IntervalTree.d.ts.map +1 -0
  1015. package/dist/node/modules/utils/interval/index.d.ts +3 -0
  1016. package/dist/node/modules/utils/interval/index.d.ts.map +1 -0
  1017. package/dist/node/modules/utils/random/index.d.ts +2 -0
  1018. package/dist/node/modules/utils/random/index.d.ts.map +1 -0
  1019. package/dist/node/modules/utils/random/shuffleWithSeed.d.ts +2 -0
  1020. package/dist/node/modules/utils/random/shuffleWithSeed.d.ts.map +1 -0
  1021. package/dist/node/modules/utils/steps/calculator/index.d.ts +2 -0
  1022. package/dist/node/modules/utils/steps/calculator/index.d.ts.map +1 -0
  1023. package/dist/node/modules/utils/steps/calculator/window/index.d.ts +2 -0
  1024. package/dist/node/modules/utils/steps/calculator/window/index.d.ts.map +1 -0
  1025. package/dist/node/modules/utils/steps/calculator/window/stepWindowCalculatorFromBlock.d.ts +8 -0
  1026. package/dist/node/modules/utils/steps/calculator/window/stepWindowCalculatorFromBlock.d.ts.map +1 -0
  1027. package/dist/node/modules/utils/steps/index.d.ts +2 -0
  1028. package/dist/node/modules/utils/steps/index.d.ts.map +1 -0
  1029. package/dist/node/modules/utils/telemetry/XyoConsoleSpanExporter.d.ts +14 -0
  1030. package/dist/node/modules/utils/telemetry/XyoConsoleSpanExporter.d.ts.map +1 -0
  1031. package/dist/node/modules/utils/telemetry/index.d.ts +3 -0
  1032. package/dist/node/modules/utils/telemetry/index.d.ts.map +1 -0
  1033. package/dist/node/modules/utils/telemetry/startupSpanAsync.d.ts +14 -0
  1034. package/dist/node/modules/utils/telemetry/startupSpanAsync.d.ts.map +1 -0
  1035. package/dist/node/modules/validation/block/index.d.ts +3 -0
  1036. package/dist/node/modules/validation/block/index.d.ts.map +1 -0
  1037. package/dist/node/modules/validation/block/validateBlock.d.ts +4 -0
  1038. package/dist/node/modules/validation/block/validateBlock.d.ts.map +1 -0
  1039. package/dist/node/modules/validation/block/validators/AllowedPayloadSchemas.d.ts +3 -0
  1040. package/dist/node/modules/validation/block/validators/AllowedPayloadSchemas.d.ts.map +1 -0
  1041. package/dist/node/modules/validation/block/validators/BoundWitness.d.ts +11 -0
  1042. package/dist/node/modules/validation/block/validators/BoundWitness.d.ts.map +1 -0
  1043. package/dist/node/modules/validation/block/validators/Fields.d.ts +3 -0
  1044. package/dist/node/modules/validation/block/validators/Fields.d.ts.map +1 -0
  1045. package/dist/node/modules/validation/block/validators/JsonSchema.d.ts +4 -0
  1046. package/dist/node/modules/validation/block/validators/JsonSchema.d.ts.map +1 -0
  1047. package/dist/node/modules/validation/block/validators/PreviousHash.d.ts +3 -0
  1048. package/dist/node/modules/validation/block/validators/PreviousHash.d.ts.map +1 -0
  1049. package/dist/node/modules/validation/block/validators/index.d.ts +6 -0
  1050. package/dist/node/modules/validation/block/validators/index.d.ts.map +1 -0
  1051. package/dist/node/modules/validation/elevatedPayload/index.d.ts +2 -0
  1052. package/dist/node/modules/validation/elevatedPayload/index.d.ts.map +1 -0
  1053. package/dist/node/modules/validation/elevatedPayload/lib/index.d.ts +7 -0
  1054. package/dist/node/modules/validation/elevatedPayload/lib/index.d.ts.map +1 -0
  1055. package/dist/node/modules/validation/elevatedPayload/lib/isElevatedFromBlock.d.ts +4 -0
  1056. package/dist/node/modules/validation/elevatedPayload/lib/isElevatedFromBlock.d.ts.map +1 -0
  1057. package/dist/node/modules/validation/elevatedPayload/lib/validateElevatedFromBlock.d.ts +3 -0
  1058. package/dist/node/modules/validation/elevatedPayload/lib/validateElevatedFromBlock.d.ts.map +1 -0
  1059. package/dist/node/modules/validation/elevatedPayload/lib/validateElevatedFromTransaction.d.ts +3 -0
  1060. package/dist/node/modules/validation/elevatedPayload/lib/validateElevatedFromTransaction.d.ts.map +1 -0
  1061. package/dist/node/modules/validation/elevatedPayload/lib/validateIncludedInBlock.d.ts +4 -0
  1062. package/dist/node/modules/validation/elevatedPayload/lib/validateIncludedInBlock.d.ts.map +1 -0
  1063. package/dist/node/modules/validation/elevatedPayload/lib/validateTransactionInBlock.d.ts +3 -0
  1064. package/dist/node/modules/validation/elevatedPayload/lib/validateTransactionInBlock.d.ts.map +1 -0
  1065. package/dist/node/modules/validation/elevatedPayload/lib/validateTypedPayloadInBlock.d.ts +5 -0
  1066. package/dist/node/modules/validation/elevatedPayload/lib/validateTypedPayloadInBlock.d.ts.map +1 -0
  1067. package/dist/node/modules/validation/elevatedPayload/payloads/index.d.ts +9 -0
  1068. package/dist/node/modules/validation/elevatedPayload/payloads/index.d.ts.map +1 -0
  1069. package/dist/node/modules/validation/elevatedPayload/payloads/validateBridgeDestinationObservationInBlock.d.ts +3 -0
  1070. package/dist/node/modules/validation/elevatedPayload/payloads/validateBridgeDestinationObservationInBlock.d.ts.map +1 -0
  1071. package/dist/node/modules/validation/elevatedPayload/payloads/validateBridgeIntentInBlock.d.ts +3 -0
  1072. package/dist/node/modules/validation/elevatedPayload/payloads/validateBridgeIntentInBlock.d.ts.map +1 -0
  1073. package/dist/node/modules/validation/elevatedPayload/payloads/validateBridgeSourceObservationInBlock.d.ts +3 -0
  1074. package/dist/node/modules/validation/elevatedPayload/payloads/validateBridgeSourceObservationInBlock.d.ts.map +1 -0
  1075. package/dist/node/modules/validation/elevatedPayload/payloads/validateChainStakeIntentInBlock.d.ts +3 -0
  1076. package/dist/node/modules/validation/elevatedPayload/payloads/validateChainStakeIntentInBlock.d.ts.map +1 -0
  1077. package/dist/node/modules/validation/elevatedPayload/payloads/validateHashInBlock.d.ts +3 -0
  1078. package/dist/node/modules/validation/elevatedPayload/payloads/validateHashInBlock.d.ts.map +1 -0
  1079. package/dist/node/modules/validation/elevatedPayload/payloads/validateSchemaInBlock.d.ts +3 -0
  1080. package/dist/node/modules/validation/elevatedPayload/payloads/validateSchemaInBlock.d.ts.map +1 -0
  1081. package/dist/node/modules/validation/elevatedPayload/payloads/validateTimeInBlock.d.ts +3 -0
  1082. package/dist/node/modules/validation/elevatedPayload/payloads/validateTimeInBlock.d.ts.map +1 -0
  1083. package/dist/node/modules/validation/elevatedPayload/payloads/validateTransferInBlock.d.ts +3 -0
  1084. package/dist/node/modules/validation/elevatedPayload/payloads/validateTransferInBlock.d.ts.map +1 -0
  1085. package/dist/node/modules/validation/elevatedPayload/validatePayloadInBlock.d.ts +3 -0
  1086. package/dist/node/modules/validation/elevatedPayload/validatePayloadInBlock.d.ts.map +1 -0
  1087. package/dist/node/modules/validation/hydratedBlock/index.d.ts +3 -0
  1088. package/dist/node/modules/validation/hydratedBlock/index.d.ts.map +1 -0
  1089. package/dist/node/modules/validation/hydratedBlock/validateHydratedBlock.d.ts +5 -0
  1090. package/dist/node/modules/validation/hydratedBlock/validateHydratedBlock.d.ts.map +1 -0
  1091. package/dist/node/modules/validation/hydratedBlock/validators/Payloads.d.ts +3 -0
  1092. package/dist/node/modules/validation/hydratedBlock/validators/Payloads.d.ts.map +1 -0
  1093. package/dist/node/modules/validation/hydratedBlock/validators/TransactionTransfersInBlock.d.ts +10 -0
  1094. package/dist/node/modules/validation/hydratedBlock/validators/TransactionTransfersInBlock.d.ts.map +1 -0
  1095. package/dist/node/modules/validation/hydratedBlock/validators/index.d.ts +3 -0
  1096. package/dist/node/modules/validation/hydratedBlock/validators/index.d.ts.map +1 -0
  1097. package/dist/node/modules/validation/hydratedBlockState/index.d.ts +3 -0
  1098. package/dist/node/modules/validation/hydratedBlockState/index.d.ts.map +1 -0
  1099. package/dist/node/modules/validation/hydratedBlockState/validateHydratedBlockState.d.ts +3 -0
  1100. package/dist/node/modules/validation/hydratedBlockState/validateHydratedBlockState.d.ts.map +1 -0
  1101. package/dist/node/modules/validation/hydratedBlockState/validators/RequiredBalance.d.ts +3 -0
  1102. package/dist/node/modules/validation/hydratedBlockState/validators/RequiredBalance.d.ts.map +1 -0
  1103. package/dist/node/modules/validation/hydratedBlockState/validators/index.d.ts +2 -0
  1104. package/dist/node/modules/validation/hydratedBlockState/validators/index.d.ts.map +1 -0
  1105. package/dist/node/modules/validation/hydratedTransactionState/index.d.ts +3 -0
  1106. package/dist/node/modules/validation/hydratedTransactionState/index.d.ts.map +1 -0
  1107. package/dist/node/modules/validation/hydratedTransactionState/validateHydratedTransactionState.d.ts +3 -0
  1108. package/dist/node/modules/validation/hydratedTransactionState/validateHydratedTransactionState.d.ts.map +1 -0
  1109. package/dist/node/modules/validation/hydratedTransactionState/validators/RequiredBalance.d.ts +3 -0
  1110. package/dist/node/modules/validation/hydratedTransactionState/validators/RequiredBalance.d.ts.map +1 -0
  1111. package/dist/node/modules/validation/hydratedTransactionState/validators/index.d.ts +2 -0
  1112. package/dist/node/modules/validation/hydratedTransactionState/validators/index.d.ts.map +1 -0
  1113. package/dist/node/modules/validation/index.d.ts +5 -0
  1114. package/dist/node/modules/validation/index.d.ts.map +1 -0
  1115. package/dist/node/modules/wrappers/block/HydratedBlock.d.ts +34 -0
  1116. package/dist/node/modules/wrappers/block/HydratedBlock.d.ts.map +1 -0
  1117. package/dist/node/modules/wrappers/block/index.d.ts +2 -0
  1118. package/dist/node/modules/wrappers/block/index.d.ts.map +1 -0
  1119. package/dist/node/modules/wrappers/index.d.ts +3 -0
  1120. package/dist/node/modules/wrappers/index.d.ts.map +1 -0
  1121. package/dist/node/modules.d.ts +2 -0
  1122. package/dist/node/modules.d.ts.map +1 -0
  1123. package/dist/node/node/telemetry.d.ts +2 -0
  1124. package/dist/node/node/telemetry.d.ts.map +1 -0
  1125. package/dist/node/protocol-test.d.ts +2 -0
  1126. package/dist/node/protocol-test.d.ts.map +1 -0
  1127. package/dist/node/protocol.d.ts +2 -0
  1128. package/dist/node/protocol.d.ts.map +1 -0
  1129. package/dist/node/services.d.ts +2 -0
  1130. package/dist/node/services.d.ts.map +1 -0
  1131. package/dist/node/telemetry.d.ts +2 -0
  1132. package/dist/node/telemetry.d.ts.map +1 -0
  1133. package/dist/node/telemetry.mjs +149 -0
  1134. package/dist/node/telemetry.mjs.map +7 -0
  1135. package/dist/node/utils.d.ts +2 -0
  1136. package/dist/node/utils.d.ts.map +1 -0
  1137. package/dist/node/validation.d.ts +2 -0
  1138. package/dist/node/validation.d.ts.map +1 -0
  1139. package/dist/node/wrappers.d.ts +2 -0
  1140. package/dist/node/wrappers.d.ts.map +1 -0
  1141. package/package.json +109 -60
@@ -0,0 +1,841 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
+ var __decorateClass = (decorators, target, key, kind) => {
5
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
6
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
7
+ if (decorator = decorators[i])
8
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
9
+ if (kind && result) __defProp(target, key, result);
10
+ return result;
11
+ };
12
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
13
+
14
+ // src/modules/services/BlockReward/EvmBlockRewardViewer.ts
15
+ import {
16
+ AbstractCreatable,
17
+ assertEx,
18
+ creatable,
19
+ toEthAddress
20
+ } from "@ariestools/sdk";
21
+ import { IXyoChainRewards__factory } from "@xyo-network/typechain";
22
+ import {
23
+ asAttoXL1,
24
+ BlockRewardViewerMoniker
25
+ } from "@xyo-network/xl1-sdk";
26
+ var EvmBlockRewardViewer = class extends AbstractCreatable {
27
+ moniker = EvmBlockRewardViewer.defaultMoniker;
28
+ _contractAddress;
29
+ get chainContractViewer() {
30
+ return assertEx(this.params.chainContractViewer, () => "chainContractViewer is required");
31
+ }
32
+ get contractAddress() {
33
+ return assertEx(this._contractAddress, () => "contractAddress is required");
34
+ }
35
+ get provider() {
36
+ return assertEx(this.params.provider, () => "provider is required");
37
+ }
38
+ async allowedRewardForBlock(blockNumber) {
39
+ const contract = IXyoChainRewards__factory.connect(toEthAddress(this.contractAddress), this.provider);
40
+ return asAttoXL1(await contract.calcBlockReward(blockNumber));
41
+ }
42
+ async createHandler() {
43
+ await super.createHandler();
44
+ try {
45
+ this._contractAddress = await this.chainContractViewer.rewardsContract();
46
+ } catch (ex) {
47
+ const error = ex;
48
+ throw new Error(`Failed to get rewards contract address: ${error.message}`, { cause: ex });
49
+ }
50
+ }
51
+ };
52
+ __publicField(EvmBlockRewardViewer, "connectionTypes", ["evm-rpc"]);
53
+ __publicField(EvmBlockRewardViewer, "defaultMoniker", BlockRewardViewerMoniker);
54
+ __publicField(EvmBlockRewardViewer, "monikers", [BlockRewardViewerMoniker]);
55
+ __publicField(EvmBlockRewardViewer, "surface", "node");
56
+ EvmBlockRewardViewer = __decorateClass([
57
+ creatable()
58
+ ], EvmBlockRewardViewer);
59
+
60
+ // src/modules/services/ChainValidator/XyoValidator.ts
61
+ import { AbstractCreatableProvider, BlockViewerMoniker } from "@xyo-network/xl1-sdk";
62
+ var XyoValidator = class extends AbstractCreatableProvider {
63
+ moniker = "Validator";
64
+ _blockViewer;
65
+ // get address() {
66
+ // return this.account.address
67
+ // }
68
+ // protected get account() {
69
+ // return assertEx(this.params.account, () => 'account is required')
70
+ // }
71
+ get blockViewer() {
72
+ return this._blockViewer;
73
+ }
74
+ // protected get chainInfo() {
75
+ // return assertEx(this.params.chainId, () => 'chainInfo is required')
76
+ // }
77
+ // protected get electionService() {
78
+ // return assertEx(this.params.electionService, () => 'electionService is required')
79
+ // }
80
+ // protected get pendingBundledTransactionsArchivist() {
81
+ // return assertEx(this.params.pendingBundledTransactionsArchivist, () => 'pendingBundledTransactions is required')
82
+ // }
83
+ // protected get blockRewardService() {
84
+ // return assertEx(this.params.blockRewardService, () => 'blockRewardService is required')
85
+ // }
86
+ async createHandler() {
87
+ this._blockViewer = await this.locator.getInstance(BlockViewerMoniker);
88
+ }
89
+ validatePendingBlock(_block) {
90
+ return [];
91
+ }
92
+ // TODO: Move to validator and inherit this class from validator
93
+ async validatePendingTransaction(hydratedTransaction) {
94
+ const [tx] = hydratedTransaction;
95
+ if (await this.blockViewer.blockByHash(tx._hash) !== void 0) return false;
96
+ return await Promise.resolve(true);
97
+ }
98
+ };
99
+
100
+ // src/modules/services/Election/BaseElectionService.ts
101
+ import { assertEx as assertEx2 } from "@ariestools/sdk";
102
+ import {
103
+ AbstractCreatableProvider as AbstractCreatableProvider2,
104
+ creatableProvider
105
+ } from "@xyo-network/xl1-sdk";
106
+ import { hexToLast4BytesInt, shuffleWithSeed } from "#utils";
107
+ var BaseElectionService = class extends AbstractCreatableProvider2 {
108
+ moniker = BaseElectionService.defaultMoniker;
109
+ get blockViewer() {
110
+ return assertEx2(this.params.blockViewer, () => "No block viewer");
111
+ }
112
+ get chainStakeViewer() {
113
+ return assertEx2(this.params.chainStakeViewer, () => "No chain stake viewer");
114
+ }
115
+ get stakeIntentService() {
116
+ return assertEx2(this.params.stakeIntentService, () => "No staked intent service");
117
+ }
118
+ async getCreatorCommitteeForNextBlock(current) {
119
+ return await this.spanAsync("getCreatorCommitteeForNextBlock", async () => {
120
+ const nextBlock = current.block + 1;
121
+ const candidates = await this.stakeIntentService.getDeclaredCandidatesForBlock(nextBlock, "producer");
122
+ const previousBlockHash = current._hash;
123
+ return this.generateCreatorCommittee(candidates, previousBlockHash);
124
+ }, this.context);
125
+ }
126
+ generateCreatorCommittee(candidates, previousBlockHash, maxSize = 3) {
127
+ const creators = new Set(candidates);
128
+ const seed = hexToLast4BytesInt(previousBlockHash);
129
+ const creatorArray = shuffleWithSeed(creators, seed);
130
+ return creatorArray.slice(0, maxSize);
131
+ }
132
+ };
133
+ __publicField(BaseElectionService, "defaultMoniker", "Election");
134
+ __publicField(BaseElectionService, "dependencies", []);
135
+ __publicField(BaseElectionService, "monikers", ["Election"]);
136
+ BaseElectionService = __decorateClass([
137
+ creatableProvider()
138
+ ], BaseElectionService);
139
+
140
+ // src/modules/services/implementation/head/createBootstrapHead.ts
141
+ import { toAddress } from "@ariestools/sdk";
142
+ import { createDeclarationIntent } from "@xyo-network/xl1-sdk";
143
+ import { buildNextBlock, createGenesisBlock } from "#protocol";
144
+ var createBootstrapHead = async (account, chainId, genesisBlockRewardAmount, genesisBlockRewardAddress) => {
145
+ const chain = [];
146
+ const genesisBlock = await createGenesisBlock(account, chainId, genesisBlockRewardAmount, genesisBlockRewardAddress);
147
+ chain.push(genesisBlock);
148
+ const producerDeclarationPayload = createDeclarationIntent(
149
+ toAddress(account.address),
150
+ "producer",
151
+ genesisBlock[0].block,
152
+ genesisBlock[0].block + 1e4
153
+ );
154
+ const producerDeclarationBlock = await buildNextBlock(
155
+ genesisBlock[0],
156
+ [],
157
+ [producerDeclarationPayload],
158
+ [account]
159
+ );
160
+ chain.push(producerDeclarationBlock);
161
+ return chain;
162
+ };
163
+
164
+ // src/modules/services/implementation/processPendingBlocks.ts
165
+ import { assertEx as assertEx3, isDefined } from "@ariestools/sdk";
166
+ import { BlockRejectionSchema, isSignedHydratedBlockWithHashMeta } from "@xyo-network/xl1-sdk";
167
+ import { ChainHeadSelector } from "#analyze";
168
+ async function processPendingBlocks({
169
+ blockValidationViewer,
170
+ blockViewer,
171
+ context,
172
+ logger,
173
+ mempoolViewer,
174
+ finalizationRunner,
175
+ allowedProducers,
176
+ minCandidates,
177
+ deadLetterQueueRunner
178
+ }) {
179
+ const start = Date.now();
180
+ const currentBlock = await blockViewer.currentBlock();
181
+ const headSelector = new ChainHeadSelector({
182
+ context,
183
+ logger,
184
+ mempoolViewer,
185
+ blockViewer,
186
+ windowedFinalizedChain: [currentBlock],
187
+ allowedProducers,
188
+ minCandidates
189
+ });
190
+ const bestHeadChain = await headSelector.findBestHead();
191
+ if (isDefined(bestHeadChain) && bestHeadChain.length > 0) {
192
+ const oldHeadBlock = currentBlock[0];
193
+ const newHydratedHeadBlock = assertEx3(bestHeadChain.at(-1), () => "Missing best head block [processPendingBlocks]");
194
+ const newHeadBlock = newHydratedHeadBlock[0];
195
+ logger?.debug("Validating new HeadBlock head from (block) ", oldHeadBlock?.block, "to", newHeadBlock.block);
196
+ logger?.debug("Validating new HeadBlock head from (hash) ", oldHeadBlock?._hash, "to", newHeadBlock._hash);
197
+ if (newHeadBlock._hash === oldHeadBlock?._hash) {
198
+ logger?.debug("No new blocks found", oldHeadBlock?.block, "to", newHeadBlock.block);
199
+ return;
200
+ }
201
+ const candidateBlocks = bestHeadChain.filter((b) => {
202
+ return isDefined(oldHeadBlock) ? b[0].block > oldHeadBlock.block : true;
203
+ });
204
+ const validationResults = await Promise.all(candidateBlocks.map((candidateBlock) => Promise.resolve(blockValidationViewer.validateBlocks([candidateBlock], { value: true, state: true }))));
205
+ const blocksToFinalize = [];
206
+ for (const [i, block] of candidateBlocks.entries()) {
207
+ const result = validationResults[i][0];
208
+ if (isSignedHydratedBlockWithHashMeta(result)) {
209
+ blocksToFinalize.push(block);
210
+ } else {
211
+ logger?.error("Block validation failed", block[0].block, block[0]._hash, JSON.stringify(result, null, 2));
212
+ if (deadLetterQueueRunner) {
213
+ const errors = Array.isArray(result) ? result.map((e) => ({
214
+ hash: block[0]._hash,
215
+ name: "BlockValidationError",
216
+ message: String(e.message ?? e)
217
+ })) : [{ hash: block[0]._hash, name: "BlockValidationError" }];
218
+ await deadLetterQueueRunner.rejectBlock({
219
+ schema: BlockRejectionSchema,
220
+ block,
221
+ errors,
222
+ rejector: "validator"
223
+ });
224
+ }
225
+ }
226
+ }
227
+ logger?.info("Validated new HeadBlock head from (block) in", `${Date.now() - start}ms`, newHeadBlock.block, "to", oldHeadBlock?.block);
228
+ logger?.info("Validated new HeadBlock head from (hash) in", `${Date.now() - start}ms`, newHeadBlock._hash, "to", oldHeadBlock?._hash);
229
+ if (blocksToFinalize.length > 0) {
230
+ await finalizationRunner.finalizeBlocks(blocksToFinalize);
231
+ }
232
+ await headSelector.finalizeChainFragment(blocksToFinalize);
233
+ return blocksToFinalize;
234
+ }
235
+ logger?.info("No head found to validate", currentBlock?.[0]._hash);
236
+ }
237
+
238
+ // src/modules/services/NetworkStakeStepReward/BaseNetworkStakeStepRewardService.ts
239
+ import {
240
+ AbstractCreatableProvider as AbstractCreatableProvider3,
241
+ creatableProvider as creatableProvider2,
242
+ NetworkStakeStepRewardViewerMoniker
243
+ } from "@xyo-network/xl1-sdk";
244
+ var BaseNetworkStakeStepRewardService = class extends AbstractCreatableProvider3 {
245
+ moniker = BaseNetworkStakeStepRewardService.defaultMoniker;
246
+ networkStakeStepRewardAddressHistory(_address) {
247
+ throw new Error("Method [networkStakeStepRewardAddressHistory] not implemented.");
248
+ }
249
+ networkStakeStepRewardAddressReward(_context, _address) {
250
+ throw new Error("Method [networkStakeStepRewardAddressReward] not implemented.");
251
+ }
252
+ networkStakeStepRewardAddressShare(_context, _address) {
253
+ throw new Error("Method [networkStakeStepRewardAddressShare] not implemented.");
254
+ }
255
+ networkStakeStepRewardClaimedByAddress(_address) {
256
+ throw new Error("Method [networkStakeStepRewardClaimedByAddress] not implemented.");
257
+ }
258
+ networkStakeStepRewardForPosition(_position, _range) {
259
+ throw new Error("Method [networkStakeStepRewardForPosition] not implemented.");
260
+ }
261
+ networkStakeStepRewardForStep(_context) {
262
+ throw new Error("Method [networkStakeStepRewardForStep] not implemented.");
263
+ }
264
+ networkStakeStepRewardForStepForPosition(_context, _position) {
265
+ throw new Error("Method [networkStakeStepRewardForStepForPosition] not implemented.");
266
+ }
267
+ networkStakeStepRewardPoolRewards(_context) {
268
+ throw new Error("Method [networkStakeStepRewardPoolRewards] not implemented.");
269
+ }
270
+ networkStakeStepRewardPoolShares(_context) {
271
+ throw new Error("Method [networkStakeStepRewardPoolShares] not implemented.");
272
+ }
273
+ networkStakeStepRewardPositionWeight(_context, _position) {
274
+ throw new Error("Method [networkStakeStepRewardPositionWeight] not implemented.");
275
+ }
276
+ networkStakeStepRewardPotentialPositionLoss(_context, _position) {
277
+ throw new Error("Method [networkStakeStepRewardPotentialPositionLoss] not implemented.");
278
+ }
279
+ networkStakeStepRewardRandomizer(_context) {
280
+ throw new Error("Method [networkStakeStepRewardRandomizer] not implemented.");
281
+ }
282
+ networkStakeStepRewardStakerCount(_context) {
283
+ throw new Error("Method [networkStakeStepRewardStakerCount] not implemented.");
284
+ }
285
+ networkStakeStepRewardUnclaimedByAddress(_address) {
286
+ throw new Error("Method [networkStakeStepRewardUnclaimedByAddress] not implemented.");
287
+ }
288
+ networkStakeStepRewardWeightForAddress(_context, _address) {
289
+ throw new Error("Method [networkStakeStepRewardWeightForAddress] not implemented.");
290
+ }
291
+ networkStakeStepRewardsForPosition(_position, _range) {
292
+ throw new Error("Method [networkStakeStepRewardsForPosition] not implemented.");
293
+ }
294
+ networkStakeStepRewardsForRange(_range) {
295
+ throw new Error("Method [networkStakeStepRewardsForRange] not implemented.");
296
+ }
297
+ networkStakeStepRewardsForStepLevel(_stepLevel, _range) {
298
+ throw new Error("Method [networkStakeStepRewardsForStepLevel] not implemented.");
299
+ }
300
+ };
301
+ __publicField(BaseNetworkStakeStepRewardService, "defaultMoniker", NetworkStakeStepRewardViewerMoniker);
302
+ __publicField(BaseNetworkStakeStepRewardService, "dependencies", []);
303
+ __publicField(BaseNetworkStakeStepRewardService, "monikers", [NetworkStakeStepRewardViewerMoniker]);
304
+ BaseNetworkStakeStepRewardService = __decorateClass([
305
+ creatableProvider2()
306
+ ], BaseNetworkStakeStepRewardService);
307
+
308
+ // src/modules/services/simple/block/runner/SimpleBlockRunner.ts
309
+ import {
310
+ assertEx as assertEx5,
311
+ hexToBigInt,
312
+ isDefined as isDefined2,
313
+ toAddress as toAddress2
314
+ } from "@ariestools/sdk";
315
+ import {
316
+ MemoryArchivist,
317
+ PayloadBuilder as PayloadBuilder2
318
+ } from "@xyo-network/sdk";
319
+ import {
320
+ AbstractCreatableProvider as AbstractCreatableProvider4,
321
+ AccountBalanceViewerMoniker,
322
+ asBlockBoundWitness,
323
+ AttoXL1,
324
+ BlockNumberSchema,
325
+ BlockRejectionSchema as BlockRejectionSchema2,
326
+ BlockRewardViewerMoniker as BlockRewardViewerMoniker2,
327
+ BlockRunnerMoniker,
328
+ BlockValidationViewerMoniker,
329
+ creatableProvider as creatableProvider3,
330
+ createDeclarationIntent as createDeclarationIntent2,
331
+ DeadLetterQueueRunnerMoniker,
332
+ defaultRewardRatio,
333
+ FinalizationViewerMoniker,
334
+ isSignedHydratedBlockWithHashMeta as isSignedHydratedBlockWithHashMeta2,
335
+ isTransfer,
336
+ MempoolViewerMoniker,
337
+ TimeSyncViewerMoniker,
338
+ TransactionRejectionSchema,
339
+ XYO_STEP_REWARD_ADDRESS
340
+ } from "@xyo-network/xl1-sdk";
341
+ import { FixedPercentageBlockRewardDiviner, FixedPercentageBlockRewardDivinerConfigSchema } from "#modules";
342
+ import { buildNextBlock as buildNextBlock2 } from "#protocol";
343
+
344
+ // src/modules/services/simple/block/runner/generateTransactionFeeTransfers.ts
345
+ import { assertEx as assertEx4, hexFromBigInt } from "@ariestools/sdk";
346
+ import { PayloadBuilder } from "@xyo-network/sdk";
347
+ import {
348
+ HydratedTransactionWrapper,
349
+ transactionRequiredGas,
350
+ TransferSchema,
351
+ XYO_ZERO_ADDRESS
352
+ } from "@xyo-network/xl1-sdk";
353
+ async function generateTransactionFeeTransfers(address, transactions) {
354
+ const txs = await Promise.all(transactions.map(async (tx) => {
355
+ return HydratedTransactionWrapper.parse([await PayloadBuilder.addStorageMeta(tx[0]), await PayloadBuilder.addStorageMeta(tx[1])]);
356
+ }));
357
+ const txBaseFeeCosts = {};
358
+ for (const tx of txs) {
359
+ txBaseFeeCosts[tx.boundWitness.from] = (txBaseFeeCosts[tx.boundWitness.from] ?? 0n) + tx.fees.base;
360
+ }
361
+ const txGasCosts = {};
362
+ for (const tx of txs) {
363
+ const requiredGas = transactionRequiredGas(tx.data);
364
+ const totalGasCost = requiredGas * tx.fees.gasPrice;
365
+ txGasCosts[tx.boundWitness.from] = (txBaseFeeCosts[tx.boundWitness.from] ?? 0n) + totalGasCost;
366
+ }
367
+ const payloads = Object.entries(txBaseFeeCosts).map(([from, amount]) => {
368
+ const payload = {
369
+ schema: TransferSchema,
370
+ epoch: Date.now(),
371
+ from,
372
+ transfers: Object.fromEntries([[String(XYO_ZERO_ADDRESS), hexFromBigInt(amount)]])
373
+ };
374
+ return payload;
375
+ });
376
+ for (const [from, amount] of Object.entries(txGasCosts)) {
377
+ const fromPayload = assertEx4(payloads.find((p) => p.from === from), () => "from payload not found");
378
+ fromPayload.transfers[address] = hexFromBigInt(amount);
379
+ }
380
+ return payloads;
381
+ }
382
+
383
+ // src/modules/services/simple/block/runner/identifyOffendingTransactions.ts
384
+ import {
385
+ HydratedTransactionWrapper as HydratedTransactionWrapper2,
386
+ netBalancesForPayloads,
387
+ transactionRequiredGas as transactionRequiredGas2
388
+ } from "@xyo-network/xl1-sdk";
389
+ async function scoreTransaction(tx) {
390
+ const wrapper = await HydratedTransactionWrapper2.parse(tx);
391
+ const from = wrapper.boundWitness.from;
392
+ const gasPrice = wrapper.fees.gasPrice;
393
+ const gasCost = transactionRequiredGas2(tx) * gasPrice;
394
+ const baseCost = wrapper.fees.base;
395
+ const netBalances = netBalancesForPayloads({ singletons: {} }, tx[1]);
396
+ const fromNet = netBalances[from] ?? 0n;
397
+ const transferOut = fromNet < 0n ? -fromNet : 0n;
398
+ return { cost: gasCost + baseCost + transferOut, gasPrice };
399
+ }
400
+ async function identifyOffendingTransactions(args) {
401
+ const { errors, candidateTransactions } = args;
402
+ const candidateHashes = new Set(candidateTransactions.map((tx) => tx[0]._hash));
403
+ const txInvalidHashes = /* @__PURE__ */ new Set();
404
+ for (const error of errors) {
405
+ if (candidateHashes.has(error.hash)) txInvalidHashes.add(error.hash);
406
+ const cause = error.cause;
407
+ if (cause?.hash && candidateHashes.has(cause.hash)) txInvalidHashes.add(cause.hash);
408
+ }
409
+ if (txInvalidHashes.size > 0) {
410
+ return { offendingHashes: [...txInvalidHashes], reason: "tx-invalid" };
411
+ }
412
+ const balanceOffenderHashes = /* @__PURE__ */ new Set();
413
+ for (const error of errors) {
414
+ const offendingHashes = error.offendingTransactionHashes ?? [];
415
+ for (const hash of offendingHashes) {
416
+ if (candidateHashes.has(hash)) balanceOffenderHashes.add(hash);
417
+ }
418
+ }
419
+ if (balanceOffenderHashes.size === 0) {
420
+ return { offendingHashes: [], reason: "unknown" };
421
+ }
422
+ const offenders = candidateTransactions.filter((tx) => balanceOffenderHashes.has(tx[0]._hash));
423
+ const scored = await Promise.all(offenders.map(async (tx) => ({ tx, ...await scoreTransaction(tx) })));
424
+ scored.sort((a, b) => {
425
+ if (a.cost !== b.cost) return a.cost < b.cost ? 1 : -1;
426
+ if (a.gasPrice !== b.gasPrice) return a.gasPrice < b.gasPrice ? -1 : 1;
427
+ return a.tx[0]._hash < b.tx[0]._hash ? -1 : 1;
428
+ });
429
+ return { offendingHashes: [scored[0].tx[0]._hash], reason: "block-balance" };
430
+ }
431
+
432
+ // src/modules/services/simple/block/runner/SimpleBlockRunner.ts
433
+ var DEFAULT_BLOCK_SIZE = 10;
434
+ var XYO_PRODUCER_REDECLARATION_DURATION = 100;
435
+ var XYO_PRODUCER_REDECLARATION_WINDOW = 100;
436
+ var SimpleBlockRunner = class extends AbstractCreatableProvider4 {
437
+ moniker = SimpleBlockRunner.defaultMoniker;
438
+ _blockRewardDiviner;
439
+ _deadLetterQueueRunner;
440
+ // TODO(producer-exclusion-set): uncapped for v1. If memory grows in long-running producers,
441
+ // add FIFO eviction or a TTL keyed off block number.
442
+ _excludedTransactionHashes = /* @__PURE__ */ new Set();
443
+ _lastRedeclarationBlock;
444
+ _rejectedTransactionsArchivist;
445
+ _account;
446
+ _accountBalanceViewer;
447
+ _address;
448
+ _blockRewardViewer;
449
+ _blockValidationViewer;
450
+ _finalizationViewer;
451
+ _mempoolViewer;
452
+ _rewardAddress;
453
+ _timeSyncViewer;
454
+ /**
455
+ * The default block size for a block
456
+ */
457
+ static get DefaultBlockSize() {
458
+ return DEFAULT_BLOCK_SIZE;
459
+ }
460
+ /**
461
+ * The amount of time for which the producer will redeclare
462
+ * their intent to continue producing blocks
463
+ */
464
+ static get RedeclarationDuration() {
465
+ return XYO_PRODUCER_REDECLARATION_DURATION;
466
+ }
467
+ /**
468
+ * The number of blocks within which the producer will redeclare
469
+ * their intent to continue producing blocks
470
+ */
471
+ static get RedeclarationWindow() {
472
+ return XYO_PRODUCER_REDECLARATION_WINDOW;
473
+ }
474
+ get account() {
475
+ return this._account;
476
+ }
477
+ get accountBalanceViewer() {
478
+ return this._accountBalanceViewer;
479
+ }
480
+ get address() {
481
+ return this._address;
482
+ }
483
+ get blockRewardViewer() {
484
+ return this._blockRewardViewer;
485
+ }
486
+ get blockValidationViewer() {
487
+ return this._blockValidationViewer;
488
+ }
489
+ get finalizationViewer() {
490
+ return this._finalizationViewer;
491
+ }
492
+ get heartbeatInterval() {
493
+ return this.params.heartbeatInterval ?? 36e5;
494
+ }
495
+ get mempoolViewer() {
496
+ return this._mempoolViewer;
497
+ }
498
+ // protected get pendingTransactionsService() {
499
+ // return assertEx(this.params.pendingTransactionsService, () => 'Missing pendingTransactionsService')
500
+ // }
501
+ get rejectedTransactionsArchivist() {
502
+ return this._rejectedTransactionsArchivist;
503
+ }
504
+ get rewardAddress() {
505
+ return this._rewardAddress;
506
+ }
507
+ // protected get stakeIntentService(): StakeIntentService {
508
+ // return assertEx(this.params.stakeIntentService, () => 'No StakeIntentService provided')
509
+ // }
510
+ get timeSyncViewer() {
511
+ return this._timeSyncViewer;
512
+ }
513
+ // protected get validateHydratedBlockState() {
514
+ // return assertEx(this.params.validateHydratedBlockState, () => 'validateHydratedBlockState is required')
515
+ // }
516
+ async createHandler() {
517
+ this._rejectedTransactionsArchivist = this.params.rejectedTransactionsArchivist ?? await MemoryArchivist.create();
518
+ this._account = assertEx5(this.params.account, () => "Account is required");
519
+ this._address = toAddress2(this.account.address);
520
+ this._accountBalanceViewer = await this.locateAndCreate(AccountBalanceViewerMoniker);
521
+ this._blockRewardViewer = await this.locateAndCreate(BlockRewardViewerMoniker2);
522
+ this._blockValidationViewer = await this.locator.getInstance(BlockValidationViewerMoniker);
523
+ this._finalizationViewer = await this.locateAndCreate(FinalizationViewerMoniker);
524
+ this._mempoolViewer = await this.locateAndCreate(MempoolViewerMoniker);
525
+ this._rewardAddress = this.params.rewardAddress;
526
+ this._timeSyncViewer = await this.locateAndCreate(TimeSyncViewerMoniker);
527
+ this._deadLetterQueueRunner = await this.locator.tryGetInstance(DeadLetterQueueRunnerMoniker);
528
+ }
529
+ async next(head) {
530
+ return await this.proposeNextValidBlock(head);
531
+ }
532
+ async produceNextBlock(head, force) {
533
+ const result = await this.proposeNextValidBlock(head);
534
+ return force === true ? assertEx5(result, () => "Failed to produce next block") : result;
535
+ }
536
+ async getBlockRewardTransfers(block) {
537
+ this._blockRewardDiviner ??= await FixedPercentageBlockRewardDiviner.create({
538
+ account: "random",
539
+ blockRewardViewer: this.blockRewardViewer,
540
+ config: {
541
+ rewardAddress: this.rewardAddress,
542
+ rewardPercentageRatio: defaultRewardRatio,
543
+ schema: FixedPercentageBlockRewardDivinerConfigSchema
544
+ }
545
+ });
546
+ const blockIdBuilder = new PayloadBuilder2({ schema: BlockNumberSchema });
547
+ const blockId = blockIdBuilder.fields({ block }).build();
548
+ const rewards = await this._blockRewardDiviner.divine([blockId]);
549
+ return rewards;
550
+ }
551
+ /**
552
+ * Handles the producer redeclaration logic
553
+ * @param head The current head block
554
+ * @returns chain stake intent for the producer redeclaration, or undefined if no redeclaration is needed
555
+ */
556
+ getProducerRedeclaration(head) {
557
+ if (this.params.disableIntentRedeclaration === true) return;
558
+ const currentBlock = head.block;
559
+ if (isDefined2(this._lastRedeclarationBlock)) {
560
+ const lastDeclarationExpiry = this._lastRedeclarationBlock + SimpleBlockRunner.RedeclarationDuration;
561
+ if (currentBlock < lastDeclarationExpiry) return;
562
+ }
563
+ this._lastRedeclarationBlock = currentBlock;
564
+ return createDeclarationIntent2(this.address, "producer", currentBlock, currentBlock + SimpleBlockRunner.RedeclarationDuration);
565
+ }
566
+ // `validateBalances` resolves from (a) the explicit method argument when
567
+ // passed, (b) the constructor `params.validateBalances`, or (c) `true`.
568
+ // True is the safe default: `filterByFunded` then enforces the same
569
+ // cumulative-outflow rule the post-submit block validator uses
570
+ // (`base + priority + gasLimit + transfer amounts`). With the old default
571
+ // of `false`, a tx whose declared gasLimit exceeded the sender's balance
572
+ // would pass the producer's filter, get submitted, and then land in
573
+ // `rejected_blocks` — silently wedging the chain because the producer's
574
+ // `_lastProducedBlock` cache muted retries. Reproduced in the
575
+ // api-local-mongodb-beta test rig.
576
+ async proposeNextValidBlock(head, validateBalances, force = false) {
577
+ const shouldValidateBalances = validateBalances ?? this.params.validateBalances ?? true;
578
+ return await this.spanAsync("proposeNextValidBlock", async () => {
579
+ try {
580
+ const { block: previousBlock } = assertEx5(asBlockBoundWitness(head), () => "Invalid head block");
581
+ const nextBlock = previousBlock + 1;
582
+ const chainId = await this.finalizationViewer.chainId();
583
+ const pendingTransactionsRaw = await this.mempoolViewer.pendingTransactions({ limit: SimpleBlockRunner.DefaultBlockSize });
584
+ const pendingTransactions = pendingTransactionsRaw.filter((tx) => !this._excludedTransactionHashes.has(tx[0]._hash));
585
+ const nextBlockTransactions = await this.rejectWrongChainTransactions(pendingTransactions, chainId);
586
+ this.logger?.log(`Pending Tx Count ${nextBlockTransactions.length}`);
587
+ const nonTxPayloads = [];
588
+ const producerRedeclarationPayload = await this.getProducerRedeclaration(head);
589
+ if (producerRedeclarationPayload) nonTxPayloads.push(producerRedeclarationPayload);
590
+ if (nextBlockTransactions.length === 0 && !this.heartbeatRequired(head) && !force) return;
591
+ const rewardTransferPayloads = await this.getBlockRewardTransfers(nextBlock);
592
+ nonTxPayloads.push(...rewardTransferPayloads);
593
+ const transactionTransfers = await generateTransactionFeeTransfers(this.address, nextBlockTransactions);
594
+ const timeStart = Date.now();
595
+ const timePayload = await this.generateTimePayload();
596
+ const timeDuration = Date.now() - timeStart;
597
+ if (timeDuration > 100) {
598
+ this.logger?.warn(`[Slow] Generated time payload in ${timeDuration}ms`);
599
+ }
600
+ const [initialFundedTransactions, initialFundedTransfers] = await this.filterByFunded(head, nextBlockTransactions, transactionTransfers, shouldValidateBalances);
601
+ const stepRewardBalances = await this.accountBalanceViewer.accountBalances([XYO_STEP_REWARD_ADDRESS]);
602
+ const stepRewardPoolBalance = stepRewardBalances[String(XYO_STEP_REWARD_ADDRESS)];
603
+ const result = await this.runBuildValidateRetryLoop({
604
+ head,
605
+ chainId,
606
+ stepRewardPoolBalance,
607
+ nonTxPayloads,
608
+ timePayload,
609
+ initialFundedTransactions,
610
+ initialFundedTransfers
611
+ });
612
+ const { block: proposedBlock, errors: proposedErrors } = result;
613
+ if (isSignedHydratedBlockWithHashMeta2(proposedBlock)) {
614
+ return proposedBlock;
615
+ }
616
+ if (proposedBlock !== void 0) await this.rejectExhaustedBlock(proposedBlock, proposedErrors);
617
+ } catch (error) {
618
+ this.logger?.error(`Error proposing next valid block: ${error.message}`);
619
+ throw error;
620
+ }
621
+ }, this.context);
622
+ }
623
+ /**
624
+ * Compute the cumulative outflow a single tx would charge to its `from`
625
+ * address, using the same rule as `BlockCumulativeBalanceValidator`:
626
+ * `outflow = base + priority + gasLimit + sum(transfer amounts to addresses
627
+ * other than from)`. Mirroring the validator exactly here ensures the
628
+ * producer doesn't include a tx that the post-submit block validator will
629
+ * reject, which would otherwise wedge the chain because the producer's
630
+ * `_lastProducedBlock` cache mutes retries.
631
+ */
632
+ addTransferOutflow(outflow, payload) {
633
+ let result = outflow;
634
+ for (const [to, amount] of Object.entries(payload.transfers)) {
635
+ if (to === payload.from) continue;
636
+ result += hexToBigInt(amount ?? "00");
637
+ }
638
+ return result;
639
+ }
640
+ computeTransactionOutflow(tx) {
641
+ const [bw, payloads] = tx;
642
+ const {
643
+ base,
644
+ gasLimit,
645
+ priority
646
+ } = bw.fees;
647
+ let outflow = hexToBigInt(base) + hexToBigInt(priority) + hexToBigInt(gasLimit);
648
+ const txPayloadHashes = new Set(bw.payload_hashes);
649
+ for (const payload of payloads) {
650
+ if (!txPayloadHashes.has(payload._hash)) continue;
651
+ if (!isTransfer(payload)) continue;
652
+ if (payload.from !== bw.from) continue;
653
+ outflow = this.addTransferOutflow(outflow, payload);
654
+ }
655
+ return outflow;
656
+ }
657
+ // remove unfunded transactions and block transfers
658
+ async filterByFunded(head, txs, transfers, validateBalances = false) {
659
+ const fundedTransfers = [];
660
+ const fundedTransactions = [];
661
+ const committedOutflow = /* @__PURE__ */ new Map();
662
+ const balanceCache = /* @__PURE__ */ new Map();
663
+ for (const tx of txs) {
664
+ const transfer = transfers.find((candidate) => candidate.from === tx[0].from);
665
+ if (!transfer) continue;
666
+ if (!validateBalances) {
667
+ fundedTransfers.push(transfer);
668
+ fundedTransactions.push(tx);
669
+ continue;
670
+ }
671
+ const { from } = transfer;
672
+ let balance = balanceCache.get(from);
673
+ if (balance === void 0) {
674
+ const accountBalances = await this.accountBalanceViewer.accountBalances([from]);
675
+ balance = accountBalances[String(from)] ?? AttoXL1(0n);
676
+ balanceCache.set(from, balance);
677
+ }
678
+ const projectedOutflow = (committedOutflow.get(from) ?? 0n) + this.computeTransactionOutflow(tx);
679
+ if (balance >= projectedOutflow) {
680
+ committedOutflow.set(from, projectedOutflow);
681
+ fundedTransfers.push(transfer);
682
+ fundedTransactions.push(tx);
683
+ } else {
684
+ this.logger?.debug(
685
+ `filterByFunded: dropping tx ${tx[0]._hash} from ${from} \u2014 cumulative outflow ${projectedOutflow} > balance ${balance}`
686
+ );
687
+ }
688
+ }
689
+ return [fundedTransactions, fundedTransfers];
690
+ }
691
+ async generateTimePayload() {
692
+ return await this.timeSyncViewer.currentTimePayload();
693
+ }
694
+ /**
695
+ * Check if a heartbeat block is required based on network activity.
696
+ * @param head The current head block
697
+ * @returns True if a heartbeat is required, false otherwise
698
+ */
699
+ heartbeatRequired(head) {
700
+ const epoch = head.$epoch;
701
+ if (isDefined2(epoch) && Date.now() - epoch > this.heartbeatInterval) {
702
+ return true;
703
+ }
704
+ return false;
705
+ }
706
+ async rejectExhaustedBlock(block, errors) {
707
+ this.logger?.warn(`Validation of produced block failed: ${errors.at(0)?.message}`);
708
+ if (this._deadLetterQueueRunner) {
709
+ const rejectionErrors = errors.map((e) => ({
710
+ hash: block[0]._hash,
711
+ name: "BlockValidationError",
712
+ message: String(e.message ?? e)
713
+ }));
714
+ await this._deadLetterQueueRunner.rejectBlock({
715
+ schema: BlockRejectionSchema2,
716
+ block,
717
+ errors: rejectionErrors,
718
+ rejector: "producer"
719
+ });
720
+ } else {
721
+ await this.rejectedTransactionsArchivist.insert(block[1]);
722
+ }
723
+ }
724
+ // Partition pending transactions by chain-ID match; route mismatches to the transaction DLQ.
725
+ async rejectWrongChainTransactions(transactions, chainId) {
726
+ const localChain = chainId.toLowerCase();
727
+ const matched = [];
728
+ const mismatched = [];
729
+ for (const tx of transactions) {
730
+ if (tx[0].chain.toLowerCase() === localChain) {
731
+ matched.push(tx);
732
+ } else {
733
+ mismatched.push(tx);
734
+ }
735
+ }
736
+ if (mismatched.length > 0) {
737
+ this.logger?.warn(`Rejecting ${mismatched.length} transaction(s) targeting non-local chain`);
738
+ const dlq = this._deadLetterQueueRunner;
739
+ await (dlq ? Promise.all(mismatched.map((tx) => dlq.rejectTransaction({
740
+ schema: TransactionRejectionSchema,
741
+ transaction: tx,
742
+ errors: [{
743
+ hash: tx[0]._hash,
744
+ name: "TransactionChainMismatch",
745
+ message: `Transaction chain ${tx[0].chain} does not match local chain ${localChain}`
746
+ }],
747
+ rejector: "producer"
748
+ }))) : this.rejectedTransactionsArchivist.insert(mismatched.map((tx) => tx[0])));
749
+ }
750
+ return matched;
751
+ }
752
+ async runBuildValidateRetryLoop(args) {
753
+ const {
754
+ chainId,
755
+ head,
756
+ initialFundedTransactions,
757
+ initialFundedTransfers,
758
+ nonTxPayloads,
759
+ stepRewardPoolBalance,
760
+ timePayload
761
+ } = args;
762
+ const maxAttempts = Math.max(1, initialFundedTransactions.length);
763
+ let candidateTransactions = initialFundedTransactions;
764
+ let candidateTransfers = initialFundedTransfers;
765
+ let lastBlock;
766
+ let lastErrors = [];
767
+ for (let attempt = 0; attempt <= maxAttempts; attempt++) {
768
+ const blockPayloads = [...nonTxPayloads, ...candidateTransfers, timePayload];
769
+ this.logger?.info(`Building block ${head.block + 1}${attempt > 0 ? ` (retry ${attempt})` : ""}`);
770
+ lastBlock = await buildNextBlock2(
771
+ head,
772
+ candidateTransactions,
773
+ blockPayloads,
774
+ [this.account],
775
+ XYO_STEP_REWARD_ADDRESS,
776
+ stepRewardPoolBalance,
777
+ void 0,
778
+ chainId
779
+ );
780
+ const validated = await this.blockValidationViewer.validateBlock(lastBlock, { head: head._hash });
781
+ if (isSignedHydratedBlockWithHashMeta2(validated)) {
782
+ return { block: validated, errors: [] };
783
+ }
784
+ lastErrors = validated;
785
+ if (attempt === maxAttempts) break;
786
+ const { offendingHashes, reason } = await identifyOffendingTransactions({ candidateTransactions, errors: validated });
787
+ if (offendingHashes.length === 0 || reason === "unknown") break;
788
+ for (const offendingHash of offendingHashes) this._excludedTransactionHashes.add(offendingHash);
789
+ const offendingSet = new Set(offendingHashes);
790
+ candidateTransactions = candidateTransactions.filter((tx) => !offendingSet.has(tx[0]._hash));
791
+ const remainingFromAddresses = new Set(candidateTransactions.map((tx) => tx[0].from));
792
+ const feeTransfers = await generateTransactionFeeTransfers(this.address, candidateTransactions);
793
+ candidateTransfers = feeTransfers.filter((t) => remainingFromAddresses.has(t.from));
794
+ this.logger?.warn(`Block validation failed (attempt ${attempt + 1}); excluded ${offendingHashes.length} tx(s), retrying`);
795
+ }
796
+ return { block: lastBlock, errors: lastErrors };
797
+ }
798
+ };
799
+ __publicField(SimpleBlockRunner, "connectionTypes", ["lmdb", "mongo", "memory"]);
800
+ __publicField(SimpleBlockRunner, "defaultMoniker", BlockRunnerMoniker);
801
+ __publicField(SimpleBlockRunner, "dependencies", [
802
+ AccountBalanceViewerMoniker,
803
+ BlockRewardViewerMoniker2,
804
+ BlockValidationViewerMoniker,
805
+ FinalizationViewerMoniker,
806
+ MempoolViewerMoniker,
807
+ TimeSyncViewerMoniker
808
+ ]);
809
+ __publicField(SimpleBlockRunner, "monikers", [BlockRunnerMoniker]);
810
+ __publicField(SimpleBlockRunner, "surface", "node");
811
+ SimpleBlockRunner = __decorateClass([
812
+ creatableProvider3()
813
+ ], SimpleBlockRunner);
814
+
815
+ // src/modules/services/StepStake/BaseStepStakeService.ts
816
+ import { AbstractCreatableProvider as AbstractCreatableProvider5, StepStakeViewerMoniker } from "@xyo-network/xl1-sdk";
817
+ var AbstractStepStakeService = class _AbstractStepStakeService extends AbstractCreatableProvider5 {
818
+ static defaultMoniker = StepStakeViewerMoniker;
819
+ static monikers = [StepStakeViewerMoniker];
820
+ moniker = _AbstractStepStakeService.defaultMoniker;
821
+ stepStake(_step) {
822
+ throw new Error("Method [stepStake] not implemented.");
823
+ }
824
+ stepStakeForAddress(_address, _step) {
825
+ throw new Error("Method [stepStakeForAddress] not implemented.");
826
+ }
827
+ };
828
+ export {
829
+ AbstractStepStakeService,
830
+ BaseElectionService,
831
+ BaseNetworkStakeStepRewardService,
832
+ DEFAULT_BLOCK_SIZE,
833
+ EvmBlockRewardViewer,
834
+ SimpleBlockRunner,
835
+ XYO_PRODUCER_REDECLARATION_DURATION,
836
+ XYO_PRODUCER_REDECLARATION_WINDOW,
837
+ XyoValidator,
838
+ createBootstrapHead,
839
+ processPendingBlocks
840
+ };
841
+ //# sourceMappingURL=services.mjs.map