@xyo-network/xl1-protocol-sdk 1.18.0 → 1.18.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 (219) hide show
  1. package/dist/neutral/CreatableProvider/AbstractCreatableProvider.d.ts +52 -21
  2. package/dist/neutral/CreatableProvider/AbstractCreatableProvider.d.ts.map +1 -1
  3. package/dist/neutral/CreatableProvider/CreatableProvider.d.ts +13 -8
  4. package/dist/neutral/CreatableProvider/CreatableProvider.d.ts.map +1 -1
  5. package/dist/neutral/CreatableProvider/CreatableProviderRegistry.d.ts +2 -4
  6. package/dist/neutral/CreatableProvider/CreatableProviderRegistry.d.ts.map +1 -1
  7. package/dist/neutral/CreatableProvider/ProviderFactory.d.ts +6 -4
  8. package/dist/neutral/CreatableProvider/ProviderFactory.d.ts.map +1 -1
  9. package/dist/neutral/CreatableProvider/ProviderFactoryLocator.d.ts +7 -7
  10. package/dist/neutral/CreatableProvider/ProviderFactoryLocator.d.ts.map +1 -1
  11. package/dist/neutral/CreatableProvider/ProviderFactoryLocatorInstance.d.ts +3 -2
  12. package/dist/neutral/CreatableProvider/ProviderFactoryLocatorInstance.d.ts.map +1 -1
  13. package/dist/neutral/actor/Actor.d.ts +176 -0
  14. package/dist/neutral/actor/Actor.d.ts.map +1 -0
  15. package/dist/neutral/actor/index.d.ts +2 -0
  16. package/dist/neutral/actor/index.d.ts.map +1 -0
  17. package/dist/neutral/block/hydrate/allHashesPresent.d.ts +2 -2
  18. package/dist/neutral/block/hydrate/allHashesPresent.d.ts.map +1 -1
  19. package/dist/neutral/block/hydrate/hydrateBlock.d.ts +2 -2
  20. package/dist/neutral/block/hydrate/hydrateBlock.d.ts.map +1 -1
  21. package/dist/neutral/config/Api.d.ts +1 -1
  22. package/dist/neutral/config/Api.d.ts.map +1 -1
  23. package/dist/neutral/config/Bridge.d.ts +41 -21
  24. package/dist/neutral/config/Bridge.d.ts.map +1 -1
  25. package/dist/neutral/config/Chain.d.ts +7 -3
  26. package/dist/neutral/config/Chain.d.ts.map +1 -1
  27. package/dist/neutral/config/Config.d.ts +48 -20
  28. package/dist/neutral/config/Config.d.ts.map +1 -1
  29. package/dist/neutral/config/Evm.d.ts +1 -1
  30. package/dist/neutral/config/Evm.d.ts.map +1 -1
  31. package/dist/neutral/config/Log.d.ts +2 -2
  32. package/dist/neutral/config/Log.d.ts.map +1 -1
  33. package/dist/neutral/config/Mempool.d.ts +1 -1
  34. package/dist/neutral/config/Mempool.d.ts.map +1 -1
  35. package/dist/neutral/config/Producer.d.ts +6 -2
  36. package/dist/neutral/config/Producer.d.ts.map +1 -1
  37. package/dist/neutral/config/RewardRedemptionApi.d.ts +1 -1
  38. package/dist/neutral/config/RewardRedemptionApi.d.ts.map +1 -1
  39. package/dist/neutral/config/Services.d.ts +1 -1
  40. package/dist/neutral/config/Services.d.ts.map +1 -1
  41. package/dist/neutral/config/Telemetry.d.ts +11 -4
  42. package/dist/neutral/config/Telemetry.d.ts.map +1 -1
  43. package/dist/neutral/config/UsageMeta.d.ts +1 -1
  44. package/dist/neutral/config/UsageMeta.d.ts.map +1 -1
  45. package/dist/neutral/config/Validation.d.ts +11 -3
  46. package/dist/neutral/config/Validation.d.ts.map +1 -1
  47. package/dist/neutral/config/index.d.ts +1 -0
  48. package/dist/neutral/config/index.d.ts.map +1 -1
  49. package/dist/neutral/config/storage/Storage.d.ts +1 -1
  50. package/dist/neutral/config/storage/Storage.d.ts.map +1 -1
  51. package/dist/neutral/config/storage/driver/Mongo.d.ts +1 -1
  52. package/dist/neutral/config/storage/driver/Mongo.d.ts.map +1 -1
  53. package/dist/neutral/eip-712/Payloads/EIP712Data.d.ts +4 -4
  54. package/dist/neutral/eip-712/Payloads/EIP712Data.d.ts.map +1 -1
  55. package/dist/neutral/eip-712/Payloads/EIP712Signature.d.ts +3 -3
  56. package/dist/neutral/eip-712/Payloads/EIP712Signature.d.ts.map +1 -1
  57. package/dist/neutral/eip-712/Types.d.ts +4 -4
  58. package/dist/neutral/eip-712/Types.d.ts.map +1 -1
  59. package/dist/neutral/index.d.ts +1 -0
  60. package/dist/neutral/index.d.ts.map +1 -1
  61. package/dist/neutral/index.mjs +3271 -3246
  62. package/dist/neutral/index.mjs.map +1 -1
  63. package/dist/neutral/model/ChainQualification.d.ts +15 -15
  64. package/dist/neutral/model/ChainQualification.d.ts.map +1 -1
  65. package/dist/neutral/payloads/netBalancesForPayloads.d.ts +5 -2
  66. package/dist/neutral/payloads/netBalancesForPayloads.d.ts.map +1 -1
  67. package/dist/neutral/payloads/netSchemasForPayloads.d.ts +5 -2
  68. package/dist/neutral/payloads/netSchemasForPayloads.d.ts.map +1 -1
  69. package/dist/neutral/primitives/chain/getWindowedChain.d.ts +8 -23
  70. package/dist/neutral/primitives/chain/getWindowedChain.d.ts.map +1 -1
  71. package/dist/neutral/primitives/rewards/networkStakeStepRewardPositionWeight.d.ts.map +1 -1
  72. package/dist/neutral/primitives/stake/weightedStakeForRangeByPosition.d.ts +2 -1
  73. package/dist/neutral/primitives/stake/weightedStakeForRangeByPosition.d.ts.map +1 -1
  74. package/dist/neutral/primitives/uncle/findBestUncle.d.ts +21 -13
  75. package/dist/neutral/primitives/uncle/findBestUncle.d.ts.map +1 -1
  76. package/dist/neutral/primitives/uncle/findUncles.d.ts +21 -14
  77. package/dist/neutral/primitives/uncle/findUncles.d.ts.map +1 -1
  78. package/dist/neutral/provider/signer/XyoSigner.d.ts +2 -0
  79. package/dist/neutral/provider/signer/XyoSigner.d.ts.map +1 -1
  80. package/dist/neutral/runners/Finalization.d.ts +12 -0
  81. package/dist/neutral/runners/Finalization.d.ts.map +1 -0
  82. package/dist/neutral/runners/index.d.ts +1 -0
  83. package/dist/neutral/runners/index.d.ts.map +1 -1
  84. package/dist/neutral/simple/accountBalance/SimpleAccountBalanceViewer.d.ts +66 -33
  85. package/dist/neutral/simple/accountBalance/SimpleAccountBalanceViewer.d.ts.map +1 -1
  86. package/dist/neutral/simple/block/SimpleBlockViewer.d.ts +9 -25
  87. package/dist/neutral/simple/block/SimpleBlockViewer.d.ts.map +1 -1
  88. package/dist/neutral/simple/blockReward/SimpleBlockRewardViewer.d.ts +1 -0
  89. package/dist/neutral/simple/blockReward/SimpleBlockRewardViewer.d.ts.map +1 -1
  90. package/dist/neutral/simple/blockValidation/SimpleBlockValidationViewer.d.ts +4 -3
  91. package/dist/neutral/simple/blockValidation/SimpleBlockValidationViewer.d.ts.map +1 -1
  92. package/dist/neutral/simple/chainStake/SimpleStakeViewer.d.ts +1 -0
  93. package/dist/neutral/simple/chainStake/SimpleStakeViewer.d.ts.map +1 -1
  94. package/dist/neutral/simple/datalake/SimpleDataLakeRunner.d.ts +1 -0
  95. package/dist/neutral/simple/datalake/SimpleDataLakeRunner.d.ts.map +1 -1
  96. package/dist/neutral/simple/datalake/SimpleDataLakeViewer.d.ts +1 -0
  97. package/dist/neutral/simple/datalake/SimpleDataLakeViewer.d.ts.map +1 -1
  98. package/dist/neutral/simple/finalization/SimpleFinalizationRunner.d.ts +21 -0
  99. package/dist/neutral/simple/finalization/SimpleFinalizationRunner.d.ts.map +1 -0
  100. package/dist/neutral/simple/finalization/SimpleFinalizationViewer.d.ts +61 -0
  101. package/dist/neutral/simple/finalization/SimpleFinalizationViewer.d.ts.map +1 -0
  102. package/dist/neutral/simple/finalization/index.d.ts +3 -0
  103. package/dist/neutral/simple/finalization/index.d.ts.map +1 -0
  104. package/dist/neutral/simple/index.d.ts +2 -0
  105. package/dist/neutral/simple/index.d.ts.map +1 -1
  106. package/dist/neutral/simple/mempool/SimpleMempoolRunner.d.ts +2 -0
  107. package/dist/neutral/simple/mempool/SimpleMempoolRunner.d.ts.map +1 -1
  108. package/dist/neutral/simple/mempool/SimpleMempoolViewer.d.ts +7 -2
  109. package/dist/neutral/simple/mempool/SimpleMempoolViewer.d.ts.map +1 -1
  110. package/dist/neutral/simple/runner/SimpleXyoRunner.d.ts +1 -0
  111. package/dist/neutral/simple/runner/SimpleXyoRunner.d.ts.map +1 -1
  112. package/dist/neutral/simple/signer/SimpleXyoSigner.d.ts +19 -3
  113. package/dist/neutral/simple/signer/SimpleXyoSigner.d.ts.map +1 -1
  114. package/dist/neutral/simple/stakeEvents/SimpleStakeEventsViewer.d.ts +1 -0
  115. package/dist/neutral/simple/stakeEvents/SimpleStakeEventsViewer.d.ts.map +1 -1
  116. package/dist/neutral/simple/timesync/SimpleTimeSyncViewer.d.ts +2 -1
  117. package/dist/neutral/simple/timesync/SimpleTimeSyncViewer.d.ts.map +1 -1
  118. package/dist/neutral/simple/windowedBlock/SimpleWindowedBlockViewer.d.ts +191 -0
  119. package/dist/neutral/simple/windowedBlock/SimpleWindowedBlockViewer.d.ts.map +1 -0
  120. package/dist/neutral/simple/windowedBlock/index.d.ts +2 -0
  121. package/dist/neutral/simple/windowedBlock/index.d.ts.map +1 -0
  122. package/dist/neutral/summary/model/summary.d.ts +3 -1
  123. package/dist/neutral/summary/model/summary.d.ts.map +1 -1
  124. package/dist/neutral/summary/primitives/transfers/transfersSummary.d.ts +1 -1
  125. package/dist/neutral/summary/primitives/transfers/transfersSummary.d.ts.map +1 -1
  126. package/dist/neutral/transaction/TransactionBuilder.d.ts +56 -33
  127. package/dist/neutral/transaction/TransactionBuilder.d.ts.map +1 -1
  128. package/dist/neutral/transaction/signTransaction.d.ts +24 -12
  129. package/dist/neutral/transaction/signTransaction.d.ts.map +1 -1
  130. package/dist/neutral/utils/isZodError.d.ts +1 -1
  131. package/dist/neutral/utils/isZodError.d.ts.map +1 -1
  132. package/dist/neutral/validation/schema/Mnemonic.d.ts +1 -1
  133. package/dist/neutral/validation/schema/Mnemonic.d.ts.map +1 -1
  134. package/dist/neutral/viewers/AccountBalance.d.ts +70 -42
  135. package/dist/neutral/viewers/AccountBalance.d.ts.map +1 -1
  136. package/dist/neutral/viewers/Block.d.ts +2 -2
  137. package/dist/neutral/viewers/Block.d.ts.map +1 -1
  138. package/dist/neutral/viewers/BlockValidation.d.ts +10 -10
  139. package/dist/neutral/viewers/BlockValidation.d.ts.map +1 -1
  140. package/dist/neutral/viewers/Finalization.d.ts +14 -0
  141. package/dist/neutral/viewers/Finalization.d.ts.map +1 -0
  142. package/dist/neutral/viewers/Mempool.d.ts +5 -5
  143. package/dist/neutral/viewers/Mempool.d.ts.map +1 -1
  144. package/dist/neutral/viewers/TransactionValidation.d.ts +8 -8
  145. package/dist/neutral/viewers/TransactionValidation.d.ts.map +1 -1
  146. package/dist/neutral/viewers/WindowedBlock.d.ts +14 -0
  147. package/dist/neutral/viewers/WindowedBlock.d.ts.map +1 -0
  148. package/dist/neutral/viewers/index.d.ts +2 -0
  149. package/dist/neutral/viewers/index.d.ts.map +1 -1
  150. package/package.json +24 -22
  151. package/src/CreatableProvider/AbstractCreatableProvider.ts +12 -6
  152. package/src/CreatableProvider/CreatableProvider.ts +21 -9
  153. package/src/CreatableProvider/CreatableProviderRegistry.ts +3 -3
  154. package/src/CreatableProvider/ProviderFactory.ts +18 -10
  155. package/src/CreatableProvider/ProviderFactoryLocator.ts +6 -5
  156. package/src/CreatableProvider/ProviderFactoryLocatorInstance.ts +6 -2
  157. package/src/actor/Actor.ts +209 -0
  158. package/src/actor/index.ts +1 -0
  159. package/src/block/hydrate/allHashesPresent.ts +2 -2
  160. package/src/block/hydrate/hydrateBlock.ts +2 -2
  161. package/src/config/Api.ts +1 -2
  162. package/src/config/Bridge.ts +1 -2
  163. package/src/config/Chain.ts +1 -2
  164. package/src/config/Config.ts +1 -1
  165. package/src/config/Evm.ts +1 -2
  166. package/src/config/Log.ts +1 -2
  167. package/src/config/Mempool.ts +1 -2
  168. package/src/config/Producer.ts +1 -2
  169. package/src/config/RewardRedemptionApi.ts +1 -2
  170. package/src/config/Services.ts +1 -2
  171. package/src/config/Telemetry.ts +10 -4
  172. package/src/config/UsageMeta.ts +1 -1
  173. package/src/config/Validation.ts +1 -2
  174. package/src/config/index.ts +1 -0
  175. package/src/config/storage/Storage.ts +1 -2
  176. package/src/config/storage/driver/Mongo.ts +1 -2
  177. package/src/eip-712/Payloads/EIP712Data.ts +1 -1
  178. package/src/eip-712/Payloads/EIP712Signature.ts +1 -1
  179. package/src/eip-712/Types.ts +1 -1
  180. package/src/index.ts +1 -0
  181. package/src/model/ChainQualification.ts +1 -1
  182. package/src/primitives/chain/getWindowedChain.ts +33 -14
  183. package/src/primitives/rewards/networkStakeStepRewardPositionWeight.ts +3 -2
  184. package/src/primitives/stake/allStakersForStep.ts +1 -1
  185. package/src/primitives/stake/weightedStakeForRangeByPosition.ts +10 -2
  186. package/src/provider/signer/XyoSigner.ts +3 -0
  187. package/src/runners/Finalization.ts +15 -0
  188. package/src/runners/index.ts +1 -0
  189. package/src/simple/accountBalance/SimpleAccountBalanceViewer.ts +1 -0
  190. package/src/simple/block/SimpleBlockViewer.ts +23 -37
  191. package/src/simple/blockReward/SimpleBlockRewardViewer.ts +1 -0
  192. package/src/simple/blockValidation/SimpleBlockValidationViewer.ts +16 -13
  193. package/src/simple/chainStake/SimpleStakeViewer.ts +1 -0
  194. package/src/simple/datalake/SimpleDataLakeRunner.ts +1 -0
  195. package/src/simple/datalake/SimpleDataLakeViewer.ts +1 -0
  196. package/src/simple/finalization/SimpleFinalizationRunner.ts +45 -0
  197. package/src/simple/finalization/SimpleFinalizationViewer.ts +101 -0
  198. package/src/simple/finalization/index.ts +2 -0
  199. package/src/simple/index.ts +2 -0
  200. package/src/simple/mempool/SimpleMempoolRunner.ts +11 -1
  201. package/src/simple/mempool/SimpleMempoolViewer.ts +41 -8
  202. package/src/simple/runner/SimpleXyoRunner.ts +3 -1
  203. package/src/simple/signer/SimpleXyoSigner.ts +26 -5
  204. package/src/simple/stakeEvents/SimpleStakeEventsViewer.ts +1 -0
  205. package/src/simple/timesync/SimpleTimeSyncViewer.ts +3 -1
  206. package/src/simple/windowedBlock/SimpleWindowedBlockViewer.ts +208 -0
  207. package/src/simple/windowedBlock/index.ts +1 -0
  208. package/src/summary/model/summary.ts +3 -3
  209. package/src/summary/primitives/transfers/transfersSummary.ts +1 -1
  210. package/src/utils/isZodError.ts +1 -1
  211. package/src/validation/schema/Mnemonic.ts +1 -1
  212. package/src/viewers/AccountBalance.ts +1 -1
  213. package/src/viewers/Block.ts +2 -2
  214. package/src/viewers/BlockValidation.ts +1 -1
  215. package/src/viewers/Finalization.ts +19 -0
  216. package/src/viewers/Mempool.ts +1 -1
  217. package/src/viewers/TransactionValidation.ts +1 -1
  218. package/src/viewers/WindowedBlock.ts +17 -0
  219. package/src/viewers/index.ts +2 -0
