@aztec/stdlib 0.0.1-commit.e3c1de76 → 0.0.1-commit.e57c76e

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 (1048) hide show
  1. package/dest/abi/abi.d.ts +142 -1081
  2. package/dest/abi/abi.d.ts.map +1 -1
  3. package/dest/abi/abi.js +41 -18
  4. package/dest/abi/authorization_selector.d.ts +4 -7
  5. package/dest/abi/authorization_selector.d.ts.map +1 -1
  6. package/dest/abi/buffer.d.ts +14 -4
  7. package/dest/abi/buffer.d.ts.map +1 -1
  8. package/dest/abi/buffer.js +25 -4
  9. package/dest/abi/contract_artifact.d.ts +1 -1
  10. package/dest/abi/contract_artifact.d.ts.map +1 -1
  11. package/dest/abi/contract_artifact.js +14 -7
  12. package/dest/abi/decoder.d.ts +6 -45
  13. package/dest/abi/decoder.d.ts.map +1 -1
  14. package/dest/abi/decoder.js +17 -70
  15. package/dest/abi/encoder.d.ts +1 -1
  16. package/dest/abi/encoder.d.ts.map +1 -1
  17. package/dest/abi/encoder.js +64 -7
  18. package/dest/abi/event_metadata_definition.d.ts +3 -1
  19. package/dest/abi/event_metadata_definition.d.ts.map +1 -1
  20. package/dest/abi/event_metadata_definition.js +1 -1
  21. package/dest/abi/event_selector.d.ts +4 -7
  22. package/dest/abi/event_selector.d.ts.map +1 -1
  23. package/dest/abi/function_call.d.ts +22 -10
  24. package/dest/abi/function_call.d.ts.map +1 -1
  25. package/dest/abi/function_call.js +20 -3
  26. package/dest/abi/function_selector.d.ts +3 -6
  27. package/dest/abi/function_selector.d.ts.map +1 -1
  28. package/dest/abi/function_selector.js +2 -4
  29. package/dest/abi/function_signature_decoder.d.ts +43 -0
  30. package/dest/abi/function_signature_decoder.d.ts.map +1 -0
  31. package/dest/abi/function_signature_decoder.js +66 -0
  32. package/dest/abi/index.d.ts +2 -1
  33. package/dest/abi/index.d.ts.map +1 -1
  34. package/dest/abi/index.js +1 -0
  35. package/dest/abi/note_selector.d.ts +4 -7
  36. package/dest/abi/note_selector.d.ts.map +1 -1
  37. package/dest/abi/note_selector.js +1 -3
  38. package/dest/abi/selector.d.ts +2 -2
  39. package/dest/abi/selector.d.ts.map +1 -1
  40. package/dest/abi/selector.js +1 -1
  41. package/dest/abi/utils.d.ts +14 -1
  42. package/dest/abi/utils.d.ts.map +1 -1
  43. package/dest/abi/utils.js +16 -1
  44. package/dest/auth_witness/auth_witness.d.ts +2 -2
  45. package/dest/auth_witness/auth_witness.d.ts.map +1 -1
  46. package/dest/auth_witness/auth_witness.js +3 -3
  47. package/dest/avm/avm.d.ts +1756 -10463
  48. package/dest/avm/avm.d.ts.map +1 -1
  49. package/dest/avm/avm.js +6 -3
  50. package/dest/avm/avm_accumulated_data.d.ts +22 -86
  51. package/dest/avm/avm_accumulated_data.d.ts.map +1 -1
  52. package/dest/avm/avm_circuit_public_inputs.d.ts +180 -932
  53. package/dest/avm/avm_circuit_public_inputs.d.ts.map +1 -1
  54. package/dest/avm/avm_proving_request.d.ts +653 -5446
  55. package/dest/avm/avm_proving_request.d.ts.map +1 -1
  56. package/dest/avm/message_pack.js +12 -3
  57. package/dest/avm/public_data_write.d.ts +6 -12
  58. package/dest/avm/public_data_write.d.ts.map +1 -1
  59. package/dest/avm/revert_code.d.ts +6 -7
  60. package/dest/avm/revert_code.d.ts.map +1 -1
  61. package/dest/avm/revert_code.js +13 -21
  62. package/dest/aztec-address/index.d.ts +8 -8
  63. package/dest/aztec-address/index.d.ts.map +1 -1
  64. package/dest/aztec-address/index.js +9 -6
  65. package/dest/block/attestation_info.d.ts +3 -2
  66. package/dest/block/attestation_info.d.ts.map +1 -1
  67. package/dest/block/attestation_info.js +7 -5
  68. package/dest/block/block_data.d.ts +27 -0
  69. package/dest/block/block_data.d.ts.map +1 -0
  70. package/dest/block/block_data.js +12 -0
  71. package/dest/block/block_hash.d.ts +11 -10
  72. package/dest/block/block_hash.d.ts.map +1 -1
  73. package/dest/block/block_hash.js +10 -9
  74. package/dest/block/block_parameter.d.ts +37 -4
  75. package/dest/block/block_parameter.d.ts.map +1 -1
  76. package/dest/block/block_parameter.js +53 -2
  77. package/dest/block/in_block.d.ts +5 -24
  78. package/dest/block/in_block.d.ts.map +1 -1
  79. package/dest/block/in_block.js +1 -1
  80. package/dest/block/index.d.ts +2 -2
  81. package/dest/block/index.d.ts.map +1 -1
  82. package/dest/block/index.js +1 -1
  83. package/dest/block/l2_block.d.ts +21 -41
  84. package/dest/block/l2_block.d.ts.map +1 -1
  85. package/dest/block/l2_block.js +12 -2
  86. package/dest/block/l2_block_info.d.ts +10 -29
  87. package/dest/block/l2_block_info.d.ts.map +1 -1
  88. package/dest/block/l2_block_info.js +6 -5
  89. package/dest/block/l2_block_source.d.ts +216 -338
  90. package/dest/block/l2_block_source.d.ts.map +1 -1
  91. package/dest/block/l2_block_source.js +67 -1
  92. package/dest/block/l2_block_stream/interfaces.d.ts +6 -3
  93. package/dest/block/l2_block_stream/interfaces.d.ts.map +1 -1
  94. package/dest/block/l2_block_stream/l2_block_stream.d.ts +2 -2
  95. package/dest/block/l2_block_stream/l2_block_stream.d.ts.map +1 -1
  96. package/dest/block/l2_block_stream/l2_block_stream.js +49 -12
  97. package/dest/block/l2_block_stream/l2_tips_memory_store.d.ts +3 -1
  98. package/dest/block/l2_block_stream/l2_tips_memory_store.d.ts.map +1 -1
  99. package/dest/block/l2_block_stream/l2_tips_memory_store.js +3 -0
  100. package/dest/block/l2_block_stream/l2_tips_store_base.d.ts +4 -1
  101. package/dest/block/l2_block_stream/l2_tips_store_base.d.ts.map +1 -1
  102. package/dest/block/l2_block_stream/l2_tips_store_base.js +43 -11
  103. package/dest/block/proposal/attestations_and_signers.d.ts +19 -30
  104. package/dest/block/proposal/attestations_and_signers.d.ts.map +1 -1
  105. package/dest/block/proposal/attestations_and_signers.js +26 -18
  106. package/dest/block/proposal/committee_attestation.d.ts +6 -12
  107. package/dest/block/proposal/committee_attestation.d.ts.map +1 -1
  108. package/dest/block/test/l2_tips_store_test_suite.d.ts +1 -1
  109. package/dest/block/test/l2_tips_store_test_suite.d.ts.map +1 -1
  110. package/dest/block/test/l2_tips_store_test_suite.js +5 -4
  111. package/dest/checkpoint/checkpoint.d.ts +48 -99
  112. package/dest/checkpoint/checkpoint.d.ts.map +1 -1
  113. package/dest/checkpoint/checkpoint.js +41 -17
  114. package/dest/checkpoint/checkpoint_data.d.ts +97 -0
  115. package/dest/checkpoint/checkpoint_data.d.ts.map +1 -0
  116. package/dest/checkpoint/checkpoint_data.js +38 -0
  117. package/dest/checkpoint/checkpoint_info.d.ts +7 -23
  118. package/dest/checkpoint/checkpoint_info.d.ts.map +1 -1
  119. package/dest/checkpoint/checkpoint_reexecution_tracker.d.ts +60 -0
  120. package/dest/checkpoint/checkpoint_reexecution_tracker.d.ts.map +1 -0
  121. package/dest/checkpoint/checkpoint_reexecution_tracker.js +108 -0
  122. package/dest/checkpoint/digest.d.ts +18 -0
  123. package/dest/checkpoint/digest.d.ts.map +1 -0
  124. package/dest/checkpoint/digest.js +12 -0
  125. package/dest/checkpoint/index.d.ts +6 -1
  126. package/dest/checkpoint/index.d.ts.map +1 -1
  127. package/dest/checkpoint/index.js +5 -0
  128. package/dest/checkpoint/previous_checkpoint_out_hashes.d.ts +33 -0
  129. package/dest/checkpoint/previous_checkpoint_out_hashes.d.ts.map +1 -0
  130. package/dest/checkpoint/previous_checkpoint_out_hashes.js +45 -0
  131. package/dest/checkpoint/published_checkpoint.d.ts +53 -190
  132. package/dest/checkpoint/published_checkpoint.d.ts.map +1 -1
  133. package/dest/checkpoint/published_checkpoint.js +1 -2
  134. package/dest/checkpoint/validate.d.ts +36 -0
  135. package/dest/checkpoint/validate.d.ts.map +1 -0
  136. package/dest/checkpoint/validate.js +120 -0
  137. package/dest/config/chain-config.d.ts +4 -9
  138. package/dest/config/chain-config.d.ts.map +1 -1
  139. package/dest/config/chain-config.js +13 -12
  140. package/dest/config/index.d.ts +2 -1
  141. package/dest/config/index.d.ts.map +1 -1
  142. package/dest/config/index.js +1 -0
  143. package/dest/config/sequencer-config.d.ts +14 -0
  144. package/dest/config/sequencer-config.d.ts.map +1 -0
  145. package/dest/config/sequencer-config.js +38 -0
  146. package/dest/contract/complete_address.d.ts +3 -2
  147. package/dest/contract/complete_address.d.ts.map +1 -1
  148. package/dest/contract/complete_address.js +6 -2
  149. package/dest/contract/contract_address.d.ts +6 -6
  150. package/dest/contract/contract_address.d.ts.map +1 -1
  151. package/dest/contract/contract_address.js +9 -8
  152. package/dest/contract/contract_class.d.ts +2 -3
  153. package/dest/contract/contract_class.d.ts.map +1 -1
  154. package/dest/contract/contract_class_id.d.ts +3 -3
  155. package/dest/contract/contract_class_id.d.ts.map +1 -1
  156. package/dest/contract/contract_class_id.js +7 -6
  157. package/dest/contract/contract_deployment_data.d.ts +15 -61
  158. package/dest/contract/contract_deployment_data.d.ts.map +1 -1
  159. package/dest/contract/contract_instance.d.ts +4 -2
  160. package/dest/contract/contract_instance.d.ts.map +1 -1
  161. package/dest/contract/contract_instance.js +10 -3
  162. package/dest/contract/index.d.ts +1 -3
  163. package/dest/contract/index.d.ts.map +1 -1
  164. package/dest/contract/index.js +0 -2
  165. package/dest/contract/interfaces/contract_class.d.ts +17 -241
  166. package/dest/contract/interfaces/contract_class.d.ts.map +1 -1
  167. package/dest/contract/interfaces/contract_class.js +1 -28
  168. package/dest/contract/interfaces/contract_instance.d.ts +41 -95
  169. package/dest/contract/interfaces/contract_instance.d.ts.map +1 -1
  170. package/dest/contract/interfaces/contract_instance.js +4 -2
  171. package/dest/contract/interfaces/contract_instance_update.d.ts +6 -26
  172. package/dest/contract/interfaces/contract_instance_update.d.ts.map +1 -1
  173. package/dest/contract/interfaces/node-info.d.ts +3 -1
  174. package/dest/contract/interfaces/node-info.d.ts.map +1 -1
  175. package/dest/contract/interfaces/node-info.js +2 -1
  176. package/dest/contract/interfaces/protocol_contract_addresses.d.ts +2 -12
  177. package/dest/contract/interfaces/protocol_contract_addresses.d.ts.map +1 -1
  178. package/dest/contract/private_function.d.ts +1 -1
  179. package/dest/contract/private_function.d.ts.map +1 -1
  180. package/dest/contract/private_function.js +4 -6
  181. package/dest/database-version/database_version.d.ts +5 -11
  182. package/dest/database-version/database_version.d.ts.map +1 -1
  183. package/dest/database-version/version_manager.d.ts +6 -2
  184. package/dest/database-version/version_manager.d.ts.map +1 -1
  185. package/dest/database-version/version_manager.js +12 -1
  186. package/dest/epoch-helpers/index.d.ts +14 -18
  187. package/dest/epoch-helpers/index.d.ts.map +1 -1
  188. package/dest/epoch-helpers/index.js +18 -2
  189. package/dest/file-store/factory.d.ts +4 -3
  190. package/dest/file-store/factory.d.ts.map +1 -1
  191. package/dest/file-store/factory.js +2 -2
  192. package/dest/file-store/http.d.ts +9 -2
  193. package/dest/file-store/http.d.ts.map +1 -1
  194. package/dest/file-store/http.js +20 -9
  195. package/dest/file-store/index.d.ts +2 -1
  196. package/dest/file-store/index.d.ts.map +1 -1
  197. package/dest/file-store/local.d.ts +3 -3
  198. package/dest/file-store/local.d.ts.map +1 -1
  199. package/dest/file-store/local.js +13 -4
  200. package/dest/file-store/s3.d.ts +1 -1
  201. package/dest/file-store/s3.d.ts.map +1 -1
  202. package/dest/file-store/s3.js +11 -3
  203. package/dest/gas/fee_math.d.ts +49 -0
  204. package/dest/gas/fee_math.d.ts.map +1 -0
  205. package/dest/gas/fee_math.js +80 -0
  206. package/dest/gas/gas.d.ts +9 -14
  207. package/dest/gas/gas.d.ts.map +1 -1
  208. package/dest/gas/gas.js +6 -3
  209. package/dest/gas/gas_fees.d.ts +13 -14
  210. package/dest/gas/gas_fees.d.ts.map +1 -1
  211. package/dest/gas/gas_fees.js +20 -4
  212. package/dest/gas/gas_settings.d.ts +66 -86
  213. package/dest/gas/gas_settings.d.ts.map +1 -1
  214. package/dest/gas/gas_settings.js +56 -9
  215. package/dest/gas/index.d.ts +2 -1
  216. package/dest/gas/index.d.ts.map +1 -1
  217. package/dest/gas/index.js +1 -0
  218. package/dest/ha-signing/config.d.ts +72 -0
  219. package/dest/ha-signing/config.d.ts.map +1 -0
  220. package/dest/ha-signing/config.js +88 -0
  221. package/dest/ha-signing/index.d.ts +4 -0
  222. package/dest/ha-signing/index.d.ts.map +1 -0
  223. package/dest/ha-signing/index.js +3 -0
  224. package/dest/ha-signing/local_config.d.ts +32 -0
  225. package/dest/ha-signing/local_config.d.ts.map +1 -0
  226. package/dest/ha-signing/local_config.js +24 -0
  227. package/dest/ha-signing/types.d.ts +90 -0
  228. package/dest/ha-signing/types.d.ts.map +1 -0
  229. package/dest/ha-signing/types.js +39 -0
  230. package/dest/hash/hash.d.ts +35 -1
  231. package/dest/hash/hash.d.ts.map +1 -1
  232. package/dest/hash/hash.js +78 -11
  233. package/dest/hash/map_slot.js +2 -2
  234. package/dest/interfaces/allowed_element.d.ts +17 -35
  235. package/dest/interfaces/allowed_element.d.ts.map +1 -1
  236. package/dest/interfaces/allowed_element.js +8 -8
  237. package/dest/interfaces/api_limit.d.ts +1 -1
  238. package/dest/interfaces/api_limit.js +1 -1
  239. package/dest/interfaces/archiver.d.ts +22 -32
  240. package/dest/interfaces/archiver.d.ts.map +1 -1
  241. package/dest/interfaces/archiver.js +215 -65
  242. package/dest/interfaces/aztec-node-admin.d.ts +106 -255
  243. package/dest/interfaces/aztec-node-admin.d.ts.map +1 -1
  244. package/dest/interfaces/aztec-node-admin.js +68 -17
  245. package/dest/interfaces/aztec-node-debug.d.ts +21 -0
  246. package/dest/interfaces/aztec-node-debug.d.ts.map +1 -0
  247. package/dest/interfaces/aztec-node-debug.js +21 -0
  248. package/dest/interfaces/aztec-node.d.ts +140 -124
  249. package/dest/interfaces/aztec-node.d.ts.map +1 -1
  250. package/dest/interfaces/aztec-node.js +311 -68
  251. package/dest/interfaces/block-builder.d.ts +41 -12
  252. package/dest/interfaces/block-builder.d.ts.map +1 -1
  253. package/dest/interfaces/block-builder.js +13 -6
  254. package/dest/interfaces/block_response.d.ts +90 -0
  255. package/dest/interfaces/block_response.d.ts.map +1 -0
  256. package/dest/interfaces/block_response.js +30 -0
  257. package/dest/interfaces/chain_tips.d.ts +50 -0
  258. package/dest/interfaces/chain_tips.d.ts.map +1 -0
  259. package/dest/interfaces/chain_tips.js +11 -0
  260. package/dest/interfaces/checkpoint_parameter.d.ts +14 -0
  261. package/dest/interfaces/checkpoint_parameter.d.ts.map +1 -0
  262. package/dest/interfaces/checkpoint_parameter.js +18 -0
  263. package/dest/interfaces/checkpoint_response.d.ts +122 -0
  264. package/dest/interfaces/checkpoint_response.d.ts.map +1 -0
  265. package/dest/interfaces/checkpoint_response.js +26 -0
  266. package/dest/interfaces/client.d.ts +8 -2
  267. package/dest/interfaces/client.d.ts.map +1 -1
  268. package/dest/interfaces/client.js +7 -1
  269. package/dest/interfaces/configs.d.ts +73 -117
  270. package/dest/interfaces/configs.d.ts.map +1 -1
  271. package/dest/interfaces/configs.js +18 -3
  272. package/dest/interfaces/l1_publish_info.d.ts +29 -0
  273. package/dest/interfaces/l1_publish_info.d.ts.map +1 -0
  274. package/dest/interfaces/l1_publish_info.js +26 -0
  275. package/dest/interfaces/l2_logs_source.d.ts +14 -34
  276. package/dest/interfaces/l2_logs_source.d.ts.map +1 -1
  277. package/dest/interfaces/l2_logs_source.js +5 -0
  278. package/dest/interfaces/merkle_tree_operations.d.ts +13 -22
  279. package/dest/interfaces/merkle_tree_operations.d.ts.map +1 -1
  280. package/dest/interfaces/p2p-bootstrap.js +8 -2
  281. package/dest/interfaces/p2p.d.ts +18 -13
  282. package/dest/interfaces/p2p.d.ts.map +1 -1
  283. package/dest/interfaces/p2p.js +28 -5
  284. package/dest/interfaces/private_kernel_prover.d.ts +62 -2
  285. package/dest/interfaces/private_kernel_prover.d.ts.map +1 -1
  286. package/dest/interfaces/prover-agent.d.ts +5 -23
  287. package/dest/interfaces/prover-agent.d.ts.map +1 -1
  288. package/dest/interfaces/prover-agent.js +4 -1
  289. package/dest/interfaces/prover-broker.d.ts +16 -1
  290. package/dest/interfaces/prover-broker.d.ts.map +1 -1
  291. package/dest/interfaces/prover-broker.js +4 -1
  292. package/dest/interfaces/prover-client.d.ts +12 -23
  293. package/dest/interfaces/prover-client.d.ts.map +1 -1
  294. package/dest/interfaces/prover-client.js +12 -4
  295. package/dest/interfaces/prover-node.js +22 -8
  296. package/dest/interfaces/proving-job-source.js +24 -4
  297. package/dest/interfaces/proving-job.d.ts +742 -5793
  298. package/dest/interfaces/proving-job.d.ts.map +1 -1
  299. package/dest/interfaces/proving-job.js +1 -1
  300. package/dest/interfaces/public_storage_override.d.ts +22 -0
  301. package/dest/interfaces/public_storage_override.d.ts.map +1 -0
  302. package/dest/interfaces/public_storage_override.js +7 -0
  303. package/dest/interfaces/server.d.ts +6 -1
  304. package/dest/interfaces/server.d.ts.map +1 -1
  305. package/dest/interfaces/server.js +5 -0
  306. package/dest/interfaces/slasher.d.ts +27 -59
  307. package/dest/interfaces/slasher.d.ts.map +1 -1
  308. package/dest/interfaces/slasher.js +10 -4
  309. package/dest/interfaces/tx_provider.d.ts +6 -1
  310. package/dest/interfaces/tx_provider.d.ts.map +1 -1
  311. package/dest/interfaces/validator.d.ts +76 -168
  312. package/dest/interfaces/validator.d.ts.map +1 -1
  313. package/dest/interfaces/validator.js +16 -5
  314. package/dest/interfaces/world_state.d.ts +6 -5
  315. package/dest/interfaces/world_state.d.ts.map +1 -1
  316. package/dest/kernel/hints/build_note_hash_read_request_hints.d.ts +3 -3
  317. package/dest/kernel/hints/build_note_hash_read_request_hints.d.ts.map +1 -1
  318. package/dest/kernel/hints/build_note_hash_read_request_hints.js +13 -10
  319. package/dest/kernel/hints/build_nullifier_read_request_hints.d.ts +3 -3
  320. package/dest/kernel/hints/build_nullifier_read_request_hints.d.ts.map +1 -1
  321. package/dest/kernel/hints/build_nullifier_read_request_hints.js +13 -10
  322. package/dest/kernel/hints/build_transient_data_hints.d.ts +5 -2
  323. package/dest/kernel/hints/build_transient_data_hints.d.ts.map +1 -1
  324. package/dest/kernel/hints/build_transient_data_hints.js +9 -3
  325. package/dest/kernel/hints/index.d.ts +2 -2
  326. package/dest/kernel/hints/index.js +2 -2
  327. package/dest/kernel/hints/key_validation_request.d.ts +12 -8
  328. package/dest/kernel/hints/key_validation_request.d.ts.map +1 -1
  329. package/dest/kernel/hints/key_validation_request.js +20 -18
  330. package/dest/kernel/hints/key_validation_request_and_separator.d.ts +24 -0
  331. package/dest/kernel/hints/key_validation_request_and_separator.d.ts.map +1 -0
  332. package/dest/kernel/hints/{key_validation_request_and_generator.js → key_validation_request_and_separator.js} +12 -15
  333. package/dest/kernel/hints/{scoped_key_validation_request_and_generator.d.ts → scoped_key_validation_request_and_separator.d.ts} +8 -8
  334. package/dest/kernel/hints/{scoped_key_validation_request_and_generator.d.ts.map → scoped_key_validation_request_and_separator.d.ts.map} +1 -1
  335. package/dest/kernel/hints/{scoped_key_validation_request_and_generator.js → scoped_key_validation_request_and_separator.js} +6 -6
  336. package/dest/kernel/index.d.ts +5 -1
  337. package/dest/kernel/index.d.ts.map +1 -1
  338. package/dest/kernel/index.js +4 -0
  339. package/dest/kernel/log_hash.d.ts +6 -2
  340. package/dest/kernel/log_hash.d.ts.map +1 -1
  341. package/dest/kernel/log_hash.js +21 -9
  342. package/dest/kernel/private_circuit_public_inputs.d.ts +10 -10
  343. package/dest/kernel/private_circuit_public_inputs.d.ts.map +1 -1
  344. package/dest/kernel/private_circuit_public_inputs.js +16 -16
  345. package/dest/kernel/private_kernel_circuit_public_inputs.d.ts +4 -4
  346. package/dest/kernel/private_kernel_circuit_public_inputs.d.ts.map +1 -1
  347. package/dest/kernel/private_kernel_circuit_public_inputs.js +4 -4
  348. package/dest/kernel/private_kernel_init_2_circuit_private_inputs.d.ts +23 -0
  349. package/dest/kernel/private_kernel_init_2_circuit_private_inputs.d.ts.map +1 -0
  350. package/dest/kernel/private_kernel_init_2_circuit_private_inputs.js +35 -0
  351. package/dest/kernel/private_kernel_init_3_circuit_private_inputs.d.ts +24 -0
  352. package/dest/kernel/private_kernel_init_3_circuit_private_inputs.d.ts.map +1 -0
  353. package/dest/kernel/private_kernel_init_3_circuit_private_inputs.js +37 -0
  354. package/dest/kernel/private_kernel_inner_2_circuit_private_inputs.d.ts +16 -0
  355. package/dest/kernel/private_kernel_inner_2_circuit_private_inputs.d.ts.map +1 -0
  356. package/dest/kernel/private_kernel_inner_2_circuit_private_inputs.js +23 -0
  357. package/dest/kernel/private_kernel_inner_3_circuit_private_inputs.d.ts +17 -0
  358. package/dest/kernel/private_kernel_inner_3_circuit_private_inputs.d.ts.map +1 -0
  359. package/dest/kernel/private_kernel_inner_3_circuit_private_inputs.js +25 -0
  360. package/dest/kernel/private_kernel_prover_output.d.ts +3 -29
  361. package/dest/kernel/private_kernel_prover_output.d.ts.map +1 -1
  362. package/dest/kernel/private_kernel_tail_circuit_private_inputs.d.ts +3 -3
  363. package/dest/kernel/private_kernel_tail_circuit_private_inputs.d.ts.map +1 -1
  364. package/dest/kernel/private_kernel_tail_circuit_private_inputs.js +4 -4
  365. package/dest/kernel/private_kernel_tail_circuit_public_inputs.d.ts +12 -8
  366. package/dest/kernel/private_kernel_tail_circuit_public_inputs.d.ts.map +1 -1
  367. package/dest/kernel/private_kernel_tail_circuit_public_inputs.js +32 -13
  368. package/dest/kernel/private_to_avm_accumulated_data.d.ts +25 -69
  369. package/dest/kernel/private_to_avm_accumulated_data.d.ts.map +1 -1
  370. package/dest/kernel/private_to_avm_accumulated_data.js +11 -5
  371. package/dest/kernel/private_to_public_accumulated_data.d.ts +4 -3
  372. package/dest/kernel/private_to_public_accumulated_data.d.ts.map +1 -1
  373. package/dest/kernel/private_to_public_accumulated_data.js +6 -3
  374. package/dest/kernel/private_to_public_kernel_circuit_public_inputs.d.ts +7 -6
  375. package/dest/kernel/private_to_public_kernel_circuit_public_inputs.d.ts.map +1 -1
  376. package/dest/kernel/private_to_public_kernel_circuit_public_inputs.js +13 -9
  377. package/dest/kernel/private_to_rollup_accumulated_data.d.ts +5 -4
  378. package/dest/kernel/private_to_rollup_accumulated_data.d.ts.map +1 -1
  379. package/dest/kernel/private_to_rollup_accumulated_data.js +6 -3
  380. package/dest/kernel/private_to_rollup_kernel_circuit_public_inputs.d.ts +7 -6
  381. package/dest/kernel/private_to_rollup_kernel_circuit_public_inputs.d.ts.map +1 -1
  382. package/dest/kernel/private_to_rollup_kernel_circuit_public_inputs.js +13 -9
  383. package/dest/kernel/private_validation_requests.d.ts +3 -3
  384. package/dest/kernel/private_validation_requests.js +9 -9
  385. package/dest/kernel/public_call_request.d.ts +15 -30
  386. package/dest/kernel/public_call_request.d.ts.map +1 -1
  387. package/dest/kernel/public_call_request.js +16 -7
  388. package/dest/keys/derivation.d.ts +9 -5
  389. package/dest/keys/derivation.d.ts.map +1 -1
  390. package/dest/keys/derivation.js +28 -18
  391. package/dest/keys/key_types.d.ts +3 -3
  392. package/dest/keys/key_types.d.ts.map +1 -1
  393. package/dest/keys/public_key.d.ts +22 -3
  394. package/dest/keys/public_key.d.ts.map +1 -1
  395. package/dest/keys/public_key.js +20 -1
  396. package/dest/keys/public_keys.d.ts +55 -82
  397. package/dest/keys/public_keys.d.ts.map +1 -1
  398. package/dest/keys/public_keys.js +102 -74
  399. package/dest/keys/utils.d.ts +1 -1
  400. package/dest/keys/utils.d.ts.map +1 -1
  401. package/dest/keys/utils.js +8 -4
  402. package/dest/kv-store/config.d.ts +14 -0
  403. package/dest/kv-store/config.d.ts.map +1 -0
  404. package/dest/kv-store/config.js +21 -0
  405. package/dest/kv-store/index.d.ts +2 -0
  406. package/dest/kv-store/index.d.ts.map +1 -0
  407. package/dest/kv-store/index.js +1 -0
  408. package/dest/l1-contracts/index.d.ts +2 -2
  409. package/dest/l1-contracts/index.d.ts.map +1 -1
  410. package/dest/l1-contracts/index.js +1 -1
  411. package/dest/logs/app_tagging_secret.d.ts +46 -0
  412. package/dest/logs/app_tagging_secret.d.ts.map +1 -0
  413. package/dest/logs/app_tagging_secret.js +109 -0
  414. package/dest/logs/app_tagging_secret_kind.d.ts +7 -0
  415. package/dest/logs/app_tagging_secret_kind.d.ts.map +1 -0
  416. package/dest/logs/app_tagging_secret_kind.js +17 -0
  417. package/dest/logs/contract_class_log.d.ts +16 -34
  418. package/dest/logs/contract_class_log.d.ts.map +1 -1
  419. package/dest/logs/contract_class_log.js +11 -9
  420. package/dest/logs/debug_log_store.d.ts +30 -0
  421. package/dest/logs/debug_log_store.d.ts.map +1 -0
  422. package/dest/logs/debug_log_store.js +30 -0
  423. package/dest/logs/index.d.ts +9 -7
  424. package/dest/logs/index.d.ts.map +1 -1
  425. package/dest/logs/index.js +8 -6
  426. package/dest/logs/log_cursor.d.ts +51 -0
  427. package/dest/logs/log_cursor.d.ts.map +1 -0
  428. package/dest/logs/log_cursor.js +82 -0
  429. package/dest/logs/log_result.d.ts +54 -0
  430. package/dest/logs/log_result.d.ts.map +1 -0
  431. package/dest/logs/log_result.js +56 -0
  432. package/dest/logs/logs_query.d.ts +82 -0
  433. package/dest/logs/logs_query.d.ts.map +1 -0
  434. package/dest/logs/logs_query.js +50 -0
  435. package/dest/logs/message_context.d.ts +6 -8
  436. package/dest/logs/message_context.d.ts.map +1 -1
  437. package/dest/logs/message_context.js +27 -9
  438. package/dest/logs/pending_tagged_log.d.ts +2 -3
  439. package/dest/logs/pending_tagged_log.d.ts.map +1 -1
  440. package/dest/logs/pending_tagged_log.js +2 -2
  441. package/dest/logs/pre_tag.d.ts +14 -22
  442. package/dest/logs/pre_tag.d.ts.map +1 -1
  443. package/dest/logs/pre_tag.js +2 -2
  444. package/dest/logs/private_log.d.ts +8 -13
  445. package/dest/logs/private_log.d.ts.map +1 -1
  446. package/dest/logs/private_log.js +6 -3
  447. package/dest/logs/public_log.d.ts +4 -3
  448. package/dest/logs/public_log.d.ts.map +1 -1
  449. package/dest/logs/public_log.js +2 -1
  450. package/dest/logs/query_all_logs_by_tags.d.ts +24 -0
  451. package/dest/logs/query_all_logs_by_tags.d.ts.map +1 -0
  452. package/dest/logs/query_all_logs_by_tags.js +64 -0
  453. package/dest/logs/shared_secret_derivation.d.ts +11 -10
  454. package/dest/logs/shared_secret_derivation.d.ts.map +1 -1
  455. package/dest/logs/shared_secret_derivation.js +15 -9
  456. package/dest/logs/siloed_tag.d.ts +12 -9
  457. package/dest/logs/siloed_tag.d.ts.map +1 -1
  458. package/dest/logs/siloed_tag.js +18 -7
  459. package/dest/logs/tag.d.ts +5 -6
  460. package/dest/logs/tag.d.ts.map +1 -1
  461. package/dest/logs/tag.js +5 -1
  462. package/dest/logs/tagging_index_range.d.ts +22 -0
  463. package/dest/logs/tagging_index_range.d.ts.map +1 -0
  464. package/dest/logs/tagging_index_range.js +8 -0
  465. package/dest/messaging/append_l1_to_l2_messages.d.ts +9 -0
  466. package/dest/messaging/append_l1_to_l2_messages.d.ts.map +1 -0
  467. package/dest/messaging/append_l1_to_l2_messages.js +12 -0
  468. package/dest/messaging/index.d.ts +2 -1
  469. package/dest/messaging/index.d.ts.map +1 -1
  470. package/dest/messaging/index.js +1 -0
  471. package/dest/messaging/l1_to_l2_message.d.ts +3 -2
  472. package/dest/messaging/l1_to_l2_message.d.ts.map +1 -1
  473. package/dest/messaging/l1_to_l2_message.js +11 -13
  474. package/dest/messaging/l1_to_l2_message_source.d.ts +4 -2
  475. package/dest/messaging/l1_to_l2_message_source.d.ts.map +1 -1
  476. package/dest/messaging/l2_to_l1_membership.d.ts +72 -9
  477. package/dest/messaging/l2_to_l1_membership.d.ts.map +1 -1
  478. package/dest/messaging/l2_to_l1_membership.js +133 -30
  479. package/dest/messaging/l2_to_l1_message.d.ts +38 -112
  480. package/dest/messaging/l2_to_l1_message.d.ts.map +1 -1
  481. package/dest/messaging/l2_to_l1_message.js +21 -12
  482. package/dest/noir/index.d.ts +5 -3
  483. package/dest/noir/index.d.ts.map +1 -1
  484. package/dest/note/index.d.ts +1 -2
  485. package/dest/note/index.d.ts.map +1 -1
  486. package/dest/note/index.js +0 -1
  487. package/dest/note/note.d.ts +2 -2
  488. package/dest/note/note.d.ts.map +1 -1
  489. package/dest/note/note_dao.d.ts +1 -1
  490. package/dest/note/note_dao.d.ts.map +1 -1
  491. package/dest/note/note_dao.js +1 -4
  492. package/dest/p2p/attestation_utils.d.ts +11 -1
  493. package/dest/p2p/attestation_utils.d.ts.map +1 -1
  494. package/dest/p2p/attestation_utils.js +45 -0
  495. package/dest/p2p/block_proposal.d.ts +32 -15
  496. package/dest/p2p/block_proposal.d.ts.map +1 -1
  497. package/dest/p2p/block_proposal.js +58 -42
  498. package/dest/p2p/checkpoint_attestation.d.ts +16 -9
  499. package/dest/p2p/checkpoint_attestation.d.ts.map +1 -1
  500. package/dest/p2p/checkpoint_attestation.js +23 -24
  501. package/dest/p2p/checkpoint_proposal.d.ts +50 -24
  502. package/dest/p2p/checkpoint_proposal.d.ts.map +1 -1
  503. package/dest/p2p/checkpoint_proposal.js +77 -65
  504. package/dest/p2p/client_type.d.ts +2 -5
  505. package/dest/p2p/client_type.d.ts.map +1 -1
  506. package/dest/p2p/client_type.js +0 -7
  507. package/dest/p2p/consensus_payload.d.ts +32 -17
  508. package/dest/p2p/consensus_payload.d.ts.map +1 -1
  509. package/dest/p2p/consensus_payload.js +47 -21
  510. package/dest/p2p/constants.d.ts +3 -1
  511. package/dest/p2p/constants.d.ts.map +1 -1
  512. package/dest/p2p/constants.js +1 -0
  513. package/dest/p2p/gossipable.d.ts +4 -4
  514. package/dest/p2p/gossipable.d.ts.map +1 -1
  515. package/dest/p2p/index.d.ts +1 -2
  516. package/dest/p2p/index.d.ts.map +1 -1
  517. package/dest/p2p/index.js +0 -1
  518. package/dest/p2p/peer_error.d.ts +3 -1
  519. package/dest/p2p/peer_error.d.ts.map +1 -1
  520. package/dest/p2p/peer_error.js +5 -0
  521. package/dest/p2p/signature_utils.d.ts +28 -19
  522. package/dest/p2p/signature_utils.d.ts.map +1 -1
  523. package/dest/p2p/signature_utils.js +118 -21
  524. package/dest/p2p/signed_txs.d.ts +15 -13
  525. package/dest/p2p/signed_txs.d.ts.map +1 -1
  526. package/dest/p2p/signed_txs.js +26 -24
  527. package/dest/p2p/topic_type.d.ts +3 -4
  528. package/dest/p2p/topic_type.d.ts.map +1 -1
  529. package/dest/p2p/topic_type.js +7 -24
  530. package/dest/parity/parity_base_private_inputs.d.ts +8 -4
  531. package/dest/parity/parity_base_private_inputs.d.ts.map +1 -1
  532. package/dest/parity/parity_base_private_inputs.js +7 -5
  533. package/dest/parity/parity_public_inputs.d.ts +8 -4
  534. package/dest/parity/parity_public_inputs.d.ts.map +1 -1
  535. package/dest/parity/parity_public_inputs.js +6 -3
  536. package/dest/parity/parity_root_private_inputs.d.ts +2 -2
  537. package/dest/parity/parity_root_private_inputs.d.ts.map +1 -1
  538. package/dest/proofs/chonk_proof.d.ts +57 -7
  539. package/dest/proofs/chonk_proof.d.ts.map +1 -1
  540. package/dest/proofs/chonk_proof.js +112 -15
  541. package/dest/proofs/recursive_proof.d.ts +2 -2
  542. package/dest/proofs/recursive_proof.d.ts.map +1 -1
  543. package/dest/rollup/block_headers_hash.d.ts +1 -1
  544. package/dest/rollup/block_headers_hash.d.ts.map +1 -1
  545. package/dest/rollup/block_headers_hash.js +8 -2
  546. package/dest/rollup/block_merge_rollup_private_inputs.d.ts +2 -2
  547. package/dest/rollup/block_merge_rollup_private_inputs.d.ts.map +1 -1
  548. package/dest/rollup/block_rollup_public_inputs.d.ts +12 -2
  549. package/dest/rollup/block_rollup_public_inputs.d.ts.map +1 -1
  550. package/dest/rollup/block_rollup_public_inputs.js +12 -0
  551. package/dest/rollup/block_root_rollup_private_inputs.d.ts +6 -6
  552. package/dest/rollup/block_root_rollup_private_inputs.d.ts.map +1 -1
  553. package/dest/rollup/checkpoint_header.d.ts +2 -2
  554. package/dest/rollup/checkpoint_header.js +2 -2
  555. package/dest/rollup/checkpoint_merge_rollup_private_inputs.d.ts +2 -2
  556. package/dest/rollup/checkpoint_merge_rollup_private_inputs.d.ts.map +1 -1
  557. package/dest/rollup/checkpoint_rollup_public_inputs.d.ts +14 -7
  558. package/dest/rollup/checkpoint_rollup_public_inputs.d.ts.map +1 -1
  559. package/dest/rollup/checkpoint_rollup_public_inputs.js +11 -2
  560. package/dest/rollup/checkpoint_root_rollup_private_inputs.d.ts +6 -6
  561. package/dest/rollup/checkpoint_root_rollup_private_inputs.d.ts.map +1 -1
  562. package/dest/rollup/private_tx_base_rollup_private_inputs.d.ts +2 -2
  563. package/dest/rollup/private_tx_base_rollup_private_inputs.d.ts.map +1 -1
  564. package/dest/rollup/public_chonk_verifier_private_inputs.d.ts +2 -2
  565. package/dest/rollup/public_chonk_verifier_private_inputs.d.ts.map +1 -1
  566. package/dest/rollup/public_chonk_verifier_public_inputs.d.ts +2 -2
  567. package/dest/rollup/public_chonk_verifier_public_inputs.d.ts.map +1 -1
  568. package/dest/rollup/public_tx_base_rollup_private_inputs.d.ts +2 -2
  569. package/dest/rollup/public_tx_base_rollup_private_inputs.d.ts.map +1 -1
  570. package/dest/rollup/root_rollup_private_inputs.d.ts +2 -2
  571. package/dest/rollup/root_rollup_private_inputs.d.ts.map +1 -1
  572. package/dest/rollup/root_rollup_public_inputs.d.ts +7 -7
  573. package/dest/rollup/root_rollup_public_inputs.d.ts.map +1 -1
  574. package/dest/rollup/root_rollup_public_inputs.js +3 -3
  575. package/dest/rollup/tx_merge_rollup_private_inputs.d.ts +2 -2
  576. package/dest/rollup/tx_merge_rollup_private_inputs.d.ts.map +1 -1
  577. package/dest/rollup/tx_rollup_public_inputs.d.ts +2 -2
  578. package/dest/rollup/tx_rollup_public_inputs.d.ts.map +1 -1
  579. package/dest/schemas/schemas.d.ts +32 -78
  580. package/dest/schemas/schemas.d.ts.map +1 -1
  581. package/dest/schemas/schemas.js +2 -2
  582. package/dest/slashing/helpers.d.ts +2 -2
  583. package/dest/slashing/helpers.d.ts.map +1 -1
  584. package/dest/slashing/helpers.js +16 -7
  585. package/dest/slashing/index.d.ts +2 -3
  586. package/dest/slashing/index.d.ts.map +1 -1
  587. package/dest/slashing/index.js +1 -2
  588. package/dest/slashing/serialization.d.ts +2 -6
  589. package/dest/slashing/serialization.d.ts.map +1 -1
  590. package/dest/slashing/serialization.js +0 -60
  591. package/dest/slashing/types.d.ts +21 -111
  592. package/dest/slashing/types.d.ts.map +1 -1
  593. package/dest/slashing/types.js +28 -24
  594. package/dest/slashing/{tally.d.ts → votes.d.ts} +8 -2
  595. package/dest/slashing/votes.d.ts.map +1 -0
  596. package/dest/slashing/{tally.js → votes.js} +35 -3
  597. package/dest/snapshots/types.d.ts +15 -78
  598. package/dest/snapshots/types.d.ts.map +1 -1
  599. package/dest/stats/stats.d.ts +2 -2
  600. package/dest/stats/stats.d.ts.map +1 -1
  601. package/dest/tests/factories.d.ts +25 -30
  602. package/dest/tests/factories.d.ts.map +1 -1
  603. package/dest/tests/factories.js +94 -86
  604. package/dest/tests/mocks.d.ts +15 -7
  605. package/dest/tests/mocks.d.ts.map +1 -1
  606. package/dest/tests/mocks.js +68 -70
  607. package/dest/timetable/index.d.ts +84 -0
  608. package/dest/timetable/index.d.ts.map +1 -0
  609. package/dest/timetable/index.js +209 -0
  610. package/dest/trees/append_only_tree_snapshot.d.ts +9 -14
  611. package/dest/trees/append_only_tree_snapshot.d.ts.map +1 -1
  612. package/dest/trees/append_only_tree_snapshot.js +6 -3
  613. package/dest/trees/nullifier_leaf.d.ts +19 -42
  614. package/dest/trees/nullifier_leaf.d.ts.map +1 -1
  615. package/dest/trees/nullifier_leaf.js +3 -0
  616. package/dest/trees/nullifier_membership_witness.d.ts +16 -59
  617. package/dest/trees/nullifier_membership_witness.d.ts.map +1 -1
  618. package/dest/trees/nullifier_membership_witness.js +2 -14
  619. package/dest/trees/public_data_leaf.d.ts +22 -53
  620. package/dest/trees/public_data_leaf.d.ts.map +1 -1
  621. package/dest/trees/public_data_leaf.js +7 -6
  622. package/dest/trees/public_data_witness.d.ts +16 -58
  623. package/dest/trees/public_data_witness.d.ts.map +1 -1
  624. package/dest/tx/block_header.d.ts +7 -4
  625. package/dest/tx/block_header.d.ts.map +1 -1
  626. package/dest/tx/block_header.js +13 -6
  627. package/dest/tx/call_context.d.ts +4 -14
  628. package/dest/tx/call_context.d.ts.map +1 -1
  629. package/dest/tx/capsule.d.ts +7 -3
  630. package/dest/tx/capsule.d.ts.map +1 -1
  631. package/dest/tx/capsule.js +9 -3
  632. package/dest/tx/fee_provider.d.ts +10 -0
  633. package/dest/tx/fee_provider.d.ts.map +1 -0
  634. package/dest/tx/fee_provider.js +1 -0
  635. package/dest/tx/function_data.d.ts +4 -10
  636. package/dest/tx/function_data.d.ts.map +1 -1
  637. package/dest/tx/global_variable_builder.d.ts +3 -4
  638. package/dest/tx/global_variable_builder.d.ts.map +1 -1
  639. package/dest/tx/global_variables.d.ts +19 -52
  640. package/dest/tx/global_variables.d.ts.map +1 -1
  641. package/dest/tx/global_variables.js +8 -12
  642. package/dest/tx/hashed_values.d.ts +4 -3
  643. package/dest/tx/hashed_values.d.ts.map +1 -1
  644. package/dest/tx/hashed_values.js +6 -3
  645. package/dest/tx/in_tx.d.ts +5 -17
  646. package/dest/tx/in_tx.d.ts.map +1 -1
  647. package/dest/tx/index.d.ts +2 -1
  648. package/dest/tx/index.d.ts.map +1 -1
  649. package/dest/tx/index.js +1 -0
  650. package/dest/tx/indexed_tx_effect.d.ts +8 -19
  651. package/dest/tx/indexed_tx_effect.d.ts.map +1 -1
  652. package/dest/tx/indexed_tx_effect.js +9 -6
  653. package/dest/tx/partial_state_reference.d.ts +22 -65
  654. package/dest/tx/partial_state_reference.d.ts.map +1 -1
  655. package/dest/tx/partial_state_reference.js +6 -3
  656. package/dest/tx/private_execution_result.d.ts +11 -21
  657. package/dest/tx/private_execution_result.d.ts.map +1 -1
  658. package/dest/tx/private_execution_result.js +6 -6
  659. package/dest/tx/profiling.d.ts +70 -356
  660. package/dest/tx/profiling.d.ts.map +1 -1
  661. package/dest/tx/profiling.js +19 -9
  662. package/dest/tx/protocol_contracts.d.ts +5 -9
  663. package/dest/tx/protocol_contracts.d.ts.map +1 -1
  664. package/dest/tx/protocol_contracts.js +2 -2
  665. package/dest/tx/proven_tx.d.ts +30 -74
  666. package/dest/tx/proven_tx.d.ts.map +1 -1
  667. package/dest/tx/proven_tx.js +6 -0
  668. package/dest/tx/public_call_request_with_calldata.d.ts +4 -3
  669. package/dest/tx/public_call_request_with_calldata.d.ts.map +1 -1
  670. package/dest/tx/public_call_request_with_calldata.js +6 -3
  671. package/dest/tx/public_simulation_output.d.ts +4 -2
  672. package/dest/tx/public_simulation_output.d.ts.map +1 -1
  673. package/dest/tx/public_simulation_output.js +7 -3
  674. package/dest/tx/simulated_tx.d.ts +68 -1144
  675. package/dest/tx/simulated_tx.d.ts.map +1 -1
  676. package/dest/tx/simulated_tx.js +17 -12
  677. package/dest/tx/state_reference.d.ts +30 -117
  678. package/dest/tx/state_reference.d.ts.map +1 -1
  679. package/dest/tx/state_reference.js +6 -4
  680. package/dest/tx/tree_snapshots.d.ts +27 -84
  681. package/dest/tx/tree_snapshots.d.ts.map +1 -1
  682. package/dest/tx/tree_snapshots.js +6 -4
  683. package/dest/tx/tx.d.ts +19 -17
  684. package/dest/tx/tx.d.ts.map +1 -1
  685. package/dest/tx/tx.js +48 -29
  686. package/dest/tx/tx_constant_data.d.ts +4 -3
  687. package/dest/tx/tx_constant_data.d.ts.map +1 -1
  688. package/dest/tx/tx_constant_data.js +6 -3
  689. package/dest/tx/tx_context.d.ts +32 -131
  690. package/dest/tx/tx_context.d.ts.map +1 -1
  691. package/dest/tx/tx_context.js +6 -6
  692. package/dest/tx/tx_hash.d.ts +6 -4
  693. package/dest/tx/tx_hash.d.ts.map +1 -1
  694. package/dest/tx/tx_hash.js +13 -5
  695. package/dest/tx/tx_receipt.d.ts +151 -51
  696. package/dest/tx/tx_receipt.d.ts.map +1 -1
  697. package/dest/tx/tx_receipt.js +145 -51
  698. package/dest/tx/tx_request.js +2 -2
  699. package/dest/tx/validator/empty_validator.d.ts +2 -2
  700. package/dest/tx/validator/empty_validator.d.ts.map +1 -1
  701. package/dest/tx/validator/error_texts.d.ts +10 -2
  702. package/dest/tx/validator/error_texts.d.ts.map +1 -1
  703. package/dest/tx/validator/error_texts.js +11 -1
  704. package/dest/tx/validator/tx_validator.d.ts +6 -28
  705. package/dest/tx/validator/tx_validator.d.ts.map +1 -1
  706. package/dest/tx/validator/tx_validator.js +0 -4
  707. package/dest/types/shared.d.ts +4 -12
  708. package/dest/types/shared.d.ts.map +1 -1
  709. package/dest/types/shared.js +6 -12
  710. package/dest/update-checker/dev_version.d.ts +3 -0
  711. package/dest/update-checker/dev_version.d.ts.map +1 -0
  712. package/dest/update-checker/dev_version.js +1 -0
  713. package/dest/update-checker/index.d.ts +4 -2
  714. package/dest/update-checker/index.d.ts.map +1 -1
  715. package/dest/update-checker/index.js +3 -1
  716. package/dest/update-checker/package_version.d.ts +6 -0
  717. package/dest/update-checker/package_version.d.ts.map +1 -0
  718. package/dest/update-checker/package_version.js +13 -0
  719. package/dest/update-checker/version_checker.d.ts +25 -0
  720. package/dest/update-checker/version_checker.d.ts.map +1 -0
  721. package/dest/update-checker/version_checker.js +50 -0
  722. package/dest/validators/errors.d.ts +6 -1
  723. package/dest/validators/errors.d.ts.map +1 -1
  724. package/dest/validators/errors.js +7 -0
  725. package/dest/validators/schemas.d.ts +147 -614
  726. package/dest/validators/schemas.d.ts.map +1 -1
  727. package/dest/validators/schemas.js +9 -6
  728. package/dest/validators/types.d.ts +21 -4
  729. package/dest/validators/types.d.ts.map +1 -1
  730. package/dest/versioning/versioning.d.ts +4 -2
  731. package/dest/versioning/versioning.d.ts.map +1 -1
  732. package/dest/versioning/versioning.js +5 -2
  733. package/dest/vks/verification_key.d.ts +4 -139
  734. package/dest/vks/verification_key.d.ts.map +1 -1
  735. package/dest/vks/verification_key.js +5 -126
  736. package/dest/world-state/genesis_data.d.ts +13 -0
  737. package/dest/world-state/genesis_data.d.ts.map +1 -0
  738. package/dest/world-state/genesis_data.js +7 -0
  739. package/dest/world-state/index.d.ts +2 -1
  740. package/dest/world-state/index.d.ts.map +1 -1
  741. package/dest/world-state/index.js +1 -0
  742. package/dest/world-state/world_state_revision.d.ts +15 -26
  743. package/dest/world-state/world_state_revision.d.ts.map +1 -1
  744. package/dest/world-state/world_state_revision.js +7 -1
  745. package/package.json +27 -14
  746. package/src/abi/abi.ts +78 -21
  747. package/src/abi/authorization_selector.ts +2 -8
  748. package/src/abi/buffer.ts +25 -4
  749. package/src/abi/contract_artifact.ts +11 -6
  750. package/src/abi/decoder.ts +36 -82
  751. package/src/abi/encoder.ts +85 -6
  752. package/src/abi/event_metadata_definition.ts +2 -0
  753. package/src/abi/event_selector.ts +2 -8
  754. package/src/abi/function_call.ts +25 -3
  755. package/src/abi/function_selector.ts +4 -13
  756. package/src/abi/function_signature_decoder.ts +77 -0
  757. package/src/abi/index.ts +1 -0
  758. package/src/abi/note_selector.ts +3 -12
  759. package/src/abi/selector.ts +1 -1
  760. package/src/abi/utils.ts +31 -4
  761. package/src/auth_witness/auth_witness.ts +3 -3
  762. package/src/avm/avm.ts +5 -0
  763. package/src/avm/message_pack.ts +12 -3
  764. package/src/avm/revert_code.ts +20 -25
  765. package/src/aztec-address/index.ts +15 -12
  766. package/src/block/attestation_info.ts +11 -11
  767. package/src/block/block_data.ts +25 -0
  768. package/src/block/block_hash.ts +21 -14
  769. package/src/block/block_parameter.ts +72 -4
  770. package/src/block/in_block.ts +1 -1
  771. package/src/block/index.ts +1 -1
  772. package/src/block/l2_block.ts +13 -1
  773. package/src/block/l2_block_info.ts +8 -6
  774. package/src/block/l2_block_source.ts +214 -123
  775. package/src/block/l2_block_stream/interfaces.ts +6 -2
  776. package/src/block/l2_block_stream/l2_block_stream.ts +49 -17
  777. package/src/block/l2_block_stream/l2_tips_memory_store.ts +5 -0
  778. package/src/block/l2_block_stream/l2_tips_store_base.ts +53 -19
  779. package/src/block/proposal/attestations_and_signers.ts +32 -17
  780. package/src/block/test/l2_tips_store_test_suite.ts +10 -3
  781. package/src/checkpoint/checkpoint.ts +54 -17
  782. package/src/checkpoint/checkpoint_data.ts +91 -0
  783. package/src/checkpoint/checkpoint_reexecution_tracker.ts +167 -0
  784. package/src/checkpoint/digest.ts +28 -0
  785. package/src/checkpoint/index.ts +5 -0
  786. package/src/checkpoint/previous_checkpoint_out_hashes.ts +61 -0
  787. package/src/checkpoint/published_checkpoint.ts +3 -1
  788. package/src/checkpoint/validate.ts +230 -0
  789. package/src/config/chain-config.ts +13 -16
  790. package/src/config/index.ts +1 -0
  791. package/src/config/sequencer-config.ts +65 -0
  792. package/src/contract/complete_address.ts +7 -3
  793. package/src/contract/contract_address.ts +10 -10
  794. package/src/contract/contract_class.ts +3 -3
  795. package/src/contract/contract_class_id.ts +7 -6
  796. package/src/contract/contract_instance.ts +11 -2
  797. package/src/contract/index.ts +0 -2
  798. package/src/contract/interfaces/contract_class.ts +2 -82
  799. package/src/contract/interfaces/contract_instance.ts +6 -2
  800. package/src/contract/interfaces/node-info.ts +3 -0
  801. package/src/contract/private_function.ts +5 -3
  802. package/src/database-version/version_manager.ts +17 -0
  803. package/src/epoch-helpers/index.ts +30 -0
  804. package/src/file-store/factory.ts +13 -4
  805. package/src/file-store/http.ts +29 -10
  806. package/src/file-store/index.ts +1 -0
  807. package/src/file-store/local.ts +15 -5
  808. package/src/file-store/s3.ts +12 -3
  809. package/src/gas/README.md +154 -0
  810. package/src/gas/fee_math.ts +120 -0
  811. package/src/gas/gas.ts +8 -3
  812. package/src/gas/gas_fees.ts +29 -10
  813. package/src/gas/gas_settings.ts +73 -15
  814. package/src/gas/index.ts +1 -0
  815. package/src/ha-signing/config.ts +152 -0
  816. package/src/ha-signing/index.ts +29 -0
  817. package/src/ha-signing/local_config.ts +46 -0
  818. package/src/ha-signing/types.ts +126 -0
  819. package/src/hash/hash.ts +76 -11
  820. package/src/hash/map_slot.ts +2 -2
  821. package/src/interfaces/allowed_element.ts +29 -9
  822. package/src/interfaces/api_limit.ts +1 -1
  823. package/src/interfaces/archiver.ts +90 -88
  824. package/src/interfaces/aztec-node-admin.ts +57 -18
  825. package/src/interfaces/aztec-node-debug.ts +40 -0
  826. package/src/interfaces/aztec-node.ts +344 -266
  827. package/src/interfaces/block-builder.ts +63 -14
  828. package/src/interfaces/block_response.ts +92 -0
  829. package/src/interfaces/chain_tips.ts +24 -0
  830. package/src/interfaces/checkpoint_parameter.ts +20 -0
  831. package/src/interfaces/checkpoint_response.ts +84 -0
  832. package/src/interfaces/client.ts +7 -1
  833. package/src/interfaces/configs.ts +75 -8
  834. package/src/interfaces/l1_publish_info.ts +40 -0
  835. package/src/interfaces/l2_logs_source.ts +13 -39
  836. package/src/interfaces/merkle_tree_operations.ts +12 -21
  837. package/src/interfaces/p2p-bootstrap.ts +2 -2
  838. package/src/interfaces/p2p.ts +38 -29
  839. package/src/interfaces/private_kernel_prover.ts +88 -0
  840. package/src/interfaces/prover-agent.ts +1 -1
  841. package/src/interfaces/prover-broker.ts +22 -0
  842. package/src/interfaces/prover-client.ts +17 -5
  843. package/src/interfaces/prover-node.ts +7 -7
  844. package/src/interfaces/proving-job-source.ts +4 -4
  845. package/src/interfaces/proving-job.ts +3 -3
  846. package/src/interfaces/public_storage_override.ts +26 -0
  847. package/src/interfaces/server.ts +5 -0
  848. package/src/interfaces/slasher.ts +21 -10
  849. package/src/interfaces/tx_provider.ts +6 -0
  850. package/src/interfaces/validator.ts +87 -36
  851. package/src/interfaces/world_state.ts +5 -4
  852. package/src/kernel/hints/build_note_hash_read_request_hints.ts +14 -18
  853. package/src/kernel/hints/build_nullifier_read_request_hints.ts +15 -18
  854. package/src/kernel/hints/build_transient_data_hints.ts +17 -2
  855. package/src/kernel/hints/index.ts +2 -2
  856. package/src/kernel/hints/key_validation_request.ts +18 -16
  857. package/src/kernel/hints/{key_validation_request_and_generator.ts → key_validation_request_and_separator.ts} +12 -15
  858. package/src/kernel/hints/{scoped_key_validation_request_and_generator.ts → scoped_key_validation_request_and_separator.ts} +10 -10
  859. package/src/kernel/index.ts +4 -0
  860. package/src/kernel/log_hash.ts +29 -9
  861. package/src/kernel/private_circuit_public_inputs.ts +14 -14
  862. package/src/kernel/private_kernel_circuit_public_inputs.ts +2 -2
  863. package/src/kernel/private_kernel_init_2_circuit_private_inputs.ts +49 -0
  864. package/src/kernel/private_kernel_init_3_circuit_private_inputs.ts +52 -0
  865. package/src/kernel/private_kernel_inner_2_circuit_private_inputs.ts +29 -0
  866. package/src/kernel/private_kernel_inner_3_circuit_private_inputs.ts +31 -0
  867. package/src/kernel/private_kernel_tail_circuit_private_inputs.ts +2 -2
  868. package/src/kernel/private_kernel_tail_circuit_public_inputs.ts +42 -18
  869. package/src/kernel/private_to_avm_accumulated_data.ts +16 -5
  870. package/src/kernel/private_to_public_accumulated_data.ts +9 -3
  871. package/src/kernel/private_to_public_kernel_circuit_public_inputs.ts +14 -8
  872. package/src/kernel/private_to_rollup_accumulated_data.ts +8 -3
  873. package/src/kernel/private_to_rollup_kernel_circuit_public_inputs.ts +13 -13
  874. package/src/kernel/private_validation_requests.ts +8 -8
  875. package/src/kernel/public_call_request.ts +22 -7
  876. package/src/keys/derivation.ts +33 -21
  877. package/src/keys/key_types.ts +6 -2
  878. package/src/keys/public_key.ts +26 -2
  879. package/src/keys/public_keys.ts +125 -111
  880. package/src/keys/utils.ts +8 -4
  881. package/src/kv-store/config.ts +29 -0
  882. package/src/kv-store/index.ts +1 -0
  883. package/src/l1-contracts/index.ts +1 -1
  884. package/src/logs/app_tagging_secret.ts +137 -0
  885. package/src/logs/app_tagging_secret_kind.ts +21 -0
  886. package/src/logs/contract_class_log.ts +15 -5
  887. package/src/logs/debug_log_store.ts +54 -0
  888. package/src/logs/index.ts +8 -6
  889. package/src/logs/log_cursor.ts +110 -0
  890. package/src/logs/log_result.ts +104 -0
  891. package/src/logs/logs_query.ts +138 -0
  892. package/src/logs/message_context.ts +22 -8
  893. package/src/logs/pending_tagged_log.ts +1 -3
  894. package/src/logs/pre_tag.ts +3 -6
  895. package/src/logs/private_log.ts +9 -3
  896. package/src/logs/public_log.ts +4 -2
  897. package/src/logs/query_all_logs_by_tags.ts +98 -0
  898. package/src/logs/shared_secret_derivation.ts +21 -10
  899. package/src/logs/siloed_tag.ts +28 -14
  900. package/src/logs/tag.ts +9 -9
  901. package/src/logs/tagging_index_range.ts +18 -0
  902. package/src/messaging/append_l1_to_l2_messages.ts +21 -0
  903. package/src/messaging/index.ts +1 -0
  904. package/src/messaging/l1_to_l2_message.ts +12 -9
  905. package/src/messaging/l1_to_l2_message_source.ts +3 -1
  906. package/src/messaging/l2_to_l1_membership.ts +192 -38
  907. package/src/messaging/l2_to_l1_message.ts +29 -9
  908. package/src/noir/index.ts +4 -2
  909. package/src/note/index.ts +0 -1
  910. package/src/note/note_dao.ts +1 -4
  911. package/src/p2p/attestation_utils.ts +56 -0
  912. package/src/p2p/block_proposal.ts +112 -39
  913. package/src/p2p/checkpoint_attestation.ts +33 -32
  914. package/src/p2p/checkpoint_proposal.ts +159 -86
  915. package/src/p2p/client_type.ts +0 -6
  916. package/src/p2p/consensus_payload.ts +68 -24
  917. package/src/p2p/constants.ts +3 -0
  918. package/src/p2p/gossipable.ts +4 -4
  919. package/src/p2p/index.ts +0 -1
  920. package/src/p2p/peer_error.ts +7 -0
  921. package/src/p2p/signature_utils.ts +110 -25
  922. package/src/p2p/signed_txs.ts +46 -28
  923. package/src/p2p/topic_type.ts +8 -15
  924. package/src/parity/parity_base_private_inputs.ts +10 -4
  925. package/src/parity/parity_public_inputs.ts +9 -2
  926. package/src/proofs/chonk_proof.ts +132 -12
  927. package/src/rollup/block_headers_hash.ts +11 -2
  928. package/src/rollup/block_rollup_public_inputs.ts +13 -0
  929. package/src/rollup/checkpoint_header.ts +2 -2
  930. package/src/rollup/checkpoint_rollup_public_inputs.ts +15 -5
  931. package/src/rollup/root_rollup_public_inputs.ts +7 -7
  932. package/src/schemas/schemas.ts +6 -1
  933. package/src/slashing/helpers.ts +21 -9
  934. package/src/slashing/index.ts +1 -2
  935. package/src/slashing/serialization.ts +1 -81
  936. package/src/slashing/types.ts +38 -49
  937. package/src/slashing/{tally.ts → votes.ts} +41 -2
  938. package/src/stats/stats.ts +4 -0
  939. package/src/tests/factories.ts +120 -119
  940. package/src/tests/mocks.ts +106 -84
  941. package/src/timetable/index.ts +304 -0
  942. package/src/trees/append_only_tree_snapshot.ts +8 -3
  943. package/src/trees/nullifier_leaf.ts +4 -0
  944. package/src/trees/nullifier_membership_witness.ts +2 -12
  945. package/src/trees/public_data_leaf.ts +11 -5
  946. package/src/tx/block_header.ts +18 -7
  947. package/src/tx/capsule.ts +10 -2
  948. package/src/tx/fee_provider.ts +10 -0
  949. package/src/tx/global_variable_builder.ts +2 -3
  950. package/src/tx/global_variables.ts +13 -21
  951. package/src/tx/hashed_values.ts +8 -3
  952. package/src/tx/index.ts +1 -0
  953. package/src/tx/indexed_tx_effect.ts +18 -6
  954. package/src/tx/partial_state_reference.ts +8 -3
  955. package/src/tx/private_execution_result.ts +5 -5
  956. package/src/tx/profiling.ts +18 -9
  957. package/src/tx/protocol_contracts.ts +2 -2
  958. package/src/tx/proven_tx.ts +6 -0
  959. package/src/tx/public_call_request_with_calldata.ts +8 -3
  960. package/src/tx/public_simulation_output.ts +4 -0
  961. package/src/tx/simulated_tx.ts +30 -22
  962. package/src/tx/state_reference.ts +9 -4
  963. package/src/tx/tree_snapshots.ts +9 -4
  964. package/src/tx/tx.ts +63 -35
  965. package/src/tx/tx_constant_data.ts +8 -3
  966. package/src/tx/tx_context.ts +8 -3
  967. package/src/tx/tx_hash.ts +20 -5
  968. package/src/tx/tx_receipt.ts +269 -74
  969. package/src/tx/tx_request.ts +2 -2
  970. package/src/tx/validator/empty_validator.ts +1 -1
  971. package/src/tx/validator/error_texts.ts +13 -1
  972. package/src/tx/validator/tx_validator.ts +2 -6
  973. package/src/types/shared.ts +8 -13
  974. package/src/update-checker/dev_version.ts +2 -0
  975. package/src/update-checker/index.ts +3 -1
  976. package/src/update-checker/package_version.ts +17 -0
  977. package/src/update-checker/version_checker.ts +65 -0
  978. package/src/validators/errors.ts +9 -0
  979. package/src/validators/schemas.ts +13 -4
  980. package/src/validators/types.ts +25 -5
  981. package/src/versioning/versioning.ts +5 -2
  982. package/src/vks/verification_key.ts +5 -184
  983. package/src/world-state/genesis_data.ts +27 -0
  984. package/src/world-state/index.ts +1 -0
  985. package/src/world-state/world_state_revision.ts +9 -1
  986. package/dest/abi/mocked_keys.d.ts +0 -2
  987. package/dest/abi/mocked_keys.d.ts.map +0 -1
  988. package/dest/abi/mocked_keys.js +0 -1
  989. package/dest/block/checkpointed_l2_block.d.ts +0 -150
  990. package/dest/block/checkpointed_l2_block.d.ts.map +0 -1
  991. package/dest/block/checkpointed_l2_block.js +0 -46
  992. package/dest/contract/private_function_membership_proof.d.ts +0 -32
  993. package/dest/contract/private_function_membership_proof.d.ts.map +0 -1
  994. package/dest/contract/private_function_membership_proof.js +0 -124
  995. package/dest/contract/utility_function_membership_proof.d.ts +0 -27
  996. package/dest/contract/utility_function_membership_proof.d.ts.map +0 -1
  997. package/dest/contract/utility_function_membership_proof.js +0 -87
  998. package/dest/interfaces/get_logs_response.d.ts +0 -90
  999. package/dest/interfaces/get_logs_response.d.ts.map +0 -1
  1000. package/dest/interfaces/get_logs_response.js +0 -12
  1001. package/dest/kernel/hints/key_validation_request_and_generator.d.ts +0 -30
  1002. package/dest/kernel/hints/key_validation_request_and_generator.d.ts.map +0 -1
  1003. package/dest/l1-contracts/slash_factory.d.ts +0 -45
  1004. package/dest/l1-contracts/slash_factory.d.ts.map +0 -1
  1005. package/dest/l1-contracts/slash_factory.js +0 -158
  1006. package/dest/logs/directional_app_tagging_secret.d.ts +0 -40
  1007. package/dest/logs/directional_app_tagging_secret.d.ts.map +0 -1
  1008. package/dest/logs/directional_app_tagging_secret.js +0 -64
  1009. package/dest/logs/extended_contract_class_log.d.ts +0 -51
  1010. package/dest/logs/extended_contract_class_log.d.ts.map +0 -1
  1011. package/dest/logs/extended_contract_class_log.js +0 -67
  1012. package/dest/logs/extended_public_log.d.ts +0 -100
  1013. package/dest/logs/extended_public_log.d.ts.map +0 -1
  1014. package/dest/logs/extended_public_log.js +0 -73
  1015. package/dest/logs/log_filter.d.ts +0 -22
  1016. package/dest/logs/log_filter.d.ts.map +0 -1
  1017. package/dest/logs/log_filter.js +0 -11
  1018. package/dest/logs/log_id.d.ts +0 -82
  1019. package/dest/logs/log_id.d.ts.map +0 -1
  1020. package/dest/logs/log_id.js +0 -92
  1021. package/dest/logs/tx_scoped_l2_log.d.ts +0 -49
  1022. package/dest/logs/tx_scoped_l2_log.d.ts.map +0 -1
  1023. package/dest/logs/tx_scoped_l2_log.js +0 -70
  1024. package/dest/note/notes_filter.d.ts +0 -27
  1025. package/dest/note/notes_filter.d.ts.map +0 -1
  1026. package/dest/note/notes_filter.js +0 -11
  1027. package/dest/slashing/empire.d.ts +0 -31
  1028. package/dest/slashing/empire.d.ts.map +0 -1
  1029. package/dest/slashing/empire.js +0 -85
  1030. package/dest/slashing/tally.d.ts.map +0 -1
  1031. package/dest/update-checker/update-checker.d.ts +0 -49
  1032. package/dest/update-checker/update-checker.d.ts.map +0 -1
  1033. package/dest/update-checker/update-checker.js +0 -130
  1034. package/src/abi/mocked_keys.ts +0 -2
  1035. package/src/block/checkpointed_l2_block.ts +0 -70
  1036. package/src/contract/private_function_membership_proof.ts +0 -167
  1037. package/src/contract/utility_function_membership_proof.ts +0 -118
  1038. package/src/interfaces/get_logs_response.ts +0 -35
  1039. package/src/l1-contracts/slash_factory.ts +0 -180
  1040. package/src/logs/directional_app_tagging_secret.ts +0 -79
  1041. package/src/logs/extended_contract_class_log.ts +0 -87
  1042. package/src/logs/extended_public_log.ts +0 -94
  1043. package/src/logs/log_filter.ts +0 -31
  1044. package/src/logs/log_id.ts +0 -122
  1045. package/src/logs/tx_scoped_l2_log.ts +0 -98
  1046. package/src/note/notes_filter.ts +0 -38
  1047. package/src/slashing/empire.ts +0 -102
  1048. package/src/update-checker/update-checker.ts +0 -166
