@xyo-network/xl1-protocol-sdk 4.0.11 → 4.0.12

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 (1403) hide show
  1. package/dist/neutral/index-node.d.ts +1 -2
  2. package/dist/neutral/index-node.d.ts.map +1 -1
  3. package/dist/neutral/index.d.ts +1 -29
  4. package/dist/neutral/index.d.ts.map +1 -1
  5. package/dist/neutral/index.mjs +2 -8471
  6. package/dist/neutral/index.mjs.map +4 -4
  7. package/dist/neutral/test/index.d.ts +1 -4
  8. package/dist/neutral/test/index.d.ts.map +1 -1
  9. package/dist/neutral/test/index.mjs +2 -2211
  10. package/dist/neutral/test/index.mjs.map +4 -4
  11. package/dist/node/index-node.d.ts +1 -2
  12. package/dist/node/index-node.d.ts.map +1 -1
  13. package/dist/node/index-node.mjs +2 -8497
  14. package/dist/node/index-node.mjs.map +4 -4
  15. package/dist/node/index.d.ts +1 -29
  16. package/dist/node/index.d.ts.map +1 -1
  17. package/dist/node/test/index.d.ts +1 -4
  18. package/dist/node/test/index.d.ts.map +1 -1
  19. package/package.json +17 -29
  20. package/dist/neutral/Archivists/ArchivistConnectOptions.d.ts +0 -8
  21. package/dist/neutral/Archivists/ArchivistConnectOptions.d.ts.map +0 -1
  22. package/dist/neutral/Archivists/ArchivistFactory.d.ts +0 -31
  23. package/dist/neutral/Archivists/ArchivistFactory.d.ts.map +0 -1
  24. package/dist/neutral/Archivists/MemoryArchivistFactory.d.ts +0 -19
  25. package/dist/neutral/Archivists/MemoryArchivistFactory.d.ts.map +0 -1
  26. package/dist/neutral/Archivists/archivistFactoryRegistry.d.ts +0 -9
  27. package/dist/neutral/Archivists/archivistFactoryRegistry.d.ts.map +0 -1
  28. package/dist/neutral/Archivists/archivistRoles.d.ts +0 -12
  29. package/dist/neutral/Archivists/archivistRoles.d.ts.map +0 -1
  30. package/dist/neutral/Archivists/connectArchivist.d.ts +0 -11
  31. package/dist/neutral/Archivists/connectArchivist.d.ts.map +0 -1
  32. package/dist/neutral/Archivists/index.d.ts +0 -7
  33. package/dist/neutral/Archivists/index.d.ts.map +0 -1
  34. package/dist/neutral/ChainContextHelpers.d.ts +0 -10
  35. package/dist/neutral/ChainContextHelpers.d.ts.map +0 -1
  36. package/dist/neutral/CreatableProvider/AbstractCreatableProvider.d.ts +0 -115
  37. package/dist/neutral/CreatableProvider/AbstractCreatableProvider.d.ts.map +0 -1
  38. package/dist/neutral/CreatableProvider/CreatableProvider.d.ts +0 -67
  39. package/dist/neutral/CreatableProvider/CreatableProvider.d.ts.map +0 -1
  40. package/dist/neutral/CreatableProvider/CreatableProviderRegistry.d.ts +0 -13
  41. package/dist/neutral/CreatableProvider/CreatableProviderRegistry.d.ts.map +0 -1
  42. package/dist/neutral/CreatableProvider/GetInstanceOptions.d.ts +0 -10
  43. package/dist/neutral/CreatableProvider/GetInstanceOptions.d.ts.map +0 -1
  44. package/dist/neutral/CreatableProvider/LabeledCreatableProviderFactory.d.ts +0 -14
  45. package/dist/neutral/CreatableProvider/LabeledCreatableProviderFactory.d.ts.map +0 -1
  46. package/dist/neutral/CreatableProvider/ProviderFactory.d.ts +0 -29
  47. package/dist/neutral/CreatableProvider/ProviderFactory.d.ts.map +0 -1
  48. package/dist/neutral/CreatableProvider/ProviderFactoryLocator.d.ts +0 -60
  49. package/dist/neutral/CreatableProvider/ProviderFactoryLocator.d.ts.map +0 -1
  50. package/dist/neutral/CreatableProvider/ProviderFactoryLocatorInstance.d.ts +0 -46
  51. package/dist/neutral/CreatableProvider/ProviderFactoryLocatorInstance.d.ts.map +0 -1
  52. package/dist/neutral/CreatableProvider/index.d.ts +0 -9
  53. package/dist/neutral/CreatableProvider/index.d.ts.map +0 -1
  54. package/dist/neutral/SignedBigInt.d.ts +0 -22
  55. package/dist/neutral/SignedBigInt.d.ts.map +0 -1
  56. package/dist/neutral/_internal/context/getTestProviderContext.d.ts +0 -4
  57. package/dist/neutral/_internal/context/getTestProviderContext.d.ts.map +0 -1
  58. package/dist/neutral/_internal/context/index.d.ts +0 -2
  59. package/dist/neutral/_internal/context/index.d.ts.map +0 -1
  60. package/dist/neutral/_internal/index.d.ts +0 -2
  61. package/dist/neutral/_internal/index.d.ts.map +0 -1
  62. package/dist/neutral/amount/ShiftedBigInt.d.ts +0 -17
  63. package/dist/neutral/amount/ShiftedBigInt.d.ts.map +0 -1
  64. package/dist/neutral/amount/index.d.ts +0 -5
  65. package/dist/neutral/amount/index.d.ts.map +0 -1
  66. package/dist/neutral/amount/splitOnDecimal.d.ts +0 -3
  67. package/dist/neutral/amount/splitOnDecimal.d.ts.map +0 -1
  68. package/dist/neutral/amount/splitOnDecimalToString.d.ts +0 -3
  69. package/dist/neutral/amount/splitOnDecimalToString.d.ts.map +0 -1
  70. package/dist/neutral/amount/xl1Amount.d.ts +0 -26
  71. package/dist/neutral/amount/xl1Amount.d.ts.map +0 -1
  72. package/dist/neutral/block/hydrate/BoundWitnessHydrator.d.ts +0 -70
  73. package/dist/neutral/block/hydrate/BoundWitnessHydrator.d.ts.map +0 -1
  74. package/dist/neutral/block/hydrate/allHashesPresent.d.ts +0 -5
  75. package/dist/neutral/block/hydrate/allHashesPresent.d.ts.map +0 -1
  76. package/dist/neutral/block/hydrate/blockPayloadsFromHydratedBlock.d.ts +0 -5
  77. package/dist/neutral/block/hydrate/blockPayloadsFromHydratedBlock.d.ts.map +0 -1
  78. package/dist/neutral/block/hydrate/createBlockHydrator.d.ts +0 -6
  79. package/dist/neutral/block/hydrate/createBlockHydrator.d.ts.map +0 -1
  80. package/dist/neutral/block/hydrate/createBoundWitnessHydrator.d.ts +0 -169
  81. package/dist/neutral/block/hydrate/createBoundWitnessHydrator.d.ts.map +0 -1
  82. package/dist/neutral/block/hydrate/createTransactionHydrator.d.ts +0 -6
  83. package/dist/neutral/block/hydrate/createTransactionHydrator.d.ts.map +0 -1
  84. package/dist/neutral/block/hydrate/flattenHydratedBlock.d.ts +0 -9
  85. package/dist/neutral/block/hydrate/flattenHydratedBlock.d.ts.map +0 -1
  86. package/dist/neutral/block/hydrate/flattenHydratedBlocks.d.ts +0 -4
  87. package/dist/neutral/block/hydrate/flattenHydratedBlocks.d.ts.map +0 -1
  88. package/dist/neutral/block/hydrate/hydrateBlock.d.ts +0 -5
  89. package/dist/neutral/block/hydrate/hydrateBlock.d.ts.map +0 -1
  90. package/dist/neutral/block/hydrate/index.d.ts +0 -12
  91. package/dist/neutral/block/hydrate/index.d.ts.map +0 -1
  92. package/dist/neutral/block/hydrate/transactionsFromHydratedBlock.d.ts +0 -4
  93. package/dist/neutral/block/hydrate/transactionsFromHydratedBlock.d.ts.map +0 -1
  94. package/dist/neutral/block/hydrate/tryHydrateBlock.d.ts +0 -6
  95. package/dist/neutral/block/hydrate/tryHydrateBlock.d.ts.map +0 -1
  96. package/dist/neutral/block/index.d.ts +0 -3
  97. package/dist/neutral/block/index.d.ts.map +0 -1
  98. package/dist/neutral/block/primitives/blockFromBlockNumber.d.ts +0 -5
  99. package/dist/neutral/block/primitives/blockFromBlockNumber.d.ts.map +0 -1
  100. package/dist/neutral/block/primitives/frames/calculateFramesFromRange.d.ts +0 -7
  101. package/dist/neutral/block/primitives/frames/calculateFramesFromRange.d.ts.map +0 -1
  102. package/dist/neutral/block/primitives/frames/deepCalculateFramesFromRange.d.ts +0 -10
  103. package/dist/neutral/block/primitives/frames/deepCalculateFramesFromRange.d.ts.map +0 -1
  104. package/dist/neutral/block/primitives/frames/index.d.ts +0 -3
  105. package/dist/neutral/block/primitives/frames/index.d.ts.map +0 -1
  106. package/dist/neutral/block/primitives/hashFromBlockNumber.d.ts +0 -5
  107. package/dist/neutral/block/primitives/hashFromBlockNumber.d.ts.map +0 -1
  108. package/dist/neutral/block/primitives/index.d.ts +0 -8
  109. package/dist/neutral/block/primitives/index.d.ts.map +0 -1
  110. package/dist/neutral/block/primitives/model.d.ts +0 -8
  111. package/dist/neutral/block/primitives/model.d.ts.map +0 -1
  112. package/dist/neutral/block/primitives/payloads/ChainWindow.d.ts +0 -7
  113. package/dist/neutral/block/primitives/payloads/ChainWindow.d.ts.map +0 -1
  114. package/dist/neutral/block/primitives/payloads/index.d.ts +0 -2
  115. package/dist/neutral/block/primitives/payloads/index.d.ts.map +0 -1
  116. package/dist/neutral/block/primitives/toStepIdentityString.d.ts +0 -4
  117. package/dist/neutral/block/primitives/toStepIdentityString.d.ts.map +0 -1
  118. package/dist/neutral/block/primitives/validateTransactionOpcodes.d.ts +0 -5
  119. package/dist/neutral/block/primitives/validateTransactionOpcodes.d.ts.map +0 -1
  120. package/dist/neutral/boundwitness/buildUnsignedBoundWitness.d.ts +0 -10
  121. package/dist/neutral/boundwitness/buildUnsignedBoundWitness.d.ts.map +0 -1
  122. package/dist/neutral/boundwitness/index.d.ts +0 -2
  123. package/dist/neutral/boundwitness/index.d.ts.map +0 -1
  124. package/dist/neutral/capabilities/Backing.d.ts +0 -52
  125. package/dist/neutral/capabilities/Backing.d.ts.map +0 -1
  126. package/dist/neutral/capabilities/Capability.d.ts +0 -32
  127. package/dist/neutral/capabilities/Capability.d.ts.map +0 -1
  128. package/dist/neutral/capabilities/Provider.d.ts +0 -31
  129. package/dist/neutral/capabilities/Provider.d.ts.map +0 -1
  130. package/dist/neutral/capabilities/connectionSubsetBySurface.d.ts +0 -17
  131. package/dist/neutral/capabilities/connectionSubsetBySurface.d.ts.map +0 -1
  132. package/dist/neutral/capabilities/connectionTypes.d.ts +0 -10
  133. package/dist/neutral/capabilities/connectionTypes.d.ts.map +0 -1
  134. package/dist/neutral/capabilities/factoryBrand.d.ts +0 -46
  135. package/dist/neutral/capabilities/factoryBrand.d.ts.map +0 -1
  136. package/dist/neutral/capabilities/index.d.ts +0 -12
  137. package/dist/neutral/capabilities/index.d.ts.map +0 -1
  138. package/dist/neutral/capabilities/locatorFromConfig.d.ts +0 -29
  139. package/dist/neutral/capabilities/locatorFromConfig.d.ts.map +0 -1
  140. package/dist/neutral/capabilities/needsFromProviderBindings.d.ts +0 -8
  141. package/dist/neutral/capabilities/needsFromProviderBindings.d.ts.map +0 -1
  142. package/dist/neutral/capabilities/providerCandidateFromClass.d.ts +0 -7
  143. package/dist/neutral/capabilities/providerCandidateFromClass.d.ts.map +0 -1
  144. package/dist/neutral/capabilities/resolveProviders.d.ts +0 -56
  145. package/dist/neutral/capabilities/resolveProviders.d.ts.map +0 -1
  146. package/dist/neutral/capabilities/surfaceMap.d.ts +0 -11
  147. package/dist/neutral/capabilities/surfaceMap.d.ts.map +0 -1
  148. package/dist/neutral/config/Actor.d.ts +0 -596
  149. package/dist/neutral/config/Actor.d.ts.map +0 -1
  150. package/dist/neutral/config/Actors.d.ts +0 -108
  151. package/dist/neutral/config/Actors.d.ts.map +0 -1
  152. package/dist/neutral/config/Chain.d.ts +0 -13
  153. package/dist/neutral/config/Chain.d.ts.map +0 -1
  154. package/dist/neutral/config/Config.d.ts +0 -400
  155. package/dist/neutral/config/Config.d.ts.map +0 -1
  156. package/dist/neutral/config/DeepPartial.d.ts +0 -5
  157. package/dist/neutral/config/DeepPartial.d.ts.map +0 -1
  158. package/dist/neutral/config/HostActor.d.ts +0 -597
  159. package/dist/neutral/config/HostActor.d.ts.map +0 -1
  160. package/dist/neutral/config/LocatorConfigFields.d.ts +0 -116
  161. package/dist/neutral/config/LocatorConfigFields.d.ts.map +0 -1
  162. package/dist/neutral/config/Log.d.ts +0 -16
  163. package/dist/neutral/config/Log.d.ts.map +0 -1
  164. package/dist/neutral/config/Provider.d.ts +0 -40
  165. package/dist/neutral/config/Provider.d.ts.map +0 -1
  166. package/dist/neutral/config/ProviderBinding.d.ts +0 -17
  167. package/dist/neutral/config/ProviderBinding.d.ts.map +0 -1
  168. package/dist/neutral/config/Providers.d.ts +0 -13
  169. package/dist/neutral/config/Providers.d.ts.map +0 -1
  170. package/dist/neutral/config/ResolvedLocatorConfig.d.ts +0 -123
  171. package/dist/neutral/config/ResolvedLocatorConfig.d.ts.map +0 -1
  172. package/dist/neutral/config/Telemetry.d.ts +0 -40
  173. package/dist/neutral/config/Telemetry.d.ts.map +0 -1
  174. package/dist/neutral/config/UsageMeta.d.ts +0 -32
  175. package/dist/neutral/config/UsageMeta.d.ts.map +0 -1
  176. package/dist/neutral/config/Validation.d.ts +0 -25
  177. package/dist/neutral/config/Validation.d.ts.map +0 -1
  178. package/dist/neutral/config/connections/Connection.d.ts +0 -150
  179. package/dist/neutral/config/connections/Connection.d.ts.map +0 -1
  180. package/dist/neutral/config/connections/Mongo.d.ts +0 -12
  181. package/dist/neutral/config/connections/Mongo.d.ts.map +0 -1
  182. package/dist/neutral/config/connections/RpcRemote.d.ts +0 -34
  183. package/dist/neutral/config/connections/RpcRemote.d.ts.map +0 -1
  184. package/dist/neutral/config/connections/S3.d.ts +0 -20
  185. package/dist/neutral/config/connections/S3.d.ts.map +0 -1
  186. package/dist/neutral/config/connections/index.d.ts +0 -5
  187. package/dist/neutral/config/connections/index.d.ts.map +0 -1
  188. package/dist/neutral/config/index.d.ts +0 -20
  189. package/dist/neutral/config/index.d.ts.map +0 -1
  190. package/dist/neutral/config/normalizeConnectionsConfig.d.ts +0 -17
  191. package/dist/neutral/config/normalizeConnectionsConfig.d.ts.map +0 -1
  192. package/dist/neutral/config/resolveMongoConnectionConfig.d.ts +0 -6
  193. package/dist/neutral/config/resolveMongoConnectionConfig.d.ts.map +0 -1
  194. package/dist/neutral/config/resolveRestConnectionEndpoint.d.ts +0 -5
  195. package/dist/neutral/config/resolveRestConnectionEndpoint.d.ts.map +0 -1
  196. package/dist/neutral/config/restConnectionFromS3Bucket.d.ts +0 -5
  197. package/dist/neutral/config/restConnectionFromS3Bucket.d.ts.map +0 -1
  198. package/dist/neutral/config/synthesizeMemoryViewerBindings.d.ts +0 -8
  199. package/dist/neutral/config/synthesizeMemoryViewerBindings.d.ts.map +0 -1
  200. package/dist/neutral/config/synthesizeRpcConnectionBindings.d.ts +0 -8
  201. package/dist/neutral/config/synthesizeRpcConnectionBindings.d.ts.map +0 -1
  202. package/dist/neutral/constants.d.ts +0 -5
  203. package/dist/neutral/constants.d.ts.map +0 -1
  204. package/dist/neutral/context/Actor.d.ts +0 -639
  205. package/dist/neutral/context/Actor.d.ts.map +0 -1
  206. package/dist/neutral/context/HostActor.d.ts +0 -651
  207. package/dist/neutral/context/HostActor.d.ts.map +0 -1
  208. package/dist/neutral/context/index.d.ts +0 -3
  209. package/dist/neutral/context/index.d.ts.map +0 -1
  210. package/dist/neutral/createDeclarationPayload.d.ts +0 -5
  211. package/dist/neutral/createDeclarationPayload.d.ts.map +0 -1
  212. package/dist/neutral/createTransferPayload.d.ts +0 -6
  213. package/dist/neutral/createTransferPayload.d.ts.map +0 -1
  214. package/dist/neutral/eip-712/Payloads/EIP712Data.d.ts +0 -32
  215. package/dist/neutral/eip-712/Payloads/EIP712Data.d.ts.map +0 -1
  216. package/dist/neutral/eip-712/Payloads/EIP712Signature.d.ts +0 -23
  217. package/dist/neutral/eip-712/Payloads/EIP712Signature.d.ts.map +0 -1
  218. package/dist/neutral/eip-712/Payloads/index.d.ts +0 -3
  219. package/dist/neutral/eip-712/Payloads/index.d.ts.map +0 -1
  220. package/dist/neutral/eip-712/Types.d.ts +0 -35
  221. package/dist/neutral/eip-712/Types.d.ts.map +0 -1
  222. package/dist/neutral/eip-712/index.d.ts +0 -5
  223. package/dist/neutral/eip-712/index.d.ts.map +0 -1
  224. package/dist/neutral/eip-712/sign.d.ts +0 -5
  225. package/dist/neutral/eip-712/sign.d.ts.map +0 -1
  226. package/dist/neutral/eip-712/verify.d.ts +0 -4
  227. package/dist/neutral/eip-712/verify.d.ts.map +0 -1
  228. package/dist/neutral/getFileConfig.d.ts +0 -193
  229. package/dist/neutral/getFileConfig.d.ts.map +0 -1
  230. package/dist/neutral/instances/Address.d.ts +0 -13
  231. package/dist/neutral/instances/Address.d.ts.map +0 -1
  232. package/dist/neutral/instances/BoundWitness.d.ts +0 -9
  233. package/dist/neutral/instances/BoundWitness.d.ts.map +0 -1
  234. package/dist/neutral/instances/Data.d.ts +0 -5
  235. package/dist/neutral/instances/Data.d.ts.map +0 -1
  236. package/dist/neutral/instances/Fees.d.ts +0 -9
  237. package/dist/neutral/instances/Fees.d.ts.map +0 -1
  238. package/dist/neutral/instances/HydratedBoundWitness.d.ts +0 -11
  239. package/dist/neutral/instances/HydratedBoundWitness.d.ts.map +0 -1
  240. package/dist/neutral/instances/Object.d.ts +0 -6
  241. package/dist/neutral/instances/Object.d.ts.map +0 -1
  242. package/dist/neutral/instances/Payload.d.ts +0 -7
  243. package/dist/neutral/instances/Payload.d.ts.map +0 -1
  244. package/dist/neutral/instances/Signature.d.ts +0 -10
  245. package/dist/neutral/instances/Signature.d.ts.map +0 -1
  246. package/dist/neutral/instances/block/BlockFields.d.ts +0 -12
  247. package/dist/neutral/instances/block/BlockFields.d.ts.map +0 -1
  248. package/dist/neutral/instances/block/HydratedBlock.d.ts +0 -9
  249. package/dist/neutral/instances/block/HydratedBlock.d.ts.map +0 -1
  250. package/dist/neutral/instances/block/index.d.ts +0 -2
  251. package/dist/neutral/instances/block/index.d.ts.map +0 -1
  252. package/dist/neutral/instances/index.d.ts +0 -11
  253. package/dist/neutral/instances/index.d.ts.map +0 -1
  254. package/dist/neutral/instances/modifiers/BlockWindowInstance.d.ts +0 -8
  255. package/dist/neutral/instances/modifiers/BlockWindowInstance.d.ts.map +0 -1
  256. package/dist/neutral/instances/modifiers/BlockWindowState.d.ts +0 -6
  257. package/dist/neutral/instances/modifiers/BlockWindowState.d.ts.map +0 -1
  258. package/dist/neutral/instances/modifiers/Signed.d.ts +0 -8
  259. package/dist/neutral/instances/modifiers/Signed.d.ts.map +0 -1
  260. package/dist/neutral/instances/modifiers/Validatable.d.ts +0 -6
  261. package/dist/neutral/instances/modifiers/Validatable.d.ts.map +0 -1
  262. package/dist/neutral/instances/modifiers/index.d.ts +0 -5
  263. package/dist/neutral/instances/modifiers/index.d.ts.map +0 -1
  264. package/dist/neutral/instances/transaction/HydratedTransaction.d.ts +0 -7
  265. package/dist/neutral/instances/transaction/HydratedTransaction.d.ts.map +0 -1
  266. package/dist/neutral/instances/transaction/TransactionFields.d.ts +0 -17
  267. package/dist/neutral/instances/transaction/TransactionFields.d.ts.map +0 -1
  268. package/dist/neutral/instances/transaction/index.d.ts +0 -2
  269. package/dist/neutral/instances/transaction/index.d.ts.map +0 -1
  270. package/dist/neutral/isInternetAvailable.d.ts +0 -3
  271. package/dist/neutral/isInternetAvailable.d.ts.map +0 -1
  272. package/dist/neutral/model/ChainFork/ChainForkStatic.d.ts +0 -9
  273. package/dist/neutral/model/ChainFork/ChainForkStatic.d.ts.map +0 -1
  274. package/dist/neutral/model/ChainFork/index.d.ts +0 -2
  275. package/dist/neutral/model/ChainFork/index.d.ts.map +0 -1
  276. package/dist/neutral/model/ChainIdentity.d.ts +0 -6
  277. package/dist/neutral/model/ChainIdentity.d.ts.map +0 -1
  278. package/dist/neutral/model/ChainStore.d.ts +0 -12
  279. package/dist/neutral/model/ChainStore.d.ts.map +0 -1
  280. package/dist/neutral/model/CreatableProviderContext.d.ts +0 -5
  281. package/dist/neutral/model/CreatableProviderContext.d.ts.map +0 -1
  282. package/dist/neutral/model/CreatableProviderContext.zod.d.ts +0 -720
  283. package/dist/neutral/model/CreatableProviderContext.zod.d.ts.map +0 -1
  284. package/dist/neutral/model/PayloadBundle/bundledPayloadToHydratedBlock.d.ts +0 -5
  285. package/dist/neutral/model/PayloadBundle/bundledPayloadToHydratedBlock.d.ts.map +0 -1
  286. package/dist/neutral/model/PayloadBundle/bundledPayloadToHydratedTransaction.d.ts +0 -5
  287. package/dist/neutral/model/PayloadBundle/bundledPayloadToHydratedTransaction.d.ts.map +0 -1
  288. package/dist/neutral/model/PayloadBundle/hydratedBlockToPayloadBundle.d.ts +0 -5
  289. package/dist/neutral/model/PayloadBundle/hydratedBlockToPayloadBundle.d.ts.map +0 -1
  290. package/dist/neutral/model/PayloadBundle/hydratedTransactionToPayloadBundle.d.ts +0 -5
  291. package/dist/neutral/model/PayloadBundle/hydratedTransactionToPayloadBundle.d.ts.map +0 -1
  292. package/dist/neutral/model/PayloadBundle/index.d.ts +0 -5
  293. package/dist/neutral/model/PayloadBundle/index.d.ts.map +0 -1
  294. package/dist/neutral/model/index.d.ts +0 -7
  295. package/dist/neutral/model/index.d.ts.map +0 -1
  296. package/dist/neutral/multipliers.d.ts +0 -10
  297. package/dist/neutral/multipliers.d.ts.map +0 -1
  298. package/dist/neutral/payloads/AddressPairPayload.d.ts +0 -22
  299. package/dist/neutral/payloads/AddressPairPayload.d.ts.map +0 -1
  300. package/dist/neutral/payloads/index.d.ts +0 -5
  301. package/dist/neutral/payloads/index.d.ts.map +0 -1
  302. package/dist/neutral/payloads/netBalancesForPayloads.d.ts +0 -9
  303. package/dist/neutral/payloads/netBalancesForPayloads.d.ts.map +0 -1
  304. package/dist/neutral/payloads/netSchemasForPayloads.d.ts +0 -9
  305. package/dist/neutral/payloads/netSchemasForPayloads.d.ts.map +0 -1
  306. package/dist/neutral/payloads/netTransfersForPayloads.d.ts +0 -5
  307. package/dist/neutral/payloads/netTransfersForPayloads.d.ts.map +0 -1
  308. package/dist/neutral/primitives/block/index.d.ts +0 -3
  309. package/dist/neutral/primitives/block/index.d.ts.map +0 -1
  310. package/dist/neutral/primitives/block/range/blockRangeSteps.d.ts +0 -4
  311. package/dist/neutral/primitives/block/range/blockRangeSteps.d.ts.map +0 -1
  312. package/dist/neutral/primitives/block/range/index.d.ts +0 -2
  313. package/dist/neutral/primitives/block/range/index.d.ts.map +0 -1
  314. package/dist/neutral/primitives/block/rate/blockRate.d.ts +0 -11
  315. package/dist/neutral/primitives/block/rate/blockRate.d.ts.map +0 -1
  316. package/dist/neutral/primitives/block/rate/index.d.ts +0 -5
  317. package/dist/neutral/primitives/block/rate/index.d.ts.map +0 -1
  318. package/dist/neutral/primitives/block/rate/stepRate.d.ts +0 -7
  319. package/dist/neutral/primitives/block/rate/stepRate.d.ts.map +0 -1
  320. package/dist/neutral/primitives/block/rate/timeHelpers.d.ts +0 -8
  321. package/dist/neutral/primitives/block/rate/timeHelpers.d.ts.map +0 -1
  322. package/dist/neutral/primitives/block/rate/timeRate.d.ts +0 -8
  323. package/dist/neutral/primitives/block/rate/timeRate.d.ts.map +0 -1
  324. package/dist/neutral/primitives/chain/getWindowedChain.d.ts +0 -10
  325. package/dist/neutral/primitives/chain/getWindowedChain.d.ts.map +0 -1
  326. package/dist/neutral/primitives/chain/index.d.ts +0 -4
  327. package/dist/neutral/primitives/chain/index.d.ts.map +0 -1
  328. package/dist/neutral/primitives/chain/step/chainStepRewardAddress.d.ts +0 -5
  329. package/dist/neutral/primitives/chain/step/chainStepRewardAddress.d.ts.map +0 -1
  330. package/dist/neutral/primitives/chain/step/index.d.ts +0 -5
  331. package/dist/neutral/primitives/chain/step/index.d.ts.map +0 -1
  332. package/dist/neutral/primitives/chain/step/stepRewardBlock.d.ts +0 -4
  333. package/dist/neutral/primitives/chain/step/stepRewardBlock.d.ts.map +0 -1
  334. package/dist/neutral/primitives/chain/step/stepRewardTotal.d.ts +0 -4
  335. package/dist/neutral/primitives/chain/step/stepRewardTotal.d.ts.map +0 -1
  336. package/dist/neutral/primitives/chain/step/stepsRewardTotal.d.ts +0 -8
  337. package/dist/neutral/primitives/chain/step/stepsRewardTotal.d.ts.map +0 -1
  338. package/dist/neutral/primitives/chain/time/externalBlockNumberFromXl1BlockNumber.d.ts +0 -4
  339. package/dist/neutral/primitives/chain/time/externalBlockNumberFromXl1BlockNumber.d.ts.map +0 -1
  340. package/dist/neutral/primitives/chain/time/externalBlockRangeFromStep.d.ts +0 -4
  341. package/dist/neutral/primitives/chain/time/externalBlockRangeFromStep.d.ts.map +0 -1
  342. package/dist/neutral/primitives/chain/time/externalBlockRangeFromXl1BlockRange.d.ts +0 -4
  343. package/dist/neutral/primitives/chain/time/externalBlockRangeFromXl1BlockRange.d.ts.map +0 -1
  344. package/dist/neutral/primitives/chain/time/index.d.ts +0 -4
  345. package/dist/neutral/primitives/chain/time/index.d.ts.map +0 -1
  346. package/dist/neutral/primitives/datalake/NamedDataLake.d.ts +0 -7
  347. package/dist/neutral/primitives/datalake/NamedDataLake.d.ts.map +0 -1
  348. package/dist/neutral/primitives/datalake/PayloadLocator.d.ts +0 -55
  349. package/dist/neutral/primitives/datalake/PayloadLocator.d.ts.map +0 -1
  350. package/dist/neutral/primitives/datalake/addDataLakePayloads.d.ts +0 -5
  351. package/dist/neutral/primitives/datalake/addDataLakePayloads.d.ts.map +0 -1
  352. package/dist/neutral/primitives/datalake/addDataLakePayloadsToPayloads.d.ts +0 -9
  353. package/dist/neutral/primitives/datalake/addDataLakePayloadsToPayloads.d.ts.map +0 -1
  354. package/dist/neutral/primitives/datalake/index.d.ts +0 -5
  355. package/dist/neutral/primitives/datalake/index.d.ts.map +0 -1
  356. package/dist/neutral/primitives/index.d.ts +0 -13
  357. package/dist/neutral/primitives/index.d.ts.map +0 -1
  358. package/dist/neutral/primitives/mapToMapType.d.ts +0 -4
  359. package/dist/neutral/primitives/mapToMapType.d.ts.map +0 -1
  360. package/dist/neutral/primitives/payload/index.d.ts +0 -2
  361. package/dist/neutral/primitives/payload/index.d.ts.map +0 -1
  362. package/dist/neutral/primitives/payload/mergeTransfers.d.ts +0 -5
  363. package/dist/neutral/primitives/payload/mergeTransfers.d.ts.map +0 -1
  364. package/dist/neutral/primitives/readPayloadMapFromStore.d.ts +0 -7
  365. package/dist/neutral/primitives/readPayloadMapFromStore.d.ts.map +0 -1
  366. package/dist/neutral/primitives/rewardFromBlockNumber.d.ts +0 -4
  367. package/dist/neutral/primitives/rewardFromBlockNumber.d.ts.map +0 -1
  368. package/dist/neutral/primitives/rewards/index.d.ts +0 -2
  369. package/dist/neutral/primitives/rewards/index.d.ts.map +0 -1
  370. package/dist/neutral/primitives/rewards/networkStakeStepRewardPositionWeight.d.ts +0 -4
  371. package/dist/neutral/primitives/rewards/networkStakeStepRewardPositionWeight.d.ts.map +0 -1
  372. package/dist/neutral/primitives/stake/activeStakeAtTimeByAddress.d.ts +0 -5
  373. package/dist/neutral/primitives/stake/activeStakeAtTimeByAddress.d.ts.map +0 -1
  374. package/dist/neutral/primitives/stake/activeStakeAtTimeByPosition.d.ts +0 -4
  375. package/dist/neutral/primitives/stake/activeStakeAtTimeByPosition.d.ts.map +0 -1
  376. package/dist/neutral/primitives/stake/allStakersForRange.d.ts +0 -5
  377. package/dist/neutral/primitives/stake/allStakersForRange.d.ts.map +0 -1
  378. package/dist/neutral/primitives/stake/allStakersForStep.d.ts +0 -5
  379. package/dist/neutral/primitives/stake/allStakersForStep.d.ts.map +0 -1
  380. package/dist/neutral/primitives/stake/index.d.ts +0 -7
  381. package/dist/neutral/primitives/stake/index.d.ts.map +0 -1
  382. package/dist/neutral/primitives/stake/mergedAddRemoveStakeEventsByPosition.d.ts +0 -4
  383. package/dist/neutral/primitives/stake/mergedAddRemoveStakeEventsByPosition.d.ts.map +0 -1
  384. package/dist/neutral/primitives/stake/mergedAddRemoveStakeEventsByStaker.d.ts +0 -5
  385. package/dist/neutral/primitives/stake/mergedAddRemoveStakeEventsByStaker.d.ts.map +0 -1
  386. package/dist/neutral/primitives/stake/weightedStakeForRangeByPosition.d.ts +0 -6
  387. package/dist/neutral/primitives/stake/weightedStakeForRangeByPosition.d.ts.map +0 -1
  388. package/dist/neutral/primitives/state/findMostRecentBlock.d.ts +0 -11
  389. package/dist/neutral/primitives/state/findMostRecentBlock.d.ts.map +0 -1
  390. package/dist/neutral/primitives/state/hydratedBlockByNumber.d.ts +0 -4
  391. package/dist/neutral/primitives/state/hydratedBlockByNumber.d.ts.map +0 -1
  392. package/dist/neutral/primitives/state/index.d.ts +0 -3
  393. package/dist/neutral/primitives/state/index.d.ts.map +0 -1
  394. package/dist/neutral/primitives/step/derivedReceiveAddress.d.ts +0 -2
  395. package/dist/neutral/primitives/step/derivedReceiveAddress.d.ts.map +0 -1
  396. package/dist/neutral/primitives/step/index.d.ts +0 -3
  397. package/dist/neutral/primitives/step/index.d.ts.map +0 -1
  398. package/dist/neutral/primitives/step/rewardAddressFromStepIdentity.d.ts +0 -2
  399. package/dist/neutral/primitives/step/rewardAddressFromStepIdentity.d.ts.map +0 -1
  400. package/dist/neutral/primitives/step/stepBlockRange.d.ts +0 -4
  401. package/dist/neutral/primitives/step/stepBlockRange.d.ts.map +0 -1
  402. package/dist/neutral/primitives/step/stepTransferIndex.d.ts +0 -3
  403. package/dist/neutral/primitives/step/stepTransferIndex.d.ts.map +0 -1
  404. package/dist/neutral/primitives/transaction/elevatedPayloads.d.ts +0 -2
  405. package/dist/neutral/primitives/transaction/elevatedPayloads.d.ts.map +0 -1
  406. package/dist/neutral/primitives/transaction/index.d.ts +0 -2
  407. package/dist/neutral/primitives/transaction/index.d.ts.map +0 -1
  408. package/dist/neutral/primitives/uncle/findBestUncle.d.ts +0 -17
  409. package/dist/neutral/primitives/uncle/findBestUncle.d.ts.map +0 -1
  410. package/dist/neutral/primitives/uncle/findUncles.d.ts +0 -36
  411. package/dist/neutral/primitives/uncle/findUncles.d.ts.map +0 -1
  412. package/dist/neutral/primitives/uncle/getProducerKey.d.ts +0 -4
  413. package/dist/neutral/primitives/uncle/getProducerKey.d.ts.map +0 -1
  414. package/dist/neutral/primitives/uncle/index.d.ts +0 -5
  415. package/dist/neutral/primitives/uncle/index.d.ts.map +0 -1
  416. package/dist/neutral/primitives/uncle/scoreUncle.d.ts +0 -6
  417. package/dist/neutral/primitives/uncle/scoreUncle.d.ts.map +0 -1
  418. package/dist/neutral/services/AccountTransfersService.d.ts +0 -12
  419. package/dist/neutral/services/AccountTransfersService.d.ts.map +0 -1
  420. package/dist/neutral/services/BlockProducerService.d.ts +0 -7
  421. package/dist/neutral/services/BlockProducerService.d.ts.map +0 -1
  422. package/dist/neutral/services/Chain/BaseChainService.d.ts +0 -4
  423. package/dist/neutral/services/Chain/BaseChainService.d.ts.map +0 -1
  424. package/dist/neutral/services/Chain/ChainHeadService.d.ts +0 -7
  425. package/dist/neutral/services/Chain/ChainHeadService.d.ts.map +0 -1
  426. package/dist/neutral/services/Chain/ChainService.d.ts +0 -6
  427. package/dist/neutral/services/Chain/ChainService.d.ts.map +0 -1
  428. package/dist/neutral/services/Chain/index.d.ts +0 -4
  429. package/dist/neutral/services/Chain/index.d.ts.map +0 -1
  430. package/dist/neutral/services/Election.d.ts +0 -11
  431. package/dist/neutral/services/Election.d.ts.map +0 -1
  432. package/dist/neutral/services/NetworkStakeService.d.ts +0 -5
  433. package/dist/neutral/services/NetworkStakeService.d.ts.map +0 -1
  434. package/dist/neutral/services/Params.d.ts +0 -11
  435. package/dist/neutral/services/Params.d.ts.map +0 -1
  436. package/dist/neutral/services/PendingTransactionsService.d.ts +0 -7
  437. package/dist/neutral/services/PendingTransactionsService.d.ts.map +0 -1
  438. package/dist/neutral/services/SchemasService.d.ts +0 -11
  439. package/dist/neutral/services/SchemasService.d.ts.map +0 -1
  440. package/dist/neutral/services/StakeIntentService/ChainIndexingServiceStateSchema.d.ts +0 -39
  441. package/dist/neutral/services/StakeIntentService/ChainIndexingServiceStateSchema.d.ts.map +0 -1
  442. package/dist/neutral/services/StakeIntentService/StakeIntentService.d.ts +0 -31
  443. package/dist/neutral/services/StakeIntentService/StakeIntentService.d.ts.map +0 -1
  444. package/dist/neutral/services/StakeIntentService/index.d.ts +0 -3
  445. package/dist/neutral/services/StakeIntentService/index.d.ts.map +0 -1
  446. package/dist/neutral/services/index.d.ts +0 -9
  447. package/dist/neutral/services/index.d.ts.map +0 -1
  448. package/dist/neutral/simple/StakeEventsViewer/SimpleStakeEventsViewer.d.ts +0 -23
  449. package/dist/neutral/simple/StakeEventsViewer/SimpleStakeEventsViewer.d.ts.map +0 -1
  450. package/dist/neutral/simple/StakeEventsViewer/index.d.ts +0 -2
  451. package/dist/neutral/simple/StakeEventsViewer/index.d.ts.map +0 -1
  452. package/dist/neutral/simple/StakeTotalsViewer/SimpleStakeTotalsViewer.d.ts +0 -27
  453. package/dist/neutral/simple/StakeTotalsViewer/SimpleStakeTotalsViewer.d.ts.map +0 -1
  454. package/dist/neutral/simple/StakeTotalsViewer/index.d.ts +0 -2
  455. package/dist/neutral/simple/StakeTotalsViewer/index.d.ts.map +0 -1
  456. package/dist/neutral/simple/StakeViewer/SimpleStakeViewer.d.ts +0 -42
  457. package/dist/neutral/simple/StakeViewer/SimpleStakeViewer.d.ts.map +0 -1
  458. package/dist/neutral/simple/StakeViewer/index.d.ts +0 -2
  459. package/dist/neutral/simple/StakeViewer/index.d.ts.map +0 -1
  460. package/dist/neutral/simple/TransactionViewer/SimpleTransactionViewer.d.ts +0 -25
  461. package/dist/neutral/simple/TransactionViewer/SimpleTransactionViewer.d.ts.map +0 -1
  462. package/dist/neutral/simple/TransactionViewer/index.d.ts +0 -2
  463. package/dist/neutral/simple/TransactionViewer/index.d.ts.map +0 -1
  464. package/dist/neutral/simple/accountBalance/SimpleAccountBalanceViewer.d.ts +0 -130
  465. package/dist/neutral/simple/accountBalance/SimpleAccountBalanceViewer.d.ts.map +0 -1
  466. package/dist/neutral/simple/accountBalance/index.d.ts +0 -2
  467. package/dist/neutral/simple/accountBalance/index.d.ts.map +0 -1
  468. package/dist/neutral/simple/block/SimpleBlockViewer.d.ts +0 -114
  469. package/dist/neutral/simple/block/SimpleBlockViewer.d.ts.map +0 -1
  470. package/dist/neutral/simple/block/index.d.ts +0 -2
  471. package/dist/neutral/simple/block/index.d.ts.map +0 -1
  472. package/dist/neutral/simple/blockInvalidation/SimpleBlockInvalidationViewer.d.ts +0 -37
  473. package/dist/neutral/simple/blockInvalidation/SimpleBlockInvalidationViewer.d.ts.map +0 -1
  474. package/dist/neutral/simple/blockInvalidation/index.d.ts +0 -2
  475. package/dist/neutral/simple/blockInvalidation/index.d.ts.map +0 -1
  476. package/dist/neutral/simple/blockReward/SimpleBlockRewardViewer.d.ts +0 -18
  477. package/dist/neutral/simple/blockReward/SimpleBlockRewardViewer.d.ts.map +0 -1
  478. package/dist/neutral/simple/blockReward/index.d.ts +0 -2
  479. package/dist/neutral/simple/blockReward/index.d.ts.map +0 -1
  480. package/dist/neutral/simple/blockValidation/SimpleBlockValidationViewer.d.ts +0 -38
  481. package/dist/neutral/simple/blockValidation/SimpleBlockValidationViewer.d.ts.map +0 -1
  482. package/dist/neutral/simple/blockValidation/index.d.ts +0 -2
  483. package/dist/neutral/simple/blockValidation/index.d.ts.map +0 -1
  484. package/dist/neutral/simple/chainContractViewer/SimpleChainContractViewer.d.ts +0 -47
  485. package/dist/neutral/simple/chainContractViewer/SimpleChainContractViewer.d.ts.map +0 -1
  486. package/dist/neutral/simple/chainContractViewer/index.d.ts +0 -2
  487. package/dist/neutral/simple/chainContractViewer/index.d.ts.map +0 -1
  488. package/dist/neutral/simple/client/SimpleXyoClient.d.ts +0 -9
  489. package/dist/neutral/simple/client/SimpleXyoClient.d.ts.map +0 -1
  490. package/dist/neutral/simple/client/index.d.ts +0 -2
  491. package/dist/neutral/simple/client/index.d.ts.map +0 -1
  492. package/dist/neutral/simple/datalake/AbstractRestDataLake.d.ts +0 -34
  493. package/dist/neutral/simple/datalake/AbstractRestDataLake.d.ts.map +0 -1
  494. package/dist/neutral/simple/datalake/AbstractSimpleDataLake.d.ts +0 -21
  495. package/dist/neutral/simple/datalake/AbstractSimpleDataLake.d.ts.map +0 -1
  496. package/dist/neutral/simple/datalake/RestDataLakeRunner.d.ts +0 -20
  497. package/dist/neutral/simple/datalake/RestDataLakeRunner.d.ts.map +0 -1
  498. package/dist/neutral/simple/datalake/RestDataLakeViewer.d.ts +0 -16
  499. package/dist/neutral/simple/datalake/RestDataLakeViewer.d.ts.map +0 -1
  500. package/dist/neutral/simple/datalake/SimpleDataLakeRunner.d.ts +0 -23
  501. package/dist/neutral/simple/datalake/SimpleDataLakeRunner.d.ts.map +0 -1
  502. package/dist/neutral/simple/datalake/SimpleDataLakeViewer.d.ts +0 -17
  503. package/dist/neutral/simple/datalake/SimpleDataLakeViewer.d.ts.map +0 -1
  504. package/dist/neutral/simple/datalake/index.d.ts +0 -5
  505. package/dist/neutral/simple/datalake/index.d.ts.map +0 -1
  506. package/dist/neutral/simple/finalization/SimpleFinalizationRunner.d.ts +0 -30
  507. package/dist/neutral/simple/finalization/SimpleFinalizationRunner.d.ts.map +0 -1
  508. package/dist/neutral/simple/finalization/SimpleFinalizationViewer.d.ts +0 -75
  509. package/dist/neutral/simple/finalization/SimpleFinalizationViewer.d.ts.map +0 -1
  510. package/dist/neutral/simple/finalization/index.d.ts +0 -3
  511. package/dist/neutral/simple/finalization/index.d.ts.map +0 -1
  512. package/dist/neutral/simple/gateway/SimpleXyoGateway.d.ts +0 -17
  513. package/dist/neutral/simple/gateway/SimpleXyoGateway.d.ts.map +0 -1
  514. package/dist/neutral/simple/gateway/SimpleXyoGatewayRunner.d.ts +0 -29
  515. package/dist/neutral/simple/gateway/SimpleXyoGatewayRunner.d.ts.map +0 -1
  516. package/dist/neutral/simple/gateway/index.d.ts +0 -3
  517. package/dist/neutral/simple/gateway/index.d.ts.map +0 -1
  518. package/dist/neutral/simple/index.d.ts +0 -25
  519. package/dist/neutral/simple/index.d.ts.map +0 -1
  520. package/dist/neutral/simple/indexViewer/SimpleIndexViewer.d.ts +0 -26
  521. package/dist/neutral/simple/indexViewer/SimpleIndexViewer.d.ts.map +0 -1
  522. package/dist/neutral/simple/indexViewer/index.d.ts +0 -2
  523. package/dist/neutral/simple/indexViewer/index.d.ts.map +0 -1
  524. package/dist/neutral/simple/mempool/SimpleMempoolRunner.d.ts +0 -84
  525. package/dist/neutral/simple/mempool/SimpleMempoolRunner.d.ts.map +0 -1
  526. package/dist/neutral/simple/mempool/SimpleMempoolViewer.d.ts +0 -82
  527. package/dist/neutral/simple/mempool/SimpleMempoolViewer.d.ts.map +0 -1
  528. package/dist/neutral/simple/mempool/index.d.ts +0 -3
  529. package/dist/neutral/simple/mempool/index.d.ts.map +0 -1
  530. package/dist/neutral/simple/network/SimpleXyoNetwork.d.ts +0 -12
  531. package/dist/neutral/simple/network/SimpleXyoNetwork.d.ts.map +0 -1
  532. package/dist/neutral/simple/network/index.d.ts +0 -2
  533. package/dist/neutral/simple/network/index.d.ts.map +0 -1
  534. package/dist/neutral/simple/network/lib/FailedNetworkStatusPayloads.d.ts +0 -6
  535. package/dist/neutral/simple/network/lib/FailedNetworkStatusPayloads.d.ts.map +0 -1
  536. package/dist/neutral/simple/network/lib/StatusNetworks.d.ts +0 -15
  537. package/dist/neutral/simple/network/lib/StatusNetworks.d.ts.map +0 -1
  538. package/dist/neutral/simple/network/lib/index.d.ts +0 -3
  539. package/dist/neutral/simple/network/lib/index.d.ts.map +0 -1
  540. package/dist/neutral/simple/permissions/SimpleXyoPermissions.d.ts +0 -17
  541. package/dist/neutral/simple/permissions/SimpleXyoPermissions.d.ts.map +0 -1
  542. package/dist/neutral/simple/permissions/index.d.ts +0 -3
  543. package/dist/neutral/simple/permissions/index.d.ts.map +0 -1
  544. package/dist/neutral/simple/permissions/store/MemoryPermissions.d.ts +0 -16
  545. package/dist/neutral/simple/permissions/store/MemoryPermissions.d.ts.map +0 -1
  546. package/dist/neutral/simple/permissions/store/PermissionsStore.d.ts +0 -14
  547. package/dist/neutral/simple/permissions/store/PermissionsStore.d.ts.map +0 -1
  548. package/dist/neutral/simple/permissions/store/index.d.ts +0 -3
  549. package/dist/neutral/simple/permissions/store/index.d.ts.map +0 -1
  550. package/dist/neutral/simple/runner/SimpleXyoRunner.d.ts +0 -21
  551. package/dist/neutral/simple/runner/SimpleXyoRunner.d.ts.map +0 -1
  552. package/dist/neutral/simple/runner/index.d.ts +0 -2
  553. package/dist/neutral/simple/runner/index.d.ts.map +0 -1
  554. package/dist/neutral/simple/signer/SimpleXyoSigner.d.ts +0 -31
  555. package/dist/neutral/simple/signer/SimpleXyoSigner.d.ts.map +0 -1
  556. package/dist/neutral/simple/signer/index.d.ts +0 -2
  557. package/dist/neutral/simple/signer/index.d.ts.map +0 -1
  558. package/dist/neutral/simple/sync/RestSyncViewer.d.ts +0 -22
  559. package/dist/neutral/simple/sync/RestSyncViewer.d.ts.map +0 -1
  560. package/dist/neutral/simple/sync/index.d.ts +0 -2
  561. package/dist/neutral/simple/sync/index.d.ts.map +0 -1
  562. package/dist/neutral/simple/systemStatus/SimpleSystemStatusViewer.d.ts +0 -27
  563. package/dist/neutral/simple/systemStatus/SimpleSystemStatusViewer.d.ts.map +0 -1
  564. package/dist/neutral/simple/systemStatus/index.d.ts +0 -2
  565. package/dist/neutral/simple/systemStatus/index.d.ts.map +0 -1
  566. package/dist/neutral/simple/timeSync2/SimpleTimeSyncViewer.d.ts +0 -27
  567. package/dist/neutral/simple/timeSync2/SimpleTimeSyncViewer.d.ts.map +0 -1
  568. package/dist/neutral/simple/timeSync2/index.d.ts +0 -2
  569. package/dist/neutral/simple/timeSync2/index.d.ts.map +0 -1
  570. package/dist/neutral/simple/transactionInvalidation/SimpleTransactionInvalidationViewer.d.ts +0 -35
  571. package/dist/neutral/simple/transactionInvalidation/SimpleTransactionInvalidationViewer.d.ts.map +0 -1
  572. package/dist/neutral/simple/transactionInvalidation/index.d.ts +0 -2
  573. package/dist/neutral/simple/transactionInvalidation/index.d.ts.map +0 -1
  574. package/dist/neutral/simple/transactionValidation/SimpleTransactionValidationViewer.d.ts +0 -34
  575. package/dist/neutral/simple/transactionValidation/SimpleTransactionValidationViewer.d.ts.map +0 -1
  576. package/dist/neutral/simple/transactionValidation/index.d.ts +0 -2
  577. package/dist/neutral/simple/transactionValidation/index.d.ts.map +0 -1
  578. package/dist/neutral/simple/windowedBlock/SimpleWindowedBlockViewer.d.ts +0 -242
  579. package/dist/neutral/simple/windowedBlock/SimpleWindowedBlockViewer.d.ts.map +0 -1
  580. package/dist/neutral/simple/windowedBlock/index.d.ts +0 -2
  581. package/dist/neutral/simple/windowedBlock/index.d.ts.map +0 -1
  582. package/dist/neutral/status/ServiceStatus.d.ts +0 -9
  583. package/dist/neutral/status/ServiceStatus.d.ts.map +0 -1
  584. package/dist/neutral/status/SimpleSystemStatusRunner.d.ts +0 -35
  585. package/dist/neutral/status/SimpleSystemStatusRunner.d.ts.map +0 -1
  586. package/dist/neutral/status/index.d.ts +0 -3
  587. package/dist/neutral/status/index.d.ts.map +0 -1
  588. package/dist/neutral/summary/IndexViewerSummaryMap.d.ts +0 -28
  589. package/dist/neutral/summary/IndexViewerSummaryMap.d.ts.map +0 -1
  590. package/dist/neutral/summary/index.d.ts +0 -4
  591. package/dist/neutral/summary/index.d.ts.map +0 -1
  592. package/dist/neutral/summary/model/BalancesStepSummary.d.ts +0 -26
  593. package/dist/neutral/summary/model/BalancesStepSummary.d.ts.map +0 -1
  594. package/dist/neutral/summary/model/SchemasStepSummary.d.ts +0 -25
  595. package/dist/neutral/summary/model/SchemasStepSummary.d.ts.map +0 -1
  596. package/dist/neutral/summary/model/TransfersSummary.d.ts +0 -26
  597. package/dist/neutral/summary/model/TransfersSummary.d.ts.map +0 -1
  598. package/dist/neutral/summary/model/index.d.ts +0 -4
  599. package/dist/neutral/summary/model/index.d.ts.map +0 -1
  600. package/dist/neutral/summary/primitives/balances/balancesMaxStep.d.ts +0 -9
  601. package/dist/neutral/summary/primitives/balances/balancesMaxStep.d.ts.map +0 -1
  602. package/dist/neutral/summary/primitives/balances/balancesStepSummaryFromRange.d.ts +0 -6
  603. package/dist/neutral/summary/primitives/balances/balancesStepSummaryFromRange.d.ts.map +0 -1
  604. package/dist/neutral/summary/primitives/balances/balancesSummary.d.ts +0 -13
  605. package/dist/neutral/summary/primitives/balances/balancesSummary.d.ts.map +0 -1
  606. package/dist/neutral/summary/primitives/balances/index.d.ts +0 -4
  607. package/dist/neutral/summary/primitives/balances/index.d.ts.map +0 -1
  608. package/dist/neutral/summary/primitives/blocks/blocksMaxStep.d.ts +0 -13
  609. package/dist/neutral/summary/primitives/blocks/blocksMaxStep.d.ts.map +0 -1
  610. package/dist/neutral/summary/primitives/blocks/blocksStepSummaryFromRange.d.ts +0 -12
  611. package/dist/neutral/summary/primitives/blocks/blocksStepSummaryFromRange.d.ts.map +0 -1
  612. package/dist/neutral/summary/primitives/blocks/index.d.ts +0 -3
  613. package/dist/neutral/summary/primitives/blocks/index.d.ts.map +0 -1
  614. package/dist/neutral/summary/primitives/index.d.ts +0 -5
  615. package/dist/neutral/summary/primitives/index.d.ts.map +0 -1
  616. package/dist/neutral/summary/primitives/schemas/index.d.ts +0 -4
  617. package/dist/neutral/summary/primitives/schemas/index.d.ts.map +0 -1
  618. package/dist/neutral/summary/primitives/schemas/schemasMaxStep.d.ts +0 -8
  619. package/dist/neutral/summary/primitives/schemas/schemasMaxStep.d.ts.map +0 -1
  620. package/dist/neutral/summary/primitives/schemas/schemasStepSummaryFromRange.d.ts +0 -7
  621. package/dist/neutral/summary/primitives/schemas/schemasStepSummaryFromRange.d.ts.map +0 -1
  622. package/dist/neutral/summary/primitives/schemas/schemasSummary.d.ts +0 -7
  623. package/dist/neutral/summary/primitives/schemas/schemasSummary.d.ts.map +0 -1
  624. package/dist/neutral/summary/primitives/transfers/index.d.ts +0 -4
  625. package/dist/neutral/summary/primitives/transfers/index.d.ts.map +0 -1
  626. package/dist/neutral/summary/primitives/transfers/transfersMaxStep.d.ts +0 -10
  627. package/dist/neutral/summary/primitives/transfers/transfersMaxStep.d.ts.map +0 -1
  628. package/dist/neutral/summary/primitives/transfers/transfersStepSummaryFromRange.d.ts +0 -9
  629. package/dist/neutral/summary/primitives/transfers/transfersStepSummaryFromRange.d.ts.map +0 -1
  630. package/dist/neutral/summary/primitives/transfers/transfersSummary.d.ts +0 -7
  631. package/dist/neutral/summary/primitives/transfers/transfersSummary.d.ts.map +0 -1
  632. package/dist/neutral/test/BuildBlockOptions.d.ts +0 -33
  633. package/dist/neutral/test/BuildBlockOptions.d.ts.map +0 -1
  634. package/dist/neutral/test/buildBlock.d.ts +0 -5
  635. package/dist/neutral/test/buildBlock.d.ts.map +0 -1
  636. package/dist/neutral/test/buildGenesisBlock.d.ts +0 -9
  637. package/dist/neutral/test/buildGenesisBlock.d.ts.map +0 -1
  638. package/dist/neutral/test/buildNextBlock.d.ts +0 -6
  639. package/dist/neutral/test/buildNextBlock.d.ts.map +0 -1
  640. package/dist/neutral/test/buildRandomChain.d.ts +0 -20
  641. package/dist/neutral/test/buildRandomChain.d.ts.map +0 -1
  642. package/dist/neutral/test/buildRandomGenesisBlock.d.ts +0 -13
  643. package/dist/neutral/test/buildRandomGenesisBlock.d.ts.map +0 -1
  644. package/dist/neutral/test/buildRandomTransaction.d.ts +0 -5
  645. package/dist/neutral/test/buildRandomTransaction.d.ts.map +0 -1
  646. package/dist/neutral/test/createGenesisBlock.d.ts +0 -5
  647. package/dist/neutral/test/createGenesisBlock.d.ts.map +0 -1
  648. package/dist/neutral/test/createProducerChainStakeIntentTransaction.d.ts +0 -16
  649. package/dist/neutral/test/createProducerChainStakeIntentTransaction.d.ts.map +0 -1
  650. package/dist/neutral/test/getSimpleBlockViewerLocator.d.ts +0 -15
  651. package/dist/neutral/test/getSimpleBlockViewerLocator.d.ts.map +0 -1
  652. package/dist/neutral/test/getTestProviderContext.d.ts +0 -5
  653. package/dist/neutral/test/getTestProviderContext.d.ts.map +0 -1
  654. package/dist/neutral/time/index.d.ts +0 -2
  655. package/dist/neutral/time/index.d.ts.map +0 -1
  656. package/dist/neutral/time/primitives/index.d.ts +0 -2
  657. package/dist/neutral/time/primitives/index.d.ts.map +0 -1
  658. package/dist/neutral/time/primitives/xl1BlockNumberToEthBlockNumber.d.ts +0 -4
  659. package/dist/neutral/time/primitives/xl1BlockNumberToEthBlockNumber.d.ts.map +0 -1
  660. package/dist/neutral/transaction/TransactionBuilder.d.ts +0 -110
  661. package/dist/neutral/transaction/TransactionBuilder.d.ts.map +0 -1
  662. package/dist/neutral/transaction/buildTransaction.d.ts +0 -5
  663. package/dist/neutral/transaction/buildTransaction.d.ts.map +0 -1
  664. package/dist/neutral/transaction/buildUnsignedTransaction.d.ts +0 -5
  665. package/dist/neutral/transaction/buildUnsignedTransaction.d.ts.map +0 -1
  666. package/dist/neutral/transaction/confirmSubmittedTransaction.d.ts +0 -11
  667. package/dist/neutral/transaction/confirmSubmittedTransaction.d.ts.map +0 -1
  668. package/dist/neutral/transaction/hydrateTransaction.d.ts +0 -21
  669. package/dist/neutral/transaction/hydrateTransaction.d.ts.map +0 -1
  670. package/dist/neutral/transaction/index.d.ts +0 -8
  671. package/dist/neutral/transaction/index.d.ts.map +0 -1
  672. package/dist/neutral/transaction/primitives/index.d.ts +0 -5
  673. package/dist/neutral/transaction/primitives/index.d.ts.map +0 -1
  674. package/dist/neutral/transaction/primitives/transactionBlockByteCount.d.ts +0 -4
  675. package/dist/neutral/transaction/primitives/transactionBlockByteCount.d.ts.map +0 -1
  676. package/dist/neutral/transaction/primitives/transactionElevatedPayloads.d.ts +0 -8
  677. package/dist/neutral/transaction/primitives/transactionElevatedPayloads.d.ts.map +0 -1
  678. package/dist/neutral/transaction/primitives/transactionOperations.d.ts +0 -5
  679. package/dist/neutral/transaction/primitives/transactionOperations.d.ts.map +0 -1
  680. package/dist/neutral/transaction/primitives/transactionRequiredGas.d.ts +0 -7
  681. package/dist/neutral/transaction/primitives/transactionRequiredGas.d.ts.map +0 -1
  682. package/dist/neutral/transaction/script.d.ts +0 -2
  683. package/dist/neutral/transaction/script.d.ts.map +0 -1
  684. package/dist/neutral/transaction/signTransaction.d.ts +0 -19
  685. package/dist/neutral/transaction/signTransaction.d.ts.map +0 -1
  686. package/dist/neutral/utils/HydratedCache.d.ts +0 -15
  687. package/dist/neutral/utils/HydratedCache.d.ts.map +0 -1
  688. package/dist/neutral/utils/index.d.ts +0 -3
  689. package/dist/neutral/utils/index.d.ts.map +0 -1
  690. package/dist/neutral/utils/isZodError.d.ts +0 -6
  691. package/dist/neutral/utils/isZodError.d.ts.map +0 -1
  692. package/dist/neutral/validation/index.d.ts +0 -3
  693. package/dist/neutral/validation/index.d.ts.map +0 -1
  694. package/dist/neutral/validation/lib/getUrl.d.ts +0 -3
  695. package/dist/neutral/validation/lib/getUrl.d.ts.map +0 -1
  696. package/dist/neutral/validation/lib/index.d.ts +0 -3
  697. package/dist/neutral/validation/lib/index.d.ts.map +0 -1
  698. package/dist/neutral/validation/lib/isLocalhost.d.ts +0 -3
  699. package/dist/neutral/validation/lib/isLocalhost.d.ts.map +0 -1
  700. package/dist/neutral/validation/schema/Address.d.ts +0 -3
  701. package/dist/neutral/validation/schema/Address.d.ts.map +0 -1
  702. package/dist/neutral/validation/schema/Mnemonic.d.ts +0 -14
  703. package/dist/neutral/validation/schema/Mnemonic.d.ts.map +0 -1
  704. package/dist/neutral/validation/schema/index.d.ts +0 -3
  705. package/dist/neutral/validation/schema/index.d.ts.map +0 -1
  706. package/dist/neutral/wallet/generateXyoBaseWalletFromPhrase.d.ts +0 -7
  707. package/dist/neutral/wallet/generateXyoBaseWalletFromPhrase.d.ts.map +0 -1
  708. package/dist/neutral/wallet/index.d.ts +0 -3
  709. package/dist/neutral/wallet/index.d.ts.map +0 -1
  710. package/dist/neutral/wallet/paths.d.ts +0 -24
  711. package/dist/neutral/wallet/paths.d.ts.map +0 -1
  712. package/dist/node/Archivists/ArchivistConnectOptions.d.ts +0 -8
  713. package/dist/node/Archivists/ArchivistConnectOptions.d.ts.map +0 -1
  714. package/dist/node/Archivists/ArchivistFactory.d.ts +0 -31
  715. package/dist/node/Archivists/ArchivistFactory.d.ts.map +0 -1
  716. package/dist/node/Archivists/MemoryArchivistFactory.d.ts +0 -19
  717. package/dist/node/Archivists/MemoryArchivistFactory.d.ts.map +0 -1
  718. package/dist/node/Archivists/archivistFactoryRegistry.d.ts +0 -9
  719. package/dist/node/Archivists/archivistFactoryRegistry.d.ts.map +0 -1
  720. package/dist/node/Archivists/archivistRoles.d.ts +0 -12
  721. package/dist/node/Archivists/archivistRoles.d.ts.map +0 -1
  722. package/dist/node/Archivists/connectArchivist.d.ts +0 -11
  723. package/dist/node/Archivists/connectArchivist.d.ts.map +0 -1
  724. package/dist/node/Archivists/index.d.ts +0 -7
  725. package/dist/node/Archivists/index.d.ts.map +0 -1
  726. package/dist/node/ChainContextHelpers.d.ts +0 -10
  727. package/dist/node/ChainContextHelpers.d.ts.map +0 -1
  728. package/dist/node/CreatableProvider/AbstractCreatableProvider.d.ts +0 -115
  729. package/dist/node/CreatableProvider/AbstractCreatableProvider.d.ts.map +0 -1
  730. package/dist/node/CreatableProvider/CreatableProvider.d.ts +0 -67
  731. package/dist/node/CreatableProvider/CreatableProvider.d.ts.map +0 -1
  732. package/dist/node/CreatableProvider/CreatableProviderRegistry.d.ts +0 -13
  733. package/dist/node/CreatableProvider/CreatableProviderRegistry.d.ts.map +0 -1
  734. package/dist/node/CreatableProvider/GetInstanceOptions.d.ts +0 -10
  735. package/dist/node/CreatableProvider/GetInstanceOptions.d.ts.map +0 -1
  736. package/dist/node/CreatableProvider/LabeledCreatableProviderFactory.d.ts +0 -14
  737. package/dist/node/CreatableProvider/LabeledCreatableProviderFactory.d.ts.map +0 -1
  738. package/dist/node/CreatableProvider/ProviderFactory.d.ts +0 -29
  739. package/dist/node/CreatableProvider/ProviderFactory.d.ts.map +0 -1
  740. package/dist/node/CreatableProvider/ProviderFactoryLocator.d.ts +0 -60
  741. package/dist/node/CreatableProvider/ProviderFactoryLocator.d.ts.map +0 -1
  742. package/dist/node/CreatableProvider/ProviderFactoryLocatorInstance.d.ts +0 -46
  743. package/dist/node/CreatableProvider/ProviderFactoryLocatorInstance.d.ts.map +0 -1
  744. package/dist/node/CreatableProvider/index.d.ts +0 -9
  745. package/dist/node/CreatableProvider/index.d.ts.map +0 -1
  746. package/dist/node/SignedBigInt.d.ts +0 -22
  747. package/dist/node/SignedBigInt.d.ts.map +0 -1
  748. package/dist/node/_internal/context/getTestProviderContext.d.ts +0 -4
  749. package/dist/node/_internal/context/getTestProviderContext.d.ts.map +0 -1
  750. package/dist/node/_internal/context/index.d.ts +0 -2
  751. package/dist/node/_internal/context/index.d.ts.map +0 -1
  752. package/dist/node/_internal/index.d.ts +0 -2
  753. package/dist/node/_internal/index.d.ts.map +0 -1
  754. package/dist/node/amount/ShiftedBigInt.d.ts +0 -17
  755. package/dist/node/amount/ShiftedBigInt.d.ts.map +0 -1
  756. package/dist/node/amount/index.d.ts +0 -5
  757. package/dist/node/amount/index.d.ts.map +0 -1
  758. package/dist/node/amount/splitOnDecimal.d.ts +0 -3
  759. package/dist/node/amount/splitOnDecimal.d.ts.map +0 -1
  760. package/dist/node/amount/splitOnDecimalToString.d.ts +0 -3
  761. package/dist/node/amount/splitOnDecimalToString.d.ts.map +0 -1
  762. package/dist/node/amount/xl1Amount.d.ts +0 -26
  763. package/dist/node/amount/xl1Amount.d.ts.map +0 -1
  764. package/dist/node/block/hydrate/BoundWitnessHydrator.d.ts +0 -70
  765. package/dist/node/block/hydrate/BoundWitnessHydrator.d.ts.map +0 -1
  766. package/dist/node/block/hydrate/allHashesPresent.d.ts +0 -5
  767. package/dist/node/block/hydrate/allHashesPresent.d.ts.map +0 -1
  768. package/dist/node/block/hydrate/blockPayloadsFromHydratedBlock.d.ts +0 -5
  769. package/dist/node/block/hydrate/blockPayloadsFromHydratedBlock.d.ts.map +0 -1
  770. package/dist/node/block/hydrate/createBlockHydrator.d.ts +0 -6
  771. package/dist/node/block/hydrate/createBlockHydrator.d.ts.map +0 -1
  772. package/dist/node/block/hydrate/createBoundWitnessHydrator.d.ts +0 -169
  773. package/dist/node/block/hydrate/createBoundWitnessHydrator.d.ts.map +0 -1
  774. package/dist/node/block/hydrate/createTransactionHydrator.d.ts +0 -6
  775. package/dist/node/block/hydrate/createTransactionHydrator.d.ts.map +0 -1
  776. package/dist/node/block/hydrate/flattenHydratedBlock.d.ts +0 -9
  777. package/dist/node/block/hydrate/flattenHydratedBlock.d.ts.map +0 -1
  778. package/dist/node/block/hydrate/flattenHydratedBlocks.d.ts +0 -4
  779. package/dist/node/block/hydrate/flattenHydratedBlocks.d.ts.map +0 -1
  780. package/dist/node/block/hydrate/hydrateBlock.d.ts +0 -5
  781. package/dist/node/block/hydrate/hydrateBlock.d.ts.map +0 -1
  782. package/dist/node/block/hydrate/index.d.ts +0 -12
  783. package/dist/node/block/hydrate/index.d.ts.map +0 -1
  784. package/dist/node/block/hydrate/transactionsFromHydratedBlock.d.ts +0 -4
  785. package/dist/node/block/hydrate/transactionsFromHydratedBlock.d.ts.map +0 -1
  786. package/dist/node/block/hydrate/tryHydrateBlock.d.ts +0 -6
  787. package/dist/node/block/hydrate/tryHydrateBlock.d.ts.map +0 -1
  788. package/dist/node/block/index.d.ts +0 -3
  789. package/dist/node/block/index.d.ts.map +0 -1
  790. package/dist/node/block/primitives/blockFromBlockNumber.d.ts +0 -5
  791. package/dist/node/block/primitives/blockFromBlockNumber.d.ts.map +0 -1
  792. package/dist/node/block/primitives/frames/calculateFramesFromRange.d.ts +0 -7
  793. package/dist/node/block/primitives/frames/calculateFramesFromRange.d.ts.map +0 -1
  794. package/dist/node/block/primitives/frames/deepCalculateFramesFromRange.d.ts +0 -10
  795. package/dist/node/block/primitives/frames/deepCalculateFramesFromRange.d.ts.map +0 -1
  796. package/dist/node/block/primitives/frames/index.d.ts +0 -3
  797. package/dist/node/block/primitives/frames/index.d.ts.map +0 -1
  798. package/dist/node/block/primitives/hashFromBlockNumber.d.ts +0 -5
  799. package/dist/node/block/primitives/hashFromBlockNumber.d.ts.map +0 -1
  800. package/dist/node/block/primitives/index.d.ts +0 -8
  801. package/dist/node/block/primitives/index.d.ts.map +0 -1
  802. package/dist/node/block/primitives/model.d.ts +0 -8
  803. package/dist/node/block/primitives/model.d.ts.map +0 -1
  804. package/dist/node/block/primitives/payloads/ChainWindow.d.ts +0 -7
  805. package/dist/node/block/primitives/payloads/ChainWindow.d.ts.map +0 -1
  806. package/dist/node/block/primitives/payloads/index.d.ts +0 -2
  807. package/dist/node/block/primitives/payloads/index.d.ts.map +0 -1
  808. package/dist/node/block/primitives/toStepIdentityString.d.ts +0 -4
  809. package/dist/node/block/primitives/toStepIdentityString.d.ts.map +0 -1
  810. package/dist/node/block/primitives/validateTransactionOpcodes.d.ts +0 -5
  811. package/dist/node/block/primitives/validateTransactionOpcodes.d.ts.map +0 -1
  812. package/dist/node/boundwitness/buildUnsignedBoundWitness.d.ts +0 -10
  813. package/dist/node/boundwitness/buildUnsignedBoundWitness.d.ts.map +0 -1
  814. package/dist/node/boundwitness/index.d.ts +0 -2
  815. package/dist/node/boundwitness/index.d.ts.map +0 -1
  816. package/dist/node/capabilities/Backing.d.ts +0 -52
  817. package/dist/node/capabilities/Backing.d.ts.map +0 -1
  818. package/dist/node/capabilities/Capability.d.ts +0 -32
  819. package/dist/node/capabilities/Capability.d.ts.map +0 -1
  820. package/dist/node/capabilities/Provider.d.ts +0 -31
  821. package/dist/node/capabilities/Provider.d.ts.map +0 -1
  822. package/dist/node/capabilities/connectionSubsetBySurface.d.ts +0 -17
  823. package/dist/node/capabilities/connectionSubsetBySurface.d.ts.map +0 -1
  824. package/dist/node/capabilities/connectionTypes.d.ts +0 -10
  825. package/dist/node/capabilities/connectionTypes.d.ts.map +0 -1
  826. package/dist/node/capabilities/factoryBrand.d.ts +0 -46
  827. package/dist/node/capabilities/factoryBrand.d.ts.map +0 -1
  828. package/dist/node/capabilities/index.d.ts +0 -12
  829. package/dist/node/capabilities/index.d.ts.map +0 -1
  830. package/dist/node/capabilities/locatorFromConfig.d.ts +0 -29
  831. package/dist/node/capabilities/locatorFromConfig.d.ts.map +0 -1
  832. package/dist/node/capabilities/needsFromProviderBindings.d.ts +0 -8
  833. package/dist/node/capabilities/needsFromProviderBindings.d.ts.map +0 -1
  834. package/dist/node/capabilities/providerCandidateFromClass.d.ts +0 -7
  835. package/dist/node/capabilities/providerCandidateFromClass.d.ts.map +0 -1
  836. package/dist/node/capabilities/resolveProviders.d.ts +0 -56
  837. package/dist/node/capabilities/resolveProviders.d.ts.map +0 -1
  838. package/dist/node/capabilities/surfaceMap.d.ts +0 -11
  839. package/dist/node/capabilities/surfaceMap.d.ts.map +0 -1
  840. package/dist/node/config/Actor.d.ts +0 -596
  841. package/dist/node/config/Actor.d.ts.map +0 -1
  842. package/dist/node/config/Actors.d.ts +0 -108
  843. package/dist/node/config/Actors.d.ts.map +0 -1
  844. package/dist/node/config/Chain.d.ts +0 -13
  845. package/dist/node/config/Chain.d.ts.map +0 -1
  846. package/dist/node/config/Config.d.ts +0 -400
  847. package/dist/node/config/Config.d.ts.map +0 -1
  848. package/dist/node/config/DeepPartial.d.ts +0 -5
  849. package/dist/node/config/DeepPartial.d.ts.map +0 -1
  850. package/dist/node/config/HostActor.d.ts +0 -597
  851. package/dist/node/config/HostActor.d.ts.map +0 -1
  852. package/dist/node/config/LocatorConfigFields.d.ts +0 -116
  853. package/dist/node/config/LocatorConfigFields.d.ts.map +0 -1
  854. package/dist/node/config/Log.d.ts +0 -16
  855. package/dist/node/config/Log.d.ts.map +0 -1
  856. package/dist/node/config/Provider.d.ts +0 -40
  857. package/dist/node/config/Provider.d.ts.map +0 -1
  858. package/dist/node/config/ProviderBinding.d.ts +0 -17
  859. package/dist/node/config/ProviderBinding.d.ts.map +0 -1
  860. package/dist/node/config/Providers.d.ts +0 -13
  861. package/dist/node/config/Providers.d.ts.map +0 -1
  862. package/dist/node/config/ResolvedLocatorConfig.d.ts +0 -123
  863. package/dist/node/config/ResolvedLocatorConfig.d.ts.map +0 -1
  864. package/dist/node/config/Telemetry.d.ts +0 -40
  865. package/dist/node/config/Telemetry.d.ts.map +0 -1
  866. package/dist/node/config/UsageMeta.d.ts +0 -32
  867. package/dist/node/config/UsageMeta.d.ts.map +0 -1
  868. package/dist/node/config/Validation.d.ts +0 -25
  869. package/dist/node/config/Validation.d.ts.map +0 -1
  870. package/dist/node/config/connections/Connection.d.ts +0 -150
  871. package/dist/node/config/connections/Connection.d.ts.map +0 -1
  872. package/dist/node/config/connections/Mongo.d.ts +0 -12
  873. package/dist/node/config/connections/Mongo.d.ts.map +0 -1
  874. package/dist/node/config/connections/RpcRemote.d.ts +0 -34
  875. package/dist/node/config/connections/RpcRemote.d.ts.map +0 -1
  876. package/dist/node/config/connections/S3.d.ts +0 -20
  877. package/dist/node/config/connections/S3.d.ts.map +0 -1
  878. package/dist/node/config/connections/index.d.ts +0 -5
  879. package/dist/node/config/connections/index.d.ts.map +0 -1
  880. package/dist/node/config/index.d.ts +0 -20
  881. package/dist/node/config/index.d.ts.map +0 -1
  882. package/dist/node/config/normalizeConnectionsConfig.d.ts +0 -17
  883. package/dist/node/config/normalizeConnectionsConfig.d.ts.map +0 -1
  884. package/dist/node/config/resolveMongoConnectionConfig.d.ts +0 -6
  885. package/dist/node/config/resolveMongoConnectionConfig.d.ts.map +0 -1
  886. package/dist/node/config/resolveRestConnectionEndpoint.d.ts +0 -5
  887. package/dist/node/config/resolveRestConnectionEndpoint.d.ts.map +0 -1
  888. package/dist/node/config/restConnectionFromS3Bucket.d.ts +0 -5
  889. package/dist/node/config/restConnectionFromS3Bucket.d.ts.map +0 -1
  890. package/dist/node/config/synthesizeMemoryViewerBindings.d.ts +0 -8
  891. package/dist/node/config/synthesizeMemoryViewerBindings.d.ts.map +0 -1
  892. package/dist/node/config/synthesizeRpcConnectionBindings.d.ts +0 -8
  893. package/dist/node/config/synthesizeRpcConnectionBindings.d.ts.map +0 -1
  894. package/dist/node/constants.d.ts +0 -5
  895. package/dist/node/constants.d.ts.map +0 -1
  896. package/dist/node/context/Actor.d.ts +0 -639
  897. package/dist/node/context/Actor.d.ts.map +0 -1
  898. package/dist/node/context/HostActor.d.ts +0 -651
  899. package/dist/node/context/HostActor.d.ts.map +0 -1
  900. package/dist/node/context/index.d.ts +0 -3
  901. package/dist/node/context/index.d.ts.map +0 -1
  902. package/dist/node/createDeclarationPayload.d.ts +0 -5
  903. package/dist/node/createDeclarationPayload.d.ts.map +0 -1
  904. package/dist/node/createTransferPayload.d.ts +0 -6
  905. package/dist/node/createTransferPayload.d.ts.map +0 -1
  906. package/dist/node/eip-712/Payloads/EIP712Data.d.ts +0 -32
  907. package/dist/node/eip-712/Payloads/EIP712Data.d.ts.map +0 -1
  908. package/dist/node/eip-712/Payloads/EIP712Signature.d.ts +0 -23
  909. package/dist/node/eip-712/Payloads/EIP712Signature.d.ts.map +0 -1
  910. package/dist/node/eip-712/Payloads/index.d.ts +0 -3
  911. package/dist/node/eip-712/Payloads/index.d.ts.map +0 -1
  912. package/dist/node/eip-712/Types.d.ts +0 -35
  913. package/dist/node/eip-712/Types.d.ts.map +0 -1
  914. package/dist/node/eip-712/index.d.ts +0 -5
  915. package/dist/node/eip-712/index.d.ts.map +0 -1
  916. package/dist/node/eip-712/sign.d.ts +0 -5
  917. package/dist/node/eip-712/sign.d.ts.map +0 -1
  918. package/dist/node/eip-712/verify.d.ts +0 -4
  919. package/dist/node/eip-712/verify.d.ts.map +0 -1
  920. package/dist/node/getFileConfig.d.ts +0 -193
  921. package/dist/node/getFileConfig.d.ts.map +0 -1
  922. package/dist/node/instances/Address.d.ts +0 -13
  923. package/dist/node/instances/Address.d.ts.map +0 -1
  924. package/dist/node/instances/BoundWitness.d.ts +0 -9
  925. package/dist/node/instances/BoundWitness.d.ts.map +0 -1
  926. package/dist/node/instances/Data.d.ts +0 -5
  927. package/dist/node/instances/Data.d.ts.map +0 -1
  928. package/dist/node/instances/Fees.d.ts +0 -9
  929. package/dist/node/instances/Fees.d.ts.map +0 -1
  930. package/dist/node/instances/HydratedBoundWitness.d.ts +0 -11
  931. package/dist/node/instances/HydratedBoundWitness.d.ts.map +0 -1
  932. package/dist/node/instances/Object.d.ts +0 -6
  933. package/dist/node/instances/Object.d.ts.map +0 -1
  934. package/dist/node/instances/Payload.d.ts +0 -7
  935. package/dist/node/instances/Payload.d.ts.map +0 -1
  936. package/dist/node/instances/Signature.d.ts +0 -10
  937. package/dist/node/instances/Signature.d.ts.map +0 -1
  938. package/dist/node/instances/block/BlockFields.d.ts +0 -12
  939. package/dist/node/instances/block/BlockFields.d.ts.map +0 -1
  940. package/dist/node/instances/block/HydratedBlock.d.ts +0 -9
  941. package/dist/node/instances/block/HydratedBlock.d.ts.map +0 -1
  942. package/dist/node/instances/block/index.d.ts +0 -2
  943. package/dist/node/instances/block/index.d.ts.map +0 -1
  944. package/dist/node/instances/index.d.ts +0 -11
  945. package/dist/node/instances/index.d.ts.map +0 -1
  946. package/dist/node/instances/modifiers/BlockWindowInstance.d.ts +0 -8
  947. package/dist/node/instances/modifiers/BlockWindowInstance.d.ts.map +0 -1
  948. package/dist/node/instances/modifiers/BlockWindowState.d.ts +0 -6
  949. package/dist/node/instances/modifiers/BlockWindowState.d.ts.map +0 -1
  950. package/dist/node/instances/modifiers/Signed.d.ts +0 -8
  951. package/dist/node/instances/modifiers/Signed.d.ts.map +0 -1
  952. package/dist/node/instances/modifiers/Validatable.d.ts +0 -6
  953. package/dist/node/instances/modifiers/Validatable.d.ts.map +0 -1
  954. package/dist/node/instances/modifiers/index.d.ts +0 -5
  955. package/dist/node/instances/modifiers/index.d.ts.map +0 -1
  956. package/dist/node/instances/transaction/HydratedTransaction.d.ts +0 -7
  957. package/dist/node/instances/transaction/HydratedTransaction.d.ts.map +0 -1
  958. package/dist/node/instances/transaction/TransactionFields.d.ts +0 -17
  959. package/dist/node/instances/transaction/TransactionFields.d.ts.map +0 -1
  960. package/dist/node/instances/transaction/index.d.ts +0 -2
  961. package/dist/node/instances/transaction/index.d.ts.map +0 -1
  962. package/dist/node/isInternetAvailable.d.ts +0 -3
  963. package/dist/node/isInternetAvailable.d.ts.map +0 -1
  964. package/dist/node/model/ChainFork/ChainForkStatic.d.ts +0 -9
  965. package/dist/node/model/ChainFork/ChainForkStatic.d.ts.map +0 -1
  966. package/dist/node/model/ChainFork/index.d.ts +0 -2
  967. package/dist/node/model/ChainFork/index.d.ts.map +0 -1
  968. package/dist/node/model/ChainIdentity.d.ts +0 -6
  969. package/dist/node/model/ChainIdentity.d.ts.map +0 -1
  970. package/dist/node/model/ChainStore.d.ts +0 -12
  971. package/dist/node/model/ChainStore.d.ts.map +0 -1
  972. package/dist/node/model/CreatableProviderContext.d.ts +0 -5
  973. package/dist/node/model/CreatableProviderContext.d.ts.map +0 -1
  974. package/dist/node/model/CreatableProviderContext.zod.d.ts +0 -720
  975. package/dist/node/model/CreatableProviderContext.zod.d.ts.map +0 -1
  976. package/dist/node/model/PayloadBundle/bundledPayloadToHydratedBlock.d.ts +0 -5
  977. package/dist/node/model/PayloadBundle/bundledPayloadToHydratedBlock.d.ts.map +0 -1
  978. package/dist/node/model/PayloadBundle/bundledPayloadToHydratedTransaction.d.ts +0 -5
  979. package/dist/node/model/PayloadBundle/bundledPayloadToHydratedTransaction.d.ts.map +0 -1
  980. package/dist/node/model/PayloadBundle/hydratedBlockToPayloadBundle.d.ts +0 -5
  981. package/dist/node/model/PayloadBundle/hydratedBlockToPayloadBundle.d.ts.map +0 -1
  982. package/dist/node/model/PayloadBundle/hydratedTransactionToPayloadBundle.d.ts +0 -5
  983. package/dist/node/model/PayloadBundle/hydratedTransactionToPayloadBundle.d.ts.map +0 -1
  984. package/dist/node/model/PayloadBundle/index.d.ts +0 -5
  985. package/dist/node/model/PayloadBundle/index.d.ts.map +0 -1
  986. package/dist/node/model/index.d.ts +0 -7
  987. package/dist/node/model/index.d.ts.map +0 -1
  988. package/dist/node/multipliers.d.ts +0 -10
  989. package/dist/node/multipliers.d.ts.map +0 -1
  990. package/dist/node/payloads/AddressPairPayload.d.ts +0 -22
  991. package/dist/node/payloads/AddressPairPayload.d.ts.map +0 -1
  992. package/dist/node/payloads/index.d.ts +0 -5
  993. package/dist/node/payloads/index.d.ts.map +0 -1
  994. package/dist/node/payloads/netBalancesForPayloads.d.ts +0 -9
  995. package/dist/node/payloads/netBalancesForPayloads.d.ts.map +0 -1
  996. package/dist/node/payloads/netSchemasForPayloads.d.ts +0 -9
  997. package/dist/node/payloads/netSchemasForPayloads.d.ts.map +0 -1
  998. package/dist/node/payloads/netTransfersForPayloads.d.ts +0 -5
  999. package/dist/node/payloads/netTransfersForPayloads.d.ts.map +0 -1
  1000. package/dist/node/primitives/block/index.d.ts +0 -3
  1001. package/dist/node/primitives/block/index.d.ts.map +0 -1
  1002. package/dist/node/primitives/block/range/blockRangeSteps.d.ts +0 -4
  1003. package/dist/node/primitives/block/range/blockRangeSteps.d.ts.map +0 -1
  1004. package/dist/node/primitives/block/range/index.d.ts +0 -2
  1005. package/dist/node/primitives/block/range/index.d.ts.map +0 -1
  1006. package/dist/node/primitives/block/rate/blockRate.d.ts +0 -11
  1007. package/dist/node/primitives/block/rate/blockRate.d.ts.map +0 -1
  1008. package/dist/node/primitives/block/rate/index.d.ts +0 -5
  1009. package/dist/node/primitives/block/rate/index.d.ts.map +0 -1
  1010. package/dist/node/primitives/block/rate/stepRate.d.ts +0 -7
  1011. package/dist/node/primitives/block/rate/stepRate.d.ts.map +0 -1
  1012. package/dist/node/primitives/block/rate/timeHelpers.d.ts +0 -8
  1013. package/dist/node/primitives/block/rate/timeHelpers.d.ts.map +0 -1
  1014. package/dist/node/primitives/block/rate/timeRate.d.ts +0 -8
  1015. package/dist/node/primitives/block/rate/timeRate.d.ts.map +0 -1
  1016. package/dist/node/primitives/chain/getWindowedChain.d.ts +0 -10
  1017. package/dist/node/primitives/chain/getWindowedChain.d.ts.map +0 -1
  1018. package/dist/node/primitives/chain/index.d.ts +0 -4
  1019. package/dist/node/primitives/chain/index.d.ts.map +0 -1
  1020. package/dist/node/primitives/chain/step/chainStepRewardAddress.d.ts +0 -5
  1021. package/dist/node/primitives/chain/step/chainStepRewardAddress.d.ts.map +0 -1
  1022. package/dist/node/primitives/chain/step/index.d.ts +0 -5
  1023. package/dist/node/primitives/chain/step/index.d.ts.map +0 -1
  1024. package/dist/node/primitives/chain/step/stepRewardBlock.d.ts +0 -4
  1025. package/dist/node/primitives/chain/step/stepRewardBlock.d.ts.map +0 -1
  1026. package/dist/node/primitives/chain/step/stepRewardTotal.d.ts +0 -4
  1027. package/dist/node/primitives/chain/step/stepRewardTotal.d.ts.map +0 -1
  1028. package/dist/node/primitives/chain/step/stepsRewardTotal.d.ts +0 -8
  1029. package/dist/node/primitives/chain/step/stepsRewardTotal.d.ts.map +0 -1
  1030. package/dist/node/primitives/chain/time/externalBlockNumberFromXl1BlockNumber.d.ts +0 -4
  1031. package/dist/node/primitives/chain/time/externalBlockNumberFromXl1BlockNumber.d.ts.map +0 -1
  1032. package/dist/node/primitives/chain/time/externalBlockRangeFromStep.d.ts +0 -4
  1033. package/dist/node/primitives/chain/time/externalBlockRangeFromStep.d.ts.map +0 -1
  1034. package/dist/node/primitives/chain/time/externalBlockRangeFromXl1BlockRange.d.ts +0 -4
  1035. package/dist/node/primitives/chain/time/externalBlockRangeFromXl1BlockRange.d.ts.map +0 -1
  1036. package/dist/node/primitives/chain/time/index.d.ts +0 -4
  1037. package/dist/node/primitives/chain/time/index.d.ts.map +0 -1
  1038. package/dist/node/primitives/datalake/NamedDataLake.d.ts +0 -7
  1039. package/dist/node/primitives/datalake/NamedDataLake.d.ts.map +0 -1
  1040. package/dist/node/primitives/datalake/PayloadLocator.d.ts +0 -55
  1041. package/dist/node/primitives/datalake/PayloadLocator.d.ts.map +0 -1
  1042. package/dist/node/primitives/datalake/addDataLakePayloads.d.ts +0 -5
  1043. package/dist/node/primitives/datalake/addDataLakePayloads.d.ts.map +0 -1
  1044. package/dist/node/primitives/datalake/addDataLakePayloadsToPayloads.d.ts +0 -9
  1045. package/dist/node/primitives/datalake/addDataLakePayloadsToPayloads.d.ts.map +0 -1
  1046. package/dist/node/primitives/datalake/index.d.ts +0 -5
  1047. package/dist/node/primitives/datalake/index.d.ts.map +0 -1
  1048. package/dist/node/primitives/index.d.ts +0 -13
  1049. package/dist/node/primitives/index.d.ts.map +0 -1
  1050. package/dist/node/primitives/mapToMapType.d.ts +0 -4
  1051. package/dist/node/primitives/mapToMapType.d.ts.map +0 -1
  1052. package/dist/node/primitives/payload/index.d.ts +0 -2
  1053. package/dist/node/primitives/payload/index.d.ts.map +0 -1
  1054. package/dist/node/primitives/payload/mergeTransfers.d.ts +0 -5
  1055. package/dist/node/primitives/payload/mergeTransfers.d.ts.map +0 -1
  1056. package/dist/node/primitives/readPayloadMapFromStore.d.ts +0 -7
  1057. package/dist/node/primitives/readPayloadMapFromStore.d.ts.map +0 -1
  1058. package/dist/node/primitives/rewardFromBlockNumber.d.ts +0 -4
  1059. package/dist/node/primitives/rewardFromBlockNumber.d.ts.map +0 -1
  1060. package/dist/node/primitives/rewards/index.d.ts +0 -2
  1061. package/dist/node/primitives/rewards/index.d.ts.map +0 -1
  1062. package/dist/node/primitives/rewards/networkStakeStepRewardPositionWeight.d.ts +0 -4
  1063. package/dist/node/primitives/rewards/networkStakeStepRewardPositionWeight.d.ts.map +0 -1
  1064. package/dist/node/primitives/stake/activeStakeAtTimeByAddress.d.ts +0 -5
  1065. package/dist/node/primitives/stake/activeStakeAtTimeByAddress.d.ts.map +0 -1
  1066. package/dist/node/primitives/stake/activeStakeAtTimeByPosition.d.ts +0 -4
  1067. package/dist/node/primitives/stake/activeStakeAtTimeByPosition.d.ts.map +0 -1
  1068. package/dist/node/primitives/stake/allStakersForRange.d.ts +0 -5
  1069. package/dist/node/primitives/stake/allStakersForRange.d.ts.map +0 -1
  1070. package/dist/node/primitives/stake/allStakersForStep.d.ts +0 -5
  1071. package/dist/node/primitives/stake/allStakersForStep.d.ts.map +0 -1
  1072. package/dist/node/primitives/stake/index.d.ts +0 -7
  1073. package/dist/node/primitives/stake/index.d.ts.map +0 -1
  1074. package/dist/node/primitives/stake/mergedAddRemoveStakeEventsByPosition.d.ts +0 -4
  1075. package/dist/node/primitives/stake/mergedAddRemoveStakeEventsByPosition.d.ts.map +0 -1
  1076. package/dist/node/primitives/stake/mergedAddRemoveStakeEventsByStaker.d.ts +0 -5
  1077. package/dist/node/primitives/stake/mergedAddRemoveStakeEventsByStaker.d.ts.map +0 -1
  1078. package/dist/node/primitives/stake/weightedStakeForRangeByPosition.d.ts +0 -6
  1079. package/dist/node/primitives/stake/weightedStakeForRangeByPosition.d.ts.map +0 -1
  1080. package/dist/node/primitives/state/findMostRecentBlock.d.ts +0 -11
  1081. package/dist/node/primitives/state/findMostRecentBlock.d.ts.map +0 -1
  1082. package/dist/node/primitives/state/hydratedBlockByNumber.d.ts +0 -4
  1083. package/dist/node/primitives/state/hydratedBlockByNumber.d.ts.map +0 -1
  1084. package/dist/node/primitives/state/index.d.ts +0 -3
  1085. package/dist/node/primitives/state/index.d.ts.map +0 -1
  1086. package/dist/node/primitives/step/derivedReceiveAddress.d.ts +0 -2
  1087. package/dist/node/primitives/step/derivedReceiveAddress.d.ts.map +0 -1
  1088. package/dist/node/primitives/step/index.d.ts +0 -3
  1089. package/dist/node/primitives/step/index.d.ts.map +0 -1
  1090. package/dist/node/primitives/step/rewardAddressFromStepIdentity.d.ts +0 -2
  1091. package/dist/node/primitives/step/rewardAddressFromStepIdentity.d.ts.map +0 -1
  1092. package/dist/node/primitives/step/stepBlockRange.d.ts +0 -4
  1093. package/dist/node/primitives/step/stepBlockRange.d.ts.map +0 -1
  1094. package/dist/node/primitives/step/stepTransferIndex.d.ts +0 -3
  1095. package/dist/node/primitives/step/stepTransferIndex.d.ts.map +0 -1
  1096. package/dist/node/primitives/transaction/elevatedPayloads.d.ts +0 -2
  1097. package/dist/node/primitives/transaction/elevatedPayloads.d.ts.map +0 -1
  1098. package/dist/node/primitives/transaction/index.d.ts +0 -2
  1099. package/dist/node/primitives/transaction/index.d.ts.map +0 -1
  1100. package/dist/node/primitives/uncle/findBestUncle.d.ts +0 -17
  1101. package/dist/node/primitives/uncle/findBestUncle.d.ts.map +0 -1
  1102. package/dist/node/primitives/uncle/findUncles.d.ts +0 -36
  1103. package/dist/node/primitives/uncle/findUncles.d.ts.map +0 -1
  1104. package/dist/node/primitives/uncle/getProducerKey.d.ts +0 -4
  1105. package/dist/node/primitives/uncle/getProducerKey.d.ts.map +0 -1
  1106. package/dist/node/primitives/uncle/index.d.ts +0 -5
  1107. package/dist/node/primitives/uncle/index.d.ts.map +0 -1
  1108. package/dist/node/primitives/uncle/scoreUncle.d.ts +0 -6
  1109. package/dist/node/primitives/uncle/scoreUncle.d.ts.map +0 -1
  1110. package/dist/node/services/AccountTransfersService.d.ts +0 -12
  1111. package/dist/node/services/AccountTransfersService.d.ts.map +0 -1
  1112. package/dist/node/services/BlockProducerService.d.ts +0 -7
  1113. package/dist/node/services/BlockProducerService.d.ts.map +0 -1
  1114. package/dist/node/services/Chain/BaseChainService.d.ts +0 -4
  1115. package/dist/node/services/Chain/BaseChainService.d.ts.map +0 -1
  1116. package/dist/node/services/Chain/ChainHeadService.d.ts +0 -7
  1117. package/dist/node/services/Chain/ChainHeadService.d.ts.map +0 -1
  1118. package/dist/node/services/Chain/ChainService.d.ts +0 -6
  1119. package/dist/node/services/Chain/ChainService.d.ts.map +0 -1
  1120. package/dist/node/services/Chain/index.d.ts +0 -4
  1121. package/dist/node/services/Chain/index.d.ts.map +0 -1
  1122. package/dist/node/services/Election.d.ts +0 -11
  1123. package/dist/node/services/Election.d.ts.map +0 -1
  1124. package/dist/node/services/NetworkStakeService.d.ts +0 -5
  1125. package/dist/node/services/NetworkStakeService.d.ts.map +0 -1
  1126. package/dist/node/services/Params.d.ts +0 -11
  1127. package/dist/node/services/Params.d.ts.map +0 -1
  1128. package/dist/node/services/PendingTransactionsService.d.ts +0 -7
  1129. package/dist/node/services/PendingTransactionsService.d.ts.map +0 -1
  1130. package/dist/node/services/SchemasService.d.ts +0 -11
  1131. package/dist/node/services/SchemasService.d.ts.map +0 -1
  1132. package/dist/node/services/StakeIntentService/ChainIndexingServiceStateSchema.d.ts +0 -39
  1133. package/dist/node/services/StakeIntentService/ChainIndexingServiceStateSchema.d.ts.map +0 -1
  1134. package/dist/node/services/StakeIntentService/StakeIntentService.d.ts +0 -31
  1135. package/dist/node/services/StakeIntentService/StakeIntentService.d.ts.map +0 -1
  1136. package/dist/node/services/StakeIntentService/index.d.ts +0 -3
  1137. package/dist/node/services/StakeIntentService/index.d.ts.map +0 -1
  1138. package/dist/node/services/index.d.ts +0 -9
  1139. package/dist/node/services/index.d.ts.map +0 -1
  1140. package/dist/node/simple/StakeEventsViewer/SimpleStakeEventsViewer.d.ts +0 -23
  1141. package/dist/node/simple/StakeEventsViewer/SimpleStakeEventsViewer.d.ts.map +0 -1
  1142. package/dist/node/simple/StakeEventsViewer/index.d.ts +0 -2
  1143. package/dist/node/simple/StakeEventsViewer/index.d.ts.map +0 -1
  1144. package/dist/node/simple/StakeTotalsViewer/SimpleStakeTotalsViewer.d.ts +0 -27
  1145. package/dist/node/simple/StakeTotalsViewer/SimpleStakeTotalsViewer.d.ts.map +0 -1
  1146. package/dist/node/simple/StakeTotalsViewer/index.d.ts +0 -2
  1147. package/dist/node/simple/StakeTotalsViewer/index.d.ts.map +0 -1
  1148. package/dist/node/simple/StakeViewer/SimpleStakeViewer.d.ts +0 -42
  1149. package/dist/node/simple/StakeViewer/SimpleStakeViewer.d.ts.map +0 -1
  1150. package/dist/node/simple/StakeViewer/index.d.ts +0 -2
  1151. package/dist/node/simple/StakeViewer/index.d.ts.map +0 -1
  1152. package/dist/node/simple/TransactionViewer/SimpleTransactionViewer.d.ts +0 -25
  1153. package/dist/node/simple/TransactionViewer/SimpleTransactionViewer.d.ts.map +0 -1
  1154. package/dist/node/simple/TransactionViewer/index.d.ts +0 -2
  1155. package/dist/node/simple/TransactionViewer/index.d.ts.map +0 -1
  1156. package/dist/node/simple/accountBalance/SimpleAccountBalanceViewer.d.ts +0 -130
  1157. package/dist/node/simple/accountBalance/SimpleAccountBalanceViewer.d.ts.map +0 -1
  1158. package/dist/node/simple/accountBalance/index.d.ts +0 -2
  1159. package/dist/node/simple/accountBalance/index.d.ts.map +0 -1
  1160. package/dist/node/simple/block/SimpleBlockViewer.d.ts +0 -114
  1161. package/dist/node/simple/block/SimpleBlockViewer.d.ts.map +0 -1
  1162. package/dist/node/simple/block/index.d.ts +0 -2
  1163. package/dist/node/simple/block/index.d.ts.map +0 -1
  1164. package/dist/node/simple/blockInvalidation/SimpleBlockInvalidationViewer.d.ts +0 -37
  1165. package/dist/node/simple/blockInvalidation/SimpleBlockInvalidationViewer.d.ts.map +0 -1
  1166. package/dist/node/simple/blockInvalidation/index.d.ts +0 -2
  1167. package/dist/node/simple/blockInvalidation/index.d.ts.map +0 -1
  1168. package/dist/node/simple/blockReward/SimpleBlockRewardViewer.d.ts +0 -18
  1169. package/dist/node/simple/blockReward/SimpleBlockRewardViewer.d.ts.map +0 -1
  1170. package/dist/node/simple/blockReward/index.d.ts +0 -2
  1171. package/dist/node/simple/blockReward/index.d.ts.map +0 -1
  1172. package/dist/node/simple/blockValidation/SimpleBlockValidationViewer.d.ts +0 -38
  1173. package/dist/node/simple/blockValidation/SimpleBlockValidationViewer.d.ts.map +0 -1
  1174. package/dist/node/simple/blockValidation/index.d.ts +0 -2
  1175. package/dist/node/simple/blockValidation/index.d.ts.map +0 -1
  1176. package/dist/node/simple/chainContractViewer/SimpleChainContractViewer.d.ts +0 -47
  1177. package/dist/node/simple/chainContractViewer/SimpleChainContractViewer.d.ts.map +0 -1
  1178. package/dist/node/simple/chainContractViewer/index.d.ts +0 -2
  1179. package/dist/node/simple/chainContractViewer/index.d.ts.map +0 -1
  1180. package/dist/node/simple/client/SimpleXyoClient.d.ts +0 -9
  1181. package/dist/node/simple/client/SimpleXyoClient.d.ts.map +0 -1
  1182. package/dist/node/simple/client/index.d.ts +0 -2
  1183. package/dist/node/simple/client/index.d.ts.map +0 -1
  1184. package/dist/node/simple/datalake/AbstractRestDataLake.d.ts +0 -34
  1185. package/dist/node/simple/datalake/AbstractRestDataLake.d.ts.map +0 -1
  1186. package/dist/node/simple/datalake/AbstractSimpleDataLake.d.ts +0 -21
  1187. package/dist/node/simple/datalake/AbstractSimpleDataLake.d.ts.map +0 -1
  1188. package/dist/node/simple/datalake/RestDataLakeRunner.d.ts +0 -20
  1189. package/dist/node/simple/datalake/RestDataLakeRunner.d.ts.map +0 -1
  1190. package/dist/node/simple/datalake/RestDataLakeViewer.d.ts +0 -16
  1191. package/dist/node/simple/datalake/RestDataLakeViewer.d.ts.map +0 -1
  1192. package/dist/node/simple/datalake/SimpleDataLakeRunner.d.ts +0 -23
  1193. package/dist/node/simple/datalake/SimpleDataLakeRunner.d.ts.map +0 -1
  1194. package/dist/node/simple/datalake/SimpleDataLakeViewer.d.ts +0 -17
  1195. package/dist/node/simple/datalake/SimpleDataLakeViewer.d.ts.map +0 -1
  1196. package/dist/node/simple/datalake/index.d.ts +0 -5
  1197. package/dist/node/simple/datalake/index.d.ts.map +0 -1
  1198. package/dist/node/simple/finalization/SimpleFinalizationRunner.d.ts +0 -30
  1199. package/dist/node/simple/finalization/SimpleFinalizationRunner.d.ts.map +0 -1
  1200. package/dist/node/simple/finalization/SimpleFinalizationViewer.d.ts +0 -75
  1201. package/dist/node/simple/finalization/SimpleFinalizationViewer.d.ts.map +0 -1
  1202. package/dist/node/simple/finalization/index.d.ts +0 -3
  1203. package/dist/node/simple/finalization/index.d.ts.map +0 -1
  1204. package/dist/node/simple/gateway/SimpleXyoGateway.d.ts +0 -17
  1205. package/dist/node/simple/gateway/SimpleXyoGateway.d.ts.map +0 -1
  1206. package/dist/node/simple/gateway/SimpleXyoGatewayRunner.d.ts +0 -29
  1207. package/dist/node/simple/gateway/SimpleXyoGatewayRunner.d.ts.map +0 -1
  1208. package/dist/node/simple/gateway/index.d.ts +0 -3
  1209. package/dist/node/simple/gateway/index.d.ts.map +0 -1
  1210. package/dist/node/simple/index.d.ts +0 -25
  1211. package/dist/node/simple/index.d.ts.map +0 -1
  1212. package/dist/node/simple/indexViewer/SimpleIndexViewer.d.ts +0 -26
  1213. package/dist/node/simple/indexViewer/SimpleIndexViewer.d.ts.map +0 -1
  1214. package/dist/node/simple/indexViewer/index.d.ts +0 -2
  1215. package/dist/node/simple/indexViewer/index.d.ts.map +0 -1
  1216. package/dist/node/simple/mempool/SimpleMempoolRunner.d.ts +0 -84
  1217. package/dist/node/simple/mempool/SimpleMempoolRunner.d.ts.map +0 -1
  1218. package/dist/node/simple/mempool/SimpleMempoolViewer.d.ts +0 -82
  1219. package/dist/node/simple/mempool/SimpleMempoolViewer.d.ts.map +0 -1
  1220. package/dist/node/simple/mempool/index.d.ts +0 -3
  1221. package/dist/node/simple/mempool/index.d.ts.map +0 -1
  1222. package/dist/node/simple/network/SimpleXyoNetwork.d.ts +0 -12
  1223. package/dist/node/simple/network/SimpleXyoNetwork.d.ts.map +0 -1
  1224. package/dist/node/simple/network/index.d.ts +0 -2
  1225. package/dist/node/simple/network/index.d.ts.map +0 -1
  1226. package/dist/node/simple/network/lib/FailedNetworkStatusPayloads.d.ts +0 -6
  1227. package/dist/node/simple/network/lib/FailedNetworkStatusPayloads.d.ts.map +0 -1
  1228. package/dist/node/simple/network/lib/StatusNetworks.d.ts +0 -15
  1229. package/dist/node/simple/network/lib/StatusNetworks.d.ts.map +0 -1
  1230. package/dist/node/simple/network/lib/index.d.ts +0 -3
  1231. package/dist/node/simple/network/lib/index.d.ts.map +0 -1
  1232. package/dist/node/simple/permissions/SimpleXyoPermissions.d.ts +0 -17
  1233. package/dist/node/simple/permissions/SimpleXyoPermissions.d.ts.map +0 -1
  1234. package/dist/node/simple/permissions/index.d.ts +0 -3
  1235. package/dist/node/simple/permissions/index.d.ts.map +0 -1
  1236. package/dist/node/simple/permissions/store/MemoryPermissions.d.ts +0 -16
  1237. package/dist/node/simple/permissions/store/MemoryPermissions.d.ts.map +0 -1
  1238. package/dist/node/simple/permissions/store/PermissionsStore.d.ts +0 -14
  1239. package/dist/node/simple/permissions/store/PermissionsStore.d.ts.map +0 -1
  1240. package/dist/node/simple/permissions/store/index.d.ts +0 -3
  1241. package/dist/node/simple/permissions/store/index.d.ts.map +0 -1
  1242. package/dist/node/simple/runner/SimpleXyoRunner.d.ts +0 -21
  1243. package/dist/node/simple/runner/SimpleXyoRunner.d.ts.map +0 -1
  1244. package/dist/node/simple/runner/index.d.ts +0 -2
  1245. package/dist/node/simple/runner/index.d.ts.map +0 -1
  1246. package/dist/node/simple/signer/SimpleXyoSigner.d.ts +0 -31
  1247. package/dist/node/simple/signer/SimpleXyoSigner.d.ts.map +0 -1
  1248. package/dist/node/simple/signer/index.d.ts +0 -2
  1249. package/dist/node/simple/signer/index.d.ts.map +0 -1
  1250. package/dist/node/simple/sync/RestSyncViewer.d.ts +0 -22
  1251. package/dist/node/simple/sync/RestSyncViewer.d.ts.map +0 -1
  1252. package/dist/node/simple/sync/index.d.ts +0 -2
  1253. package/dist/node/simple/sync/index.d.ts.map +0 -1
  1254. package/dist/node/simple/systemStatus/SimpleSystemStatusViewer.d.ts +0 -27
  1255. package/dist/node/simple/systemStatus/SimpleSystemStatusViewer.d.ts.map +0 -1
  1256. package/dist/node/simple/systemStatus/index.d.ts +0 -2
  1257. package/dist/node/simple/systemStatus/index.d.ts.map +0 -1
  1258. package/dist/node/simple/timeSync2/SimpleTimeSyncViewer.d.ts +0 -27
  1259. package/dist/node/simple/timeSync2/SimpleTimeSyncViewer.d.ts.map +0 -1
  1260. package/dist/node/simple/timeSync2/index.d.ts +0 -2
  1261. package/dist/node/simple/timeSync2/index.d.ts.map +0 -1
  1262. package/dist/node/simple/transactionInvalidation/SimpleTransactionInvalidationViewer.d.ts +0 -35
  1263. package/dist/node/simple/transactionInvalidation/SimpleTransactionInvalidationViewer.d.ts.map +0 -1
  1264. package/dist/node/simple/transactionInvalidation/index.d.ts +0 -2
  1265. package/dist/node/simple/transactionInvalidation/index.d.ts.map +0 -1
  1266. package/dist/node/simple/transactionValidation/SimpleTransactionValidationViewer.d.ts +0 -34
  1267. package/dist/node/simple/transactionValidation/SimpleTransactionValidationViewer.d.ts.map +0 -1
  1268. package/dist/node/simple/transactionValidation/index.d.ts +0 -2
  1269. package/dist/node/simple/transactionValidation/index.d.ts.map +0 -1
  1270. package/dist/node/simple/windowedBlock/SimpleWindowedBlockViewer.d.ts +0 -242
  1271. package/dist/node/simple/windowedBlock/SimpleWindowedBlockViewer.d.ts.map +0 -1
  1272. package/dist/node/simple/windowedBlock/index.d.ts +0 -2
  1273. package/dist/node/simple/windowedBlock/index.d.ts.map +0 -1
  1274. package/dist/node/status/ServiceStatus.d.ts +0 -9
  1275. package/dist/node/status/ServiceStatus.d.ts.map +0 -1
  1276. package/dist/node/status/SimpleSystemStatusRunner.d.ts +0 -35
  1277. package/dist/node/status/SimpleSystemStatusRunner.d.ts.map +0 -1
  1278. package/dist/node/status/index.d.ts +0 -3
  1279. package/dist/node/status/index.d.ts.map +0 -1
  1280. package/dist/node/summary/IndexViewerSummaryMap.d.ts +0 -28
  1281. package/dist/node/summary/IndexViewerSummaryMap.d.ts.map +0 -1
  1282. package/dist/node/summary/index.d.ts +0 -4
  1283. package/dist/node/summary/index.d.ts.map +0 -1
  1284. package/dist/node/summary/model/BalancesStepSummary.d.ts +0 -26
  1285. package/dist/node/summary/model/BalancesStepSummary.d.ts.map +0 -1
  1286. package/dist/node/summary/model/SchemasStepSummary.d.ts +0 -25
  1287. package/dist/node/summary/model/SchemasStepSummary.d.ts.map +0 -1
  1288. package/dist/node/summary/model/TransfersSummary.d.ts +0 -26
  1289. package/dist/node/summary/model/TransfersSummary.d.ts.map +0 -1
  1290. package/dist/node/summary/model/index.d.ts +0 -4
  1291. package/dist/node/summary/model/index.d.ts.map +0 -1
  1292. package/dist/node/summary/primitives/balances/balancesMaxStep.d.ts +0 -9
  1293. package/dist/node/summary/primitives/balances/balancesMaxStep.d.ts.map +0 -1
  1294. package/dist/node/summary/primitives/balances/balancesStepSummaryFromRange.d.ts +0 -6
  1295. package/dist/node/summary/primitives/balances/balancesStepSummaryFromRange.d.ts.map +0 -1
  1296. package/dist/node/summary/primitives/balances/balancesSummary.d.ts +0 -13
  1297. package/dist/node/summary/primitives/balances/balancesSummary.d.ts.map +0 -1
  1298. package/dist/node/summary/primitives/balances/index.d.ts +0 -4
  1299. package/dist/node/summary/primitives/balances/index.d.ts.map +0 -1
  1300. package/dist/node/summary/primitives/blocks/blocksMaxStep.d.ts +0 -13
  1301. package/dist/node/summary/primitives/blocks/blocksMaxStep.d.ts.map +0 -1
  1302. package/dist/node/summary/primitives/blocks/blocksStepSummaryFromRange.d.ts +0 -12
  1303. package/dist/node/summary/primitives/blocks/blocksStepSummaryFromRange.d.ts.map +0 -1
  1304. package/dist/node/summary/primitives/blocks/index.d.ts +0 -3
  1305. package/dist/node/summary/primitives/blocks/index.d.ts.map +0 -1
  1306. package/dist/node/summary/primitives/index.d.ts +0 -5
  1307. package/dist/node/summary/primitives/index.d.ts.map +0 -1
  1308. package/dist/node/summary/primitives/schemas/index.d.ts +0 -4
  1309. package/dist/node/summary/primitives/schemas/index.d.ts.map +0 -1
  1310. package/dist/node/summary/primitives/schemas/schemasMaxStep.d.ts +0 -8
  1311. package/dist/node/summary/primitives/schemas/schemasMaxStep.d.ts.map +0 -1
  1312. package/dist/node/summary/primitives/schemas/schemasStepSummaryFromRange.d.ts +0 -7
  1313. package/dist/node/summary/primitives/schemas/schemasStepSummaryFromRange.d.ts.map +0 -1
  1314. package/dist/node/summary/primitives/schemas/schemasSummary.d.ts +0 -7
  1315. package/dist/node/summary/primitives/schemas/schemasSummary.d.ts.map +0 -1
  1316. package/dist/node/summary/primitives/transfers/index.d.ts +0 -4
  1317. package/dist/node/summary/primitives/transfers/index.d.ts.map +0 -1
  1318. package/dist/node/summary/primitives/transfers/transfersMaxStep.d.ts +0 -10
  1319. package/dist/node/summary/primitives/transfers/transfersMaxStep.d.ts.map +0 -1
  1320. package/dist/node/summary/primitives/transfers/transfersStepSummaryFromRange.d.ts +0 -9
  1321. package/dist/node/summary/primitives/transfers/transfersStepSummaryFromRange.d.ts.map +0 -1
  1322. package/dist/node/summary/primitives/transfers/transfersSummary.d.ts +0 -7
  1323. package/dist/node/summary/primitives/transfers/transfersSummary.d.ts.map +0 -1
  1324. package/dist/node/test/BuildBlockOptions.d.ts +0 -33
  1325. package/dist/node/test/BuildBlockOptions.d.ts.map +0 -1
  1326. package/dist/node/test/buildBlock.d.ts +0 -5
  1327. package/dist/node/test/buildBlock.d.ts.map +0 -1
  1328. package/dist/node/test/buildGenesisBlock.d.ts +0 -9
  1329. package/dist/node/test/buildGenesisBlock.d.ts.map +0 -1
  1330. package/dist/node/test/buildNextBlock.d.ts +0 -6
  1331. package/dist/node/test/buildNextBlock.d.ts.map +0 -1
  1332. package/dist/node/test/buildRandomChain.d.ts +0 -20
  1333. package/dist/node/test/buildRandomChain.d.ts.map +0 -1
  1334. package/dist/node/test/buildRandomGenesisBlock.d.ts +0 -13
  1335. package/dist/node/test/buildRandomGenesisBlock.d.ts.map +0 -1
  1336. package/dist/node/test/buildRandomTransaction.d.ts +0 -5
  1337. package/dist/node/test/buildRandomTransaction.d.ts.map +0 -1
  1338. package/dist/node/test/createGenesisBlock.d.ts +0 -5
  1339. package/dist/node/test/createGenesisBlock.d.ts.map +0 -1
  1340. package/dist/node/test/createProducerChainStakeIntentTransaction.d.ts +0 -16
  1341. package/dist/node/test/createProducerChainStakeIntentTransaction.d.ts.map +0 -1
  1342. package/dist/node/test/getSimpleBlockViewerLocator.d.ts +0 -15
  1343. package/dist/node/test/getSimpleBlockViewerLocator.d.ts.map +0 -1
  1344. package/dist/node/test/getTestProviderContext.d.ts +0 -5
  1345. package/dist/node/test/getTestProviderContext.d.ts.map +0 -1
  1346. package/dist/node/time/index.d.ts +0 -2
  1347. package/dist/node/time/index.d.ts.map +0 -1
  1348. package/dist/node/time/primitives/index.d.ts +0 -2
  1349. package/dist/node/time/primitives/index.d.ts.map +0 -1
  1350. package/dist/node/time/primitives/xl1BlockNumberToEthBlockNumber.d.ts +0 -4
  1351. package/dist/node/time/primitives/xl1BlockNumberToEthBlockNumber.d.ts.map +0 -1
  1352. package/dist/node/transaction/TransactionBuilder.d.ts +0 -110
  1353. package/dist/node/transaction/TransactionBuilder.d.ts.map +0 -1
  1354. package/dist/node/transaction/buildTransaction.d.ts +0 -5
  1355. package/dist/node/transaction/buildTransaction.d.ts.map +0 -1
  1356. package/dist/node/transaction/buildUnsignedTransaction.d.ts +0 -5
  1357. package/dist/node/transaction/buildUnsignedTransaction.d.ts.map +0 -1
  1358. package/dist/node/transaction/confirmSubmittedTransaction.d.ts +0 -11
  1359. package/dist/node/transaction/confirmSubmittedTransaction.d.ts.map +0 -1
  1360. package/dist/node/transaction/hydrateTransaction.d.ts +0 -21
  1361. package/dist/node/transaction/hydrateTransaction.d.ts.map +0 -1
  1362. package/dist/node/transaction/index.d.ts +0 -8
  1363. package/dist/node/transaction/index.d.ts.map +0 -1
  1364. package/dist/node/transaction/primitives/index.d.ts +0 -5
  1365. package/dist/node/transaction/primitives/index.d.ts.map +0 -1
  1366. package/dist/node/transaction/primitives/transactionBlockByteCount.d.ts +0 -4
  1367. package/dist/node/transaction/primitives/transactionBlockByteCount.d.ts.map +0 -1
  1368. package/dist/node/transaction/primitives/transactionElevatedPayloads.d.ts +0 -8
  1369. package/dist/node/transaction/primitives/transactionElevatedPayloads.d.ts.map +0 -1
  1370. package/dist/node/transaction/primitives/transactionOperations.d.ts +0 -5
  1371. package/dist/node/transaction/primitives/transactionOperations.d.ts.map +0 -1
  1372. package/dist/node/transaction/primitives/transactionRequiredGas.d.ts +0 -7
  1373. package/dist/node/transaction/primitives/transactionRequiredGas.d.ts.map +0 -1
  1374. package/dist/node/transaction/script.d.ts +0 -2
  1375. package/dist/node/transaction/script.d.ts.map +0 -1
  1376. package/dist/node/transaction/signTransaction.d.ts +0 -19
  1377. package/dist/node/transaction/signTransaction.d.ts.map +0 -1
  1378. package/dist/node/utils/HydratedCache.d.ts +0 -15
  1379. package/dist/node/utils/HydratedCache.d.ts.map +0 -1
  1380. package/dist/node/utils/index.d.ts +0 -3
  1381. package/dist/node/utils/index.d.ts.map +0 -1
  1382. package/dist/node/utils/isZodError.d.ts +0 -6
  1383. package/dist/node/utils/isZodError.d.ts.map +0 -1
  1384. package/dist/node/validation/index.d.ts +0 -3
  1385. package/dist/node/validation/index.d.ts.map +0 -1
  1386. package/dist/node/validation/lib/getUrl.d.ts +0 -3
  1387. package/dist/node/validation/lib/getUrl.d.ts.map +0 -1
  1388. package/dist/node/validation/lib/index.d.ts +0 -3
  1389. package/dist/node/validation/lib/index.d.ts.map +0 -1
  1390. package/dist/node/validation/lib/isLocalhost.d.ts +0 -3
  1391. package/dist/node/validation/lib/isLocalhost.d.ts.map +0 -1
  1392. package/dist/node/validation/schema/Address.d.ts +0 -3
  1393. package/dist/node/validation/schema/Address.d.ts.map +0 -1
  1394. package/dist/node/validation/schema/Mnemonic.d.ts +0 -14
  1395. package/dist/node/validation/schema/Mnemonic.d.ts.map +0 -1
  1396. package/dist/node/validation/schema/index.d.ts +0 -3
  1397. package/dist/node/validation/schema/index.d.ts.map +0 -1
  1398. package/dist/node/wallet/generateXyoBaseWalletFromPhrase.d.ts +0 -7
  1399. package/dist/node/wallet/generateXyoBaseWalletFromPhrase.d.ts.map +0 -1
  1400. package/dist/node/wallet/index.d.ts +0 -3
  1401. package/dist/node/wallet/index.d.ts.map +0 -1
  1402. package/dist/node/wallet/paths.d.ts +0 -24
  1403. package/dist/node/wallet/paths.d.ts.map +0 -1
