@aztec/stdlib 5.0.0-nightly.20260518 → 5.0.0-nightly.20260521

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 (284) hide show
  1. package/dest/abi/abi.d.ts +106 -1199
  2. package/dest/abi/abi.d.ts.map +1 -1
  3. package/dest/abi/abi.js +6 -6
  4. package/dest/abi/authorization_selector.d.ts +2 -2
  5. package/dest/abi/authorization_selector.d.ts.map +1 -1
  6. package/dest/abi/event_selector.d.ts +2 -2
  7. package/dest/abi/event_selector.d.ts.map +1 -1
  8. package/dest/abi/function_call.d.ts +7 -25
  9. package/dest/abi/function_call.d.ts.map +1 -1
  10. package/dest/abi/note_selector.d.ts +2 -2
  11. package/dest/abi/note_selector.d.ts.map +1 -1
  12. package/dest/auth_witness/auth_witness.d.ts +2 -2
  13. package/dest/auth_witness/auth_witness.d.ts.map +1 -1
  14. package/dest/avm/avm.d.ts +1724 -10450
  15. package/dest/avm/avm.d.ts.map +1 -1
  16. package/dest/avm/avm_accumulated_data.d.ts +22 -86
  17. package/dest/avm/avm_accumulated_data.d.ts.map +1 -1
  18. package/dest/avm/avm_circuit_public_inputs.d.ts +180 -932
  19. package/dest/avm/avm_circuit_public_inputs.d.ts.map +1 -1
  20. package/dest/avm/avm_proving_request.d.ts +643 -5442
  21. package/dest/avm/avm_proving_request.d.ts.map +1 -1
  22. package/dest/avm/public_data_write.d.ts +6 -12
  23. package/dest/avm/public_data_write.d.ts.map +1 -1
  24. package/dest/block/block_data.d.ts +9 -34
  25. package/dest/block/block_data.d.ts.map +1 -1
  26. package/dest/block/block_parameter.d.ts +4 -4
  27. package/dest/block/block_parameter.d.ts.map +1 -1
  28. package/dest/block/in_block.d.ts +5 -24
  29. package/dest/block/in_block.d.ts.map +1 -1
  30. package/dest/block/l2_block.d.ts +13 -41
  31. package/dest/block/l2_block.d.ts.map +1 -1
  32. package/dest/block/l2_block_info.d.ts +7 -27
  33. package/dest/block/l2_block_info.d.ts.map +1 -1
  34. package/dest/block/l2_block_source.d.ts +29 -297
  35. package/dest/block/l2_block_source.d.ts.map +1 -1
  36. package/dest/block/proposal/attestations_and_signers.d.ts +9 -27
  37. package/dest/block/proposal/attestations_and_signers.d.ts.map +1 -1
  38. package/dest/block/proposal/committee_attestation.d.ts +6 -12
  39. package/dest/block/proposal/committee_attestation.d.ts.map +1 -1
  40. package/dest/checkpoint/checkpoint.d.ts +24 -96
  41. package/dest/checkpoint/checkpoint.d.ts.map +1 -1
  42. package/dest/checkpoint/checkpoint_data.d.ts +37 -132
  43. package/dest/checkpoint/checkpoint_data.d.ts.map +1 -1
  44. package/dest/checkpoint/checkpoint_info.d.ts +7 -23
  45. package/dest/checkpoint/checkpoint_info.d.ts.map +1 -1
  46. package/dest/checkpoint/published_checkpoint.d.ts +42 -194
  47. package/dest/checkpoint/published_checkpoint.d.ts.map +1 -1
  48. package/dest/config/pipelining-config.d.ts +2 -6
  49. package/dest/config/pipelining-config.d.ts.map +1 -1
  50. package/dest/contract/complete_address.d.ts +2 -2
  51. package/dest/contract/complete_address.d.ts.map +1 -1
  52. package/dest/contract/contract_deployment_data.d.ts +15 -61
  53. package/dest/contract/contract_deployment_data.d.ts.map +1 -1
  54. package/dest/contract/interfaces/contract_class.d.ts +15 -86
  55. package/dest/contract/interfaces/contract_class.d.ts.map +1 -1
  56. package/dest/contract/interfaces/contract_instance.d.ts +18 -84
  57. package/dest/contract/interfaces/contract_instance.d.ts.map +1 -1
  58. package/dest/contract/interfaces/contract_instance_update.d.ts +6 -26
  59. package/dest/contract/interfaces/contract_instance_update.d.ts.map +1 -1
  60. package/dest/contract/interfaces/protocol_contract_addresses.d.ts +2 -12
  61. package/dest/contract/interfaces/protocol_contract_addresses.d.ts.map +1 -1
  62. package/dest/database-version/database_version.d.ts +5 -11
  63. package/dest/database-version/database_version.d.ts.map +1 -1
  64. package/dest/epoch-helpers/index.d.ts +4 -22
  65. package/dest/epoch-helpers/index.d.ts.map +1 -1
  66. package/dest/gas/gas.d.ts +6 -12
  67. package/dest/gas/gas.d.ts.map +1 -1
  68. package/dest/gas/gas_fees.d.ts +6 -12
  69. package/dest/gas/gas_fees.d.ts.map +1 -1
  70. package/dest/gas/gas_settings.d.ts +24 -82
  71. package/dest/gas/gas_settings.d.ts.map +1 -1
  72. package/dest/ha-signing/config.d.ts +6 -47
  73. package/dest/ha-signing/config.d.ts.map +1 -1
  74. package/dest/ha-signing/local_config.d.ts +3 -24
  75. package/dest/ha-signing/local_config.d.ts.map +1 -1
  76. package/dest/interfaces/allowed_element.d.ts +4 -28
  77. package/dest/interfaces/allowed_element.d.ts.map +1 -1
  78. package/dest/interfaces/archiver.d.ts +8 -30
  79. package/dest/interfaces/archiver.d.ts.map +1 -1
  80. package/dest/interfaces/archiver.js +217 -41
  81. package/dest/interfaces/aztec-node-admin.d.ts +42 -305
  82. package/dest/interfaces/aztec-node-admin.d.ts.map +1 -1
  83. package/dest/interfaces/aztec-node-admin.js +46 -12
  84. package/dest/interfaces/aztec-node-debug.js +4 -1
  85. package/dest/interfaces/aztec-node.d.ts +1 -1
  86. package/dest/interfaces/aztec-node.d.ts.map +1 -1
  87. package/dest/interfaces/aztec-node.js +303 -56
  88. package/dest/interfaces/block_response.d.ts +20 -92
  89. package/dest/interfaces/block_response.d.ts.map +1 -1
  90. package/dest/interfaces/chain_tips.d.ts +21 -275
  91. package/dest/interfaces/chain_tips.d.ts.map +1 -1
  92. package/dest/interfaces/checkpoint_parameter.d.ts +6 -18
  93. package/dest/interfaces/checkpoint_parameter.d.ts.map +1 -1
  94. package/dest/interfaces/checkpoint_response.d.ts +40 -230
  95. package/dest/interfaces/checkpoint_response.d.ts.map +1 -1
  96. package/dest/interfaces/configs.d.ts +6 -136
  97. package/dest/interfaces/configs.d.ts.map +1 -1
  98. package/dest/interfaces/get_logs_response.d.ts +15 -68
  99. package/dest/interfaces/get_logs_response.d.ts.map +1 -1
  100. package/dest/interfaces/l1_publish_info.d.ts +6 -20
  101. package/dest/interfaces/l1_publish_info.d.ts.map +1 -1
  102. package/dest/interfaces/p2p-bootstrap.js +8 -2
  103. package/dest/interfaces/p2p.d.ts +1 -1
  104. package/dest/interfaces/p2p.d.ts.map +1 -1
  105. package/dest/interfaces/p2p.js +28 -5
  106. package/dest/interfaces/prover-agent.d.ts +5 -23
  107. package/dest/interfaces/prover-agent.d.ts.map +1 -1
  108. package/dest/interfaces/prover-agent.js +4 -1
  109. package/dest/interfaces/prover-client.d.ts +6 -27
  110. package/dest/interfaces/prover-client.d.ts.map +1 -1
  111. package/dest/interfaces/prover-node.js +22 -8
  112. package/dest/interfaces/proving-job-source.js +24 -4
  113. package/dest/interfaces/proving-job.d.ts +736 -5793
  114. package/dest/interfaces/proving-job.d.ts.map +1 -1
  115. package/dest/interfaces/proving-job.js +1 -1
  116. package/dest/interfaces/public_storage_override.d.ts +2 -10
  117. package/dest/interfaces/public_storage_override.d.ts.map +1 -1
  118. package/dest/interfaces/slasher.d.ts +15 -57
  119. package/dest/interfaces/slasher.d.ts.map +1 -1
  120. package/dest/interfaces/validator.d.ts +28 -217
  121. package/dest/interfaces/validator.d.ts.map +1 -1
  122. package/dest/interfaces/world_state.d.ts +2 -2
  123. package/dest/interfaces/world_state.d.ts.map +1 -1
  124. package/dest/kernel/private_circuit_public_inputs.d.ts +2 -2
  125. package/dest/kernel/private_circuit_public_inputs.d.ts.map +1 -1
  126. package/dest/kernel/private_kernel_circuit_public_inputs.d.ts +2 -2
  127. package/dest/kernel/private_kernel_circuit_public_inputs.d.ts.map +1 -1
  128. package/dest/kernel/private_kernel_prover_output.d.ts +3 -29
  129. package/dest/kernel/private_kernel_prover_output.d.ts.map +1 -1
  130. package/dest/kernel/private_kernel_tail_circuit_public_inputs.d.ts +2 -2
  131. package/dest/kernel/private_kernel_tail_circuit_public_inputs.d.ts.map +1 -1
  132. package/dest/kernel/private_to_avm_accumulated_data.d.ts +20 -66
  133. package/dest/kernel/private_to_avm_accumulated_data.d.ts.map +1 -1
  134. package/dest/kernel/private_to_public_kernel_circuit_public_inputs.d.ts +2 -2
  135. package/dest/kernel/private_to_public_kernel_circuit_public_inputs.d.ts.map +1 -1
  136. package/dest/kernel/private_to_rollup_accumulated_data.d.ts +2 -2
  137. package/dest/kernel/private_to_rollup_accumulated_data.d.ts.map +1 -1
  138. package/dest/kernel/private_to_rollup_kernel_circuit_public_inputs.d.ts +2 -2
  139. package/dest/kernel/private_to_rollup_kernel_circuit_public_inputs.d.ts.map +1 -1
  140. package/dest/kernel/public_call_request.d.ts +8 -26
  141. package/dest/kernel/public_call_request.d.ts.map +1 -1
  142. package/dest/keys/public_keys.d.ts +8 -18
  143. package/dest/keys/public_keys.d.ts.map +1 -1
  144. package/dest/logs/contract_class_log.d.ts +12 -32
  145. package/dest/logs/contract_class_log.d.ts.map +1 -1
  146. package/dest/logs/extended_directional_app_tagging_secret.d.ts +3 -9
  147. package/dest/logs/extended_directional_app_tagging_secret.d.ts.map +1 -1
  148. package/dest/logs/extended_public_log.d.ts +12 -44
  149. package/dest/logs/extended_public_log.d.ts.map +1 -1
  150. package/dest/logs/log_id.d.ts +9 -23
  151. package/dest/logs/log_id.d.ts.map +1 -1
  152. package/dest/logs/pre_tag.d.ts +5 -23
  153. package/dest/logs/pre_tag.d.ts.map +1 -1
  154. package/dest/logs/private_log.d.ts +5 -11
  155. package/dest/logs/private_log.d.ts.map +1 -1
  156. package/dest/logs/tagging_index_range.d.ts +6 -26
  157. package/dest/logs/tagging_index_range.d.ts.map +1 -1
  158. package/dest/logs/tx_scoped_l2_log.d.ts +11 -27
  159. package/dest/logs/tx_scoped_l2_log.d.ts.map +1 -1
  160. package/dest/messaging/l2_to_l1_message.d.ts +33 -111
  161. package/dest/messaging/l2_to_l1_message.d.ts.map +1 -1
  162. package/dest/note/note.d.ts +2 -2
  163. package/dest/note/note.d.ts.map +1 -1
  164. package/dest/p2p/consensus_payload.d.ts +6 -16
  165. package/dest/p2p/consensus_payload.d.ts.map +1 -1
  166. package/dest/parity/parity_base_private_inputs.d.ts +2 -2
  167. package/dest/parity/parity_base_private_inputs.d.ts.map +1 -1
  168. package/dest/parity/parity_public_inputs.d.ts +2 -2
  169. package/dest/parity/parity_public_inputs.d.ts.map +1 -1
  170. package/dest/parity/parity_root_private_inputs.d.ts +2 -2
  171. package/dest/parity/parity_root_private_inputs.d.ts.map +1 -1
  172. package/dest/proofs/chonk_proof.d.ts +3 -3
  173. package/dest/proofs/chonk_proof.d.ts.map +1 -1
  174. package/dest/proofs/recursive_proof.d.ts +2 -2
  175. package/dest/proofs/recursive_proof.d.ts.map +1 -1
  176. package/dest/rollup/block_merge_rollup_private_inputs.d.ts +2 -2
  177. package/dest/rollup/block_merge_rollup_private_inputs.d.ts.map +1 -1
  178. package/dest/rollup/block_rollup_public_inputs.d.ts +2 -2
  179. package/dest/rollup/block_rollup_public_inputs.d.ts.map +1 -1
  180. package/dest/rollup/block_root_rollup_private_inputs.d.ts +6 -6
  181. package/dest/rollup/block_root_rollup_private_inputs.d.ts.map +1 -1
  182. package/dest/rollup/checkpoint_merge_rollup_private_inputs.d.ts +2 -2
  183. package/dest/rollup/checkpoint_merge_rollup_private_inputs.d.ts.map +1 -1
  184. package/dest/rollup/checkpoint_rollup_public_inputs.d.ts +2 -2
  185. package/dest/rollup/checkpoint_rollup_public_inputs.d.ts.map +1 -1
  186. package/dest/rollup/checkpoint_root_rollup_private_inputs.d.ts +5 -5
  187. package/dest/rollup/checkpoint_root_rollup_private_inputs.d.ts.map +1 -1
  188. package/dest/rollup/private_tx_base_rollup_private_inputs.d.ts +2 -2
  189. package/dest/rollup/private_tx_base_rollup_private_inputs.d.ts.map +1 -1
  190. package/dest/rollup/public_chonk_verifier_private_inputs.d.ts +2 -2
  191. package/dest/rollup/public_chonk_verifier_private_inputs.d.ts.map +1 -1
  192. package/dest/rollup/public_chonk_verifier_public_inputs.d.ts +2 -2
  193. package/dest/rollup/public_chonk_verifier_public_inputs.d.ts.map +1 -1
  194. package/dest/rollup/public_tx_base_rollup_private_inputs.d.ts +2 -2
  195. package/dest/rollup/public_tx_base_rollup_private_inputs.d.ts.map +1 -1
  196. package/dest/rollup/root_rollup_private_inputs.d.ts +2 -2
  197. package/dest/rollup/root_rollup_private_inputs.d.ts.map +1 -1
  198. package/dest/rollup/root_rollup_public_inputs.d.ts +2 -2
  199. package/dest/rollup/root_rollup_public_inputs.d.ts.map +1 -1
  200. package/dest/rollup/tx_merge_rollup_private_inputs.d.ts +2 -2
  201. package/dest/rollup/tx_merge_rollup_private_inputs.d.ts.map +1 -1
  202. package/dest/rollup/tx_rollup_public_inputs.d.ts +2 -2
  203. package/dest/rollup/tx_rollup_public_inputs.d.ts.map +1 -1
  204. package/dest/schemas/schemas.d.ts +32 -78
  205. package/dest/schemas/schemas.d.ts.map +1 -1
  206. package/dest/schemas/schemas.js +2 -2
  207. package/dest/slashing/types.d.ts +6 -16
  208. package/dest/slashing/types.d.ts.map +1 -1
  209. package/dest/snapshots/types.d.ts +15 -78
  210. package/dest/snapshots/types.d.ts.map +1 -1
  211. package/dest/tests/factories.d.ts +1 -8
  212. package/dest/tests/factories.d.ts.map +1 -1
  213. package/dest/tests/factories.js +0 -8
  214. package/dest/trees/append_only_tree_snapshot.d.ts +6 -12
  215. package/dest/trees/append_only_tree_snapshot.d.ts.map +1 -1
  216. package/dest/trees/nullifier_leaf.d.ts +18 -42
  217. package/dest/trees/nullifier_leaf.d.ts.map +1 -1
  218. package/dest/trees/nullifier_membership_witness.d.ts +16 -59
  219. package/dest/trees/nullifier_membership_witness.d.ts.map +1 -1
  220. package/dest/trees/nullifier_membership_witness.js +2 -14
  221. package/dest/trees/public_data_leaf.d.ts +21 -53
  222. package/dest/trees/public_data_leaf.d.ts.map +1 -1
  223. package/dest/trees/public_data_witness.d.ts +16 -58
  224. package/dest/trees/public_data_witness.d.ts.map +1 -1
  225. package/dest/tx/call_context.d.ts +4 -14
  226. package/dest/tx/call_context.d.ts.map +1 -1
  227. package/dest/tx/capsule.d.ts +2 -2
  228. package/dest/tx/capsule.d.ts.map +1 -1
  229. package/dest/tx/function_data.d.ts +4 -10
  230. package/dest/tx/function_data.d.ts.map +1 -1
  231. package/dest/tx/global_variables.d.ts +13 -47
  232. package/dest/tx/global_variables.d.ts.map +1 -1
  233. package/dest/tx/in_tx.d.ts +5 -17
  234. package/dest/tx/in_tx.d.ts.map +1 -1
  235. package/dest/tx/indexed_tx_effect.d.ts +4 -18
  236. package/dest/tx/indexed_tx_effect.d.ts.map +1 -1
  237. package/dest/tx/partial_state_reference.d.ts +19 -63
  238. package/dest/tx/partial_state_reference.d.ts.map +1 -1
  239. package/dest/tx/private_execution_result.d.ts +6 -16
  240. package/dest/tx/private_execution_result.d.ts.map +1 -1
  241. package/dest/tx/profiling.d.ts +54 -352
  242. package/dest/tx/profiling.d.ts.map +1 -1
  243. package/dest/tx/protocol_contracts.d.ts +5 -9
  244. package/dest/tx/protocol_contracts.d.ts.map +1 -1
  245. package/dest/tx/proven_tx.d.ts +28 -74
  246. package/dest/tx/proven_tx.d.ts.map +1 -1
  247. package/dest/tx/simulated_tx.d.ts +30 -118
  248. package/dest/tx/simulated_tx.d.ts.map +1 -1
  249. package/dest/tx/state_reference.d.ts +27 -115
  250. package/dest/tx/state_reference.d.ts.map +1 -1
  251. package/dest/tx/tree_snapshots.d.ts +24 -82
  252. package/dest/tx/tree_snapshots.d.ts.map +1 -1
  253. package/dest/tx/tx_context.d.ts +29 -129
  254. package/dest/tx/tx_context.d.ts.map +1 -1
  255. package/dest/tx/tx_hash.d.ts +2 -2
  256. package/dest/tx/tx_hash.d.ts.map +1 -1
  257. package/dest/tx/validator/tx_validator.d.ts +5 -15
  258. package/dest/tx/validator/tx_validator.d.ts.map +1 -1
  259. package/dest/validators/schemas.d.ts +132 -613
  260. package/dest/validators/schemas.d.ts.map +1 -1
  261. package/dest/validators/schemas.js +2 -2
  262. package/dest/vks/verification_key.d.ts +3 -3
  263. package/dest/vks/verification_key.d.ts.map +1 -1
  264. package/dest/world-state/world_state_revision.d.ts +8 -26
  265. package/dest/world-state/world_state_revision.d.ts.map +1 -1
  266. package/package.json +9 -9
  267. package/src/abi/abi.ts +6 -5
  268. package/src/block/block_parameter.ts +2 -2
  269. package/src/block/l2_block_source.ts +5 -5
  270. package/src/interfaces/archiver.ts +59 -54
  271. package/src/interfaces/aztec-node-admin.ts +14 -11
  272. package/src/interfaces/aztec-node-debug.ts +1 -1
  273. package/src/interfaces/aztec-node.ts +143 -118
  274. package/src/interfaces/p2p-bootstrap.ts +2 -2
  275. package/src/interfaces/p2p.ts +15 -12
  276. package/src/interfaces/prover-agent.ts +1 -1
  277. package/src/interfaces/prover-node.ts +7 -7
  278. package/src/interfaces/proving-job-source.ts +4 -4
  279. package/src/interfaces/proving-job.ts +3 -3
  280. package/src/interfaces/world_state.ts +1 -1
  281. package/src/schemas/schemas.ts +6 -1
  282. package/src/tests/factories.ts +0 -10
  283. package/src/trees/nullifier_membership_witness.ts +2 -12
  284. package/src/validators/schemas.ts +2 -2