@@ -1,11 +1,13 @@
1
1
  import { ARCHIVE_HEIGHT, L1_TO_L2_MSG_TREE_HEIGHT, NOTE_HASH_TREE_HEIGHT } from '@aztec/constants';
2
2
  import { type L1ContractAddresses, L1ContractAddressesSchema } from '@aztec/ethereum/l1-contract-addresses';
3
3
  import {
4
- BlockNumber,
4
+ type BlockNumber,
5
5
  BlockNumberPositiveSchema,
6
6
  BlockNumberSchema,
7
+ type CheckpointNumber,
7
8
  CheckpointNumberPositiveSchema,
8
- EpochNumber,
9
+ CheckpointNumberSchema,
10
+ type EpochNumber,
9
11
  EpochNumberSchema,
10
12
  type SlotNumber,
11
13
  } from '@aztec/foundation/branded-types';
@@ -17,13 +19,12 @@ import { MembershipWitness, SiblingPath } from '@aztec/foundation/trees';
17
19
  import { z } from 'zod';
18
20
 
19
21
  import type { AztecAddress } from '../aztec-address/index.js';
22
+ import { type BlockData, BlockDataSchema } from '../block/block_data.js';
20
23
  import { BlockHash } from '../block/block_hash.js';
21
24
  import { type BlockParameter, BlockParameterSchema } from '../block/block_parameter.js';