@@ -1,42 +1,42 @@
1
- import z from 'zod';
1
+ import { z } from 'zod';
2
2
  export declare const ChainQualificationZod: z.ZodObject<{
3
- head: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").Hash, string>>;
3
+ head: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").BrandedHash, string>>;
4
4
  range: z.ZodTuple<[z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>], null>;
5
- }, z.z.core.$strip>;
5
+ }, z.core.$strip>;
6
6
  export type ChainQualification = z.infer<typeof ChainQualificationZod>;
7
7
  export declare const isChainQualification: <T>(value: T) => value is T & {
8
- head: import("@xylabs/hex").Hash;
8
+ head: import("@xylabs/hex").BrandedHash;
9
9
  range: [import("@xyo-network/xl1-protocol").XL1BlockNumber, import("@xyo-network/xl1-protocol").XL1BlockNumber];
10
10
  };
11
11
  export declare const ChainQualifiedRangeConfigZod: z.ZodObject<{
12
12
  range: z.ZodTuple<[z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>], null>;
13
- }, z.z.core.$strip>;
13
+ }, z.core.$strip>;
14
14
  export type ChainQualifiedRangeConfig = z.infer<typeof ChainQualifiedRangeConfigZod>;
15
15
  export declare const isChainQualifiedRangeConfig: <T>(value: T) => value is T & {
16
16
  range: [import("@xyo-network/xl1-protocol").XL1BlockNumber, import("@xyo-network/xl1-protocol").XL1BlockNumber];
17
17
  };
