@aztec/stdlib 0.0.1-commit.b1c78909e → 0.0.1-commit.b2a5d0dd1

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 (437) hide show
  1. package/dest/abi/abi.d.ts +138 -1
  2. package/dest/abi/abi.d.ts.map +1 -1
  3. package/dest/abi/abi.js +10 -2
  4. package/dest/abi/authorization_selector.d.ts +3 -6
  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/decoder.d.ts +5 -44
  10. package/dest/abi/decoder.d.ts.map +1 -1
  11. package/dest/abi/decoder.js +12 -67
  12. package/dest/abi/encoder.d.ts +1 -1
  13. package/dest/abi/encoder.d.ts.map +1 -1
  14. package/dest/abi/encoder.js +32 -6
  15. package/dest/abi/event_selector.d.ts +3 -6
  16. package/dest/abi/event_selector.d.ts.map +1 -1
  17. package/dest/abi/function_selector.d.ts +3 -6
  18. package/dest/abi/function_selector.d.ts.map +1 -1
  19. package/dest/abi/function_selector.js +2 -4
  20. package/dest/abi/function_signature_decoder.d.ts +43 -0
  21. package/dest/abi/function_signature_decoder.d.ts.map +1 -0
  22. package/dest/abi/function_signature_decoder.js +66 -0
  23. package/dest/abi/index.d.ts +2 -1
  24. package/dest/abi/index.d.ts.map +1 -1
  25. package/dest/abi/index.js +1 -0
  26. package/dest/abi/note_selector.d.ts +3 -6
  27. package/dest/abi/note_selector.d.ts.map +1 -1
  28. package/dest/abi/note_selector.js +1 -3
  29. package/dest/abi/selector.d.ts +2 -2
  30. package/dest/abi/selector.d.ts.map +1 -1
  31. package/dest/abi/selector.js +1 -1
  32. package/dest/avm/revert_code.d.ts +8 -18
  33. package/dest/avm/revert_code.d.ts.map +1 -1
  34. package/dest/avm/revert_code.js +15 -30
  35. package/dest/aztec-address/index.d.ts +3 -6
  36. package/dest/aztec-address/index.d.ts.map +1 -1
  37. package/dest/aztec-address/index.js +2 -4
  38. package/dest/block/block_data.d.ts +8 -8
  39. package/dest/block/block_data.d.ts.map +1 -1
  40. package/dest/block/block_data.js +2 -2
  41. package/dest/block/block_hash.d.ts +11 -10
  42. package/dest/block/block_hash.d.ts.map +1 -1
  43. package/dest/block/block_hash.js +10 -9
  44. package/dest/block/l2_block_info.d.ts +6 -5
  45. package/dest/block/l2_block_info.d.ts.map +1 -1
  46. package/dest/block/l2_block_info.js +6 -5
  47. package/dest/block/l2_block_source.d.ts +84 -5
  48. package/dest/block/l2_block_source.d.ts.map +1 -1
  49. package/dest/block/l2_block_source.js +1 -0
  50. package/dest/block/l2_block_stream/interfaces.d.ts +6 -3
  51. package/dest/block/l2_block_stream/interfaces.d.ts.map +1 -1
  52. package/dest/block/l2_block_stream/l2_tips_store_base.d.ts +1 -1
  53. package/dest/block/l2_block_stream/l2_tips_store_base.d.ts.map +1 -1
  54. package/dest/block/l2_block_stream/l2_tips_store_base.js +18 -5
  55. package/dest/block/test/l2_tips_store_test_suite.d.ts +1 -1
  56. package/dest/block/test/l2_tips_store_test_suite.d.ts.map +1 -1
  57. package/dest/block/test/l2_tips_store_test_suite.js +4 -3
  58. package/dest/checkpoint/checkpoint.d.ts +7 -1
  59. package/dest/checkpoint/checkpoint.d.ts.map +1 -1
  60. package/dest/checkpoint/checkpoint.js +9 -1
  61. package/dest/checkpoint/checkpoint_data.d.ts +71 -5
  62. package/dest/checkpoint/checkpoint_data.d.ts.map +1 -1
  63. package/dest/checkpoint/checkpoint_data.js +10 -0
  64. package/dest/checkpoint/validate.js +2 -2
  65. package/dest/config/chain-config.d.ts +1 -1
  66. package/dest/config/chain-config.d.ts.map +1 -1
  67. package/dest/config/chain-config.js +7 -1
  68. package/dest/config/index.d.ts +2 -1
  69. package/dest/config/index.d.ts.map +1 -1
  70. package/dest/config/index.js +1 -0
  71. package/dest/config/pipelining-config.d.ts +19 -0
  72. package/dest/config/pipelining-config.d.ts.map +1 -0
  73. package/dest/config/pipelining-config.js +18 -0
  74. package/dest/config/sequencer-config.d.ts +2 -2
  75. package/dest/config/sequencer-config.d.ts.map +1 -1
  76. package/dest/config/sequencer-config.js +10 -3
  77. package/dest/contract/contract_address.d.ts +3 -3
  78. package/dest/contract/contract_address.js +3 -3
  79. package/dest/contract/contract_class_id.d.ts +2 -2
  80. package/dest/contract/contract_class_id.js +2 -2
  81. package/dest/contract/index.d.ts +1 -3
  82. package/dest/contract/index.d.ts.map +1 -1
  83. package/dest/contract/index.js +0 -2
  84. package/dest/contract/interfaces/contract_class.d.ts +3 -156
  85. package/dest/contract/interfaces/contract_class.d.ts.map +1 -1
  86. package/dest/contract/interfaces/contract_class.js +1 -28
  87. package/dest/contract/private_function.d.ts +1 -1
  88. package/dest/contract/private_function.d.ts.map +1 -1
  89. package/dest/contract/private_function.js +2 -4
  90. package/dest/epoch-helpers/index.d.ts +7 -1
  91. package/dest/epoch-helpers/index.d.ts.map +1 -1
  92. package/dest/epoch-helpers/index.js +12 -0
  93. package/dest/file-store/factory.d.ts +4 -3
  94. package/dest/file-store/factory.d.ts.map +1 -1
  95. package/dest/file-store/factory.js +2 -2
  96. package/dest/file-store/http.d.ts +9 -2
  97. package/dest/file-store/http.d.ts.map +1 -1
  98. package/dest/file-store/http.js +20 -9
  99. package/dest/file-store/index.d.ts +2 -1
  100. package/dest/file-store/index.d.ts.map +1 -1
  101. package/dest/gas/fee_math.d.ts +49 -0
  102. package/dest/gas/fee_math.d.ts.map +1 -0
  103. package/dest/gas/fee_math.js +80 -0
  104. package/dest/gas/gas_fees.d.ts +5 -1
  105. package/dest/gas/gas_fees.d.ts.map +1 -1
  106. package/dest/gas/gas_fees.js +10 -1
  107. package/dest/gas/gas_settings.d.ts +40 -3
  108. package/dest/gas/gas_settings.d.ts.map +1 -1
  109. package/dest/gas/gas_settings.js +50 -6
  110. package/dest/gas/index.d.ts +2 -1
  111. package/dest/gas/index.d.ts.map +1 -1
  112. package/dest/gas/index.js +1 -0
  113. package/dest/ha-signing/config.d.ts +6 -6
  114. package/dest/ha-signing/config.d.ts.map +1 -1
  115. package/dest/ha-signing/config.js +4 -3
  116. package/dest/ha-signing/index.d.ts +2 -2
  117. package/dest/ha-signing/index.d.ts.map +1 -1
  118. package/dest/ha-signing/index.js +1 -1
  119. package/dest/ha-signing/local_config.js +1 -1
  120. package/dest/ha-signing/types.d.ts +37 -32
  121. package/dest/ha-signing/types.d.ts.map +1 -1
  122. package/dest/ha-signing/types.js +13 -6
  123. package/dest/hash/hash.d.ts +34 -1
  124. package/dest/hash/hash.d.ts.map +1 -1
  125. package/dest/hash/hash.js +61 -0
  126. package/dest/interfaces/archiver.d.ts +11 -1
  127. package/dest/interfaces/archiver.d.ts.map +1 -1
  128. package/dest/interfaces/archiver.js +6 -2
  129. package/dest/interfaces/aztec-node-admin.d.ts +12 -17
  130. package/dest/interfaces/aztec-node-admin.d.ts.map +1 -1
  131. package/dest/interfaces/aztec-node-admin.js +3 -3
  132. package/dest/interfaces/aztec-node-debug.d.ts +21 -0
  133. package/dest/interfaces/aztec-node-debug.d.ts.map +1 -0
  134. package/dest/interfaces/aztec-node-debug.js +18 -0
  135. package/dest/interfaces/aztec-node.d.ts +12 -2
  136. package/dest/interfaces/aztec-node.d.ts.map +1 -1
  137. package/dest/interfaces/aztec-node.js +4 -0
  138. package/dest/interfaces/block-builder.d.ts +31 -7
  139. package/dest/interfaces/block-builder.d.ts.map +1 -1
  140. package/dest/interfaces/block-builder.js +6 -4
  141. package/dest/interfaces/client.d.ts +2 -1
  142. package/dest/interfaces/client.d.ts.map +1 -1
  143. package/dest/interfaces/client.js +1 -0
  144. package/dest/interfaces/configs.d.ts +7 -2
  145. package/dest/interfaces/configs.d.ts.map +1 -1
  146. package/dest/interfaces/configs.js +1 -0
  147. package/dest/interfaces/l2_logs_source.d.ts +5 -3
  148. package/dest/interfaces/l2_logs_source.d.ts.map +1 -1
  149. package/dest/interfaces/merkle_tree_operations.d.ts +12 -21
  150. package/dest/interfaces/merkle_tree_operations.d.ts.map +1 -1
  151. package/dest/interfaces/prover-client.d.ts +1 -1
  152. package/dest/interfaces/prover-client.d.ts.map +1 -1
  153. package/dest/interfaces/prover-client.js +1 -4
  154. package/dest/interfaces/proving-job.d.ts +200 -200
  155. package/dest/interfaces/slasher.d.ts +1 -10
  156. package/dest/interfaces/slasher.d.ts.map +1 -1
  157. package/dest/interfaces/slasher.js +0 -2
  158. package/dest/interfaces/validator.d.ts +15 -26
  159. package/dest/interfaces/validator.d.ts.map +1 -1
  160. package/dest/interfaces/validator.js +0 -1
  161. package/dest/interfaces/world_state.d.ts +5 -4
  162. package/dest/interfaces/world_state.d.ts.map +1 -1
  163. package/dest/l1-contracts/index.d.ts +2 -2
  164. package/dest/l1-contracts/index.d.ts.map +1 -1
  165. package/dest/l1-contracts/index.js +1 -1
  166. package/dest/logs/extended_directional_app_tagging_secret.d.ts +4 -4
  167. package/dest/logs/extended_directional_app_tagging_secret.d.ts.map +1 -1
  168. package/dest/logs/extended_directional_app_tagging_secret.js +12 -5
  169. package/dest/logs/index.d.ts +2 -1
  170. package/dest/logs/index.d.ts.map +1 -1
  171. package/dest/logs/index.js +1 -0
  172. package/dest/logs/log_filter.d.ts +4 -1
  173. package/dest/logs/log_filter.d.ts.map +1 -1
  174. package/dest/logs/log_filter.js +2 -1
  175. package/dest/logs/log_id.d.ts +1 -1
  176. package/dest/logs/log_id.d.ts.map +1 -1
  177. package/dest/logs/log_id.js +1 -2
  178. package/dest/logs/message_context.d.ts +4 -7
  179. package/dest/logs/message_context.d.ts.map +1 -1
  180. package/dest/logs/message_context.js +23 -9
  181. package/dest/logs/pending_tagged_log.d.ts +2 -3
  182. package/dest/logs/pending_tagged_log.d.ts.map +1 -1
  183. package/dest/logs/pending_tagged_log.js +2 -2
  184. package/dest/logs/shared_secret_derivation.d.ts +11 -10
  185. package/dest/logs/shared_secret_derivation.d.ts.map +1 -1
  186. package/dest/logs/shared_secret_derivation.js +15 -9
  187. package/dest/logs/siloed_tag.d.ts +8 -7
  188. package/dest/logs/siloed_tag.d.ts.map +1 -1
  189. package/dest/logs/siloed_tag.js +11 -3
  190. package/dest/logs/tag.d.ts +5 -6
  191. package/dest/logs/tag.d.ts.map +1 -1
  192. package/dest/logs/tag.js +4 -0
  193. package/dest/logs/tagging_index_range.d.ts +40 -0
  194. package/dest/logs/tagging_index_range.d.ts.map +1 -0
  195. package/dest/logs/tagging_index_range.js +8 -0
  196. package/dest/logs/tx_scoped_l2_log.d.ts +3 -1
  197. package/dest/logs/tx_scoped_l2_log.d.ts.map +1 -1
  198. package/dest/logs/tx_scoped_l2_log.js +7 -0
  199. package/dest/messaging/l1_to_l2_message.d.ts +3 -2
  200. package/dest/messaging/l1_to_l2_message.d.ts.map +1 -1
  201. package/dest/messaging/l1_to_l2_message.js +11 -13
  202. package/dest/messaging/l1_to_l2_message_source.d.ts +4 -2
  203. package/dest/messaging/l1_to_l2_message_source.d.ts.map +1 -1
  204. package/dest/messaging/l2_to_l1_membership.d.ts +32 -6
  205. package/dest/messaging/l2_to_l1_membership.d.ts.map +1 -1
  206. package/dest/messaging/l2_to_l1_membership.js +69 -26
  207. package/dest/noir/index.d.ts +3 -3
  208. package/dest/noir/index.d.ts.map +1 -1
  209. package/dest/note/note_dao.d.ts +1 -1
  210. package/dest/note/note_dao.d.ts.map +1 -1
  211. package/dest/note/note_dao.js +1 -4
  212. package/dest/p2p/block_proposal.d.ts +6 -8
  213. package/dest/p2p/block_proposal.d.ts.map +1 -1
  214. package/dest/p2p/block_proposal.js +4 -9
  215. package/dest/p2p/checkpoint_attestation.d.ts +4 -6
  216. package/dest/p2p/checkpoint_attestation.d.ts.map +1 -1
  217. package/dest/p2p/checkpoint_attestation.js +2 -7
  218. package/dest/p2p/checkpoint_proposal.d.ts +8 -10
  219. package/dest/p2p/checkpoint_proposal.d.ts.map +1 -1
  220. package/dest/p2p/checkpoint_proposal.js +5 -22
  221. package/dest/p2p/gossipable.d.ts +4 -4
  222. package/dest/p2p/gossipable.d.ts.map +1 -1
  223. package/dest/proofs/chonk_proof.d.ts +46 -2
  224. package/dest/proofs/chonk_proof.d.ts.map +1 -1
  225. package/dest/proofs/chonk_proof.js +85 -10
  226. package/dest/rollup/block_headers_hash.d.ts +1 -1
  227. package/dest/rollup/block_headers_hash.d.ts.map +1 -1
  228. package/dest/rollup/block_headers_hash.js +8 -2
  229. package/dest/slashing/index.d.ts +2 -3
  230. package/dest/slashing/index.d.ts.map +1 -1
  231. package/dest/slashing/index.js +1 -2
  232. package/dest/slashing/serialization.d.ts +2 -6
  233. package/dest/slashing/serialization.d.ts.map +1 -1
  234. package/dest/slashing/serialization.js +0 -60
  235. package/dest/slashing/types.d.ts +4 -90
  236. package/dest/slashing/types.d.ts.map +1 -1
  237. package/dest/slashing/types.js +0 -14
  238. package/dest/slashing/{tally.d.ts → votes.d.ts} +1 -1
  239. package/dest/slashing/{tally.d.ts.map → votes.d.ts.map} +1 -1
  240. package/dest/slashing/{tally.js → votes.js} +1 -1
  241. package/dest/tests/factories.d.ts +3 -10
  242. package/dest/tests/factories.d.ts.map +1 -1
  243. package/dest/tests/factories.js +12 -35
  244. package/dest/tests/mocks.d.ts +1 -1
  245. package/dest/tests/mocks.d.ts.map +1 -1
  246. package/dest/tests/mocks.js +14 -19
  247. package/dest/timetable/index.d.ts +51 -1
  248. package/dest/timetable/index.d.ts.map +1 -1
  249. package/dest/timetable/index.js +204 -14
  250. package/dest/trees/nullifier_leaf.d.ts +2 -1
  251. package/dest/trees/nullifier_leaf.d.ts.map +1 -1
  252. package/dest/trees/nullifier_leaf.js +3 -0
  253. package/dest/tx/block_header.d.ts +2 -2
  254. package/dest/tx/block_header.d.ts.map +1 -1
  255. package/dest/tx/block_header.js +1 -1
  256. package/dest/tx/capsule.d.ts +6 -2
  257. package/dest/tx/capsule.d.ts.map +1 -1
  258. package/dest/tx/capsule.js +9 -3
  259. package/dest/tx/fee_provider.d.ts +10 -0
  260. package/dest/tx/fee_provider.d.ts.map +1 -0
  261. package/dest/tx/fee_provider.js +1 -0
  262. package/dest/tx/global_variable_builder.d.ts +3 -4
  263. package/dest/tx/global_variable_builder.d.ts.map +1 -1
  264. package/dest/tx/index.d.ts +2 -1
  265. package/dest/tx/index.d.ts.map +1 -1
  266. package/dest/tx/index.js +1 -0
  267. package/dest/tx/indexed_tx_effect.d.ts +1 -1
  268. package/dest/tx/indexed_tx_effect.d.ts.map +1 -1
  269. package/dest/tx/indexed_tx_effect.js +1 -2
  270. package/dest/tx/private_execution_result.d.ts +6 -6
  271. package/dest/tx/private_execution_result.d.ts.map +1 -1
  272. package/dest/tx/private_execution_result.js +6 -6
  273. package/dest/tx/profiling.d.ts +14 -2
  274. package/dest/tx/profiling.d.ts.map +1 -1
  275. package/dest/tx/profiling.js +13 -3
  276. package/dest/tx/simulated_tx.d.ts +112 -4
  277. package/dest/tx/simulated_tx.d.ts.map +1 -1
  278. package/dest/tx/simulated_tx.js +3 -3
  279. package/dest/tx/tx.d.ts +3 -3
  280. package/dest/tx/tx.d.ts.map +1 -1
  281. package/dest/tx/tx_receipt.d.ts +14 -5
  282. package/dest/tx/tx_receipt.d.ts.map +1 -1
  283. package/dest/tx/tx_receipt.js +14 -18
  284. package/dest/tx/validator/error_texts.d.ts +5 -1
  285. package/dest/tx/validator/error_texts.d.ts.map +1 -1
  286. package/dest/tx/validator/error_texts.js +6 -0
  287. package/dest/types/shared.d.ts +1 -10
  288. package/dest/types/shared.d.ts.map +1 -1
  289. package/dest/types/shared.js +0 -9
  290. package/dest/update-checker/package_version.d.ts +2 -2
  291. package/dest/update-checker/package_version.d.ts.map +1 -1
  292. package/dest/update-checker/package_version.js +16 -3
  293. package/dest/versioning/versioning.d.ts +4 -2
  294. package/dest/versioning/versioning.d.ts.map +1 -1
  295. package/dest/versioning/versioning.js +4 -1
  296. package/dest/vks/verification_key.d.ts +2 -137
  297. package/dest/vks/verification_key.d.ts.map +1 -1
  298. package/dest/vks/verification_key.js +5 -126
  299. package/dest/world-state/genesis_data.d.ts +11 -0
  300. package/dest/world-state/genesis_data.d.ts.map +1 -0
  301. package/dest/world-state/genesis_data.js +4 -0
  302. package/dest/world-state/index.d.ts +2 -1
  303. package/dest/world-state/index.d.ts.map +1 -1
  304. package/dest/world-state/index.js +1 -0
  305. package/dest/world-state/world_state_revision.d.ts +8 -1
  306. package/dest/world-state/world_state_revision.d.ts.map +1 -1
  307. package/dest/world-state/world_state_revision.js +7 -1
  308. package/package.json +8 -8
  309. package/src/abi/abi.ts +25 -2
  310. package/src/abi/authorization_selector.ts +2 -8
  311. package/src/abi/buffer.ts +25 -4
  312. package/src/abi/decoder.ts +23 -78
  313. package/src/abi/encoder.ts +42 -6
  314. package/src/abi/event_selector.ts +2 -8
  315. package/src/abi/function_selector.ts +4 -13
  316. package/src/abi/function_signature_decoder.ts +77 -0
  317. package/src/abi/index.ts +1 -0
  318. package/src/abi/note_selector.ts +3 -12
  319. package/src/abi/selector.ts +1 -1
  320. package/src/avm/revert_code.ts +25 -39
  321. package/src/aztec-address/index.ts +4 -10
  322. package/src/block/block_data.ts +3 -4
  323. package/src/block/block_hash.ts +21 -14
  324. package/src/block/l2_block_info.ts +8 -6
  325. package/src/block/l2_block_source.ts +14 -4
  326. package/src/block/l2_block_stream/interfaces.ts +6 -2
  327. package/src/block/l2_block_stream/l2_tips_store_base.ts +25 -13
  328. package/src/block/test/l2_tips_store_test_suite.ts +9 -2
  329. package/src/checkpoint/checkpoint.ts +11 -1
  330. package/src/checkpoint/checkpoint_data.ts +40 -4
  331. package/src/checkpoint/validate.ts +2 -2
  332. package/src/config/chain-config.ts +7 -1
  333. package/src/config/index.ts +1 -0
  334. package/src/config/pipelining-config.ts +31 -0
  335. package/src/config/sequencer-config.ts +14 -4
  336. package/src/contract/contract_address.ts +3 -3
  337. package/src/contract/contract_class_id.ts +2 -2
  338. package/src/contract/index.ts +0 -2
  339. package/src/contract/interfaces/contract_class.ts +2 -82
  340. package/src/contract/private_function.ts +3 -1
  341. package/src/epoch-helpers/index.ts +24 -0
  342. package/src/file-store/factory.ts +13 -4
  343. package/src/file-store/http.ts +29 -10
  344. package/src/file-store/index.ts +1 -0
  345. package/src/gas/README.md +154 -0
  346. package/src/gas/fee_math.ts +120 -0
  347. package/src/gas/gas_fees.ts +17 -4
  348. package/src/gas/gas_settings.ts +65 -12
  349. package/src/gas/index.ts +1 -0
  350. package/src/ha-signing/config.ts +5 -2
  351. package/src/ha-signing/index.ts +3 -1
  352. package/src/ha-signing/local_config.ts +1 -1
  353. package/src/ha-signing/types.ts +48 -34
  354. package/src/hash/hash.ts +61 -0
  355. package/src/interfaces/archiver.ts +11 -1
  356. package/src/interfaces/aztec-node-admin.ts +5 -7
  357. package/src/interfaces/aztec-node-debug.ts +40 -0
  358. package/src/interfaces/aztec-node.ts +25 -1
  359. package/src/interfaces/block-builder.ts +37 -8
  360. package/src/interfaces/client.ts +1 -0
  361. package/src/interfaces/configs.ts +4 -1
  362. package/src/interfaces/l2_logs_source.ts +4 -1
  363. package/src/interfaces/merkle_tree_operations.ts +11 -20
  364. package/src/interfaces/prover-client.ts +3 -6
  365. package/src/interfaces/slasher.ts +0 -6
  366. package/src/interfaces/validator.ts +16 -13
  367. package/src/interfaces/world_state.ts +4 -3
  368. package/src/l1-contracts/index.ts +1 -1
  369. package/src/logs/extended_directional_app_tagging_secret.ts +19 -8
  370. package/src/logs/index.ts +1 -0
  371. package/src/logs/log_filter.ts +5 -0
  372. package/src/logs/log_id.ts +1 -2
  373. package/src/logs/message_context.ts +17 -7
  374. package/src/logs/pending_tagged_log.ts +1 -3
  375. package/src/logs/shared_secret_derivation.ts +21 -10
  376. package/src/logs/siloed_tag.ts +15 -11
  377. package/src/logs/tag.ts +8 -8
  378. package/src/logs/tagging_index_range.ts +24 -0
  379. package/src/logs/tx_scoped_l2_log.ts +16 -0
  380. package/src/messaging/l1_to_l2_message.ts +12 -9
  381. package/src/messaging/l1_to_l2_message_source.ts +3 -1
  382. package/src/messaging/l2_to_l1_membership.ts +98 -33
  383. package/src/noir/index.ts +2 -2
  384. package/src/note/note_dao.ts +1 -4
  385. package/src/p2p/block_proposal.ts +13 -9
  386. package/src/p2p/checkpoint_attestation.ts +5 -9
  387. package/src/p2p/checkpoint_proposal.ts +19 -31
  388. package/src/p2p/gossipable.ts +4 -4
  389. package/src/proofs/chonk_proof.ts +91 -5
  390. package/src/rollup/block_headers_hash.ts +11 -2
  391. package/src/slashing/index.ts +1 -2
  392. package/src/slashing/serialization.ts +1 -81
  393. package/src/slashing/types.ts +3 -35
  394. package/src/slashing/{tally.ts → votes.ts} +1 -1
  395. package/src/tests/factories.ts +6 -43
  396. package/src/tests/mocks.ts +16 -12
  397. package/src/timetable/index.ts +293 -13
  398. package/src/trees/nullifier_leaf.ts +4 -0
  399. package/src/tx/block_header.ts +2 -2
  400. package/src/tx/capsule.ts +10 -2
  401. package/src/tx/fee_provider.ts +10 -0
  402. package/src/tx/global_variable_builder.ts +2 -3
  403. package/src/tx/index.ts +1 -0
  404. package/src/tx/indexed_tx_effect.ts +1 -2
  405. package/src/tx/private_execution_result.ts +5 -5
  406. package/src/tx/profiling.ts +11 -2
  407. package/src/tx/simulated_tx.ts +6 -2
  408. package/src/tx/tx.ts +2 -2
  409. package/src/tx/tx_receipt.ts +17 -15
  410. package/src/tx/validator/error_texts.ts +8 -0
  411. package/src/types/shared.ts +0 -10
  412. package/src/update-checker/package_version.ts +19 -6
  413. package/src/versioning/versioning.ts +4 -1
  414. package/src/vks/verification_key.ts +5 -184
  415. package/src/world-state/genesis_data.ts +15 -0
  416. package/src/world-state/index.ts +1 -0
  417. package/src/world-state/world_state_revision.ts +9 -1
  418. package/dest/abi/mocked_keys.d.ts +0 -2
  419. package/dest/abi/mocked_keys.d.ts.map +0 -1
  420. package/dest/abi/mocked_keys.js +0 -1
  421. package/dest/contract/private_function_membership_proof.d.ts +0 -32
  422. package/dest/contract/private_function_membership_proof.d.ts.map +0 -1
  423. package/dest/contract/private_function_membership_proof.js +0 -124
  424. package/dest/contract/utility_function_membership_proof.d.ts +0 -27
  425. package/dest/contract/utility_function_membership_proof.d.ts.map +0 -1
  426. package/dest/contract/utility_function_membership_proof.js +0 -87
  427. package/dest/l1-contracts/slash_factory.d.ts +0 -45
  428. package/dest/l1-contracts/slash_factory.d.ts.map +0 -1
  429. package/dest/l1-contracts/slash_factory.js +0 -158
  430. package/dest/slashing/empire.d.ts +0 -31
  431. package/dest/slashing/empire.d.ts.map +0 -1
  432. package/dest/slashing/empire.js +0 -87
  433. package/src/abi/mocked_keys.ts +0 -2
  434. package/src/contract/private_function_membership_proof.ts +0 -167
  435. package/src/contract/utility_function_membership_proof.ts +0 -118
  436. package/src/l1-contracts/slash_factory.ts +0 -180
  437. package/src/slashing/empire.ts +0 -104
