@aztec/stdlib 0.0.1-commit.f295ac2 → 0.0.1-commit.f8ca9b2f3

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 (276) hide show
  1. package/dest/abi/function_call.d.ts +39 -9
  2. package/dest/abi/function_call.d.ts.map +1 -1
  3. package/dest/abi/function_call.js +20 -3
  4. package/dest/block/block_hash.d.ts +16 -18
  5. package/dest/block/block_hash.d.ts.map +1 -1
  6. package/dest/block/block_hash.js +21 -31
  7. package/dest/block/block_parameter.d.ts +4 -4
  8. package/dest/block/block_parameter.d.ts.map +1 -1
  9. package/dest/block/block_parameter.js +2 -2
  10. package/dest/block/checkpointed_l2_block.d.ts +6 -6
  11. package/dest/block/checkpointed_l2_block.d.ts.map +1 -1
  12. package/dest/block/checkpointed_l2_block.js +3 -3
  13. package/dest/block/in_block.d.ts +11 -11
  14. package/dest/block/in_block.d.ts.map +1 -1
  15. package/dest/block/in_block.js +5 -5
  16. package/dest/block/index.d.ts +2 -2
  17. package/dest/block/index.d.ts.map +1 -1
  18. package/dest/block/index.js +1 -1
  19. package/dest/block/{l2_block_new.d.ts → l2_block.d.ts} +8 -7
  20. package/dest/block/l2_block.d.ts.map +1 -0
  21. package/dest/block/{l2_block_new.js → l2_block.js} +5 -9
  22. package/dest/block/l2_block_source.d.ts +39 -30
  23. package/dest/block/l2_block_source.d.ts.map +1 -1
  24. package/dest/block/l2_block_stream/interfaces.d.ts +3 -3
  25. package/dest/block/l2_block_stream/interfaces.d.ts.map +1 -1
  26. package/dest/block/l2_block_stream/l2_block_stream.d.ts +6 -3
  27. package/dest/block/l2_block_stream/l2_block_stream.d.ts.map +1 -1
  28. package/dest/block/l2_block_stream/l2_block_stream.js +37 -25
  29. package/dest/block/l2_block_stream/l2_tips_store_base.d.ts +3 -3
  30. package/dest/block/l2_block_stream/l2_tips_store_base.d.ts.map +1 -1
  31. package/dest/block/test/l2_tips_store_test_suite.js +2 -2
  32. package/dest/checkpoint/checkpoint.d.ts +8 -8
  33. package/dest/checkpoint/checkpoint.d.ts.map +1 -1
  34. package/dest/checkpoint/checkpoint.js +4 -4
  35. package/dest/checkpoint/published_checkpoint.d.ts +2 -2
  36. package/dest/config/index.d.ts +2 -1
  37. package/dest/config/index.d.ts.map +1 -1
  38. package/dest/config/index.js +1 -0
  39. package/dest/config/node-rpc-config.js +1 -1
  40. package/dest/config/sequencer-config.d.ts +10 -0
  41. package/dest/config/sequencer-config.d.ts.map +1 -0
  42. package/dest/config/sequencer-config.js +12 -0
  43. package/dest/contract/contract_address.js +1 -1
  44. package/dest/contract/contract_class_id.d.ts +1 -1
  45. package/dest/contract/contract_class_id.js +1 -1
  46. package/dest/contract/interfaces/node-info.d.ts +3 -1
  47. package/dest/contract/interfaces/node-info.d.ts.map +1 -1
  48. package/dest/contract/interfaces/node-info.js +2 -1
  49. package/dest/contract/private_function.d.ts +1 -1
  50. package/dest/contract/private_function.d.ts.map +1 -1
  51. package/dest/contract/private_function.js +2 -3
  52. package/dest/contract/private_function_membership_proof.d.ts +1 -1
  53. package/dest/contract/private_function_membership_proof.js +1 -1
  54. package/dest/database-version/database_version.d.ts +58 -0
  55. package/dest/database-version/database_version.d.ts.map +1 -0
  56. package/dest/database-version/database_version.js +69 -0
  57. package/dest/database-version/version_manager.d.ts +2 -50
  58. package/dest/database-version/version_manager.d.ts.map +1 -1
  59. package/dest/database-version/version_manager.js +1 -66
  60. package/dest/delayed_public_mutable/delayed_public_mutable_values.d.ts +2 -2
  61. package/dest/delayed_public_mutable/delayed_public_mutable_values.d.ts.map +1 -1
  62. package/dest/delayed_public_mutable/delayed_public_mutable_values.js +7 -10
  63. package/dest/epoch-helpers/index.d.ts +7 -1
  64. package/dest/epoch-helpers/index.d.ts.map +1 -1
  65. package/dest/epoch-helpers/index.js +9 -3
  66. package/dest/hash/hash.js +2 -2
  67. package/dest/hash/map_slot.d.ts +1 -1
  68. package/dest/hash/map_slot.d.ts.map +1 -1
  69. package/dest/hash/map_slot.js +4 -3
  70. package/dest/interfaces/api_limit.d.ts +2 -1
  71. package/dest/interfaces/api_limit.d.ts.map +1 -1
  72. package/dest/interfaces/api_limit.js +1 -0
  73. package/dest/interfaces/archiver.d.ts +1 -1
  74. package/dest/interfaces/archiver.d.ts.map +1 -1
  75. package/dest/interfaces/archiver.js +19 -18
  76. package/dest/interfaces/aztec-node-admin.d.ts +20 -2
  77. package/dest/interfaces/aztec-node-admin.d.ts.map +1 -1
  78. package/dest/interfaces/aztec-node-admin.js +3 -1
  79. package/dest/interfaces/aztec-node.d.ts +64 -62
  80. package/dest/interfaces/aztec-node.d.ts.map +1 -1
  81. package/dest/interfaces/aztec-node.js +13 -17
  82. package/dest/interfaces/block-builder.d.ts +13 -7
  83. package/dest/interfaces/block-builder.d.ts.map +1 -1
  84. package/dest/interfaces/block-builder.js +7 -0
  85. package/dest/interfaces/configs.d.ts +2 -2
  86. package/dest/interfaces/configs.d.ts.map +1 -1
  87. package/dest/interfaces/get_logs_response.d.ts +15 -8
  88. package/dest/interfaces/get_logs_response.d.ts.map +1 -1
  89. package/dest/interfaces/l2_logs_source.d.ts +14 -5
  90. package/dest/interfaces/l2_logs_source.d.ts.map +1 -1
  91. package/dest/interfaces/p2p.d.ts +2 -2
  92. package/dest/interfaces/p2p.d.ts.map +1 -1
  93. package/dest/interfaces/prover-broker.d.ts +16 -1
  94. package/dest/interfaces/prover-broker.d.ts.map +1 -1
  95. package/dest/interfaces/prover-broker.js +4 -1
  96. package/dest/interfaces/prover-client.d.ts +15 -1
  97. package/dest/interfaces/prover-client.d.ts.map +1 -1
  98. package/dest/interfaces/prover-client.js +12 -1
  99. package/dest/interfaces/proving-job.d.ts +200 -200
  100. package/dest/interfaces/slasher.d.ts +9 -1
  101. package/dest/interfaces/slasher.d.ts.map +1 -1
  102. package/dest/interfaces/slasher.js +2 -0
  103. package/dest/interfaces/tx_provider.d.ts +3 -3
  104. package/dest/interfaces/tx_provider.d.ts.map +1 -1
  105. package/dest/interfaces/validator.d.ts +50 -4
  106. package/dest/interfaces/validator.d.ts.map +1 -1
  107. package/dest/interfaces/validator.js +4 -1
  108. package/dest/kernel/hints/build_nullifier_read_request_hints.d.ts +3 -3
  109. package/dest/kernel/hints/build_nullifier_read_request_hints.d.ts.map +1 -1
  110. package/dest/kernel/hints/build_nullifier_read_request_hints.js +4 -6
  111. package/dest/keys/derivation.d.ts +3 -3
  112. package/dest/keys/derivation.js +8 -8
  113. package/dest/keys/key_types.d.ts +1 -1
  114. package/dest/keys/utils.d.ts +1 -1
  115. package/dest/keys/utils.d.ts.map +1 -1
  116. package/dest/keys/utils.js +7 -3
  117. package/dest/l1-contracts/slash_factory.d.ts +1 -1
  118. package/dest/l1-contracts/slash_factory.d.ts.map +1 -1
  119. package/dest/l1-contracts/slash_factory.js +1 -0
  120. package/dest/logs/extended_public_log.d.ts +13 -7
  121. package/dest/logs/extended_public_log.d.ts.map +1 -1
  122. package/dest/logs/log_id.d.ts +17 -14
  123. package/dest/logs/log_id.d.ts.map +1 -1
  124. package/dest/logs/log_id.js +20 -17
  125. package/dest/logs/siloed_tag.d.ts +1 -1
  126. package/dest/logs/siloed_tag.d.ts.map +1 -1
  127. package/dest/logs/siloed_tag.js +4 -3
  128. package/dest/messaging/l2_to_l1_membership.d.ts +2 -2
  129. package/dest/messaging/l2_to_l1_membership.js +3 -3
  130. package/dest/p2p/block_proposal.d.ts +13 -6
  131. package/dest/p2p/block_proposal.d.ts.map +1 -1
  132. package/dest/p2p/block_proposal.js +1 -1
  133. package/dest/p2p/checkpoint_proposal.d.ts +17 -3
  134. package/dest/p2p/checkpoint_proposal.d.ts.map +1 -1
  135. package/dest/p2p/checkpoint_proposal.js +9 -0
  136. package/dest/p2p/constants.d.ts +5 -0
  137. package/dest/p2p/constants.d.ts.map +1 -0
  138. package/dest/p2p/constants.js +3 -0
  139. package/dest/p2p/index.d.ts +2 -1
  140. package/dest/p2p/index.d.ts.map +1 -1
  141. package/dest/p2p/index.js +1 -0
  142. package/dest/p2p/message_validator.d.ts +18 -3
  143. package/dest/p2p/message_validator.d.ts.map +1 -1
  144. package/dest/p2p/message_validator.js +2 -1
  145. package/dest/rollup/checkpoint_rollup_public_inputs.d.ts +6 -6
  146. package/dest/rollup/checkpoint_rollup_public_inputs.d.ts.map +1 -1
  147. package/dest/rollup/checkpoint_rollup_public_inputs.js +2 -2
  148. package/dest/rollup/checkpoint_root_rollup_private_inputs.d.ts +2 -2
  149. package/dest/rollup/checkpoint_root_rollup_private_inputs.d.ts.map +1 -1
  150. package/dest/rollup/root_rollup_public_inputs.d.ts +6 -6
  151. package/dest/rollup/root_rollup_public_inputs.d.ts.map +1 -1
  152. package/dest/rollup/root_rollup_public_inputs.js +3 -3
  153. package/dest/slashing/empire.d.ts +1 -1
  154. package/dest/slashing/empire.d.ts.map +1 -1
  155. package/dest/slashing/empire.js +2 -0
  156. package/dest/slashing/helpers.d.ts +2 -2
  157. package/dest/slashing/helpers.d.ts.map +1 -1
  158. package/dest/slashing/helpers.js +6 -0
  159. package/dest/slashing/tally.d.ts +2 -1
  160. package/dest/slashing/tally.d.ts.map +1 -1
  161. package/dest/slashing/tally.js +6 -2
  162. package/dest/slashing/types.d.ts +7 -3
  163. package/dest/slashing/types.d.ts.map +1 -1
  164. package/dest/slashing/types.js +13 -1
  165. package/dest/stats/stats.d.ts +1 -3
  166. package/dest/stats/stats.d.ts.map +1 -1
  167. package/dest/tests/factories.js +4 -4
  168. package/dest/tests/jest.d.ts +4 -4
  169. package/dest/tests/jest.js +9 -9
  170. package/dest/tests/mocks.d.ts +15 -10
  171. package/dest/tests/mocks.d.ts.map +1 -1
  172. package/dest/tests/mocks.js +19 -13
  173. package/dest/timetable/index.d.ts +37 -0
  174. package/dest/timetable/index.d.ts.map +1 -0
  175. package/dest/timetable/index.js +39 -0
  176. package/dest/trees/public_data_leaf.d.ts +2 -1
  177. package/dest/trees/public_data_leaf.d.ts.map +1 -1
  178. package/dest/trees/public_data_leaf.js +7 -6
  179. package/dest/tx/block_header.d.ts +3 -2
  180. package/dest/tx/block_header.d.ts.map +1 -1
  181. package/dest/tx/block_header.js +3 -2
  182. package/dest/tx/in_tx.d.ts +3 -3
  183. package/dest/tx/indexed_tx_effect.d.ts +5 -5
  184. package/dest/tx/indexed_tx_effect.d.ts.map +1 -1
  185. package/dest/tx/indexed_tx_effect.js +3 -2
  186. package/dest/tx/tx.d.ts +2 -1
  187. package/dest/tx/tx.d.ts.map +1 -1
  188. package/dest/tx/tx.js +6 -3
  189. package/dest/tx/tx_receipt.d.ts +42 -14
  190. package/dest/tx/tx_receipt.d.ts.map +1 -1
  191. package/dest/tx/tx_receipt.js +46 -15
  192. package/dest/tx/validator/empty_validator.d.ts +2 -2
  193. package/dest/tx/validator/empty_validator.d.ts.map +1 -1
  194. package/dest/tx/validator/error_texts.d.ts +2 -1
  195. package/dest/tx/validator/error_texts.d.ts.map +1 -1
  196. package/dest/tx/validator/error_texts.js +2 -0
  197. package/dest/tx/validator/tx_validator.d.ts +2 -2
  198. package/dest/tx/validator/tx_validator.d.ts.map +1 -1
  199. package/package.json +24 -12
  200. package/src/abi/function_call.ts +25 -3
  201. package/src/block/block_hash.ts +26 -47
  202. package/src/block/block_parameter.ts +3 -3
  203. package/src/block/checkpointed_l2_block.ts +4 -4
  204. package/src/block/in_block.ts +8 -8
  205. package/src/block/index.ts +1 -1
  206. package/src/block/{l2_block_new.ts → l2_block.ts} +8 -12
  207. package/src/block/l2_block_source.ts +40 -31
  208. package/src/block/l2_block_stream/interfaces.ts +2 -2
  209. package/src/block/l2_block_stream/l2_block_stream.ts +44 -27
  210. package/src/block/l2_block_stream/l2_tips_store_base.ts +2 -2
  211. package/src/block/test/l2_tips_store_test_suite.ts +4 -4
  212. package/src/checkpoint/checkpoint.ts +7 -7
  213. package/src/config/index.ts +1 -0
  214. package/src/config/node-rpc-config.ts +1 -1
  215. package/src/config/sequencer-config.ts +19 -0
  216. package/src/contract/contract_address.ts +1 -1
  217. package/src/contract/contract_class_id.ts +1 -1
  218. package/src/contract/interfaces/node-info.ts +3 -0
  219. package/src/contract/private_function.ts +2 -3
  220. package/src/contract/private_function_membership_proof.ts +1 -1
  221. package/src/database-version/database_version.ts +87 -0
  222. package/src/database-version/version_manager.ts +1 -77
  223. package/src/delayed_public_mutable/delayed_public_mutable_values.ts +9 -10
  224. package/src/epoch-helpers/index.ts +13 -1
  225. package/src/hash/hash.ts +2 -2
  226. package/src/hash/map_slot.ts +3 -2
  227. package/src/interfaces/api_limit.ts +1 -0
  228. package/src/interfaces/archiver.ts +19 -27
  229. package/src/interfaces/aztec-node-admin.ts +3 -2
  230. package/src/interfaces/aztec-node.ts +89 -120
  231. package/src/interfaces/block-builder.ts +15 -5
  232. package/src/interfaces/configs.ts +1 -3
  233. package/src/interfaces/l2_logs_source.ts +17 -4
  234. package/src/interfaces/p2p.ts +1 -1
  235. package/src/interfaces/prover-broker.ts +22 -0
  236. package/src/interfaces/prover-client.ts +22 -0
  237. package/src/interfaces/slasher.ts +4 -0
  238. package/src/interfaces/tx_provider.ts +2 -2
  239. package/src/interfaces/validator.ts +12 -5
  240. package/src/kernel/hints/build_nullifier_read_request_hints.ts +1 -10
  241. package/src/keys/derivation.ts +8 -8
  242. package/src/keys/key_types.ts +1 -1
  243. package/src/keys/utils.ts +7 -3
  244. package/src/l1-contracts/slash_factory.ts +1 -0
  245. package/src/logs/log_id.ts +22 -18
  246. package/src/logs/siloed_tag.ts +3 -2
  247. package/src/messaging/l2_to_l1_membership.ts +3 -3
  248. package/src/p2p/block_proposal.ts +12 -5
  249. package/src/p2p/checkpoint_proposal.ts +19 -2
  250. package/src/p2p/constants.ts +6 -0
  251. package/src/p2p/index.ts +1 -0
  252. package/src/p2p/message_validator.ts +14 -2
  253. package/src/rollup/checkpoint_rollup_public_inputs.ts +5 -5
  254. package/src/rollup/root_rollup_public_inputs.ts +7 -7
  255. package/src/slashing/empire.ts +3 -1
  256. package/src/slashing/helpers.ts +8 -0
  257. package/src/slashing/tally.ts +8 -2
  258. package/src/slashing/types.ts +14 -0
  259. package/src/stats/stats.ts +0 -2
  260. package/src/tests/factories.ts +6 -6
  261. package/src/tests/jest.ts +9 -9
  262. package/src/tests/mocks.ts +26 -17
  263. package/src/timetable/index.ts +66 -0
  264. package/src/trees/public_data_leaf.ts +11 -5
  265. package/src/tx/block_header.ts +7 -4
  266. package/src/tx/indexed_tx_effect.ts +3 -2
  267. package/src/tx/tx.ts +8 -9
  268. package/src/tx/tx_receipt.ts +75 -18
  269. package/src/tx/validator/empty_validator.ts +1 -1
  270. package/src/tx/validator/error_texts.ts +3 -0
  271. package/src/tx/validator/tx_validator.ts +1 -1
  272. package/dest/block/l2_block_new.d.ts.map +0 -1
  273. package/dest/database-version/index.d.ts +0 -2
  274. package/dest/database-version/index.d.ts.map +0 -1
  275. package/dest/database-version/index.js +0 -1
  276. package/src/database-version/index.ts +0 -1