18
18
  export declare const ChainQualifiedHeadConfigZod: z.ZodObject<{
19
- head: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").Hash, string>>;
20
- }, z.z.core.$strip>;
19
+ head: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").BrandedHash, string>>;
20
+ }, z.core.$strip>;
21
21
  export type ChainQualifiedHeadConfig = z.infer<typeof ChainQualifiedHeadConfigZod>;
22
22
  export declare const isChainQualifiedHeadConfig: <T>(value: T) => value is T & {
23
- head: import("@xylabs/hex").Hash;
23
+ head: import("@xylabs/hex").BrandedHash;
24
24
  };
25
25
  export declare const ChainQualifiedConfigZod: z.ZodUnion<readonly [z.ZodObject<{
26
26
  range: z.ZodTuple<[z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>], null>;
27
- }, z.z.core.$strip>, z.ZodObject<{
28
- head: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").Hash, string>>;
29
- }, z.z.core.$strip>, z.ZodObject<{}, z.z.core.$strip>]>;
27
+ }, z.core.$strip>, z.ZodObject<{
28
+ head: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").BrandedHash, string>>;
29
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>]>;
30
30
  export type ChainQualifiedConfig = z.infer<typeof ChainQualifiedConfigZod>;
31
31
  export declare const isChainQualifiedConfig: <T>(value: T) => value is T & ({
32
32
  range: [import("@xyo-network/xl1-protocol").XL1BlockNumber, import("@xyo-network/xl1-protocol").XL1BlockNumber];
33
33
  } | {
34
- head: import("@xylabs/hex").Hash;
34
+ head: import("@xylabs/hex").BrandedHash;
35
35
  } | Record<string, never>);
36
36
  export declare const ExtendChainQualifiedConfigZod: <T>(zodType: z.ZodType<T>) => z.ZodType<T & ChainQualifiedConfig>;
37
37
  export type ChainQualified<T> = [T, ChainQualification];
38
- export declare const ChainQualifiedZod: <T>(zodType: z.ZodType<T>) => z.ZodTuple<[z.ZodType<T, unknown, z.z.core.$ZodTypeInternals<T, unknown>>, z.ZodObject<{
39
- head: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").Hash, string>>;
38
+ export declare const ChainQualifiedZod: <T>(zodType: z.ZodType<T>) => z.ZodTuple<[z.ZodType<T, unknown, z.core.$ZodTypeInternals<T, unknown>>, z.ZodObject<{
39
+ head: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").BrandedHash, string>>;
40
40
  range: z.ZodTuple<[z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>], null>;
41
- }, z.z.core.$strip>], null>;
41
+ }, z.core.$strip>], null>;
42
42
  //# sourceMappingURL=ChainQualification.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChainQualification.d.ts","sourceRoot":"","sources":["../../../src/model/ChainQualification.ts"],"names":[],"mappings":"AAGA,OAAO,CAAC,MAAM,KAAK,CAAA;AAEnB,eAAO,MAAM,qBAAqB;;;mBAAuD,CAAA;AACzF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AACtE,eAAO,MAAM,oBAAoB;;;CAAsC,CAAA;AAEvE,eAAO,MAAM,4BAA4B;;mBAAwC,CAAA;AACjF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAA;AACpF,eAAO,MAAM,2BAA2B;;CAA6C,CAAA;AAErF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C,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAA;AAClF,eAAO,MAAM,0BAA0B;;CAA4C,CAAA;AAEnF,eAAO,MAAM,uBAAuB;;;;mDAAqF,CAAA;AACzH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAC1E,eAAO,MAAM,sBAAsB;;;;0BAAwC,CAAA;AAE3E,eAAO,MAAM,6BAA6B,EAMpC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,oBAAoB,CAAC,CAAA;AAEvE,MAAM,MAAM,cAAc,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,kBAAkB,CAAC,CAAA;AACvD,eAAO,MAAM,iBAAiB,GAAI,CAAC,EAAE,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;;;yBAEzD,CAAA"}
@@ -1,4 +1,7 @@
1
- import { type Address } from '@xylabs/sdk-js';
2
1
  import type { Payload } from '@xyo-network/payload-model';
3
- export declare const netBalancesForPayloads: (payloads: Payload[]) => Record<Address, bigint>;
2
+ export declare const netBalancesForPayloads: (payloads: Payload[]) => Record<Lowercase<string> & {
3
+ readonly __hex: true;
4
+ } & {
5
+ readonly __address: true;
6
+ }, bigint>;
4
7
  //# sourceMappingURL=netBalancesForPayloads.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"netBalancesForPayloads.d.ts","sourceRoot":"","sources":["../../../src/payloads/netBalancesForPayloads.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAA;AAEvB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGzD,eAAO,MAAM,sBAAsB,GAAI,UAAU,OAAO,EAAE,4BAczD,CAAA"}