package/src/tx/capsule.ts CHANGED
@@ -19,6 +19,8 @@ export class Capsule {
19
19
  public readonly storageSlot: Fr,
20
20
  /** Data passed to the contract */
21
21
  public readonly data: Fr[],
22
+ /** Optional namespace for the capsule contents */
23
+ public readonly scope?: AztecAddress,
22
24
  ) {}
23
25
 
24
26
  static get schema() {
@@ -30,12 +32,18 @@ export class Capsule {
30
32
  }
31
33
 
32
34
  toBuffer() {
33
- return serializeToBuffer(this.contractAddress, this.storageSlot, new Vector(this.data));
35
+ return this.scope
36
+ ? serializeToBuffer(this.contractAddress, this.storageSlot, new Vector(this.data), true, this.scope)
37
+ : serializeToBuffer(this.contractAddress, this.storageSlot, new Vector(this.data), false);
34
38
  }
35
39
 
36
40
  static fromBuffer(buffer: Buffer | BufferReader): Capsule {
37
41
  const reader = BufferReader.asReader(buffer);
38
- return new Capsule(AztecAddress.fromBuffer(reader), Fr.fromBuffer(reader), reader.readVector(Fr));
42
+ const contractAddress = AztecAddress.fromBuffer(reader);
43
+ const storageSlot = Fr.fromBuffer(reader);
44
+ const data = reader.readVector(Fr);
45
+ const hasScope = reader.readBoolean();
46
+ return new Capsule(contractAddress, storageSlot, data, hasScope ? AztecAddress.fromBuffer(reader) : undefined);
39
47
  }
40
48
 
41
49
  toString() {
@@ -0,0 +1,10 @@
1
+ import type { ManaUsageEstimate } from '../gas/fee_math.js';
2
+ import type { GasFees } from '../gas/gas_fees.js';
3
+
4
+ /** Provides current and predicted fee information for transaction pricing. */
5
+ export interface FeeProvider {
6
+ /** Returns the current minimum fees for inclusion in the next block. */
7
+ getCurrentMinFees(): Promise<GasFees>;
8
+ /** Returns predicted min fees for each slot in the prediction window. */
9
+ getPredictedMinFees(manaUsage?: ManaUsageEstimate): Promise<GasFees[]>;
10
+ }
@@ -1,8 +1,8 @@
1
+ import type { SimulationOverridesPlan } from '@aztec/ethereum/contracts';
1
2
  import type { EthAddress } from '@aztec/foundation/eth-address';
2
3
  import type { SlotNumber } from '@aztec/foundation/schemas';
3
4
 
4
5
  import type { AztecAddress } from '../aztec-address/index.js';
5
- import type { GasFees } from '../gas/gas_fees.js';
6
6
  import type { UInt32 } from '../types/index.js';
7
7
  import type { CheckpointGlobalVariables, GlobalVariables } from './global_variables.js';
8
8
 
@@ -10,8 +10,6 @@ import type { CheckpointGlobalVariables, GlobalVariables } from './global_variab
10
10
  * Interface for building global variables for Aztec blocks.
11
11
  */
12
12
  export interface GlobalVariableBuilder {
13
- getCurrentMinFees(): Promise<GasFees>;
14
-
15
13
  /**
16
14
  * Builds global variables for a given block.
17
15
  * @param blockNumber - The block number to build global variables for.
@@ -32,5 +30,6 @@ export interface GlobalVariableBuilder {
32
30
  coinbase: EthAddress,
33
31
  feeRecipient: AztecAddress,
34
32
  slotNumber: SlotNumber,
33
+ simulationOverridesPlan?: SimulationOverridesPlan,
35
34
  ): Promise<CheckpointGlobalVariables>;
36
35
  }
package/src/tx/index.ts CHANGED
@@ -24,6 +24,7 @@ export * from './validator/tx_validator.js';
24
24
  export * from './validator/empty_validator.js';
25
25
  export * from './validator/error_texts.js';
26
26
  export * from './capsule.js';
27
+ export * from './fee_provider.js';
27
28
  export * from './global_variable_builder.js';
28
29
  export * from './hashed_values.js';
29
30
  export * from './indexed_tx_effect.js';
@@ -1,5 +1,4 @@
1
1
  import { BlockNumber } from '@aztec/foundation/branded-types';
2
- import { Fr } from '@aztec/foundation/curves/bn254';
3
2
  import { schemas } from '@aztec/foundation/schemas';
4
3
  import { BufferReader, serializeToBuffer } from '@aztec/foundation/serialize';
5
4
 
@@ -27,7 +26,7 @@ export function serializeIndexedTxEffect(effect: IndexedTxEffect): Buffer {
27
26
  export function deserializeIndexedTxEffect(buffer: Buffer): IndexedTxEffect {
28
27
  const reader = BufferReader.asReader(buffer);
29
28
 
30
- const l2BlockHash = new BlockHash(reader.readObject(Fr));
29
+ const l2BlockHash = BlockHash.fromBuffer(reader);
31
30
  const l2BlockNumber = BlockNumber(reader.readNumber());
32
31
  const txIndexInBlock = reader.readNumber();
33
32
  const data = reader.readObject(TxEffect);
@@ -11,7 +11,7 @@ import { PrivateCircuitPublicInputs } from '../kernel/private_circuit_public_inp
11
11
  import type { IsEmpty } from '../kernel/utils/interfaces.js';
12
12
  import { sortByCounter } from '../kernel/utils/order_and_comparison.js';
13
13
  import { ContractClassLog, ContractClassLogFields } from '../logs/contract_class_log.js';
14
- import { type PreTag, PreTagSchema } from '../logs/pre_tag.js';
14
+ import { type TaggingIndexRange, TaggingIndexRangeSchema } from '../logs/tagging_index_range.js';
15
15
  import { Note } from '../note/note.js';
16
16
  import { type ZodFor, mapSchema, schemas } from '../schemas/index.js';
17
17
  import { HashedValues } from './hashed_values.js';
@@ -137,8 +137,8 @@ export class PrivateCallExecutionResult {
137
137
  public returnValues: Fr[],
138
138
  /** The offchain effects emitted during execution of this function call via the `emit_offchain_effect` oracle. */
139
139
  public offchainEffects: { data: Fr[] }[],
140
- /** The pre-tags used in this tx to compute tags for private logs */
141
- public preTags: PreTag[],
140
+ /** The tagging index ranges used in this tx to compute tags for private logs */
141
+ public taggingIndexRanges: TaggingIndexRange[],
142
142
  /** The nested executions. */
143
143
  public nestedExecutionResults: PrivateCallExecutionResult[],
144
144
  /**
@@ -161,7 +161,7 @@ export class PrivateCallExecutionResult {
161
161
  noteHashNullifierCounterMap: mapSchema(z.coerce.number(), z.number()),
162
162
  returnValues: z.array(schemas.Fr),
163
163
  offchainEffects: z.array(z.object({ data: z.array(schemas.Fr) })),
164
- preTags: z.array(PreTagSchema),
164
+ taggingIndexRanges: z.array(TaggingIndexRangeSchema),
165
165
  nestedExecutionResults: z.array(z.lazy(() => PrivateCallExecutionResult.schema)),
166
166
  contractClassLogs: z.array(CountedContractClassLog.schema),
167
167
  })
@@ -178,7 +178,7 @@ export class PrivateCallExecutionResult {
178
178
  fields.noteHashNullifierCounterMap,
179
179
  fields.returnValues,
180
180
  fields.offchainEffects,
181
- fields.preTags,
181
+ fields.taggingIndexRanges,
182
182
  fields.nestedExecutionResults,
183
183
  fields.contractClassLogs,
184
184
  );
@@ -3,6 +3,7 @@ import { type ZodFor, optional, schemas } from '@aztec/foundation/schemas';
3
3
 
4
4
  import { z } from 'zod';
5
5
 
6
+ import { AztecAddress } from '../aztec-address/index.js';
6
7
  import type { AztecNode } from '../interfaces/aztec-node.js';
7
8
  import { type PrivateExecutionStep, PrivateExecutionStepSchema } from '../kernel/private_kernel_prover_output.js';
8
9
 
@@ -160,6 +161,9 @@ export class TxProfileResult {
160
161
  export class UtilityExecutionResult {
161
162
  constructor(
162
163
  public result: Fr[],
164
+ public offchainEffects: { data: Fr[]; contractAddress: AztecAddress }[],
165
+ /** Timestamp of the anchor block used during utility execution. */
166
+ public anchorBlockTimestamp: bigint,
163
167
  public stats?: SimulationStats,
164
168
  ) {}
165
169
 
@@ -167,13 +171,18 @@ export class UtilityExecutionResult {
167
171
  return z
168
172
  .object({
169
173
  result: z.array(schemas.Fr),
174
+ offchainEffects: z.array(z.object({ data: z.array(schemas.Fr), contractAddress: AztecAddress.schema })),
175
+ anchorBlockTimestamp: schemas.BigInt,
170
176
  stats: optional(SimulationStatsSchema),
171
177
  })
172
- .transform(({ result, stats }) => new UtilityExecutionResult(result, stats));
178
+ .transform(
179
+ ({ result, offchainEffects, anchorBlockTimestamp, stats }) =>
180
+ new UtilityExecutionResult(result, offchainEffects, anchorBlockTimestamp, stats),
181
+ );
173
182
  }
174
183
 
175
184
  static random(): UtilityExecutionResult {
176
- return new UtilityExecutionResult([Fr.random()], {
185
+ return new UtilityExecutionResult([Fr.random()], [], 0n, {
177
186
  nodeRPCCalls: {
178
187
  perMethod: { getBlockHeader: { times: [1] } },
179
188
  roundTrips: {
@@ -38,7 +38,11 @@ export type ContractOverrides = Record<
38
38
  * set, it *must* be run without the kernel circuits, or validations will fail
39
39
  */
40
40
  export class SimulationOverrides {
41
- constructor(public contracts?: ContractOverrides) {}
41
+ public contracts?: ContractOverrides;
42
+
43
+ constructor(contracts: ContractOverrides = {}) {
44
+ this.contracts = Object.keys(contracts).length > 0 ? contracts : undefined;
45
+ }
42
46
 
43
47
  static get schema() {
44
48
  return z
@@ -157,7 +161,7 @@ export class TxSimulationResult {
157
161
  }
158
162
 
159
163
  /**
160
- * Recursively accummulate the return values of a call result and its nested executions,
164
+ * Recursively accumulate the return values of a call result and its nested executions,
161
165
  * so they can be retrieved in order.
162
166
  * @param executionResult
163
167
  * @returns
package/src/tx/tx.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { DA_GAS_PER_FIELD, TX_DA_GAS_OVERHEAD } from '@aztec/constants';
2
- import { Buffer32 } from '@aztec/foundation/buffer';
2
+ import { type BaseBuffer32, Buffer32 } from '@aztec/foundation/buffer';
3
3
  import { Fr } from '@aztec/foundation/curves/bn254';
4
4
  import type { ZodFor } from '@aztec/foundation/schemas';
5
5
  import { BufferReader, serializeArrayOfBufferableToVector, serializeToBuffer } from '@aztec/foundation/serialize';
@@ -64,7 +64,7 @@ export class Tx extends Gossipable {
64
64
  // docs:end:tx_class
65
65
 
66
66
  // Gossipable method
67
- override generateP2PMessageIdentifier(): Promise<Buffer32> {
67
+ override generateP2PMessageIdentifier(): Promise<BaseBuffer32> {
68
68
  return Promise.resolve(new Buffer32(this.getTxHash().toBuffer()));
69
69
  }
70
70
 
@@ -1,4 +1,4 @@
1
- import { BlockNumber, BlockNumberSchema } from '@aztec/foundation/branded-types';
1
+ import { BlockNumber, BlockNumberSchema, EpochNumber, EpochNumberSchema } from '@aztec/foundation/branded-types';
2
2
 
3
3
  import { z } from 'zod';
4
4
 
@@ -31,9 +31,16 @@ export const SortedTxStatuses: TxStatus[] = [
31
31
  /** Execution result - only set when tx is in a block. */
32
32
  export enum TxExecutionResult {
33
33
  SUCCESS = 'success',
34
- APP_LOGIC_REVERTED = 'app_logic_reverted',
35
- TEARDOWN_REVERTED = 'teardown_reverted',
36
- BOTH_REVERTED = 'both_reverted',
34
+ REVERTED = 'reverted',
35
+ /** @deprecated Use REVERTED instead. */
36
+ // eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values
37
+ APP_LOGIC_REVERTED = 'reverted',
38
+ /** @deprecated Use REVERTED instead. */
39
+ // eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values
40
+ TEARDOWN_REVERTED = 'reverted',
41
+ /** @deprecated Use REVERTED instead. */
42
+ // eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values
43
+ BOTH_REVERTED = 'reverted',
37
44
  }
38
45
 
39
46
  /**
@@ -58,6 +65,8 @@ export class TxReceipt {
58
65
  public blockHash?: BlockHash,
59
66
  /** The block number in which the transaction was included. */
60
67
  public blockNumber?: BlockNumber,
68
+ /** The epoch number in which the transaction was included. */
69
+ public epochNumber?: EpochNumber,
61
70
  /**
62
71
  * Debug logs collected during public function execution. Served only when the node is in test mode and placed on
63
72
  * the receipt only because it's a convenient place for it (the logs are printed out by the wallet when a mined
@@ -109,6 +118,7 @@ export class TxReceipt {
109
118
  error: z.string().optional(),
110
119
  blockHash: BlockHash.schema.optional(),
111
120
  blockNumber: BlockNumberSchema.optional(),
121
+ epochNumber: EpochNumberSchema.optional(),
112
122
  transactionFee: schemas.BigInt.optional(),
113
123
  debugLogs: z.array(DebugLog.schema).optional(),
114
124
  })
@@ -123,6 +133,7 @@ export class TxReceipt {
123
133
  transactionFee?: bigint;
124
134
  blockHash?: BlockHash;
125
135
  blockNumber?: BlockNumber;
136
+ epochNumber?: EpochNumber;
126
137
  debugLogs?: DebugLog[];
127
138
  }) {
128
139
  return new TxReceipt(
@@ -133,21 +144,12 @@ export class TxReceipt {
133
144
  fields.transactionFee,
134
145
  fields.blockHash,
135
146
  fields.blockNumber,
147
+ fields.epochNumber,
136
148
  fields.debugLogs,
137
149
  );
138
150
  }
139
151
 
140
152
  public static executionResultFromRevertCode(revertCode: RevertCode): TxExecutionResult {
141
- if (revertCode.equals(RevertCode.OK)) {
142
- return TxExecutionResult.SUCCESS;
143
- } else if (revertCode.equals(RevertCode.APP_LOGIC_REVERTED)) {
144
- return TxExecutionResult.APP_LOGIC_REVERTED;
145
- } else if (revertCode.equals(RevertCode.TEARDOWN_REVERTED)) {
146
- return TxExecutionResult.TEARDOWN_REVERTED;
147
- } else if (revertCode.equals(RevertCode.BOTH_REVERTED)) {
148
- return TxExecutionResult.BOTH_REVERTED;
149
- } else {
150
- throw new Error(`Unknown revert code: ${revertCode.getCode()}`);
151
- }
153
+ return revertCode.isOK() ? TxExecutionResult.SUCCESS : TxExecutionResult.REVERTED;
152
154
  }
153
155
  }
@@ -41,5 +41,13 @@ export const TX_ERROR_SIZE_ABOVE_LIMIT = 'Transaction size above size limit';
41
41
  // Block header
42
42
  export const TX_ERROR_BLOCK_HEADER = 'Block header not found';
43
43
 
44
+ // Contract instance
45
+ export const TX_ERROR_INCORRECT_CONTRACT_ADDRESS = 'Incorrect contract instance deployment address';
46
+ export const TX_ERROR_MALFORMED_CONTRACT_INSTANCE_LOG = 'Failed to parse contract instance deployment log';
47
+
48
+ // Contract class
49
+ export const TX_ERROR_INCORRECT_CONTRACT_CLASS_ID = 'Incorrect contract class id';
50
+ export const TX_ERROR_MALFORMED_CONTRACT_CLASS_LOG = 'Failed to parse contract class registration log';
51
+
44
52
  // General
45
53
  export const TX_ERROR_DURING_VALIDATION = 'Unexpected error during validation';
@@ -34,13 +34,3 @@ export type UInt64 = bigint;
34
34
  * A type alias for a 128-bit unsigned integer.
35
35
  */
36
36
  export type UInt128 = bigint;
37
-
38
- /**
39
- * CircuitType replaces ComposerType for now. When using Plonk, CircuitType is equivalent to the information of the proving system that will be used
40
- * to construct a proof. In the future Aztec zk stack, more information must be specified (e.g., the curve over which circuits are constructed;
41
- * Plonk vs Honk; zk-SNARK or just SNARK; etc).
42
- */
43
- export enum CircuitType {
44
- STANDARD = 0,
45
- ULTRA = 1,
46
- }
@@ -3,15 +3,28 @@ import { fileURLToPath } from '@aztec/foundation/url';
3
3
  import { readFileSync } from 'fs';
4
4
  import { dirname, resolve } from 'path';
5
5
 
6
- /** Returns the package version from the release-please manifest, or undefined if not found. */
6
+ /** Returns the package version from the release-please manifest or the package.json, or undefined if not found. */
7
7
  export function getPackageVersion(): string | undefined {
8
+ const dir = dirname(fileURLToPath(import.meta.url));
9
+
10
+ // Try the release-please manifest first (works in dev/repo checkout).
8
11
  try {
9
- const releasePleaseManifestPath = resolve(
10
- dirname(fileURLToPath(import.meta.url)),
11
- '../../../../.release-please-manifest.json',
12
- );
12
+ const releasePleaseManifestPath = resolve(dir, '../../../../.release-please-manifest.json');
13
13
  return JSON.parse(readFileSync(releasePleaseManifestPath).toString())['.'];
14
14
  } catch {
15
- return undefined;
15
+ // Not in a repo checkout, fall through.
16
+ }
17
+
18
+ // Fall back to the stdlib package.json version (works in npm-installed packages).
19
+ try {
20
+ const packageJsonPath = resolve(dir, '../../package.json');
21
+ const version = JSON.parse(readFileSync(packageJsonPath).toString()).version;
22
+ if (version && version !== '0.1.0') {
23
+ return version;
24
+ }
25
+ } catch {
26
+ // No package.json found either.
16
27
  }
28
+
29
+ return undefined;
17
30
  }
@@ -115,7 +115,7 @@ export function validatePartialComponentVersionsMatch(
115
115
  }
116
116
 
117
117
  /** Returns a Koa middleware that injects the versioning info as headers. */
118
- export function getVersioningMiddleware(versions: Partial<ComponentsVersions>) {
118
+ export function getVersioningMiddleware(versions: Partial<ComponentsVersions>, opts?: { packageVersion?: string }) {
119
119
  return async (ctx: Koa.Context, next: () => Promise<void>) => {
120
120
  try {
121
121
  await next();
@@ -128,6 +128,9 @@ export function getVersioningMiddleware(versions: Partial<ComponentsVersions>) {
128
128
  ctx.set(`x-aztec-${key}`, value.toString());
129
129
  }
130
130
  }
131
+ if (opts?.packageVersion) {
132
+ ctx.set('x-aztec-packageVersion', opts.packageVersion);
133
+ }
131
134
  }
132
135
  };
133
136
  }
@@ -1,81 +1,11 @@
1
1
  import { ULTRA_VK_LENGTH_IN_FIELDS } from '@aztec/constants';
2
2
  import { makeTuple } from '@aztec/foundation/array';
3
- import { times } from '@aztec/foundation/collection';
4
- import { Fq, Fr } from '@aztec/foundation/curves/bn254';
3
+ import { Fr } from '@aztec/foundation/curves/bn254';
5
4
  import { bufferSchemaFor } from '@aztec/foundation/schemas';
6
5
  import { BufferReader, serializeToBuffer } from '@aztec/foundation/serialize';
7
6
  import { bufferToHex, hexToBuffer } from '@aztec/foundation/string';
8
7
 
9
8
  import { hashVK } from '../hash/index.js';
10
- import { CircuitType } from '../types/shared.js';
11
-
12
- /**
13
- * Curve data.
14
- */
15
- export class G1AffineElement {
16
- /**
17
- * Element's x coordinate.
18
- */
19
- public x: Fq;
20
- /**
21
- * Element's y coordinate.
22
- */
23
- public y: Fq;
24
-
25
- constructor(x: Fq | bigint, y: Fq | bigint) {
26
- this.x = typeof x === 'bigint' ? new Fq(x) : x;
27
- this.y = typeof y === 'bigint' ? new Fq(y) : y;
28
- }
29
- /**
30
- * Serialize as a buffer.
31
- * @returns The buffer.
32
- */
33
- toBuffer() {
34
- return serializeToBuffer(this.x, this.y);
35
- }
36
-
37
- /**
38
- * Deserializes from a buffer or reader, corresponding to a write in cpp.
39
- * @param buffer - Buffer or BufferReader to read from.
40
- * @returns The G1AffineElement.
41
- */
42
- static fromBuffer(buffer: Buffer | BufferReader): G1AffineElement {
43
- const reader = BufferReader.asReader(buffer);
44
- return new G1AffineElement(Fq.fromBuffer(reader), Fq.fromBuffer(reader));
45
- }
46
- }
47
-
48
- /**
49
- * Used store and serialize a key-value map of commitments where key is the name of the commitment and value is
50
- * the commitment itself. The name can be e.g. Q_1, Q_2, SIGMA_1 etc.
51
- */
52
- export class CommitmentMap {
53
- constructor(
54
- /**
55
- * An object used to store the commitments.
56
- */
57
- public record: { [name: string]: G1AffineElement },
58
- ) {}
59
-
60
- /**
61
- * Serialize as a buffer.
62
- * @returns The buffer.
63
- */
64
- toBuffer() {
65
- const values = Object.entries(this.record);
66
- return serializeToBuffer(values.length, ...values.flat());
67
- }
68
-
69
- /**
70
- * Deserializes from a buffer or reader, corresponding to a write in cpp.
71
- * @param buffer - Buffer or BufferReader to read from.
72
- * @returns The CommitmentMap.
73
- */
74
- static fromBuffer(buffer: Buffer | BufferReader): CommitmentMap {
75
- const reader = BufferReader.asReader(buffer);
76
- return new CommitmentMap(reader.readMap(G1AffineElement));
77
- }
78
- }
79
9
 
80
10
  // TODO: find better home for these constants
81
11
  export const CIRCUIT_SIZE_INDEX = 0;
@@ -169,110 +99,6 @@ export class VerificationKeyAsFields {
169
99
  }
170
100
  }
171
101
 
172
- export class VerificationKey {
173
- constructor(
174
- /**
175
- * For Plonk, this is equivalent to the proving system used to prove and verify.
176
- */
177
- public circuitType: CircuitType,
178
- /**
179
- * The number of gates in this circuit.
180
- */
181
- public circuitSize: number,
182
- /**
183
- * The number of public inputs in this circuit.
184
- */
185
- public numPublicInputs: number,
186
- /**
187
- * The commitments for this circuit.
188
- */
189
- public commitments: Record<string, G1AffineElement>,
190
- /**
191
- * Contains a recursive proof?
192
- */
193
- public containsRecursiveProof: boolean,
194
- /**
195
- * Recursion stack.
196
- */
197
- public recursiveProofPublicInputIndices: number[],
198
- ) {}
199
-
200
- /**
201
- * Serialize as a buffer.
202
- * @returns The buffer.
203
- */
204
- toBuffer() {
205
- return serializeToBuffer(
206
- this.circuitType,
207
- this.circuitSize,
208
- this.numPublicInputs,
209
- new CommitmentMap(this.commitments),
210
- this.containsRecursiveProof,
211
- serializeToBuffer(this.recursiveProofPublicInputIndices.length, this.recursiveProofPublicInputIndices),
212
- );
213
- }
214
-
215
- /**
216
- * Deserializes class from a buffer.
217
- * @returns A VerificationKey instance.
218
- */
219
- static fromBuffer(buffer: Buffer | BufferReader): VerificationKey {
220
- const reader = BufferReader.asReader(buffer);
221
- return new VerificationKey(
222
- reader.readNumber(),
223
- reader.readNumber(),
224
- reader.readNumber(),
225
- reader.readObject(CommitmentMap).record,
226
- reader.readBoolean(),
227
- reader.readNumberVector(),
228
- );
229
- }
230
-
231
- /**
232
- * Builds a fake Rollup Honk verification key that should be accepted by circuits.
233
- * @returns A fake verification key.
234
- */
235
- static makeRollupFake(): VerificationKey {
236
- return new VerificationKey(
237
- CircuitType.ULTRA, // This is entirely arbitrary
238
- 2048,
239
- 116,
240
- {}, // Empty set of commitments
241
- false,
242
- times(16, i => i),
243
- );
244
- }
245
-
246
- /**
247
- * Builds a fake verification key that should be accepted by circuits.
248
- * @returns A fake verification key.
249
- */
250
- static makeFake(): VerificationKey {
251
- return new VerificationKey(
252
- CircuitType.ULTRA, // This is entirely arbitrary
253
- 2048,
254
- 116,
255
- {}, // Empty set of commitments
256
- false,
257
- times(16, i => i),
258
- );
259
- }
260
-
261
- /**
262
- * Builds a fake MegaHonk verification key buffer for testing.
263
- * Uses a real VK from a compiled contract to ensure proper format.
264
- *
265
- * @returns A valid MegaHonk VK buffer (4064 bytes)
266
- */
267
- static makeFakeMegaHonk(): Buffer {
268
- // This is a real MegaFlavor VK from token_contract, base64-encoded
269
- // Size: 4064 bytes (127 fields × 32 bytes)
270
- const vk =
271
- 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANuAAAAAAAAAAAAAAAAAAAAP/2mLzBM1pS5uiSckb1BVHkAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAm2Vy0XXc5bPTwYiCnozAAAAAAAAAAAAAAAAAAAA4m//D/oaIEkcbfvcsY8m3yEAAAAAAAAAAAAAAAAAAAAAAAUtiBCqfomCGC6GywfTDQAAAAAAAAAAAAAAAAAAANedPq+IpIRxcYWtqKNbMcFBAAAAAAAAAAAAAAAAAAAAAAAYqcAnwnFfdxcE/rO/iEMAAAAAAAAAAAAAAAAAAADOpZm7rhU1EjBVJa6+CsG3SwAAAAAAAAAAAAAAAAAAAAAADE3UV3HYY4to5MdMoyhzAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADR5j3OosE3DcjqfYFSVRVvhQAAAAAAAAAAAAAAAAAAAAAAIkOVicHIGw8ySdK6LLsSAAAAAAAAAAAAAAAAAAAAiUo00o971hiazvZDn4Ir9CsAAAAAAAAAAAAAAAAAAAAAADA8czfrc4+po12HYzzeswAAAAAAAAAAAAAAAAAAAGvMegX/lalrKJQkxfczZw2WAAAAAAAAAAAAAAAAAAAAAAAAxDcm91tv2g3iLODg36sAAAAAAAAAAAAAAAAAAAAdCgnXF47JO614WPluZPC0jQAAAAAAAAAAAAAAAAAAAAAAL5tuC04sAZaN5cMkgqp9AAAAAAAAAAAAAAAAAAAAjKmgRRlkp7urvZ42nbdVYlMAAAAAAAAAAAAAAAAAAAAAABRWfiw+hPwePmnYH2zlgAAAAAAAAAAAAAAAAAAAANYJxZ/uz4mfK5Wv9Rm78/s8AAAAAAAAAAAAAAAAAAAAAAADeJJvFQwwx2CWXfRprm4=';
272
- return Buffer.from(vk, 'base64');
273
- }
274
- }
275
-
276
102
  export class VerificationKeyData {
277
103
  constructor(
278
104
  public readonly keyAsFields: VerificationKeyAsFields,
@@ -292,18 +118,13 @@ export class VerificationKeyData {
292
118
  }
293
119
 
294
120
  static makeFakeHonk(): VerificationKeyData {
295
- return new VerificationKeyData(VerificationKeyAsFields.makeFakeHonk(), VerificationKey.makeFake().toBuffer());
121
+ const keyAsFields = VerificationKeyAsFields.makeFakeHonk();
122
+ return new VerificationKeyData(keyAsFields, keyAsFields.toBuffer());
296
123
  }
297
124
 
298
125
  static makeFakeRollupHonk(): VerificationKeyData {
299
- return new VerificationKeyData(
300
- VerificationKeyAsFields.makeFakeRollupHonk(),
301
- VerificationKey.makeRollupFake().toBuffer(),
302
- );
303
- }
304
-
305
- static makeFake(len = ULTRA_VK_LENGTH_IN_FIELDS): VerificationKeyData {
306
- return new VerificationKeyData(VerificationKeyAsFields.makeFake(len), VerificationKey.makeFake().toBuffer());
126
+ const keyAsFields = VerificationKeyAsFields.makeFakeRollupHonk();
127
+ return new VerificationKeyData(keyAsFields, keyAsFields.toBuffer());
307
128
  }
308
129
 
309
130
  /**
@@ -0,0 +1,15 @@
1
+ import type { PublicDataTreeLeaf } from '../trees/index.js';
2
+
3
+ /** Data used to initialize the genesis block, including prefilled public state and an optional timestamp. */
4
+ export type GenesisData = {
5
+ /** Public data tree leaves to pre-populate in the genesis state (e.g. fee juice balances). */
6
+ prefilledPublicData: PublicDataTreeLeaf[];
7
+ /** Timestamp for the genesis block header. Defaults to 0 (canonical empty genesis) in production. */
8
+ genesisTimestamp: bigint;
9
+ };
10
+
11
+ /** An empty genesis data with no prefilled state and a zero timestamp. */
12
+ export const EMPTY_GENESIS_DATA: GenesisData = {
13
+ prefilledPublicData: [],
14
+ genesisTimestamp: 0n,
15
+ };
@@ -1 +1,2 @@
1
+ export * from './genesis_data.js';
1
2
  export * from './world_state_revision.js';
@@ -1,6 +1,14 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  export class WorldStateRevision {
4
+ /**
5
+ * Sentinel `blockNumber` meaning "not pinned to any historical block; use the latest committed
6
+ * state of the underlying tree". Mirrors the `WorldStateRevision::LATEST` constant on the C++
7
+ * side (defined as `std::numeric_limits<uint32_t>::max()`). Distinct from `blockNumber === 0`,
8
+ * which pins to the initial / genesis state.
9
+ */
10
+ public static readonly LATEST = 0xffffffff;
11
+
4
12
  constructor(
5
13
  public readonly forkId: number,
6
14
  public readonly blockNumber: number,
@@ -12,7 +20,7 @@ export class WorldStateRevision {
12
20
  }
13
21
 
14
22
  static empty() {
15
- return new WorldStateRevision(0, 0, false);
23
+ return new WorldStateRevision(0, WorldStateRevision.LATEST, false);
16
24
  }
17
25
 
18
26
  static get schema() {
@@ -1,2 +0,0 @@
1
- export declare const mockVerificationKey = "0000000200000800000000740000000f00000003515f3109623eb3c25aa5b16a1a79fd558bac7a7ce62c4560a8c537c77ce80dd339128d1d37b6582ee9e6df9567efb64313471dfa18f520f9ce53161b50dbf7731bc5f900000003515f322bc4cce83a486a92c92fd59bd84e0f92595baa639fc2ed86b00ffa0dfded2a092a669a3bdb7a273a015eda494457cc7ed5236f26cee330c290d45a33b9daa94800000003515f332729426c008c085a81bd34d8ef12dd31e80130339ef99d50013a89e4558eee6d0fa4ffe2ee7b7b62eb92608b2251ac31396a718f9b34978888789042b790a30100000003515f342be6b6824a913eb7a57b03cb1ee7bfb4de02f2f65fe8a4e97baa7766ddb353a82a8a25c49dc63778cd9fe96173f12a2bc77f3682f4c4448f98f1df82c75234a100000003515f351f85760d6ab567465aadc2f180af9eae3800e6958fec96aef53fd8a7b195d7c000c6267a0dd5cfc22b3fe804f53e266069c0e36f51885baec1e7e67650c62e170000000c515f41524954484d455449430d9d0f8ece2aa12012fa21e6e5c859e97bd5704e5c122064a66051294bc5e04213f61f54a0ebdf6fee4d4a6ecf693478191de0c2899bcd8e86a636c8d3eff43400000003515f43224a99d02c86336737c8dd5b746c40d2be6aead8393889a76a18d664029096e90f7fe81adcc92a74350eada9622ac453f49ebac24a066a1f83b394df54dfa0130000000c515f46495845445f42415345060e8a013ed289c2f9fd7473b04f6594b138ddb4b4cf6b901622a14088f04b8d2c83ff74fce56e3d5573b99c7b26d85d5046ce0c6559506acb7a675e7713eb3a00000007515f4c4f4749430721a91cb8da4b917e054f72147e1760cfe0ef3d45090ac0f4961d84ec1996961a25e787b26bd8b50b1a99450f77a424a83513c2b33af268cd253b0587ff50c700000003515f4d05dbd8623b8652511e1eb38d38887a69eceb082f807514f09e127237c5213b401b9325b48c6c225968002318095f89d0ef9cf629b2b7f0172e03bc39aacf6ed800000007515f52414e474504b57a3805e41df328f5ca9aefa40fad5917391543b7b65c6476e60b8f72e9ad07c92f3b3e11c8feae96dedc4b14a6226ef3201244f37cfc1ee5b96781f48d2b000000075349474d415f3125001d1954a18571eaa007144c5a567bb0d2be4def08a8be918b8c05e3b27d312c59ed41e09e144eab5de77ca89a2fd783be702a47c951d3112e3de02ce6e47c000000075349474d415f3223994e6a23618e60fa01c449a7ab88378709197e186d48d604bfb6931ffb15ad11c5ec7a0700570f80088fd5198ab5d5c227f2ad2a455a6edeec024156bb7beb000000075349474d415f3300cda5845f23468a13275d18bddae27c6bb189cf9aa95b6a03a0cb6688c7e8d829639b45cf8607c525cc400b55ebf90205f2f378626dc3406cc59b2d1b474fba000000075349474d415f342d299e7928496ea2d37f10b43afd6a80c90a33b483090d18069ffa275eedb2fc2f82121e8de43dc036d99b478b6227ceef34248939987a19011f065d8b5cef5c0000000010000000000000000100000002000000030000000400000005000000060000000700000008000000090000000a0000000b0000000c0000000d0000000e0000000f";
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9ja2VkX2tleXMuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9hYmkvbW9ja2VkX2tleXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsZUFBTyxNQUFNLG1CQUFtQixxMUVBQ296RSxDQUFDIn0=
@@ -1 +0,0 @@
1
- {"version":3,"file":"mocked_keys.d.ts","sourceRoot":"","sources":["../../src/abi/mocked_keys.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,q1EACozE,CAAC"}
@@ -1 +0,0 @@
1
- export const mockVerificationKey = '0000000200000800000000740000000f00000003515f3109623eb3c25aa5b16a1a79fd558bac7a7ce62c4560a8c537c77ce80dd339128d1d37b6582ee9e6df9567efb64313471dfa18f520f9ce53161b50dbf7731bc5f900000003515f322bc4cce83a486a92c92fd59bd84e0f92595baa639fc2ed86b00ffa0dfded2a092a669a3bdb7a273a015eda494457cc7ed5236f26cee330c290d45a33b9daa94800000003515f332729426c008c085a81bd34d8ef12dd31e80130339ef99d50013a89e4558eee6d0fa4ffe2ee7b7b62eb92608b2251ac31396a718f9b34978888789042b790a30100000003515f342be6b6824a913eb7a57b03cb1ee7bfb4de02f2f65fe8a4e97baa7766ddb353a82a8a25c49dc63778cd9fe96173f12a2bc77f3682f4c4448f98f1df82c75234a100000003515f351f85760d6ab567465aadc2f180af9eae3800e6958fec96aef53fd8a7b195d7c000c6267a0dd5cfc22b3fe804f53e266069c0e36f51885baec1e7e67650c62e170000000c515f41524954484d455449430d9d0f8ece2aa12012fa21e6e5c859e97bd5704e5c122064a66051294bc5e04213f61f54a0ebdf6fee4d4a6ecf693478191de0c2899bcd8e86a636c8d3eff43400000003515f43224a99d02c86336737c8dd5b746c40d2be6aead8393889a76a18d664029096e90f7fe81adcc92a74350eada9622ac453f49ebac24a066a1f83b394df54dfa0130000000c515f46495845445f42415345060e8a013ed289c2f9fd7473b04f6594b138ddb4b4cf6b901622a14088f04b8d2c83ff74fce56e3d5573b99c7b26d85d5046ce0c6559506acb7a675e7713eb3a00000007515f4c4f4749430721a91cb8da4b917e054f72147e1760cfe0ef3d45090ac0f4961d84ec1996961a25e787b26bd8b50b1a99450f77a424a83513c2b33af268cd253b0587ff50c700000003515f4d05dbd8623b8652511e1eb38d38887a69eceb082f807514f09e127237c5213b401b9325b48c6c225968002318095f89d0ef9cf629b2b7f0172e03bc39aacf6ed800000007515f52414e474504b57a3805e41df328f5ca9aefa40fad5917391543b7b65c6476e60b8f72e9ad07c92f3b3e11c8feae96dedc4b14a6226ef3201244f37cfc1ee5b96781f48d2b000000075349474d415f3125001d1954a18571eaa007144c5a567bb0d2be4def08a8be918b8c05e3b27d312c59ed41e09e144eab5de77ca89a2fd783be702a47c951d3112e3de02ce6e47c000000075349474d415f3223994e6a23618e60fa01c449a7ab88378709197e186d48d604bfb6931ffb15ad11c5ec7a0700570f80088fd5198ab5d5c227f2ad2a455a6edeec024156bb7beb000000075349474d415f3300cda5845f23468a13275d18bddae27c6bb189cf9aa95b6a03a0cb6688c7e8d829639b45cf8607c525cc400b55ebf90205f2f378626dc3406cc59b2d1b474fba000000075349474d415f342d299e7928496ea2d37f10b43afd6a80c90a33b483090d18069ffa275eedb2fc2f82121e8de43dc036d99b478b6227ceef34248939987a19011f065d8b5cef5c0000000010000000000000000100000002000000030000000400000005000000060000000700000008000000090000000a0000000b0000000c0000000d0000000e0000000f';