@@ -1,10 +1,4 @@
1
- import {
2
- ARCHIVE_HEIGHT,
3
- L1_TO_L2_MSG_TREE_HEIGHT,
4
- NOTE_HASH_TREE_HEIGHT,
5
- NULLIFIER_TREE_HEIGHT,
6
- PUBLIC_DATA_TREE_HEIGHT,
7
- } from '@aztec/constants';
1
+ import { ARCHIVE_HEIGHT, L1_TO_L2_MSG_TREE_HEIGHT, NOTE_HASH_TREE_HEIGHT } from '@aztec/constants';
8
2
  import { type L1ContractAddresses, L1ContractAddressesSchema } from '@aztec/ethereum/l1-contract-addresses';
9
3
  import {
10
4
  BlockNumber,
@@ -23,10 +17,11 @@ import { MembershipWitness, SiblingPath } from '@aztec/foundation/trees';
23
17
  import { z } from 'zod';
24
18
 
25
19
  import type { AztecAddress } from '../aztec-address/index.js';
20
+ import { BlockHash } from '../block/block_hash.js';
26
21
  import { type BlockParameter, BlockParameterSchema } from '../block/block_parameter.js';
27
22
  import { CheckpointedL2Block } from '../block/checkpointed_l2_block.js';
28
23
  import { type DataInBlock, dataInBlockSchemaFor } from '../block/in_block.js';
29
- import { L2BlockNew } from '../block/l2_block_new.js';
24
+ import { L2Block } from '../block/l2_block.js';
30
25
  import { type L2BlockSource, type L2Tips, L2TipsSchema } from '../block/l2_block_source.js';
31
26
  import { PublishedCheckpoint } from '../checkpoint/published_checkpoint.js';
32
27
  import {
@@ -77,13 +72,7 @@ import { type WorldStateSyncStatus, WorldStateSyncStatusSchema } from './world_s
77
72
  export interface AztecNode
78
73
  extends Pick<
79
74
  L2BlockSource,
80
- | 'getBlocks'
81
- | 'getL2BlocksNew'
82
- | 'getPublishedBlocks'
83
- | 'getPublishedCheckpoints'
84
- | 'getBlockHeader'
85
- | 'getL2Tips'
86
- | 'getCheckpointedBlocks'
75
+ 'getBlocks' | 'getCheckpoints' | 'getBlockHeader' | 'getL2Tips' | 'getCheckpointedBlocks'
87
76
  > {
88
77
  /**
89
78
  * Returns the tips of the L2 chain.
@@ -98,63 +87,31 @@ export interface AztecNode
98
87
  /**
99
88
  * Find the indexes of the given leaves in the given tree along with a block metadata pointing to the block in which
100
89
  * the leaves were inserted.
101
- * @param block - The block parameter (block number, block hash, or 'latest') at which to get the data.
90
+ * @param referenceBlock - The block parameter (block number, block hash, or 'latest') at which to get the data.
102
91
  * @param treeId - The tree to search in.
103
92
  * @param leafValues - The values to search for.
104
93
  * @returns The indices of leaves and the block metadata of a block in which the leaves were inserted.
105
94
  */
106
95
  findLeavesIndexes(
107
- block: BlockParameter,
96
+ referenceBlock: BlockParameter,
108
97
  treeId: MerkleTreeId,
109
98
  leafValues: Fr[],
110
99
  ): Promise<(DataInBlock<bigint> | undefined)[]>;
111
100
 
112
- /**
113
- * Returns a sibling path for the given index in the nullifier tree.
114
- * @param block - The block parameter (block number, block hash, or 'latest') at which to get the data.
115
- * @param leafIndex - The index of the leaf for which the sibling path is required.
116
- * @returns The sibling path for the leaf index.
117
- */
118
- getNullifierSiblingPath(block: BlockParameter, leafIndex: bigint): Promise<SiblingPath<typeof NULLIFIER_TREE_HEIGHT>>;
119
-
120
- /**
121
- * Returns a sibling path for the given index in the note hash tree.
122
- * @param block - The block parameter (block number, block hash, or 'latest') at which to get the data.
123
- * @param leafIndex - The index of the leaf for which the sibling path is required.
124
- * @returns The sibling path for the leaf index.
125
- */
126
- getNoteHashSiblingPath(block: BlockParameter, leafIndex: bigint): Promise<SiblingPath<typeof NOTE_HASH_TREE_HEIGHT>>;
127
-
128
- /**
129
- * Returns a sibling path for a leaf in the committed historic blocks tree.
130
- * @param block - The block parameter (block number, block hash, or 'latest') at which to get the data.
131
- * @param leafIndex - Index of the leaf in the tree.
132
- * @returns The sibling path.
133
- */
134
- getArchiveSiblingPath(block: BlockParameter, leafIndex: bigint): Promise<SiblingPath<typeof ARCHIVE_HEIGHT>>;
135
-
136
- /**
137
- * Returns a sibling path for a leaf in the committed public data tree.
138
- * @param block - The block parameter (block number, block hash, or 'latest') at which to get the data.
139
- * @param leafIndex - Index of the leaf in the tree.
140
- * @returns The sibling path.
141
- */
142
- getPublicDataSiblingPath(
143
- block: BlockParameter,
144
- leafIndex: bigint,
145
- ): Promise<SiblingPath<typeof PUBLIC_DATA_TREE_HEIGHT>>;
146
-
147
101
  /**
148
102
  * Returns a nullifier membership witness for a given nullifier at a given block.
149
- * @param block - The block parameter (block number, block hash, or 'latest') at which to get the data.
103
+ * @param referenceBlock - The block parameter (block number, block hash, or 'latest') at which to get the data.
150
104
  * @param nullifier - Nullifier we try to find witness for.
151
105
  * @returns The nullifier membership witness (if found).
152
106
  */
153
- getNullifierMembershipWitness(block: BlockParameter, nullifier: Fr): Promise<NullifierMembershipWitness | undefined>;
107
+ getNullifierMembershipWitness(
108
+ referenceBlock: BlockParameter,
109
+ nullifier: Fr,
110
+ ): Promise<NullifierMembershipWitness | undefined>;
154
111
 
155
112
  /**
156
113
  * Returns a low nullifier membership witness for a given nullifier at a given block.
157
- * @param block - The block parameter (block number, block hash, or 'latest') at which to get the data.
114
+ * @param referenceBlock - The block parameter (block number, block hash, or 'latest') at which to get the data.
158
115
  * @param nullifier - Nullifier we try to find the low nullifier witness for.
159
116
  * @returns The low nullifier membership witness (if found).
160
117
  * @remarks Low nullifier witness can be used to perform a nullifier non-inclusion proof by leveraging the "linked
@@ -162,49 +119,56 @@ export interface AztecNode
162
119
  * we are trying to prove non-inclusion for.
163
120
  */
164
121
  getLowNullifierMembershipWitness(
165
- block: BlockParameter,
122
+ referenceBlock: BlockParameter,
166
123
  nullifier: Fr,
167
124
  ): Promise<NullifierMembershipWitness | undefined>;
168
125
 
169
126
  /**
170
127
  * Returns a public data tree witness for a given leaf slot at a given block.
171
- * @param block - The block parameter (block number, block hash, or 'latest') at which to get the data.
128
+ * @param referenceBlock - The block parameter (block number, block hash, or 'latest') at which to get the data.
172
129
  * @param leafSlot - The leaf slot we try to find the witness for.
173
130
  * @returns The public data witness (if found).
174
131
  * @remarks The witness can be used to compute the current value of the public data tree leaf. If the low leaf preimage corresponds to an
175
132
  * "in range" slot, means that the slot doesn't exist and the value is 0. If the low leaf preimage corresponds to the exact slot, the current value
176
133
  * is contained in the leaf preimage.
177
134
  */
178
- getPublicDataWitness(block: BlockParameter, leafSlot: Fr): Promise<PublicDataWitness | undefined>;
135
+ getPublicDataWitness(referenceBlock: BlockParameter, leafSlot: Fr): Promise<PublicDataWitness | undefined>;
179
136
 
180
137
  /**
181
- * Returns a membership witness for a given archive leaf at a given block.
182
- * @param block - The block parameter (block number, block hash, or 'latest') at which to get the data.
183
- * @param archive - The archive leaf we try to find the witness for.
138
+ * Returns a membership witness for a given block hash in the archive tree.
139
+ *
140
+ * Block hashes are the leaves of the archive tree. Each time a new block is added to the chain,
141
+ * its block hash is appended as a new leaf to the archive tree. This method finds the membership
142
+ * witness (leaf index and sibling path) for a given block hash, which can be used to prove that
143
+ * a specific block exists in the chain's history.
144
+ *
145
+ * @param referenceBlock - The block parameter (block number, block hash, or 'latest') at which to get the data
146
+ * (which contains the root of the archive tree in which we are searching for the block hash).
147
+ * @param blockHash - The block hash to find in the archive tree.
184
148
  */
185
- getArchiveMembershipWitness(
186
- block: BlockParameter,
187
- archive: Fr,
149
+ getBlockHashMembershipWitness(
150
+ referenceBlock: BlockParameter,
151
+ blockHash: BlockHash,
188
152
  ): Promise<MembershipWitness<typeof ARCHIVE_HEIGHT> | undefined>;
189
153
 
190
154
  /**
191
155
  * Returns a membership witness for a given note hash at a given block.
192
- * @param block - The block parameter (block number, block hash, or 'latest') at which to get the data.
156
+ * @param referenceBlock - The block parameter (block number, block hash, or 'latest') at which to get the data.
193
157
  * @param noteHash - The note hash we try to find the witness for.
194
158
  */
195
159
  getNoteHashMembershipWitness(
196
- block: BlockParameter,
160
+ referenceBlock: BlockParameter,
197
161
  noteHash: Fr,
198
162
  ): Promise<MembershipWitness<typeof NOTE_HASH_TREE_HEIGHT> | undefined>;
199
163
 
200
164
  /**
201
165
  * Returns the index and a sibling path for a leaf in the committed l1 to l2 data tree.
202
- * @param block - The block parameter (block number, block hash, or 'latest') at which to get the data.
166
+ * @param referenceBlock - The block parameter (block number, block hash, or 'latest') at which to get the data.
203
167
  * @param l1ToL2Message - The l1ToL2Message to get the index / sibling path for.
204
168
  * @returns A tuple of the index and the sibling path of the L1ToL2Message (undefined if not found).
205
169
  */
206
170
  getL1ToL2MessageMembershipWitness(
207
- block: BlockParameter,
171
+ referenceBlock: BlockParameter,
208
172
  l1ToL2Message: Fr,
209
173
  ): Promise<[bigint, SiblingPath<typeof L1_TO_L2_MSG_TREE_HEIGHT>] | undefined>;
210
174
 
@@ -229,24 +193,24 @@ export interface AztecNode
229
193
 
230
194
  /**
231
195
  * Get a block specified by its block number or 'latest'.
232
- * @param number - The block number or 'latest'.
196
+ * @param blockParameter - The block parameter (block number, block hash, or 'latest').
233
197
  * @returns The requested block.
234
198
  */
235
- getBlock(number: BlockParameter): Promise<L2BlockNew | undefined>;
199
+ getBlock(blockParameter: BlockParameter): Promise<L2Block | undefined>;
236
200
 
237
201
  /**
238
202
  * Get a block specified by its hash.
239
203
  * @param blockHash - The block hash being requested.
240
204
  * @returns The requested block.
241
205
  */
242
- getBlockByHash(blockHash: Fr): Promise<L2BlockNew | undefined>;
206
+ getBlockByHash(blockHash: BlockHash): Promise<L2Block | undefined>;
243
207
 
244
208
  /**
245
209
  * Get a block specified by its archive root.
246
210
  * @param archive - The archive root being requested.
247
211
  * @returns The requested block.
248
212
  */
249
- getBlockByArchive(archive: Fr): Promise<L2BlockNew | undefined>;
213
+ getBlockByArchive(archive: Fr): Promise<L2Block | undefined>;
250
214
 
251
215
  /**
252
216
  * Method to fetch the latest block number synchronized by the node.
@@ -260,6 +224,12 @@ export interface AztecNode
260
224
  */
261
225
  getProvenBlockNumber(): Promise<BlockNumber>;
262
226
 
227
+ /**
228
+ * Fetches the latest checkpointed block number.
229
+ * @returns The block number.
230
+ */
231
+ getCheckpointedBlockNumber(): Promise<BlockNumber>;
232
+
263
233
  /**
264
234
  * Method to determine if the node is ready to accept transactions.
265
235
  * @returns - Flag indicating the readiness for tx submission.
@@ -279,7 +249,7 @@ export interface AztecNode
279
249
  * @param limit - The maximum number of blocks to return.
280
250
  * @returns The blocks requested.
281
251
  */
282
- getBlocks(from: BlockNumber, limit: number): Promise<L2BlockNew[]>;
252
+ getBlocks(from: BlockNumber, limit: number): Promise<L2Block[]>;
283
253
 
284
254
  /**
285
255
  * Method to fetch the current min fees.
@@ -343,16 +313,38 @@ export interface AztecNode
343
313
  getContractClassLogs(filter: LogFilter): Promise<GetContractClassLogsResponse>;
344
314
 
345
315
  /**
346
- * Gets all private logs that match any of the `tags`. For each tag, an array of matching logs is returned. An empty
316
+ * Gets private logs that match any of the `tags`. For each tag, an array of matching logs is returned. An empty
347
317
  * array implies no logs match that tag.
318
+ * @param tags - The tags to search for.
319
+ * @param page - The page number (0-indexed) for pagination.
320
+ * @param referenceBlock - Optional block hash used to ensure the block still exists before logs are retrieved.
321
+ * This block is expected to represent the latest block to which the client has synced (called anchor block in PXE).
322
+ * If specified and the block is not found, an error is thrown. This helps detect reorgs, which could result in
323
+ * undefined behavior in the client's code.
324
+ * @returns An array of log arrays, one per tag. Returns at most 10 logs per tag per page. If 10 logs are returned
325
+ * for a tag, the caller should fetch the next page to check for more logs.
348
326
  */
349
- getPrivateLogsByTags(tags: SiloedTag[]): Promise<TxScopedL2Log[][]>;
327
+ getPrivateLogsByTags(tags: SiloedTag[], page?: number, referenceBlock?: BlockHash): Promise<TxScopedL2Log[][]>;
350
328
 
351
329
  /**
352
- * Gets all public logs that match any of the `tags` from the specified contract. For each tag, an array of matching
330
+ * Gets public logs that match any of the `tags` from the specified contract. For each tag, an array of matching
353
331
  * logs is returned. An empty array implies no logs match that tag.
354
- */
355
- getPublicLogsByTagsFromContract(contractAddress: AztecAddress, tags: Tag[]): Promise<TxScopedL2Log[][]>;
332
+ * @param contractAddress - The contract address to search logs for.
333
+ * @param tags - The tags to search for.
334
+ * @param page - The page number (0-indexed) for pagination.
335
+ * @param referenceBlock - Optional block hash used to ensure the block still exists before logs are retrieved.
336
+ * This block is expected to represent the latest block to which the client has synced (called anchor block in PXE).
337
+ * If specified and the block is not found, an error is thrown. This helps detect reorgs, which could result in
338
+ * undefined behavior in the client's code.
339
+ * @returns An array of log arrays, one per tag. Returns at most 10 logs per tag per page. If 10 logs are returned
340
+ * for a tag, the caller should fetch the next page to check for more logs.
341
+ */
342
+ getPublicLogsByTagsFromContract(
343
+ contractAddress: AztecAddress,
344
+ tags: Tag[],
345
+ page?: number,
346
+ referenceBlock?: BlockHash,
347
+ ): Promise<TxScopedL2Log[][]>;
356
348
 
357
349
  /**
358
350
  * Method to submit a transaction to the p2p pool.
@@ -410,12 +402,12 @@ export interface AztecNode
410
402
  * @remarks The storage slot here refers to the slot as it is defined in Noir not the index in the merkle tree.
411
403
  * Aztec's version of `eth_getStorageAt`.
412
404
  *
413
- * @param block - The block parameter (block number, block hash, or 'latest') at which to get the data.
405
+ * @param referenceBlock - The block parameter (block number, block hash, or 'latest') at which to get the data.
414
406
  * @param contract - Address of the contract to query.
415
407
  * @param slot - Slot to query.
416
408
  * @returns Storage value at the given contract slot.
417
409
  */
418
- getPublicStorageAt(block: BlockParameter, contract: AztecAddress, slot: Fr): Promise<Fr>;
410
+ getPublicStorageAt(referenceBlock: BlockParameter, contract: AztecAddress, slot: Fr): Promise<Fr>;
419
411
 
420
412
  /**
421
413
  * Returns the block header for a given block number, block hash, or 'latest'.
@@ -495,26 +487,6 @@ export const AztecNodeApiSchema: ApiSchemaFor<AztecNode> = {
495
487
  .args(BlockParameterSchema, z.nativeEnum(MerkleTreeId), z.array(schemas.Fr).max(MAX_RPC_LEN))
496
488
  .returns(z.array(optional(dataInBlockSchemaFor(schemas.BigInt)))),
497
489
 
498
- getNullifierSiblingPath: z
499
- .function()
500
- .args(BlockParameterSchema, schemas.BigInt)
501
- .returns(SiblingPath.schemaFor(NULLIFIER_TREE_HEIGHT)),
502
-
503
- getNoteHashSiblingPath: z
504
- .function()
505
- .args(BlockParameterSchema, schemas.BigInt)
506
- .returns(SiblingPath.schemaFor(NOTE_HASH_TREE_HEIGHT)),
507
-
508
- getArchiveSiblingPath: z
509
- .function()
510
- .args(BlockParameterSchema, schemas.BigInt)
511
- .returns(SiblingPath.schemaFor(ARCHIVE_HEIGHT)),
512
-
513
- getPublicDataSiblingPath: z
514
- .function()
515
- .args(BlockParameterSchema, schemas.BigInt)
516
- .returns(SiblingPath.schemaFor(PUBLIC_DATA_TREE_HEIGHT)),
517
-
518
490
  getNullifierMembershipWitness: z
519
491
  .function()
520
492
  .args(BlockParameterSchema, schemas.Fr)
@@ -530,9 +502,9 @@ export const AztecNodeApiSchema: ApiSchemaFor<AztecNode> = {
530
502
  .args(BlockParameterSchema, schemas.Fr)
531
503
  .returns(PublicDataWitness.schema.optional()),
532
504
 
533
- getArchiveMembershipWitness: z
505
+ getBlockHashMembershipWitness: z
534
506
  .function()
535
- .args(BlockParameterSchema, schemas.Fr)
507
+ .args(BlockParameterSchema, BlockHash.schema)
536
508
  .returns(MembershipWitness.schemaFor(ARCHIVE_HEIGHT).optional()),
537
509
 
538
510
  getNoteHashMembershipWitness: z
@@ -554,16 +526,18 @@ export const AztecNodeApiSchema: ApiSchemaFor<AztecNode> = {
554
526
  .args(EpochNumberSchema)
555
527
  .returns(z.array(z.array(z.array(z.array(schemas.Fr))))),
556
528
 
557
- getBlock: z.function().args(BlockParameterSchema).returns(L2BlockNew.schema.optional()),
529
+ getBlock: z.function().args(BlockParameterSchema).returns(L2Block.schema.optional()),
558
530
 
559
- getBlockByHash: z.function().args(schemas.Fr).returns(L2BlockNew.schema.optional()),
531
+ getBlockByHash: z.function().args(BlockHash.schema).returns(L2Block.schema.optional()),
560
532
 
561
- getBlockByArchive: z.function().args(schemas.Fr).returns(L2BlockNew.schema.optional()),
533
+ getBlockByArchive: z.function().args(schemas.Fr).returns(L2Block.schema.optional()),
562
534
 
563
535
  getBlockNumber: z.function().returns(BlockNumberSchema),
564
536
 
565
537
  getProvenBlockNumber: z.function().returns(BlockNumberSchema),
566
538
 
539
+ getCheckpointedBlockNumber: z.function().returns(BlockNumberSchema),
540
+
567
541
  isReady: z.function().returns(z.boolean()),
568
542
 
569
543
  getNodeInfo: z.function().returns(NodeInfoSchema),
@@ -571,26 +545,16 @@ export const AztecNodeApiSchema: ApiSchemaFor<AztecNode> = {
571
545
  getBlocks: z
572
546
  .function()
573
547
  .args(BlockNumberPositiveSchema, z.number().gt(0).lte(MAX_RPC_BLOCKS_LEN))
574
- .returns(z.array(L2BlockNew.schema)),
548
+ .returns(z.array(L2Block.schema)),
575
549
 
576
- getPublishedBlocks: z
577
- .function()
578
- .args(BlockNumberPositiveSchema, z.number().gt(0).lte(MAX_RPC_BLOCKS_LEN))
579
- .returns(z.array(CheckpointedL2Block.schema)),
580
-
581
- getPublishedCheckpoints: z
550
+ getCheckpoints: z
582
551
  .function()
583
552
  .args(CheckpointNumberPositiveSchema, z.number().gt(0).lte(MAX_RPC_CHECKPOINTS_LEN))
584
553
  .returns(z.array(PublishedCheckpoint.schema)),
585
554
 
586
- getL2BlocksNew: z
587
- .function()
588
- .args(BlockNumberPositiveSchema, z.number().gt(0).lte(MAX_RPC_BLOCKS_LEN))
589
- .returns(z.array(L2BlockNew.schema)),
590
-
591
555
  getCheckpointedBlocks: z
592
556
  .function()
593
- .args(BlockNumberPositiveSchema, z.number().gt(0).lte(MAX_RPC_BLOCKS_LEN), optional(z.boolean()))
557
+ .args(BlockNumberPositiveSchema, z.number().gt(0).lte(MAX_RPC_BLOCKS_LEN))
594
558
  .returns(z.array(CheckpointedL2Block.schema)),
595
559
 
596
560
  getCurrentMinFees: z.function().returns(GasFees.schema),
@@ -618,12 +582,17 @@ export const AztecNodeApiSchema: ApiSchemaFor<AztecNode> = {
618
582
 
619
583
  getPrivateLogsByTags: z
620
584
  .function()
621
- .args(z.array(SiloedTag.schema).max(MAX_RPC_LEN))
585
+ .args(z.array(SiloedTag.schema).max(MAX_RPC_LEN), optional(z.number().gte(0)), optional(BlockHash.schema))
622
586
  .returns(z.array(z.array(TxScopedL2Log.schema))),
623
587
 
624
588
  getPublicLogsByTagsFromContract: z
625
589
  .function()
626
- .args(schemas.AztecAddress, z.array(Tag.schema).max(MAX_RPC_LEN))
590
+ .args(
591
+ schemas.AztecAddress,
592
+ z.array(Tag.schema).max(MAX_RPC_LEN),
593
+ optional(z.number().gte(0)),
594
+ optional(BlockHash.schema),
595
+ )
627
596
  .returns(z.array(z.array(TxScopedL2Log.schema))),
628
597
 
629
598
  sendTx: z.function().args(Tx.schema).returns(z.void()),
@@ -1,7 +1,8 @@
1
1
  import type { BlockNumber, CheckpointNumber } from '@aztec/foundation/branded-types';
2
2
  import type { Fr } from '@aztec/foundation/curves/bn254';
3
+ import type { LoggerBindings } from '@aztec/foundation/log';
3
4
 
4
- import type { L2BlockNew } from '../block/l2_block_new.js';
5
+ import type { L2Block } from '../block/l2_block.js';
5
6
  import type { ChainConfig, SequencerConfig } from '../config/chain-config.js';
6
7
  import type { L1RollupConstants } from '../epoch-helpers/index.js';
7
8
  import type { Gas } from '../gas/gas.js';
@@ -31,7 +32,7 @@ export interface IBlockFactory extends ProcessedTxHandler {
31
32
  /**
32
33
  * Assembles the block and updates the archive tree.
33
34
  */
34
- setBlockCompleted(expectedBlockHeader?: BlockHeader): Promise<L2BlockNew>;
35
+ setBlockCompleted(expectedBlockHeader?: BlockHeader): Promise<L2Block>;
35
36
  }
36
37
 
37
38
  export interface PublicProcessorLimits {
@@ -61,16 +62,24 @@ export const FullNodeBlockBuilderConfigKeys: (keyof FullNodeBlockBuilderConfig)[
61
62
  'fakeThrowAfterProcessingTxCount',
62
63
  ] as const;
63
64
 
65
+ /** Thrown when no valid transactions are available to include in a block after processing, and this is not the first block in a checkpoint. */
66
+ export class NoValidTxsError extends Error {
67
+ constructor(public readonly failedTxs: FailedTx[]) {
68
+ super('No valid transactions to include in block');
69
+ this.name = 'NoValidTxsError';
70
+ }
71
+ }
72
+
64
73
  /** Result of building a block within a checkpoint. */
65
- export interface BuildBlockInCheckpointResult {
66
- block: L2BlockNew;
74
+ export type BuildBlockInCheckpointResult = {
75
+ block: L2Block;
67
76
  publicGas: Gas;
68
77
  publicProcessorDuration: number;
69
78
  numTxs: number;
70
79
  failedTxs: FailedTx[];
71
80
  usedTxs: Tx[];
72
81
  usedTxBlobFields: number;
73
- }
82
+ };
74
83
 
75
84
  /** Interface for building blocks within a checkpoint context. */
76
85
  export interface ICheckpointBlockBuilder {
@@ -92,5 +101,6 @@ export interface ICheckpointsBuilder {
92
101
  l1ToL2Messages: Fr[],
93
102
  previousCheckpointOutHashes: Fr[],
94
103
  fork: MerkleTreeWriteOperations,
104
+ bindings?: LoggerBindings,
95
105
  ): Promise<ICheckpointBlockBuilder>;
96
106
  }
@@ -67,9 +67,7 @@ export interface SequencerConfig {
67
67
  blockDurationMs?: number;
68
68
  /** Have sequencer build and publish an empty checkpoint if there are no txs */
69
69
  buildCheckpointIfEmpty?: boolean;
70
-
71
- // TODO(palla/mbps): Change default to false once block sync is stable
72
- /** Skip pushing proposed blocks to archiver (default: true) */
70
+ /** Skip pushing proposed blocks to archiver (default: false) */
73
71
  skipPushProposedBlocksToArchiver?: boolean;
74
72
  }
75
73
 
@@ -12,16 +12,29 @@ import type { GetContractClassLogsResponse, GetPublicLogsResponse } from './get_
12
12
  */
13
13
  export interface L2LogsSource {
14
14
  /**
15
- * Gets all private logs that match any of the `tags`. For each tag, an array of matching logs is returned. An empty
15
+ * Gets private logs that match any of the `tags`. For each tag, an array of matching logs is returned. An empty
16
16
  * array implies no logs match that tag.
17
+ * @param tags - The tags to search for.
18
+ * @param page - The page number (0-indexed) for pagination.
19
+ * @returns An array of log arrays, one per tag. Returns at most 10 logs per tag per page. If 10 logs are returned
20
+ * for a tag, the caller should fetch the next page to check for more logs.
17
21
  */
18
- getPrivateLogsByTags(tags: SiloedTag[]): Promise<TxScopedL2Log[][]>;
22
+ getPrivateLogsByTags(tags: SiloedTag[], page?: number): Promise<TxScopedL2Log[][]>;
19
23
 
20
24
  /**
21
- * Gets all public logs that match any of the `tags` from the specified contract. For each tag, an array of matching
25
+ * Gets public logs that match any of the `tags` from the specified contract. For each tag, an array of matching
22
26
  * logs is returned. An empty array implies no logs match that tag.
27
+ * @param contractAddress - The contract address to search logs for.
28
+ * @param tags - The tags to search for.
29
+ * @param page - The page number (0-indexed) for pagination.
30
+ * @returns An array of log arrays, one per tag. Returns at most 10 logs per tag per page. If 10 logs are returned
31
+ * for a tag, the caller should fetch the next page to check for more logs.
23
32
  */
24
- getPublicLogsByTagsFromContract(contractAddress: AztecAddress, tags: Tag[]): Promise<TxScopedL2Log[][]>;
33
+ getPublicLogsByTagsFromContract(
34
+ contractAddress: AztecAddress,
35
+ tags: Tag[],
36
+ page?: number,
37
+ ): Promise<TxScopedL2Log[][]>;
25
38
 
26
39
  /**
27
40
  * Gets public logs based on the provided filter.
@@ -63,7 +63,7 @@ export interface P2PApiWithAttestations extends P2PApiWithoutAttestations {
63
63
 
64
64
  export interface P2PClient extends P2PApiWithAttestations {
65
65
  /** Manually adds checkpoint attestations to the p2p client attestation pool. */
66
- addCheckpointAttestations(attestations: CheckpointAttestation[]): Promise<void>;
66
+ addOwnCheckpointAttestations(attestations: CheckpointAttestation[]): Promise<void>;
67
67
  }
68
68
 
69
69
  export type P2PApi<T extends P2PClientType = P2PClientType.Full> = T extends P2PClientType.Full
@@ -1,3 +1,5 @@
1
+ import type { EpochNumber } from '@aztec/foundation/branded-types';
2
+
1
3
  import type { ProvingRequestType } from '../proofs/proving_request_type.js';
2
4
  import type { ProofUri, ProvingJob, ProvingJobId, ProvingJobStatus } from './proving-job.js';
3
5
 
@@ -88,3 +90,23 @@ export interface ProvingJobConsumer {
88
90
  }
89
91
 
90
92
  export interface ProvingJobBroker extends ProvingJobProducer, ProvingJobConsumer {}
93
+
94
+ /**
95
+ * Debug interface for replaying proving jobs from stored inputs.
96
+ * Used for benchmarking different agent configurations against the same workload.
97
+ */
98
+ export interface ProvingJobBrokerDebug {
99
+ /**
100
+ * Replays a proving job by re-enqueuing it with inputs from the configured proof store.
101
+ * The proof type is parsed from the job ID (format: epoch:typeName:hash).
102
+ * @param jobId - The original job ID to replay
103
+ * @param epochNumber - The epoch number to assign
104
+ * @param inputsUri - The proof inputs location
105
+ */
106
+ replayProvingJob(
107
+ jobId: ProvingJobId,
108
+ type: ProvingRequestType,
109
+ epochNumber: EpochNumber,
110
+ inputsUri: ProofUri,
111
+ ): Promise<ProvingJobStatus>;
112
+ }
@@ -17,6 +17,12 @@ export type ActualProverConfig = {
17
17
  proverTestDelayMs: number;
18
18
  /** If using realistic delays, what percentage of realistic times to apply. */
19
19
  proverTestDelayFactor: number;
20
+ /**
21
+ * Whether to abort pending proving jobs when the orchestrator is cancelled.
22
+ * When false (default), jobs remain in the broker queue and can be reused on restart/reorg.
23
+ * When true, jobs are explicitly cancelled with the broker, which prevents reuse.
24
+ */
25
+ cancelJobsOnStop: boolean;
20
26
  };
21
27
 
22
28
  /**
@@ -29,6 +35,8 @@ export type ProverConfig = ActualProverConfig & {
29
35
  proverId?: EthAddress;
30
36
  /** Number of proving agents to start within the prover. */
31
37
  proverAgentCount: number;
38
+ /** Where to store proving request. Must be accessible to both prover node and agents. If not set will inline-encode the parameters */
39
+ proofStore?: string;
32
40
  /** Store for failed proof inputs. */
33
41
  failedProofStore?: string;
34
42
  };
@@ -42,7 +50,9 @@ export const ProverConfigSchema = zodFor<ProverConfig>()(
42
50
  proverTestDelayMs: z.number(),
43
51
  proverTestDelayFactor: z.number(),
44
52
  proverAgentCount: z.number(),
53
+ proofStore: z.string().optional(),
45
54
  failedProofStore: z.string().optional(),
55
+ cancelJobsOnStop: z.boolean(),
46
56
  }),
47
57
  );
48
58
 
@@ -80,11 +90,23 @@ export const proverConfigMappings: ConfigMappingsType<ProverConfig> = {
80
90
  description: 'The number of prover agents to start',
81
91
  ...numberConfigHelper(1),
82
92
  },
93
+ proofStore: {
94
+ env: 'PROVER_PROOF_STORE',
95
+ description: 'Optional proof input store for the prover',
96
+ },
83
97
  failedProofStore: {
84
98
  env: 'PROVER_FAILED_PROOF_STORE',
85
99
  description:
86
100
  'Store for failed proof inputs. Google cloud storage is only supported at the moment. Set this value as gs://bucket-name/path/to/store.',
87
101
  },
102
+ cancelJobsOnStop: {
103
+ env: 'PROVER_CANCEL_JOBS_ON_STOP',
104
+ description:
105
+ 'Whether to abort pending proving jobs when the orchestrator is cancelled. ' +
106
+ 'When false (default), jobs remain in the broker queue and can be reused on restart/reorg. ' +
107
+ 'When true, jobs are explicitly cancelled with the broker, which prevents reuse.',
108
+ ...booleanConfigHelper(false),
109
+ },
88
110
  };