@@ -507,177 +507,202 @@ const MAX_SIGNATURES_PER_REGISTER_CALL = 100;
507
507
  const MAX_SIGNATURE_LEN = 10000;
508
508
 
509
509
  export const AztecNodeApiSchema: ApiSchemaFor<AztecNode> = {
510
- getWorldStateSyncStatus: z.function().args().returns(WorldStateSyncStatusSchema),
510
+ getWorldStateSyncStatus: z.function({ input: z.tuple([]), output: WorldStateSyncStatusSchema }),
511
511
 
512
- findLeavesIndexes: z
513
- .function()
514
- .args(BlockParameterSchema, z.nativeEnum(MerkleTreeId), z.array(schemas.Fr).max(MAX_RPC_LEN))
515
- .returns(z.array(optional(dataInBlockSchemaFor(schemas.BigInt)))),
512
+ findLeavesIndexes: z.function({
513
+ input: z.tuple([BlockParameterSchema, z.nativeEnum(MerkleTreeId), z.array(schemas.Fr).max(MAX_RPC_LEN)]),
514
+ output: z.array(optional(dataInBlockSchemaFor(schemas.BigInt))),
515
+ }),
516
516
 
517
- getNullifierMembershipWitness: z
518
- .function()
519
- .args(BlockParameterSchema, schemas.Fr)
520
- .returns(NullifierMembershipWitness.schema.optional()),
517
+ getNullifierMembershipWitness: z.function({
518
+ input: z.tuple([BlockParameterSchema, schemas.Fr]),
519
+ output: NullifierMembershipWitness.schema.optional(),
520
+ }),
521
521
 
522
- getLowNullifierMembershipWitness: z
523
- .function()
524
- .args(BlockParameterSchema, schemas.Fr)
525
- .returns(NullifierMembershipWitness.schema.optional()),
522
+ getLowNullifierMembershipWitness: z.function({
523
+ input: z.tuple([BlockParameterSchema, schemas.Fr]),
524
+ output: NullifierMembershipWitness.schema.optional(),
525
+ }),
526
526
 
527
- getPublicDataWitness: z
528
- .function()
529
- .args(BlockParameterSchema, schemas.Fr)
530
- .returns(PublicDataWitness.schema.optional()),
527
+ getPublicDataWitness: z.function({
528
+ input: z.tuple([BlockParameterSchema, schemas.Fr]),
529
+ output: PublicDataWitness.schema.optional(),
530
+ }),
531
531
 
532
- getBlockHashMembershipWitness: z
533
- .function()
534
- .args(BlockParameterSchema, BlockHash.schema)
535
- .returns(MembershipWitness.schemaFor(ARCHIVE_HEIGHT).optional()),
532
+ getBlockHashMembershipWitness: z.function({
533
+ input: z.tuple([BlockParameterSchema, BlockHash.schema]),
534
+ output: MembershipWitness.schemaFor(ARCHIVE_HEIGHT).optional(),
535
+ }),
536
536
 
537
- getNoteHashMembershipWitness: z
538
- .function()
539
- .args(BlockParameterSchema, schemas.Fr)
540
- .returns(MembershipWitness.schemaFor(NOTE_HASH_TREE_HEIGHT).optional()),
537
+ getNoteHashMembershipWitness: z.function({
538
+ input: z.tuple([BlockParameterSchema, schemas.Fr]),
539
+ output: MembershipWitness.schemaFor(NOTE_HASH_TREE_HEIGHT).optional(),
540
+ }),
541
541
 
542
- getL1ToL2MessageMembershipWitness: z
543
- .function()
544
- .args(BlockParameterSchema, schemas.Fr)
545
- .returns(z.tuple([schemas.BigInt, SiblingPath.schemaFor(L1_TO_L2_MSG_TREE_HEIGHT)]).optional()),
542
+ getL1ToL2MessageMembershipWitness: z.function({
543
+ input: z.tuple([BlockParameterSchema, schemas.Fr]),
544
+ output: z.tuple([schemas.BigInt, SiblingPath.schemaFor(L1_TO_L2_MSG_TREE_HEIGHT)]).optional(),
545
+ }),
546
546
 
547
- getL1ToL2MessageCheckpoint: z.function().args(schemas.Fr).returns(CheckpointNumberSchema.optional()),
547
+ getL1ToL2MessageCheckpoint: z.function({ input: z.tuple([schemas.Fr]), output: CheckpointNumberSchema.optional() }),
548
548
 
549
- getL2ToL1Messages: z
550
- .function()
551
- .args(EpochNumberSchema)
552
- .returns(z.array(z.array(z.array(z.array(schemas.Fr))))),
549
+ getL2ToL1Messages: z.function({
550
+ input: z.tuple([EpochNumberSchema]),
551
+ output: z.array(z.array(z.array(z.array(schemas.Fr)))),
552
+ }),
553
553
 
554
- getBlockNumber: z.function().args(optional(ChainTipSchema)).returns(BlockNumberSchema),
554
+ getBlockNumber: z.function({ input: z.tuple([optional(ChainTipSchema)]), output: BlockNumberSchema }),
555
555
 
556
- getCheckpointNumber: z.function().args(optional(ChainTipSchema)).returns(CheckpointNumberSchema),
556
+ getCheckpointNumber: z.function({ input: z.tuple([optional(ChainTipSchema)]), output: CheckpointNumberSchema }),
557
557
 
558
- getChainTips: z.function().args().returns(ChainTipsSchema),
558
+ getChainTips: z.function({ input: z.tuple([]), output: ChainTipsSchema }),
559
559
 
560
- getCheckpointsData: z.function().args(CheckpointsQuerySchema).returns(z.array(CheckpointDataSchema)),
560
+ getCheckpointsData: z.function({ input: z.tuple([CheckpointsQuerySchema]), output: z.array(CheckpointDataSchema) }),
561
561
 
562
- getBlock: z
563
- .function()
564
- .args(BlockParameterSchema, optional(BlockIncludeOptionsSchema))
565
- .returns(BlockResponseSchema.optional()),
562
+ getBlock: z.function({
563
+ input: z.tuple([BlockParameterSchema, optional(BlockIncludeOptionsSchema)]),
564
+ output: BlockResponseSchema.optional(),
565
+ }),
566
566
 
567
- getBlockData: z.function().args(BlockParameterSchema).returns(BlockDataSchema.optional()),
567
+ getBlockData: z.function({ input: z.tuple([BlockParameterSchema]), output: BlockDataSchema.optional() }),
568
568
 
569
- getBlocks: z
570
- .function()
571
- .args(BlockNumberPositiveSchema, z.number().gt(0).lte(MAX_RPC_BLOCKS_LEN), optional(BlocksIncludeOptionsSchema))
572
- .returns(z.array(BlockResponseSchema)),
569
+ getBlocks: z.function({
570
+ input: z.tuple([
571
+ BlockNumberPositiveSchema,
572
+ z.number().gt(0).lte(MAX_RPC_BLOCKS_LEN),
573
+ optional(BlocksIncludeOptionsSchema),
574
+ ]),
575
+ output: z.array(BlockResponseSchema),
576
+ }),
573
577
 
574
- getCheckpoint: z
575
- .function()
576
- .args(CheckpointParameterSchema, optional(CheckpointIncludeOptionsSchema))
577
- .returns(CheckpointResponseSchema.optional()),
578
+ getCheckpoint: z.function({
579
+ input: z.tuple([CheckpointParameterSchema, optional(CheckpointIncludeOptionsSchema)]),
580
+ output: CheckpointResponseSchema.optional(),
581
+ }),
578
582
 
579
- getCheckpoints: z
580
- .function()
581
- .args(
583
+ getCheckpoints: z.function({
584
+ input: z.tuple([
582
585
  CheckpointNumberPositiveSchema,
583
586
  z.number().gt(0).lte(MAX_RPC_CHECKPOINTS_LEN),
584
587
  optional(CheckpointIncludeOptionsSchema),
585
- )
586
- .returns(z.array(CheckpointResponseSchema)),
588
+ ]),
589
+ output: z.array(CheckpointResponseSchema),
590
+ }),
587
591
 
588
- isReady: z.function().returns(z.boolean()),
592
+ isReady: z.function({ input: z.tuple([]), output: z.boolean() }),
589
593
 
590
- getNodeInfo: z.function().returns(NodeInfoSchema),
594
+ getNodeInfo: z.function({ input: z.tuple([]), output: NodeInfoSchema }),
591
595
 
592
- getCurrentMinFees: z.function().returns(GasFees.schema),
596
+ getCurrentMinFees: z.function({ input: z.tuple([]), output: GasFees.schema }),
593
597
 
594
- getPredictedMinFees: z
595
- .function()
596
- .args(optional(z.nativeEnum(ManaUsageEstimate)))
597
- .returns(z.array(GasFees.schema)),
598
+ getPredictedMinFees: z.function({
599
+ input: z.tuple([optional(z.nativeEnum(ManaUsageEstimate))]),
600
+ output: z.array(GasFees.schema),
601
+ }),
598
602
 
599
- getMaxPriorityFees: z.function().returns(GasFees.schema),
603
+ getMaxPriorityFees: z.function({ input: z.tuple([]), output: GasFees.schema }),
600
604
 
601
- getNodeVersion: z.function().returns(z.string()),
605
+ getNodeVersion: z.function({ input: z.tuple([]), output: z.string() }),
602
606
 
603
- getVersion: z.function().returns(z.number()),
607
+ getVersion: z.function({ input: z.tuple([]), output: z.number() }),
604
608
 
605
- getChainId: z.function().returns(z.number()),
609
+ getChainId: z.function({ input: z.tuple([]), output: z.number() }),
606
610
 
607
- getL1ContractAddresses: z.function().returns(L1ContractAddressesSchema),
611
+ getL1ContractAddresses: z.function({ input: z.tuple([]), output: L1ContractAddressesSchema }),
608
612
 
609
- getProtocolContractAddresses: z.function().returns(ProtocolContractAddressesSchema),
613
+ getProtocolContractAddresses: z.function({ input: z.tuple([]), output: ProtocolContractAddressesSchema }),
610
614
 
611
- registerContractFunctionSignatures: z
612
- .function()
613
- .args(z.array(z.string().max(MAX_SIGNATURE_LEN)).max(MAX_SIGNATURES_PER_REGISTER_CALL))
614
- .returns(z.void()),
615
+ registerContractFunctionSignatures: z.function({
616
+ input: z.tuple([z.array(z.string().max(MAX_SIGNATURE_LEN)).max(MAX_SIGNATURES_PER_REGISTER_CALL)]),
617
+ output: z.void(),
618
+ }),
615
619
 
616
- getPublicLogs: z.function().args(LogFilterSchema).returns(GetPublicLogsResponseSchema),
620
+ getPublicLogs: z.function({ input: z.tuple([LogFilterSchema]), output: GetPublicLogsResponseSchema }),
617
621
 
618
- getContractClassLogs: z.function().args(LogFilterSchema).returns(GetContractClassLogsResponseSchema),
622
+ getContractClassLogs: z.function({ input: z.tuple([LogFilterSchema]), output: GetContractClassLogsResponseSchema }),
619
623
 
620
- getPrivateLogsByTags: z
621
- .function()
622
- .args(z.array(SiloedTag.schema).max(MAX_RPC_LEN), optional(z.number().gte(0)), optional(BlockHash.schema))
623
- .returns(z.array(z.array(TxScopedL2Log.schema))),
624
+ getPrivateLogsByTags: z.function({
625
+ input: z.tuple([
626
+ z.array(SiloedTag.schema).max(MAX_RPC_LEN),
627
+ optional(z.number().gte(0)),
628
+ optional(BlockHash.schema),
629
+ ]),
630
+ output: z.array(z.array(TxScopedL2Log.schema)),
631
+ }),
624
632
 
625
- getPublicLogsByTagsFromContract: z
626
- .function()
627
- .args(
633
+ getPublicLogsByTagsFromContract: z.function({
634
+ input: z.tuple([
628
635
  schemas.AztecAddress,
629
636
  z.array(Tag.schema).max(MAX_RPC_LEN),
630
637
  optional(z.number().gte(0)),
631
638
  optional(BlockHash.schema),
632
- )
633
- .returns(z.array(z.array(TxScopedL2Log.schema))),
639
+ ]),
640
+ output: z.array(z.array(TxScopedL2Log.schema)),
641
+ }),
634
642
 
635
- sendTx: z.function().args(Tx.schema).returns(z.void()),
643
+ sendTx: z.function({ input: z.tuple([Tx.schema]), output: z.void() }),
636
644
 
637
- getTxReceipt: z.function().args(TxHash.schema).returns(TxReceipt.schema),
645
+ getTxReceipt: z.function({ input: z.tuple([TxHash.schema]), output: TxReceipt.schema }),
638
646
 
639
- getTxEffect: z.function().args(TxHash.schema).returns(indexedTxSchema().optional()),
647
+ getTxEffect: z.function({ input: z.tuple([TxHash.schema]), output: indexedTxSchema().optional() }),
640
648
 
641
- getPendingTxs: z
642
- .function()
643
- .args(optional(z.number().gte(1).lte(MAX_RPC_TXS_LEN).default(MAX_RPC_TXS_LEN)), optional(TxHash.schema))
644
- .returns(z.array(Tx.schema)),
649
+ getPendingTxs: z.function({
650
+ input: z.tuple([
651
+ optional(z.number().gte(1).lte(MAX_RPC_TXS_LEN).default(MAX_RPC_TXS_LEN)),
652
+ optional(TxHash.schema),
653
+ ]),
654
+ output: z.array(Tx.schema),
655
+ }),
645
656
 
646
- getPendingTxCount: z.function().returns(z.number()),
657
+ getPendingTxCount: z.function({ input: z.tuple([]), output: z.number() }),
647
658
 
648
- getTxByHash: z.function().args(TxHash.schema).returns(Tx.schema.optional()),
659
+ getTxByHash: z.function({ input: z.tuple([TxHash.schema]), output: Tx.schema.optional() }),
649
660
 
650
- getTxsByHash: z.function().args(z.array(TxHash.schema).max(MAX_RPC_TXS_LEN)).returns(z.array(Tx.schema)),
661
+ getTxsByHash: z.function({
662
+ input: z.tuple([z.array(TxHash.schema).max(MAX_RPC_TXS_LEN)]),
663
+ output: z.array(Tx.schema),
664
+ }),
651
665
 
652
- getPublicStorageAt: z.function().args(BlockParameterSchema, schemas.AztecAddress, schemas.Fr).returns(schemas.Fr),
666
+ getPublicStorageAt: z.function({
667
+ input: z.tuple([BlockParameterSchema, schemas.AztecAddress, schemas.Fr]),
668
+ output: schemas.Fr,
669
+ }),
653
670
 
654
- getValidatorsStats: z.function().returns(ValidatorsStatsSchema),
671
+ getValidatorsStats: z.function({ input: z.tuple([]), output: ValidatorsStatsSchema }),
655
672
 
656
- getValidatorStats: z
657
- .function()
658
- .args(schemas.EthAddress, optional(schemas.SlotNumber), optional(schemas.SlotNumber))
659
- .returns(SingleValidatorStatsSchema.optional()),
673
+ getValidatorStats: z.function({
674
+ input: z.tuple([schemas.EthAddress, optional(schemas.SlotNumber), optional(schemas.SlotNumber)]),
675
+ output: SingleValidatorStatsSchema.optional(),
676
+ }),
660
677
 
661
- simulatePublicCalls: z
662
- .function()
663
- .args(Tx.schema, optional(z.boolean()), optional(SimulationOverrides.schema))
664
- .returns(PublicSimulationOutput.schema),
678
+ simulatePublicCalls: z.function({
679
+ input: z.tuple([Tx.schema, optional(z.boolean()), optional(SimulationOverrides.schema)]),
680
+ output: PublicSimulationOutput.schema,
681
+ }),
665
682
 
666
- isValidTx: z
667
- .function()
668
- .args(
683
+ isValidTx: z.function({
684
+ input: z.tuple([
669
685
  Tx.schema,
670
- optional(z.object({ isSimulation: optional(z.boolean()), skipFeeEnforcement: optional(z.boolean()) })),
671
- )
672
- .returns(TxValidationResultSchema),
673
-
674
- getContractClass: z.function().args(schemas.Fr).returns(ContractClassPublicSchema.optional()),
675
-
676
- getContract: z.function().args(schemas.AztecAddress).returns(ContractInstanceWithAddressSchema.optional()),
677
-
678
- getEncodedEnr: z.function().returns(z.string().optional()),
679
-
680
- getAllowedPublicSetup: z.function().args().returns(z.array(AllowedElementSchema)),
686
+ optional(
687
+ z.object({
688
+ isSimulation: optional(z.boolean()).optional(),
689
+ skipFeeEnforcement: optional(z.boolean()).optional(),
690
+ }),
691
+ ),
692
+ ]),
693
+ output: TxValidationResultSchema,
694
+ }),
695
+
696
+ getContractClass: z.function({ input: z.tuple([schemas.Fr]), output: ContractClassPublicSchema.optional() }),
697
+
698
+ getContract: z.function({
699
+ input: z.tuple([schemas.AztecAddress]),
700
+ output: ContractInstanceWithAddressSchema.optional(),
701
+ }),
702
+
703
+ getEncodedEnr: z.function({ input: z.tuple([]), output: z.string().optional() }),
704
+
705
+ getAllowedPublicSetup: z.function({ input: z.tuple([]), output: z.array(AllowedElementSchema) }),
681
706
  };