22
- import { CheckpointedL2Block } from '../block/checkpointed_l2_block.js';
23
25
  import { type DataInBlock, dataInBlockSchemaFor } from '../block/in_block.js';
24
- import { L2Block } from '../block/l2_block.js';
25
- import { type L2BlockSource, type L2Tips, L2TipsSchema } from '../block/l2_block_source.js';
26
- import { PublishedCheckpoint } from '../checkpoint/published_checkpoint.js';
26
+ import { type CheckpointsQuery, CheckpointsQuerySchema } from '../block/l2_block_source.js';
27
+ import { type CheckpointData, CheckpointDataSchema } from '../checkpoint/checkpoint_data.js';
27
28
  import {
28
29
  type ContractClassPublic,
29
30
  ContractClassPublicSchema,
@@ -34,20 +35,30 @@ import {
34
35
  type ProtocolContractAddresses,
35
36
  ProtocolContractAddressesSchema,
36
37
  } from '../contract/index.js';
38
+ import { ManaUsageEstimate } from '../gas/fee_math.js';
37
39
  import { GasFees } from '../gas/gas_fees.js';
38
- import { SiloedTag, Tag, TxScopedL2Log } from '../logs/index.js';
39
- import { type LogFilter, LogFilterSchema } from '../logs/log_filter.js';
40
+ import { type LogResult, LogResultSchema } from '../logs/log_result.js';
41
+ import {
42
+ type PrivateLogsQuery,
43
+ PrivateLogsQuerySchema,
44
+ type PublicLogsQuery,
45
+ PublicLogsQuerySchema,
46
+ } from '../logs/logs_query.js';
47
+ import { type L2ToL1MembershipWitness, L2ToL1MembershipWitnessSchema } from '../messaging/l2_to_l1_membership.js';
40
48
  import { type ApiSchemaFor, optional, schemas } from '../schemas/schemas.js';
41
49
  import { MerkleTreeId } from '../trees/merkle_tree_id.js';
42
50
  import { NullifierMembershipWitness } from '../trees/nullifier_membership_witness.js';
43
51
  import { PublicDataWitness } from '../trees/public_data_witness.js';
44
52
  import {
45
- BlockHeader,
53
+ type GetTxReceiptOptions,
54
+ GetTxReceiptOptionsSchema,
46
55
  type IndexedTxEffect,
47
56
  PublicSimulationOutput,
57
+ SimulationOverrides,
48
58
  Tx,
49
59
  TxHash,
50
- TxReceipt,
60
+ type TxReceipt,
61
+ TxReceiptSchema,
51
62
  type TxValidationResult,
52
63
  TxValidationResultSchema,
53
64
  indexedTxSchema,
@@ -58,27 +69,28 @@ import { type ComponentsVersions, getVersioningResponseHandler } from '../versio
58
69
  import { type AllowedElement, AllowedElementSchema } from './allowed_element.js';
59
70
  import { MAX_RPC_BLOCKS_LEN, MAX_RPC_CHECKPOINTS_LEN, MAX_RPC_LEN, MAX_RPC_TXS_LEN } from './api_limit.js';
60
71
  import {
61
- type GetContractClassLogsResponse,
62
- GetContractClassLogsResponseSchema,
63
- type GetPublicLogsResponse,
64
- GetPublicLogsResponseSchema,
65
- } from './get_logs_response.js';
72
+ type BlockIncludeOptions,
73
+ BlockIncludeOptionsSchema,
74
+ type BlockResponse,
75
+ BlockResponseSchema,
76
+ type BlocksIncludeOptions,
77
+ BlocksIncludeOptionsSchema,
78
+ } from './block_response.js';
79
+ import { type ChainTip, ChainTipSchema, type ChainTips, ChainTipsSchema } from './chain_tips.js';
80
+ import { type CheckpointParameter, CheckpointParameterSchema } from './checkpoint_parameter.js';
81
+ import {
82
+ type CheckpointIncludeOptions,
83
+ CheckpointIncludeOptionsSchema,
84
+ type CheckpointResponse,
85
+ CheckpointResponseSchema,
86
+ } from './checkpoint_response.js';
66
87
  import { type WorldStateSyncStatus, WorldStateSyncStatusSchema } from './world_state.js';
67
88
 
68
89
  /**
69
90
  * The aztec node.
70
91
  * We will probably implement the additional interfaces by means other than Aztec Node as it's currently a privacy leak
71
92
  */
72
- export interface AztecNode
73
- extends Pick<
74
- L2BlockSource,
75
- 'getBlocks' | 'getCheckpoints' | 'getBlockHeader' | 'getL2Tips' | 'getCheckpointedBlocks'
76
- > {
77
- /**
78
- * Returns the tips of the L2 chain.
79
- */
80
- getL2Tips(): Promise<L2Tips>;
81
-
93
+ export interface AztecNode {
82
94
  /**
83
95
  * Returns the sync status of the node's world state
84
96
  */
@@ -87,94 +99,100 @@ export interface AztecNode
87
99
  /**
88
100
  * Find the indexes of the given leaves in the given tree along with a block metadata pointing to the block in which
89
101
  * the leaves were inserted.
90
- * @param block - The block parameter (block number, block hash, or 'latest') at which to get the data.
102
+ * @param referenceBlock - The block parameter (block number, block hash, or 'latest') at which to get the data.
91
103
  * @param treeId - The tree to search in.
92
104
  * @param leafValues - The values to search for.
93
105
  * @returns The indices of leaves and the block metadata of a block in which the leaves were inserted.
94
106
  */
95
107
  findLeavesIndexes(
96
- block: BlockParameter,
108
+ referenceBlock: BlockParameter,
97
109
  treeId: MerkleTreeId,
98
110
  leafValues: Fr[],
99
111
  ): Promise<(DataInBlock<bigint> | undefined)[]>;
100
112
 
101
113
  /**
102
114
  * Returns a nullifier membership witness for a given nullifier at a given block.
103
- * @param block - The block parameter (block number, block hash, or 'latest') at which to get the data.
115
+ * @param referenceBlock - The block parameter (block number, block hash, or 'latest') at which to get the data.
104
116
  * @param nullifier - Nullifier we try to find witness for.
105
117
  * @returns The nullifier membership witness (if found).
106
118
  */
107
- getNullifierMembershipWitness(block: BlockParameter, nullifier: Fr): Promise<NullifierMembershipWitness | undefined>;
119
+ getNullifierMembershipWitness(
120
+ referenceBlock: BlockParameter,
121
+ nullifier: Fr,
122
+ ): Promise<NullifierMembershipWitness | undefined>;
108
123
 
109
124
  /**
110
125
  * Returns a low nullifier membership witness for a given nullifier at a given block.
111
- * @param block - The block parameter (block number, block hash, or 'latest') at which to get the data.
126
+ * @param referenceBlock - The block parameter (block number, block hash, or 'latest') at which to get the data.
112
127
  * @param nullifier - Nullifier we try to find the low nullifier witness for.
113
128
  * @returns The low nullifier membership witness (if found).
129
+ * @throws If the nullifier already exists in the tree, since non-inclusion cannot be proven.
114
130
  * @remarks Low nullifier witness can be used to perform a nullifier non-inclusion proof by leveraging the "linked
115
131
  * list structure" of leaves and proving that a lower nullifier is pointing to a bigger next value than the nullifier
116
132
  * we are trying to prove non-inclusion for.
117
133
  */
118
134
  getLowNullifierMembershipWitness(
119
- block: BlockParameter,
135
+ referenceBlock: BlockParameter,
120
136
  nullifier: Fr,
121
137
  ): Promise<NullifierMembershipWitness | undefined>;
122
138
 
123
139
  /**
124
140
  * Returns a public data tree witness for a given leaf slot at a given block.
125
- * @param block - The block parameter (block number, block hash, or 'latest') at which to get the data.
141
+ * @param referenceBlock - The block parameter (block number, block hash, or 'latest') at which to get the data.
126
142
  * @param leafSlot - The leaf slot we try to find the witness for.
127
143
  * @returns The public data witness (if found).
128
144
  * @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
129
145
  * "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
130
146
  * is contained in the leaf preimage.
131
147
  */
132
- getPublicDataWitness(block: BlockParameter, leafSlot: Fr): Promise<PublicDataWitness | undefined>;
148
+ getPublicDataWitness(referenceBlock: BlockParameter, leafSlot: Fr): Promise<PublicDataWitness | undefined>;
133
149
 
134
150
  /**
135
- * Returns a membership witness for a given archive leaf at a given block.
136
- * @param block - The block parameter (block number, block hash, or 'latest') at which to get the data.
137
- * @param archive - The archive leaf we try to find the witness for.
151
+ * Returns a membership witness for a given block hash in the archive tree.
152
+ *
153
+ * Block hashes are the leaves of the archive tree. Each time a new block is added to the chain,
154
+ * its block hash is appended as a new leaf to the archive tree. This method finds the membership
155
+ * witness (leaf index and sibling path) for a given block hash, which can be used to prove that
156
+ * a specific block exists in the chain's history.
157
+ *
158
+ * @param referenceBlock - The block parameter (block number, block hash, or 'latest') at which to get the data
159
+ * (which contains the root of the archive tree in which we are searching for the block hash).
160
+ * @param blockHash - The block hash to find in the archive tree.
138
161
  */
139
- getArchiveMembershipWitness(
140
- block: BlockParameter,
141
- archive: Fr,
162
+ getBlockHashMembershipWitness(
163
+ referenceBlock: BlockParameter,
164
+ blockHash: BlockHash,
142
165
  ): Promise<MembershipWitness<typeof ARCHIVE_HEIGHT> | undefined>;
143
166
 
144
167
  /**
145
168
  * Returns a membership witness for a given note hash at a given block.
146
- * @param block - The block parameter (block number, block hash, or 'latest') at which to get the data.
169
+ * @param referenceBlock - The block parameter (block number, block hash, or 'latest') at which to get the data.
147
170
  * @param noteHash - The note hash we try to find the witness for.
148
171
  */
149
172
  getNoteHashMembershipWitness(
150
- block: BlockParameter,
173
+ referenceBlock: BlockParameter,
151
174
  noteHash: Fr,
152
175
  ): Promise<MembershipWitness<typeof NOTE_HASH_TREE_HEIGHT> | undefined>;
153
176
 
154
177
  /**
155
178
  * Returns the index and a sibling path for a leaf in the committed l1 to l2 data tree.
156
- * @param block - The block parameter (block number, block hash, or 'latest') at which to get the data.
179
+ * @param referenceBlock - The block parameter (block number, block hash, or 'latest') at which to get the data.
157
180
  * @param l1ToL2Message - The l1ToL2Message to get the index / sibling path for.
158
181
  * @returns A tuple of the index and the sibling path of the L1ToL2Message (undefined if not found).
159
182
  */
160
183
  getL1ToL2MessageMembershipWitness(
161
- block: BlockParameter,
184
+ referenceBlock: BlockParameter,
162
185
  l1ToL2Message: Fr,
163
186
  ): Promise<[bigint, SiblingPath<typeof L1_TO_L2_MSG_TREE_HEIGHT>] | undefined>;
164
187
 
165
- /** Returns the L2 block number in which this L1 to L2 message becomes available, or undefined if not found. */
166
- getL1ToL2MessageBlock(l1ToL2Message: Fr): Promise<BlockNumber | undefined>;
167
-
168
- /**
169
- * Returns whether an L1 to L2 message is synced by archiver.
170
- * @param l1ToL2Message - The L1 to L2 message to check.
171
- * @returns Whether the message is synced.
172
- * @deprecated Use `getL1ToL2MessageBlock` instead. This method may return true even if the message is not ready to use.
173
- */
174
- isL1ToL2MessageSynced(l1ToL2Message: Fr): Promise<boolean>;
188
+ /** Returns the L2 checkpoint number in which this L1 to L2 message becomes available, or undefined if not found. */
189
+ getL1ToL2MessageCheckpoint(l1ToL2Message: Fr): Promise<CheckpointNumber | undefined>;
175
190
 
176
191
  /**
177
192
  * Returns all the L2 to L1 messages in an epoch.
193
+ *
194
+ * @deprecated Use {@link getL2ToL1MembershipWitness} to get an L2-to-L1 message witness directly.
195
+ *
178
196
  * @param epoch - The epoch at which to get the data.
179
197
  * @returns A nested array of the L2 to L1 messages in each tx of each block in each checkpoint in the epoch (empty
180
198
  * array if the epoch is not found).
@@ -182,43 +200,99 @@ export interface AztecNode
182
200
  getL2ToL1Messages(epoch: EpochNumber): Promise<Fr[][][][]>;
183
201
 
184
202
  /**
185
- * Get a block specified by its block number or 'latest'.
186
- * @param number - The block number or 'latest'.
187
- * @returns The requested block.
203
+ * Returns the L2-to-L1 membership witness for `message` emitted by tx `txHash`. The node selects
204
+ * the smallest partial-proof root on the Outbox that covers the tx's checkpoint and builds the
205
+ * witness against it.
206
+ *
207
+ * The node reads the Outbox roots lazily, pinned to its synced L1 block, so the witness reflects
208
+ * the node's synced view. Returns `undefined` if the tx isn't yet in a block/epoch or no covering
209
+ * root has landed on L1 as of the synced block.
210
+ *
211
+ * Caveat: cached roots that are sealed and L1-finalized are not re-validated. A reorg deeper than
212
+ * L1 finality could leave the node serving a witness against a no-longer-canonical root.
213
+ *
214
+ * @param txHash - The tx whose L2-to-L1 message we want a witness for.
215
+ * @param message - The message hash to prove inclusion of.
216
+ * @param messageIndexInTx - Optional index of the message within the tx's L2-to-L1 messages; pass
217
+ * this when the same message hash appears multiple times in the tx.
218
+ */
219
+ getL2ToL1MembershipWitness(
220
+ txHash: TxHash,
221
+ message: Fr,
222
+ messageIndexInTx?: number,
223
+ ): Promise<L2ToL1MembershipWitness | undefined>;
224
+
225
+ /**
226
+ * Returns the block number at a given chain tip, or the latest proposed block number when
227
+ * `tip` is omitted.
228
+ */
229
+ getBlockNumber(tip?: ChainTip): Promise<BlockNumber>;
230
+
231
+ /**
232
+ * Returns the checkpoint number at a given chain tip, or the latest checkpoint number when
233
+ * `tip` is omitted.
234
+ *
235
+ * @remarks **Semantic foot-gun**: block-side `'proposed'` means "latest proposed block" (chain
236
+ * head), but checkpoint-side `'proposed'` means "latest confirmed checkpoint" — pre-L1-confirm
237
+ * checkpoints are not exposed over RPC. `'checkpointed'` on the checkpoint side is equivalent.
188
238
  */
189
- getBlock(number: BlockParameter): Promise<L2Block | undefined>;
239
+ getCheckpointNumber(tip?: ChainTip): Promise<CheckpointNumber>;
240
+
241
+ /** Returns the tips of the L2 chain. */
242
+ getChainTips(): Promise<ChainTips>;
190
243
 
191
244
  /**
192
- * Get a block specified by its hash.
193
- * @param blockHash - The block hash being requested.
194
- * @returns The requested block.
245
+ * Gets lightweight checkpoint metadata for a contiguous range or for an entire epoch.
246
+ * @param query - Either `{ from, limit }` or `{ epoch }`.
195
247
  */
196
- getBlockByHash(blockHash: BlockHash): Promise<L2Block | undefined>;
248
+ getCheckpointsData(query: CheckpointsQuery): Promise<CheckpointData[]>;
197
249
 
198
250
  /**
199
- * Get a block specified by its archive root.
200
- * @param archive - The archive root being requested.
201
- * @returns The requested block.
251
+ * Unified block fetch. Returns the block identified by `param`, with optional fields controlled
252
+ * by `options`.
253
+ * @param param - A block number, block hash, archive root, chain-tip name, or object variant.
254
+ * @param options - Narrowing options: `includeTransactions`, `includeL1PublishInfo`, `includeAttestations`.
202
255
  */
203
- getBlockByArchive(archive: Fr): Promise<L2Block | undefined>;
256
+ getBlock<Opts extends BlockIncludeOptions = {}>(
257
+ param: BlockParameter,
258
+ options?: Opts,
259
+ ): Promise<BlockResponse<Opts> | undefined>;
204
260
 
205
261
  /**
206
- * Method to fetch the latest block number synchronized by the node.
207
- * @returns The block number.
262
+ * Lightweight block-metadata fetch. Returns the block identified by `param` without transaction
263
+ * bodies or other optional context. Cheaper than `getBlock` for header-only access.
264
+ * @param param - A block number, block hash, archive root, chain-tip name, or object variant.
208
265
  */
209
- getBlockNumber(): Promise<BlockNumber>;
266
+ getBlockData(param: BlockParameter): Promise<BlockData | undefined>;
210
267
 
211
268
  /**
212
- * Fetches the latest proven block number.
213
- * @returns The block number.
269
+ * Returns up to `limit` blocks starting from `from`, projected to the {@link BlockResponse}
270
+ * shape determined by `options`.
214
271
  */
215
- getProvenBlockNumber(): Promise<BlockNumber>;
272
+ getBlocks<Opts extends BlocksIncludeOptions = {}>(
273
+ from: BlockNumber,
274
+ limit: number,
275
+ options?: Opts,
276
+ ): Promise<BlockResponse<Opts>[]>;
216
277
 
217
278
  /**
218
- * Fetches the latest checkpointed block number.
219
- * @returns The block number.
279
+ * Unified checkpoint fetch. Returns the checkpoint identified by `param`, with optional fields
280
+ * controlled by `options`.
220
281
  */
221
- getCheckpointedBlockNumber(): Promise<BlockNumber>;
282
+ getCheckpoint<Opts extends CheckpointIncludeOptions = {}>(
283
+ param: CheckpointParameter,
284
+ options?: Opts,
285
+ ): Promise<CheckpointResponse<Opts> | undefined>;
286
+
287
+ /**
288
+ * Returns up to `limit` checkpoints starting from `from`, projected to the
289
+ * {@link CheckpointResponse} shape determined by `options`.
290
+ */
291
+ getCheckpoints<Opts extends CheckpointIncludeOptions = {}>(
292
+ from: CheckpointNumber,
293
+ limit: number,
294
+ options?: Opts,
295
+ ): Promise<CheckpointResponse<Opts>[]>;
222
296
 
223
297
  /**
224
298
  * Method to determine if the node is ready to accept transactions.
@@ -233,20 +307,21 @@ export interface AztecNode
233
307
  */
234
308
  getNodeInfo(): Promise<NodeInfo>;
235
309
 
236
- /**
237
- * Method to request blocks. Will attempt to return all requested blocks but will return only those available.
238
- * @param from - The start of the range of blocks to return.
239
- * @param limit - The maximum number of blocks to return.
240
- * @returns The blocks requested.
241
- */
242
- getBlocks(from: BlockNumber, limit: number): Promise<L2Block[]>;
243
-
244
310
  /**
245
311
  * Method to fetch the current min fees.
246
312
  * @returns The current min fees.
247
313
  */
248
314
  getCurrentMinFees(): Promise<GasFees>;
249
315
 
316
+ /**
317
+ * Returns predicted min fees for the current slot and next N slots.
318
+ * Each entry accounts for the L1 gas oracle transition and congestion growth based on the
319
+ * given mana usage estimate. Defaults to target usage (steady state).
320
+ * @param manaUsage - Expected mana usage per checkpoint (none, target, or limit).
321
+ * @returns An array of GasFees, one per slot in the prediction window.
322
+ */
323
+ getPredictedMinFees(manaUsage?: ManaUsageEstimate): Promise<GasFees[]>;
324
+
250
325
  /**
251
326
  * Method to fetch the current max priority fee of txs in the mempool.
252
327
  * @returns The current max priority fees.
@@ -289,52 +364,25 @@ export interface AztecNode
289
364
  registerContractFunctionSignatures(functionSignatures: string[]): Promise<void>;
290
365
 
291
366
  /**
292
- * Gets public logs based on the provided filter.
293
- * @param filter - The filter to apply to the logs.
294
- * @returns The requested logs.
295
- */
296
- getPublicLogs(filter: LogFilter): Promise<GetPublicLogsResponse>;
297
-
298
- /**
299
- * Gets contract class logs based on the provided filter.
300
- * @param filter - The filter to apply to the logs.
301
- * @returns The requested logs.
302
- */
303
- getContractClassLogs(filter: LogFilter): Promise<GetContractClassLogsResponse>;
304
-
305
- /**
306
- * Gets private logs that match any of the `tags`. For each tag, an array of matching logs is returned. An empty
307
- * array implies no logs match that tag.
308
- * @param tags - The tags to search for.
309
- * @param page - The page number (0-indexed) for pagination.
310
- * @param referenceBlock - Optional block hash used to ensure the block still exists before logs are retrieved.
311
- * This block is expected to represent the latest block to which the client has synced (called anchor block in PXE).
312
- * If specified and the block is not found, an error is thrown. This helps detect reorgs, which could result in
313
- * undefined behavior in the client's code.
314
- * @returns An array of log arrays, one per tag. Returns at most 10 logs per tag per page. If 10 logs are returned
315
- * for a tag, the caller should fetch the next page to check for more logs.
367
+ * Gets private logs matching the given tags. Returns one inner array per element of `query.tags`, in
368
+ * input order. An empty inner array means no logs matched that tag. Set `query.includeEffects` to also
369
+ * receive the tx's note hashes and nullifiers.
370
+ *
371
+ * The return type is the widest {@link LogResult} shape — `noteHashes`/`nullifiers` are typed as
372
+ * optional even when `includeEffects: true` is set. JSON-RPC validation can't preserve a stricter
373
+ * narrowing across the wire. Callers that want a narrowed type at the call site should use the typed
374
+ * helpers in `pxe/src/tagging/get_all_logs_by_tags.ts`.
316
375
  */
317
- getPrivateLogsByTags(tags: SiloedTag[], page?: number, referenceBlock?: BlockHash): Promise<TxScopedL2Log[][]>;
376
+ getPrivateLogsByTags(query: PrivateLogsQuery): Promise<LogResult[][]>;
318
377
 
319
378
  /**
320
- * Gets public logs that match any of the `tags` from the specified contract. For each tag, an array of matching
321
- * logs is returned. An empty array implies no logs match that tag.
322
- * @param contractAddress - The contract address to search logs for.
323
- * @param tags - The tags to search for.
324
- * @param page - The page number (0-indexed) for pagination.
325
- * @param referenceBlock - Optional block hash used to ensure the block still exists before logs are retrieved.
326
- * This block is expected to represent the latest block to which the client has synced (called anchor block in PXE).
327
- * If specified and the block is not found, an error is thrown. This helps detect reorgs, which could result in
328
- * undefined behavior in the client's code.
329
- * @returns An array of log arrays, one per tag. Returns at most 10 logs per tag per page. If 10 logs are returned
330
- * for a tag, the caller should fetch the next page to check for more logs.
379
+ * Gets public logs matching the given tags for the given contract. Returns one inner array per element
380
+ * of `query.tags`, in input order. An empty inner array means no logs matched that tag. Set
381
+ * `query.includeEffects` to also receive the tx's note hashes and nullifiers.
382
+ *
383
+ * The return type is the widest {@link LogResult} shape — see {@link getPrivateLogsByTags}.
331
384
  */
332
- getPublicLogsByTagsFromContract(
333
- contractAddress: AztecAddress,
334
- tags: Tag[],
335
- page?: number,
336
- referenceBlock?: BlockHash,
337
- ): Promise<TxScopedL2Log[][]>;
385
+ getPublicLogsByTags(query: PublicLogsQuery): Promise<LogResult[][]>;
338
386
 
339
387
  /**
340
388
  * Method to submit a transaction to the p2p pool.
@@ -344,19 +392,26 @@ export interface AztecNode
344
392
  sendTx(tx: Tx): Promise<void>;
345
393
 
346
394
  /**
347
- * Fetches a transaction receipt for a given transaction hash. Returns a mined receipt if it was added
348
- * to the chain, a pending receipt if it's still in the mempool of the connected Aztec node, or a dropped
349
- * receipt if not found in the connected Aztec node.
395
+ * Fetches a transaction receipt for a given transaction hash. Always resolves to one of the lifecycle variants of
396
+ * the {@link TxReceipt} union: a {@link MinedTxReceipt} if the tx was included in a block, a {@link PendingTxReceipt}
397
+ * if it's still in the mempool of the connected Aztec node, or a {@link DroppedTxReceipt} if not found.
350
398
  *
351
399
  * @param txHash - The transaction hash.
400
+ * @param options - Optional flags controlling which extra data is attached: `includeTxEffect` attaches the full
401
+ * {@link TxEffect} to a mined receipt, `includePendingTx` attaches the pending {@link Tx} to a pending receipt, and
402
+ * `includeProof` keeps the proof on that attached pending tx (only meaningful with `includePendingTx`).
352
403
  * @returns A receipt of the transaction.
353
404
  */
354
- getTxReceipt(txHash: TxHash): Promise<TxReceipt>;
405
+ getTxReceipt<TGetTxReceiptOptions extends GetTxReceiptOptions = {}>(
406
+ txHash: TxHash,
407
+ options?: TGetTxReceiptOptions,
408
+ ): Promise<TxReceipt<TGetTxReceiptOptions>>;
355
409
 
356
410
  /**
357
411
  * Gets a tx effect.
358
412
  * @param txHash - The hash of the tx corresponding to the tx effect.
359
413
  * @returns The requested tx effect with block info (or undefined if not found).
414
+ * @deprecated Use `getTxReceipt(txHash, { includeTxEffect: true })` and read the `.txEffect` field instead.
360
415
  */
361
416
  getTxEffect(txHash: TxHash): Promise<IndexedTxEffect | undefined>;
362
417
 
@@ -392,26 +447,12 @@ export interface AztecNode
392
447
  * @remarks The storage slot here refers to the slot as it is defined in Noir not the index in the merkle tree.
393
448
  * Aztec's version of `eth_getStorageAt`.
394
449
  *
395
- * @param block - The block parameter (block number, block hash, or 'latest') at which to get the data.
450
+ * @param referenceBlock - The block parameter (block number, block hash, or 'latest') at which to get the data.
396
451
  * @param contract - Address of the contract to query.
397
452
  * @param slot - Slot to query.
398
453
  * @returns Storage value at the given contract slot.
399
454
  */
400
- getPublicStorageAt(block: BlockParameter, contract: AztecAddress, slot: Fr): Promise<Fr>;
401
-
402
- /**
403
- * Returns the block header for a given block number, block hash, or 'latest'.
404
- * @param block - The block parameter (block number, block hash, or 'latest'). Defaults to 'latest'.
405
- * @returns The requested block header.
406
- */
407
- getBlockHeader(block?: BlockParameter): Promise<BlockHeader | undefined>;
408
-
409
- /**
410
- * Get a block header specified by its archive root.
411
- * @param archive - The archive root being requested.
412
- * @returns The requested block header.
413
- */
414
- getBlockHeaderByArchive(archive: Fr): Promise<BlockHeader | undefined>;
455
+ getPublicStorageAt(referenceBlock: BlockParameter, contract: AztecAddress, slot: Fr): Promise<Fr>;
415
456
 
416
457
  /** Returns stats for validators if enabled. */
417
458
  getValidatorsStats(): Promise<ValidatorsStats>;
@@ -427,13 +468,20 @@ export interface AztecNode
427
468
  * Simulates the public part of a transaction with the current state.
428
469
  * This currently just checks that the transaction execution succeeds.
429
470
  * @param tx - The transaction to simulate.
471
+ * @param skipFeeEnforcement - If true, fee enforcement is skipped.
472
+ * @param overrides - Optional pre-simulation overrides applied to the ephemeral fork and contract DB
473
+ * (publicStorage writes, contract instance overrides).
430
474
  **/
431
- simulatePublicCalls(tx: Tx, skipFeeEnforcement?: boolean): Promise<PublicSimulationOutput>;
475
+ simulatePublicCalls(
476
+ tx: Tx,
477
+ skipFeeEnforcement?: boolean,
478
+ overrides?: SimulationOverrides,
479
+ ): Promise<PublicSimulationOutput>;
432
480
 
433
481
  /**
434
482
  * Returns true if the transaction is valid for inclusion at the current state. Valid transactions can be
435
483
  * made invalid by *other* transactions if e.g. they emit the same nullifiers, or come become invalid
436
- * due to e.g. the include_by_timestamp property.
484
+ * due to e.g. the expiration_timestamp property.
437
485
  * @param tx - The transaction to validate for correctness.
438
486
  * @param isSimulation - True if the transaction is a simulated one without generated proofs. (Optional)
439
487
  * @param skipFeeEnforcement - True if the validation of the fee should be skipped. Useful when the simulation is for estimating fee (Optional)
@@ -468,170 +516,200 @@ const MAX_SIGNATURES_PER_REGISTER_CALL = 100;
468
516
  const MAX_SIGNATURE_LEN = 10000;
469
517
 
470
518
  export const AztecNodeApiSchema: ApiSchemaFor<AztecNode> = {
471
- getL2Tips: z.function().args().returns(L2TipsSchema),
472
-
473
- getWorldStateSyncStatus: z.function().args().returns(WorldStateSyncStatusSchema),
474
-
475
- findLeavesIndexes: z
476
- .function()
477
- .args(BlockParameterSchema, z.nativeEnum(MerkleTreeId), z.array(schemas.Fr).max(MAX_RPC_LEN))
478
- .returns(z.array(optional(dataInBlockSchemaFor(schemas.BigInt)))),
519
+ getWorldStateSyncStatus: z.function({ input: z.tuple([]), output: WorldStateSyncStatusSchema }),
520
+
521
+ findLeavesIndexes: z.function({
522
+ input: z.tuple([BlockParameterSchema, z.nativeEnum(MerkleTreeId), z.array(schemas.Fr).max(MAX_RPC_LEN)]),
523
+ output: z.array(optional(dataInBlockSchemaFor(schemas.BigInt))),
524
+ }),
479
525
 
480
- getNullifierMembershipWitness: z
481
- .function()
482
- .args(BlockParameterSchema, schemas.Fr)
483
- .returns(NullifierMembershipWitness.schema.optional()),
526
+ getNullifierMembershipWitness: z.function({
527
+ input: z.tuple([BlockParameterSchema, schemas.Fr]),
528
+ output: NullifierMembershipWitness.schema.optional(),
529
+ }),
484
530
 
485
- getLowNullifierMembershipWitness: z
486
- .function()
487
- .args(BlockParameterSchema, schemas.Fr)
488
- .returns(NullifierMembershipWitness.schema.optional()),
531
+ getLowNullifierMembershipWitness: z.function({
532
+ input: z.tuple([BlockParameterSchema, schemas.Fr]),
533
+ output: NullifierMembershipWitness.schema.optional(),
534
+ }),
489
535
 
490
- getPublicDataWitness: z
491
- .function()
492
- .args(BlockParameterSchema, schemas.Fr)
493
- .returns(PublicDataWitness.schema.optional()),
536
+ getPublicDataWitness: z.function({
537
+ input: z.tuple([BlockParameterSchema, schemas.Fr]),
538
+ output: PublicDataWitness.schema.optional(),
539
+ }),
494
540
 
495
- getArchiveMembershipWitness: z
496
- .function()
497
- .args(BlockParameterSchema, schemas.Fr)
498
- .returns(MembershipWitness.schemaFor(ARCHIVE_HEIGHT).optional()),
541
+ getBlockHashMembershipWitness: z.function({
542
+ input: z.tuple([BlockParameterSchema, BlockHash.schema]),
543
+ output: MembershipWitness.schemaFor(ARCHIVE_HEIGHT).optional(),
544
+ }),
499
545
 
500
- getNoteHashMembershipWitness: z
501
- .function()
502
- .args(BlockParameterSchema, schemas.Fr)
503
- .returns(MembershipWitness.schemaFor(NOTE_HASH_TREE_HEIGHT).optional()),
546
+ getNoteHashMembershipWitness: z.function({
547
+ input: z.tuple([BlockParameterSchema, schemas.Fr]),
548
+ output: MembershipWitness.schemaFor(NOTE_HASH_TREE_HEIGHT).optional(),
549
+ }),
504
550
 
505
- getL1ToL2MessageMembershipWitness: z
506
- .function()
507
- .args(BlockParameterSchema, schemas.Fr)
508
- .returns(z.tuple([schemas.BigInt, SiblingPath.schemaFor(L1_TO_L2_MSG_TREE_HEIGHT)]).optional()),
551
+ getL1ToL2MessageMembershipWitness: z.function({
552
+ input: z.tuple([BlockParameterSchema, schemas.Fr]),
553
+ output: z.tuple([schemas.BigInt, SiblingPath.schemaFor(L1_TO_L2_MSG_TREE_HEIGHT)]).optional(),
554
+ }),
509
555
 
510
- getL1ToL2MessageBlock: z.function().args(schemas.Fr).returns(BlockNumberSchema.optional()),
556
+ getL1ToL2MessageCheckpoint: z.function({ input: z.tuple([schemas.Fr]), output: CheckpointNumberSchema.optional() }),
511
557
 
512
- isL1ToL2MessageSynced: z.function().args(schemas.Fr).returns(z.boolean()),
558
+ getL2ToL1Messages: z.function({
559
+ input: z.tuple([EpochNumberSchema]),
560
+ output: z.array(z.array(z.array(z.array(schemas.Fr)))),
561
+ }),
513
562
 
514
- getL2ToL1Messages: z
515
- .function()
516
- .args(EpochNumberSchema)
517
- .returns(z.array(z.array(z.array(z.array(schemas.Fr))))),
563
+ // Reads Outbox roots lazily, pinned to the node's synced L1 block. Caveat: cached roots that are
564
+ // sealed and L1-finalized are not re-validated, so a reorg deeper than L1 finality could leave the
565
+ // node serving a witness against a no-longer-canonical root.
566
+ getL2ToL1MembershipWitness: z.function({
567
+ input: z.tuple([TxHash.schema, schemas.Fr, optional(schemas.Integer)]),
568
+ output: L2ToL1MembershipWitnessSchema.optional(),
569
+ }),
518
570
 
519
- getBlock: z.function().args(BlockParameterSchema).returns(L2Block.schema.optional()),
571
+ getBlockNumber: z.function({ input: z.tuple([optional(ChainTipSchema)]), output: BlockNumberSchema }),
520
572
 
521
- getBlockByHash: z.function().args(BlockHash.schema).returns(L2Block.schema.optional()),
573
+ getCheckpointNumber: z.function({ input: z.tuple([optional(ChainTipSchema)]), output: CheckpointNumberSchema }),
522
574
 
523
- getBlockByArchive: z.function().args(schemas.Fr).returns(L2Block.schema.optional()),
575
+ getChainTips: z.function({ input: z.tuple([]), output: ChainTipsSchema }),
524
576
 
525
- getBlockNumber: z.function().returns(BlockNumberSchema),
577
+ getCheckpointsData: z.function({ input: z.tuple([CheckpointsQuerySchema]), output: z.array(CheckpointDataSchema) }),
526
578
 
527
- getProvenBlockNumber: z.function().returns(BlockNumberSchema),
579
+ getBlock: z.function({
580
+ input: z.tuple([BlockParameterSchema, optional(BlockIncludeOptionsSchema)]),
581
+ output: BlockResponseSchema.optional(),
582
+ }),
528
583
 
529
- getCheckpointedBlockNumber: z.function().returns(BlockNumberSchema),
584
+ getBlockData: z.function({ input: z.tuple([BlockParameterSchema]), output: BlockDataSchema.optional() }),
530
585
 
531
- isReady: z.function().returns(z.boolean()),
586
+ getBlocks: z.function({
587
+ input: z.tuple([
588
+ BlockNumberPositiveSchema,
589
+ z.number().gt(0).lte(MAX_RPC_BLOCKS_LEN),
590
+ optional(BlocksIncludeOptionsSchema),
591
+ ]),
592
+ output: z.array(BlockResponseSchema),
593
+ }),
532
594
 
533
- getNodeInfo: z.function().returns(NodeInfoSchema),
595
+ getCheckpoint: z.function({
596
+ input: z.tuple([CheckpointParameterSchema, optional(CheckpointIncludeOptionsSchema)]),
597
+ output: CheckpointResponseSchema.optional(),
598
+ }),
534
599
 
535
- getBlocks: z
536
- .function()
537
- .args(BlockNumberPositiveSchema, z.number().gt(0).lte(MAX_RPC_BLOCKS_LEN))
538
- .returns(z.array(L2Block.schema)),
600
+ getCheckpoints: z.function({
601
+ input: z.tuple([
602
+ CheckpointNumberPositiveSchema,
603
+ z.number().gt(0).lte(MAX_RPC_CHECKPOINTS_LEN),
604
+ optional(CheckpointIncludeOptionsSchema),
605
+ ]),
606
+ output: z.array(CheckpointResponseSchema),
607
+ }),
539
608
 
540
- getCheckpoints: z
541
- .function()
542
- .args(CheckpointNumberPositiveSchema, z.number().gt(0).lte(MAX_RPC_CHECKPOINTS_LEN))
543
- .returns(z.array(PublishedCheckpoint.schema)),
609
+ isReady: z.function({ input: z.tuple([]), output: z.boolean() }),
544
610
 
545
- getCheckpointedBlocks: z
546
- .function()
547
- .args(BlockNumberPositiveSchema, z.number().gt(0).lte(MAX_RPC_BLOCKS_LEN))
548
- .returns(z.array(CheckpointedL2Block.schema)),
611
+ getNodeInfo: z.function({ input: z.tuple([]), output: NodeInfoSchema }),
549
612
 
550
- getCurrentMinFees: z.function().returns(GasFees.schema),
613
+ getCurrentMinFees: z.function({ input: z.tuple([]), output: GasFees.schema }),
551
614
 
552
- getMaxPriorityFees: z.function().returns(GasFees.schema),
615
+ getPredictedMinFees: z.function({
616
+ input: z.tuple([optional(z.nativeEnum(ManaUsageEstimate))]),
617
+ output: z.array(GasFees.schema),
618
+ }),
553
619
 
554
- getNodeVersion: z.function().returns(z.string()),
620
+ getMaxPriorityFees: z.function({ input: z.tuple([]), output: GasFees.schema }),
555
621
 
556
- getVersion: z.function().returns(z.number()),
622
+ getNodeVersion: z.function({ input: z.tuple([]), output: z.string() }),
557
623
 
558
- getChainId: z.function().returns(z.number()),
624
+ getVersion: z.function({ input: z.tuple([]), output: z.number() }),
559
625
 
560
- getL1ContractAddresses: z.function().returns(L1ContractAddressesSchema),
626
+ getChainId: z.function({ input: z.tuple([]), output: z.number() }),
561
627
 
562
- getProtocolContractAddresses: z.function().returns(ProtocolContractAddressesSchema),
628
+ getL1ContractAddresses: z.function({ input: z.tuple([]), output: L1ContractAddressesSchema }),
563
629
 
564
- registerContractFunctionSignatures: z
565
- .function()
566
- .args(z.array(z.string().max(MAX_SIGNATURE_LEN)).max(MAX_SIGNATURES_PER_REGISTER_CALL))
567
- .returns(z.void()),
630
+ getProtocolContractAddresses: z.function({ input: z.tuple([]), output: ProtocolContractAddressesSchema }),
568
631
 
569
- getPublicLogs: z.function().args(LogFilterSchema).returns(GetPublicLogsResponseSchema),
632
+ registerContractFunctionSignatures: z.function({
633
+ input: z.tuple([z.array(z.string().max(MAX_SIGNATURE_LEN)).max(MAX_SIGNATURES_PER_REGISTER_CALL)]),
634
+ output: z.void(),
635
+ }),
570
636
 
571
- getContractClassLogs: z.function().args(LogFilterSchema).returns(GetContractClassLogsResponseSchema),
637
+ getPrivateLogsByTags: z.function({
638
+ input: z.tuple([PrivateLogsQuerySchema]),
639
+ output: z.array(z.array(LogResultSchema)),
640
+ }),
572
641
 
573
- getPrivateLogsByTags: z
574
- .function()
575
- .args(z.array(SiloedTag.schema).max(MAX_RPC_LEN), optional(z.number().gte(0)), optional(BlockHash.schema))
576
- .returns(z.array(z.array(TxScopedL2Log.schema))),
642
+ getPublicLogsByTags: z.function({
643
+ input: z.tuple([PublicLogsQuerySchema]),
644
+ output: z.array(z.array(LogResultSchema)),
645
+ }),
577
646
 
578
- getPublicLogsByTagsFromContract: z
579
- .function()
580
- .args(
581
- schemas.AztecAddress,
582
- z.array(Tag.schema).max(MAX_RPC_LEN),
583
- optional(z.number().gte(0)),
584
- optional(BlockHash.schema),
585
- )
586
- .returns(z.array(z.array(TxScopedL2Log.schema))),
647
+ sendTx: z.function({ input: z.tuple([Tx.schema]), output: z.void() }),
587
648
 
588
- sendTx: z.function().args(Tx.schema).returns(z.void()),
649
+ getTxReceipt: z.function({
650
+ input: z.tuple([TxHash.schema, optional(GetTxReceiptOptionsSchema)]),
651
+ output: TxReceiptSchema,
652
+ }),
589
653
 
590
- getTxReceipt: z.function().args(TxHash.schema).returns(TxReceipt.schema),
654
+ getTxEffect: z.function({ input: z.tuple([TxHash.schema]), output: indexedTxSchema().optional() }),
591
655
 
592
- getTxEffect: z.function().args(TxHash.schema).returns(indexedTxSchema().optional()),
656
+ getPendingTxs: z.function({
657
+ input: z.tuple([
658
+ optional(z.number().gte(1).lte(MAX_RPC_TXS_LEN).default(MAX_RPC_TXS_LEN)),
659
+ optional(TxHash.schema),
660
+ ]),
661
+ output: z.array(Tx.schema),
662
+ }),
593
663
 
594
- getPendingTxs: z
595
- .function()
596
- .args(optional(z.number().gte(1).lte(MAX_RPC_TXS_LEN).default(MAX_RPC_TXS_LEN)), optional(TxHash.schema))
597
- .returns(z.array(Tx.schema)),
664
+ getPendingTxCount: z.function({ input: z.tuple([]), output: z.number() }),
598
665
 
599
- getPendingTxCount: z.function().returns(z.number()),
666
+ getTxByHash: z.function({ input: z.tuple([TxHash.schema]), output: Tx.schema.optional() }),
600
667
 
601
- getTxByHash: z.function().args(TxHash.schema).returns(Tx.schema.optional()),
668
+ getTxsByHash: z.function({
669
+ input: z.tuple([z.array(TxHash.schema).max(MAX_RPC_TXS_LEN)]),
670
+ output: z.array(Tx.schema),
671
+ }),
602
672
 
603
- getTxsByHash: z.function().args(z.array(TxHash.schema).max(MAX_RPC_TXS_LEN)).returns(z.array(Tx.schema)),
673
+ getPublicStorageAt: z.function({
674
+ input: z.tuple([BlockParameterSchema, schemas.AztecAddress, schemas.Fr]),
675
+ output: schemas.Fr,
676
+ }),
604
677
 
605
- getPublicStorageAt: z.function().args(BlockParameterSchema, schemas.AztecAddress, schemas.Fr).returns(schemas.Fr),
678
+ getValidatorsStats: z.function({ input: z.tuple([]), output: ValidatorsStatsSchema }),
606
679
 
607
- getBlockHeader: z.function().args(optional(BlockParameterSchema)).returns(BlockHeader.schema.optional()),
680
+ getValidatorStats: z.function({
681
+ input: z.tuple([schemas.EthAddress, optional(schemas.SlotNumber), optional(schemas.SlotNumber)]),
682
+ output: SingleValidatorStatsSchema.optional(),
683
+ }),
608
684
 
609
- getBlockHeaderByArchive: z.function().args(schemas.Fr).returns(BlockHeader.schema.optional()),
685
+ simulatePublicCalls: z.function({
686
+ input: z.tuple([Tx.schema, optional(z.boolean()), optional(SimulationOverrides.schema)]),
687
+ output: PublicSimulationOutput.schema,
688
+ }),
610
689
 
611
- getValidatorsStats: z.function().returns(ValidatorsStatsSchema),
612
-
613
- getValidatorStats: z
614
- .function()
615
- .args(schemas.EthAddress, optional(schemas.SlotNumber), optional(schemas.SlotNumber))
616
- .returns(SingleValidatorStatsSchema.optional()),
617
-
618
- simulatePublicCalls: z.function().args(Tx.schema, optional(z.boolean())).returns(PublicSimulationOutput.schema),
619
-
620
- isValidTx: z
621
- .function()
622
- .args(
690
+ isValidTx: z.function({
691
+ input: z.tuple([
623
692
  Tx.schema,
624
- optional(z.object({ isSimulation: optional(z.boolean()), skipFeeEnforcement: optional(z.boolean()) })),
625
- )
626
- .returns(TxValidationResultSchema),
627
-
628
- getContractClass: z.function().args(schemas.Fr).returns(ContractClassPublicSchema.optional()),
629
-
630
- getContract: z.function().args(schemas.AztecAddress).returns(ContractInstanceWithAddressSchema.optional()),
631
-
632
- getEncodedEnr: z.function().returns(z.string().optional()),
633
-
634
- getAllowedPublicSetup: z.function().args().returns(z.array(AllowedElementSchema)),
693
+ optional(
694
+ z.object({
695
+ isSimulation: optional(z.boolean()).optional(),
696
+ skipFeeEnforcement: optional(z.boolean()).optional(),
697
+ }),
698
+ ),
699
+ ]),
700
+ output: TxValidationResultSchema,
701
+ }),
702
+
703
+ getContractClass: z.function({ input: z.tuple([schemas.Fr]), output: ContractClassPublicSchema.optional() }),
704
+
705
+ getContract: z.function({
706
+ input: z.tuple([schemas.AztecAddress]),
707
+ output: ContractInstanceWithAddressSchema.optional(),
708
+ }),
709
+
710
+ getEncodedEnr: z.function({ input: z.tuple([]), output: z.string().optional() }),
711
+
712
+ getAllowedPublicSetup: z.function({ input: z.tuple([]), output: z.array(AllowedElementSchema) }),
635
713
  };
636
714
 
637
715
  export function createAztecNodeClient(