89
111
 
90
112
  function parseProverId(str?: string) {
@@ -18,6 +18,8 @@ export interface SlasherConfig {
18
18
  slashDataWithholdingPenalty: bigint;
19
19
  slashInactivityPenalty: bigint;
20
20
  slashBroadcastedInvalidBlockPenalty: bigint;
21
+ slashDuplicateProposalPenalty: bigint;
22
+ slashDuplicateAttestationPenalty: bigint;
21
23
  slashProposeInvalidAttestationsPenalty: bigint;
22
24
  slashAttestDescendantOfInvalidPenalty: bigint;
23
25
  slashUnknownPenalty: bigint;
@@ -40,6 +42,8 @@ export const SlasherConfigSchema = zodFor<SlasherConfig>()(
40
42
  slashInactivityConsecutiveEpochThreshold: z.number(),
41
43
  slashInactivityPenalty: schemas.BigInt,
42
44
  slashProposeInvalidAttestationsPenalty: schemas.BigInt,
45
+ slashDuplicateProposalPenalty: schemas.BigInt,
46
+ slashDuplicateAttestationPenalty: schemas.BigInt,
43
47
  slashAttestDescendantOfInvalidPenalty: schemas.BigInt,
44
48
  slashUnknownPenalty: schemas.BigInt,
45
49
  slashOffenseExpirationRounds: z.number(),
@@ -1,4 +1,4 @@
1
- import type { L2BlockNew } from '@aztec/stdlib/block';
1
+ import type { L2Block } from '@aztec/stdlib/block';
2
2
  import type { BlockProposal } from '@aztec/stdlib/p2p';
3
3
  import { type Tx, TxHash } from '@aztec/stdlib/tx';
4
4
 
@@ -13,5 +13,5 @@ export interface ITxProvider {
13
13
  opts: { pinnedPeer: PeerId | undefined; deadline: Date },
14
14
  ): Promise<{ txs: Tx[]; missingTxs: TxHash[] }>;
15
15
 
16
- getTxsForBlock(block: L2BlockNew, opts: { deadline: Date }): Promise<{ txs: Tx[]; missingTxs: TxHash[] }>;
16
+ getTxsForBlock(block: L2Block, opts: { deadline: Date }): Promise<{ txs: Tx[]; missingTxs: TxHash[] }>;
17
17
  }