@xyo-network/xl1-protocol 4.5.1 → 4.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (367) hide show
  1. package/dist/neutral/modules/network-model/models/Bootstrap.d.ts +2 -0
  2. package/dist/neutral/modules/network-model/models/Bootstrap.d.ts.map +1 -1
  3. package/dist/neutral/modules/network-model/staticRest/layout/chainContractManifest.d.ts +10 -4
  4. package/dist/neutral/modules/network-model/staticRest/layout/chainContractManifest.d.ts.map +1 -1
  5. package/dist/neutral/modules/network-model/staticRest/paths/chainState.d.ts +6 -2
  6. package/dist/neutral/modules/network-model/staticRest/paths/chainState.d.ts.map +1 -1
  7. package/dist/neutral/modules/network-model/utils/ExplorerLinks.d.ts +8 -0
  8. package/dist/neutral/modules/network-model/utils/ExplorerLinks.d.ts.map +1 -1
  9. package/dist/neutral/modules/protocol-lib/OpenTelemetryProviders.d.ts +2 -0
  10. package/dist/neutral/modules/protocol-lib/OpenTelemetryProviders.d.ts.map +1 -1
  11. package/dist/neutral/modules/protocol-lib/network/Status.d.ts +6 -0
  12. package/dist/neutral/modules/protocol-lib/network/Status.d.ts.map +1 -1
  13. package/dist/neutral/modules/protocol-lib/permissions/InvokerPermission.d.ts +1 -1
  14. package/dist/neutral/modules/protocol-lib/permissions/InvokerPermission.d.ts.map +1 -1
  15. package/dist/neutral/modules/protocol-lib/permissions/XyoPermissions.d.ts +3 -1
  16. package/dist/neutral/modules/protocol-lib/permissions/XyoPermissions.d.ts.map +1 -1
  17. package/dist/neutral/modules/protocol-lib/providers/DataLake/Client.d.ts +4 -0
  18. package/dist/neutral/modules/protocol-lib/providers/DataLake/Client.d.ts.map +1 -1
  19. package/dist/neutral/modules/protocol-lib/providers/DataLake/Provider.d.ts +4 -2
  20. package/dist/neutral/modules/protocol-lib/providers/DataLake/Provider.d.ts.map +1 -1
  21. package/dist/neutral/modules/protocol-lib/providers/DataLake/Runner.d.ts +1 -1
  22. package/dist/neutral/modules/protocol-lib/providers/DataLake/Runner.d.ts.map +1 -1
  23. package/dist/neutral/modules/protocol-lib/providers/DataLake/Viewer.d.ts +1 -1
  24. package/dist/neutral/modules/protocol-lib/providers/DataLake/Viewer.d.ts.map +1 -1
  25. package/dist/neutral/modules/protocol-lib/providers/TransactionHelper.d.ts +4 -1
  26. package/dist/neutral/modules/protocol-lib/providers/TransactionHelper.d.ts.map +1 -1
  27. package/dist/neutral/modules/protocol-lib/providers/XyoClient.d.ts +7 -1
  28. package/dist/neutral/modules/protocol-lib/providers/XyoClient.d.ts.map +1 -1
  29. package/dist/neutral/modules/protocol-lib/providers/XyoConnection.d.ts +6 -1
  30. package/dist/neutral/modules/protocol-lib/providers/XyoConnection.d.ts.map +1 -1
  31. package/dist/neutral/modules/protocol-lib/providers/XyoGateway.d.ts +3 -3
  32. package/dist/neutral/modules/protocol-lib/providers/XyoGateway.d.ts.map +1 -1
  33. package/dist/neutral/modules/protocol-lib/providers/XyoGatewayRunner.d.ts +13 -2
  34. package/dist/neutral/modules/protocol-lib/providers/XyoGatewayRunner.d.ts.map +1 -1
  35. package/dist/neutral/modules/protocol-lib/providers/XyoNetwork.d.ts +2 -1
  36. package/dist/neutral/modules/protocol-lib/providers/XyoNetwork.d.ts.map +1 -1
  37. package/dist/neutral/modules/protocol-lib/providers/XyoRunner.d.ts +3 -1
  38. package/dist/neutral/modules/protocol-lib/providers/XyoRunner.d.ts.map +1 -1
  39. package/dist/neutral/modules/protocol-lib/providers/signer/XyoSigner.d.ts +2 -1
  40. package/dist/neutral/modules/protocol-lib/providers/signer/XyoSigner.d.ts.map +1 -1
  41. package/dist/neutral/modules/protocol-lib/repository/Repository.d.ts +10 -7
  42. package/dist/neutral/modules/protocol-lib/repository/Repository.d.ts.map +1 -1
  43. package/dist/neutral/modules/protocol-lib/repository/TransactionReadRepository.d.ts +1 -1
  44. package/dist/neutral/modules/protocol-lib/repository/TransactionReadRepository.d.ts.map +1 -1
  45. package/dist/neutral/modules/protocol-lib/repository/TransactionRepository.d.ts +3 -3
  46. package/dist/neutral/modules/protocol-lib/repository/TransactionRepository.d.ts.map +1 -1
  47. package/dist/neutral/modules/protocol-lib/repository/TransactionRepositoryIterator.d.ts +1 -1
  48. package/dist/neutral/modules/protocol-lib/repository/TransactionRepositoryIterator.d.ts.map +1 -1
  49. package/dist/neutral/modules/protocol-lib/repository/TransactionWriteRepository.d.ts +1 -1
  50. package/dist/neutral/modules/protocol-lib/repository/TransactionWriteRepository.d.ts.map +1 -1
  51. package/dist/neutral/modules/protocol-lib/runners/Block.d.ts +4 -1
  52. package/dist/neutral/modules/protocol-lib/runners/Block.d.ts.map +1 -1
  53. package/dist/neutral/modules/protocol-lib/runners/BlockPublish.d.ts +1 -1
  54. package/dist/neutral/modules/protocol-lib/runners/BlockPublish.d.ts.map +1 -1
  55. package/dist/neutral/modules/protocol-lib/runners/ChainStatePublish.d.ts +8 -1
  56. package/dist/neutral/modules/protocol-lib/runners/ChainStatePublish.d.ts.map +1 -1
  57. package/dist/neutral/modules/protocol-lib/runners/DeadLetterQueue.d.ts +8 -1
  58. package/dist/neutral/modules/protocol-lib/runners/DeadLetterQueue.d.ts.map +1 -1
  59. package/dist/neutral/modules/protocol-lib/runners/EvmEventIndexPublish.d.ts +1 -1
  60. package/dist/neutral/modules/protocol-lib/runners/EvmEventIndexPublish.d.ts.map +1 -1
  61. package/dist/neutral/modules/protocol-lib/runners/Finalization.d.ts +3 -1
  62. package/dist/neutral/modules/protocol-lib/runners/Finalization.d.ts.map +1 -1
  63. package/dist/neutral/modules/protocol-lib/runners/IndexPublish.d.ts +1 -1
  64. package/dist/neutral/modules/protocol-lib/runners/IndexPublish.d.ts.map +1 -1
  65. package/dist/neutral/modules/protocol-lib/runners/Mempool.d.ts +9 -2
  66. package/dist/neutral/modules/protocol-lib/runners/Mempool.d.ts.map +1 -1
  67. package/dist/neutral/modules/protocol-lib/status/SystemStatus.d.ts +24 -0
  68. package/dist/neutral/modules/protocol-lib/status/SystemStatus.d.ts.map +1 -1
  69. package/dist/neutral/modules/protocol-lib/summary/StepSummary.d.ts +2 -0
  70. package/dist/neutral/modules/protocol-lib/summary/StepSummary.d.ts.map +1 -1
  71. package/dist/neutral/modules/protocol-lib/summary/stepPlacement.d.ts +2 -0
  72. package/dist/neutral/modules/protocol-lib/summary/stepPlacement.d.ts.map +1 -1
  73. package/dist/neutral/modules/protocol-lib/validation/block/HydratedBlockStateValidationFunction.d.ts +3 -2
  74. package/dist/neutral/modules/protocol-lib/validation/block/HydratedBlockStateValidationFunction.d.ts.map +1 -1
  75. package/dist/neutral/modules/protocol-lib/validation/block/error.d.ts +18 -0
  76. package/dist/neutral/modules/protocol-lib/validation/block/error.d.ts.map +1 -1
  77. package/dist/neutral/modules/protocol-lib/validation/error.d.ts +9 -0
  78. package/dist/neutral/modules/protocol-lib/validation/error.d.ts.map +1 -1
  79. package/dist/neutral/modules/protocol-lib/validation/payload/error.d.ts +2 -0
  80. package/dist/neutral/modules/protocol-lib/validation/payload/error.d.ts.map +1 -1
  81. package/dist/neutral/modules/protocol-lib/validation/transaction/HydratedTransactionStateValidationFunction.d.ts +3 -0
  82. package/dist/neutral/modules/protocol-lib/validation/transaction/HydratedTransactionStateValidationFunction.d.ts.map +1 -1
  83. package/dist/neutral/modules/protocol-lib/validation/transaction/HydratedTransactionValidationFunction.d.ts +4 -1
  84. package/dist/neutral/modules/protocol-lib/validation/transaction/HydratedTransactionValidationFunction.d.ts.map +1 -1
  85. package/dist/neutral/modules/protocol-lib/viewers/Block.d.ts +33 -1
  86. package/dist/neutral/modules/protocol-lib/viewers/Block.d.ts.map +1 -1
  87. package/dist/neutral/modules/protocol-lib/viewers/BlockInvalidation.d.ts +9 -3
  88. package/dist/neutral/modules/protocol-lib/viewers/BlockInvalidation.d.ts.map +1 -1
  89. package/dist/neutral/modules/protocol-lib/viewers/BlockReward.d.ts +2 -1
  90. package/dist/neutral/modules/protocol-lib/viewers/BlockReward.d.ts.map +1 -1
  91. package/dist/neutral/modules/protocol-lib/viewers/BlockValidation.d.ts +10 -4
  92. package/dist/neutral/modules/protocol-lib/viewers/BlockValidation.d.ts.map +1 -1
  93. package/dist/neutral/modules/protocol-lib/viewers/ChainContract.d.ts +10 -1
  94. package/dist/neutral/modules/protocol-lib/viewers/ChainContract.d.ts.map +1 -1
  95. package/dist/neutral/modules/protocol-lib/viewers/ChainState.d.ts +6 -1
  96. package/dist/neutral/modules/protocol-lib/viewers/ChainState.d.ts.map +1 -1
  97. package/dist/neutral/modules/protocol-lib/viewers/DeadLetterQueue.d.ts +7 -5
  98. package/dist/neutral/modules/protocol-lib/viewers/DeadLetterQueue.d.ts.map +1 -1
  99. package/dist/neutral/modules/protocol-lib/viewers/EvmChain.d.ts +1 -1
  100. package/dist/neutral/modules/protocol-lib/viewers/EvmChain.d.ts.map +1 -1
  101. package/dist/neutral/modules/protocol-lib/viewers/Finalization.d.ts +6 -1
  102. package/dist/neutral/modules/protocol-lib/viewers/Finalization.d.ts.map +1 -1
  103. package/dist/neutral/modules/protocol-lib/viewers/Fork.d.ts +3 -2
  104. package/dist/neutral/modules/protocol-lib/viewers/Fork.d.ts.map +1 -1
  105. package/dist/neutral/modules/protocol-lib/viewers/IndexViewer.d.ts +1 -1
  106. package/dist/neutral/modules/protocol-lib/viewers/IndexViewer.d.ts.map +1 -1
  107. package/dist/neutral/modules/protocol-lib/viewers/Mempool.d.ts +7 -5
  108. package/dist/neutral/modules/protocol-lib/viewers/Mempool.d.ts.map +1 -1
  109. package/dist/neutral/modules/protocol-lib/viewers/NetworkStake/NetworkStakeViewer.d.ts +2 -1
  110. package/dist/neutral/modules/protocol-lib/viewers/NetworkStake/NetworkStakeViewer.d.ts.map +1 -1
  111. package/dist/neutral/modules/protocol-lib/viewers/NetworkStake/Rewards/ByPositionViewer.d.ts +1 -1
  112. package/dist/neutral/modules/protocol-lib/viewers/NetworkStake/Rewards/ByPositionViewer.d.ts.map +1 -1
  113. package/dist/neutral/modules/protocol-lib/viewers/NetworkStake/Rewards/ByStakerViewer.d.ts +1 -1
  114. package/dist/neutral/modules/protocol-lib/viewers/NetworkStake/Rewards/ByStakerViewer.d.ts.map +1 -1
  115. package/dist/neutral/modules/protocol-lib/viewers/NetworkStake/Rewards/ByStepViewer.d.ts +1 -1
  116. package/dist/neutral/modules/protocol-lib/viewers/NetworkStake/Rewards/ByStepViewer.d.ts.map +1 -1
  117. package/dist/neutral/modules/protocol-lib/viewers/NetworkStake/Rewards/Options.d.ts +4 -0
  118. package/dist/neutral/modules/protocol-lib/viewers/NetworkStake/Rewards/Options.d.ts.map +1 -1
  119. package/dist/neutral/modules/protocol-lib/viewers/NetworkStake/Rewards/TotalViewer.d.ts +1 -1
  120. package/dist/neutral/modules/protocol-lib/viewers/NetworkStake/Rewards/TotalViewer.d.ts.map +1 -1
  121. package/dist/neutral/modules/protocol-lib/viewers/NetworkStake/Rewards/Viewer.d.ts +5 -1
  122. package/dist/neutral/modules/protocol-lib/viewers/NetworkStake/Rewards/Viewer.d.ts.map +1 -1
  123. package/dist/neutral/modules/protocol-lib/viewers/NetworkStake/Rewards/templates/ByIndexMethodsTemplate.d.ts +1 -1
  124. package/dist/neutral/modules/protocol-lib/viewers/NetworkStake/Rewards/templates/ByIndexMethodsTemplate.d.ts.map +1 -1
  125. package/dist/neutral/modules/protocol-lib/viewers/NetworkStake/Rewards/templates/MethodsTemplate.d.ts +6 -1
  126. package/dist/neutral/modules/protocol-lib/viewers/NetworkStake/Rewards/templates/MethodsTemplate.d.ts.map +1 -1
  127. package/dist/neutral/modules/protocol-lib/viewers/NetworkStakeStepReward.d.ts +22 -4
  128. package/dist/neutral/modules/protocol-lib/viewers/NetworkStakeStepReward.d.ts.map +1 -1
  129. package/dist/neutral/modules/protocol-lib/viewers/Stake.d.ts +16 -2
  130. package/dist/neutral/modules/protocol-lib/viewers/Stake.d.ts.map +1 -1
  131. package/dist/neutral/modules/protocol-lib/viewers/StakeEvents.d.ts +21 -8
  132. package/dist/neutral/modules/protocol-lib/viewers/StakeEvents.d.ts.map +1 -1
  133. package/dist/neutral/modules/protocol-lib/viewers/StakeIntent.d.ts +3 -1
  134. package/dist/neutral/modules/protocol-lib/viewers/StakeIntent.d.ts.map +1 -1
  135. package/dist/neutral/modules/protocol-lib/viewers/StakeTotals.d.ts +8 -1
  136. package/dist/neutral/modules/protocol-lib/viewers/StakeTotals.d.ts.map +1 -1
  137. package/dist/neutral/modules/protocol-lib/viewers/StepStake.d.ts +4 -1
  138. package/dist/neutral/modules/protocol-lib/viewers/StepStake.d.ts.map +1 -1
  139. package/dist/neutral/modules/protocol-lib/viewers/StepViewer.d.ts +16 -2
  140. package/dist/neutral/modules/protocol-lib/viewers/StepViewer.d.ts.map +1 -1
  141. package/dist/neutral/modules/protocol-lib/viewers/Sync.d.ts +1 -1
  142. package/dist/neutral/modules/protocol-lib/viewers/Sync.d.ts.map +1 -1
  143. package/dist/neutral/modules/protocol-lib/viewers/TimeSync.d.ts +1 -1
  144. package/dist/neutral/modules/protocol-lib/viewers/TimeSync.d.ts.map +1 -1
  145. package/dist/neutral/modules/protocol-lib/viewers/Transaction.d.ts +4 -1
  146. package/dist/neutral/modules/protocol-lib/viewers/Transaction.d.ts.map +1 -1
  147. package/dist/neutral/modules/protocol-lib/viewers/TransactionInvalidation.d.ts +7 -3
  148. package/dist/neutral/modules/protocol-lib/viewers/TransactionInvalidation.d.ts.map +1 -1
  149. package/dist/neutral/modules/protocol-lib/viewers/TransactionValidation.d.ts +8 -4
  150. package/dist/neutral/modules/protocol-lib/viewers/TransactionValidation.d.ts.map +1 -1
  151. package/dist/neutral/modules/protocol-lib/viewers/TransferBalance.d.ts +11 -3
  152. package/dist/neutral/modules/protocol-lib/viewers/TransferBalance.d.ts.map +1 -1
  153. package/dist/neutral/modules/protocol-lib/viewers/WindowedBlock.d.ts +3 -1
  154. package/dist/neutral/modules/protocol-lib/viewers/WindowedBlock.d.ts.map +1 -1
  155. package/dist/neutral/modules/protocol-lib/viewers/XyoViewer.d.ts +23 -3
  156. package/dist/neutral/modules/protocol-lib/viewers/XyoViewer.d.ts.map +1 -1
  157. package/dist/neutral/modules/protocol-model/RecordKeyType.d.ts +1 -1
  158. package/dist/neutral/modules/protocol-model/RecordKeyType.d.ts.map +1 -1
  159. package/dist/neutral/modules/protocol-model/Step/StepHash.d.ts +4 -2
  160. package/dist/neutral/modules/protocol-model/Step/StepHash.d.ts.map +1 -1
  161. package/dist/neutral/modules/protocol-model/amount/ShiftedBigIntConfig.d.ts +9 -1
  162. package/dist/neutral/modules/protocol-model/amount/ShiftedBigIntConfig.d.ts.map +1 -1
  163. package/dist/neutral/modules/protocol-model/amount/xl1AmountInstance.d.ts +28 -1
  164. package/dist/neutral/modules/protocol-model/amount/xl1AmountInstance.d.ts.map +1 -1
  165. package/dist/neutral/modules/protocol-model/block/AllowedBlockPayload.d.ts +3 -3
  166. package/dist/neutral/modules/protocol-model/block/AllowedBlockPayload.d.ts.map +1 -1
  167. package/dist/neutral/modules/protocol-model/block/BlockBoundWitness.d.ts +9 -9
  168. package/dist/neutral/modules/protocol-model/block/BlockBoundWitness.d.ts.map +1 -1
  169. package/dist/neutral/modules/protocol-model/block/HydratedBlock.d.ts +16 -16
  170. package/dist/neutral/modules/protocol-model/block/HydratedBlock.d.ts.map +1 -1
  171. package/dist/neutral/modules/protocol-model/block/signed/SignedBlockBoundWitness.d.ts +3 -3
  172. package/dist/neutral/modules/protocol-model/block/signed/SignedBlockBoundWitness.d.ts.map +1 -1
  173. package/dist/neutral/modules/protocol-model/block/signed/SignedBlockBoundWitnessWithHashMeta.d.ts +5 -5
  174. package/dist/neutral/modules/protocol-model/block/signed/SignedBlockBoundWitnessWithHashMeta.d.ts.map +1 -1
  175. package/dist/neutral/modules/protocol-model/block/signed/SignedBlockBoundWitnessWithStorageMeta.d.ts +5 -5
  176. package/dist/neutral/modules/protocol-model/block/signed/SignedBlockBoundWitnessWithStorageMeta.d.ts.map +1 -1
  177. package/dist/neutral/modules/protocol-model/block/unsigned/UnsignedBlockBoundWitness.d.ts +3 -3
  178. package/dist/neutral/modules/protocol-model/block/unsigned/UnsignedBlockBoundWitness.d.ts.map +1 -1
  179. package/dist/neutral/modules/protocol-model/chain/Chain.d.ts +1 -1
  180. package/dist/neutral/modules/protocol-model/chain/Chain.d.ts.map +1 -1
  181. package/dist/neutral/modules/protocol-model/chain/ChainAnalyzer.d.ts +9 -1
  182. package/dist/neutral/modules/protocol-model/chain/ChainAnalyzer.d.ts.map +1 -1
  183. package/dist/neutral/modules/protocol-model/chain/ChainId.d.ts +2 -2
  184. package/dist/neutral/modules/protocol-model/chain/ChainId.d.ts.map +1 -1
  185. package/dist/neutral/modules/protocol-model/fields/Addressable.d.ts +2 -1
  186. package/dist/neutral/modules/protocol-model/fields/Addressable.d.ts.map +1 -1
  187. package/dist/neutral/modules/protocol-model/fields/BlockDuration.d.ts +2 -2
  188. package/dist/neutral/modules/protocol-model/fields/BlockDuration.d.ts.map +1 -1
  189. package/dist/neutral/modules/protocol-model/fields/BlockNumber.d.ts +1 -1
  190. package/dist/neutral/modules/protocol-model/fields/BlockNumber.d.ts.map +1 -1
  191. package/dist/neutral/modules/protocol-model/map/AsyncMap.d.ts +13 -6
  192. package/dist/neutral/modules/protocol-model/map/AsyncMap.d.ts.map +1 -1
  193. package/dist/neutral/modules/protocol-model/map/MapType.d.ts +7 -7
  194. package/dist/neutral/modules/protocol-model/map/MapType.d.ts.map +1 -1
  195. package/dist/neutral/modules/protocol-model/map/SyncMap.d.ts +13 -6
  196. package/dist/neutral/modules/protocol-model/map/SyncMap.d.ts.map +1 -1
  197. package/dist/neutral/modules/protocol-model/model/AccountBalance.d.ts +11 -5
  198. package/dist/neutral/modules/protocol-model/model/AccountBalance.d.ts.map +1 -1
  199. package/dist/neutral/modules/protocol-model/model/ArrayBuffer.d.ts +2 -2
  200. package/dist/neutral/modules/protocol-model/model/ArrayBuffer.d.ts.map +1 -1
  201. package/dist/neutral/modules/protocol-model/model/BlockRange/BlockRange.d.ts +7 -7
  202. package/dist/neutral/modules/protocol-model/model/BlockRange/BlockRange.d.ts.map +1 -1
  203. package/dist/neutral/modules/protocol-model/model/BlockRange/EthBlockRange.d.ts +7 -7
  204. package/dist/neutral/modules/protocol-model/model/BlockRange/EthBlockRange.d.ts.map +1 -1
  205. package/dist/neutral/modules/protocol-model/model/BlockRange/Numberish.d.ts +1 -1
  206. package/dist/neutral/modules/protocol-model/model/BlockRange/Numberish.d.ts.map +1 -1
  207. package/dist/neutral/modules/protocol-model/model/BlockRange/Range.d.ts +3 -3
  208. package/dist/neutral/modules/protocol-model/model/BlockRange/Range.d.ts.map +1 -1
  209. package/dist/neutral/modules/protocol-model/model/BlockRange/xl1BlockRange.d.ts +7 -7
  210. package/dist/neutral/modules/protocol-model/model/BlockRange/xl1BlockRange.d.ts.map +1 -1
  211. package/dist/neutral/modules/protocol-model/model/BlockRate.d.ts +19 -19
  212. package/dist/neutral/modules/protocol-model/model/BlockRate.d.ts.map +1 -1
  213. package/dist/neutral/modules/protocol-model/model/ChainQualification.d.ts +11 -11
  214. package/dist/neutral/modules/protocol-model/model/ChainQualification.d.ts.map +1 -1
  215. package/dist/neutral/modules/protocol-model/model/Context/BaseContext.d.ts +1 -1
  216. package/dist/neutral/modules/protocol-model/model/Context/BaseContext.d.ts.map +1 -1
  217. package/dist/neutral/modules/protocol-model/model/Context/BaseContext.zod.d.ts +7 -7
  218. package/dist/neutral/modules/protocol-model/model/Context/BaseContext.zod.d.ts.map +1 -1
  219. package/dist/neutral/modules/protocol-model/model/Context/BlockContext.d.ts +3 -3
  220. package/dist/neutral/modules/protocol-model/model/Context/BlockContext.d.ts.map +1 -1
  221. package/dist/neutral/modules/protocol-model/model/Context/BlockContext.zod.d.ts +3 -3
  222. package/dist/neutral/modules/protocol-model/model/Context/BlockContext.zod.d.ts.map +1 -1
  223. package/dist/neutral/modules/protocol-model/model/Context/CachingContext.d.ts +1 -1
  224. package/dist/neutral/modules/protocol-model/model/Context/CachingContext.d.ts.map +1 -1
  225. package/dist/neutral/modules/protocol-model/model/Context/CachingContext.zod.d.ts +1 -1
  226. package/dist/neutral/modules/protocol-model/model/Context/CachingContext.zod.d.ts.map +1 -1
  227. package/dist/neutral/modules/protocol-model/model/Context/ChainContext.d.ts +3 -3
  228. package/dist/neutral/modules/protocol-model/model/Context/ChainContext.d.ts.map +1 -1
  229. package/dist/neutral/modules/protocol-model/model/Context/ChainContext.zod.d.ts +3 -3
  230. package/dist/neutral/modules/protocol-model/model/Context/ChainContext.zod.d.ts.map +1 -1
  231. package/dist/neutral/modules/protocol-model/model/Context/HeadContext.d.ts +1 -1
  232. package/dist/neutral/modules/protocol-model/model/Context/HeadContext.d.ts.map +1 -1
  233. package/dist/neutral/modules/protocol-model/model/Context/HeadContext.zod.d.ts +2 -2
  234. package/dist/neutral/modules/protocol-model/model/Context/HeadContext.zod.d.ts.map +1 -1
  235. package/dist/neutral/modules/protocol-model/model/GatewayName.d.ts +1 -1
  236. package/dist/neutral/modules/protocol-model/model/GatewayName.d.ts.map +1 -1
  237. package/dist/neutral/modules/protocol-model/model/HydratedTransaction.d.ts +18 -18
  238. package/dist/neutral/modules/protocol-model/model/HydratedTransaction.d.ts.map +1 -1
  239. package/dist/neutral/modules/protocol-model/model/OpCodes.d.ts +1 -1
  240. package/dist/neutral/modules/protocol-model/model/OpCodes.d.ts.map +1 -1
  241. package/dist/neutral/modules/protocol-model/model/PayloadMap.d.ts +3 -3
  242. package/dist/neutral/modules/protocol-model/model/PayloadMap.d.ts.map +1 -1
  243. package/dist/neutral/modules/protocol-model/model/Permission.d.ts +6 -6
  244. package/dist/neutral/modules/protocol-model/model/Permission.d.ts.map +1 -1
  245. package/dist/neutral/modules/protocol-model/model/Position.d.ts +8 -1
  246. package/dist/neutral/modules/protocol-model/model/Position.d.ts.map +1 -1
  247. package/dist/neutral/modules/protocol-model/model/PositionId.d.ts +1 -1
  248. package/dist/neutral/modules/protocol-model/model/PositionId.d.ts.map +1 -1
  249. package/dist/neutral/modules/protocol-model/model/RangeMultipliers.d.ts +4 -4
  250. package/dist/neutral/modules/protocol-model/model/RangeMultipliers.d.ts.map +1 -1
  251. package/dist/neutral/modules/protocol-model/model/RewardShare.d.ts +1 -1
  252. package/dist/neutral/modules/protocol-model/model/RewardShare.d.ts.map +1 -1
  253. package/dist/neutral/modules/protocol-model/model/RewardsRangeOptions.d.ts +1 -1
  254. package/dist/neutral/modules/protocol-model/model/RewardsRangeOptions.d.ts.map +1 -1
  255. package/dist/neutral/modules/protocol-model/model/Sequence.d.ts +6 -6
  256. package/dist/neutral/modules/protocol-model/model/Sequence.d.ts.map +1 -1
  257. package/dist/neutral/modules/protocol-model/model/Stake.d.ts +3 -3
  258. package/dist/neutral/modules/protocol-model/model/Stake.d.ts.map +1 -1
  259. package/dist/neutral/modules/protocol-model/model/StakeShare.d.ts +1 -1
  260. package/dist/neutral/modules/protocol-model/model/StakeShare.d.ts.map +1 -1
  261. package/dist/neutral/modules/protocol-model/model/SyncStepSummary.d.ts +9 -9
  262. package/dist/neutral/modules/protocol-model/model/SyncStepSummary.d.ts.map +1 -1
  263. package/dist/neutral/modules/protocol-model/model/TimeDomain.d.ts +1 -1
  264. package/dist/neutral/modules/protocol-model/model/TimeDomain.d.ts.map +1 -1
  265. package/dist/neutral/modules/protocol-model/model/TransferPair.d.ts +1 -1
  266. package/dist/neutral/modules/protocol-model/model/TransferPair.d.ts.map +1 -1
  267. package/dist/neutral/modules/protocol-model/model/addresses.d.ts +5 -5
  268. package/dist/neutral/modules/protocol-model/model/addresses.d.ts.map +1 -1
  269. package/dist/neutral/modules/protocol-model/model/rewards.d.ts +7 -7
  270. package/dist/neutral/modules/protocol-model/model/rewards.d.ts.map +1 -1
  271. package/dist/neutral/modules/protocol-model/model/version.d.ts +5 -5
  272. package/dist/neutral/modules/protocol-model/model/version.d.ts.map +1 -1
  273. package/dist/neutral/modules/protocol-model/payload/StepWitness.d.ts +1 -1
  274. package/dist/neutral/modules/protocol-model/payload/StepWitness.d.ts.map +1 -1
  275. package/dist/neutral/modules/protocol-model/payload/application/Exchange/ExchangeOutcome.d.ts +1 -1
  276. package/dist/neutral/modules/protocol-model/payload/application/Exchange/ExchangeOutcome.d.ts.map +1 -1
  277. package/dist/neutral/modules/protocol-model/payload/application/Exchange/ExchangeTerms.d.ts +1 -1
  278. package/dist/neutral/modules/protocol-model/payload/application/Exchange/ExchangeTerms.d.ts.map +1 -1
  279. package/dist/neutral/modules/protocol-model/payload/application/Exchange/PartySecretReveal.d.ts +1 -1
  280. package/dist/neutral/modules/protocol-model/payload/application/Exchange/PartySecretReveal.d.ts.map +1 -1
  281. package/dist/neutral/modules/protocol-model/payload/application/Ordinal/Inscription.d.ts +1 -1
  282. package/dist/neutral/modules/protocol-model/payload/application/Ordinal/Inscription.d.ts.map +1 -1
  283. package/dist/neutral/modules/protocol-model/payload/application/Ordinal/OrdinalTransfer.d.ts +1 -1
  284. package/dist/neutral/modules/protocol-model/payload/application/Ordinal/OrdinalTransfer.d.ts.map +1 -1
  285. package/dist/neutral/modules/protocol-model/payload/application/Xrc20/TokenDeploy.d.ts +1 -1
  286. package/dist/neutral/modules/protocol-model/payload/application/Xrc20/TokenDeploy.d.ts.map +1 -1
  287. package/dist/neutral/modules/protocol-model/payload/application/Xrc20/TokenMint.d.ts +1 -1
  288. package/dist/neutral/modules/protocol-model/payload/application/Xrc20/TokenMint.d.ts.map +1 -1
  289. package/dist/neutral/modules/protocol-model/payload/application/Xrc20/TokenTransfer.d.ts +1 -1
  290. package/dist/neutral/modules/protocol-model/payload/application/Xrc20/TokenTransfer.d.ts.map +1 -1
  291. package/dist/neutral/modules/protocol-model/payload/elevatable/Bridge/BridgeDestinationObservation.d.ts +1 -1
  292. package/dist/neutral/modules/protocol-model/payload/elevatable/Bridge/BridgeDestinationObservation.d.ts.map +1 -1
  293. package/dist/neutral/modules/protocol-model/payload/elevatable/Bridge/BridgeIntent.d.ts +2 -2
  294. package/dist/neutral/modules/protocol-model/payload/elevatable/Bridge/BridgeIntent.d.ts.map +1 -1
  295. package/dist/neutral/modules/protocol-model/payload/elevatable/Bridge/BridgeSourceObservation.d.ts +1 -1
  296. package/dist/neutral/modules/protocol-model/payload/elevatable/Bridge/BridgeSourceObservation.d.ts.map +1 -1
  297. package/dist/neutral/modules/protocol-model/payload/elevatable/ChainStakeIntent.d.ts +2 -1
  298. package/dist/neutral/modules/protocol-model/payload/elevatable/ChainStakeIntent.d.ts.map +1 -1
  299. package/dist/neutral/modules/protocol-model/payload/elevatable/Executable.d.ts +10 -5
  300. package/dist/neutral/modules/protocol-model/payload/elevatable/Executable.d.ts.map +1 -1
  301. package/dist/neutral/modules/protocol-model/payload/elevatable/Hash.d.ts +1 -0
  302. package/dist/neutral/modules/protocol-model/payload/elevatable/Hash.d.ts.map +1 -1
  303. package/dist/neutral/modules/protocol-model/payload/elevatable/StepComplete.d.ts +6 -1
  304. package/dist/neutral/modules/protocol-model/payload/elevatable/StepComplete.d.ts.map +1 -1
  305. package/dist/neutral/modules/protocol-model/provider/Provider.d.ts +2 -1
  306. package/dist/neutral/modules/protocol-model/provider/Provider.d.ts.map +1 -1
  307. package/dist/neutral/modules/protocol-model/transaction/TransactionBoundWitness.d.ts +35 -35
  308. package/dist/neutral/modules/protocol-model/transaction/TransactionBoundWitness.d.ts.map +1 -1
  309. package/dist/neutral/modules/protocol-model/transaction/TransactionFees.d.ts +13 -13
  310. package/dist/neutral/modules/protocol-model/transaction/TransactionFees.d.ts.map +1 -1
  311. package/dist/neutral/modules/protocol-model/transaction/TransactionGasCosts.d.ts +1 -1
  312. package/dist/neutral/modules/protocol-model/transaction/TransactionGasCosts.d.ts.map +1 -1
  313. package/dist/neutral/modules/protocol-model/xl1/attoXl1.d.ts +15 -6
  314. package/dist/neutral/modules/protocol-model/xl1/attoXl1.d.ts.map +1 -1
  315. package/dist/neutral/modules/protocol-model/xl1/femtoXl1.d.ts +15 -6
  316. package/dist/neutral/modules/protocol-model/xl1/femtoXl1.d.ts.map +1 -1
  317. package/dist/neutral/modules/protocol-model/xl1/isXl1Factory.d.ts +38 -5
  318. package/dist/neutral/modules/protocol-model/xl1/isXl1Factory.d.ts.map +1 -1
  319. package/dist/neutral/modules/protocol-model/xl1/microXl1.d.ts +15 -6
  320. package/dist/neutral/modules/protocol-model/xl1/microXl1.d.ts.map +1 -1
  321. package/dist/neutral/modules/protocol-model/xl1/milliXl1.d.ts +15 -6
  322. package/dist/neutral/modules/protocol-model/xl1/milliXl1.d.ts.map +1 -1
  323. package/dist/neutral/modules/protocol-model/xl1/nanoXl1.d.ts +15 -6
  324. package/dist/neutral/modules/protocol-model/xl1/nanoXl1.d.ts.map +1 -1
  325. package/dist/neutral/modules/protocol-model/xl1/picoXl1.d.ts +15 -6
  326. package/dist/neutral/modules/protocol-model/xl1/picoXl1.d.ts.map +1 -1
  327. package/dist/neutral/modules/protocol-model/xl1/xl1.d.ts +15 -6
  328. package/dist/neutral/modules/protocol-model/xl1/xl1.d.ts.map +1 -1
  329. package/dist/neutral/modules/protocol-model/xl1/xl1MaxValue.d.ts +6 -1
  330. package/dist/neutral/modules/protocol-model/xl1/xl1MaxValue.d.ts.map +1 -1
  331. package/dist/neutral/modules/protocol-model/xl1/xl1Units.d.ts +6 -3
  332. package/dist/neutral/modules/protocol-model/xl1/xl1Units.d.ts.map +1 -1
  333. package/dist/neutral/modules/schema/boundwitness/BlockBoundWitness.d.ts +1 -0
  334. package/dist/neutral/modules/schema/boundwitness/BlockBoundWitness.d.ts.map +1 -1
  335. package/dist/neutral/modules/schema/boundwitness/BlockBoundWitnessWithStorageMeta.d.ts +1 -0
  336. package/dist/neutral/modules/schema/boundwitness/BlockBoundWitnessWithStorageMeta.d.ts.map +1 -1
  337. package/dist/neutral/modules/schema/boundwitness/TransactionBoundWitness.d.ts +1 -0
  338. package/dist/neutral/modules/schema/boundwitness/TransactionBoundWitness.d.ts.map +1 -1
  339. package/dist/neutral/modules/schema/boundwitness/TransactionBoundWitnessWithStorageMeta.d.ts +1 -0
  340. package/dist/neutral/modules/schema/boundwitness/TransactionBoundWitnessWithStorageMeta.d.ts.map +1 -1
  341. package/dist/neutral/modules/schema/mergeJsonSchemaRequired.d.ts +6 -0
  342. package/dist/neutral/modules/schema/mergeJsonSchemaRequired.d.ts.map +1 -1
  343. package/dist/neutral/modules/schema/payload/ChainStakeIntent.d.ts +1 -0
  344. package/dist/neutral/modules/schema/payload/ChainStakeIntent.d.ts.map +1 -1
  345. package/dist/neutral/modules/schema/payload/HashPayload.d.ts +1 -0
  346. package/dist/neutral/modules/schema/payload/HashPayload.d.ts.map +1 -1
  347. package/dist/neutral/modules/schema/payload/TransferPayload.d.ts +1 -0
  348. package/dist/neutral/modules/schema/payload/TransferPayload.d.ts.map +1 -1
  349. package/dist/neutral/modules/test/buildRandomTransaction.d.ts +7 -0
  350. package/dist/neutral/modules/test/buildRandomTransaction.d.ts.map +1 -1
  351. package/dist/neutral/modules/test/buildTransaction.d.ts +8 -0
  352. package/dist/neutral/modules/test/buildTransaction.d.ts.map +1 -1
  353. package/dist/neutral/modules/test/createTransferPayload.d.ts +1 -0
  354. package/dist/neutral/modules/test/createTransferPayload.d.ts.map +1 -1
  355. package/dist/neutral/modules/validation/transaction/validators/SignerAuthorization.d.ts +3 -0
  356. package/dist/neutral/modules/validation/transaction/validators/SignerAuthorization.d.ts.map +1 -1
  357. package/dist/neutral/network-model.mjs +12 -2
  358. package/dist/neutral/network-model.mjs.map +2 -2
  359. package/dist/neutral/protocol-lib.mjs +11 -1
  360. package/dist/neutral/protocol-lib.mjs.map +2 -2
  361. package/dist/neutral/protocol-model.mjs +1 -1
  362. package/dist/neutral/protocol-model.mjs.map +2 -2
  363. package/dist/neutral/schema.mjs.map +2 -2
  364. package/dist/neutral/test.mjs.map +2 -2
  365. package/dist/neutral/validation.mjs +2 -2
  366. package/dist/neutral/validation.mjs.map +2 -2
  367. package/package.json +3 -3
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/modules/network-model/icons/local/local.svg", "../../src/modules/network-model/icons/mainnet/mainnet.svg", "../../src/modules/network-model/icons/sequence/testnet.svg", "../../src/modules/network-model/lib/Networks.ts", "../../src/modules/network-model/models/Bootstrap.ts", "../../src/modules/network-model/lib/NetworkDataLakeUrls.ts", "../../src/modules/network-model/modules/node/getNetworkNode.ts", "../../src/modules/network-model/manifest/network.json", "../../src/modules/network-model/manifest/networkManifest.ts", "../../src/modules/network-model/modules/node/getNetworkNodes.ts", "../../src/modules/network-model/modules/node/initNetworkNode.ts", "../../src/modules/network-model/staticRest/layout/chainContractManifest.ts", "../../src/modules/network-model/staticRest/layout/chainManifest.ts", "../../src/modules/network-model/staticRest/paths/chainState.ts", "../../src/modules/network-model/staticRest/paths/finalized.ts", "../../src/modules/network-model/staticRest/paths/indexPaths.ts", "../../src/modules/network-model/staticRest/templates.ts", "../../src/modules/network-model/staticRest/layout/evmEventIndex.ts", "../../src/modules/network-model/staticRest/layout/indexManifest.ts", "../../src/modules/network-model/staticRest/paths/evmEventIndex.ts", "../../src/modules/network-model/utils/ExplorerLinks.ts"],
4
- "sourcesContent": ["<svg id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 256 256\"><g style=\"opacity:.5;\"><path d=\"M154.71,97c.46,2.59,2.5,4.62,5.1,5.05l14.05,2.34,31.71-46.17c4.57-6.65-3.62-14.62-10.14-9.87l-43.68,31.83,2.97,16.82Z\" style=\"fill:#f47f00;\"/><path d=\"M173.86,151.62l-14.05,2.34c-2.6.43-4.64,2.45-5.1,5.05l-2.97,16.82,43.68,31.83c6.52,4.75,14.71-3.21,10.14-9.87l-31.71-46.17Z\" style=\"fill:#f47f00;\"/><path d=\"M82.14,104.38l14.05-2.34c2.6-.43,4.64-2.45,5.1-5.05l2.97-16.82-43.68-31.83c-6.52-4.75-14.71,3.21-10.14,9.87l31.71,46.17Z\" style=\"fill:#f47f00;\"/><path d=\"M101.29,159c-.46-2.59-2.5-4.62-5.1-5.05l-14.05-2.34-31.71,46.17c-4.57,6.65,3.62,14.62,10.14,9.87l43.68-31.83-2.97-16.82Z\" style=\"fill:#f47f00;\"/></g><path d=\"M107.33,104l15.94-90.32c.93-5.3,8.53-5.3,9.47,0l15.94,90.32c.35,2.01,1.94,3.57,3.95,3.91l92.24,15.35c5.36.89,5.36,8.59,0,9.49l-92.24,15.35c-2.01.33-3.59,1.9-3.95,3.91l-15.94,90.32c-.93,5.3-8.53,5.3-9.47,0l-15.94-90.32c-.35-2.01-1.94-3.57-3.95-3.91l-92.24-15.35c-5.36-.89-5.36-8.59,0-9.49l92.24-15.35c2.01-.33,3.59-1.9,3.95-3.91Z\" style=\"fill:#f47f00;\"/></svg>", "<svg id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 256 256\"><path d=\"M154.71,97c.46,2.59,2.5,4.62,5.1,5.05l14.05,2.34,31.71-46.17c4.57-6.65-3.62-14.62-10.14-9.87l-43.68,31.83,2.97,16.82Z\" style=\"fill:#8d8fc6;\"/><path d=\"M173.86,151.62l-14.05,2.34c-2.6.43-4.64,2.45-5.1,5.05l-2.97,16.82,43.68,31.83c6.52,4.75,14.71-3.21,10.14-9.87l-31.71-46.17Z\" style=\"fill:#eb407a;\"/><path d=\"M82.14,104.38l14.05-2.34c2.6-.43,4.64-2.45,5.1-5.05l2.97-16.82-43.68-31.83c-6.52-4.75-14.71,3.21-10.14,9.87l31.71,46.17Z\" style=\"fill:#579fd6;\"/><path d=\"M101.29,159c-.46-2.59-2.5-4.62-5.1-5.05l-14.05-2.34-31.71,46.17c-4.57,6.65,3.62,14.62,10.14,9.87l43.68-31.83-2.97-16.82Z\" style=\"fill:#f27046;\"/><path d=\"M107.33,104l15.94-90.32c.93-5.3,8.53-5.3,9.47,0l15.94,90.32c.35,2.01,1.94,3.57,3.95,3.91l92.24,15.35c5.36.89,5.36,8.59,0,9.49l-92.24,15.35c-2.01.33-3.59,1.9-3.95,3.91l-15.94,90.32c-.93,5.3-8.53,5.3-9.47,0l-15.94-90.32c-.35-2.01-1.94-3.57-3.95-3.91l-92.24-15.35c-5.36-.89-5.36-8.59,0-9.49l92.24-15.35c2.01-.33,3.59-1.9,3.95-3.91Z\" style=\"fill:#572aff;\"/></svg>", "<svg id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 256 256\"><g style=\"opacity:.5;\"><path d=\"M154.71,97c.46,2.59,2.5,4.62,5.1,5.05l14.05,2.34,31.71-46.17c4.57-6.65-3.62-14.62-10.14-9.87l-43.68,31.83,2.97,16.82Z\" style=\"fill:#579fd6;\"/><path d=\"M173.86,151.62l-14.05,2.34c-2.6.43-4.64,2.45-5.1,5.05l-2.97,16.82,43.68,31.83c6.52,4.75,14.71-3.21,10.14-9.87l-31.71-46.17Z\" style=\"fill:#579fd6;\"/><path d=\"M82.14,104.38l14.05-2.34c2.6-.43,4.64-2.45,5.1-5.05l2.97-16.82-43.68-31.83c-6.52-4.75-14.71,3.21-10.14,9.87l31.71,46.17Z\" style=\"fill:#579fd6;\"/><path d=\"M101.29,159c-.46-2.59-2.5-4.62-5.1-5.05l-14.05-2.34-31.71,46.17c-4.57,6.65,3.62,14.62,10.14,9.87l43.68-31.83-2.97-16.82Z\" style=\"fill:#579fd6;\"/></g><path d=\"M107.33,104l15.94-90.32c.93-5.3,8.53-5.3,9.47,0l15.94,90.32c.35,2.01,1.94,3.57,3.95,3.91l92.24,15.35c5.36.89,5.36,8.59,0,9.49l-92.24,15.35c-2.01.33-3.59,1.9-3.95,3.91l-15.94,90.32c-.93,5.3-8.53,5.3-9.47,0l-15.94-90.32c-.35-2.01-1.94-3.57-3.95-3.91l-92.24-15.35c-5.36-.89-5.36-8.59,0-9.49l92.24-15.35c2.01-.33,3.59-1.9,3.95-3.91Z\" style=\"fill:#579fd6;\"/></svg>", "import { asHex } from '@ariestools/sdk'\n\nimport {\n LocalNetworkIconString, MainNetworkIconString, SequenceNetworkIconString,\n} from '../icons/index.ts'\nimport type { NetworkBootstrap, NetworkId } from '../models/index.ts'\nimport { NetworkBootstrapSchema } from '../models/index.ts'\n\n/** Bootstrap configuration for the XYO Layer 1 mainnet. */\nexport const MainNetwork: NetworkBootstrap = {\n chain: asHex('319e667ced10452a117472811130444ded357f26', true),\n description: 'Main Network for XYO Layer 1',\n icon: MainNetworkIconString,\n id: 'mainnet' as NetworkId,\n name: 'Mainnet',\n schema: NetworkBootstrapSchema,\n symbol: 'XL1',\n url: 'https://api.chain.xyo.network',\n explorerUrl: 'https://explore.xyo.network',\n}\n\n/** Bootstrap configuration for the XYO Layer 1 sequence (test) network. */\nexport const SequenceNetwork: NetworkBootstrap = {\n chain: asHex('4b43a753c8024c0e5000e8ac948ac0063ac624bc', true),\n description: 'Test Network for XYO Layer 1',\n icon: SequenceNetworkIconString,\n id: 'sequence' as NetworkId,\n name: 'Sequence',\n schema: NetworkBootstrapSchema,\n symbol: 'XL1',\n url: 'https://beta.api.chain.xyo.network',\n explorerUrl: 'https://beta.explore.xyo.network',\n}\n\n/** Bootstrap configuration for a local development network. */\nexport const LocalNetwork: NetworkBootstrap = {\n description: 'Local Node',\n icon: LocalNetworkIconString,\n id: 'local' as NetworkId,\n name: 'Local',\n schema: NetworkBootstrapSchema,\n symbol: 'XL1',\n url: 'http://localhost:8080',\n explorerUrl: 'http://localhost:3000',\n}\n\n/** Default set of available XYO Layer 1 networks (mainnet, sequence, local). */\nexport const DefaultNetworks: NetworkBootstrap[] = [MainNetwork, SequenceNetwork, LocalNetwork]\n", "import type { Address } from '@ariestools/sdk'\nimport { AsObjectFactory } from '@ariestools/sdk'\nimport type { Payload } from '@xyo-network/sdk'\nimport { asSchema, isPayloadOfSchemaType } from '@xyo-network/sdk'\n\nimport type { ChainId } from '#protocol-lib'\n\nimport type { NetworkId } from './NetworkId.ts'\n\n/** Connection details for accessing a chain endpoint. */\nexport interface ChainConnection {\n /** Chain Identifier - can be a hex (eth contract address) or a string */\n chain?: ChainId\n /** Name of the chain */\n name: string\n /** URL for accessing the network */\n url: string\n}\n\n/** Schema identifier for network bootstrap payloads. */\nexport const NetworkBootstrapSchema = asSchema('network.xyo.network.bootstrap', true)\n/** Schema type for network bootstrap payloads. */\nexport type NetworkBootstrapSchema = typeof NetworkBootstrapSchema\n\n/** Fields describing a chain fork origin. */\nexport interface ChainForkFields {\n /** Block Number at which the chain was forked from */\n forkedAtLastBlockNumber?: string\n /** Hash in the last block the chain was forked from */\n forkedAtLastHash?: string\n /** Address of the forked chain */\n forkedChainId?: Address\n}\n\n/** Core fields describing an XYO network. */\nexport interface NetworkFields {\n /** Description of the network */\n description: string\n /** URL for accessing the network explorer */\n explorerUrl?: string\n /** string representation of the icon (SVG) */\n icon?: string\n /** Machine-readable identifier */\n id: NetworkId\n schema: NetworkBootstrapSchema\n /** Symbol of the network */\n symbol?: string\n}\n\n/** Optional Properties can be found walking the chain to the genesis block */\nexport interface NetworkBootstrapFields extends NetworkFields, ChainForkFields, ChainConnection {}\n\n/** A network bootstrap extended with a flag indicating whether it is a custom network. */\nexport interface Network extends NetworkBootstrap {\n custom: boolean\n}\n\n/** Payload type containing all network bootstrap configuration fields. */\nexport type NetworkBootstrap = Payload<NetworkBootstrapFields, NetworkBootstrapSchema>\n\n/** Type guard that checks whether a payload is a NetworkBootstrap. */\nexport const isNetworkBootstrap = isPayloadOfSchemaType<NetworkBootstrap>(NetworkBootstrapSchema)\n\n/** Optionally casts a value to a Network if it is a valid NetworkBootstrap. */\nexport const asOptionalNetwork = AsObjectFactory.createOptional(isNetworkBootstrap)\n", "import type { GatewayName } from '#protocol-lib'\n\nimport {\n LocalNetwork, MainNetwork, SequenceNetwork,\n} from './Networks.ts'\n\n/** Map of network IDs to their corresponding Data Lake API URLs. */\nexport const NetworkDataLakeUrls = {\n [MainNetwork.id]: 'https://api.archivist.xyo.network/dataLake',\n [SequenceNetwork.id]: 'https://beta.api.archivist.xyo.network/dataLake',\n [LocalNetwork.id]: 'http://localhost:8080/dataLake',\n} as const satisfies Record<GatewayName, string>\n", "import type { AttachableNodeInstance, WalletInstance } from '@xyo-network/sdk'\nimport { ManifestWrapper, ModuleFactoryLocator } from '@xyo-network/sdk'\n\nimport { NetworkNodeManifest } from '../../manifest/index.ts'\n\n/**\n * Creates a network node from the network manifest using the provided wallet.\n *\n * @deprecated Bootstrapping an XYO `NodeInstance` via manifest is no longer supported.\n * Use `connectArchivist` from `@xyo-network/xl1-protocol-sdk` for co-located archivist\n * access, or `GatewayBuilder` from `@xyo-network/xl1-gateway` for remote RPC access.\n */\nexport async function getNetworkNode(wallet: WalletInstance): Promise<AttachableNodeInstance> {\n const wrapper = new ManifestWrapper(NetworkNodeManifest, wallet, new ModuleFactoryLocator())\n const [node] = await wrapper.loadNodes()\n return node\n}\n", "{\n \"$schema\": \"https://raw.githubusercontent.com/XYOracleNetwork/sdk-xyo-client-js/main/packages/manifest/src/schema.json\",\n \"nodes\": [\n {\n \"config\": {\n \"accountPath\": \"44'/60'/1\",\n \"name\": \"Network\",\n \"schema\": \"network.xyo.node.config\"\n },\n \"modules\": {\n \"private\": [],\n \"public\": []\n }\n }\n ],\n \"schema\": \"network.xyo.manifest\"\n}", "import type { PackageManifestPayload } from '@xyo-network/sdk'\n\nimport node from './network.json' with { type: 'json' }\n\n/** @deprecated XYO Node manifest bootstrap is no longer used; wire providers via archivist bindings or JsonRpc instead. */\nexport const NetworkNodeManifest = node as unknown as PackageManifestPayload\n", "import type { AttachableNodeInstance } from '@xyo-network/sdk'\n\nconst networkNodeMap = new Map<string, AttachableNodeInstance>()\n\n/** @deprecated Internal cache for deprecated `initNetworkNode`; do not use. */\nexport const getNetworkNodes = () => {\n return networkNodeMap\n}\n", "import type { AttachableNodeInstance, WalletInstance } from '@xyo-network/sdk'\n\nimport type { NetworkBootstrap } from '../../models/index.ts'\nimport { getNetworkNode } from './getNetworkNode.ts'\nimport { getNetworkNodes } from './getNetworkNodes.ts'\n\n/** @deprecated Use `connectArchivist` archivist bindings (`@xyo-network/xl1-protocol-sdk`) or `GatewayBuilder` (`@xyo-network/xl1-gateway`) instead of bootstrapping an XYO NodeInstance. */\nexport const initNetworkNode = async (activeNetwork: NetworkBootstrap, wallet: WalletInstance): Promise<AttachableNodeInstance> => {\n const networkNodeMap = getNetworkNodes()\n if (networkNodeMap.has(activeNetwork.url)) return networkNodeMap.get(activeNetwork.url)!\n\n const activeNetworkNode = await getNetworkNode(wallet)\n networkNodeMap.set(activeNetwork.url, activeNetworkNode)\n\n return activeNetworkNode\n}\n", "import {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@ariestools/sdk'\nimport { z } from 'zod'\n\nimport {\n ChainIdZod, NumberishZod, type XL1BlockNumber,\n} from '#protocol-lib'\n\nconst ChainContractBlockNumberZod = NumberishZod\n .pipe(z.int().nonnegative())\n .transform(value => value as XL1BlockNumber)\n\n/** Schema id for the chain-contract manifest document. */\nexport const ChainContractManifestSchema = 'network.xyo.s3.chain.contract' as const\n/** Type literal for the chain-contract manifest schema. */\nexport type ChainContractManifestSchema = typeof ChainContractManifestSchema\n\n/** Bumped when the manifest shape changes, so readers can detect a mismatch. */\nexport const CHAIN_CONTRACT_MANIFEST_VERSION = 1\n\n/**\n * Zod schema for the static per-chain config at `chainContractPath()`: the reward contract,\n * staking token, minimum withdrawal window, and (optional) fork lineage. Published once \u2014\n * this data doesn't change per block, unlike `chain/head.json`.\n */\nexport const ChainContractManifestZod = z.object({\n forkedAtBlockNumber: ChainContractBlockNumberZod.nullable().optional(),\n forkedAtHash: z.string().nullable().optional(),\n forkedChainId: z.nullable(ChainIdZod).optional(),\n minWithdrawalBlocks: NumberishZod.pipe(z.int().nonnegative()),\n rewardsContract: z.string(),\n schema: z.literal(ChainContractManifestSchema),\n stakingTokenAddress: z.string(),\n version: z.int().positive(),\n})\n\n/** The static per-chain contract config at `chainContractPath()`. */\nexport type ChainContractManifest = z.infer<typeof ChainContractManifestZod>\n\n/** Numeric-input-tolerant shape accepted when creating a chain-contract manifest. */\nexport type ChainContractManifestInput = z.input<typeof ChainContractManifestZod>\n\n/** Type guard that checks if a value is a valid ChainContractManifest. */\nexport const isChainContractManifest = zodIsFactory(ChainContractManifestZod)\n/** Converts a value to ChainContractManifest, throwing if invalid. */\nexport const asChainContractManifest = zodAsFactory(ChainContractManifestZod, 'asChainContractManifest')\n/** Non-validating cast to ChainContractManifest. */\nexport const toChainContractManifest = zodToFactory(ChainContractManifestZod, 'toChainContractManifest')\n\n/** Builds a validated chain-contract manifest. */\nexport function createChainContractManifest(\n config: Omit<ChainContractManifestInput, 'schema' | 'version'>,\n): ChainContractManifest {\n return ChainContractManifestZod.parse({\n ...config,\n schema: ChainContractManifestSchema,\n version: CHAIN_CONTRACT_MANIFEST_VERSION,\n })\n}\n", "import {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@ariestools/sdk'\nimport { z } from 'zod'\n\nimport { chainManifestPathTemplates } from '../templates.ts'\n\n/** Bumped when the finalized layout changes shape, so readers can detect a mismatch. */\nexport const CHAIN_LAYOUT_VERSION = 1\n\n/** Schema id for the finalized layout manifest document. */\nexport const ChainManifestSchema = 'network.xyo.s3.chain.manifest' as const\n/** Type literal for the chain manifest schema. */\nexport type ChainManifestSchema = typeof ChainManifestSchema\n\n/** Path templates for the finalized + chain-state files. */\nexport const ChainManifestPathsZod = z.object({\n blockByHash: z.string(),\n blockByNumber: z.string(),\n head: z.string(),\n payload: z.string(),\n})\n\n/** Type for chain manifest path templates. */\nexport type ChainManifestPaths = z.infer<typeof ChainManifestPathsZod>\n\n/** Zod schema for the finalized layout descriptor at `manifestPath()`. */\nexport const ChainManifestZod = z.object({\n /** Lowest block number available in the bucket (genesis until pruning exists). */\n earliestBlock: z.int().nonnegative(),\n /** Storage/wire encoding of the published files (also on each object's Content-Encoding). */\n encoding: z.string(),\n paths: ChainManifestPathsZod,\n schema: z.literal(ChainManifestSchema),\n version: z.int().positive(),\n})\n\n/** The finalized layout descriptor at `manifestPath()`. */\nexport type ChainManifest = z.infer<typeof ChainManifestZod>\n\n/** Type guard that checks if a value is a valid ChainManifest. */\nexport const isChainManifest = zodIsFactory(ChainManifestZod)\n/** Converts a value to ChainManifest, throwing if invalid. */\nexport const asChainManifest = zodAsFactory(ChainManifestZod, 'asChainManifest')\n/** Non-validating cast to ChainManifest. */\nexport const toChainManifest = zodToFactory(ChainManifestZod, 'toChainManifest')\n\n/** Builds a validated chain manifest with path templates derived from the path builders. */\nexport function createChainManifest(encoding: string, earliestBlock = 0): ChainManifest {\n return asChainManifest({\n earliestBlock,\n encoding,\n paths: chainManifestPathTemplates(),\n schema: ChainManifestSchema,\n version: CHAIN_LAYOUT_VERSION,\n }, true)\n}\n", "/**\n * Path builders for the chain-state (mutable) bucket.\n *\n * Paths are relative \u2014 no leading slash \u2014 and joined to a base URL by the consumer.\n */\n\n/** The mutable head pointer: the current head SignedHydratedBlockWithHashMeta. */\nexport const headPath = (): string => 'chain/head.json'\n\n/** The chain-contract manifest: static per-chain config (rewards contract, staking token, fork info). Published once. */\nexport const chainContractPath = (): string => 'chain/contract.json'\n", "/**\n * Path builders for the finalized (immutable) bucket.\n *\n * Paths are relative \u2014 no leading slash \u2014 and joined to a base URL by the consumer.\n */\n\n/** The finalized layout descriptor (path templates, encoding, version, earliest block). */\nexport const manifestPath = (): string => 'manifest.json'\n\n/** A block by number: SignedHydratedBlockWithHashMeta. */\nexport const blockNumberPath = (block: number): string => `block/number/${block}.json`\n\n/** A block by hash: the same content as its by-number twin. */\nexport const blockHashPath = (hash: string): string => `block/hash/${hash}.json`\n\n/** A payload by hash: WithHashMeta<Payload>. */\nexport const payloadPath = (hash: string): string => `payload/${hash}.json`\n", "import type { IndexSummaryFamily } from '#protocol-lib'\n\n/**\n * Path builders for the index bucket.\n *\n * The index is a separate, single-writer bucket holding completed step summaries for several\n * families. Paths are relative \u2014 no leading slash \u2014 and joined to a base URL by the consumer.\n */\n\n/** A completed frame's summary for a family, e.g. `blocks/2/5.json`. Immutable once written. */\nexport const indexSummaryPath = (family: IndexSummaryFamily, stepLevel: number, stepIndex: number): string =>\n `${family}/${stepLevel}/${stepIndex}.json`\n\n/** The index layout descriptor (families, max step, encoding, version). */\nexport const indexManifestPath = (): string => 'manifest.json'\n\n/** The indexer's progress watermark (highest block the index is complete through). */\nexport const indexHeadPath = (): string => 'head.json'\n", "import type { IndexSummaryFamily } from '#protocol-lib'\n\nimport { headPath } from './paths/chainState.ts'\nimport {\n blockHashPath, blockNumberPath, payloadPath,\n} from './paths/finalized.ts'\nimport { indexSummaryPath } from './paths/indexPaths.ts'\n\n/** Sentinel values used when deriving self-describing path templates from concrete builders. */\nconst TEMPLATE_SLOTS = {\n block: 0,\n hash: '0'.repeat(64),\n index: 99,\n level: 42,\n} as const\n\n/**\n * Replaces concrete slot literals in a path with named `{placeholder}` segments.\n * Used to derive manifest path templates from the path builders so the two cannot drift.\n */\nexport function toPathTemplate(path: string, slots: { literal: string; name: string }[]): string {\n let result = path\n for (const { literal, name } of slots) {\n if (!result.includes(literal)) {\n throw new Error(`Template slot \"${literal}\" not found in path \"${path}\"`)\n }\n result = result.split(literal).join(`{${name}}`)\n }\n return result\n}\n\n/** Fills `{placeholder}` segments in a manifest path template. Used in conformance tests. */\nexport function interpolatePathTemplate(template: string, values: Record<string, string | number>): string {\n let result = template\n for (const [key, value] of Object.entries(values)) {\n result = result.split(`{${key}}`).join(String(value))\n }\n return result\n}\n\n/** Self-describing template for `blockNumberPath`. */\nexport const blockNumberPathTemplate = (): string =>\n toPathTemplate(blockNumberPath(TEMPLATE_SLOTS.block), [{ literal: String(TEMPLATE_SLOTS.block), name: 'block' }])\n\n/** Self-describing template for `blockHashPath`. */\nexport const blockHashPathTemplate = (): string =>\n toPathTemplate(blockHashPath(TEMPLATE_SLOTS.hash), [{ literal: TEMPLATE_SLOTS.hash, name: 'hash' }])\n\n/** Self-describing template for `payloadPath`. */\nexport const payloadPathTemplate = (): string =>\n toPathTemplate(payloadPath(TEMPLATE_SLOTS.hash), [{ literal: TEMPLATE_SLOTS.hash, name: 'hash' }])\n\n/** Self-describing templates for finalized + chain-state files carried in the chain manifest. */\nexport function chainManifestPathTemplates(): {\n blockByHash: string\n blockByNumber: string\n head: string\n payload: string\n} {\n return {\n blockByHash: blockHashPathTemplate(),\n blockByNumber: blockNumberPathTemplate(),\n head: headPath(),\n payload: payloadPathTemplate(),\n }\n}\n\n/** Self-describing template for one index summary family, e.g. `blocks/{level}/{index}.json`. */\nexport function indexSummaryPathTemplate(family: IndexSummaryFamily): string {\n const path = indexSummaryPath(family, TEMPLATE_SLOTS.level, TEMPLATE_SLOTS.index)\n return toPathTemplate(path, [\n { literal: String(TEMPLATE_SLOTS.level), name: 'level' },\n { literal: String(TEMPLATE_SLOTS.index), name: 'index' },\n ])\n}\n", "import {\n EthAddressZod, HexRegExMinMaxMixedCaseWithPrefix,\n zodAsFactory,\n} from '@ariestools/sdk'\nimport { z } from 'zod/mini'\n\nconst EvmHashZod = z.string().check(z.regex(HexRegExMinMaxMixedCaseWithPrefix(32, 32)))\nconst EvmDataZod = z.string().check(z.regex(/^0x[\\dA-Fa-f]*$/))\n\n/** JSON-safe representation of one raw EVM contract log. */\nexport const EvmEventIndexLogZod = z.object({\n address: EthAddressZod,\n blockHash: EvmHashZod,\n blockNumber: z.number(),\n data: EvmDataZod,\n index: z.number(),\n topics: z.array(EvmHashZod),\n transactionHash: EvmHashZod,\n transactionIndex: z.number(),\n})\n\n/** Type for one raw EVM contract log in the event index. */\nexport type EvmEventIndexLog = z.infer<typeof EvmEventIndexLogZod>\n\n/** One immutable, address-scoped range of finalized EVM logs. */\nexport const EvmEventIndexFrameZod = z.object({\n fromBlock: z.number(),\n logs: z.array(EvmEventIndexLogZod),\n toBlock: z.number(),\n})\n\n/** Type for one immutable event-index frame. */\nexport type EvmEventIndexFrame = z.infer<typeof EvmEventIndexFrameZod>\n\n/** Static description of one contract event index. */\nexport const EvmEventIndexManifestZod = z.object({\n address: EthAddressZod,\n chainId: z.string(),\n deploymentBlock: z.number(),\n frameSize: z.number(),\n layout: z.literal('evm-contract-events-v1'),\n})\n\n/** Type for the event-index manifest document. */\nexport type EvmEventIndexManifest = z.infer<typeof EvmEventIndexManifestZod>\n\n/**\n * Mutable pointer written after all frames through `block` are durable.\n * Wire schema for the `EvmEventIndexHead` runner contract in `#protocol-lib`.\n */\nexport const EvmEventIndexHeadZod = z.object({\n address: EthAddressZod,\n block: z.number(),\n chainId: z.string(),\n hash: EvmHashZod,\n})\n\n/** Converts a value to EvmEventIndexFrame, throwing if invalid. */\nexport const asEvmEventIndexFrame = zodAsFactory(EvmEventIndexFrameZod, 'asEvmEventIndexFrame')\n/** Converts a value to EvmEventIndexHead, throwing if invalid. */\nexport const asEvmEventIndexHead = zodAsFactory(EvmEventIndexHeadZod, 'asEvmEventIndexHead')\n/** Converts a value to EvmEventIndexManifest, throwing if invalid. */\nexport const asEvmEventIndexManifest = zodAsFactory(EvmEventIndexManifestZod, 'asEvmEventIndexManifest')\n", "import {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@ariestools/sdk'\nimport { z } from 'zod'\n\nimport type { IndexSummaryFamily, IndexWatermark } from '#protocol-lib'\n\nimport { indexSummaryPathTemplate } from '../templates.ts'\n\n/** Bumped when the on-disk index layout changes shape, so readers can detect a mismatch. */\nexport const INDEX_LAYOUT_VERSION = 1\n\n/** Schema id for the index manifest document (the static layout descriptor). */\nexport const IndexManifestSchema = 'network.xyo.s3.index.manifest' as const\n/** Type literal for the index manifest schema. */\nexport type IndexManifestSchema = typeof IndexManifestSchema\n\n/** Schema id for the index head document (the progress watermark). */\nexport const IndexHeadSchema = 'network.xyo.s3.index.head' as const\n/** Type literal for the index head schema. */\nexport type IndexHeadSchema = typeof IndexHeadSchema\n\n/** Per-family descriptor carried in the manifest. */\nexport const IndexManifestFamilyZod = z.object({\n /** Highest step level published for this family. */\n maxStep: z.int().nonnegative(),\n /** Path template for the family's frames, e.g. `blocks/{level}/{index}.json`. */\n path: z.string(),\n})\n\n/** Type for one index manifest family descriptor. */\nexport type IndexManifestFamily = z.infer<typeof IndexManifestFamilyZod>\n\nconst indexFamiliesZod = z.object({\n balances: IndexManifestFamilyZod,\n blocks: IndexManifestFamilyZod,\n schemas: IndexManifestFamilyZod,\n transfers: IndexManifestFamilyZod,\n})\n\n/** Zod schema for the static index layout descriptor at `indexManifestPath()`. */\nexport const IndexManifestZod = z.object({\n families: indexFamiliesZod,\n schema: z.literal(IndexManifestSchema),\n version: z.int().positive(),\n})\n\n/** The static index layout descriptor at `indexManifestPath()`. */\nexport type IndexManifest = z.infer<typeof IndexManifestZod>\n\n/** Type guard that checks if a value is a valid IndexManifest. */\nexport const isIndexManifest = zodIsFactory(IndexManifestZod)\n/** Converts a value to IndexManifest, throwing if invalid. */\nexport const asIndexManifest = zodAsFactory(IndexManifestZod, 'asIndexManifest')\n/** Non-validating cast to IndexManifest. */\nexport const toIndexManifest = zodToFactory(IndexManifestZod, 'toIndexManifest')\n\n/** Completed frame counts per family in the index head watermark. */\nexport const IndexHeadFamiliesZod = z.object({\n balances: z.int().nonnegative(),\n blocks: z.int().nonnegative(),\n schemas: z.int().nonnegative(),\n transfers: z.int().nonnegative(),\n})\n\n/** Zod schema for the index progress watermark at `indexHeadPath()`. */\nexport const IndexHeadZod = z.object({\n /** Highest block the index is complete through. */\n block: z.int().nonnegative(),\n /** Completed frame counts per family. */\n families: IndexHeadFamiliesZod,\n /** Hash of that block. */\n hash: z.string(),\n schema: z.literal(IndexHeadSchema),\n /** ISO-8601 timestamp of the last update. */\n updatedAt: z.string(),\n version: z.int().positive(),\n})\n\n/** The index progress watermark at `indexHeadPath()`. */\nexport type IndexHead = z.infer<typeof IndexHeadZod>\n\n/** Type guard that checks if a value is a valid IndexHead. */\nexport const isIndexHead = zodIsFactory(IndexHeadZod)\n/** Converts a value to IndexHead, throwing if invalid. */\nexport const asIndexHead = zodAsFactory(IndexHeadZod, 'asIndexHead')\n/** Non-validating cast to IndexHead. */\nexport const toIndexHead = zodToFactory(IndexHeadZod, 'toIndexHead')\n\n/** Builds per-family manifest descriptors with path templates derived from the path builders. */\nexport function createIndexManifestFamilies(\n maxSteps: Record<IndexSummaryFamily, number>,\n): Record<IndexSummaryFamily, IndexManifestFamily> {\n return {\n balances: { maxStep: maxSteps.balances, path: indexSummaryPathTemplate('balances') },\n blocks: { maxStep: maxSteps.blocks, path: indexSummaryPathTemplate('blocks') },\n schemas: { maxStep: maxSteps.schemas, path: indexSummaryPathTemplate('schemas') },\n transfers: { maxStep: maxSteps.transfers, path: indexSummaryPathTemplate('transfers') },\n }\n}\n\n/** Builds a validated index manifest with path templates derived from the path builders. */\nexport function createIndexManifest(maxSteps: Record<IndexSummaryFamily, number>): IndexManifest {\n return asIndexManifest({\n families: createIndexManifestFamilies(maxSteps),\n schema: IndexManifestSchema,\n version: INDEX_LAYOUT_VERSION,\n }, true)\n}\n\n/** Builds a validated index head watermark from an indexer progress snapshot. */\nexport function createIndexHead(watermark: IndexWatermark, updatedAt?: string): IndexHead {\n const now = new Date()\n const resolvedUpdatedAt = updatedAt ?? now.toISOString()\n return asIndexHead({\n block: watermark.block,\n families: watermark.families,\n hash: watermark.hash,\n schema: IndexHeadSchema,\n updatedAt: resolvedUpdatedAt,\n version: INDEX_LAYOUT_VERSION,\n }, true)\n}\n", "import type { EthAddress } from '@ariestools/sdk'\n\nfunction root(address: EthAddress): string {\n return `evm/events/${address.toLowerCase()}`\n}\n\n/** Path of one immutable event-index frame within the index bucket. */\nexport function evmEventIndexFramePath(address: EthAddress, frameIndex: number): string {\n return `${root(address)}/frames/${frameIndex}.json`\n}\n\n/** Path of the mutable event-index head pointer within the index bucket. */\nexport function evmEventIndexHeadPath(address: EthAddress): string {\n return `${root(address)}/head.json`\n}\n\n/** Path of the event-index manifest within the index bucket. */\nexport function evmEventIndexManifestPath(address: EthAddress): string {\n return `${root(address)}/manifest.json`\n}\n\n/** Path of the mutable partial-frame tail within the index bucket. */\nexport function evmEventIndexTailPath(address: EthAddress): string {\n return `${root(address)}/tail.json`\n}\n", "import type { NetworkId } from '../models/index.ts'\n\n/** Builds URLs to pages on an XL1 chain explorer for a specific network. */\nexport class ExplorerLinks {\n readonly explorerUrl: string\n readonly networkId: NetworkId\n\n constructor(explorerUrl: string, networkId: NetworkId) {\n this.explorerUrl = explorerUrl.replace(/\\/+$/, '')\n this.networkId = networkId\n }\n\n /** `{explorerUrl}/xl1/{networkId}/address/{address}` */\n address(address: string): string {\n return `${this.network()}/address/${address}`\n }\n\n /** `{explorerUrl}/xl1/{networkId}/addresses` */\n addresses(): string {\n return `${this.network()}/addresses`\n }\n\n /** `{explorerUrl}/xl1/{networkId}/block/{blockHash}` */\n block(blockHash: string): string {\n return `${this.network()}/block/${blockHash}`\n }\n\n /** `{explorerUrl}/xl1/{networkId}/block/number/{blockNumber}` */\n blockByNumber(blockNumber: number | string): string {\n return `${this.network()}/block/number/${blockNumber}`\n }\n\n /** `{explorerUrl}/xl1/{networkId}/block/{blockHash}/payload/{payloadHash}[/{render}]` */\n blockPayload(blockHash: string, payloadHash: string, render?: string): string {\n const base = `${this.network()}/block/${blockHash}/payload/${payloadHash}`\n return render === undefined ? base : `${base}/${render}`\n }\n\n /** `{explorerUrl}/xl1/{networkId}/blocks` */\n blocks(): string {\n return `${this.network()}/blocks`\n }\n\n /** `{explorerUrl}/xl1/{networkId}` */\n network(): string {\n return `${this.explorerUrl}/xl1/${this.networkId}`\n }\n\n /** `{explorerUrl}/xl1/{networkId}/transaction/{txHash}` */\n transaction(txHash: string): string {\n return `${this.network()}/transaction/${txHash}`\n }\n\n /** `{explorerUrl}/xl1/{networkId}/transaction/{txHash}/payload/{payloadHash}[/{render}]` */\n transactionPayload(txHash: string, payloadHash: string, render?: string): string {\n const base = `${this.network()}/transaction/${txHash}/payload/${payloadHash}`\n return render === undefined ? base : `${base}/${render}`\n }\n\n /** `{explorerUrl}/xl1/{networkId}/transactions` */\n transactions(): string {\n return `${this.network()}/transactions`\n }\n}\n"],
5
- "mappings": ";AAAA;;;ACAA;;;ACAA;;;ACAA,SAAS,aAAa;;;ACCtB,SAAS,uBAAuB;AAEhC,SAAS,UAAU,6BAA6B;AAiBzC,IAAM,y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W,SAAY,OAAO,GAAG,IAAI,IAAI,MAAM;AAAA,EACxD;AAAA;AAAA,EAGA,eAAuB;AACrB,WAAO,GAAG,KAAK,QAAQ,CAAC;AAAA,EAC1B;AACF;",
4
+ "sourcesContent": ["<svg id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 256 256\"><g style=\"opacity:.5;\"><path d=\"M154.71,97c.46,2.59,2.5,4.62,5.1,5.05l14.05,2.34,31.71-46.17c4.57-6.65-3.62-14.62-10.14-9.87l-43.68,31.83,2.97,16.82Z\" style=\"fill:#f47f00;\"/><path d=\"M173.86,151.62l-14.05,2.34c-2.6.43-4.64,2.45-5.1,5.05l-2.97,16.82,43.68,31.83c6.52,4.75,14.71-3.21,10.14-9.87l-31.71-46.17Z\" style=\"fill:#f47f00;\"/><path d=\"M82.14,104.38l14.05-2.34c2.6-.43,4.64-2.45,5.1-5.05l2.97-16.82-43.68-31.83c-6.52-4.75-14.71,3.21-10.14,9.87l31.71,46.17Z\" style=\"fill:#f47f00;\"/><path d=\"M101.29,159c-.46-2.59-2.5-4.62-5.1-5.05l-14.05-2.34-31.71,46.17c-4.57,6.65,3.62,14.62,10.14,9.87l43.68-31.83-2.97-16.82Z\" style=\"fill:#f47f00;\"/></g><path d=\"M107.33,104l15.94-90.32c.93-5.3,8.53-5.3,9.47,0l15.94,90.32c.35,2.01,1.94,3.57,3.95,3.91l92.24,15.35c5.36.89,5.36,8.59,0,9.49l-92.24,15.35c-2.01.33-3.59,1.9-3.95,3.91l-15.94,90.32c-.93,5.3-8.53,5.3-9.47,0l-15.94-90.32c-.35-2.01-1.94-3.57-3.95-3.91l-92.24-15.35c-5.36-.89-5.36-8.59,0-9.49l92.24-15.35c2.01-.33,3.59-1.9,3.95-3.91Z\" style=\"fill:#f47f00;\"/></svg>", "<svg id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 256 256\"><path d=\"M154.71,97c.46,2.59,2.5,4.62,5.1,5.05l14.05,2.34,31.71-46.17c4.57-6.65-3.62-14.62-10.14-9.87l-43.68,31.83,2.97,16.82Z\" style=\"fill:#8d8fc6;\"/><path d=\"M173.86,151.62l-14.05,2.34c-2.6.43-4.64,2.45-5.1,5.05l-2.97,16.82,43.68,31.83c6.52,4.75,14.71-3.21,10.14-9.87l-31.71-46.17Z\" style=\"fill:#eb407a;\"/><path d=\"M82.14,104.38l14.05-2.34c2.6-.43,4.64-2.45,5.1-5.05l2.97-16.82-43.68-31.83c-6.52-4.75-14.71,3.21-10.14,9.87l31.71,46.17Z\" style=\"fill:#579fd6;\"/><path d=\"M101.29,159c-.46-2.59-2.5-4.62-5.1-5.05l-14.05-2.34-31.71,46.17c-4.57,6.65,3.62,14.62,10.14,9.87l43.68-31.83-2.97-16.82Z\" style=\"fill:#f27046;\"/><path d=\"M107.33,104l15.94-90.32c.93-5.3,8.53-5.3,9.47,0l15.94,90.32c.35,2.01,1.94,3.57,3.95,3.91l92.24,15.35c5.36.89,5.36,8.59,0,9.49l-92.24,15.35c-2.01.33-3.59,1.9-3.95,3.91l-15.94,90.32c-.93,5.3-8.53,5.3-9.47,0l-15.94-90.32c-.35-2.01-1.94-3.57-3.95-3.91l-92.24-15.35c-5.36-.89-5.36-8.59,0-9.49l92.24-15.35c2.01-.33,3.59-1.9,3.95-3.91Z\" style=\"fill:#572aff;\"/></svg>", "<svg id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 256 256\"><g style=\"opacity:.5;\"><path d=\"M154.71,97c.46,2.59,2.5,4.62,5.1,5.05l14.05,2.34,31.71-46.17c4.57-6.65-3.62-14.62-10.14-9.87l-43.68,31.83,2.97,16.82Z\" style=\"fill:#579fd6;\"/><path d=\"M173.86,151.62l-14.05,2.34c-2.6.43-4.64,2.45-5.1,5.05l-2.97,16.82,43.68,31.83c6.52,4.75,14.71-3.21,10.14-9.87l-31.71-46.17Z\" style=\"fill:#579fd6;\"/><path d=\"M82.14,104.38l14.05-2.34c2.6-.43,4.64-2.45,5.1-5.05l2.97-16.82-43.68-31.83c-6.52-4.75-14.71,3.21-10.14,9.87l31.71,46.17Z\" style=\"fill:#579fd6;\"/><path d=\"M101.29,159c-.46-2.59-2.5-4.62-5.1-5.05l-14.05-2.34-31.71,46.17c-4.57,6.65,3.62,14.62,10.14,9.87l43.68-31.83-2.97-16.82Z\" style=\"fill:#579fd6;\"/></g><path d=\"M107.33,104l15.94-90.32c.93-5.3,8.53-5.3,9.47,0l15.94,90.32c.35,2.01,1.94,3.57,3.95,3.91l92.24,15.35c5.36.89,5.36,8.59,0,9.49l-92.24,15.35c-2.01.33-3.59,1.9-3.95,3.91l-15.94,90.32c-.93,5.3-8.53,5.3-9.47,0l-15.94-90.32c-.35-2.01-1.94-3.57-3.95-3.91l-92.24-15.35c-5.36-.89-5.36-8.59,0-9.49l92.24-15.35c2.01-.33,3.59-1.9,3.95-3.91Z\" style=\"fill:#579fd6;\"/></svg>", "import { asHex } from '@ariestools/sdk'\n\nimport {\n LocalNetworkIconString, MainNetworkIconString, SequenceNetworkIconString,\n} from '../icons/index.ts'\nimport type { NetworkBootstrap, NetworkId } from '../models/index.ts'\nimport { NetworkBootstrapSchema } from '../models/index.ts'\n\n/** Bootstrap configuration for the XYO Layer 1 mainnet. */\nexport const MainNetwork: NetworkBootstrap = {\n chain: asHex('319e667ced10452a117472811130444ded357f26', true),\n description: 'Main Network for XYO Layer 1',\n icon: MainNetworkIconString,\n id: 'mainnet' as NetworkId,\n name: 'Mainnet',\n schema: NetworkBootstrapSchema,\n symbol: 'XL1',\n url: 'https://api.chain.xyo.network',\n explorerUrl: 'https://explore.xyo.network',\n}\n\n/** Bootstrap configuration for the XYO Layer 1 sequence (test) network. */\nexport const SequenceNetwork: NetworkBootstrap = {\n chain: asHex('4b43a753c8024c0e5000e8ac948ac0063ac624bc', true),\n description: 'Test Network for XYO Layer 1',\n icon: SequenceNetworkIconString,\n id: 'sequence' as NetworkId,\n name: 'Sequence',\n schema: NetworkBootstrapSchema,\n symbol: 'XL1',\n url: 'https://beta.api.chain.xyo.network',\n explorerUrl: 'https://beta.explore.xyo.network',\n}\n\n/** Bootstrap configuration for a local development network. */\nexport const LocalNetwork: NetworkBootstrap = {\n description: 'Local Node',\n icon: LocalNetworkIconString,\n id: 'local' as NetworkId,\n name: 'Local',\n schema: NetworkBootstrapSchema,\n symbol: 'XL1',\n url: 'http://localhost:8080',\n explorerUrl: 'http://localhost:3000',\n}\n\n/** Default set of available XYO Layer 1 networks (mainnet, sequence, local). */\nexport const DefaultNetworks: NetworkBootstrap[] = [MainNetwork, SequenceNetwork, LocalNetwork]\n", "import type { Address } from '@ariestools/sdk'\nimport { AsObjectFactory } from '@ariestools/sdk'\nimport type { Payload } from '@xyo-network/sdk'\nimport { asSchema, isPayloadOfSchemaType } from '@xyo-network/sdk'\n\nimport type { ChainId } from '#protocol-lib'\n\nimport type { NetworkId } from './NetworkId.ts'\n\n/** Connection details for accessing a chain endpoint. */\nexport interface ChainConnection {\n /** Chain Identifier - can be a hex (eth contract address) or a string */\n chain?: ChainId\n /** Name of the chain */\n name: string\n /** URL for accessing the network */\n url: string\n}\n\n/** Schema identifier for network bootstrap payloads. */\nexport const NetworkBootstrapSchema = asSchema('network.xyo.network.bootstrap', true)\n/** Schema type for network bootstrap payloads. */\nexport type NetworkBootstrapSchema = typeof NetworkBootstrapSchema\n\n/** Fields describing a chain fork origin. */\nexport interface ChainForkFields {\n /** Block Number at which the chain was forked from */\n forkedAtLastBlockNumber?: string\n /** Hash in the last block the chain was forked from */\n forkedAtLastHash?: string\n /** Address of the forked chain */\n forkedChainId?: Address\n}\n\n/** Core fields describing an XYO network. */\nexport interface NetworkFields {\n /** Description of the network */\n description: string\n /** URL for accessing the network explorer */\n explorerUrl?: string\n /** string representation of the icon (SVG) */\n icon?: string\n /** Machine-readable identifier */\n id: NetworkId\n /** Schema identifier for this configuration or payload. */\n schema: NetworkBootstrapSchema\n /** Symbol of the network */\n symbol?: string\n}\n\n/** Optional Properties can be found walking the chain to the genesis block */\nexport interface NetworkBootstrapFields extends NetworkFields, ChainForkFields, ChainConnection {}\n\n/** A network bootstrap extended with a flag indicating whether it is a custom network. */\nexport interface Network extends NetworkBootstrap {\n /** Application-defined bootstrap configuration passed through unchanged. */\n custom: boolean\n}\n\n/** Payload type containing all network bootstrap configuration fields. */\nexport type NetworkBootstrap = Payload<NetworkBootstrapFields, NetworkBootstrapSchema>\n\n/** Type guard that checks whether a payload is a NetworkBootstrap. */\nexport const isNetworkBootstrap = isPayloadOfSchemaType<NetworkBootstrap>(NetworkBootstrapSchema)\n\n/** Optionally casts a value to a Network if it is a valid NetworkBootstrap. */\nexport const asOptionalNetwork = AsObjectFactory.createOptional(isNetworkBootstrap)\n", "import type { GatewayName } from '#protocol-lib'\n\nimport {\n LocalNetwork, MainNetwork, SequenceNetwork,\n} from './Networks.ts'\n\n/** Map of network IDs to their corresponding Data Lake API URLs. */\nexport const NetworkDataLakeUrls = {\n [MainNetwork.id]: 'https://api.archivist.xyo.network/dataLake',\n [SequenceNetwork.id]: 'https://beta.api.archivist.xyo.network/dataLake',\n [LocalNetwork.id]: 'http://localhost:8080/dataLake',\n} as const satisfies Record<GatewayName, string>\n", "import type { AttachableNodeInstance, WalletInstance } from '@xyo-network/sdk'\nimport { ManifestWrapper, ModuleFactoryLocator } from '@xyo-network/sdk'\n\nimport { NetworkNodeManifest } from '../../manifest/index.ts'\n\n/**\n * Creates a network node from the network manifest using the provided wallet.\n *\n * @deprecated Bootstrapping an XYO `NodeInstance` via manifest is no longer supported.\n * Use `connectArchivist` from `@xyo-network/xl1-protocol-sdk` for co-located archivist\n * access, or `GatewayBuilder` from `@xyo-network/xl1-gateway` for remote RPC access.\n */\nexport async function getNetworkNode(wallet: WalletInstance): Promise<AttachableNodeInstance> {\n const wrapper = new ManifestWrapper(NetworkNodeManifest, wallet, new ModuleFactoryLocator())\n const [node] = await wrapper.loadNodes()\n return node\n}\n", "{\n \"$schema\": \"https://raw.githubusercontent.com/XYOracleNetwork/sdk-xyo-client-js/main/packages/manifest/src/schema.json\",\n \"nodes\": [\n {\n \"config\": {\n \"accountPath\": \"44'/60'/1\",\n \"name\": \"Network\",\n \"schema\": \"network.xyo.node.config\"\n },\n \"modules\": {\n \"private\": [],\n \"public\": []\n }\n }\n ],\n \"schema\": \"network.xyo.manifest\"\n}", "import type { PackageManifestPayload } from '@xyo-network/sdk'\n\nimport node from './network.json' with { type: 'json' }\n\n/** @deprecated XYO Node manifest bootstrap is no longer used; wire providers via archivist bindings or JsonRpc instead. */\nexport const NetworkNodeManifest = node as unknown as PackageManifestPayload\n", "import type { AttachableNodeInstance } from '@xyo-network/sdk'\n\nconst networkNodeMap = new Map<string, AttachableNodeInstance>()\n\n/** @deprecated Internal cache for deprecated `initNetworkNode`; do not use. */\nexport const getNetworkNodes = () => {\n return networkNodeMap\n}\n", "import type { AttachableNodeInstance, WalletInstance } from '@xyo-network/sdk'\n\nimport type { NetworkBootstrap } from '../../models/index.ts'\nimport { getNetworkNode } from './getNetworkNode.ts'\nimport { getNetworkNodes } from './getNetworkNodes.ts'\n\n/** @deprecated Use `connectArchivist` archivist bindings (`@xyo-network/xl1-protocol-sdk`) or `GatewayBuilder` (`@xyo-network/xl1-gateway`) instead of bootstrapping an XYO NodeInstance. */\nexport const initNetworkNode = async (activeNetwork: NetworkBootstrap, wallet: WalletInstance): Promise<AttachableNodeInstance> => {\n const networkNodeMap = getNetworkNodes()\n if (networkNodeMap.has(activeNetwork.url)) return networkNodeMap.get(activeNetwork.url)!\n\n const activeNetworkNode = await getNetworkNode(wallet)\n networkNodeMap.set(activeNetwork.url, activeNetworkNode)\n\n return activeNetworkNode\n}\n", "import {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@ariestools/sdk'\nimport { z } from 'zod'\n\nimport {\n ChainIdZod, NumberishZod, type XL1BlockNumber,\n} from '#protocol-lib'\n\nconst ChainContractBlockNumberZod = NumberishZod\n .pipe(z.int().nonnegative())\n .transform(value => value as XL1BlockNumber)\n\n/** Schema id for the chain-contract manifest document. */\nexport const ChainContractManifestSchema = 'network.xyo.s3.chain.contract' as const\n/** Type literal for the chain-contract manifest schema. */\nexport type ChainContractManifestSchema = typeof ChainContractManifestSchema\n\n/** Bumped when the manifest shape changes, so readers can detect a mismatch. */\nexport const CHAIN_CONTRACT_MANIFEST_VERSION = 1\n\n/**\n * Zod schema for the static per-chain config at `chainContractByIdPath(chainId)`: the reward\n * contract, staking token, minimum withdrawal window, and (optional) fork edge. Immutable\n * once published \u2014 does not change per block, unlike `chain/head.json`.\n */\nexport const ChainContractManifestZod = z.object({\n /** Self-identifying chain id (matches the path key). Optional for older fixtures. */\n chainId: z.optional(ChainIdZod),\n forkedAtBlockNumber: ChainContractBlockNumberZod.nullable().optional(),\n forkedAtHash: z.string().nullable().optional(),\n forkedChainId: z.nullable(ChainIdZod).optional(),\n minWithdrawalBlocks: NumberishZod.pipe(z.int().nonnegative()),\n rewardsContract: z.string(),\n schema: z.literal(ChainContractManifestSchema),\n stakingTokenAddress: z.string(),\n version: z.int().positive(),\n})\n\n/** The static per-chain contract config at `chainContractByIdPath(chainId)`. */\nexport type ChainContractManifest = z.infer<typeof ChainContractManifestZod>\n\n/** Numeric-input-tolerant shape accepted when creating a chain-contract manifest. */\nexport type ChainContractManifestInput = z.input<typeof ChainContractManifestZod>\n\n/** Type guard that checks if a value is a valid ChainContractManifest. */\nexport const isChainContractManifest = zodIsFactory(ChainContractManifestZod)\n/** Converts a value to ChainContractManifest, throwing if invalid. */\nexport const asChainContractManifest = zodAsFactory(ChainContractManifestZod, 'asChainContractManifest')\n/** Non-validating cast to ChainContractManifest. */\nexport const toChainContractManifest = zodToFactory(ChainContractManifestZod, 'toChainContractManifest')\n\n/** Builds a validated chain-contract manifest. */\nexport function createChainContractManifest(\n config: Omit<ChainContractManifestInput, 'schema' | 'version'>,\n): ChainContractManifest {\n return ChainContractManifestZod.parse({\n ...config,\n schema: ChainContractManifestSchema,\n version: CHAIN_CONTRACT_MANIFEST_VERSION,\n })\n}\n", "import {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@ariestools/sdk'\nimport { z } from 'zod'\n\nimport { chainManifestPathTemplates } from '../templates.ts'\n\n/** Bumped when the finalized layout changes shape, so readers can detect a mismatch. */\nexport const CHAIN_LAYOUT_VERSION = 1\n\n/** Schema id for the finalized layout manifest document. */\nexport const ChainManifestSchema = 'network.xyo.s3.chain.manifest' as const\n/** Type literal for the chain manifest schema. */\nexport type ChainManifestSchema = typeof ChainManifestSchema\n\n/** Path templates for the finalized + chain-state files. */\nexport const ChainManifestPathsZod = z.object({\n blockByHash: z.string(),\n blockByNumber: z.string(),\n head: z.string(),\n payload: z.string(),\n})\n\n/** Type for chain manifest path templates. */\nexport type ChainManifestPaths = z.infer<typeof ChainManifestPathsZod>\n\n/** Zod schema for the finalized layout descriptor at `manifestPath()`. */\nexport const ChainManifestZod = z.object({\n /** Lowest block number available in the bucket (genesis until pruning exists). */\n earliestBlock: z.int().nonnegative(),\n /** Storage/wire encoding of the published files (also on each object's Content-Encoding). */\n encoding: z.string(),\n paths: ChainManifestPathsZod,\n schema: z.literal(ChainManifestSchema),\n version: z.int().positive(),\n})\n\n/** The finalized layout descriptor at `manifestPath()`. */\nexport type ChainManifest = z.infer<typeof ChainManifestZod>\n\n/** Type guard that checks if a value is a valid ChainManifest. */\nexport const isChainManifest = zodIsFactory(ChainManifestZod)\n/** Converts a value to ChainManifest, throwing if invalid. */\nexport const asChainManifest = zodAsFactory(ChainManifestZod, 'asChainManifest')\n/** Non-validating cast to ChainManifest. */\nexport const toChainManifest = zodToFactory(ChainManifestZod, 'toChainManifest')\n\n/** Builds a validated chain manifest with path templates derived from the path builders. */\nexport function createChainManifest(encoding: string, earliestBlock = 0): ChainManifest {\n return asChainManifest({\n earliestBlock,\n encoding,\n paths: chainManifestPathTemplates(),\n schema: ChainManifestSchema,\n version: CHAIN_LAYOUT_VERSION,\n }, true)\n}\n", "/**\n * Path builders for the chain-state (mutable) bucket.\n *\n * Paths are relative \u2014 no leading slash \u2014 and joined to a base URL by the consumer.\n */\n\n/** The mutable head pointer: the current head SignedHydratedBlockWithHashMeta. */\nexport const headPath = (): string => 'chain/head.json'\n\n/**\n * Immutable per-chain contract config (rewards contract, staking token, fork edge).\n * Sparse map keyed by chain id \u2014 the current chain's file is the entry point; fork\n * ancestors are sibling files under the same folder. `chainId` is normalized to lowercase.\n */\nexport const chainContractByIdPath = (chainId: string): string => `chain/contracts/${chainId.toLowerCase()}.json`\n", "/**\n * Path builders for the finalized (immutable) bucket.\n *\n * Paths are relative \u2014 no leading slash \u2014 and joined to a base URL by the consumer.\n */\n\n/** The finalized layout descriptor (path templates, encoding, version, earliest block). */\nexport const manifestPath = (): string => 'manifest.json'\n\n/** A block by number: SignedHydratedBlockWithHashMeta. */\nexport const blockNumberPath = (block: number): string => `block/number/${block}.json`\n\n/** A block by hash: the same content as its by-number twin. */\nexport const blockHashPath = (hash: string): string => `block/hash/${hash}.json`\n\n/** A payload by hash: WithHashMeta<Payload>. */\nexport const payloadPath = (hash: string): string => `payload/${hash}.json`\n", "import type { IndexSummaryFamily } from '#protocol-lib'\n\n/**\n * Path builders for the index bucket.\n *\n * The index is a separate, single-writer bucket holding completed step summaries for several\n * families. Paths are relative \u2014 no leading slash \u2014 and joined to a base URL by the consumer.\n */\n\n/** A completed frame's summary for a family, e.g. `blocks/2/5.json`. Immutable once written. */\nexport const indexSummaryPath = (family: IndexSummaryFamily, stepLevel: number, stepIndex: number): string =>\n `${family}/${stepLevel}/${stepIndex}.json`\n\n/** The index layout descriptor (families, max step, encoding, version). */\nexport const indexManifestPath = (): string => 'manifest.json'\n\n/** The indexer's progress watermark (highest block the index is complete through). */\nexport const indexHeadPath = (): string => 'head.json'\n", "import type { IndexSummaryFamily } from '#protocol-lib'\n\nimport { headPath } from './paths/chainState.ts'\nimport {\n blockHashPath, blockNumberPath, payloadPath,\n} from './paths/finalized.ts'\nimport { indexSummaryPath } from './paths/indexPaths.ts'\n\n/** Sentinel values used when deriving self-describing path templates from concrete builders. */\nconst TEMPLATE_SLOTS = {\n block: 0,\n hash: '0'.repeat(64),\n index: 99,\n level: 42,\n} as const\n\n/**\n * Replaces concrete slot literals in a path with named `{placeholder}` segments.\n * Used to derive manifest path templates from the path builders so the two cannot drift.\n */\nexport function toPathTemplate(path: string, slots: { literal: string; name: string }[]): string {\n let result = path\n for (const { literal, name } of slots) {\n if (!result.includes(literal)) {\n throw new Error(`Template slot \"${literal}\" not found in path \"${path}\"`)\n }\n result = result.split(literal).join(`{${name}}`)\n }\n return result\n}\n\n/** Fills `{placeholder}` segments in a manifest path template. Used in conformance tests. */\nexport function interpolatePathTemplate(template: string, values: Record<string, string | number>): string {\n let result = template\n for (const [key, value] of Object.entries(values)) {\n result = result.split(`{${key}}`).join(String(value))\n }\n return result\n}\n\n/** Self-describing template for `blockNumberPath`. */\nexport const blockNumberPathTemplate = (): string =>\n toPathTemplate(blockNumberPath(TEMPLATE_SLOTS.block), [{ literal: String(TEMPLATE_SLOTS.block), name: 'block' }])\n\n/** Self-describing template for `blockHashPath`. */\nexport const blockHashPathTemplate = (): string =>\n toPathTemplate(blockHashPath(TEMPLATE_SLOTS.hash), [{ literal: TEMPLATE_SLOTS.hash, name: 'hash' }])\n\n/** Self-describing template for `payloadPath`. */\nexport const payloadPathTemplate = (): string =>\n toPathTemplate(payloadPath(TEMPLATE_SLOTS.hash), [{ literal: TEMPLATE_SLOTS.hash, name: 'hash' }])\n\n/** Self-describing templates for finalized + chain-state files carried in the chain manifest. */\nexport function chainManifestPathTemplates(): {\n blockByHash: string\n blockByNumber: string\n head: string\n payload: string\n} {\n return {\n blockByHash: blockHashPathTemplate(),\n blockByNumber: blockNumberPathTemplate(),\n head: headPath(),\n payload: payloadPathTemplate(),\n }\n}\n\n/** Self-describing template for one index summary family, e.g. `blocks/{level}/{index}.json`. */\nexport function indexSummaryPathTemplate(family: IndexSummaryFamily): string {\n const path = indexSummaryPath(family, TEMPLATE_SLOTS.level, TEMPLATE_SLOTS.index)\n return toPathTemplate(path, [\n { literal: String(TEMPLATE_SLOTS.level), name: 'level' },\n { literal: String(TEMPLATE_SLOTS.index), name: 'index' },\n ])\n}\n", "import {\n EthAddressZod, HexRegExMinMaxMixedCaseWithPrefix,\n zodAsFactory,\n} from '@ariestools/sdk'\nimport { z } from 'zod/mini'\n\nconst EvmHashZod = z.string().check(z.regex(HexRegExMinMaxMixedCaseWithPrefix(32, 32)))\nconst EvmDataZod = z.string().check(z.regex(/^0x[\\dA-Fa-f]*$/))\n\n/** JSON-safe representation of one raw EVM contract log. */\nexport const EvmEventIndexLogZod = z.object({\n address: EthAddressZod,\n blockHash: EvmHashZod,\n blockNumber: z.number(),\n data: EvmDataZod,\n index: z.number(),\n topics: z.array(EvmHashZod),\n transactionHash: EvmHashZod,\n transactionIndex: z.number(),\n})\n\n/** Type for one raw EVM contract log in the event index. */\nexport type EvmEventIndexLog = z.infer<typeof EvmEventIndexLogZod>\n\n/** One immutable, address-scoped range of finalized EVM logs. */\nexport const EvmEventIndexFrameZod = z.object({\n fromBlock: z.number(),\n logs: z.array(EvmEventIndexLogZod),\n toBlock: z.number(),\n})\n\n/** Type for one immutable event-index frame. */\nexport type EvmEventIndexFrame = z.infer<typeof EvmEventIndexFrameZod>\n\n/** Static description of one contract event index. */\nexport const EvmEventIndexManifestZod = z.object({\n address: EthAddressZod,\n chainId: z.string(),\n deploymentBlock: z.number(),\n frameSize: z.number(),\n layout: z.literal('evm-contract-events-v1'),\n})\n\n/** Type for the event-index manifest document. */\nexport type EvmEventIndexManifest = z.infer<typeof EvmEventIndexManifestZod>\n\n/**\n * Mutable pointer written after all frames through `block` are durable.\n * Wire schema for the `EvmEventIndexHead` runner contract in `#protocol-lib`.\n */\nexport const EvmEventIndexHeadZod = z.object({\n address: EthAddressZod,\n block: z.number(),\n chainId: z.string(),\n hash: EvmHashZod,\n})\n\n/** Converts a value to EvmEventIndexFrame, throwing if invalid. */\nexport const asEvmEventIndexFrame = zodAsFactory(EvmEventIndexFrameZod, 'asEvmEventIndexFrame')\n/** Converts a value to EvmEventIndexHead, throwing if invalid. */\nexport const asEvmEventIndexHead = zodAsFactory(EvmEventIndexHeadZod, 'asEvmEventIndexHead')\n/** Converts a value to EvmEventIndexManifest, throwing if invalid. */\nexport const asEvmEventIndexManifest = zodAsFactory(EvmEventIndexManifestZod, 'asEvmEventIndexManifest')\n", "import {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@ariestools/sdk'\nimport { z } from 'zod'\n\nimport type { IndexSummaryFamily, IndexWatermark } from '#protocol-lib'\n\nimport { indexSummaryPathTemplate } from '../templates.ts'\n\n/** Bumped when the on-disk index layout changes shape, so readers can detect a mismatch. */\nexport const INDEX_LAYOUT_VERSION = 1\n\n/** Schema id for the index manifest document (the static layout descriptor). */\nexport const IndexManifestSchema = 'network.xyo.s3.index.manifest' as const\n/** Type literal for the index manifest schema. */\nexport type IndexManifestSchema = typeof IndexManifestSchema\n\n/** Schema id for the index head document (the progress watermark). */\nexport const IndexHeadSchema = 'network.xyo.s3.index.head' as const\n/** Type literal for the index head schema. */\nexport type IndexHeadSchema = typeof IndexHeadSchema\n\n/** Per-family descriptor carried in the manifest. */\nexport const IndexManifestFamilyZod = z.object({\n /** Highest step level published for this family. */\n maxStep: z.int().nonnegative(),\n /** Path template for the family's frames, e.g. `blocks/{level}/{index}.json`. */\n path: z.string(),\n})\n\n/** Type for one index manifest family descriptor. */\nexport type IndexManifestFamily = z.infer<typeof IndexManifestFamilyZod>\n\nconst indexFamiliesZod = z.object({\n balances: IndexManifestFamilyZod,\n blocks: IndexManifestFamilyZod,\n schemas: IndexManifestFamilyZod,\n transfers: IndexManifestFamilyZod,\n})\n\n/** Zod schema for the static index layout descriptor at `indexManifestPath()`. */\nexport const IndexManifestZod = z.object({\n families: indexFamiliesZod,\n schema: z.literal(IndexManifestSchema),\n version: z.int().positive(),\n})\n\n/** The static index layout descriptor at `indexManifestPath()`. */\nexport type IndexManifest = z.infer<typeof IndexManifestZod>\n\n/** Type guard that checks if a value is a valid IndexManifest. */\nexport const isIndexManifest = zodIsFactory(IndexManifestZod)\n/** Converts a value to IndexManifest, throwing if invalid. */\nexport const asIndexManifest = zodAsFactory(IndexManifestZod, 'asIndexManifest')\n/** Non-validating cast to IndexManifest. */\nexport const toIndexManifest = zodToFactory(IndexManifestZod, 'toIndexManifest')\n\n/** Completed frame counts per family in the index head watermark. */\nexport const IndexHeadFamiliesZod = z.object({\n balances: z.int().nonnegative(),\n blocks: z.int().nonnegative(),\n schemas: z.int().nonnegative(),\n transfers: z.int().nonnegative(),\n})\n\n/** Zod schema for the index progress watermark at `indexHeadPath()`. */\nexport const IndexHeadZod = z.object({\n /** Highest block the index is complete through. */\n block: z.int().nonnegative(),\n /** Completed frame counts per family. */\n families: IndexHeadFamiliesZod,\n /** Hash of that block. */\n hash: z.string(),\n schema: z.literal(IndexHeadSchema),\n /** ISO-8601 timestamp of the last update. */\n updatedAt: z.string(),\n version: z.int().positive(),\n})\n\n/** The index progress watermark at `indexHeadPath()`. */\nexport type IndexHead = z.infer<typeof IndexHeadZod>\n\n/** Type guard that checks if a value is a valid IndexHead. */\nexport const isIndexHead = zodIsFactory(IndexHeadZod)\n/** Converts a value to IndexHead, throwing if invalid. */\nexport const asIndexHead = zodAsFactory(IndexHeadZod, 'asIndexHead')\n/** Non-validating cast to IndexHead. */\nexport const toIndexHead = zodToFactory(IndexHeadZod, 'toIndexHead')\n\n/** Builds per-family manifest descriptors with path templates derived from the path builders. */\nexport function createIndexManifestFamilies(\n maxSteps: Record<IndexSummaryFamily, number>,\n): Record<IndexSummaryFamily, IndexManifestFamily> {\n return {\n balances: { maxStep: maxSteps.balances, path: indexSummaryPathTemplate('balances') },\n blocks: { maxStep: maxSteps.blocks, path: indexSummaryPathTemplate('blocks') },\n schemas: { maxStep: maxSteps.schemas, path: indexSummaryPathTemplate('schemas') },\n transfers: { maxStep: maxSteps.transfers, path: indexSummaryPathTemplate('transfers') },\n }\n}\n\n/** Builds a validated index manifest with path templates derived from the path builders. */\nexport function createIndexManifest(maxSteps: Record<IndexSummaryFamily, number>): IndexManifest {\n return asIndexManifest({\n families: createIndexManifestFamilies(maxSteps),\n schema: IndexManifestSchema,\n version: INDEX_LAYOUT_VERSION,\n }, true)\n}\n\n/** Builds a validated index head watermark from an indexer progress snapshot. */\nexport function createIndexHead(watermark: IndexWatermark, updatedAt?: string): IndexHead {\n const now = new Date()\n const resolvedUpdatedAt = updatedAt ?? now.toISOString()\n return asIndexHead({\n block: watermark.block,\n families: watermark.families,\n hash: watermark.hash,\n schema: IndexHeadSchema,\n updatedAt: resolvedUpdatedAt,\n version: INDEX_LAYOUT_VERSION,\n }, true)\n}\n", "import type { EthAddress } from '@ariestools/sdk'\n\nfunction root(address: EthAddress): string {\n return `evm/events/${address.toLowerCase()}`\n}\n\n/** Path of one immutable event-index frame within the index bucket. */\nexport function evmEventIndexFramePath(address: EthAddress, frameIndex: number): string {\n return `${root(address)}/frames/${frameIndex}.json`\n}\n\n/** Path of the mutable event-index head pointer within the index bucket. */\nexport function evmEventIndexHeadPath(address: EthAddress): string {\n return `${root(address)}/head.json`\n}\n\n/** Path of the event-index manifest within the index bucket. */\nexport function evmEventIndexManifestPath(address: EthAddress): string {\n return `${root(address)}/manifest.json`\n}\n\n/** Path of the mutable partial-frame tail within the index bucket. */\nexport function evmEventIndexTailPath(address: EthAddress): string {\n return `${root(address)}/tail.json`\n}\n", "import type { NetworkId } from '../models/index.ts'\n\n/** Builds URLs to pages on an XL1 chain explorer for a specific network. */\nexport class ExplorerLinks {\n /** Explorer origin with trailing slashes removed. */\n readonly explorerUrl: string\n /** Network identifier included in generated links. */\n readonly networkId: NetworkId\n\n /**\n * Creates a link builder for one explorer deployment and network.\n *\n * @param explorerUrl Base explorer URL, with or without trailing slashes.\n * @param networkId Network segment included in every generated URL.\n */\n constructor(explorerUrl: string, networkId: NetworkId) {\n this.explorerUrl = explorerUrl.replace(/\\/+$/, '')\n this.networkId = networkId\n }\n\n /** `{explorerUrl}/xl1/{networkId}/address/{address}` */\n address(address: string): string {\n return `${this.network()}/address/${address}`\n }\n\n /** `{explorerUrl}/xl1/{networkId}/addresses` */\n addresses(): string {\n return `${this.network()}/addresses`\n }\n\n /** `{explorerUrl}/xl1/{networkId}/block/{blockHash}` */\n block(blockHash: string): string {\n return `${this.network()}/block/${blockHash}`\n }\n\n /** `{explorerUrl}/xl1/{networkId}/block/number/{blockNumber}` */\n blockByNumber(blockNumber: number | string): string {\n return `${this.network()}/block/number/${blockNumber}`\n }\n\n /** `{explorerUrl}/xl1/{networkId}/block/{blockHash}/payload/{payloadHash}[/{render}]` */\n blockPayload(blockHash: string, payloadHash: string, render?: string): string {\n const base = `${this.network()}/block/${blockHash}/payload/${payloadHash}`\n return render === undefined ? base : `${base}/${render}`\n }\n\n /** `{explorerUrl}/xl1/{networkId}/blocks` */\n blocks(): string {\n return `${this.network()}/blocks`\n }\n\n /** `{explorerUrl}/xl1/{networkId}` */\n network(): string {\n return `${this.explorerUrl}/xl1/${this.networkId}`\n }\n\n /** `{explorerUrl}/xl1/{networkId}/transaction/{txHash}` */\n transaction(txHash: string): string {\n return `${this.network()}/transaction/${txHash}`\n }\n\n /** `{explorerUrl}/xl1/{networkId}/transaction/{txHash}/payload/{payloadHash}[/{render}]` */\n transactionPayload(txHash: string, payloadHash: string, render?: string): string {\n const base = `${this.network()}/transaction/${txHash}/payload/${payloadHash}`\n return render === undefined ? base : `${base}/${render}`\n }\n\n /** `{explorerUrl}/xl1/{networkId}/transactions` */\n transactions(): string {\n return `${this.network()}/transactions`\n }\n}\n"],
5
+ "mappings": ";AAAA;;;ACAA;;;ACAA;;;ACAA,SAAS,aAAa;;;ACCtB,SAAS,uBAAuB;AAEhC,SAAS,UAAU,6BAA6B;AAiBzC,IAAM,yBAAyB,SAAS,iCAAiC,IAAI;AA2C7E,IAAM,qBAAqB,sBAAwC,sBAAsB;AAGzF,IAAM,oBAAoB,gBAAgB,eAAe,kBAAkB;;;ADzD3E,I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O,WAAW,SAAY,OAAO,GAAG,IAAI,IAAI,MAAM;AAAA,EACxD;AAAA;AAAA,EAGA,eAAuB;AACrB,WAAO,GAAG,KAAK,QAAQ,CAAC;AAAA,EAC1B;AACF;",
6
6
  "names": ["networkNodeMap", "zodAsFactory", "zodIsFactory", "zodToFactory", "z", "z", "zodIsFactory", "zodAsFactory", "zodToFactory", "zodAsFactory", "z", "zodAsFactory", "zodIsFactory", "zodToFactory", "z", "z", "zodIsFactory", "zodAsFactory", "zodToFactory"]