@@ -1,2212 +1,3 @@
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/test/buildRandomChain.ts
15
- import { asAddress as asAddress2, assertEx as assertEx6 } from "@ariestools/sdk";
16
- import {
17
- Account as Account3,
18
- asSchema as asSchema2,
19
- IdSchema as IdSchema2,
20
- MemoryArchivist,
21
- PayloadBuilder as PayloadBuilder8
22
- } from "@xyo-network/sdk";
23
- import {
24
- asXL1BlockNumber as asXL1BlockNumber6
25
- } from "@xyo-network/xl1-protocol-lib";
26
-
27
- // src/block/hydrate/allHashesPresent.ts
28
- function allHashesPresent(hashes, payloads) {
29
- const payloadHashes = new Set(payloads.map((p) => p._hash));
30
- return hashes.every((hash) => payloadHashes.has(hash));
31
- }
32
-
33
- // src/block/hydrate/flattenHydratedBlock.ts
34
- import { toHydratedBlock } from "@xyo-network/xl1-protocol-lib";
35
- var flattenHydratedBlock = (hydratedBlock) => {
36
- const [blk, blkPayloads] = hydratedBlock;
37
- return [...blkPayloads, blk];
38
- };
39
-
40
- // src/block/hydrate/flattenHydratedBlocks.ts
41
- var flattenHydratedBlocks = (hydratedBlocks) => hydratedBlocks.flatMap((blk) => flattenHydratedBlock(blk));
42
-
43
- // src/block/hydrate/hydrateBlock.ts
44
- import { assertEx } from "@ariestools/sdk";
45
- import { asAnyPayload } from "@xyo-network/sdk";
46
- import { asBlockBoundWitnessWithStorageMeta, isTransactionBoundWitnessWithStorageMeta } from "@xyo-network/xl1-protocol-lib";
47
- var hydrateBlock = async (context, hash, maxDepth = 1, minDepth = maxDepth) => {
48
- assertEx(maxDepth >= 0, () => "maxDepth must be greater than or equal to 0");
49
- assertEx(minDepth >= 0, () => "minDepth must be greater than or equal to 0");
50
- assertEx(maxDepth >= minDepth, () => "maxDepth must be greater than or equal to minDepth");
51
- const { chainMap } = context;
52
- const [block] = await chainMap.get([hash]);
53
- const bw = assertEx(asBlockBoundWitnessWithStorageMeta(
54
- assertEx(block, () => `block ${hash} not found`)
55
- ), () => `hash ${hash} is not a BlockBoundWitness`);
56
- if (maxDepth === 0) return [bw, []];
57
- const blockPayloadResults = await chainMap.get(bw.payload_hashes);
58
- const blkPayloads = blockPayloadResults.map((p) => asAnyPayload(p, true));
59
- if (minDepth === 1) assertEx(allHashesPresent(bw.payload_hashes, blkPayloads), () => `Unable to find all payloads for block ${hash}`);
60
- if (maxDepth === 1) return [bw, blkPayloads];
61
- const transactions = blkPayloads.filter(isTransactionBoundWitnessWithStorageMeta);
62
- const transactionsPayloadHashes = transactions.flatMap((tx) => tx.payload_hashes);
63
- const transactionPayloadResults = await chainMap.get(transactionsPayloadHashes);
64
- const transactionsPayloads = transactionPayloadResults.map((p) => asAnyPayload(p, true));
65
- assertEx(allHashesPresent(transactionsPayloadHashes, transactionsPayloads), () => `Unable to find all payloads for transactions in block ${hash}`);
66
- const allPayloadsHashes = new Set([...blkPayloads, ...transactionsPayloads].flatMap((p) => p._hash));
67
- const allPayloadResults = await chainMap.get([...allPayloadsHashes]);
68
- const allPayloads = allPayloadResults.map((p) => asAnyPayload(p, true));
69
- const allPayloadsFiltered = allPayloads.filter((p) => allPayloadsHashes.has(p._hash));
70
- if (maxDepth === 2) assertEx(allHashesPresent(
71
- [...allPayloadsHashes],
72
- allPayloadsFiltered
73
- ), () => `Unable to find all payloads for transactions in block ${hash}`);
74
- return [bw, allPayloadsFiltered];
75
- };
76
-
77
- // src/block/primitives/blockFromBlockNumber.ts
78
- import {
79
- asHash,
80
- isDefined as isDefined2,
81
- spanAsync
82
- } from "@ariestools/sdk";
83
- import { toSafeJsonString } from "@ariestools/sdk";
84
- import {
85
- asSignedBlockBoundWitnessWithStorageMeta,
86
- SignedBlockBoundWitnessWithHashMetaZod,
87
- StepSizes
88
- } from "@xyo-network/xl1-protocol-lib";
89
-
90
- // src/ChainContextHelpers.ts
91
- import {
92
- isDefined,
93
- isObject,
94
- isUndefined,
95
- timeBudget
96
- } from "@ariestools/sdk";
97
- import { LruCacheMap, MemoryMap } from "@xyo-network/xl1-driver-memory";
98
- function contextCache(context, name, create) {
99
- if (!isObject(context.caches)) {
100
- throw new Error("Context does not have an appropriate caches property");
101
- }
102
- if (isUndefined(context.caches[name])) {
103
- context.caches[name] = create?.() ?? new MemoryMap();
104
- }
105
- return context.caches[name];
106
- }
107
- async function withContextCacheResponse(context, name, key, func, { max = 1e4 } = {}) {
108
- const cache = contextCache(
109
- context,
110
- name,
111
- () => new LruCacheMap({ max })
112
- );
113
- const { timeBudgetLimit = 0 } = context;
114
- const cacheResult = await cache.get(key);
115
- if (isDefined(cacheResult)) {
116
- return cacheResult;
117
- }
118
- const result = timeBudgetLimit > 0 ? timeBudget(name, context.logger, func, timeBudgetLimit) : func();
119
- await cache.set(key, result);
120
- return result;
121
- }
122
-
123
- // src/block/primitives/blockFromBlockNumber.ts
124
- async function blockFromBlockNumber(context, blockNumber) {
125
- return await spanAsync("blockFromBlockNumber", async () => {
126
- const cacheKey = String(blockNumber);
127
- const { chainMap, head } = context;
128
- return await withContextCacheResponse(context, "blockFromBlockNumber", cacheKey, async () => {
129
- const [result] = await chainMap.get([head._hash]);
130
- if (!isDefined2(result)) {
131
- throw new Error(`Head block not found for hash: ${head._hash}`);
132
- }
133
- let currentBlock = asSignedBlockBoundWitnessWithStorageMeta(
134
- result,
135
- () => `Found Payload is not a Signed<BlockBoundWitness>: ${JSON.stringify(result, null, 2)}`
136
- );
137
- if (currentBlock.block < blockNumber) {
138
- throw new Error(`Block number ${blockNumber} is greater than head ${currentBlock.block}.`);
139
- }
140
- while (currentBlock.block > blockNumber) {
141
- let jumpHash = currentBlock.previous;
142
- let jumpBlockNumber = currentBlock.block - 1;
143
- for (const [step, stepSize3] of StepSizes.entries()) {
144
- const possibleJumpBlockNumber = currentBlock.block - currentBlock.block % stepSize3 - 1;
145
- if (possibleJumpBlockNumber >= blockNumber && possibleJumpBlockNumber <= jumpBlockNumber) {
146
- jumpBlockNumber = possibleJumpBlockNumber;
147
- jumpHash = asHash(currentBlock.step_hashes?.at(step), () => `Step hash not found for step ${step} in block ${currentBlock.block}`);
148
- }
149
- }
150
- const [newBlock] = await chainMap.get([
151
- asHash(jumpHash, () => `Jump hash not found for block number [${blockNumber}]: ${jumpBlockNumber} ${toSafeJsonString(currentBlock, 10)}`)
152
- ]);
153
- if (!isDefined2(newBlock)) {
154
- throw new Error(`Block not found for jump hash: ${jumpHash}`);
155
- }
156
- currentBlock = asSignedBlockBoundWitnessWithStorageMeta(
157
- newBlock,
158
- () => {
159
- const result2 = SignedBlockBoundWitnessWithHashMetaZod.safeParse(newBlock);
160
- return `Found Payload [jump hash] is not a Signed<BlockBoundWitness>: ${result2.error}`;
161
- }
162
- );
163
- if (currentBlock.block === blockNumber) {
164
- break;
165
- }
166
- if (currentBlock.block < blockNumber) {
167
- throw new Error(`Block number ${blockNumber} is not a valid step block number for block ${head._hash}.`);
168
- }
169
- }
170
- return currentBlock;
171
- });
172
- }, { ...context, timeBudgetLimit: 500 });
173
- }
174
-
175
- // src/block/primitives/frames/calculateFramesFromRange.ts
176
- import { asXL1BlockNumber, stepSize } from "@xyo-network/xl1-protocol-lib";
177
- function calculateFramesFromRange(range, step) {
178
- const size = stepSize(step);
179
- let start = Math.trunc(range[0] / size) * size;
180
- const fitted = [];
181
- const remaining = [];
182
- if (start !== range[0]) {
183
- start += size;
184
- remaining.push([range[0], asXL1BlockNumber(Math.min(start - 1, range[1]), true)]);
185
- }
186
- for (let i = start; i <= range[1]; i += size) {
187
- if (i + size - 1 <= range[1]) {
188
- fitted.push([
189
- asXL1BlockNumber(i, { name: "calculateFramesFromRange A" }),
190
- asXL1BlockNumber(Math.min(i + size - 1, range[1]), { name: "calculateFramesFromRange B" })
191
- ]);
192
- } else {
193
- remaining.push([asXL1BlockNumber(i, { name: "calculateFramesFromRange C" }), range[1]]);
194
- }
195
- }
196
- return [fitted, remaining];
197
- }
198
-
199
- // src/block/primitives/frames/deepCalculateFramesFromRange.ts
200
- import { StepSizes as StepSizes2 } from "@xyo-network/xl1-protocol-lib";
201
- function deepCalculateFramesFromRange(range, startingStep = StepSizes2.length - 1) {
202
- const fitted = [];
203
- let remaining = [range];
204
- const actualStartingStep = Math.min(startingStep, StepSizes2.length - 1);
205
- for (let step = actualStartingStep; step >= 0; step--) {
206
- const newRemaining = [];
207
- for (const range2 of remaining) {
208
- const [newFittedFrames, newRemainingFrames] = calculateFramesFromRange(range2, step);
209
- fitted.push(...newFittedFrames);
210
- newRemaining.push(...newRemainingFrames);
211
- }
212
- remaining = newRemaining;
213
- }
214
- for (const range2 of remaining) {
215
- for (let i = range2[0]; i <= range2[1]; i++) {
216
- fitted.push([i, i]);
217
- }
218
- }
219
- return fitted.toSorted((a, b) => a[0] - b[0]);
220
- }
221
-
222
- // src/block/primitives/validateTransactionOpcodes.ts
223
- import {
224
- assertEx as assertEx2,
225
- isHash,
226
- toSafeJsonString as toSafeJsonString2
227
- } from "@ariestools/sdk";
228
- import {
229
- PayloadBuilder
230
- } from "@xyo-network/sdk";
231
- import { isExecutable } from "@xyo-network/xl1-protocol-lib";
232
- async function processElevateOperation(opCode, args, txBw, txPayloads) {
233
- const [hash, ...rest] = args;
234
- const txPayloadsWithStorageMeta = await PayloadBuilder.addStorageMeta(txPayloads);
235
- assertEx2(rest.length === 0, () => `Invalid elevate operation ${opCode} ${args.join(", ")} - Too many Arguments`);
236
- if (isHash(hash)) {
237
- assertEx2(
238
- txBw.payload_hashes.includes(hash),
239
- () => `Invalid elevate operation ${opCode} ${args.join(", ")} - Hash not in payload hashes => ${toSafeJsonString2(txBw, 20)}`
240
- );
241
- return assertEx2(
242
- txPayloadsWithStorageMeta.find((p) => p._hash === hash),
243
- () => `Invalid elevate operation ${opCode} ${args.join(", ")} - Payload not found`
244
- );
245
- }
246
- throw new Error(`Invalid elevate operation ${opCode} ${args.join(", ")} - Invalid hash`);
247
- }
248
- async function processOperation(opCode, args, txBw, txPayloads) {
249
- switch (opCode) {
250
- case "elevate": {
251
- return await processElevateOperation(opCode, args, txBw, txPayloads);
252
- }
253
- default: {
254
- throw new Error(`Invalid opCode ${opCode}`);
255
- }
256
- }
257
- }
258
- async function validateTransactionsOpcodes(txs) {
259
- const txElevatedPayloads = [];
260
- for (const [txBw, txPayloads] of txs) {
261
- if (isExecutable(txBw)) {
262
- const operations = txBw.script.map((op) => op.split("|"));
263
- for (const [opCode, ...args] of operations) {
264
- const txPayload = await processOperation(opCode, args, txBw, txPayloads);
265
- if (txPayload !== void 0) {
266
- txElevatedPayloads.push(txPayload);
267
- }
268
- }
269
- }
270
- }
271
- return txElevatedPayloads;
272
- }
273
-
274
- // src/test/buildNextBlock.ts
275
- import {
276
- AttoXL1 as AttoXL12,
277
- XYO_STEP_REWARD_ADDRESS as XYO_STEP_REWARD_ADDRESS2
278
- } from "@xyo-network/xl1-protocol-lib";
279
-
280
- // src/test/buildBlock.ts
281
- import { assertEx as assertEx3, isDefined as isDefined3 } from "@ariestools/sdk";
282
- import {
283
- asAnyPayload as asAnyPayload2,
284
- BoundWitnessBuilder,
285
- PayloadBuilder as PayloadBuilder3
286
- } from "@xyo-network/sdk";
287
- import {
288
- asXL1BlockNumber as asXL1BlockNumber2,
289
- AttoXL1,
290
- isBlockBoundWitness,
291
- rewardAddressFromStepIdentity,
292
- StepRewardFractions,
293
- StepSizes as StepSizes3,
294
- XL1_PROTOCOL_VERSION,
295
- XYO_STEP_REWARD_ADDRESS,
296
- XYO_ZERO_ADDRESS
297
- } from "@xyo-network/xl1-protocol-lib";
298
-
299
- // src/createTransferPayload.ts
300
- import { toHex } from "@ariestools/sdk";
301
- import { PayloadBuilder as PayloadBuilder2 } from "@xyo-network/sdk";
302
- import { TransferSchema } from "@xyo-network/xl1-protocol-lib";
303
- function createTransferPayload(from, transfers, context) {
304
- const payloadBuilder = new PayloadBuilder2({ schema: TransferSchema });
305
- const builder = payloadBuilder.fields({
306
- epoch: Date.now(),
307
- from,
308
- transfers: Object.fromEntries(Object.entries(transfers).map(([k, v]) => [k, toHex(v)])),
309
- context
310
- });
311
- return builder.build();
312
- }
313
-
314
- // src/test/BuildBlockOptions.ts
315
- import {
316
- isAddress,
317
- isArray,
318
- isHash as isHash2,
319
- isNumber,
320
- isObject as isObject2
321
- } from "@ariestools/sdk";
322
- var isBaseBuildBlockOptions = (value) => {
323
- if (!isObject2(value)) {
324
- return false;
325
- }
326
- const typedValue = value;
327
- if (!isArray(typedValue.blockPayloads) || !isAddress(typedValue.chainId) || !isArray(typedValue.signers) || !isArray(typedValue.txs)) {
328
- return false;
329
- }
330
- return true;
331
- };
332
- var isBuildGenesisBlockOptions = (value) => {
333
- if (!isBaseBuildBlockOptions(value)) {
334
- return false;
335
- }
336
- const typedValue = value;
337
- if (typedValue.previousBlockHash !== null) {
338
- return false;
339
- }
340
- if (typedValue.previousBlockNumber !== void 0) {
341
- return false;
342
- }
343
- return true;
344
- };
345
- var isBuildNextBlockOptions = (value) => {
346
- if (!isBaseBuildBlockOptions(value)) {
347
- return false;
348
- }
349
- const typedValue = value;
350
- if (!isHash2(typedValue.previousBlockHash)) {
351
- return false;
352
- }
353
- if (!isNumber(typedValue.previousBlockNumber)) {
354
- return false;
355
- }
356
- if (!isArray(typedValue.previousStepHashes)) {
357
- return false;
358
- }
359
- return true;
360
- };
361
-
362
- // src/test/buildBlock.ts
363
- function calculateCompletedStepReward(step, balance) {
364
- return AttoXL1(StepRewardFractions[step][0] * balance / StepRewardFractions[step][1]);
365
- }
366
- function buildStepHashes(blockNumber, inStepHashes, previousBlockHash, chainStepRewardAddress, stepRewardPoolBalance) {
367
- const completedStepRewardTransfers = [];
368
- const step_hashes = [];
369
- for (const [i, step] of StepSizes3.entries()) {
370
- if (blockNumber < step) {
371
- break;
372
- }
373
- if (blockNumber % step === 0) {
374
- if (StepRewardFractions[i][0] > 0 && chainStepRewardAddress !== XYO_ZERO_ADDRESS) {
375
- const completedStepRewardHolderAddress = rewardAddressFromStepIdentity({ block: blockNumber, step });
376
- const completedStepReward = calculateCompletedStepReward(i, stepRewardPoolBalance);
377
- completedStepRewardTransfers.push(createTransferPayload(chainStepRewardAddress, { [completedStepRewardHolderAddress]: completedStepReward }));
378
- }
379
- step_hashes.push(assertEx3(previousBlockHash, () => `Previous block hash is required for step ${step} at block ${blockNumber}`));
380
- } else if (isDefined3(inStepHashes.at(i))) {
381
- step_hashes.push(inStepHashes[i]);
382
- }
383
- }
384
- return { completedStepRewardTransfers, step_hashes };
385
- }
386
- async function buildBlock(options) {
387
- const previousBlockNumber = isBuildGenesisBlockOptions(options) ? -1 : options.previousBlockNumber;
388
- const blockNumber = asXL1BlockNumber2(previousBlockNumber + 1, true);
389
- const inStepHashes = isBuildNextBlockOptions(options) ? options.previousStepHashes : [];
390
- const previousBlockHash = isBuildNextBlockOptions(options) ? options.previousBlockHash : void 0;
391
- const stepRewardPoolBalance = isBuildNextBlockOptions(options) ? options.stepRewardPoolBalance : AttoXL1(0n);
392
- const {
393
- chainId,
394
- txs,
395
- chainStepRewardAddress = XYO_STEP_REWARD_ADDRESS,
396
- blockPayloads,
397
- protocol = XL1_PROTOCOL_VERSION,
398
- signers
399
- } = options;
400
- for (const [tx] of txs) {
401
- if (tx.nbf > blockNumber) {
402
- throw new Error(`Transaction ${await PayloadBuilder3.hash(tx)} not valid for block ${blockNumber} - NBF is ${tx.nbf}`);
403
- }
404
- if (tx.exp < blockNumber) {
405
- throw new Error(`Transaction ${await PayloadBuilder3.hash(tx)} not valid for block ${blockNumber} - EXP is ${tx.exp}`);
406
- }
407
- }
408
- const { step_hashes, completedStepRewardTransfers } = buildStepHashes(
409
- blockNumber,
410
- inStepHashes,
411
- previousBlockHash,
412
- chainStepRewardAddress,
413
- stepRewardPoolBalance
414
- );
415
- const previous = previousBlockHash ?? null;
416
- const block = blockNumber;
417
- const txElevatedPayloads = await validateTransactionsOpcodes(txs);
418
- const payloads = [
419
- ...txs.map(([tx]) => tx),
420
- ...blockPayloads,
421
- ...txElevatedPayloads,
422
- ...completedStepRewardTransfers
423
- ];
424
- const boundWitnessBuilder = new BoundWitnessBuilder();
425
- const builder = boundWitnessBuilder.fields({
426
- block,
427
- chain: chainId,
428
- previous,
429
- step_hashes,
430
- protocol
431
- }).meta({ $epoch: Date.now(), $signatures: [] }).signers(signers).payloads(await PayloadBuilder3.addStorageMeta(payloads));
432
- const [bw, txPayloads] = await builder.build();
433
- assertEx3(isBlockBoundWitness(bw), () => "Build of BlockBoundWitness failed");
434
- return [await PayloadBuilder3.addStorageMeta(bw), txPayloads.map((p) => asAnyPayload2(p, true))];
435
- }
436
-
437
- // src/test/buildNextBlock.ts
438
- async function buildNextBlock(previousBlock, txs, blockPayloads, signers, chainStepRewardAddress = XYO_STEP_REWARD_ADDRESS2, stepRewardPoolBalance = AttoXL12(0n), protocol, chainId) {
439
- return await buildBlock({
440
- chainId: chainId ?? previousBlock.chain,
441
- previousBlockNumber: previousBlock.block,
442
- previousStepHashes: previousBlock.step_hashes ?? [],
443
- previousBlockHash: previousBlock._hash,
444
- txs,
445
- blockPayloads,
446
- signers,
447
- protocol,
448
- chainStepRewardAddress,
449
- stepRewardPoolBalance
450
- });
451
- }
452
-
453
- // src/test/buildRandomGenesisBlock.ts
454
- import { asAddress, assertEx as assertEx5 } from "@ariestools/sdk";
455
- import {
456
- Account as Account2,
457
- asAnyPayload as asAnyPayload4,
458
- asSchema,
459
- IdSchema,
460
- PayloadBuilder as PayloadBuilder5
461
- } from "@xyo-network/sdk";
462
- import {
463
- asXL1BlockNumber as asXL1BlockNumber4
464
- } from "@xyo-network/xl1-protocol-lib";
465
-
466
- // src/test/buildGenesisBlock.ts
467
- import { XYO_ZERO_ADDRESS as XYO_ZERO_ADDRESS2 } from "@xyo-network/xl1-protocol-lib";
468
- async function buildGenesisBlock(chainId, txs, blockPayloads, signers, chainStepRewardAddress = XYO_ZERO_ADDRESS2, protocol) {
469
- return await buildBlock({
470
- previousBlockHash: null,
471
- chainId,
472
- txs,
473
- blockPayloads,
474
- signers,
475
- chainStepRewardAddress,
476
- protocol
477
- });
478
- }
479
-
480
- // src/test/buildRandomTransaction.ts
481
- import { Account } from "@xyo-network/sdk";
482
- import { asXL1BlockNumber as asXL1BlockNumber3, isAllowedBlockPayload } from "@xyo-network/xl1-protocol-lib";
483
-
484
- // src/transaction/buildTransaction.ts
485
- import { assertEx as assertEx4, toHex as toHex2 } from "@ariestools/sdk";
486
- import {
487
- asAnyPayload as asAnyPayload3,
488
- BoundWitnessBuilder as BoundWitnessBuilder2,
489
- PayloadBuilder as PayloadBuilder4
490
- } from "@xyo-network/sdk";
491
- import { defaultTransactionFees } from "@xyo-network/xl1-protocol-lib";
492
- async function buildTransaction(chain, onChainPayloads, offChainPayloads, signer, nbf, exp, from, fees = defaultTransactionFees) {
493
- if (from === void 0 && Array.isArray(signer)) {
494
- throw new Error("from is required when signer is an array");
495
- }
496
- const txBoundWitnessFields = {
497
- chain,
498
- fees: {
499
- base: toHex2(fees.base),
500
- gasLimit: toHex2(fees.gasLimit),
501
- gasPrice: toHex2(fees.gasPrice),
502
- priority: toHex2(fees.priority)
503
- },
504
- nbf,
505
- exp
506
- };
507
- const elevatedHashes = await PayloadBuilder4.hashes(onChainPayloads);
508
- const script = Array.from(elevatedHashes, (elevatedHash) => `elevate|${elevatedHash}`);
509
- const fields = {
510
- ...txBoundWitnessFields,
511
- from: from ?? (Array.isArray(signer) ? assertEx4(signer.at(0)?.address) : signer.address)
512
- };
513
- if (script.length > 0) {
514
- fields.script = script;
515
- }
516
- const boundWitnessBuilder = new BoundWitnessBuilder2();
517
- const builder = boundWitnessBuilder.fields(fields).meta({ $signatures: [] }).payloads([...onChainPayloads, ...offChainPayloads]).signers(Array.isArray(signer) ? signer : [signer]);
518
- const [tx, txPayloads] = await builder.build();
519
- return [await PayloadBuilder4.addHashMeta(tx), await PayloadBuilder4.addHashMeta(txPayloads.map((p) => asAnyPayload3(p, true)))];
520
- }
521
-
522
- // src/test/buildRandomTransaction.ts
523
- var buildRandomTransaction = async (chain, payloads, account, nbf = asXL1BlockNumber3(0, true), exp = asXL1BlockNumber3(nbf + 1e3, true), privatePayloadSchemas = [], receiverAddress) => {
524
- const elevatedPayloads = (payloads ?? []).filter(isAllowedBlockPayload);
525
- const additionalPayloads = (payloads ?? []).filter((payload) => !isAllowedBlockPayload(payload));
526
- const sender = account ?? await Account.random();
527
- if (elevatedPayloads.length === 0) {
528
- const defaultReceiver = await Account.random();
529
- const receiver = receiverAddress ?? defaultReceiver.address;
530
- const transferPayload = createTransferPayload(sender.address, { [receiver]: 1n });
531
- elevatedPayloads.push(transferPayload);
532
- }
533
- const hydratedTransaction = await buildTransaction(chain, elevatedPayloads, additionalPayloads, sender, nbf, exp);
534
- return [hydratedTransaction[0], hydratedTransaction[1].filter((payload) => !privatePayloadSchemas.includes(payload.schema))];
535
- };
536
-
537
- // src/test/buildRandomGenesisBlock.ts
538
- var TestChainId = assertEx5(asAddress("c5fe2e6F6841Cbab12d8C0618Be2DF8C6156cC44"));
539
-
540
- // src/test/createGenesisBlock.ts
541
- import { PayloadBuilder as PayloadBuilder7 } from "@xyo-network/sdk";
542
- import {
543
- BlockBoundWitnessSchemaPayload,
544
- BlockBoundWitnessWithStorageMetaSchemaPayload,
545
- ChainStakeIntentPayloadJsonSchemaPayload,
546
- HashPayloadJsonSchemaPayload,
547
- TransactionBoundWitnessSchemaPayload,
548
- TransactionBoundWitnessWithStorageMetaSchemaPayload,
549
- TransferPayloadJsonSchemaPayload
550
- } from "@xyo-network/xl1-schema";
551
-
552
- // src/test/createProducerChainStakeIntentTransaction.ts
553
- import { PayloadBuilder as PayloadBuilder6 } from "@xyo-network/sdk";
554
- import {
555
- asXL1BlockNumber as asXL1BlockNumber5,
556
- ChainStakeIntentSchema,
557
- defaultTransactionFees as defaultTransactionFees2
558
- } from "@xyo-network/xl1-protocol-lib";
559
- async function createProducerChainStakeIntent(from, exp, nbf = 0) {
560
- const payloadBuilder = new PayloadBuilder6({ schema: ChainStakeIntentSchema });
561
- const builder = payloadBuilder.fields({
562
- from,
563
- exp,
564
- nbf,
565
- intent: "producer"
566
- });
567
- return await PayloadBuilder6.addHashMeta(builder.build());
568
- }
569
-
570
- // src/test/createGenesisBlock.ts
571
- var createGenesisBlock = async (initialBlockProducer, nextContractAddress, genesisBlockRewardAmount, genesisBlockRewardAddress) => {
572
- const blockPayloads = await PayloadBuilder7.addHashMeta([
573
- TransferPayloadJsonSchemaPayload,
574
- BlockBoundWitnessSchemaPayload,
575
- BlockBoundWitnessWithStorageMetaSchemaPayload,
576
- TransactionBoundWitnessSchemaPayload,
577
- TransactionBoundWitnessWithStorageMetaSchemaPayload,
578
- ChainStakeIntentPayloadJsonSchemaPayload,
579
- HashPayloadJsonSchemaPayload
580
- ]);
581
- const intentPayload = await createProducerChainStakeIntent(initialBlockProducer.address, 1, 0);
582
- blockPayloads.push(intentPayload);
583
- if (genesisBlockRewardAmount > 0n) {
584
- blockPayloads.push(await PayloadBuilder7.addHashMeta(createTransferPayload(
585
- nextContractAddress,
586
- { [genesisBlockRewardAddress]: genesisBlockRewardAmount }
587
- )));
588
- }
589
- return await buildGenesisBlock(nextContractAddress, [], blockPayloads, [initialBlockProducer]);
590
- };
591
-
592
- // src/test/buildRandomChain.ts
593
- var TestGenesisBlockRewardAddress = assertEx6(asAddress2("fa7f0bb865a4bfff3d5e2c726d3e063297014da9"));
594
- var buildRandomChain = async (blockProducer, count = 10, previousBlock, chainId, transactionAccount, receiverAddresses) => {
595
- const chainIdToUse = chainId ?? TestChainId;
596
- const blocks = [];
597
- let remaining = count;
598
- let lastBlock = previousBlock;
599
- const transactionAccountToUse = transactionAccount ?? await Account3.random();
600
- if (!lastBlock) {
601
- const block = await createGenesisBlock(
602
- blockProducer,
603
- chainIdToUse,
604
- 1000000000n * 10n ** 18n,
605
- transactionAccountToUse.address
606
- );
607
- blocks.push(block);
608
- remaining = remaining - 1;
609
- lastBlock = block;
610
- }
611
- const defaultReceiver = await Account3.random();
612
- const resolvedReceiverAddresses = receiverAddresses ?? [defaultReceiver.address];
613
- let saltCounter = 0;
614
- while (remaining > 0) {
615
- saltCounter += 1;
616
- const idPayloadBuilder = new PayloadBuilder8({ schema: IdSchema2 });
617
- const idBuilder = idPayloadBuilder.fields({ salt: `${Date.now()}-${saltCounter}` });
618
- const payloads = [idBuilder.build()];
619
- saltCounter += 1;
620
- const additionalPrivatePayloads = remaining % 2 === 0 ? (() => {
621
- const privatePayloadBuilder = new PayloadBuilder8({ schema: asSchema2("network.xyo.private", true) });
622
- const privateBuilder = privatePayloadBuilder.fields({ salt: `${Date.now()}-${saltCounter}` });
623
- return [privateBuilder.build()];
624
- })() : [];
625
- const txs = [];
626
- for (const receiverAddress of resolvedReceiverAddresses) {
627
- txs.push(await buildRandomTransaction(
628
- chainIdToUse,
629
- [...payloads, ...additionalPrivatePayloads],
630
- transactionAccountToUse,
631
- asXL1BlockNumber6(Math.max(count - remaining - 1e3, 0), true),
632
- asXL1BlockNumber6(count - remaining + 1e3, true),
633
- [asSchema2("network.xyo.private", true)],
634
- receiverAddress
635
- ));
636
- }
637
- const previousBlock2 = assertEx6(lastBlock?.[0], () => new Error("No last block"));
638
- const block = await buildNextBlock(previousBlock2, txs, [], [blockProducer], transactionAccountToUse.address);
639
- blocks.push(block);
640
- remaining = remaining - 1;
641
- lastBlock = block;
642
- }
643
- return blocks;
644
- };
645
- async function buildRandomChainArchivist(count = 20) {
646
- const producerAccount = await Account3.random();
647
- const blocks = await buildRandomChain(producerAccount, count);
648
- const archivist = await MemoryArchivist.create();
649
- const payloads = flattenHydratedBlocks(blocks);
650
- await archivist.insert(payloads);
651
- return archivist;
652
- }
653
-
654
- // src/test/getSimpleBlockViewerLocator.ts
655
- import { XYO_ZERO_ADDRESS as XYO_ZERO_ADDRESS3 } from "@xyo-network/xl1-protocol-lib";
656
-
657
- // src/CreatableProvider/AbstractCreatableProvider.ts
658
- import {
659
- AbstractCreatable,
660
- assertEx as assertEx8,
661
- IdLogger
662
- } from "@ariestools/sdk";
663
-
664
- // src/CreatableProvider/ProviderFactory.ts
665
- import { assertEx as assertEx7 } from "@ariestools/sdk";
666
- function providerFactoryDescription(factory, labels) {
667
- return `${factory.providerName}:${factory.defaultMoniker}:${JSON.stringify(labels ?? factory.labels ?? {})}`;
668
- }
669
- var ProviderFactory = class _ProviderFactory {
670
- creatableProvider;
671
- defaultMoniker;
672
- defaultParams;
673
- dependencies;
674
- labels;
675
- monikers;
676
- providerName;
677
- scope;
678
- _uniqueId;
679
- constructor(creatableProvider2, dependencies, params, labels = {}, scope = "context") {
680
- this.creatableProvider = creatableProvider2;
681
- this.defaultParams = params;
682
- this.defaultMoniker = creatableProvider2.defaultMoniker;
683
- this.dependencies = dependencies;
684
- this.monikers = creatableProvider2.monikers;
685
- this.scope = scope;
686
- assertEx7(this.monikers.includes(this.defaultMoniker), () => "defaultMoniker must be in monikers");
687
- this.labels = Object.assign({}, creatableProvider2.labels ?? {}, labels ?? {});
688
- this.providerName = creatableProvider2.name;
689
- this._uniqueId = Symbol(providerFactoryDescription(this));
690
- }
691
- get resolvedMoniker() {
692
- const labels = this.labels ?? {};
693
- const labelString = Object.entries(labels).map(([key, value]) => `${key}=${value}`).join(",");
694
- return labelString.length === 0 ? this.defaultMoniker : `${this.defaultMoniker}|${labelString}`;
695
- }
696
- get uniqueId() {
697
- return this._uniqueId;
698
- }
699
- static withParams(creatableProvider2, dependencies, params, labels = {}) {
700
- return new _ProviderFactory(creatableProvider2, dependencies, params, labels);
701
- }
702
- factory(dependencies, params, labels = {}) {
703
- return new _ProviderFactory(this.creatableProvider, dependencies, params, labels);
704
- }
705
- async getInstance(params, { start = true }) {
706
- let scopeObject;
707
- switch (this.scope) {
708
- case "global": {
709
- scopeObject = getOrCreateGlobalSingletons();
710
- break;
711
- }
712
- case "context": {
713
- const context = assertEx7(
714
- params?.context,
715
- () => "Context is required for context-scoped providers"
716
- );
717
- context.singletons ??= {};
718
- scopeObject = context.singletons;
719
- break;
720
- }
721
- default: {
722
- scopeObject = {};
723
- break;
724
- }
725
- }
726
- const mergedParams = {
727
- ...this.defaultParams,
728
- ...params
729
- };
730
- const resultPromise = scopeObject[this.resolvedMoniker] ?? this.creatableProvider.create(mergedParams);
731
- scopeObject[this.resolvedMoniker] = resultPromise;
732
- const result = await resultPromise;
733
- if (start) {
734
- assertEx7(await result.start(), () => `Failed to start provider instance [${this.resolvedMoniker}]`);
735
- }
736
- return result;
737
- }
738
- async tryGetInstance(params, options) {
739
- try {
740
- return await this.getInstance(params, options);
741
- } catch {
742
- return;
743
- }
744
- }
745
- };
746
- function getOrCreateGlobalSingletons() {
747
- const existing = globalThis.xyoServiceSingletons;
748
- if (existing !== void 0) {
749
- return existing;
750
- }
751
- const singletons = {};
752
- Reflect.set(globalThis, "xyoServiceSingletons", singletons);
753
- return singletons;
754
- }
755
-
756
- // src/CreatableProvider/AbstractCreatableProvider.ts
757
- var AbstractCreatableProvider = class extends AbstractCreatable {
758
- dependencies = {};
759
- _contextCache;
760
- _logger;
761
- get logger() {
762
- if (this._logger === void 0) {
763
- const providedLogger = this.params.logger ?? this.context.logger;
764
- this._logger = providedLogger ? new IdLogger(providedLogger, () => `${this.moniker} [${this.constructor.name}]`) : null;
765
- }
766
- return this._logger ?? void 0;
767
- }
768
- get meter() {
769
- return this.context.meterProvider?.getMeter(this.name) ?? super.meter;
770
- }
771
- get tracer() {
772
- return this.context.traceProvider?.getTracer(this.name) ?? super.tracer;
773
- }
774
- get config() {
775
- return this.context.config;
776
- }
777
- get context() {
778
- return this.params.context;
779
- }
780
- get locator() {
781
- return this.context.locator;
782
- }
783
- static factory(dependencies, params) {
784
- const factory = ProviderFactory.withParams(this, dependencies, params);
785
- return factory;
786
- }
787
- static async paramsHandler(params = {}) {
788
- const context = assertEx8(params.context, () => new Error("Context is required"));
789
- const config = assertEx8(context.config, () => new Error("Context config is required"));
790
- const locator = assertEx8(context.locator, () => new Error("Context locator is required"));
791
- return await super.paramsHandler({
792
- ...params,
793
- statusReporter: params.statusReporter ?? context.statusReporter,
794
- context: {
795
- ...context,
796
- config,
797
- locator
798
- },
799
- name: params.name ?? this.defaultMoniker,
800
- logger: params.logger ?? context.logger
801
- });
802
- }
803
- async createHandler() {
804
- await super.createHandler();
805
- if (this.tracer === void 0) {
806
- this.logger?.warn("No tracer available in context");
807
- }
808
- if (this.meter === void 0) {
809
- this.logger?.warn("No meter available in context");
810
- }
811
- }
812
- async locateAndCreate(moniker) {
813
- return await this.locator.getInstance(moniker);
814
- }
815
- async tryLocateAndCreate(moniker) {
816
- return await this.locator.tryGetInstance(moniker);
817
- }
818
- };
819
-
820
- // src/CreatableProvider/CreatableProvider.ts
821
- function creatableProvider() {
822
- return (constructor) => {
823
- constructor;
824
- };
825
- }
826
-
827
- // src/CreatableProvider/CreatableProviderRegistry.ts
828
- import { isTruthy } from "@ariestools/sdk";
829
- var buildProviderFactory = (provider, defaultParams, labels) => {
830
- const factory = {
831
- monikers: provider.monikers,
832
- uniqueId: Symbol(providerFactoryDescription(provider, labels)),
833
- // Merge module & supplied labels
834
- labels: { ...provider.labels, ...labels },
835
- creatableProvider: provider.creatableProvider,
836
- dependencies: provider.dependencies,
837
- resolvedMoniker: provider.resolvedMoniker,
838
- providerName: provider.providerName,
839
- scope: provider.scope,
840
- defaultParams,
841
- getInstance: provider.getInstance.bind(provider),
842
- tryGetInstance: provider.tryGetInstance?.bind(provider),
843
- defaultMoniker: provider.defaultMoniker,
844
- factory: provider.factory.bind(provider)
845
- };
846
- return factory;
847
- };
848
- var registerCreatableProviderFactory = (registry2, factory, labels, primary = false) => {
849
- const primaryMonikers = primary !== true && isTruthy(primary) ? Array.isArray(primary) ? primary : [primary] : [];
850
- for (const primaryMoniker of primaryMonikers) {
851
- if (!factory.monikers.includes(primaryMoniker)) {
852
- throw new Error(`Primary moniker ${String(primaryMoniker)} not found in factory monikers`);
853
- }
854
- }
855
- const isPrimaryForMoniker = (moniker) => {
856
- switch (typeof primary) {
857
- case "boolean": {
858
- return primary;
859
- }
860
- case "string": {
861
- return moniker === primary;
862
- }
863
- case "object": {
864
- if (Array.isArray(primary)) {
865
- return primary.includes(moniker);
866
- }
867
- }
868
- }
869
- throw new Error(`Invalid primary value: ${String(primary)}`);
870
- };
871
- const factoryClone = buildProviderFactory(factory, factory.defaultParams, labels);
872
- registry2[factoryClone.defaultMoniker] = [factoryClone, ...registry2[factoryClone.defaultMoniker] ?? []];
873
- for (const moniker of factoryClone.monikers) {
874
- if (moniker === factoryClone.defaultMoniker) continue;
875
- registry2[moniker] = isPrimaryForMoniker(moniker) ? [factoryClone, ...registry2[moniker] ?? []] : [...registry2[moniker] ?? [], factoryClone];
876
- }
877
- };
878
-
879
- // src/CreatableProvider/LabeledCreatableProviderFactory.ts
880
- var hasLabels = (factory) => {
881
- return factory.labels !== void 0;
882
- };
883
-
884
- // src/CreatableProvider/ProviderFactoryLocator.ts
885
- import { hasAllLabels } from "@ariestools/sdk";
886
- import { assertEx as assertEx9 } from "@ariestools/sdk";
887
- var ProviderFactoryLocator = class {
888
- _context;
889
- _registry;
890
- _frozen = false;
891
- _parent;
892
- _validateDepsOnRegister;
893
- constructor(context, registry2 = {}, validateDepsOnRegister = false) {
894
- this._registry = registry2;
895
- this._context = { ...context, locator: this };
896
- this._parent = context.locator;
897
- this._validateDepsOnRegister = validateDepsOnRegister;
898
- }
899
- get context() {
900
- return this._context;
901
- }
902
- get logger() {
903
- return this.context.logger;
904
- }
905
- /**
906
- * The current registry for the module factory
907
- */
908
- get registry() {
909
- return this._registry;
910
- }
911
- get validateDepsOnRegister() {
912
- return this._validateDepsOnRegister;
913
- }
914
- freeze() {
915
- this._frozen = true;
916
- }
917
- async getInstance(moniker, { start = true, labels } = {}) {
918
- return assertEx9(
919
- await this.tryGetInstance(moniker, { start, labels }),
920
- () => `No provider instance for the supplied config moniker [${moniker}]${labels ? ` & labels [${JSON.stringify(labels)}]` : ""} could be created`
921
- );
922
- }
923
- has(moniker) {
924
- return Object.hasOwn(this._registry, moniker);
925
- }
926
- /**
927
- * Locates a provider factory that matches the supplied moniker and labels
928
- * @param moniker The config moniker for the provider
929
- * @param labels The labels for the provider factory
930
- * @returns A provider factory that matches the supplied moniker and labels or throws if one is not found
931
- */
932
- locate(moniker, labels) {
933
- return assertEx9(
934
- this.tryLocate(moniker, labels),
935
- () => `No module factory for the supplied config moniker [${moniker}]${labels ? ` & labels [${JSON.stringify(labels)}]` : ""} registered`
936
- );
937
- }
938
- /**
939
- * Registers a single module factory (with optional tags) with the locator
940
- * @param factory The factory to register
941
- * @param labels The labels for the module factory
942
- */
943
- register(factory, labels, primary = false) {
944
- assertEx9(!this._frozen, () => "Cannot register a module factory after the locator has been frozen");
945
- if (this.validateDepsOnRegister) {
946
- const missingDeps = factory.dependencies.filter((dep) => !this.registered(dep));
947
- assertEx9(missingDeps.length === 0, () => `Cannot register module factory [${factory.uniqueId.description}] due to missing dependencies: ${missingDeps.join(", ")}`);
948
- }
949
- registerCreatableProviderFactory(this._registry, factory, labels, primary);
950
- return this;
951
- }
952
- /**
953
- * Registers multiple module factories with the locator
954
- * @param factories The factories to register
955
- */
956
- registerMany(factories) {
957
- for (const factory of factories) {
958
- this.register(factory);
959
- }
960
- return this;
961
- }
962
- registered(moniker) {
963
- return Object.hasOwn(this.registry, moniker) || (this._parent?.registered(moniker) ?? false);
964
- }
965
- async tryGetInstance(moniker, { start = true, labels } = {}) {
966
- const resolvedParams = { context: this.context };
967
- const factory = this.tryLocate(moniker, labels);
968
- if (factory !== void 0) {
969
- if (Object.hasOwn(this.context.singletons, factory.uniqueId)) {
970
- return this.context.singletons[factory.uniqueId];
971
- }
972
- this.logger?.debug(`Creating provider instance for moniker [${moniker}]${labels ? ` with labels [${JSON.stringify(labels)}]` : ""} using factory [${factory.uniqueId.description}]`);
973
- const result = await factory.getInstance(resolvedParams, { start });
974
- this.context.singletons[factory.uniqueId] = result;
975
- return result;
976
- }
977
- }
978
- /**
979
- * Tries to locate a module factory that matches the supplied moniker and labels
980
- * @param moniker The config moniker for the module
981
- * @param labels The labels for the module factory
982
- * @returns A module factory that matches the supplied moniker and labels or undefined
983
- */
984
- tryLocate(moniker, labels) {
985
- const result = (labels ? this._registry[moniker]?.filter(hasLabels).find((factory) => hasAllLabels(factory?.labels, labels)) ?? this._registry[moniker]?.[0] : this._registry[moniker]?.[0]) ?? this._parent?.tryLocate(moniker, labels);
986
- return result;
987
- }
988
- validateDependencies(recursive = false) {
989
- if (recursive) {
990
- this._parent?.validateDependencies();
991
- }
992
- for (const moniker in this.registry) {
993
- for (const factory of this.registry[moniker] ?? []) {
994
- const missingDeps = factory.dependencies.filter((dep) => !this.registered(dep));
995
- assertEx9(missingDeps.length === 0, () => `Module factory [${factory.uniqueId.description}] is missing dependencies: ${missingDeps.join(", ")}`);
996
- }
997
- }
998
- }
999
- };
1000
-
1001
- // src/_internal/context/getTestProviderContext.ts
1002
- function getTestProviderContext(config) {
1003
- const singletons = {};
1004
- const caches = {};
1005
- const locator = new ProviderFactoryLocator({
1006
- config,
1007
- singletons,
1008
- caches,
1009
- logger: console
1010
- });
1011
- return locator.context;
1012
- }
1013
-
1014
- // src/config/Actor.ts
1015
- import {
1016
- zodAsFactory as zodAsFactory2,
1017
- zodIsFactory as zodIsFactory2,
1018
- zodToFactory as zodToFactory2
1019
- } from "@ariestools/sdk";
1020
- import { globalRegistry as globalRegistry8, z as z12 } from "zod/mini";
1021
-
1022
- // src/config/LocatorConfigFields.ts
1023
- import { z as z11 } from "zod/mini";
1024
-
1025
- // src/config/Chain.ts
1026
- import { HexZod } from "@ariestools/sdk";
1027
- import { XyoAddressZod } from "@xyo-network/sdk";
1028
- import { globalRegistry, z } from "zod/mini";
1029
- var ChainConfigZod = z.object({
1030
- id: z.optional(HexZod).register(globalRegistry, {
1031
- description: "The unique identifier for the chain. Should be the staking contract address for contract-backed chains.",
1032
- title: "chain.id",
1033
- type: "string"
1034
- }),
1035
- genesisRewardAddress: z.optional(XyoAddressZod).register(globalRegistry, {
1036
- description: "Address to send the initial genesis rewards to, if a new chain is being created.",
1037
- title: "chain.genesisRewardAddress",
1038
- type: "Address"
1039
- })
1040
- });
1041
-
1042
- // src/config/connections/Connection.ts
1043
- import { globalRegistry as globalRegistry3, z as z4 } from "zod";
1044
-
1045
- // src/config/connections/Mongo.ts
1046
- import { globalRegistry as globalRegistry2, z as z2 } from "zod";
1047
- var MongoConfigZod = z2.object({
1048
- // TODO: Create from other arguments
1049
- connectionString: z2.string().nonempty().optional().register(globalRegistry2, {
1050
- description: "MongoDB connection string",
1051
- title: "storage.mongo.connectionString",
1052
- type: "string"
1053
- }),
1054
- database: z2.string().nonempty().optional().register(globalRegistry2, {
1055
- description: "MongoDB database name",
1056
- title: "storage.mongo.database",
1057
- type: "string"
1058
- }),
1059
- domain: z2.string().nonempty().optional().register(globalRegistry2, {
1060
- description: "MongoDB domain",
1061
- title: "storage.mongo.domain",
1062
- type: "string"
1063
- }),
1064
- password: z2.string().nonempty().optional().register(globalRegistry2, {
1065
- description: "MongoDB password",
1066
- title: "storage.mongo.password",
1067
- type: "string"
1068
- }),
1069
- username: z2.string().nonempty().optional().register(globalRegistry2, {
1070
- description: "MongoDB username",
1071
- title: "storage.mongo.username",
1072
- type: "string"
1073
- })
1074
- });
1075
-
1076
- // src/config/connections/S3.ts
1077
- import { z as z3 } from "zod";
1078
- var S3BucketConfigZod = z3.object({
1079
- accessKeyId: z3.string().nonempty().optional().describe("S3-compatible access key id for this bucket (overrides the shared default)"),
1080
- accountId: z3.string().nonempty().optional().describe("Account id for this bucket; on Cloudflare R2 it forms the endpoint (overrides the shared default)"),
1081
- bucket: z3.string().nonempty().optional().describe("S3-compatible bucket name"),
1082
- endpoint: z3.string().nonempty().optional().describe("S3-compatible API endpoint for reads and writes; when omitted, derived from accountId as a Cloudflare R2 endpoint"),
1083
- prefix: z3.string().nonempty().optional().describe("Optional key prefix within the bucket"),
1084
- readUrl: z3.string().nonempty().optional().describe("Public HTTP/CDN base URL for anonymous reads of this bucket"),
1085
- secretAccessKey: z3.string().nonempty().optional().describe("S3-compatible secret access key for this bucket (overrides the shared default)")
1086
- });
1087
-
1088
- // src/config/connections/Connection.ts
1089
- var LmdbConnectionConfigZod = z4.object({
1090
- access: z4.enum(["read", "write"]).optional().register(globalRegistry3, {
1091
- description: "Access mode for this LMDB connection (read or write)",
1092
- title: "connections.lmdb.access",
1093
- type: "string"
1094
- }),
1095
- root: z4.string().register(globalRegistry3, {
1096
- description: "Root directory for local LMDB storage",
1097
- title: "connections.lmdb.root",
1098
- type: "string"
1099
- }),
1100
- store: z4.string().optional().register(globalRegistry3, {
1101
- description: "Logical store name within the LMDB root (e.g. finalized-chain, mempool)",
1102
- title: "connections.lmdb.store",
1103
- type: "string"
1104
- }),
1105
- type: z4.literal("lmdb")
1106
- }).describe("LMDB local storage connection");
1107
- var MongoConnectionConfigZod = z4.object({
1108
- type: z4.literal("mongo"),
1109
- connectionString: MongoConfigZod.shape.connectionString,
1110
- database: MongoConfigZod.shape.database,
1111
- domain: MongoConfigZod.shape.domain,
1112
- password: MongoConfigZod.shape.password,
1113
- username: MongoConfigZod.shape.username,
1114
- collection: z4.string().optional().register(globalRegistry3, {
1115
- description: "MongoDB collection this connection routes to (e.g. the chain index)",
1116
- title: "connections.mongo.collection",
1117
- type: "string"
1118
- })
1119
- }).describe("MongoDB storage connection");
1120
- var RpcConnectionConfigZod = z4.object({
1121
- type: z4.literal("rpc"),
1122
- protocol: z4.string().default("http").register(globalRegistry3, {
1123
- description: "Protocol for the RPC connection (http or postMessage)",
1124
- title: "connections.rpc.protocol",
1125
- type: "string"
1126
- }),
1127
- url: z4.string().optional().register(globalRegistry3, {
1128
- description: "URL for the Chain RPC API (http protocol)",
1129
- title: "connections.rpc.url",
1130
- type: "string"
1131
- }),
1132
- networkId: z4.string().optional().register(globalRegistry3, {
1133
- description: "Network ID for the postMessage RPC connection",
1134
- title: "connections.rpc.networkId",
1135
- type: "string"
1136
- }),
1137
- sessionId: z4.string().optional().register(globalRegistry3, {
1138
- description: "Session ID for the postMessage RPC connection",
1139
- title: "connections.rpc.sessionId",
1140
- type: "string"
1141
- })
1142
- }).describe("XL1 JSON-RPC connection");
1143
- var RestConnectionConfigZod = z4.object({
1144
- type: z4.literal("rest"),
1145
- baseUrl: z4.string().register(globalRegistry3, {
1146
- description: "HTTP base URL for REST reads",
1147
- title: "connections.rest.baseUrl",
1148
- type: "string"
1149
- })
1150
- }).describe("HTTP REST read connection");
1151
- var S3ConnectionConfigZod = S3BucketConfigZod.extend({
1152
- type: z4.literal("s3"),
1153
- accessKeyId: z4.string().optional(),
1154
- accountId: z4.string().optional(),
1155
- secretAccessKey: z4.string().optional()
1156
- }).describe("S3-compatible object storage connection");
1157
- var EvmRpcConnectionConfigZod = z4.object({
1158
- type: z4.literal("evm-rpc"),
1159
- url: z4.string().register(globalRegistry3, {
1160
- description: "EVM JSON-RPC URL",
1161
- title: "connections.evm-rpc.url",
1162
- type: "string"
1163
- }),
1164
- chainId: z4.string().optional().register(globalRegistry3, {
1165
- description: "EVM chain ID for this RPC endpoint; auto-detected from the endpoint when omitted",
1166
- title: "connections.evm-rpc.chainId",
1167
- type: "string"
1168
- })
1169
- }).describe("EVM JSON-RPC connection");
1170
- var MemoryConnectionConfigZod = z4.object({ type: z4.literal("memory") }).describe("In-process memory connection");
1171
- var ConnectionConfigZod = z4.discriminatedUnion("type", [
1172
- LmdbConnectionConfigZod,
1173
- MongoConnectionConfigZod,
1174
- RpcConnectionConfigZod,
1175
- RestConnectionConfigZod,
1176
- S3ConnectionConfigZod,
1177
- EvmRpcConnectionConfigZod,
1178
- MemoryConnectionConfigZod
1179
- ]);
1180
- var ConnectionsConfigZod = z4.record(z4.string(), ConnectionConfigZod).default({});
1181
-
1182
- // src/config/Log.ts
1183
- import { LogLevel } from "@ariestools/sdk";
1184
- import { globalRegistry as globalRegistry4, z as z5 } from "zod";
1185
- var LogLevelNames = Object.keys(LogLevel);
1186
- var LogConfigZod = z5.object({
1187
- logLevel: z5.enum(LogLevelNames).default("info").register(globalRegistry4, {
1188
- choices: LogLevelNames,
1189
- default: "info",
1190
- description: "Desired process verbosity",
1191
- title: "logLevel",
1192
- type: "string"
1193
- }),
1194
- silent: z5.boolean().default(false).register(globalRegistry4, {
1195
- default: false,
1196
- description: "Whether to run in silent mode",
1197
- title: "silent",
1198
- type: "boolean"
1199
- })
1200
- });
1201
-
1202
- // src/config/ProviderBinding.ts
1203
- import { globalRegistry as globalRegistry5, z as z6 } from "zod";
1204
- var ProviderBindingConfigZod = z6.object({
1205
- connection: z6.string().optional().register(globalRegistry5, {
1206
- description: "Named connection from the top-level connections map",
1207
- title: "providerBindings.connection",
1208
- type: "string"
1209
- }),
1210
- provider: z6.string().optional().register(globalRegistry5, {
1211
- description: "Winning provider descriptor id when config is compile-resolved",
1212
- title: "providerBindings.provider",
1213
- type: "string"
1214
- })
1215
- }).describe("Provider connection binding");
1216
- var ProviderBindingsConfigZod = z6.record(z6.string(), ProviderBindingConfigZod).default({});
1217
-
1218
- // src/config/Providers.ts
1219
- import z8 from "zod";
1220
-
1221
- // src/config/Provider.ts
1222
- import {
1223
- zodAsFactory,
1224
- zodIsFactory,
1225
- zodToFactory
1226
- } from "@ariestools/sdk";
1227
- import { z as z7 } from "zod";
1228
- var ProviderConfigZod = z7.object({
1229
- moniker: z7.string(),
1230
- labels: z7.array(z7.string()).optional()
1231
- }).describe("Configuration for a Provider");
1232
- var isProviderConfig = zodIsFactory(ProviderConfigZod);
1233
- var asProviderConfig = zodAsFactory(ProviderConfigZod, "asProviderConfig");
1234
- var toProviderConfig = zodToFactory(ProviderConfigZod, "toProviderConfig");
1235
-
1236
- // src/config/Providers.ts
1237
- var ProvidersConfigZod = z8.array(
1238
- ProviderConfigZod.loose()
1239
- ).describe("Configuration for providers").default([]);
1240
-
1241
- // src/config/Telemetry.ts
1242
- import { globalRegistry as globalRegistry6, z as z9 } from "zod";
1243
- var MetricsScrapeConfigZod = z9.object({
1244
- path: z9.string().default("/metrics").register(globalRegistry6, {
1245
- default: "/metrics",
1246
- description: "Path for the metrics scrape endpoint",
1247
- title: "telemetry.metrics.scrape.path",
1248
- type: "string"
1249
- }),
1250
- port: z9.coerce.number().int().nonnegative().optional().register(globalRegistry6, {
1251
- description: "Port for the metrics scrape endpoint (0 disables the scrape endpoint)",
1252
- title: "telemetry.metrics.scrape.port",
1253
- type: "number"
1254
- })
1255
- }).describe("Metrics scrape configuration");
1256
- var MetricsConfigZod = z9.object({ scrape: MetricsScrapeConfigZod }).describe("Metrics configuration options");
1257
- var OpenTelemetryConfigZod = z9.object({
1258
- // OpenTelemetry options
1259
- otlpEndpoint: z9.url().optional().register(globalRegistry6, {
1260
- description: "OTLP endpoint for exporting telemetry data",
1261
- title: "telemetry.otel.otlpEndpoint",
1262
- type: "string"
1263
- })
1264
- });
1265
- var TelemetryConfigZod = z9.object({
1266
- // Metrics configuration
1267
- metrics: MetricsConfigZod.optional().describe("Metrics configuration"),
1268
- // OpenTelemetry configuration
1269
- otel: OpenTelemetryConfigZod.optional().describe("OpenTelemetry configuration")
1270
- }).describe("Telemetry configuration options");
1271
-
1272
- // src/config/Validation.ts
1273
- import { SignerAuthorizationZod } from "@xyo-network/xl1-validation";
1274
- import { globalRegistry as globalRegistry7, z as z10 } from "zod";
1275
-
1276
- // src/primitives/block/rate/blockRate.ts
1277
- import { isDefined as isDefined5, isFalsy } from "@ariestools/sdk";
1278
- import { asXL1BlockRange } from "@xyo-network/xl1-protocol-lib";
1279
-
1280
- // src/primitives/block/rate/timeHelpers.ts
1281
- import { assertEx as assertEx10, isDefined as isDefined4 } from "@ariestools/sdk";
1282
- var rateMultipliers = {
1283
- millis: 1,
1284
- seconds: 1e3,
1285
- minutes: 1e3 * 60,
1286
- hours: 1e3 * 60 * 60,
1287
- days: 1e3 * 60 * 60 * 24,
1288
- weeks: 1e3 * 60 * 60 * 24 * 7
1289
- };
1290
- var timeDurations = (timeInMs) => ({
1291
- millis: timeInMs,
1292
- seconds: timeInMs / 1e3,
1293
- minutes: timeInMs / (1e3 * 60),
1294
- hours: timeInMs / (1e3 * 60 * 60),
1295
- days: timeInMs / (1e3 * 60 * 60 * 24),
1296
- weeks: timeInMs / (1e3 * 60 * 60 * 24 * 7)
1297
- });
1298
- var getTimeConfigInMilliseconds = (timeConfig) => {
1299
- const assertedTimeConfig = assertEx10(isDefined4(timeConfig) ? timeConfig : void 0, () => "Time configuration must be provided");
1300
- let totalMilliseconds = 0;
1301
- if ("years" in assertedTimeConfig) {
1302
- totalMilliseconds += assertedTimeConfig.years * 31536e6;
1303
- return totalMilliseconds;
1304
- }
1305
- if ("months" in assertedTimeConfig) {
1306
- totalMilliseconds += assertedTimeConfig.months * 2592e6;
1307
- return totalMilliseconds;
1308
- }
1309
- if ("weeks" in assertedTimeConfig) {
1310
- totalMilliseconds += assertedTimeConfig.weeks * 6048e5;
1311
- return totalMilliseconds;
1312
- }
1313
- if ("days" in assertedTimeConfig) {
1314
- totalMilliseconds += assertedTimeConfig.days * 864e5;
1315
- return totalMilliseconds;
1316
- }
1317
- if ("hours" in assertedTimeConfig) {
1318
- totalMilliseconds += assertedTimeConfig.hours * 36e5;
1319
- return totalMilliseconds;
1320
- }
1321
- if ("minutes" in assertedTimeConfig) {
1322
- totalMilliseconds += assertedTimeConfig.minutes * 6e4;
1323
- return totalMilliseconds;
1324
- }
1325
- return totalMilliseconds;
1326
- };
1327
-
1328
- // src/primitives/block/rate/blockRate.ts
1329
- var blockRate = (startBlock, endBlock, timeUnit) => {
1330
- const startingBlock = startBlock[0];
1331
- const endingBlock = endBlock[0];
1332
- const heightDifference = endingBlock.block - startingBlock.block;
1333
- const timeDifference = endingBlock.$epoch - startingBlock.$epoch;
1334
- if (timeDifference === 0) {
1335
- throw new Error("Time difference must be greater than 0");
1336
- }
1337
- const rate = heightDifference / timeDifference;
1338
- const timeUnitValue = isDefined5(timeUnit) ? timeUnit : "millis";
1339
- const returnedTimeDifference = isDefined5(timeUnit) ? timeDurations(timeDifference)[timeUnit] : timeDifference;
1340
- const timePerBlock = returnedTimeDifference / heightDifference;
1341
- return {
1342
- range: asXL1BlockRange([startingBlock.block, endingBlock.block], true),
1343
- span: heightDifference,
1344
- rate: isDefined5(timeUnit) ? rate * rateMultipliers[timeUnit] : rate,
1345
- timeUnit: timeUnitValue,
1346
- timeDifference: returnedTimeDifference,
1347
- timePerBlock
1348
- };
1349
- };
1350
- var getBlockRateBlocks = async (viewer, startBlockHeight, endBlockHeight) => {
1351
- if (endBlockHeight <= startBlockHeight) {
1352
- throw new Error(`End block height must be greater than start block height [start=${startBlockHeight}, end=${endBlockHeight}]`);
1353
- }
1354
- const startingBlock = await viewer.blockByNumber(startBlockHeight);
1355
- const endingBlock = await viewer.blockByNumber(endBlockHeight);
1356
- if (isFalsy(startingBlock) || isFalsy(endingBlock)) {
1357
- throw new Error("Could not retrieve blocks for speed calculation");
1358
- }
1359
- return { startingBlock, endingBlock };
1360
- };
1361
- var calculateBlockRate = async (viewer, range, timeUnit) => {
1362
- const [startBlockHeight, endBlockHeight] = range;
1363
- const { startingBlock, endingBlock } = await getBlockRateBlocks(
1364
- viewer,
1365
- startBlockHeight,
1366
- endBlockHeight
1367
- );
1368
- return blockRate(startingBlock, endingBlock, timeUnit);
1369
- };
1370
-
1371
- // src/primitives/block/rate/stepRate.ts
1372
- import { assertEx as assertEx11 } from "@ariestools/sdk";
1373
- import {
1374
- asXL1BlockRange as asXL1BlockRange2,
1375
- isValidStep,
1376
- StepSizes as StepSizes4
1377
- } from "@xyo-network/xl1-protocol-lib";
1378
- var stepRate = async (viewer, start, step, count = 1, timeUnit) => {
1379
- const end = start + step * count;
1380
- const range = asXL1BlockRange2([start, end], true);
1381
- return await calculateBlockRate(viewer, range, timeUnit);
1382
- };
1383
- var calculateStepSizeRate = async (viewer, start, stepIndex, count = 1, timeUnit) => {
1384
- assertEx11(isValidStep(stepIndex), () => `Invalid step index: ${stepIndex}`);
1385
- const step = StepSizes4[stepIndex];
1386
- return await stepRate(viewer, start, step, count, timeUnit);
1387
- };
1388
-
1389
- // src/primitives/block/rate/timeRate.ts
1390
- import {
1391
- assertEx as assertEx12,
1392
- isDefined as isDefined6,
1393
- isDefinedNotNull
1394
- } from "@ariestools/sdk";
1395
- import { asXL1BlockNumber as asXL1BlockNumber7, asXL1BlockRange as asXL1BlockRange3 } from "@xyo-network/xl1-protocol-lib";
1396
- var DEFAULT_TOLERANCE_MS = 3e4;
1397
- var DEFAULT_MAX_ATTEMPTS = 10;
1398
- var calculateTimeRate = async (viewer, timeConfig, startBlockNumber, timeUnit, toleranceMs = DEFAULT_TOLERANCE_MS, maxAttempts = DEFAULT_MAX_ATTEMPTS) => {
1399
- assertEx12(Object.keys(timeConfig ?? {}).length === 1, () => "Only one time unit should be specified in timeConfig");
1400
- const startBlock = isDefinedNotNull(startBlockNumber) ? await viewer.blockByNumber(startBlockNumber) : null;
1401
- const currentBlockResult = await viewer.currentBlock();
1402
- const blockResult = isDefinedNotNull(startBlock) ? startBlock : currentBlockResult;
1403
- const resolvedStartBlock = blockResult[0];
1404
- const timeInMilliseconds = getTimeConfigInMilliseconds(timeConfig);
1405
- assertEx12(timeInMilliseconds > 0, () => "Time duration must be greater than zero");
1406
- const blocksPerMillisecondRate = 1 / (12 * 1e3);
1407
- const initialBlocksInDuration = Math.floor(blocksPerMillisecondRate * timeInMilliseconds);
1408
- const endBlockNumber = await findEndBlockRecursive(
1409
- viewer,
1410
- resolvedStartBlock,
1411
- timeInMilliseconds,
1412
- initialBlocksInDuration,
1413
- toleranceMs,
1414
- maxAttempts
1415
- );
1416
- return await calculateBlockRate(
1417
- viewer,
1418
- asXL1BlockRange3([endBlockNumber, resolvedStartBlock.block], true),
1419
- timeUnit
1420
- );
1421
- };
1422
- var findEndBlockRecursive = async (viewer, startBlock, targetTimeMs, estimatedBlocksBack, toleranceMs, attemptsRemaining) => {
1423
- assertEx12(attemptsRemaining >= 0, () => "Maximum attempts reached while searching for end block");
1424
- const startBlockEpoch = startBlock.$epoch;
1425
- const estimatedEndBlockNumber = asXL1BlockNumber7(startBlock.block - estimatedBlocksBack, true);
1426
- if (estimatedEndBlockNumber < 0) {
1427
- throw new Error("Estimated end block number is less than zero");
1428
- }
1429
- const endBlock = await viewer.blockByNumber(estimatedEndBlockNumber);
1430
- const resolvedEndBlock = assertEx12(
1431
- isDefined6(endBlock?.[0]) ? endBlock[0] : void 0,
1432
- () => `Could not retrieve block ${estimatedEndBlockNumber} for time rate calculation`
1433
- );
1434
- const endBlockEpoch = resolvedEndBlock.$epoch;
1435
- if (!Number.isFinite(startBlockEpoch) || !Number.isFinite(endBlockEpoch)) {
1436
- throw new TypeError("Block has missing or invalid $epoch");
1437
- }
1438
- const actualTimeDifference = startBlockEpoch - endBlockEpoch;
1439
- if (actualTimeDifference === 0) {
1440
- throw new Error("Start and end blocks have identical timestamps");
1441
- }
1442
- const timeDelta = Math.abs(actualTimeDifference - targetTimeMs);
1443
- if (timeDelta <= toleranceMs) {
1444
- return resolvedEndBlock.block;
1445
- }
1446
- let adjustedBlocksBack;
1447
- if (actualTimeDifference < targetTimeMs) {
1448
- const adjustmentFactor = targetTimeMs / actualTimeDifference;
1449
- adjustedBlocksBack = Math.floor(estimatedBlocksBack * adjustmentFactor);
1450
- } else {
1451
- const adjustmentFactor = actualTimeDifference / targetTimeMs;
1452
- adjustedBlocksBack = Math.floor(estimatedBlocksBack / adjustmentFactor);
1453
- }
1454
- adjustedBlocksBack = Number.isFinite(adjustedBlocksBack) && adjustedBlocksBack >= 1 ? adjustedBlocksBack : 1;
1455
- return await findEndBlockRecursive(
1456
- viewer,
1457
- startBlock,
1458
- targetTimeMs,
1459
- adjustedBlocksBack,
1460
- toleranceMs,
1461
- attemptsRemaining - 1
1462
- );
1463
- };
1464
-
1465
- // src/primitives/state/findMostRecentBlock.ts
1466
- import { isSignedBlockBoundWitnessWithStorageMeta } from "@xyo-network/xl1-protocol-lib";
1467
- var DEFAULT_NEXT_OPTIONS = { limit: 50 };
1468
- var findMostRecentBlock = async (chainArchivist, nextOptions = DEFAULT_NEXT_OPTIONS, maxIterations = Infinity) => {
1469
- let mostRecentBlock;
1470
- let cursor;
1471
- let batch;
1472
- let iterations = 0;
1473
- do {
1474
- batch = await chainArchivist.next({
1475
- ...nextOptions,
1476
- order: "desc",
1477
- cursor
1478
- });
1479
- const blocks = batch.filter(isSignedBlockBoundWitnessWithStorageMeta);
1480
- const last = blocks?.at(0);
1481
- if (last) {
1482
- mostRecentBlock = last;
1483
- break;
1484
- }
1485
- cursor = batch.at(-1)?._sequence;
1486
- iterations = iterations + 1;
1487
- } while (batch.length > 0 && iterations < maxIterations);
1488
- return mostRecentBlock;
1489
- };
1490
-
1491
- // src/primitives/state/hydratedBlockByNumber.ts
1492
- import { assertEx as assertEx13, spanAsync as spanAsync2 } from "@ariestools/sdk";
1493
- async function hydratedBlockByNumber(context, blockNumber) {
1494
- return await spanAsync2("hydratedBlockByNumber", async () => {
1495
- if (blockNumber < 0) throw new Error(`Block number ${blockNumber} is less than 0`);
1496
- if (blockNumber > Number.MAX_SAFE_INTEGER) throw new Error(`Block number ${blockNumber} is greater than the maximum safe integer`);
1497
- if (blockNumber % 1 !== 0) throw new Error(`Block number ${blockNumber} is not an integer`);
1498
- const cacheKey = String(blockNumber);
1499
- return await withContextCacheResponse(context, "hydratedBlockByNumber", cacheKey, async () => {
1500
- const block = assertEx13(
1501
- await blockFromBlockNumber(context, blockNumber),
1502
- () => `Could not find block for block number ${blockNumber}`
1503
- );
1504
- return await hydrateBlock(context, block._hash);
1505
- }, { max: 2e4 });
1506
- }, { ...context, timeBudgetLimit: 500 });
1507
- }
1508
-
1509
- // src/primitives/uncle/findBestUncle.ts
1510
- var DEFAULT_MIN_CANDIDATES = 1;
1511
- var DEFAULT_BACKOFF_MS = 12e4;
1512
-
1513
- // src/config/Validation.ts
1514
- var ValidationConfigZod = z10.object({
1515
- signerAuthorizations: z10.array(SignerAuthorizationZod).default([]).register(globalRegistry7, {
1516
- description: "Authorizations granting signers the right to sign for addresses derived by a given function (e.g. completed-step-reward, derived-receive). Empty = self-transfers only.",
1517
- title: "validation.signerAuthorizations",
1518
- type: "array"
1519
- }),
1520
- minCandidates: z10.coerce.number().default(DEFAULT_MIN_CANDIDATES).register(globalRegistry7, {
1521
- default: DEFAULT_MIN_CANDIDATES,
1522
- description: "Minimum number of uncle candidates before selecting the best uncle",
1523
- title: "validation.minCandidates",
1524
- type: "number"
1525
- }),
1526
- backoffMs: z10.coerce.number().default(DEFAULT_BACKOFF_MS).register(globalRegistry7, {
1527
- default: DEFAULT_BACKOFF_MS,
1528
- description: "Back-off timeout in ms. If head age exceeds this, minCandidates is ignored",
1529
- title: "validation.backoffMs",
1530
- type: "number"
1531
- })
1532
- });
1533
-
1534
- // src/config/LocatorConfigFields.ts
1535
- var LocatorConfigFieldsZod = z11.strictObject({
1536
- chain: z11._default(ChainConfigZod, ChainConfigZod.parse({})).check(z11.describe("Configuration for the chain")),
1537
- log: z11._default(LogConfigZod, LogConfigZod.parse({})).check(z11.describe("Configuration for logging")),
1538
- connections: z11._default(ConnectionsConfigZod, ConnectionsConfigZod.parse({})).check(z11.describe("Named connection profiles (rpc, rest, s3, lmdb, mongo, evm-rpc)")),
1539
- providerBindings: z11._default(ProviderBindingsConfigZod, ProviderBindingsConfigZod.parse({})).check(z11.describe("Per-moniker provider connection bindings")),
1540
- /**
1541
- * @deprecated Not consumed by locator/provider resolution — registration is
1542
- * driven by `providerBindings` + `connections` instead. Kept temporarily to
1543
- * detect any remaining config usage before removal.
1544
- */
1545
- providers: z11._default(ProvidersConfigZod, ProvidersConfigZod.parse([])).check(z11.describe("Configuration for providers (deprecated, unused \u2014 use providerBindings + connections instead)")),
1546
- telemetry: z11._default(TelemetryConfigZod, TelemetryConfigZod.parse({})).check(z11.describe("Configuration for telemetry")),
1547
- validation: z11._default(ValidationConfigZod, ValidationConfigZod.parse({})).check(z11.describe("Configuration for validation"))
1548
- });
1549
- var LOCATOR_CONFIG_FIELD_KEYS = Object.keys(LocatorConfigFieldsZod.shape);
1550
-
1551
- // src/config/Actor.ts
1552
- var AccountPathZod = z12.string().check(z12.regex(
1553
- /^(m(\/\d+'?)+|\d+'?(\/\d+'?)*)$/,
1554
- `Invalid BIP-32 derivation path. Use either an absolute path like "m/44'/60'/0'/0/0" or a relative path like "0", "0/1", or "44'/60'/0'/0/0".`
1555
- ));
1556
- var ActorConfigZod = z12.extend(LocatorConfigFieldsZod, {
1557
- name: z12.string(),
1558
- accountPath: z12.optional(AccountPathZod).register(globalRegistry8, {
1559
- description: 'BIP-32 derivation path for the actor wallet. Absolute when it starts with "m/"; otherwise relative to the root wallet base path. Each actor must derive to a distinct path.',
1560
- title: "accountPath",
1561
- type: "string"
1562
- })
1563
- });
1564
- var isActorConfig = zodIsFactory2(ActorConfigZod);
1565
- var asActorConfig = zodAsFactory2(ActorConfigZod, "asActorConfig");
1566
- var toActorConfig = zodToFactory2(ActorConfigZod, "toActorConfig");
1567
-
1568
- // src/config/Actors.ts
1569
- import { z as z13 } from "zod/mini";
1570
- var ActorsConfigZod = z13._default(
1571
- z13.array(z13.looseObject(ActorConfigZod.shape)).check(z13.describe("Actor-specific configurations that override the base configuration when the actor is running")),
1572
- []
1573
- );
1574
-
1575
- // src/config/Config.ts
1576
- import { globalRegistry as globalRegistry9, z as z14 } from "zod/mini";
1577
- var ConfigZod = z14.extend(LocatorConfigFieldsZod, {
1578
- actors: ActorsConfigZod,
1579
- healthCheckPort: z14.optional(z14.coerce.number()).register(globalRegistry9, {
1580
- description: "Port for the system-wide health, readiness, and liveness endpoints (/healthz, /livez, /readyz). Set to 0 to disable.",
1581
- title: "healthCheckPort",
1582
- type: "number"
1583
- })
1584
- }).check(z14.describe("The complete configuration for the protocol, including global settings and actor-specific overrides"));
1585
-
1586
- // src/summary/primitives/blocks/blocksMaxStep.ts
1587
- var blocksMaxStep = 3;
1588
-
1589
- // src/summary/primitives/blocks/blocksStepSummaryFromRange.ts
1590
- import { assertEx as assertEx14, spanRootAsync } from "@ariestools/sdk";
1591
- import { isAnyPayload } from "@xyo-network/sdk";
1592
- import {
1593
- asBlocksStepSummary,
1594
- asXL1BlockNumber as asXL1BlockNumber8,
1595
- BlocksStepSummarySchema,
1596
- StepSizes as StepSizes5
1597
- } from "@xyo-network/xl1-protocol-lib";
1598
- function blocksStepSummaryKey(frameHeadHash, frameSize) {
1599
- return `${frameHeadHash}|${frameSize}`;
1600
- }
1601
- async function blocksStepSummaryFromRange(context, semaphores, blockViewer, summaryMap, range) {
1602
- const cacheKey = `${range[0]}|${range[1]}`;
1603
- return await withContextCacheResponse(context, "blocksStepSummaryFromRange", cacheKey, async () => {
1604
- return await spanRootAsync("blocksStepSummaryFromRange", async () => {
1605
- const frameHead = assertEx14(
1606
- await blockViewer.blockByNumber(range[1]),
1607
- () => `Block not found for number: ${range[1]}`
1608
- );
1609
- const frameHeadHash = frameHead[0]._hash;
1610
- const frameSize = range[1] - range[0] + 1;
1611
- let result;
1612
- if (frameSize === 1) {
1613
- result = {
1614
- schema: BlocksStepSummarySchema,
1615
- hash: frameHeadHash,
1616
- stepSize: -1,
1617
- blocks: [frameHead]
1618
- };
1619
- } else {
1620
- const step = StepSizes5.indexOf(asXL1BlockNumber8(frameSize, true));
1621
- assertEx14(step !== -1, () => `Invalid step size: ${frameSize}. Must be one of ${StepSizes5.join(", ")}`);
1622
- const key = blocksStepSummaryKey(frameHeadHash, frameSize);
1623
- const summaryResult = await summaryMap.get(key);
1624
- if (isAnyPayload(summaryResult)) {
1625
- result = asBlocksStepSummary(summaryResult, { required: true });
1626
- } else {
1627
- await semaphores[step].acquire();
1628
- try {
1629
- const subRanges = deepCalculateFramesFromRange(range, step - 1);
1630
- const subResults = await Promise.all(subRanges.map((subRange) => blocksStepSummaryFromRange(
1631
- context,
1632
- semaphores,
1633
- blockViewer,
1634
- summaryMap,
1635
- subRange
1636
- )));
1637
- const blocks = subResults.flatMap((subResult) => subResult.blocks);
1638
- result = {
1639
- schema: BlocksStepSummarySchema,
1640
- hash: frameHeadHash,
1641
- stepSize: frameSize,
1642
- blocks
1643
- };
1644
- await summaryMap.set(key, result);
1645
- } finally {
1646
- semaphores[step].release();
1647
- }
1648
- }
1649
- }
1650
- return result;
1651
- }, { ...context, timeBudgetLimit: 500 });
1652
- }, { max: 1e5 });
1653
- }
1654
-
1655
- // src/simple/block/SimpleBlockViewer.ts
1656
- import {
1657
- assertEx as assertEx15,
1658
- exists,
1659
- isUndefined as isUndefined2
1660
- } from "@ariestools/sdk";
1661
- import { LruCacheMap as LruCacheMap2 } from "@xyo-network/xl1-driver-memory";
1662
- import {
1663
- asSignedHydratedBlockWithHashMeta,
1664
- asSignedHydratedBlockWithStorageMeta,
1665
- asXL1BlockNumber as asXL1BlockNumber9,
1666
- asXL1BlockRange as asXL1BlockRange4,
1667
- BlockViewerMoniker,
1668
- FinalizationViewerMoniker,
1669
- stepSize as stepSize2,
1670
- StepSizes as StepSizes6
1671
- } from "@xyo-network/xl1-protocol-lib";
1672
- import { Semaphore } from "async-mutex";
1673
-
1674
- // src/Archivists/ArchivistFactory.ts
1675
- import { Mutex } from "async-mutex";
1676
- var KEY_SEPARATOR = "::";
1677
- function archivistCacheKey(connectionName, archivistName) {
1678
- return `${connectionName}${KEY_SEPARATOR}${archivistName}`;
1679
- }
1680
- var ArchivistInstanceCache = class {
1681
- cache = /* @__PURE__ */ new Map();
1682
- mutex = new Mutex();
1683
- async clear() {
1684
- await this.mutex.runExclusive(() => {
1685
- this.cache.clear();
1686
- });
1687
- }
1688
- async getOrCreate(connectionName, archivistName, create) {
1689
- const key = archivistCacheKey(connectionName, archivistName);
1690
- return await this.mutex.runExclusive(async () => {
1691
- const existing = this.cache.get(key);
1692
- if (existing !== void 0) return existing;
1693
- const created = await create();
1694
- this.cache.set(key, created);
1695
- return created;
1696
- });
1697
- }
1698
- has(connectionName, archivistName) {
1699
- return this.cache.has(archivistCacheKey(connectionName, archivistName));
1700
- }
1701
- };
1702
-
1703
- // src/Archivists/MemoryArchivistFactory.ts
1704
- import { MemoryArchivist as MemoryArchivist2 } from "@xyo-network/sdk";
1705
- var MemoryArchivistFactory = class _MemoryArchivistFactory {
1706
- static cache = new ArchivistInstanceCache();
1707
- static async connect(connectionName, _config, options) {
1708
- const { name, max } = options;
1709
- return await _MemoryArchivistFactory.cache.getOrCreate(
1710
- connectionName,
1711
- name,
1712
- // Omit `max` when unset so the chain store inherits MemoryArchivist's default
1713
- // (the node-backed memory fallback never capped it — a small cap would evict blocks).
1714
- async () => await MemoryArchivist2.create({ account: "random", config: max === void 0 ? { name } : { max, name } })
1715
- );
1716
- }
1717
- /** Test-only: drop all cached memory archivists so a fresh process state can be simulated. */
1718
- static async reset() {
1719
- await _MemoryArchivistFactory.cache.clear();
1720
- }
1721
- };
1722
-
1723
- // src/Archivists/archivistFactoryRegistry.ts
1724
- var registry = /* @__PURE__ */ new Map();
1725
- function registerArchivistFactory(type, factory) {
1726
- registry.set(type, factory);
1727
- }
1728
- function getArchivistFactory(type) {
1729
- return registry.get(type);
1730
- }
1731
- registerArchivistFactory("memory", MemoryArchivistFactory);
1732
-
1733
- // src/Archivists/archivistRoles.ts
1734
- var CHAIN_ARCHIVIST_ROLE = "chain";
1735
-
1736
- // src/Archivists/connectArchivist.ts
1737
- async function connectArchivist(binding, options) {
1738
- const factory = getArchivistFactory(binding.config.type);
1739
- if (factory === void 0) {
1740
- throw new Error(`connectArchivist: no archivist factory registered for connection type '${binding.config.type}'`);
1741
- }
1742
- return await factory.connect(binding.name, binding.config, options);
1743
- }
1744
-
1745
- // src/utils/HydratedCache.ts
1746
- import { LRUCache } from "lru-cache";
1747
- var HydratedCache = class {
1748
- cache;
1749
- context;
1750
- hydrateFunction;
1751
- constructor(context, hydrateFunction, maxCount = 2e3, ttl = Number.MAX_SAFE_INTEGER) {
1752
- this.context = context;
1753
- this.hydrateFunction = hydrateFunction;
1754
- this.cache = new LRUCache({ max: maxCount, ttl });
1755
- }
1756
- async get(hash) {
1757
- const existing = this.cache.get(hash);
1758
- if (existing !== void 0) return existing;
1759
- const block = await this.hydrateFunction(this.context, hash) ?? null;
1760
- if (block !== null) this.cache.set(hash, block);
1761
- return block;
1762
- }
1763
- has(hash) {
1764
- return this.cache.has(hash);
1765
- }
1766
- };
1767
-
1768
- // src/simple/block/SimpleBlockViewer.ts
1769
- var MIN_HEAD_POLL_INTERVAL_MS = 5e3;
1770
- var SimpleBlockViewer = class extends AbstractCreatableProvider {
1771
- moniker = SimpleBlockViewer.defaultMoniker;
1772
- _store;
1773
- finalizationViewer;
1774
- payloadCache = new LruCacheMap2({ max: 1e4 });
1775
- signedHydratedBlockWithHashMetaCache = new LruCacheMap2({ max: 2e3, ttl: 1e3 * 60 * 60 });
1776
- _blockStepSemaphores = StepSizes6.map(() => new Semaphore(20));
1777
- _blocksSummaryMap;
1778
- _headPollHash;
1779
- _headPollInProgress = false;
1780
- _headPollTimer = null;
1781
- _signedHydratedBlockCache;
1782
- get finalizedArchivist() {
1783
- return assertEx15(this.params.finalizedArchivist, () => "finalizedArchivist is required \u2014 inject it or bind a connection");
1784
- }
1785
- get blocksSummaryMap() {
1786
- this._blocksSummaryMap ??= this.params.blocksSummaryMap ?? new LruCacheMap2({ max: 32 });
1787
- return this._blocksSummaryMap;
1788
- }
1789
- get headPollIntervalMs() {
1790
- return this.params.headPollIntervalMs;
1791
- }
1792
- get hydratedBlockCache() {
1793
- if (this._signedHydratedBlockCache) return this._signedHydratedBlockCache;
1794
- const context = this.getBlockContextRead();
1795
- this._signedHydratedBlockCache = new HydratedCache(context, async (context2, hash, maxDepth, minDepth) => {
1796
- const result = await hydrateBlock(context2, hash, maxDepth, minDepth);
1797
- return asSignedHydratedBlockWithStorageMeta(result, true);
1798
- }, 2e4);
1799
- return this._signedHydratedBlockCache;
1800
- }
1801
- get store() {
1802
- return this._store;
1803
- }
1804
- static async paramsHandler(params) {
1805
- const headPollIntervalMs = params.headPollIntervalMs;
1806
- if (headPollIntervalMs !== void 0) {
1807
- assertEx15(headPollIntervalMs >= MIN_HEAD_POLL_INTERVAL_MS, () => `headPollIntervalMs must be at least ${MIN_HEAD_POLL_INTERVAL_MS}ms`);
1808
- }
1809
- const connection = params.connection;
1810
- const finalizedArchivist = params.finalizedArchivist ?? (connection ? await connectArchivist(connection, { name: CHAIN_ARCHIVIST_ROLE }) : void 0);
1811
- return {
1812
- ...await super.paramsHandler(params),
1813
- blocksSummaryMap: params.blocksSummaryMap,
1814
- finalizedArchivist: assertEx15(finalizedArchivist, () => "finalizedArchivist is required \u2014 inject it or bind a connection"),
1815
- headPollIntervalMs
1816
- };
1817
- }
1818
- async blockByHash(hash) {
1819
- return await this.spanAsync("blockByHash", async () => {
1820
- const cachedBlock = this.signedHydratedBlockWithHashMetaCache.get(hash);
1821
- if (cachedBlock) {
1822
- return cachedBlock;
1823
- }
1824
- const cache = this.hydratedBlockCache;
1825
- const block = await cache.get(hash);
1826
- if (block) {
1827
- this.signedHydratedBlockWithHashMetaCache.set(hash, block);
1828
- }
1829
- return block ?? null;
1830
- }, { ...this.context, timeBudgetLimit: 100 });
1831
- }
1832
- async blockByNumber(blockNumber) {
1833
- return await this.spanAsync("blockByNumber", async () => {
1834
- const chainContext = await this.getChainContextRead();
1835
- if (isUndefined2(chainContext.head)) {
1836
- return null;
1837
- }
1838
- return await this.blockByNumberWithContext(chainContext, blockNumber);
1839
- }, { ...this.context, timeBudgetLimit: 100 });
1840
- }
1841
- async blocksByHash(hash, limit = 50) {
1842
- return await this.spanAsync("blocksByHash", async () => {
1843
- assertEx15(limit > 0, () => "limit must be greater than 0");
1844
- assertEx15(limit <= 100, () => "limit must be less than 100");
1845
- const blocks = [];
1846
- let current = await this.blockByHash(hash);
1847
- while (current && blocks.length < limit) {
1848
- blocks.push(current);
1849
- const previousHash = current[0].previous;
1850
- if (previousHash === null) break;
1851
- current = await this.blockByHash(previousHash);
1852
- }
1853
- return blocks.map((b) => asSignedHydratedBlockWithHashMeta(b, true));
1854
- }, { ...this.context, timeBudgetLimit: 300 });
1855
- }
1856
- async blocksByNumber(blockNumber, limit = 50) {
1857
- return await this.spanAsync("blocksByNumber", async () => {
1858
- assertEx15(limit > 0, () => "limit must be greater than 0");
1859
- assertEx15(limit <= 100, () => "limit must be less than 100");
1860
- const chainContext = await this.getChainContextRead();
1861
- if (isUndefined2(chainContext.head)) {
1862
- return [];
1863
- }
1864
- const blocks = [];
1865
- let current = await this.blockByNumberWithContext(chainContext, blockNumber);
1866
- while (current && blocks.length < limit) {
1867
- blocks.push(current);
1868
- if (current[0].block === 0) break;
1869
- const previousNumber = asXL1BlockNumber9(current[0].block - 1, true);
1870
- current = await this.blockByNumberWithContext(chainContext, previousNumber);
1871
- }
1872
- return blocks.map((b) => asSignedHydratedBlockWithHashMeta(b, true));
1873
- }, this.context);
1874
- }
1875
- async blocksByStep(stepLevel, stepIndex) {
1876
- return await this.spanAsync("blocksByStep", async () => {
1877
- assertEx15(Number.isSafeInteger(stepIndex) && stepIndex >= 0, () => "stepIndex must be a non-negative integer");
1878
- const size = stepSize2(stepLevel);
1879
- assertEx15(
1880
- stepLevel <= blocksMaxStep,
1881
- () => `blocksByStep does not support step levels above ${blocksMaxStep} (requested ${stepLevel})`
1882
- );
1883
- const chainContext = await this.getChainContextRead();
1884
- if (isUndefined2(chainContext.head)) {
1885
- return [];
1886
- }
1887
- const start = stepIndex * size;
1888
- const end = Math.min(start + size - 1, chainContext.head.block);
1889
- if (end < start) {
1890
- return [];
1891
- }
1892
- const range = asXL1BlockRange4([start, end], { name: "blocksByStep" });
1893
- const frames = deepCalculateFramesFromRange(range, blocksMaxStep);
1894
- const summaries = await Promise.all(frames.map((frame) => blocksStepSummaryFromRange(this.context, this._blockStepSemaphores, this, this.blocksSummaryMap, frame)));
1895
- const blocks = summaries.flatMap((summary) => summary.blocks);
1896
- return blocks.map((b) => asSignedHydratedBlockWithHashMeta(b, true)).toReversed();
1897
- }, this.context);
1898
- }
1899
- async chainId(blockNumber = "latest") {
1900
- return await this.spanAsync("chainId", async () => {
1901
- if (blockNumber === "latest") {
1902
- const headBlock = await this.finalizationViewer.headBlock();
1903
- return headBlock.chain;
1904
- }
1905
- const block = assertEx15(await this.blockByNumber(blockNumber), () => `Block not found [${blockNumber}]`);
1906
- return block[0].chain;
1907
- }, this.context);
1908
- }
1909
- async createHandler() {
1910
- await super.createHandler();
1911
- this.finalizationViewer = await this.locator.getInstance(FinalizationViewerMoniker);
1912
- this._store = { chainMap: this.finalizedArchivist };
1913
- }
1914
- async currentBlock() {
1915
- return await this.finalizationViewer.head();
1916
- }
1917
- async currentBlockHash() {
1918
- return await this.finalizationViewer.headHash();
1919
- }
1920
- async currentBlockNumber() {
1921
- return await this.finalizationViewer.headNumber();
1922
- }
1923
- async payloadByHash(hash) {
1924
- const [payload] = await this.payloadsByHash([hash]);
1925
- return payload ?? null;
1926
- }
1927
- async payloadsByHash(hashes) {
1928
- let remainingHashes = [...hashes];
1929
- const cachedPayloads = this.payloadCache.getMany(remainingHashes);
1930
- const cachedHashes = new Set(cachedPayloads.map((p) => p._hash));
1931
- remainingHashes = remainingHashes.filter((h) => !cachedHashes.has(h));
1932
- const finalizedPayloads = remainingHashes.length > 0 ? await this.finalizedArchivist.get(remainingHashes) : [];
1933
- const resultPayloads = [...cachedPayloads, ...finalizedPayloads.filter(exists)];
1934
- for (const payload of resultPayloads) {
1935
- this.payloadCache.set(payload._hash, payload);
1936
- }
1937
- return resultPayloads;
1938
- }
1939
- async rate(range, timeUnit) {
1940
- return await calculateBlockRate(this, range, timeUnit);
1941
- }
1942
- async stepSizeRate(start, stepIndex, count = 1, timeUnit) {
1943
- return await calculateStepSizeRate(this, start, stepIndex, count, timeUnit);
1944
- }
1945
- async timeDurationRate(timeConfig, startBlockNumber, timeUnit, toleranceMs, maxAttempts) {
1946
- return await calculateTimeRate(this, timeConfig, startBlockNumber, timeUnit, toleranceMs, maxAttempts);
1947
- }
1948
- getBlockContextRead() {
1949
- return {
1950
- ...this.context,
1951
- chainMap: this.store.chainMap
1952
- };
1953
- }
1954
- async getChainContextRead() {
1955
- const headBlock = await this.finalizationViewer.head();
1956
- return {
1957
- ...this.getBlockContextRead(),
1958
- head: headBlock[0]
1959
- };
1960
- }
1961
- async startHandler() {
1962
- await super.startHandler();
1963
- if (this.headPollIntervalMs === void 0) return;
1964
- await this.pollHead(false);
1965
- this.startHeadPolling();
1966
- }
1967
- async stopHandler() {
1968
- this.stopHeadPolling();
1969
- this._headPollHash = void 0;
1970
- await super.stopHandler();
1971
- }
1972
- async blockByNumberWithContext(chainContext, blockNumber) {
1973
- return asSignedHydratedBlockWithHashMeta(await hydratedBlockByNumber(chainContext, blockNumber)) ?? null;
1974
- }
1975
- async pollHead(emitOnChange) {
1976
- if (this._headPollInProgress) return;
1977
- this._headPollInProgress = true;
1978
- try {
1979
- const block = await this.currentBlock();
1980
- const hash = block[0]._hash;
1981
- if (this._headPollHash === void 0) {
1982
- this._headPollHash = hash;
1983
- return;
1984
- }
1985
- if (hash !== this._headPollHash) {
1986
- this._headPollHash = hash;
1987
- if (emitOnChange) {
1988
- await this.emit("headUpdated", { block });
1989
- }
1990
- }
1991
- } catch (ex) {
1992
- this.logger?.error("Error polling block head", ex);
1993
- } finally {
1994
- this._headPollInProgress = false;
1995
- }
1996
- }
1997
- startHeadPolling() {
1998
- if (this.headPollIntervalMs === void 0) return;
1999
- this.stopHeadPolling();
2000
- this._headPollTimer = setInterval(() => {
2001
- void this.pollHead(true);
2002
- }, this.headPollIntervalMs);
2003
- }
2004
- stopHeadPolling() {
2005
- if (!this._headPollTimer) {
2006
- return;
2007
- }
2008
- clearInterval(this._headPollTimer);
2009
- this._headPollTimer = null;
2010
- }
2011
- };
2012
- __publicField(SimpleBlockViewer, "connectionTypes", ["lmdb", "mongo", "memory"]);
2013
- __publicField(SimpleBlockViewer, "defaultMoniker", BlockViewerMoniker);
2014
- __publicField(SimpleBlockViewer, "dependencies", [FinalizationViewerMoniker]);
2015
- __publicField(SimpleBlockViewer, "monikers", [BlockViewerMoniker]);
2016
- __publicField(SimpleBlockViewer, "surface", "node");
2017
- SimpleBlockViewer = __decorateClass([
2018
- creatableProvider()
2019
- ], SimpleBlockViewer);
2020
-
2021
- // src/simple/chainContractViewer/SimpleChainContractViewer.ts
2022
- import { assertEx as assertEx16 } from "@ariestools/sdk";
2023
- import { ChainContractViewerMoniker, FinalizationViewerMoniker as FinalizationViewerMoniker2 } from "@xyo-network/xl1-protocol-lib";
2024
- var SimpleChainContractViewer = class extends AbstractCreatableProvider {
2025
- moniker = SimpleChainContractViewer.defaultMoniker;
2026
- _finalizationViewer;
2027
- get finalizationViewer() {
2028
- return this._finalizationViewer;
2029
- }
2030
- chainId() {
2031
- return this.finalizationViewer.chainId();
2032
- }
2033
- async chainIdAtBlockNumber(blockNumber) {
2034
- return await withContextCacheResponse(this.context, "chainIdAtBlockNumber", String(blockNumber), async () => {
2035
- let chainId = this.chainId();
2036
- let contractViewer = this;
2037
- let forkedAtBlockNumber = await contractViewer.forkedAtBlockNumber();
2038
- while (forkedAtBlockNumber !== null && blockNumber <= forkedAtBlockNumber) {
2039
- contractViewer = assertEx16(await contractViewer.forkedChainContractViewer());
2040
- forkedAtBlockNumber = await contractViewer.forkedAtBlockNumber();
2041
- chainId = await contractViewer.chainId();
2042
- }
2043
- return chainId;
2044
- });
2045
- }
2046
- async createHandler() {
2047
- this._finalizationViewer = await this.locator.getInstance(FinalizationViewerMoniker2);
2048
- return await super.createHandler();
2049
- }
2050
- forkedAtBlockNumber() {
2051
- return this.params.forkedAtBlockNumber ?? null;
2052
- }
2053
- forkedAtHash() {
2054
- return this.params.forkedAtHash ?? null;
2055
- }
2056
- forkedChainContractViewer() {
2057
- return this.params.forkedChainContractViewer ?? null;
2058
- }
2059
- forkedChainId() {
2060
- return this.params.forkedChainId ?? null;
2061
- }
2062
- minWithdrawalBlocks() {
2063
- return this.params.minWithdrawalBlocks;
2064
- }
2065
- rewardsContract() {
2066
- return this.params.rewardsContract;
2067
- }
2068
- stakingTokenAddress() {
2069
- return this.params.stakingTokenAddress;
2070
- }
2071
- };
2072
- __publicField(SimpleChainContractViewer, "connectionTypes", ["lmdb", "mongo", "memory"]);
2073
- __publicField(SimpleChainContractViewer, "defaultMoniker", ChainContractViewerMoniker);
2074
- __publicField(SimpleChainContractViewer, "dependencies", [FinalizationViewerMoniker2]);
2075
- __publicField(SimpleChainContractViewer, "monikers", [ChainContractViewerMoniker]);
2076
- __publicField(SimpleChainContractViewer, "surface", "node");
2077
- SimpleChainContractViewer = __decorateClass([
2078
- creatableProvider()
2079
- ], SimpleChainContractViewer);
2080
-
2081
- // src/simple/finalization/SimpleFinalizationViewer.ts
2082
- import { assertEx as assertEx17 } from "@ariestools/sdk";
2083
- import {
2084
- asSignedHydratedBlockWithStorageMeta as asSignedHydratedBlockWithStorageMeta2,
2085
- ChainContractViewerMoniker as ChainContractViewerMoniker2,
2086
- FinalizationViewerMoniker as FinalizationViewerMoniker3
2087
- } from "@xyo-network/xl1-protocol-lib";
2088
- var SimpleFinalizationViewer = class extends AbstractCreatableProvider {
2089
- moniker = SimpleFinalizationViewer.defaultMoniker;
2090
- _chainId;
2091
- _store;
2092
- _signedHydratedBlockCache;
2093
- get finalizedArchivist() {
2094
- return assertEx17(this.params.finalizedArchivist, () => "finalizedArchivist is required \u2014 inject it or bind a connection");
2095
- }
2096
- get hydratedBlockCache() {
2097
- if (this._signedHydratedBlockCache) return this._signedHydratedBlockCache;
2098
- const context = this.getBlockContextRead();
2099
- this._signedHydratedBlockCache = new HydratedCache(context, async (store, hash, maxDepth, minDepth) => {
2100
- const result = await hydrateBlock(context, hash, maxDepth, minDepth);
2101
- return asSignedHydratedBlockWithStorageMeta2(result, true);
2102
- }, 200);
2103
- return this._signedHydratedBlockCache;
2104
- }
2105
- get store() {
2106
- return this._store;
2107
- }
2108
- static async paramsHandler(params) {
2109
- const connection = params.connection;
2110
- const finalizedArchivist = params.finalizedArchivist ?? (connection ? await connectArchivist(connection, { name: CHAIN_ARCHIVIST_ROLE }) : void 0);
2111
- return {
2112
- ...await super.paramsHandler(params),
2113
- finalizedArchivist: assertEx17(finalizedArchivist, () => "finalizedArchivist is required \u2014 inject it or bind a connection")
2114
- };
2115
- }
2116
- chainId() {
2117
- return this._chainId;
2118
- }
2119
- async createHandler() {
2120
- await super.createHandler();
2121
- const finalizedArchivist = this.finalizedArchivist;
2122
- const mostRecentBlock = await findMostRecentBlock(finalizedArchivist);
2123
- this._chainId = assertEx17(this.config.chain.id ?? mostRecentBlock?.chain, () => "chain.id is required if empty archivist");
2124
- this._store = { chainMap: finalizedArchivist };
2125
- }
2126
- async head() {
2127
- return await this.spanAsync("head", async () => {
2128
- const currentHead = assertEx17(await this.getCurrentHead(), () => "Could not find most recent block [currentBlock]");
2129
- const cache = this.hydratedBlockCache;
2130
- const block = await cache.get(currentHead._hash);
2131
- if (!block) {
2132
- this.logger?.error(`Could not find current block with hash ${currentHead._hash}`);
2133
- }
2134
- return assertEx17(block, () => "Could not find current block");
2135
- }, this.context);
2136
- }
2137
- async headBlock() {
2138
- const headBlock = await this.head();
2139
- return headBlock[0];
2140
- }
2141
- async headHash() {
2142
- const headBlock = await this.headBlock();
2143
- return headBlock._hash;
2144
- }
2145
- async headNumber() {
2146
- const headBlock = await this.headBlock();
2147
- return headBlock.block;
2148
- }
2149
- getBlockContextRead() {
2150
- return {
2151
- ...this.context,
2152
- chainMap: this.store.chainMap
2153
- };
2154
- }
2155
- async getChainContextRead() {
2156
- const headBlock = await this.head();
2157
- return {
2158
- ...this.getBlockContextRead(),
2159
- head: headBlock[0]
2160
- };
2161
- }
2162
- async getCurrentHead() {
2163
- const chainArchivist = this.finalizedArchivist;
2164
- const result = assertEx17(await findMostRecentBlock(chainArchivist), () => "Could not find most recent block [getCurrentHead]");
2165
- assertEx17(result?.chain === this._chainId, () => "Chain ID does not match head block chain ID");
2166
- return result;
2167
- }
2168
- };
2169
- __publicField(SimpleFinalizationViewer, "connectionTypes", ["lmdb", "mongo", "memory"]);
2170
- __publicField(SimpleFinalizationViewer, "defaultMoniker", FinalizationViewerMoniker3);
2171
- __publicField(SimpleFinalizationViewer, "dependencies", [ChainContractViewerMoniker2]);
2172
- __publicField(SimpleFinalizationViewer, "monikers", [FinalizationViewerMoniker3]);
2173
- __publicField(SimpleFinalizationViewer, "surface", "node");
2174
- SimpleFinalizationViewer = __decorateClass([
2175
- creatableProvider()
2176
- ], SimpleFinalizationViewer);
2177
-
2178
- // src/test/getSimpleBlockViewerLocator.ts
2179
- async function getTestSimpleBlockViewerLocator({
2180
- minWithdrawalBlocks = 10,
2181
- config = ConfigZod.parse({}),
2182
- finalizedArchivist: finalizedArchivistIn,
2183
- rewardsContract = XYO_ZERO_ADDRESS3,
2184
- stakingTokenAddress = XYO_ZERO_ADDRESS3
2185
- }) {
2186
- const finalizedArchivist = finalizedArchivistIn ?? await buildRandomChainArchivist();
2187
- const context = getTestProviderContext(config);
2188
- context.locator.registerMany([
2189
- SimpleChainContractViewer.factory(SimpleChainContractViewer.dependencies, {
2190
- minWithdrawalBlocks,
2191
- rewardsContract,
2192
- stakingTokenAddress
2193
- }),
2194
- SimpleFinalizationViewer.factory(SimpleFinalizationViewer.dependencies, { finalizedArchivist }),
2195
- SimpleBlockViewer.factory(SimpleBlockViewer.dependencies, { finalizedArchivist })
2196
- ]);
2197
- return context.locator;
2198
- }
2199
-
2200
- // src/test/getTestProviderContext.ts
2201
- function getTestProviderContext2(config) {
2202
- return getTestProviderContext(config);
2203
- }
2204
- export {
2205
- TestGenesisBlockRewardAddress,
2206
- buildRandomChain,
2207
- buildRandomChainArchivist,
2208
- buildRandomTransaction,
2209
- getTestProviderContext2 as getTestProviderContext,
2210
- getTestSimpleBlockViewerLocator
2211
- };
1
+ // src/test/index.ts
2
+ export * from "@xyo-network/xl1-sdk/protocol-sdk/test";
2212
3
  //# sourceMappingURL=index.mjs.map