1
+ {"version":3,"file":"netBalancesForPayloads.d.ts","sourceRoot":"","sources":["../../../src/payloads/netBalancesForPayloads.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGzD,eAAO,MAAM,sBAAsB,GAAI,UAAU,OAAO,EAAE;;;;UAczD,CAAA"}
@@ -1,4 +1,7 @@
1
- import { type Address } from '@xylabs/sdk-js';
2
1
  import type { Payload } from '@xyo-network/payload-model';
3
- export declare const netSchemasForPayloads: (payloads: Payload[]) => Record<Address, bigint>;
2
+ export declare const netSchemasForPayloads: (payloads: Payload[]) => Record<Lowercase<string> & {
3
+ readonly __hex: true;
4
+ } & {
5
+ readonly __address: true;
6
+ }, bigint>;
4
7
  //# sourceMappingURL=netSchemasForPayloads.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"netSchemasForPayloads.d.ts","sourceRoot":"","sources":["../../../src/payloads/netSchemasForPayloads.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAA;AAEvB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGzD,eAAO,MAAM,qBAAqB,GAAI,UAAU,OAAO,EAAE,4BAcxD,CAAA"}
1
+ {"version":3,"file":"netSchemasForPayloads.d.ts","sourceRoot":"","sources":["../../../src/payloads/netSchemasForPayloads.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGzD,eAAO,MAAM,qBAAqB,GAAI,UAAU,OAAO,EAAE;;;;UAcxD,CAAA"}
@@ -1,26 +1,11 @@
1
- import type { Hash } from '@xylabs/sdk-js';
2
1
  import type { SignedHydratedBlockWithHashMeta } from '@xyo-network/xl1-protocol';
3
2
  import type { BlockViewer } from '../../viewers/index.ts';
4
- export declare function getWindowedChain(blockViewer: BlockViewer, maxWindowSize: number, previousChain?: SignedHydratedBlockWithHashMeta[]): Promise<[{
5
- schema: "network.xyo.boundwitness";
6
- addresses: import("@xylabs/sdk-js").Address[];
7
- payload_hashes: Hash[];
8
- payload_schemas: string[];
9
- previous_hashes: (Hash | null)[];
10
- $signatures: import("@xylabs/sdk-js").Hex[];
11
- block: import("@xyo-network/xl1-protocol").XL1BlockNumber;
12
- chain: import("@xylabs/sdk-js").Hex;
13
- previous: Hash | null;
14
- $epoch: number;
15
- _hash: Hash;
16
- _dataHash: Hash;
17
- $destination?: import("@xylabs/sdk-js").Address | undefined;
18
- $sourceQuery?: Hash | undefined;
19
- protocol?: number | undefined;
20
- step_hashes?: Hash[] | undefined;
21
- }, {
22
- schema: string;
23
- _hash: Hash;
24
- _dataHash: Hash;
25
- }[]][]>;
3
+ /**
4
+ * Constructs a bounded, contiguous canonical chain ending at the current head.
5
+ * @param blockViewer The BlockViewer to fetch blocks from
6
+ * @param maxWindowSize The maximum size of the windowed chain
7
+ * @param previousChain An optional previous chain to build upon
8
+ * @returns A promise that resolves to the windowed chain of blocks
9
+ */
10
+ export declare function getWindowedChain(blockViewer: BlockViewer, maxWindowSize: number, previousChain?: SignedHydratedBlockWithHashMeta[]): Promise<SignedHydratedBlockWithHashMeta[]>;
26
11
  //# sourceMappingURL=getWindowedChain.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getWindowedChain.d.ts","sourceRoot":"","sources":["../../../../src/primitives/chain/getWindowedChain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,2BAA2B,CAAA;AAEhF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAEzD,wBAAsB,gBAAgB,CAAC,WAAW,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,EAAE,aAAa,GAAE,+BAA+B,EAAO;;;;;;;;;;;;;;;;;;;;;QAiB5I"}
1
+ {"version":3,"file":"getWindowedChain.d.ts","sourceRoot":"","sources":["../../../../src/primitives/chain/getWindowedChain.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,2BAA2B,CAAA;AAEhF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAEzD;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CAAC,WAAW,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,EAAE,aAAa,GAAE,+BAA+B,EAAO,GAC7I,OAAO,CAAC,+BAA+B,EAAE,CAAC,CA0BzC"}
@@ -1 +1 @@
1
- {"version":3,"file":"networkStakeStepRewardPositionWeight.d.ts","sourceRoot":"","sources":["../../../../src/primitives/rewards/networkStakeStepRewardPositionWeight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAE7D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAClE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAIzD,wBAAsB,oCAAoC,CACxD,OAAO,EAAE,sBAAsB,EAC/B,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,YAAY,EACzB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,MAAM,CAAC,CAQjB"}
1
+ {"version":3,"file":"networkStakeStepRewardPositionWeight.d.ts","sourceRoot":"","sources":["../../../../src/primitives/rewards/networkStakeStepRewardPositionWeight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAA+B,MAAM,2BAA2B,CAAA;AAE1F,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAClE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAIzD,wBAAsB,oCAAoC,CACxD,OAAO,EAAE,sBAAsB,EAC/B,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,YAAY,EACzB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,MAAM,CAAC,CASjB"}
@@ -1,6 +1,7 @@
1
+ import type { Address } from '@xylabs/sdk-js';
1
2
  import { type BlockRange } from '@xyo-network/xl1-protocol';
2
3
  import { type StakedChainContextRead } from '../../model/index.ts';
3
4
  import type { BlockViewer } from '../../viewers/index.ts';
4
5
  export declare function weightedStakeForRangeByPosition(context: StakedChainContextRead, blockViewer: BlockViewer, externalRange: BlockRange, // first to last block of step
5
- positionId?: number): Promise<bigint>;
6
+ staked?: Address, positionId?: number): Promise<bigint>;
6
7
  //# sourceMappingURL=weightedStakeForRangeByPosition.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"weightedStakeForRangeByPosition.d.ts","sourceRoot":"","sources":["../../../../src/primitives/stake/weightedStakeForRangeByPosition.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,KAAK,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAE1E,OAAO,EAAE,KAAK,sBAAsB,EAA4B,MAAM,sBAAsB,CAAA;AAC5F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAGzD,wBAAsB,+BAA+B,CACnD,OAAO,EAAE,sBAAsB,EAC/B,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,UAAU,EAAE,8BAA8B;AACzD,UAAU,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC,MAAM,CAAC,CAyCjB"}
1
+ {"version":3,"file":"weightedStakeForRangeByPosition.d.ts","sourceRoot":"","sources":["../../../../src/primitives/stake/weightedStakeForRangeByPosition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,EAAiB,KAAK,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAE1E,OAAO,EAAE,KAAK,sBAAsB,EAA4B,MAAM,sBAAsB,CAAA;AAC5F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAGzD,wBAAsB,+BAA+B,CACnD,OAAO,EAAE,sBAAsB,EAC/B,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,UAAU,EAAE,8BAA8B;AACzD,MAAM,CAAC,EAAE,OAAO,EAChB,UAAU,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC,MAAM,CAAC,CA+CjB"}
@@ -1,24 +1,32 @@
1
1
  import type { SignedHydratedBlockWithHashMeta } from '@xyo-network/xl1-protocol';
2
2
  export declare function findBestUncle(finalizedWindowedChain: SignedHydratedBlockWithHashMeta[], uncles: SignedHydratedBlockWithHashMeta[][]): [{
3
3
  schema: "network.xyo.boundwitness";
4
- addresses: import("@xylabs/hex").Address[];
5
- payload_hashes: import("@xylabs/hex").Hash[];
4
+ addresses: (Lowercase<string> & {
5
+ readonly __hex: true;
6
+ } & {
7
+ readonly __address: true;
8
+ })[];
9
+ payload_hashes: import("@xylabs/hex").BrandedHash[];
6
10
  payload_schemas: string[];
7
- previous_hashes: (import("@xylabs/hex").Hash | null)[];
8
- $signatures: import("@xylabs/hex").Hex[];
11
+ previous_hashes: (import("@xylabs/hex").BrandedHash | null)[];
12
+ $signatures: import("@xylabs/hex").BrandedHex[];
9
13
  block: import("@xyo-network/xl1-protocol").XL1BlockNumber;
10
- chain: import("@xylabs/hex").Hex;
11
- previous: import("@xylabs/hex").Hash | null;
14
+ chain: import("@xylabs/hex").BrandedHex;
15
+ previous: import("@xylabs/hex").BrandedHash | null;
12
16
  $epoch: number;
13
- _hash: import("@xylabs/hex").Hash;
14
- _dataHash: import("@xylabs/hex").Hash;
15
- $destination?: import("@xylabs/hex").Address | undefined;
16
- $sourceQuery?: import("@xylabs/hex").Hash | undefined;
17
+ _hash: import("@xylabs/hex").BrandedHash;
18
+ _dataHash: import("@xylabs/hex").BrandedHash;
19
+ $destination?: (Lowercase<string> & {
20
+ readonly __hex: true;
21
+ } & {
22
+ readonly __address: true;
23
+ }) | undefined;
24
+ $sourceQuery?: import("@xylabs/hex").BrandedHash | undefined;
17
25
  protocol?: number | undefined;
18
- step_hashes?: import("@xylabs/hex").Hash[] | undefined;
26
+ step_hashes?: import("@xylabs/hex").BrandedHash[] | undefined;
19
27
  }, {
20
28
  schema: string;
21
- _hash: import("@xylabs/hex").Hash;
22
- _dataHash: import("@xylabs/hex").Hash;
29
+ _hash: import("@xylabs/hex").BrandedHash;
30
+ _dataHash: import("@xylabs/hex").BrandedHash;
23
31
  }[]][];
24
32
  //# sourceMappingURL=findBestUncle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"findBestUncle.d.ts","sourceRoot":"","sources":["../../../../src/primitives/uncle/findBestUncle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,2BAA2B,CAAA;AAIhF,wBAAgB,aAAa,CAAC,sBAAsB,EAAE,+BAA+B,EAAE,EAAE,MAAM,EAAE,+BAA+B,EAAE,EAAE;;;;;;;;;;;;;;;;;;;;;OAGnI"}
1
+ {"version":3,"file":"findBestUncle.d.ts","sourceRoot":"","sources":["../../../../src/primitives/uncle/findBestUncle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,2BAA2B,CAAA;AAIhF,wBAAgB,aAAa,CAAC,sBAAsB,EAAE,+BAA+B,EAAE,EAAE,MAAM,EAAE,+BAA+B,EAAE,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAGnI"}
@@ -1,26 +1,33 @@
1
- import { type Hash } from '@xylabs/sdk-js';
2
1
  import { type SignedHydratedBlockWithHashMeta } from '@xyo-network/xl1-protocol';
3
2
  import type { BaseContext } from '../../model/index.ts';
4
3
  export declare function findUncles(context: BaseContext, finalizedWindowedChain: SignedHydratedBlockWithHashMeta[], blocks: SignedHydratedBlockWithHashMeta[]): [{
5
4
  schema: "network.xyo.boundwitness";
6
- addresses: import("@xylabs/sdk-js").Address[];
7
- payload_hashes: Hash[];
5
+ addresses: (Lowercase<string> & {
6
+ readonly __hex: true;
7
+ } & {
8
+ readonly __address: true;
9
+ })[];
10
+ payload_hashes: import("@xylabs/sdk-js").BrandedHash[];
8
11
  payload_schemas: string[];
9
- previous_hashes: (Hash | null)[];
10
- $signatures: import("@xylabs/sdk-js").Hex[];
12
+ previous_hashes: (import("@xylabs/sdk-js").BrandedHash | null)[];
13
+ $signatures: import("@xylabs/sdk-js").BrandedHex[];
11
14
  block: import("@xyo-network/xl1-protocol").XL1BlockNumber;
12
- chain: import("@xylabs/sdk-js").Hex;
13
- previous: Hash | null;
15
+ chain: import("@xylabs/sdk-js").BrandedHex;
16
+ previous: import("@xylabs/sdk-js").BrandedHash | null;
14
17
  $epoch: number;
15
- _hash: Hash;
16
- _dataHash: Hash;
17
- $destination?: import("@xylabs/sdk-js").Address | undefined;
18
- $sourceQuery?: Hash | undefined;
18
+ _hash: import("@xylabs/sdk-js").BrandedHash;
19
+ _dataHash: import("@xylabs/sdk-js").BrandedHash;
20
+ $destination?: (Lowercase<string> & {
21
+ readonly __hex: true;
22
+ } & {
23
+ readonly __address: true;
24
+ }) | undefined;
25
+ $sourceQuery?: import("@xylabs/sdk-js").BrandedHash | undefined;
19
26
  protocol?: number | undefined;
20
- step_hashes?: Hash[] | undefined;
27
+ step_hashes?: import("@xylabs/sdk-js").BrandedHash[] | undefined;
21
28
  }, {
22
29
  schema: string;
23
- _hash: Hash;
24
- _dataHash: Hash;
30
+ _hash: import("@xylabs/sdk-js").BrandedHash;
31
+ _dataHash: import("@xylabs/sdk-js").BrandedHash;
25
32
  }[]][][];
26
33
  //# sourceMappingURL=findUncles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"findUncles.d.ts","sourceRoot":"","sources":["../../../../src/primitives/uncle/findUncles.ts"],"names":[],"mappings":"AAAA,OAAO,EAEG,KAAK,IAAI,EAClB,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAA6B,KAAK,+BAA+B,EAAE,MAAM,2BAA2B,CAAA;AAE3G,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAkEvD,wBAAgB,UAAU,CAAC,OAAO,EAAE,WAAW,EAAE,sBAAsB,EAAE,+BAA+B,EAAE,EAAE,MAAM,EAAE,+BAA+B,EAAE;;;;;;;;;;;;;;;;;;;;;SAEpJ"}
1
+ {"version":3,"file":"findUncles.d.ts","sourceRoot":"","sources":["../../../../src/primitives/uncle/findUncles.ts"],"names":[],"mappings":"AAIA,OAAO,EAA6B,KAAK,+BAA+B,EAAE,MAAM,2BAA2B,CAAA;AAE3G,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAkEvD,wBAAgB,UAAU,CAAC,OAAO,EAAE,WAAW,EAAE,sBAAsB,EAAE,+BAA+B,EAAE,EAAE,MAAM,EAAE,+BAA+B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAEpJ"}
@@ -2,6 +2,8 @@ import type { Address, Promisable } from '@xylabs/sdk-js';
2
2
  import type { Signed } from '@xyo-network/boundwitness-model';
3
3
  import type { Payload } from '@xyo-network/payload-model';
4
4
  import type { AllowedBlockPayload, ChainId, SignedHydratedTransactionWithHashMeta, TransactionBoundWitness, TransactionFeesBigInt } from '@xyo-network/xl1-protocol';
5
+ export declare const XyoSignerMoniker: "XyoSigner";
6
+ export type XyoSignerMoniker = typeof XyoSignerMoniker;
5
7
  export interface XyoSigner {
6
8
  address(): Promisable<Address>;
7
9
  signTransaction(tx: [TransactionBoundWitness, Payload[]]): Promisable<SignedHydratedTransactionWithHashMeta>;
@@ -1 +1 @@
1
- {"version":3,"file":"XyoSigner.d.ts","sourceRoot":"","sources":["../../../../src/provider/signer/XyoSigner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAC7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACzD,OAAO,KAAK,EACV,mBAAmB,EAAE,OAAO,EAC5B,qCAAqC,EAAE,uBAAuB,EAC9D,qBAAqB,EACtB,M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8C;IAC9C,uBAAuB,CACrB,KAAK,EAAE,OAAO,EACd,gBAAgB,EAAE,mBAAmB,EAAE,EACvC,kBAAkB,EAAE,OAAO,EAAE,EAC7B,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,qBAAqB,EAC3B,IAAI,CAAC,EAAE,OAAO,GACb,UAAU,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC,CAAA;CAC/C"}
@@ -0,0 +1,12 @@
1
+ import type { Hash } from '@xylabs/sdk-js';
2
+ import type { SignedHydratedBlockWithHashMeta } from '@xyo-network/xl1-protocol';
3
+ import type { Provider } from '../model/index.ts';
4
+ export interface FinalizationRunnerMethods {
5
+ finalizeBlocks(blocks: SignedHydratedBlockWithHashMeta[]): Promise<Hash[]>;
6
+ }
7
+ export declare const FinalizationRunnerMoniker: "FinalizationRunner";
8
+ export type FinalizationRunnerMoniker = typeof FinalizationRunnerMoniker;
9
+ export interface FinalizationRunner extends FinalizationRunnerMethods, Provider<FinalizationRunnerMoniker> {
10
+ finalizeBlock(block: SignedHydratedBlockWithHashMeta): Promise<Hash>;
11
+ }
12
+ //# sourceMappingURL=Finalization.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Finalization.d.ts","sourceRoot":"","sources":["../../../src/runners/Finalization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,2BAA2B,CAAA;AAEhF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAEjD,MAAM,WAAW,yBAAyB;IACxC,cAAc,CAAC,MAAM,EAAE,+BAA+B,EAAE,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC,CAAA;CAC3E;AAED,eAAO,MAAM,yBAAyB,EAAG,oBAA6B,CAAA;AACtE,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAA;AAExE,MAAM,WAAW,kBAAmB,SAAQ,yBAAyB,EAAE,QAAQ,CAAC,yBAAyB,CAAC;IACxG,aAAa,CAAC,KAAK,EAAE,+BAA+B,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACrE"}
@@ -1,3 +1,4 @@
1
1
  export * from './Block.ts';
2
+ export * from './Finalization.ts';
2
3
  export * from './Mempool.ts';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runners/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runners/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AACjC,cAAc,cAAc,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { Address, Hash } from '@xylabs/sdk-js';
1
+ import type { Address } from '@xylabs/sdk-js';
2
2
  import type { XL1BlockNumber } from '@xyo-network/xl1-protocol';
3
3
  import { AttoXL1 } from '@xyo-network/xl1-protocol';
4
4
  import type { CreatableProviderParams } from '../../CreatableProvider/index.ts';
@@ -12,68 +12,101 @@ export interface SimpleAccountBalanceViewerParams extends CreatableProviderParam
12
12
  }
13
13
  export declare class SimpleAccountBalanceViewer extends AbstractCreatableProvider<SimpleAccountBalanceViewerParams> implements AccountBalanceViewer {
14
14
  static readonly defaultMoniker: "AccountBalanceViewer";
15
+ static readonly dependencies: "BlockViewer"[];
15
16
  static readonly monikers: "AccountBalanceViewer"[];
16
17
  moniker: "AccountBalanceViewer";
17
18
  private _blockViewer?;
18
19
  get balanceSummaryContext(): BalanceStepSummaryContext;
19
- get blockViewer(): BlockViewer;
20
+ get blockViewer(): BlockViewer<"BlockViewer">;
20
21
  get transfersSummaryContext(): TransfersStepSummaryContext;
21
22
  static paramsHandler(params?: Partial<SimpleAccountBalanceViewerParams>): Promise<CreatableProviderParams<import("../../CreatableProvider/CreatableProvider.ts").CreatableProviderContext>>;
22
23
  accountBalance(address: Address, config?: AccountBalanceConfig): Promise<AttoXL1>;
23
24
  accountBalanceHistories(addresses: Address[], config?: AccountBalanceConfig): Promise<any>;
24
25
  accountBalanceHistory(address: Address, config?: AccountBalanceConfig): Promise<[{
25
26
  schema: "network.xyo.boundwitness";
26
- addresses: Address[];
27
- payload_hashes: Hash[];
27
+ addresses: (Lowercase<string> & {
28
+ readonly __hex: true;
29
+ } & {
30
+ readonly __address: true;
31
+ })[];
32
+ payload_hashes: import("@xylabs/sdk-js").BrandedHash[];
28
33
  payload_schemas: string[];
29
- previous_hashes: (Hash | null)[];
30
- $signatures: (import("@xylabs/sdk-js").Hex | null)[];
34
+ previous_hashes: (import("@xylabs/sdk-js").BrandedHash | null)[];
35
+ $signatures: (import("@xylabs/sdk-js").BrandedHex | null)[];
31
36
  block: XL1BlockNumber;
32
- chain: import("@xylabs/sdk-js").Hex;
33
- previous: Hash | null;
37
+ chain: import("@xylabs/sdk-js").BrandedHex;
38
+ previous: import("@xylabs/sdk-js").BrandedHash | null;
34
39
  $epoch: number;
35
- _hash: Hash;
36
- _dataHash: Hash;
37
- $destination?: Address | undefined;
38
- $sourceQuery?: Hash | undefined;
40
+ _hash: import("@xylabs/sdk-js").BrandedHash;
41
+ _dataHash: import("@xylabs/sdk-js").BrandedHash;
42
+ $destination?: (Lowercase<string> & {
43
+ readonly __hex: true;
44
+ } & {
45
+ readonly __address: true;
46
+ }) | undefined;
47
+ $sourceQuery?: import("@xylabs/sdk-js").BrandedHash | undefined;
39
48
  protocol?: number | undefined;
40
- step_hashes?: Hash[] | undefined;
49
+ step_hashes?: import("@xylabs/sdk-js").BrandedHash[] | undefined;
41
50
  }, {
42
51
  schema: "network.xyo.boundwitness";
43
- addresses: Address[];
44
- payload_hashes: Hash[];
52
+ addresses: (Lowercase<string> & {
53
+ readonly __hex: true;
54
+ } & {
55
+ readonly __address: true;
56
+ })[];
57
+ payload_hashes: import("@xylabs/sdk-js").BrandedHash[];
45
58
  payload_schemas: string[];
46
- previous_hashes: (Hash | null)[];
47
- $signatures: (import("@xylabs/sdk-js").Hex | null)[];
59
+ previous_hashes: (import("@xylabs/sdk-js").BrandedHash | null)[];
60
+ $signatures: (import("@xylabs/sdk-js").BrandedHex | null)[];
48
61
  nbf: XL1BlockNumber;
49
62
  exp: XL1BlockNumber;
50
63
  fees: {
51
- base: import("@xylabs/sdk-js").Hex;
52
- gasLimit: import("@xylabs/sdk-js").Hex;
53
- gasPrice: import("@xylabs/sdk-js").Hex;
54
- priority: import("@xylabs/sdk-js").Hex;
64
+ base: import("@xylabs/sdk-js").BrandedHex;
65
+ gasLimit: import("@xylabs/sdk-js").BrandedHex;
66
+ gasPrice: import("@xylabs/sdk-js").BrandedHex;
67
+ priority: import("@xylabs/sdk-js").BrandedHex;
55
68
  };
56
- chain: import("@xylabs/sdk-js").Hex;
57
- from: Address;
58
- _hash: Hash;
59
- _dataHash: Hash;
60
- $destination?: Address | undefined;
61
- $sourceQuery?: Hash | undefined;
69
+ chain: import("@xylabs/sdk-js").BrandedHex;
70
+ from: Lowercase<string> & {
71
+ readonly __hex: true;
72
+ } & {
73
+ readonly __address: true;
74
+ };
75
+ _hash: import("@xylabs/sdk-js").BrandedHash;
76
+ _dataHash: import("@xylabs/sdk-js").BrandedHash;
77
+ $destination?: (Lowercase<string> & {
78
+ readonly __hex: true;
79
+ } & {
80
+ readonly __address: true;
81
+ }) | undefined;
82
+ $sourceQuery?: import("@xylabs/sdk-js").BrandedHash | undefined;
62
83
  script?: string[] | undefined;
63
84
  } | null, {
64
85
  schema: "network.xyo.transfer";
65
86
  epoch: number;
66
- from: Address;
67
- transfers: Record<Address, import("@xylabs/sdk-js").Hex>;
68
- _hash: Hash;
69
- _dataHash: Hash;
87
+ from: Lowercase<string> & {
88
+ readonly __hex: true;
89
+ } & {
90
+ readonly __address: true;
91
+ };
92
+ transfers: Record<Lowercase<string> & {
93
+ readonly __hex: true;
94
+ } & {
95
+ readonly __address: true;
96
+ }, import("@xylabs/sdk-js").BrandedHex>;
97
+ _hash: import("@xylabs/sdk-js").BrandedHash;
98
+ _dataHash: import("@xylabs/sdk-js").BrandedHash;
70
99
  context?: Record<string, unknown> | undefined;
71
100
  }][]>;
72
- accountBalances(address: Address[], config?: AccountBalanceConfig): Promise<Record<Address, AttoXL1>>;
101
+ accountBalances(address: Address[], config?: AccountBalanceConfig): Promise<Record<Lowercase<string> & {
102
+ readonly __hex: true;
103
+ } & {
104
+ readonly __address: true;
105
+ }, AttoXL1>>;
73
106
  createHandler(): Promise<void>;
74
107
  qualifiedAccountBalanceHistories(addresses: Address[], config: AccountBalanceConfig): Promise<[any, {
75
108
  range: [XL1BlockNumber, XL1BlockNumber];
76
- head: Hash;
109
+ head: import("@xylabs/sdk-js").BrandedHash;
77
110
  }]>;
78
111
  qualifiedAccountBalances(address: Address[], config: AccountBalanceConfig): Promise<ChainQualified<Record<Address, AttoXL1>>>;
79
112
  startHandler(): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"SimpleAccountBalanceViewer.d.ts","sourceRoot":"","sources":["../../../../src/simple/accountBalance/SimpleAccountBalanceViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAOnD,OAAO,KAAK,EACqC,cAAc,EAC9D,MAAM,2BAA2B,CAAA;AAClC,OAAO,EACuC,OAAO,EAGpD,MAAM,2BAA2B,CAAA;AAGlC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAA;AAC/E,OAAO,EAAE,yBAAyB,EAAqB,MAAM,kCAAkC,CAAA;AAC/F,OAAO,EACe,KAAK,cAAc,EACxC,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EACV,yBAAyB,EAEzB,2BAA2B,EAC5B,MAAM,wBAAwB,CAAA;AAK/B,OAAO,EACL,oBAAoB,EACY,KAAK,oBA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E,qBAAqB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4BrE,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,MAAM,CAAC,EAAE,oBAAoB;;;;;IAKxD,aAAa;IAKtB,gCAAgC,CACpC,SAAS,EAAE,OAAO,EAAE,EACpB,MAAM,EAAE,oBAAoB;;;;IAqCxB,wBAAwB,CAC5B,OAAO,EAAE,OAAO,EAAE,EAClB,MAAM,EAAE,oBAAoB,GAC3B,OAAO,CAAC,cAAc,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAerC,YAAY;YAQb,sBAAsB;YAsCtB,8BAA8B;CAkC7C"}
@@ -1,25 +1,27 @@
1
1
  import type { Hash } from '@xylabs/sdk-js';
2
2
  import type { ReadArchivist } from '@xyo-network/archivist-model';
3
- import type { Payload, WithHashMeta } from '@xyo-network/payload-model';
4
- import { ChainId, type SignedHydratedBlockWithHashMeta, type XL1BlockNumber } from '@xyo-network/xl1-protocol';
3
+ import type { Payload, WithStorageMeta } from '@xyo-network/payload-model';
4
+ import { ChainId, type SignedHydratedBlockWithHashMeta, SignedHydratedBlockWithStorageMeta, type XL1BlockNumber } from '@xyo-network/xl1-protocol';
5
5
  import type { CreatableProviderParams } from '../../CreatableProvider/index.ts';
6
6
  import { AbstractCreatableProvider } from '../../CreatableProvider/index.ts';
7
7
  import type { ChainStoreRead, PayloadMap } from '../../model/index.ts';
8
8
  import { HydratedCache } from '../../utils/index.ts';
9
- import { type BlockViewer } from '../../viewers/index.ts';
9
+ import { type BlockViewer, FinalizationViewer } from '../../viewers/index.ts';
10
10
  export interface SimpleBlockViewerParams extends CreatableProviderParams {
11
11
  finalizedArchivist: ReadArchivist;
12
12
  }
13
13
  export declare class SimpleBlockViewer extends AbstractCreatableProvider<SimpleBlockViewerParams> implements BlockViewer {
14
14
  static readonly defaultMoniker: "BlockViewer";
15
+ static readonly dependencies: "FinalizationViewer"[];
15
16
  static readonly monikers: "BlockViewer"[];
16
17
  moniker: "BlockViewer";
17
18
  protected _store: ChainStoreRead | undefined;
19
+ protected finalizationViewer: FinalizationViewer;
18
20
  private _payloadCache;
19
21
  private _signedHydratedBlockCache;
20
22
  get finalizedArchivist(): ReadArchivist;
21
- protected get hydratedBlockCache(): HydratedCache<SignedHydratedBlockWithHashMeta>;
22
- protected get payloadCache(): PayloadMap<WithHashMeta<Payload>>;
23
+ protected get hydratedBlockCache(): HydratedCache<SignedHydratedBlockWithStorageMeta>;
24
+ protected get payloadCache(): PayloadMap<WithStorageMeta<Payload>>;
23
25
  protected get store(): ChainStoreRead;
24
26
  static paramsHandler(params: Partial<SimpleBlockViewerParams>): Promise<{
25
27
  context: import("../../CreatableProvider/CreatableProvider.ts").CreatableProviderContext;
@@ -40,25 +42,7 @@ export declare class SimpleBlockViewer extends AbstractCreatableProvider<SimpleB
40
42
  currentBlock(): Promise<SignedHydratedBlockWithHashMeta>;
41
43
  currentBlockHash(): Promise<Hash>;
42
44
  currentBlockNumber(): Promise<XL1BlockNumber>;
43
- payloadByHash(hash: Hash): Promise<WithHashMeta<Payload> | null>;
44
- payloadsByHash(hashes: Hash[]): Promise<WithHashMeta<Payload>[]>;
45
- protected getCurrentHead(): Promise<{
46
- schema: "network.xyo.boundwitness";
47
- addresses: import("@xylabs/sdk-js").Address[];
48
- payload_hashes: Hash[];
49
- payload_schemas: string[];
50
- previous_hashes: (Hash | null)[];
51
- $signatures: import("@xylabs/sdk-js").Hex[];
52
- block: XL1BlockNumber;
53
- chain: import("@xylabs/sdk-js").Hex;
54
- previous: Hash | null;
55
- $epoch: number;
56
- _hash: Hash;
57
- _dataHash: Hash;
58
- $destination?: import("@xylabs/sdk-js").Address | undefined;
59
- $sourceQuery?: Hash | undefined;
60
- protocol?: number | undefined;
61
- step_hashes?: Hash[] | undefined;
62
- } | undefined>;
45
+ payloadByHash(hash: Hash): Promise<WithStorageMeta<Payload> | null>;
46
+ payloadsByHash(hashes: Hash[]): Promise<WithStorageMeta<Payload>[]>;
63
47
  }
64
48
  //# sourceMappingURL=SimpleBlockViewer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SimpleBlockViewer.d.ts","sourceRoot":"","sources":["../../../../src/simple/block/SimpleBlockViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAQ1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AACjE,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACvE,OAAO,EAGL,OAAO,EACP,KAAK,+BAA+B,EACpC,KAAK,cAAc,EACpB,MAAM,2BAA2B,CAAA;AAGlC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAA;AAC/E,OAAO,EAAE,yBAAyB,EAAqB,MAAM,kCAAkC,CAAA;AAE/F,OAAO,KAAK,EAEV,cAAc,EAAE,UAAU,EAC3B,MAAM,sBAAsB,CAAA;AAI7B,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,KAAK,WAAW,EAAsB,MAAM,wBAAwB,CAAA;AAE7E,MAAM,WAAW,uBAAwB,SAAQ,uBAAuB;IACtE,kBAAkB,EAAE,aAAa,CAAA;CAClC;AAED,qBACa,iBAAkB,SAAQ,yBAAyB,CAAC,uBAAuB,CAAE,YAAW,WAAW;IAC9G,MAAM,CAAC,QAAQ,CAAC,cAAc,gBAAqB;IACnD,MAAM,CAAC,QAAQ,CAAC,QAAQ,kBAAuB;IAC/C,OAAO,gBAAmC;IAE1C,SAAS,CAAC,MAAM,EAAE,cAAc,GAAG,SAAS,CAAA;IAE5C,OAAO,CAAC,aAAa,CAA+C;IACpE,OAAO,CAAC,yBAAyB,CAA4D;I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,CAAC,CAapF;IAED,SAAS,KAAK,YAAY,IAAI,UAAU,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CAIjE;IAED,SAAS,KAAK,KAAK,mBAElB;WAEqB,aAAa,CAAC,MAAM,EAAE,OAAO,CAAC,uBAAuB,CAAC;;;;;;;;IAMtE,WAAW,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,+BAA+B,GAAG,IAAI,CAAC;IAOxE,aAAa,CAAC,WAAW,EAAE,cAAc,GAAG,OAAO,CAAC,+BAA+B,GAAG,IAAI,CAAC;IAiB3F,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,SAAK,GAAG,OAAO,CAAC,+BAA+B,EAAE,CAAC;IAgBhF,cAAc,CAAC,WAAW,EAAE,cAAc,EAAE,KAAK,SAAK,GAAG,OAAO,CAAC,+BAA+B,EAAE,CAAC;IAgBzG,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC;IAC3B,OAAO,CAAC,WAAW,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IACtD,OAAO,CAAC,WAAW,EAAE,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC;IAWjC,aAAa;IAMtB,YAAY,IAAI,OAAO,CAAC,+BAA+B,CAAC;IAIxD,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;IAIjC,kBAAkB,IAAI,OAAO,CAAC,cAAc,CAAC;IAI7C,aAAa,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IAanE,cAAc,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,CAAC;CAU1E"}
@@ -12,6 +12,7 @@ export interface SimpleBlockRewardViewerParams extends CreatableProviderParams {
12
12
  }
13
13
  export declare class SimpleBlockRewardViewer extends AbstractCreatableProvider<SimpleBlockRewardViewerParams> implements BlockRewardViewer {
14
14
  static readonly defaultMoniker: "BlockRewardViewer";
15
+ static readonly dependencies: never[];
15
16
  static readonly monikers: "BlockRewardViewer"[];
16
17
  moniker: "BlockRewardViewer";
17
18
  protected rewardFromBlockNumber: (blockNumber: XL1BlockNumber, startingReward?: AttoXL1, blocksPerStep?: number, stepFactorNumerator?: bigint, stepFactorDenominator?: bigint, minBlockReward?: AttoXL1, creatorReward?: AttoXL1) => AttoXL1;
@@ -1 +1 @@
1
- {"version":3,"file":"SimpleBlockRewardViewer.d.ts","sourceRoot":"","sources":["../../../../src/simple/blockReward/SimpleBlockRewardViewer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAC3C,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAEnE,OAAO,EACL,yBAAyB,EAAqB,uBAAuB,EACtE,MAAM,kCAAkC,CAAA;AAEzC,OAAO,EAAE,iBAAiB,EAA4B,MAAM,wBAAwB,CAAA;AAEpF,MAAM,WAAW,6BAA8B,SAAQ,uBAAuB;IAC5E,aAAa,EAAE,OAAO,CAAA;IACtB,aAAa,EAAE,OAAO,CAAA;IACtB,iBAAiB,EAAE,OAAO,CAAA;IAC1B,qBAAqB,EAAE,MAAM,CAAA;IAC7B,mBAAmB,EAAE,MAAM,CAAA;IAC3B,QAAQ,EAAE,cAAc,CAAA;CACzB;AAED,qBACa,uBAAwB,SAAQ,yBAAyB,CAAC,6BAA6B,CAAE,YAAW,iBAAiB;IAChI,MAAM,CAAC,QAAQ,CAAC,cAAc,sBAA2B;IACzD,MAAM,CAAC,QAAQ,CAAC,QAAQ,wBAA6B;IACrD,OAAO,sBAAyC;IAEhD,SAAS,CAAC,qBAAqB,8MAA4B;IAE3D,qBAAqB,CAAC,KAAK,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;CAWlE"}
1
+ {"version":3,"file":"SimpleBlockRewardViewer.d.ts","sourceRoot":"","sources":["../../../../src/simple/blockReward/SimpleBlockRewardViewer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAC3C,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAEnE,OAAO,EACL,yBAAyB,EAAqB,uBAAuB,EACtE,MAAM,kCAAkC,CAAA;AAEzC,OAAO,EAAE,iBAAiB,EAA4B,MAAM,wBAAwB,CAAA;AAEpF,MAAM,WAAW,6BAA8B,SAAQ,uBAAuB;IAC5E,aAAa,EAAE,OAAO,CAAA;IACtB,aAAa,EAAE,OAAO,CAAA;IACtB,iBAAiB,EAAE,OAAO,CAAA;IAC1B,qBAAqB,EAAE,MAAM,CAAA;IAC7B,mBAAmB,EAAE,MAAM,CAAA;IAC3B,QAAQ,EAAE,cAAc,CAAA;CACzB;AAED,qBACa,uBAAwB,SAAQ,yBAAyB,CAAC,6BAA6B,CAAE,YAAW,iBAAiB;IAChI,MAAM,CAAC,QAAQ,CAAC,cAAc,sBAA2B;IACzD,MAAM,CAAC,QAAQ,CAAC,YAAY,UAAK;IACjC,MAAM,CAAC,QAAQ,CAAC,QAAQ,wBAA6B;IACrD,OAAO,sBAAyC;IAEhD,SAAS,CAAC,qBAAqB,8MAA4B;IAE3D,qBAAqB,CAAC,KAAK,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;CAWlE"}
@@ -6,17 +6,18 @@ import type { BlockValidationConfig, BlockValidationQualification, BlockValidati
6
6
  import { BlockViewer } from '../../viewers/index.ts';
7
7
  export interface SimpleBlockValidationViewerParams extends CreatableProviderParams {
8
8
  maxUncleWindowSize: number;
9
+ protocol?: HydratedBlockValidationFunction;
9
10
  state?: HydratedBlockStateValidationFunction;
10
- value?: HydratedBlockValidationFunction;
11
11
  }
12
12
  export declare class SimpleBlockValidationViewer extends AbstractCreatableProvider<SimpleBlockValidationViewerParams> implements BlockValidationViewer {
13
13
  static readonly defaultMoniker: "BlockValidationViewer";
14
+ static readonly dependencies: ("BlockViewer" | "AccountBalanceViewer")[];
14
15
  static readonly monikers: "BlockValidationViewer"[];
15
16
  moniker: "BlockValidationViewer";
16
17
  private _accountBalanceViewer;
17
18
  private _blockViewer;
18
19
  private _uncleWindowedChainCache;
19
- protected get blockViewer(): BlockViewer;
20
+ protected get blockViewer(): BlockViewer<"BlockViewer">;
20
21
  protected get maxUncleWindowSize(): number;
21
22
  static paramsHandler(params: Partial<SimpleBlockValidationViewerParams>): Promise<SimpleBlockValidationViewerParams>;
22
23
  createHandler(): Promise<void>;
@@ -24,8 +25,8 @@ export declare class SimpleBlockValidationViewer extends AbstractCreatableProvid
24
25
  qualifiedValidateBlocks(blocks: SignedHydratedBlockWithHashMeta[], config?: BlockValidationConfig): Promise<[HydratedBlockValidationError[], BlockValidationQualification]>;
25
26
  validateBlock(block: SignedHydratedBlockWithHashMeta, config?: BlockValidationConfig): Promise<HydratedBlockValidationError[]>;
26
27
  validateBlocks(blocks: SignedHydratedBlockWithHashMeta[], config?: BlockValidationConfig): Promise<HydratedBlockValidationError[]>;
28
+ private doValidateProtocol;
27
29
  private doValidateState;
28
- private doValidateValue;
29
30
  private updateWindowedChainCache;
30
31
  }
31
32
  //# sourceMappingURL=SimpleBlockValidationViewer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SimpleBlockValidationViewer.d.ts","sourceRoot":"","sources":["../../../../src/simple/blockValidation/SimpleBlockValidationViewer.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,+BAA+B,EACrC,MAAM,2BAA2B,CAAA;AAElC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAA;AAC/E,OAAO,EAAE,yBAAyB,EAAqB,MAAM,kCAAkC,CAAA;AAE/F,OAAO,KAAK,EACV,oCAAoC,EAAE,4BAA4B,EAAE,+BAA+B,EACpG,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAEV,qBAAqB,EACrB,4BAA4B,EAC5B,qBAAqB,EACtB,MAAM,wBAAwB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;CAIvC"}
1
+ {"version":3,"file":"SimpleBlockValidationViewer.d.ts","sourceRoot":"","sources":["../../../../src/simple/blockValidation/SimpleBlockValidationViewer.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,+BAA+B,EACrC,MAAM,2BAA2B,CAAA;AAElC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAA;AAC/E,OAAO,EAAE,yBAAyB,EAAqB,MAAM,kCAAkC,CAAA;AAE/F,OAAO,KAAK,EACV,oCAAoC,EAAE,4BAA4B,EAAE,+BAA+B,EACpG,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAEV,qBAAqB,EACrB,4BAA4B,EAC5B,qBAAqB,EACtB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAEyB,WAAW,EAC1C,MAAM,wBAAwB,CAAA;AAE/B,MAAM,WAAW,iCAAkC,SAAQ,uBAAuB;IAChF,kBAAkB,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,EAAE,+BAA+B,CAAA;IAC1C,KAAK,CAAC,EAAE,oCAAoC,CAAA;CAC7C;AAED,qBACa,2BAA4B,SAAQ,yBAAyB,CAAC,iCAAiC,CAAE,YAAW,qBAAqB;IAC5I,MAAM,CAAC,QAAQ,CAAC,cAAc,0BAA+B;IAC7D,MAAM,CAAC,QAAQ,CAAC,YAAY,6CAAoD;IAChF,MAAM,CAAC,QAAQ,CAAC,QAAQ,4BAAiC;IACzD,OAAO,0BAA6C;IAEpD,OAAO,CAAC,qBAAqB,CAAuB;IACpD,OAAO,CAAC,YAAY,CAAc;IAClC,OAAO,CAAC,wBAAwB,CAAiD;IAEjF,SAAS,KAAK,WAAW,+BAExB;IAED,SAAS,KAAK,kBAAkB,WAE/B;WAEqB,aAAa,CAAC,MAAM,EAAE,OAAO,CAAC,iCAAiC,CAAC,GAAG,OAAO,CAAC,iCAAiC,CAAC;IAOpH,aAAa;IAMtB,sBAAsB,CAC1B,KAAK,EAAE,+BAA+B,EACtC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