682
707
 
683
708
  export function createAztecNodeClient(
@@ -16,6 +16,6 @@ export interface P2PBootstrapApi {
16
16
  }
17
17
 
18
18
  export const P2PBootstrapApiSchema: ApiSchemaFor<P2PBootstrapApi> = {
19
- getEncodedEnr: z.function().returns(z.string()),
20
- getRoutingTable: z.function().returns(z.array(z.string())),
19
+ getEncodedEnr: z.function({ input: z.tuple([]), output: z.string() }),
20
+ getRoutingTable: z.function({ input: z.tuple([]), output: z.array(z.string()) }),
21
21
  };
@@ -70,19 +70,22 @@ export interface P2PClient extends P2PApi {
70
70
  }
71
71
 
72
72
  export const P2PApiSchema: ApiSchemaFor<P2PApi> = {
73
- getCheckpointAttestationsForSlot: z
74
- .function()
75
- .args(
73
+ getCheckpointAttestationsForSlot: z.function({
74
+ input: z.tuple([
76
75
  schemas.SlotNumber,
77
76
  optional(z.string().regex(/^0x[0-9a-fA-F]+$/) as unknown as z.ZodType<CheckpointProposalHash>),
78
- )
79
- .returns(z.array(CheckpointAttestation.schema)),
80
- getPendingTxs: z
81
- .function()
82
- .args(optional(z.number().gte(1).lte(MAX_RPC_TXS_LEN).default(MAX_RPC_TXS_LEN)), optional(TxHash.schema))
83
- .returns(z.array(Tx.schema)),
77
+ ]),
78
+ output: z.array(CheckpointAttestation.schema),
79
+ }),
80
+ getPendingTxs: z.function({
81
+ input: z.tuple([
82
+ optional(z.number().gte(1).lte(MAX_RPC_TXS_LEN).default(MAX_RPC_TXS_LEN)),
83
+ optional(TxHash.schema),
84
+ ]),
85
+ output: z.array(Tx.schema),
86
+ }),
84
87
 
85
- getPendingTxCount: z.function().returns(schemas.Integer),
86
- getEncodedEnr: z.function().returns(z.string().optional()),
87
- getPeers: z.function().args(optional(z.boolean())).returns(z.array(PeerInfoSchema)),
88
+ getPendingTxCount: z.function({ input: z.tuple([]), output: schemas.Integer }),
89
+ getEncodedEnr: z.function({ input: z.tuple([]), output: z.string().optional() }),
90
+ getPeers: z.function({ input: z.tuple([optional(z.boolean())]), output: z.array(PeerInfoSchema) }),
88
91
  };
@@ -15,5 +15,5 @@ export interface ProverAgentApi {
15
15
  }
16
16
 
17
17
  export const ProverAgentApiSchema: ApiSchemaFor<ProverAgentApi> = {
18
- getStatus: z.function().args().returns(ProverAgentStatusSchema),
18
+ getStatus: z.function({ input: z.tuple([]), output: ProverAgentStatusSchema }),
19
19
  };
@@ -41,14 +41,14 @@ export interface ProverNodeApi {
41
41
 
42
42
  /** Schemas for prover node API functions. */
43
43
  export const ProverNodeApiSchema: ApiSchemaFor<ProverNodeApi> = {
44
- getJobs: z
45
- .function()
46
- .args()
47
- .returns(z.array(z.object({ uuid: z.string(), status: z.enum(EpochProvingJobState), epochNumber: z.number() }))),
44
+ getJobs: z.function({
45
+ input: z.tuple([]),
46
+ output: z.array(z.object({ uuid: z.string(), status: z.enum(EpochProvingJobState), epochNumber: z.number() })),
47
+ }),
48
48
 
49
- startProof: z.function().args(schemas.Integer).returns(z.void()),
49
+ startProof: z.function({ input: z.tuple([schemas.Integer]), output: z.void() }),
50
50
 
51
- getL2Tips: z.function().args().returns(L2TipsSchema),
51
+ getL2Tips: z.function({ input: z.tuple([]), output: L2TipsSchema }),
52
52
 
53
- getWorldStateSyncStatus: z.function().args().returns(WorldStateSyncStatusSchema),
53
+ getWorldStateSyncStatus: z.function({ input: z.tuple([]), output: WorldStateSyncStatusSchema }),
54
54
  };
@@ -33,8 +33,8 @@ export interface ProvingJobSource {
33
33
  }
34
34
 
35
35
  export const ProvingJobSourceSchema: ApiSchemaFor<ProvingJobSource> = {
36
- getProvingJob: z.function().args().returns(ProvingJob.optional()),
37
- heartbeat: z.function().args(ProvingJobId).returns(z.void()),
38
- resolveProvingJob: z.function().args(ProvingJobId, ProvingJobResult).returns(z.void()),
39
- rejectProvingJob: z.function().args(ProvingJobId, z.string()).returns(z.void()),
36
+ getProvingJob: z.function({ input: z.tuple([]), output: ProvingJob.optional() }),
37
+ heartbeat: z.function({ input: z.tuple([ProvingJobId]), output: z.void() }),
38
+ resolveProvingJob: z.function({ input: z.tuple([ProvingJobId, ProvingJobResult]), output: z.void() }),
39
+ rejectProvingJob: z.function({ input: z.tuple([ProvingJobId, z.string()]), output: z.void() }),
40
40
  };
@@ -388,8 +388,8 @@ export type ProvingRequestResultFor<T extends ProvingRequestType> = { type: T; r
388
388
 
389
389
  export const ProvingJobId = z.string();
390
390
 
391
- export const ProofUri = z.string().brand('ProvingJobUri');
392
- export type ProofUri = z.infer<typeof ProofUri>;
391
+ export type ProofUri = string & z.$brand<'ProvingJobUri'>;
392
+ export const ProofUri: ZodFor<ProofUri> = z.string().transform(value => value as ProofUri);
393
393
 
394
394
  export type ProvingJobId = z.infer<typeof ProvingJobId>;
395
395
 
@@ -400,7 +400,7 @@ type ProvingJobShape = {
400
400
  inputsUri: ProofUri;
401
401
  };
402
402
 
403
- export const ProvingJob: z.ZodType<ProvingJobShape, z.ZodTypeDef, any> = z.object({
403
+ export const ProvingJob: z.ZodType<ProvingJobShape, any> = z.object({
404
404
  id: ProvingJobId,
405
405
  type: z.nativeEnum(ProvingRequestType),
406
406
  epochNumber: EpochNumberSchema,
@@ -92,7 +92,7 @@ export interface WorldStateSynchronizer extends ReadonlyWorldStateAccess, ForkMe
92
92
  clear(): Promise<void>;
93
93
  }
94
94
 
95
- export const WorldStateSyncStatusSchema: z.ZodType<WorldStateSyncStatus, z.ZodTypeDef, any> = z.object({
95
+ export const WorldStateSyncStatusSchema: z.ZodType<WorldStateSyncStatus, any> = z.object({
96
96
  finalizedBlockNumber: BlockNumberSchema,
97
97
  latestBlockNumber: BlockNumberSchema,
98
98
  latestBlockHash: z.string(),
@@ -89,7 +89,10 @@ export const AbiDecodedSchema: ZodFor<AbiDecoded> = z.union([
89
89
  z.boolean(),
90
90
  schemas.AztecAddress,
91
91
  z.array(z.lazy(() => AbiDecodedSchema)),
92
- z.record(z.lazy(() => AbiDecodedSchema)),
92
+ z.record(
93
+ z.string(),
94
+ z.lazy(() => AbiDecodedSchema),
95
+ ),
93
96
  ]);
94
97
 
95
98
  // C++ only supports null values, which we want to convert to undefined.
@@ -103,6 +106,8 @@ export {
103
106
  hexSchemaFor,
104
107
  bufferSchemaFor,
105
108
  type ApiSchemaFor,
109
+ getSchemaParameters,
110
+ getSchemaReturnType,
106
111
  optional,
107
112
  mapSchema,
108
113
  pickFromSchema,
@@ -45,7 +45,6 @@ import { type FieldsOf, makeTuple } from '@aztec/foundation/array';
45
45
  import { BlockNumber, CheckpointNumber, SlotNumber } from '@aztec/foundation/branded-types';
46
46
  import { compact } from '@aztec/foundation/collection';
47
47
  import { Grumpkin } from '@aztec/foundation/crypto/grumpkin';
48
- import { SchnorrSignature } from '@aztec/foundation/crypto/schnorr';
49
48
  import { sha256 } from '@aztec/foundation/crypto/sha256';
50
49
  import { Fq, Fr } from '@aztec/foundation/curves/bn254';
51
50
  import { GrumpkinScalar, Point } from '@aztec/foundation/curves/grumpkin';
@@ -749,15 +748,6 @@ export function makeAztecAddress(seed = 1): AztecAddress {
749
748
  return AztecAddress.fromField(fr(seed));
750
749
  }
751
750
 
752
- /**
753
- * Makes arbitrary Schnorr signature.
754
- * @param seed - The seed to use for generating the Schnorr signature.
755
- * @returns A Schnorr signature.
756
- */
757
- export function makeSchnorrSignature(seed = 1): SchnorrSignature {
758
- return new SchnorrSignature(Buffer.alloc(SchnorrSignature.SIZE, seed));
759
- }
760
-
761
751
  function makeBlockConstantData(seed = 1, globalVariables?: GlobalVariables) {
762
752
  return new BlockConstantData(
763
753
  makeAppendOnlyTreeSnapshot(seed + 0x100),
@@ -53,22 +53,12 @@ export class NullifierMembershipWitness {
53
53
  return new MembershipWitness(NULLIFIER_TREE_HEIGHT, this.index, this.siblingPath.toTuple());
54
54
  }
55
55
 
56
- /**
57
- * Returns a field array representation of a nullifier witness.
58
- * @returns A field array representation of a nullifier witness.
59
- */
60
- public toFields(): Fr[] {
61
- return [new Fr(this.index), ...this.leafPreimage.toFields(), ...this.siblingPath.toFields()];
62
- }
63
-
64
- /**
65
- * Returns a representation of the nullifier membership witness as expected by intrinsic Noir deserialization.
66
- */
56
+ /** Serializes as `(NullifierLeafPreimage, MembershipWitness)` to match the Noir oracle return type. */
67
57
  public toNoirRepresentation(): (string | string[])[] {
68
58
  // TODO(#12874): remove the stupid as string conversion by modifying ForeignCallOutput type in acvm.js
69
59
  return [
70
- new Fr(this.index).toString() as string,
71
60
  ...(this.leafPreimage.toFields().map(fr => fr.toString()) as string[]),
61
+ new Fr(this.index).toString() as string,
72
62
  this.siblingPath.toFields().map(fr => fr.toString()) as string[],
73
63
  ];
74
64
  }
@@ -33,7 +33,7 @@ export const ValidatorStatusHistorySchema = zodFor<ValidatorStatusHistory>()(
33
33
 
34
34
  export const ValidatorStatusHistorySchemaArray = z.array(ValidatorStatusHistorySchema);
35
35
 
36
- export const ValidatorStatusHistorySchemaMap = z.record(ValidatorStatusHistorySchemaArray);
36
+ export const ValidatorStatusHistorySchemaMap = z.record(z.string(), ValidatorStatusHistorySchemaArray);
37
37
 
38
38
  const ValidatorTimeStatSchema = z.object({
39
39
  timestamp: schemas.BigInt,
@@ -64,7 +64,7 @@ export const ValidatorStatsSchema = zodFor<ValidatorStats>()(
64
64
 
65
65
  export const ValidatorsStatsSchema = zodFor<ValidatorsStats>()(
66
66
  z.object({
67
- stats: z.record(ValidatorStatsSchema),
67
+ stats: z.record(z.string(), ValidatorStatsSchema),
68
68
  lastProcessedSlot: schemas.SlotNumber.optional(),
69
69
  initialSlot: schemas.SlotNumber.optional(),
70
70
  slotWindow: schemas.Integer,