7
7
  }
@@ -144,7 +144,7 @@ function elevatedPayloads([tx, payloads]) {
144
144
  const opCodes = (tx.script ?? []).filter((operation) => operation.startsWith(`${ELEVATE_OPCODE}|`));
145
145
  const elevatedPayloads2 = [];
146
146
  for (const opCode of opCodes) {
147
- const [code, hash] = opCode.split("|");
147
+ const [code, hash] = opCode.split("|", 2);
148
148
  if (code === ELEVATE_OPCODE) {
149
149
  const elevatedPayload = payloads.find((payload) => payload._hash === hash);
150
150
  if (isAllowedBlockPayload(elevatedPayload)) {
@@ -220,10 +220,15 @@ var ValidationErrorZod = z.object({
220
220
  value: z.unknown()
221
221
  }).loose();
222
222
  var ValidationError = class extends Error {
223
+ /** `cause` value exposed by this contract. */
223
224
  cause;
225
+ /** Protocol hash identifying this value. */
224
226
  hash;
227
+ /** `message` value exposed by this contract. */
225
228
  message;
229
+ /** `value` value exposed by this contract. */
226
230
  value;
231
+ /** Creates an instance with the supplied configuration. */
227
232
  constructor(hash, value, message, cause) {
228
233
  super(message);
229
234
  this.hash = hash;
@@ -256,8 +261,11 @@ var HydratedBlockStateValidationErrorZod = ValidationErrorZod.extend({
256
261
  offendingTransactionHashes: z2.array(HashZod2).optional()
257
262
  }).loose();
258
263
  var HydratedBlockStateValidationError = class extends ValidationError {
264
+ /** `chainId` value exposed by this contract. */
259
265
  chainId;
266
+ /** `offendingTransactionHashes` value exposed by this contract. */
260
267
  offendingTransactionHashes;
268
+ /** Creates an instance with the supplied configuration. */
261
269
  constructor(hash, chainId, value, message, cause, offendingTransactionHashes) {
262
270
  super(hash, value, message, cause);
263
271
  this.chainId = chainId;
@@ -284,7 +292,9 @@ var isHydratedBoundWitnessValidationError = (error) => {
284
292
 
285
293
  // src/modules/protocol-lib/validation/payload/error.ts
286
294
  var InBlockPayloadValidationError = class extends ValidationError {
295
+ /** XL1 block number associated with this value. */
287
296
  block;
297
+ /** Creates an instance with the supplied configuration. */
288
298
  constructor(hash, block, value, message, cause) {
289
299
  super(hash, value, message, cause);
290
300
  this.block = block;