@aztec/pxe 0.0.1-commit.24de95ac → 0.0.1-commit.2e2504e2

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 (398) hide show
  1. package/dest/bin/check_oracle_version.d.ts +1 -1
  2. package/dest/bin/check_oracle_version.js +105 -15
  3. package/dest/block_synchronizer/block_synchronizer.d.ts +45 -0
  4. package/dest/block_synchronizer/block_synchronizer.d.ts.map +1 -0
  5. package/dest/block_synchronizer/block_synchronizer.js +153 -0
  6. package/dest/block_synchronizer/index.d.ts +2 -0
  7. package/dest/block_synchronizer/index.d.ts.map +1 -0
  8. package/dest/block_synchronizer/index.js +1 -0
  9. package/dest/config/index.d.ts +6 -12
  10. package/dest/config/index.d.ts.map +1 -1
  11. package/dest/config/index.js +24 -13
  12. package/dest/config/package_info.d.ts +1 -1
  13. package/dest/config/package_info.js +1 -1
  14. package/dest/contract_function_simulator/benchmarked_node.d.ts +9 -0
  15. package/dest/contract_function_simulator/benchmarked_node.d.ts.map +1 -0
  16. package/dest/contract_function_simulator/benchmarked_node.js +77 -0
  17. package/dest/contract_function_simulator/contract_function_simulator.d.ts +44 -16
  18. package/dest/contract_function_simulator/contract_function_simulator.d.ts.map +1 -1
  19. package/dest/contract_function_simulator/contract_function_simulator.js +81 -41
  20. package/dest/contract_function_simulator/execution_note_cache.d.ts +25 -14
  21. package/dest/contract_function_simulator/execution_note_cache.d.ts.map +1 -1
  22. package/dest/contract_function_simulator/execution_note_cache.js +59 -34
  23. package/dest/contract_function_simulator/execution_tagging_index_cache.d.ts +2 -2
  24. package/dest/contract_function_simulator/execution_tagging_index_cache.d.ts.map +1 -1
  25. package/dest/contract_function_simulator/execution_tagging_index_cache.js +1 -1
  26. package/dest/contract_function_simulator/hashed_values_cache.d.ts +2 -2
  27. package/dest/contract_function_simulator/hashed_values_cache.d.ts.map +1 -1
  28. package/dest/contract_function_simulator/index.d.ts +2 -2
  29. package/dest/contract_function_simulator/index.d.ts.map +1 -1
  30. package/dest/contract_function_simulator/index.js +1 -1
  31. package/dest/contract_function_simulator/noir-structs/event_validation_request.d.ts +5 -4
  32. package/dest/contract_function_simulator/noir-structs/event_validation_request.d.ts.map +1 -1
  33. package/dest/contract_function_simulator/noir-structs/event_validation_request.js +6 -3
  34. package/dest/contract_function_simulator/noir-structs/log_retrieval_request.d.ts +5 -4
  35. package/dest/contract_function_simulator/noir-structs/log_retrieval_request.d.ts.map +1 -1
  36. package/dest/contract_function_simulator/noir-structs/log_retrieval_request.js +7 -6
  37. package/dest/contract_function_simulator/noir-structs/log_retrieval_response.d.ts +3 -3
  38. package/dest/contract_function_simulator/noir-structs/log_retrieval_response.d.ts.map +1 -1
  39. package/dest/contract_function_simulator/noir-structs/log_retrieval_response.js +1 -1
  40. package/dest/contract_function_simulator/noir-structs/note_validation_request.d.ts +7 -5
  41. package/dest/contract_function_simulator/noir-structs/note_validation_request.d.ts.map +1 -1
  42. package/dest/contract_function_simulator/noir-structs/note_validation_request.js +13 -4
  43. package/dest/contract_function_simulator/noir-structs/utility_context.d.ts +4 -10
  44. package/dest/contract_function_simulator/noir-structs/utility_context.d.ts.map +1 -1
  45. package/dest/contract_function_simulator/noir-structs/utility_context.js +7 -18
  46. package/dest/contract_function_simulator/oracle/index.d.ts +1 -1
  47. package/dest/contract_function_simulator/oracle/interfaces.d.ts +29 -19
  48. package/dest/contract_function_simulator/oracle/interfaces.d.ts.map +1 -1
  49. package/dest/contract_function_simulator/oracle/message_load_oracle_inputs.d.ts +2 -2
  50. package/dest/contract_function_simulator/oracle/message_load_oracle_inputs.d.ts.map +1 -1
  51. package/dest/contract_function_simulator/oracle/message_load_oracle_inputs.js +1 -1
  52. package/dest/contract_function_simulator/oracle/note_packing_utils.d.ts +14 -8
  53. package/dest/contract_function_simulator/oracle/note_packing_utils.d.ts.map +1 -1
  54. package/dest/contract_function_simulator/oracle/note_packing_utils.js +16 -11
  55. package/dest/contract_function_simulator/oracle/oracle.d.ts +14 -11
  56. package/dest/contract_function_simulator/oracle/oracle.d.ts.map +1 -1
  57. package/dest/contract_function_simulator/oracle/oracle.js +90 -50
  58. package/dest/contract_function_simulator/oracle/private_execution.d.ts +2 -27
  59. package/dest/contract_function_simulator/oracle/private_execution.d.ts.map +1 -1
  60. package/dest/contract_function_simulator/oracle/private_execution.js +2 -38
  61. package/dest/contract_function_simulator/oracle/private_execution_oracle.d.ts +38 -33
  62. package/dest/contract_function_simulator/oracle/private_execution_oracle.d.ts.map +1 -1
  63. package/dest/contract_function_simulator/oracle/private_execution_oracle.js +58 -49
  64. package/dest/contract_function_simulator/oracle/utility_execution_oracle.d.ts +84 -30
  65. package/dest/contract_function_simulator/oracle/utility_execution_oracle.d.ts.map +1 -1
  66. package/dest/contract_function_simulator/oracle/utility_execution_oracle.js +170 -68
  67. package/dest/contract_function_simulator/pick_notes.d.ts +2 -2
  68. package/dest/contract_function_simulator/pick_notes.d.ts.map +1 -1
  69. package/dest/contract_function_simulator/pick_notes.js +1 -1
  70. package/dest/contract_function_simulator/proxied_contract_data_source.d.ts +4 -4
  71. package/dest/contract_function_simulator/proxied_contract_data_source.d.ts.map +1 -1
  72. package/dest/contract_function_simulator/proxied_contract_data_source.js +23 -5
  73. package/dest/contract_sync/contract_sync_service.d.ts +41 -0
  74. package/dest/contract_sync/contract_sync_service.d.ts.map +1 -0
  75. package/dest/contract_sync/contract_sync_service.js +82 -0
  76. package/dest/contract_sync/helpers.d.ts +28 -0
  77. package/dest/contract_sync/helpers.d.ts.map +1 -0
  78. package/dest/contract_sync/helpers.js +55 -0
  79. package/dest/debug/pxe_debug_utils.d.ts +41 -0
  80. package/dest/debug/pxe_debug_utils.d.ts.map +1 -0
  81. package/dest/debug/pxe_debug_utils.js +47 -0
  82. package/dest/entrypoints/client/bundle/index.d.ts +1 -2
  83. package/dest/entrypoints/client/bundle/index.d.ts.map +1 -1
  84. package/dest/entrypoints/client/bundle/index.js +0 -1
  85. package/dest/entrypoints/client/bundle/utils.d.ts +1 -1
  86. package/dest/entrypoints/client/bundle/utils.d.ts.map +1 -1
  87. package/dest/entrypoints/client/bundle/utils.js +24 -9
  88. package/dest/entrypoints/client/lazy/index.d.ts +1 -2
  89. package/dest/entrypoints/client/lazy/index.d.ts.map +1 -1
  90. package/dest/entrypoints/client/lazy/index.js +0 -1
  91. package/dest/entrypoints/client/lazy/utils.d.ts +2 -2
  92. package/dest/entrypoints/client/lazy/utils.d.ts.map +1 -1
  93. package/dest/entrypoints/client/lazy/utils.js +25 -10
  94. package/dest/entrypoints/pxe_creation_options.d.ts +7 -3
  95. package/dest/entrypoints/pxe_creation_options.d.ts.map +1 -1
  96. package/dest/entrypoints/server/index.d.ts +4 -2
  97. package/dest/entrypoints/server/index.d.ts.map +1 -1
  98. package/dest/entrypoints/server/index.js +3 -1
  99. package/dest/entrypoints/server/utils.d.ts +1 -1
  100. package/dest/entrypoints/server/utils.d.ts.map +1 -1
  101. package/dest/entrypoints/server/utils.js +31 -27
  102. package/dest/error_enriching.d.ts +4 -4
  103. package/dest/error_enriching.d.ts.map +1 -1
  104. package/dest/error_enriching.js +6 -6
  105. package/dest/events/event_service.d.ts +15 -0
  106. package/dest/events/event_service.d.ts.map +1 -0
  107. package/dest/events/event_service.js +44 -0
  108. package/dest/events/index.d.ts +2 -0
  109. package/dest/events/index.d.ts.map +1 -0
  110. package/dest/events/index.js +1 -0
  111. package/dest/events/private_event_filter_validator.d.ts +9 -0
  112. package/dest/events/private_event_filter_validator.d.ts.map +1 -0
  113. package/dest/events/private_event_filter_validator.js +38 -0
  114. package/dest/job_coordinator/job_coordinator.d.ts +75 -0
  115. package/dest/job_coordinator/job_coordinator.d.ts.map +1 -0
  116. package/dest/job_coordinator/job_coordinator.js +94 -0
  117. package/dest/logs/log_service.d.ts +28 -0
  118. package/dest/logs/log_service.d.ts.map +1 -0
  119. package/dest/logs/log_service.js +123 -0
  120. package/dest/notes/index.d.ts +2 -0
  121. package/dest/notes/index.d.ts.map +1 -0
  122. package/dest/notes/index.js +1 -0
  123. package/dest/notes/note_service.d.ts +48 -0
  124. package/dest/notes/note_service.d.ts.map +1 -0
  125. package/dest/notes/note_service.js +147 -0
  126. package/dest/oracle_version.d.ts +3 -3
  127. package/dest/oracle_version.d.ts.map +1 -1
  128. package/dest/oracle_version.js +4 -3
  129. package/dest/private_kernel/hints/compute_tx_include_by_timestamp.d.ts +1 -1
  130. package/dest/private_kernel/hints/index.d.ts +2 -2
  131. package/dest/private_kernel/hints/index.d.ts.map +1 -1
  132. package/dest/private_kernel/hints/index.js +1 -1
  133. package/dest/private_kernel/hints/private_kernel_reset_private_inputs_builder.d.ts +28 -0
  134. package/dest/private_kernel/hints/private_kernel_reset_private_inputs_builder.d.ts.map +1 -0
  135. package/dest/private_kernel/hints/{build_private_kernel_reset_private_inputs.js → private_kernel_reset_private_inputs_builder.js} +19 -13
  136. package/dest/private_kernel/index.d.ts +1 -1
  137. package/dest/private_kernel/private_kernel_execution_prover.d.ts +3 -2
  138. package/dest/private_kernel/private_kernel_execution_prover.d.ts.map +1 -1
  139. package/dest/private_kernel/private_kernel_execution_prover.js +17 -17
  140. package/dest/private_kernel/private_kernel_oracle.d.ts +26 -29
  141. package/dest/private_kernel/private_kernel_oracle.d.ts.map +1 -1
  142. package/dest/private_kernel/private_kernel_oracle.js +90 -2
  143. package/dest/pxe.d.ts +55 -83
  144. package/dest/pxe.d.ts.map +1 -1
  145. package/dest/pxe.js +207 -243
  146. package/dest/storage/address_store/address_store.d.ts +11 -0
  147. package/dest/storage/address_store/address_store.d.ts.map +1 -0
  148. package/dest/storage/{address_data_provider/address_data_provider.js → address_store/address_store.js} +13 -12
  149. package/dest/storage/address_store/index.d.ts +2 -0
  150. package/dest/storage/address_store/index.d.ts.map +1 -0
  151. package/dest/storage/address_store/index.js +1 -0
  152. package/dest/storage/anchor_block_store/anchor_block_store.d.ts +17 -0
  153. package/dest/storage/anchor_block_store/anchor_block_store.d.ts.map +1 -0
  154. package/dest/storage/{sync_data_provider/sync_data_provider.js → anchor_block_store/anchor_block_store.js} +10 -10
  155. package/dest/storage/anchor_block_store/index.d.ts +2 -0
  156. package/dest/storage/anchor_block_store/index.d.ts.map +1 -0
  157. package/dest/storage/anchor_block_store/index.js +1 -0
  158. package/dest/storage/capsule_store/capsule_store.d.ts +72 -0
  159. package/dest/storage/capsule_store/capsule_store.d.ts.map +1 -0
  160. package/dest/storage/capsule_store/capsule_store.js +253 -0
  161. package/dest/storage/capsule_store/index.d.ts +2 -0
  162. package/dest/storage/capsule_store/index.d.ts.map +1 -0
  163. package/dest/storage/capsule_store/index.js +1 -0
  164. package/dest/storage/{contract_data_provider/contract_data_provider.d.ts → contract_store/contract_store.d.ts} +7 -15
  165. package/dest/storage/contract_store/contract_store.d.ts.map +1 -0
  166. package/dest/storage/{contract_data_provider/contract_data_provider.js → contract_store/contract_store.js} +56 -28
  167. package/dest/storage/contract_store/index.d.ts +2 -0
  168. package/dest/storage/contract_store/index.d.ts.map +1 -0
  169. package/dest/storage/contract_store/index.js +1 -0
  170. package/dest/storage/{contract_data_provider → contract_store}/private_functions_tree.d.ts +1 -1
  171. package/dest/storage/contract_store/private_functions_tree.d.ts.map +1 -0
  172. package/dest/storage/{contract_data_provider → contract_store}/private_functions_tree.js +1 -1
  173. package/dest/storage/index.d.ts +8 -8
  174. package/dest/storage/index.d.ts.map +1 -1
  175. package/dest/storage/index.js +7 -7
  176. package/dest/storage/metadata.d.ts +2 -2
  177. package/dest/storage/metadata.js +1 -1
  178. package/dest/storage/note_store/index.d.ts +3 -0
  179. package/dest/storage/note_store/index.d.ts.map +1 -0
  180. package/dest/storage/note_store/index.js +2 -0
  181. package/dest/storage/note_store/note_store.d.ts +83 -0
  182. package/dest/storage/note_store/note_store.d.ts.map +1 -0
  183. package/dest/storage/note_store/note_store.js +341 -0
  184. package/dest/storage/note_store/stored_note.d.ts +16 -0
  185. package/dest/storage/note_store/stored_note.d.ts.map +1 -0
  186. package/dest/storage/note_store/stored_note.js +43 -0
  187. package/dest/storage/private_event_store/private_event_store.d.ts +91 -0
  188. package/dest/storage/private_event_store/private_event_store.d.ts.map +1 -0
  189. package/dest/storage/private_event_store/private_event_store.js +273 -0
  190. package/dest/storage/private_event_store/stored_private_event.d.ts +23 -0
  191. package/dest/storage/private_event_store/stored_private_event.d.ts.map +1 -0
  192. package/dest/storage/private_event_store/stored_private_event.js +56 -0
  193. package/dest/storage/tagging_store/index.d.ts +4 -0
  194. package/dest/storage/tagging_store/index.d.ts.map +1 -0
  195. package/dest/storage/tagging_store/index.js +3 -0
  196. package/dest/storage/tagging_store/recipient_tagging_store.d.ts +28 -0
  197. package/dest/storage/tagging_store/recipient_tagging_store.d.ts.map +1 -0
  198. package/dest/storage/tagging_store/recipient_tagging_store.js +111 -0
  199. package/dest/storage/tagging_store/sender_address_book_store.d.ts +14 -0
  200. package/dest/storage/tagging_store/sender_address_book_store.d.ts.map +1 -0
  201. package/dest/storage/tagging_store/sender_address_book_store.js +36 -0
  202. package/dest/storage/tagging_store/sender_tagging_store.d.ts +77 -0
  203. package/dest/storage/tagging_store/sender_tagging_store.d.ts.map +1 -0
  204. package/dest/storage/tagging_store/sender_tagging_store.js +348 -0
  205. package/dest/tagging/constants.d.ts +2 -2
  206. package/dest/tagging/constants.d.ts.map +1 -1
  207. package/dest/tagging/constants.js +10 -2
  208. package/dest/tagging/get_all_logs_by_tags.d.ts +24 -0
  209. package/dest/tagging/get_all_logs_by_tags.d.ts.map +1 -0
  210. package/dest/tagging/get_all_logs_by_tags.js +46 -0
  211. package/dest/tagging/index.d.ts +16 -6
  212. package/dest/tagging/index.d.ts.map +1 -1
  213. package/dest/tagging/index.js +15 -5
  214. package/dest/tagging/recipient_sync/load_private_logs_for_sender_recipient_pair.d.ts +15 -0
  215. package/dest/tagging/recipient_sync/load_private_logs_for_sender_recipient_pair.d.ts.map +1 -0
  216. package/dest/tagging/recipient_sync/load_private_logs_for_sender_recipient_pair.js +99 -0
  217. package/dest/tagging/recipient_sync/utils/find_highest_indexes.d.ts +12 -0
  218. package/dest/tagging/recipient_sync/utils/find_highest_indexes.d.ts.map +1 -0
  219. package/dest/tagging/recipient_sync/utils/find_highest_indexes.js +20 -0
  220. package/dest/tagging/recipient_sync/utils/load_logs_for_range.d.ts +15 -0
  221. package/dest/tagging/recipient_sync/utils/load_logs_for_range.d.ts.map +1 -0
  222. package/dest/tagging/recipient_sync/utils/load_logs_for_range.js +32 -0
  223. package/dest/tagging/sender_sync/sync_sender_tagging_indexes.d.ts +21 -0
  224. package/dest/tagging/sender_sync/sync_sender_tagging_indexes.d.ts.map +1 -0
  225. package/dest/tagging/sender_sync/sync_sender_tagging_indexes.js +74 -0
  226. package/dest/tagging/sender_sync/utils/get_status_change_of_pending.d.ts +11 -0
  227. package/dest/tagging/sender_sync/utils/get_status_change_of_pending.d.ts.map +1 -0
  228. package/dest/tagging/sender_sync/utils/get_status_change_of_pending.js +29 -0
  229. package/dest/tagging/sender_sync/utils/load_and_store_new_tagging_indexes.d.ts +21 -0
  230. package/dest/tagging/sender_sync/utils/load_and_store_new_tagging_indexes.d.ts.map +1 -0
  231. package/dest/tagging/sender_sync/utils/load_and_store_new_tagging_indexes.js +60 -0
  232. package/package.json +29 -19
  233. package/src/bin/check_oracle_version.ts +131 -20
  234. package/src/block_synchronizer/block_synchronizer.ts +178 -0
  235. package/src/block_synchronizer/index.ts +1 -0
  236. package/src/config/index.ts +24 -25
  237. package/src/config/package_info.ts +1 -1
  238. package/src/contract_function_simulator/benchmarked_node.ts +103 -0
  239. package/src/contract_function_simulator/contract_function_simulator.ts +131 -43
  240. package/src/contract_function_simulator/execution_note_cache.ts +58 -28
  241. package/src/contract_function_simulator/execution_tagging_index_cache.ts +1 -1
  242. package/src/contract_function_simulator/hashed_values_cache.ts +1 -1
  243. package/src/contract_function_simulator/index.ts +1 -1
  244. package/src/contract_function_simulator/noir-structs/event_validation_request.ts +6 -2
  245. package/src/contract_function_simulator/noir-structs/log_retrieval_request.ts +6 -5
  246. package/src/contract_function_simulator/noir-structs/log_retrieval_response.ts +2 -2
  247. package/src/contract_function_simulator/noir-structs/note_validation_request.ts +15 -3
  248. package/src/contract_function_simulator/noir-structs/utility_context.ts +6 -25
  249. package/src/contract_function_simulator/oracle/interfaces.ts +42 -17
  250. package/src/contract_function_simulator/oracle/message_load_oracle_inputs.ts +1 -1
  251. package/src/contract_function_simulator/oracle/note_packing_utils.ts +30 -14
  252. package/src/contract_function_simulator/oracle/oracle.ts +108 -46
  253. package/src/contract_function_simulator/oracle/private_execution.ts +2 -68
  254. package/src/contract_function_simulator/oracle/private_execution_oracle.ts +135 -60
  255. package/src/contract_function_simulator/oracle/utility_execution_oracle.ts +261 -75
  256. package/src/contract_function_simulator/pick_notes.ts +1 -1
  257. package/src/contract_function_simulator/proxied_contract_data_source.ts +24 -7
  258. package/src/contract_sync/contract_sync_service.ts +129 -0
  259. package/src/contract_sync/helpers.ts +93 -0
  260. package/src/debug/pxe_debug_utils.ts +63 -0
  261. package/src/entrypoints/client/bundle/index.ts +0 -1
  262. package/src/entrypoints/client/bundle/utils.ts +16 -17
  263. package/src/entrypoints/client/lazy/index.ts +0 -1
  264. package/src/entrypoints/client/lazy/utils.ts +17 -18
  265. package/src/entrypoints/pxe_creation_options.ts +6 -2
  266. package/src/entrypoints/server/index.ts +3 -1
  267. package/src/entrypoints/server/utils.ts +27 -49
  268. package/src/error_enriching.ts +7 -15
  269. package/src/events/event_service.ts +71 -0
  270. package/src/events/index.ts +1 -0
  271. package/src/events/private_event_filter_validator.ts +46 -0
  272. package/src/job_coordinator/job_coordinator.ts +150 -0
  273. package/src/logs/log_service.ts +220 -0
  274. package/src/notes/index.ts +1 -0
  275. package/src/notes/note_service.ts +195 -0
  276. package/src/oracle_version.ts +4 -3
  277. package/src/private_kernel/hints/index.ts +1 -1
  278. package/src/private_kernel/hints/{build_private_kernel_reset_private_inputs.ts → private_kernel_reset_private_inputs_builder.ts} +38 -31
  279. package/src/private_kernel/private_kernel_execution_prover.ts +21 -24
  280. package/src/private_kernel/private_kernel_oracle.ts +118 -37
  281. package/src/pxe.ts +291 -318
  282. package/src/storage/{address_data_provider/address_data_provider.ts → address_store/address_store.ts} +16 -16
  283. package/src/storage/address_store/index.ts +1 -0
  284. package/src/storage/{sync_data_provider/sync_data_provider.ts → anchor_block_store/anchor_block_store.ts} +10 -11
  285. package/src/storage/anchor_block_store/index.ts +1 -0
  286. package/src/storage/capsule_store/capsule_store.ts +315 -0
  287. package/src/storage/capsule_store/index.ts +1 -0
  288. package/src/storage/{contract_data_provider/contract_data_provider.ts → contract_store/contract_store.ts} +67 -31
  289. package/src/storage/contract_store/index.ts +1 -0
  290. package/src/storage/{contract_data_provider → contract_store}/private_functions_tree.ts +1 -1
  291. package/src/storage/index.ts +7 -7
  292. package/src/storage/metadata.ts +1 -1
  293. package/src/storage/note_store/index.ts +2 -0
  294. package/src/storage/note_store/note_store.ts +411 -0
  295. package/src/storage/note_store/stored_note.ts +48 -0
  296. package/src/storage/private_event_store/private_event_store.ts +384 -0
  297. package/src/storage/private_event_store/stored_private_event.ts +73 -0
  298. package/src/storage/tagging_store/index.ts +3 -0
  299. package/src/storage/tagging_store/recipient_tagging_store.ts +139 -0
  300. package/src/storage/tagging_store/sender_address_book_store.ts +48 -0
  301. package/src/storage/tagging_store/sender_tagging_store.ts +429 -0
  302. package/src/tagging/constants.ts +10 -2
  303. package/src/tagging/get_all_logs_by_tags.ts +68 -0
  304. package/src/tagging/index.ts +18 -5
  305. package/src/tagging/recipient_sync/load_private_logs_for_sender_recipient_pair.ts +143 -0
  306. package/src/tagging/recipient_sync/utils/find_highest_indexes.ts +34 -0
  307. package/src/tagging/recipient_sync/utils/load_logs_for_range.ts +49 -0
  308. package/src/tagging/sender_sync/sync_sender_tagging_indexes.ts +99 -0
  309. package/src/tagging/sender_sync/utils/get_status_change_of_pending.ts +36 -0
  310. package/src/tagging/sender_sync/utils/load_and_store_new_tagging_indexes.ts +84 -0
  311. package/dest/contract_function_simulator/execution_data_provider.d.ts +0 -274
  312. package/dest/contract_function_simulator/execution_data_provider.d.ts.map +0 -1
  313. package/dest/contract_function_simulator/execution_data_provider.js +0 -14
  314. package/dest/contract_function_simulator/proxied_node.d.ts +0 -9
  315. package/dest/contract_function_simulator/proxied_node.d.ts.map +0 -1
  316. package/dest/contract_function_simulator/proxied_node.js +0 -27
  317. package/dest/contract_function_simulator/pxe_oracle_interface.d.ts +0 -122
  318. package/dest/contract_function_simulator/pxe_oracle_interface.d.ts.map +0 -1
  319. package/dest/contract_function_simulator/pxe_oracle_interface.js +0 -701
  320. package/dest/private_kernel/hints/build_private_kernel_reset_private_inputs.d.ts +0 -28
  321. package/dest/private_kernel/hints/build_private_kernel_reset_private_inputs.d.ts.map +0 -1
  322. package/dest/private_kernel/private_kernel_oracle_impl.d.ts +0 -45
  323. package/dest/private_kernel/private_kernel_oracle_impl.d.ts.map +0 -1
  324. package/dest/private_kernel/private_kernel_oracle_impl.js +0 -86
  325. package/dest/storage/address_data_provider/address_data_provider.d.ts +0 -11
  326. package/dest/storage/address_data_provider/address_data_provider.d.ts.map +0 -1
  327. package/dest/storage/address_data_provider/index.d.ts +0 -2
  328. package/dest/storage/address_data_provider/index.d.ts.map +0 -1
  329. package/dest/storage/address_data_provider/index.js +0 -1
  330. package/dest/storage/capsule_data_provider/capsule_data_provider.d.ts +0 -25
  331. package/dest/storage/capsule_data_provider/capsule_data_provider.d.ts.map +0 -1
  332. package/dest/storage/capsule_data_provider/capsule_data_provider.js +0 -118
  333. package/dest/storage/capsule_data_provider/index.d.ts +0 -2
  334. package/dest/storage/capsule_data_provider/index.d.ts.map +0 -1
  335. package/dest/storage/capsule_data_provider/index.js +0 -1
  336. package/dest/storage/contract_data_provider/contract_data_provider.d.ts.map +0 -1
  337. package/dest/storage/contract_data_provider/index.d.ts +0 -2
  338. package/dest/storage/contract_data_provider/index.d.ts.map +0 -1
  339. package/dest/storage/contract_data_provider/index.js +0 -1
  340. package/dest/storage/contract_data_provider/private_functions_tree.d.ts.map +0 -1
  341. package/dest/storage/note_data_provider/index.d.ts +0 -3
  342. package/dest/storage/note_data_provider/index.d.ts.map +0 -1
  343. package/dest/storage/note_data_provider/index.js +0 -2
  344. package/dest/storage/note_data_provider/note_dao.d.ts +0 -100
  345. package/dest/storage/note_data_provider/note_dao.d.ts.map +0 -1
  346. package/dest/storage/note_data_provider/note_dao.js +0 -102
  347. package/dest/storage/note_data_provider/note_data_provider.d.ts +0 -83
  348. package/dest/storage/note_data_provider/note_data_provider.d.ts.map +0 -1
  349. package/dest/storage/note_data_provider/note_data_provider.js +0 -308
  350. package/dest/storage/private_event_data_provider/private_event_data_provider.d.ts +0 -43
  351. package/dest/storage/private_event_data_provider/private_event_data_provider.d.ts.map +0 -1
  352. package/dest/storage/private_event_data_provider/private_event_data_provider.js +0 -104
  353. package/dest/storage/sync_data_provider/index.d.ts +0 -2
  354. package/dest/storage/sync_data_provider/index.d.ts.map +0 -1
  355. package/dest/storage/sync_data_provider/index.js +0 -1
  356. package/dest/storage/sync_data_provider/sync_data_provider.d.ts +0 -10
  357. package/dest/storage/sync_data_provider/sync_data_provider.d.ts.map +0 -1
  358. package/dest/storage/tagging_data_provider/index.d.ts +0 -2
  359. package/dest/storage/tagging_data_provider/index.d.ts.map +0 -1
  360. package/dest/storage/tagging_data_provider/index.js +0 -1
  361. package/dest/storage/tagging_data_provider/tagging_data_provider.d.ts +0 -40
  362. package/dest/storage/tagging_data_provider/tagging_data_provider.d.ts.map +0 -1
  363. package/dest/storage/tagging_data_provider/tagging_data_provider.js +0 -89
  364. package/dest/synchronizer/index.d.ts +0 -2
  365. package/dest/synchronizer/index.d.ts.map +0 -1
  366. package/dest/synchronizer/index.js +0 -1
  367. package/dest/synchronizer/synchronizer.d.ts +0 -35
  368. package/dest/synchronizer/synchronizer.d.ts.map +0 -1
  369. package/dest/synchronizer/synchronizer.js +0 -101
  370. package/dest/tagging/siloed_tag.d.ts +0 -14
  371. package/dest/tagging/siloed_tag.d.ts.map +0 -1
  372. package/dest/tagging/siloed_tag.js +0 -20
  373. package/dest/tagging/tag.d.ts +0 -12
  374. package/dest/tagging/tag.d.ts.map +0 -1
  375. package/dest/tagging/tag.js +0 -17
  376. package/dest/tagging/utils.d.ts +0 -18
  377. package/dest/tagging/utils.d.ts.map +0 -1
  378. package/dest/tagging/utils.js +0 -24
  379. package/src/contract_function_simulator/execution_data_provider.ts +0 -343
  380. package/src/contract_function_simulator/proxied_node.ts +0 -33
  381. package/src/contract_function_simulator/pxe_oracle_interface.ts +0 -1019
  382. package/src/private_kernel/private_kernel_oracle_impl.ts +0 -132
  383. package/src/storage/address_data_provider/index.ts +0 -1
  384. package/src/storage/capsule_data_provider/capsule_data_provider.ts +0 -147
  385. package/src/storage/capsule_data_provider/index.ts +0 -1
  386. package/src/storage/contract_data_provider/index.ts +0 -1
  387. package/src/storage/note_data_provider/index.ts +0 -2
  388. package/src/storage/note_data_provider/note_dao.ts +0 -154
  389. package/src/storage/note_data_provider/note_data_provider.ts +0 -393
  390. package/src/storage/private_event_data_provider/private_event_data_provider.ts +0 -148
  391. package/src/storage/sync_data_provider/index.ts +0 -1
  392. package/src/storage/tagging_data_provider/index.ts +0 -1
  393. package/src/storage/tagging_data_provider/tagging_data_provider.ts +0 -120
  394. package/src/synchronizer/index.ts +0 -1
  395. package/src/synchronizer/synchronizer.ts +0 -120
  396. package/src/tagging/siloed_tag.ts +0 -22
  397. package/src/tagging/tag.ts +0 -16
  398. package/src/tagging/utils.ts +0 -31
@@ -1,10 +1,12 @@
1
- import { Fr, Point } from '@aztec/foundation/fields';
1
+ import { BlockNumber } from '@aztec/foundation/branded-types';
2
+ import { Fr } from '@aztec/foundation/curves/bn254';
3
+ import { Point } from '@aztec/foundation/curves/grumpkin';
2
4
  import { arrayOfArraysToBoundedVecOfArrays, bufferToBoundedVec, fromUintArray, fromUintBoundedVec, toACVMField } from '@aztec/simulator/client';
3
5
  import { FunctionSelector, NoteSelector } from '@aztec/stdlib/abi';
4
6
  import { AztecAddress } from '@aztec/stdlib/aztec-address';
7
+ import { BlockHash } from '@aztec/stdlib/block';
5
8
  import { ContractClassLog, ContractClassLogFields } from '@aztec/stdlib/logs';
6
- import { MerkleTreeId } from '@aztec/stdlib/trees';
7
- import { packAsRetrievedNote } from './note_packing_utils.js';
9
+ import { packAsHintedNote } from './note_packing_utils.js';
8
10
  export class UnavailableOracleError extends Error {
9
11
  constructor(oracleName){
10
12
  super(`${oracleName} oracles not available with the current handler`);
@@ -74,8 +76,7 @@ export class UnavailableOracleError extends Error {
74
76
  toACVMField(val)
75
77
  ]);
76
78
  }
77
- // Since the argument is a slice, noir automatically adds a length field to oracle call.
78
- privateStoreInExecutionCache(_length, values, [hash]) {
79
+ privateStoreInExecutionCache(values, [hash]) {
79
80
  this.handlerAsPrivate().privateStoreInExecutionCache(values.map(Fr.fromString), Fr.fromString(hash));
80
81
  return Promise.resolve([]);
81
82
  }
@@ -85,9 +86,9 @@ export class UnavailableOracleError extends Error {
85
86
  values.map(toACVMField)
86
87
  ];
87
88
  }
88
- async utilityGetUtilityContext() {
89
- const context = await this.handlerAsUtility().utilityGetUtilityContext();
90
- return context.toNoirRepresentation();
89
+ utilityGetUtilityContext() {
90
+ const context = this.handlerAsUtility().utilityGetUtilityContext();
91
+ return Promise.resolve(context.toNoirRepresentation());
91
92
  }
92
93
  async utilityGetKeyValidationRequest([pkMHash]) {
93
94
  const keyValidationRequest = await this.handlerAsUtility().utilityGetKeyValidationRequest(Fr.fromString(pkMHash));
@@ -103,49 +104,54 @@ export class UnavailableOracleError extends Error {
103
104
  ...instance.publicKeys.toFields()
104
105
  ].map(toACVMField);
105
106
  }
106
- async utilityGetMembershipWitness([blockNumber], [treeId], [leafValue]) {
107
- const parsedBlockNumber = Fr.fromString(blockNumber).toNumber();
108
- const parsedTreeId = Fr.fromString(treeId).toNumber();
109
- const parsedLeafValue = Fr.fromString(leafValue);
110
- const witness = await this.handlerAsUtility().utilityGetMembershipWitness(parsedBlockNumber, parsedTreeId, parsedLeafValue);
107
+ async utilityGetNoteHashMembershipWitness([anchorBlockHash], [noteHash]) {
108
+ const parsedAnchorBlockHash = BlockHash.fromString(anchorBlockHash);
109
+ const parsedNoteHash = Fr.fromString(noteHash);
110
+ const witness = await this.handlerAsUtility().utilityGetNoteHashMembershipWitness(parsedAnchorBlockHash, parsedNoteHash);
111
111
  if (!witness) {
112
- throw new Error(`Leaf ${leafValue} not found in the tree ${MerkleTreeId[parsedTreeId]} at block ${parsedBlockNumber}.`);
112
+ throw new Error(`Note hash ${noteHash} not found in the note hash tree at anchor block hash ${parsedAnchorBlockHash.toString()}.`);
113
113
  }
114
- return [
115
- toACVMField(witness[0]),
116
- witness.slice(1).map(toACVMField)
117
- ];
114
+ return witness.toNoirRepresentation();
118
115
  }
119
- async utilityGetNullifierMembershipWitness([blockNumber], [nullifier]) {
120
- const parsedBlockNumber = Fr.fromString(blockNumber).toNumber();
116
+ async utilityGetBlockHashMembershipWitness([anchorBlockHash], [blockHash]) {
117
+ const parsedAnchorBlockHash = BlockHash.fromString(anchorBlockHash);
118
+ const parsedBlockHash = BlockHash.fromString(blockHash);
119
+ const witness = await this.handlerAsUtility().utilityGetBlockHashMembershipWitness(parsedAnchorBlockHash, parsedBlockHash);
120
+ if (!witness) {
121
+ throw new Error(`Block hash ${parsedBlockHash.toString()} not found in the archive tree at anchor block ${parsedAnchorBlockHash.toString()}.`);
122
+ }
123
+ return witness.toNoirRepresentation();
124
+ }
125
+ async utilityGetNullifierMembershipWitness([blockHash], [nullifier]) {
126
+ const parsedBlockHash = BlockHash.fromString(blockHash);
121
127
  const parsedNullifier = Fr.fromString(nullifier);
122
- const witness = await this.handlerAsUtility().utilityGetNullifierMembershipWitness(parsedBlockNumber, parsedNullifier);
128
+ const witness = await this.handlerAsUtility().utilityGetNullifierMembershipWitness(parsedBlockHash, parsedNullifier);
123
129
  if (!witness) {
124
- throw new Error(`Nullifier witness not found for nullifier ${parsedNullifier} at block ${parsedBlockNumber}.`);
130
+ throw new Error(`Nullifier witness not found for nullifier ${parsedNullifier} at block hash ${parsedBlockHash.toString()}.`);
125
131
  }
126
132
  return witness.toNoirRepresentation();
127
133
  }
128
- async utilityGetLowNullifierMembershipWitness([blockNumber], [nullifier]) {
129
- const parsedBlockNumber = Fr.fromString(blockNumber).toNumber();
134
+ async utilityGetLowNullifierMembershipWitness([blockHash], [nullifier]) {
135
+ const parsedBlockHash = BlockHash.fromString(blockHash);
130
136
  const parsedNullifier = Fr.fromString(nullifier);
131
- const witness = await this.handlerAsUtility().utilityGetLowNullifierMembershipWitness(parsedBlockNumber, parsedNullifier);
137
+ const witness = await this.handlerAsUtility().utilityGetLowNullifierMembershipWitness(parsedBlockHash, parsedNullifier);
132
138
  if (!witness) {
133
- throw new Error(`Low nullifier witness not found for nullifier ${parsedNullifier} at block ${parsedBlockNumber}.`);
139
+ throw new Error(`Low nullifier witness not found for nullifier ${parsedNullifier} at block hash ${parsedBlockHash.toString()}.`);
134
140
  }
135
141
  return witness.toNoirRepresentation();
136
142
  }
137
- async utilityGetPublicDataWitness([blockNumber], [leafSlot]) {
138
- const parsedBlockNumber = Fr.fromString(blockNumber).toNumber();
143
+ async utilityGetPublicDataWitness([blockHash], [leafSlot]) {
144
+ const parsedBlockHash = BlockHash.fromString(blockHash);
139
145
  const parsedLeafSlot = Fr.fromString(leafSlot);
140
- const witness = await this.handlerAsUtility().utilityGetPublicDataWitness(parsedBlockNumber, parsedLeafSlot);
146
+ const witness = await this.handlerAsUtility().utilityGetPublicDataWitness(parsedBlockHash, parsedLeafSlot);
141
147
  if (!witness) {
142
- throw new Error(`Public data witness not found for slot ${parsedLeafSlot} at block ${parsedBlockNumber}.`);
148
+ throw new Error(`Public data witness not found for slot ${parsedLeafSlot} at block hash ${parsedBlockHash.toString()}.`);
143
149
  }
144
150
  return witness.toNoirRepresentation();
145
151
  }
146
152
  async utilityGetBlockHeader([blockNumber]) {
147
153
  const parsedBlockNumber = Fr.fromString(blockNumber).toNumber();
148
- const header = await this.handlerAsUtility().utilityGetBlockHeader(parsedBlockNumber);
154
+ const header = await this.handlerAsUtility().utilityGetBlockHeader(BlockNumber(parsedBlockNumber));
149
155
  if (!header) {
150
156
  throw new Error(`Block header not found for block ${parsedBlockNumber}.`);
151
157
  }
@@ -161,26 +167,48 @@ export class UnavailableOracleError extends Error {
161
167
  witness.map(toACVMField)
162
168
  ];
163
169
  }
164
- async utilityGetPublicKeysAndPartialAddress([address]) {
170
+ async utilityTryGetPublicKeysAndPartialAddress([address]) {
165
171
  const parsedAddress = AztecAddress.fromField(Fr.fromString(address));
166
- const { publicKeys, partialAddress } = await this.handlerAsUtility().utilityGetPublicKeysAndPartialAddress(parsedAddress);
167
- return [
168
- [
169
- ...publicKeys.toFields(),
170
- partialAddress
171
- ].map(toACVMField)
172
- ];
172
+ const result = await this.handlerAsUtility().utilityTryGetPublicKeysAndPartialAddress(parsedAddress);
173
+ // We are going to return a Noir Option struct to represent the possibility of null values. Options are a struct
174
+ // with two fields: `some` (a boolean) and `value` (a field array in this case).
175
+ if (result === undefined) {
176
+ // No data was found so we set `some` to 0 and pad `value` with zeros get the correct return size.
177
+ return [
178
+ toACVMField(0),
179
+ Array(13).fill(toACVMField(0))
180
+ ];
181
+ } else {
182
+ // Data was found so we set `some` to 1 and return it along with `value`.
183
+ return [
184
+ toACVMField(1),
185
+ [
186
+ ...result.publicKeys.toFields(),
187
+ result.partialAddress
188
+ ].map(toACVMField)
189
+ ];
190
+ }
173
191
  }
174
- async utilityGetNotes([storageSlot], [numSelects], selectByIndexes, selectByOffsets, selectByLengths, selectValues, selectComparators, sortByIndexes, sortByOffsets, sortByLengths, sortOrder, [limit], [offset], [status], [maxNotes], [packedRetrievedNoteLength]) {
175
- const noteDatas = await this.handlerAsUtility().utilityGetNotes(Fr.fromString(storageSlot), +numSelects, selectByIndexes.map((s)=>+s), selectByOffsets.map((s)=>+s), selectByLengths.map((s)=>+s), selectValues.map(Fr.fromString), selectComparators.map((s)=>+s), sortByIndexes.map((s)=>+s), sortByOffsets.map((s)=>+s), sortByLengths.map((s)=>+s), sortOrder.map((s)=>+s), +limit, +offset, +status);
176
- const returnDataAsArrayOfPackedRetrievedNotes = noteDatas.map(packAsRetrievedNote);
192
+ async utilityGetNotes([ownerSome], [ownerValue], [storageSlot], [numSelects], selectByIndexes, selectByOffsets, selectByLengths, selectValues, selectComparators, sortByIndexes, sortByOffsets, sortByLengths, sortOrder, [limit], [offset], [status], [maxNotes], [packedHintedNoteLength]) {
193
+ // Parse Option<AztecAddress>: ownerSome is 0 for None, 1 for Some
194
+ const owner = Fr.fromString(ownerSome).toNumber() === 1 ? AztecAddress.fromString(ownerValue) : undefined;
195
+ const noteDatas = await this.handlerAsUtility().utilityGetNotes(owner, Fr.fromString(storageSlot), +numSelects, selectByIndexes.map((s)=>+s), selectByOffsets.map((s)=>+s), selectByLengths.map((s)=>+s), selectValues.map(Fr.fromString), selectComparators.map((s)=>+s), sortByIndexes.map((s)=>+s), sortByOffsets.map((s)=>+s), sortByLengths.map((s)=>+s), sortOrder.map((s)=>+s), +limit, +offset, +status);
196
+ const returnDataAsArrayOfPackedHintedNotes = noteDatas.map((noteData)=>packAsHintedNote({
197
+ contractAddress: noteData.contractAddress,
198
+ owner: noteData.owner,
199
+ randomness: noteData.randomness,
200
+ storageSlot: noteData.storageSlot,
201
+ noteNonce: noteData.noteNonce,
202
+ isPending: noteData.isPending,
203
+ note: noteData.note
204
+ }));
177
205
  // Now we convert each sub-array to an array of ACVMField
178
- const returnDataAsArrayOfACVMFieldArrays = returnDataAsArrayOfPackedRetrievedNotes.map((subArray)=>subArray.map(toACVMField));
206
+ const returnDataAsArrayOfACVMFieldArrays = returnDataAsArrayOfPackedHintedNotes.map((subArray)=>subArray.map(toACVMField));
179
207
  // At last we convert the array of arrays to a bounded vec of arrays
180
- return arrayOfArraysToBoundedVecOfArrays(returnDataAsArrayOfACVMFieldArrays, +maxNotes, +packedRetrievedNoteLength);
208
+ return arrayOfArraysToBoundedVecOfArrays(returnDataAsArrayOfACVMFieldArrays, +maxNotes, +packedHintedNoteLength);
181
209
  }
182
- privateNotifyCreatedNote([storageSlot], [noteTypeId], note, [noteHash], [counter]) {
183
- this.handlerAsPrivate().privateNotifyCreatedNote(Fr.fromString(storageSlot), NoteSelector.fromField(Fr.fromString(noteTypeId)), note.map(Fr.fromString), Fr.fromString(noteHash), +counter);
210
+ privateNotifyCreatedNote([owner], [storageSlot], [randomness], [noteTypeId], note, [noteHash], [counter]) {
211
+ this.handlerAsPrivate().privateNotifyCreatedNote(AztecAddress.fromString(owner), Fr.fromString(storageSlot), Fr.fromString(randomness), NoteSelector.fromField(Fr.fromString(noteTypeId)), note.map(Fr.fromString), Fr.fromString(noteHash), +counter);
184
212
  return Promise.resolve([]);
185
213
  }
186
214
  async privateNotifyNullifiedNote([innerNullifier], [noteHash], [counter]) {
@@ -191,6 +219,12 @@ export class UnavailableOracleError extends Error {
191
219
  await this.handlerAsPrivate().privateNotifyCreatedNullifier(Fr.fromString(innerNullifier));
192
220
  return [];
193
221
  }
222
+ async privateIsNullifierPending([innerNullifier], [contractAddress]) {
223
+ const isPending = await this.handlerAsPrivate().privateIsNullifierPending(Fr.fromString(innerNullifier), AztecAddress.fromString(contractAddress));
224
+ return [
225
+ toACVMField(isPending)
226
+ ];
227
+ }
194
228
  async utilityCheckNullifierExists([innerNullifier]) {
195
229
  const exists = await this.handlerAsUtility().utilityCheckNullifierExists(Fr.fromString(innerNullifier));
196
230
  return [
@@ -201,8 +235,8 @@ export class UnavailableOracleError extends Error {
201
235
  const message = await this.handlerAsUtility().utilityGetL1ToL2MembershipWitness(AztecAddress.fromString(contractAddress), Fr.fromString(messageHash), Fr.fromString(secret));
202
236
  return message.toNoirRepresentation();
203
237
  }
204
- async utilityStorageRead([contractAddress], [startStorageSlot], [blockNumber], [numberOfElements]) {
205
- const values = await this.handlerAsUtility().utilityStorageRead(new AztecAddress(Fr.fromString(contractAddress)), Fr.fromString(startStorageSlot), +blockNumber, +numberOfElements);
238
+ async utilityStorageRead([blockHash], [contractAddress], [startStorageSlot], [numberOfElements]) {
239
+ const values = await this.handlerAsUtility().utilityStorageRead(BlockHash.fromString(blockHash), new AztecAddress(Fr.fromString(contractAddress)), Fr.fromString(startStorageSlot), +numberOfElements);
206
240
  return [
207
241
  values.map(toACVMField)
208
242
  ];
@@ -243,6 +277,12 @@ export class UnavailableOracleError extends Error {
243
277
  await this.handlerAsPrivate().privateNotifySetMinRevertibleSideEffectCounter(Fr.fromString(minRevertibleSideEffectCounter).toNumber());
244
278
  return Promise.resolve([]);
245
279
  }
280
+ async privateIsSideEffectCounterRevertible([sideEffectCounter]) {
281
+ const isRevertible = await this.handlerAsPrivate().privateIsSideEffectCounterRevertible(Fr.fromString(sideEffectCounter).toNumber());
282
+ return Promise.resolve([
283
+ toACVMField(isRevertible)
284
+ ]);
285
+ }
246
286
  async privateGetNextAppTagAsSender([sender], [recipient]) {
247
287
  const tag = await this.handlerAsPrivate().privateGetNextAppTagAsSender(AztecAddress.fromString(sender), AztecAddress.fromString(recipient));
248
288
  return [
@@ -253,8 +293,8 @@ export class UnavailableOracleError extends Error {
253
293
  await this.handlerAsUtility().utilityFetchTaggedLogs(Fr.fromString(pendingTaggedLogArrayBaseSlot));
254
294
  return [];
255
295
  }
256
- async utilityValidateEnqueuedNotesAndEvents([contractAddress], [noteValidationRequestsArrayBaseSlot], [eventValidationRequestsArrayBaseSlot]) {
257
- await this.handlerAsUtility().utilityValidateEnqueuedNotesAndEvents(AztecAddress.fromString(contractAddress), Fr.fromString(noteValidationRequestsArrayBaseSlot), Fr.fromString(eventValidationRequestsArrayBaseSlot));
296
+ async utilityValidateAndStoreEnqueuedNotesAndEvents([contractAddress], [noteValidationRequestsArrayBaseSlot], [eventValidationRequestsArrayBaseSlot]) {
297
+ await this.handlerAsUtility().utilityValidateAndStoreEnqueuedNotesAndEvents(AztecAddress.fromString(contractAddress), Fr.fromString(noteValidationRequestsArrayBaseSlot), Fr.fromString(eventValidationRequestsArrayBaseSlot));
258
298
  return [];
259
299
  }
260
300
  async utilityBulkRetrieveLogs([contractAddress], [logRetrievalRequestsArrayBaseSlot], [logRetrievalResponsesArrayBaseSlot]) {
@@ -1,13 +1,8 @@
1
- import { Fr } from '@aztec/foundation/fields';
2
1
  import { type ACVMWitness, type CircuitSimulator } from '@aztec/simulator/client';
3
2
  import { type FunctionArtifact, type FunctionArtifactWithContractName, type FunctionSelector } from '@aztec/stdlib/abi';
4
3
  import type { AztecAddress } from '@aztec/stdlib/aztec-address';
5
- import type { ContractInstance } from '@aztec/stdlib/contract';
6
- import type { AztecNode } from '@aztec/stdlib/interfaces/client';
7
4
  import { PrivateCircuitPublicInputs } from '@aztec/stdlib/kernel';
8
- import { BlockHeader, PrivateCallExecutionResult } from '@aztec/stdlib/tx';
9
- import type { UInt64 } from '@aztec/stdlib/types';
10
- import type { ExecutionDataProvider } from '../execution_data_provider.js';
5
+ import { PrivateCallExecutionResult } from '@aztec/stdlib/tx';
11
6
  import type { PrivateExecutionOracle } from './private_execution_oracle.js';
12
7
  /**
13
8
  * Execute a private function and return the execution result.
@@ -25,24 +20,4 @@ export declare function executePrivateFunction(simulator: CircuitSimulator, priv
25
20
  * @returns - The public inputs.
26
21
  */
27
22
  export declare function extractPrivateCircuitPublicInputs(artifact: FunctionArtifact, partialWitness: ACVMWitness): PrivateCircuitPublicInputs;
28
- /**
29
- * Read the current class id of a contract from the execution data provider or AztecNode. If not found, class id
30
- * from the instance is used.
31
- * @param contractAddress - The address of the contract to read the class id for.
32
- * @param instance - The instance of the contract.
33
- * @param executionDataProvider - The execution data provider.
34
- * @param blockNumber - The block number at which to load the DelayedPublicMutable storing the class id.
35
- * @param timestamp - The timestamp at which to obtain the class id from the DelayedPublicMutable.
36
- * @returns The current class id.
37
- */
38
- export declare function readCurrentClassId(contractAddress: AztecAddress, instance: ContractInstance, executionDataProvider: ExecutionDataProvider | AztecNode, blockNumber: number, timestamp: UInt64): Promise<Fr>;
39
- /**
40
- * Verify that the current class id of a contract obtained from AztecNode is the same as the one in the execution data
41
- * provider (i.e. PXE).
42
- * @param contractAddress - The address of the contract to verify class id for.
43
- * @param executionDataProvider - The execution data provider.
44
- * @param header - The header of the block at which to verify the current class id. If not provided, the anchor block
45
- * header of the execution data provider is used.
46
- */
47
- export declare function verifyCurrentClassId(contractAddress: AztecAddress, executionDataProvider: ExecutionDataProvider, header?: BlockHeader): Promise<void>;
48
- //# sourceMappingURL=private_execution.d.ts.map
23
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJpdmF0ZV9leGVjdXRpb24uZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb250cmFjdF9mdW5jdGlvbl9zaW11bGF0b3Ivb3JhY2xlL3ByaXZhdGVfZXhlY3V0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUlBLE9BQU8sRUFDTCxLQUFLLFdBQVcsRUFDaEIsS0FBSyxnQkFBZ0IsRUFLdEIsTUFBTSx5QkFBeUIsQ0FBQztBQUNqQyxPQUFPLEVBQ0wsS0FBSyxnQkFBZ0IsRUFDckIsS0FBSyxnQ0FBZ0MsRUFDckMsS0FBSyxnQkFBZ0IsRUFFdEIsTUFBTSxtQkFBbUIsQ0FBQztBQUMzQixPQUFPLEtBQUssRUFBRSxZQUFZLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQUNoRSxPQUFPLEVBQUUsMEJBQTBCLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUVsRSxPQUFPLEVBQUUsMEJBQTBCLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUc5RCxPQUFPLEtBQUssRUFBRSxzQkFBc0IsRUFBRSxNQUFNLCtCQUErQixDQUFDO0FBRTVFOzs7Ozs7O0dBT0c7QUFDSCx3QkFBc0Isc0JBQXNCLENBQzFDLFNBQVMsRUFBRSxnQkFBZ0IsRUFDM0Isc0JBQXNCLEVBQUUsc0JBQXNCLEVBQzlDLFFBQVEsRUFBRSxnQ0FBZ0MsRUFDMUMsZUFBZSxFQUFFLFlBQVksRUFDN0IsZ0JBQWdCLEVBQUUsZ0JBQWdCLEVBQ2xDLEdBQUcseUNBQThDLEdBQ2hELE9BQU8sQ0FBQywwQkFBMEIsQ0FBQyxDQTJFckM7QUFFRDs7Ozs7R0FLRztBQUNILHdCQUFnQixpQ0FBaUMsQ0FDL0MsUUFBUSxFQUFFLGdCQUFnQixFQUMxQixjQUFjLEVBQUUsV0FBVyxHQUMxQiwwQkFBMEIsQ0FhNUIifQ==
@@ -1 +1 @@
1
- {"version":3,"file":"private_execution.d.ts","sourceRoot":"","sources":["../../../src/contract_function_simulator/oracle/private_execution.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAI9C,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,gBAAgB,EAKtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,gCAAgC,EACrC,KAAK,gBAAgB,EAEtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAElE,OAAO,EAAE,WAAW,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAC;AAC3E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAE3E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAE5E;;;;;;;GAOG;AACH,wBAAsB,sBAAsB,CAC1C,SAAS,EAAE,gBAAgB,EAC3B,sBAAsB,EAAE,sBAAsB,EAC9C,QAAQ,EAAE,gCAAgC,EAC1C,eAAe,EAAE,YAAY,EAC7B,gBAAgB,EAAE,gBAAgB,EAClC,GAAG,yCAA8C,GAChD,OAAO,CAAC,0BAA0B,CAAC,CA6ErC;AAED;;;;;GAKG;AACH,wBAAgB,iCAAiC,CAC/C,QAAQ,EAAE,gBAAgB,EAC1B,cAAc,EAAE,WAAW,GAC1B,0BAA0B,CAa5B;AAED;;;;;;;;;GASG;AACH,wBAAsB,kBAAkB,CACtC,eAAe,EAAE,YAAY,EAC7B,QAAQ,EAAE,gBAAgB,EAC1B,qBAAqB,EAAE,qBAAqB,GAAG,SAAS,EACxD,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,eAWlB;AAED;;;;;;;GAOG;AACH,wBAAsB,oBAAoB,CACxC,eAAe,EAAE,YAAY,EAC7B,qBAAqB,EAAE,qBAAqB,EAC5C,MAAM,CAAC,EAAE,WAAW,iBAiBrB"}
1
+ {"version":3,"file":"private_execution.d.ts","sourceRoot":"","sources":["../../../src/contract_function_simulator/oracle/private_execution.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,gBAAgB,EAKtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,gCAAgC,EACrC,KAAK,gBAAgB,EAEtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAElE,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAC;AAG9D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAE5E;;;;;;;GAOG;AACH,wBAAsB,sBAAsB,CAC1C,SAAS,EAAE,gBAAgB,EAC3B,sBAAsB,EAAE,sBAAsB,EAC9C,QAAQ,EAAE,gCAAgC,EAC1C,eAAe,EAAE,YAAY,EAC7B,gBAAgB,EAAE,gBAAgB,EAClC,GAAG,yCAA8C,GAChD,OAAO,CAAC,0BAA0B,CAAC,CA2ErC;AAED;;;;;GAKG;AACH,wBAAgB,iCAAiC,CAC/C,QAAQ,EAAE,gBAAgB,EAC1B,cAAc,EAAE,WAAW,GAC1B,0BAA0B,CAa5B"}
@@ -1,11 +1,9 @@
1
1
  import { PRIVATE_CIRCUIT_PUBLIC_INPUTS_LENGTH, PRIVATE_CONTEXT_INPUTS_LENGTH } from '@aztec/constants';
2
- import { Fr } from '@aztec/foundation/fields';
2
+ import { Fr } from '@aztec/foundation/curves/bn254';
3
3
  import { createLogger } from '@aztec/foundation/log';
4
4
  import { Timer } from '@aztec/foundation/timer';
5
- import { ProtocolContractAddress } from '@aztec/protocol-contracts';
6
5
  import { ExecutionError, extractCallStack, resolveAssertionMessageFromError, witnessMapToFields } from '@aztec/simulator/client';
7
6
  import { countArgumentsSize } from '@aztec/stdlib/abi';
8
- import { DelayedPublicMutableValues, DelayedPublicMutableValuesWithHash } from '@aztec/stdlib/delayed-public-mutable';
9
7
  import { PrivateCircuitPublicInputs } from '@aztec/stdlib/kernel';
10
8
  import { PrivateCallExecutionResult } from '@aztec/stdlib/tx';
11
9
  import { Oracle } from './oracle.js';
@@ -48,7 +46,6 @@ import { Oracle } from './oracle.js';
48
46
  });
49
47
  const contractClassLogs = privateExecutionOracle.getContractClassLogs();
50
48
  const rawReturnValues = await privateExecutionOracle.privateLoadFromExecutionCache(publicInputs.returnsHash);
51
- const noteHashLeafIndexMap = privateExecutionOracle.getNoteHashLeafIndexMap();
52
49
  const newNotes = privateExecutionOracle.getNewNotes();
53
50
  const noteHashNullifierCounterMap = privateExecutionOracle.getNoteHashNullifierCounterMap();
54
51
  const offchainEffects = privateExecutionOracle.getOffchainEffects();
@@ -62,7 +59,7 @@ import { Oracle } from './oracle.js';
62
59
  timerSubtractionList = timerSubtractionList.flatMap((nested)=>nested.nestedExecutionResults ?? []);
63
60
  }
64
61
  log.debug(`Returning from call to ${contractAddress.toString()}:${functionSelector}`);
65
- return new PrivateCallExecutionResult(artifact.bytecode, Buffer.from(artifact.verificationKey, 'base64'), partialWitness, publicInputs, noteHashLeafIndexMap, newNotes, noteHashNullifierCounterMap, rawReturnValues, offchainEffects, preTags, nestedExecutionResults, contractClassLogs, {
62
+ return new PrivateCallExecutionResult(artifact.bytecode, Buffer.from(artifact.verificationKey, 'base64'), partialWitness, publicInputs, newNotes, noteHashNullifierCounterMap, rawReturnValues, offchainEffects, preTags, nestedExecutionResults, contractClassLogs, {
66
63
  timings: {
67
64
  witgen: witgenTime,
68
65
  oracles: acirExecutionResult.oracles
@@ -88,36 +85,3 @@ import { Oracle } from './oracle.js';
88
85
  }
89
86
  return PrivateCircuitPublicInputs.fromFields(returnData);
90
87
  }
91
- /**
92
- * Read the current class id of a contract from the execution data provider or AztecNode. If not found, class id
93
- * from the instance is used.
94
- * @param contractAddress - The address of the contract to read the class id for.
95
- * @param instance - The instance of the contract.
96
- * @param executionDataProvider - The execution data provider.
97
- * @param blockNumber - The block number at which to load the DelayedPublicMutable storing the class id.
98
- * @param timestamp - The timestamp at which to obtain the class id from the DelayedPublicMutable.
99
- * @returns The current class id.
100
- */ export async function readCurrentClassId(contractAddress, instance, executionDataProvider, blockNumber, timestamp) {
101
- const { delayedPublicMutableSlot } = await DelayedPublicMutableValuesWithHash.getContractUpdateSlots(contractAddress);
102
- const delayedPublicMutableValues = await DelayedPublicMutableValues.readFromTree(delayedPublicMutableSlot, (slot)=>executionDataProvider.getPublicStorageAt(blockNumber, ProtocolContractAddress.ContractInstanceRegistry, slot));
103
- let currentClassId = delayedPublicMutableValues.svc.getCurrentAt(timestamp)[0];
104
- if (currentClassId.isZero()) {
105
- currentClassId = instance.originalContractClassId;
106
- }
107
- return currentClassId;
108
- }
109
- /**
110
- * Verify that the current class id of a contract obtained from AztecNode is the same as the one in the execution data
111
- * provider (i.e. PXE).
112
- * @param contractAddress - The address of the contract to verify class id for.
113
- * @param executionDataProvider - The execution data provider.
114
- * @param header - The header of the block at which to verify the current class id. If not provided, the anchor block
115
- * header of the execution data provider is used.
116
- */ export async function verifyCurrentClassId(contractAddress, executionDataProvider, header) {
117
- header = header ?? await executionDataProvider.getAnchorBlockHeader();
118
- const instance = await executionDataProvider.getContractInstance(contractAddress);
119
- const currentClassId = await readCurrentClassId(contractAddress, instance, executionDataProvider, header.globalVariables.blockNumber, header.globalVariables.timestamp);
120
- if (!instance.currentContractClassId.equals(currentClassId)) {
121
- throw new Error(`Contract ${contractAddress} is outdated, current class id is ${currentClassId}, local class id is ${instance.currentContractClassId}`);
122
- }
123
- }
@@ -1,14 +1,24 @@
1
- import { Fr } from '@aztec/foundation/fields';
1
+ import { Fr } from '@aztec/foundation/curves/bn254';
2
+ import type { KeyStore } from '@aztec/key-store';
2
3
  import { type CircuitSimulator } from '@aztec/simulator/client';
3
- import { type FunctionAbi, FunctionSelector, type NoteSelector } from '@aztec/stdlib/abi';
4
+ import { type FunctionAbi, type FunctionCall, FunctionSelector, type NoteSelector } from '@aztec/stdlib/abi';
4
5
  import type { AuthWitness } from '@aztec/stdlib/auth-witness';
5
6
  import { AztecAddress } from '@aztec/stdlib/aztec-address';
7
+ import type { AztecNode } from '@aztec/stdlib/interfaces/client';
6
8
  import { PrivateContextInputs } from '@aztec/stdlib/kernel';
7
- import type { ContractClassLog, PreTag } from '@aztec/stdlib/logs';
9
+ import { type ContractClassLog, type PreTag } from '@aztec/stdlib/logs';
10
+ import { Tag } from '@aztec/stdlib/logs';
8
11
  import { type NoteStatus } from '@aztec/stdlib/note';
9
12
  import { type BlockHeader, CallContext, Capsule, CountedContractClassLog, NoteAndSlot, PrivateCallExecutionResult, type TxContext } from '@aztec/stdlib/tx';
10
- import { Tag } from '../../tagging/tag.js';
11
- import type { ExecutionDataProvider } from '../execution_data_provider.js';
13
+ import type { ContractSyncService } from '../../contract_sync/contract_sync_service.js';
14
+ import type { AddressStore } from '../../storage/address_store/address_store.js';
15
+ import type { CapsuleStore } from '../../storage/capsule_store/capsule_store.js';
16
+ import type { ContractStore } from '../../storage/contract_store/contract_store.js';
17
+ import type { NoteStore } from '../../storage/note_store/note_store.js';
18
+ import type { PrivateEventStore } from '../../storage/private_event_store/private_event_store.js';
19
+ import type { RecipientTaggingStore } from '../../storage/tagging_store/recipient_tagging_store.js';
20
+ import type { SenderAddressBookStore } from '../../storage/tagging_store/sender_address_book_store.js';
21
+ import type { SenderTaggingStore } from '../../storage/tagging_store/sender_tagging_store.js';
12
22
  import type { ExecutionNoteCache } from '../execution_note_cache.js';
13
23
  import { ExecutionTaggingIndexCache } from '../execution_tagging_index_cache.js';
14
24
  import type { HashedValuesCache } from '../hashed_values_cache.js';
@@ -24,9 +34,13 @@ export declare class PrivateExecutionOracle extends UtilityExecutionOracle imple
24
34
  private readonly callContext;
25
35
  /** Header of a block whose state is used during private execution (not the block the transaction is included in). */
26
36
  protected readonly anchorBlockHeader: BlockHeader;
37
+ /** Needed to trigger contract synchronization before nested calls */
38
+ private readonly utilityExecutor;
27
39
  private readonly executionCache;
28
40
  private readonly noteCache;
29
41
  private readonly taggingIndexCache;
42
+ private readonly senderTaggingStore;
43
+ private readonly contractSyncService;
30
44
  private totalPublicCalldataCount;
31
45
  protected sideEffectCounter: number;
32
46
  private senderForTags?;
@@ -41,16 +55,6 @@ export declare class PrivateExecutionOracle extends UtilityExecutionOracle imple
41
55
  * Users can also use this to get a clearer idea of what's happened during a simulation.
42
56
  */
43
57
  private newNotes;
44
- /**
45
- * Notes from previous transactions that are returned to the oracle call `getNotes` during this execution.
46
- * The mapping maps from the unique siloed note hash to the index for notes created in private executions.
47
- * It maps from siloed note hash to the index for notes created by public functions.
48
- *
49
- * They are not part of the ExecutionNoteCache and being forwarded to nested contexts via `extend()`
50
- * because these notes are meant to be maintained on a per-call basis
51
- * They should act as references for the read requests output by an app circuit via public inputs.
52
- */
53
- private noteHashLeafIndexMap;
54
58
  private noteHashNullifierCounterMap;
55
59
  private contractClassLogs;
56
60
  private offchainEffects;
@@ -58,8 +62,10 @@ export declare class PrivateExecutionOracle extends UtilityExecutionOracle imple
58
62
  constructor(argsHash: Fr, txContext: TxContext, callContext: CallContext,
59
63
  /** Header of a block whose state is used during private execution (not the block the transaction is included in). */
60
64
  anchorBlockHeader: BlockHeader,
65
+ /** Needed to trigger contract synchronization before nested calls */
66
+ utilityExecutor: (call: FunctionCall) => Promise<void>,
61
67
  /** List of transient auth witnesses to be used during this simulation */
62
- authWitnesses: AuthWitness[], capsules: Capsule[], executionCache: HashedValuesCache, noteCache: ExecutionNoteCache, taggingIndexCache: ExecutionTaggingIndexCache, executionDataProvider: ExecutionDataProvider, totalPublicCalldataCount?: number, sideEffectCounter?: number, log?: import("@aztec/foundation/log").Logger, scopes?: AztecAddress[], senderForTags?: AztecAddress | undefined, simulator?: CircuitSimulator | undefined);
68
+ authWitnesses: AuthWitness[], capsules: Capsule[], executionCache: HashedValuesCache, noteCache: ExecutionNoteCache, taggingIndexCache: ExecutionTaggingIndexCache, contractStore: ContractStore, noteStore: NoteStore, keyStore: KeyStore, addressStore: AddressStore, aztecNode: AztecNode, senderTaggingStore: SenderTaggingStore, recipientTaggingStore: RecipientTaggingStore, senderAddressBookStore: SenderAddressBookStore, capsuleStore: CapsuleStore, privateEventStore: PrivateEventStore, contractSyncService: ContractSyncService, jobId: string, totalPublicCalldataCount?: number, sideEffectCounter?: number, log?: import("@aztec/foundation/log").Logger, scopes?: AztecAddress[], senderForTags?: AztecAddress | undefined, simulator?: CircuitSimulator | undefined);
63
69
  getPrivateContextInputs(): PrivateContextInputs;
64
70
  /**
65
71
  * Writes the function inputs to the initial witness.
@@ -67,11 +73,6 @@ export declare class PrivateExecutionOracle extends UtilityExecutionOracle imple
67
73
  * @returns The initial witness.
68
74
  */
69
75
  getInitialWitness(abi: FunctionAbi): Map<number, string>;
70
- /**
71
- * The KernelProver will use this to fully populate witnesses and provide hints to the kernel circuit
72
- * regarding which note hash each settled read request corresponds to.
73
- */
74
- getNoteHashLeafIndexMap(): Map<bigint, bigint>;
75
76
  /**
76
77
  * Get the data for the newly created notes.
77
78
  */
@@ -88,7 +89,7 @@ export declare class PrivateExecutionOracle extends UtilityExecutionOracle imple
88
89
  data: Fr[];
89
90
  }[];
90
91
  /**
91
- * Returns the pre tags that were used in this execution (and that need to be stored in the db).
92
+ * Returns the pre-tags that were used in this execution (and that need to be stored in the db).
92
93
  */
93
94
  getUsedPreTags(): PreTag[];
94
95
  /**
@@ -146,6 +147,7 @@ export declare class PrivateExecutionOracle extends UtilityExecutionOracle imple
146
147
  * Real notes coming from DB will have a leafIndex which
147
148
  * represents their index in the note hash tree.
148
149
  *
150
+ * @param owner - The owner of the notes. If undefined, returns notes for all owners.
149
151
  * @param storageSlot - The storage slot.
150
152
  * @param numSelects - The number of valid selects in selectBy and selectValues.
151
153
  * @param selectBy - An array of indices of the fields to selects.
@@ -158,18 +160,19 @@ export declare class PrivateExecutionOracle extends UtilityExecutionOracle imple
158
160
  * @param status - The status of notes to fetch.
159
161
  * @returns Array of note data.
160
162
  */
161
- utilityGetNotes(storageSlot: Fr, numSelects: number, selectByIndexes: number[], selectByOffsets: number[], selectByLengths: number[], selectValues: Fr[], selectComparators: number[], sortByIndexes: number[], sortByOffsets: number[], sortByLengths: number[], sortOrder: number[], limit: number, offset: number, status: NoteStatus): Promise<NoteData[]>;
163
+ utilityGetNotes(owner: AztecAddress | undefined, storageSlot: Fr, numSelects: number, selectByIndexes: number[], selectByOffsets: number[], selectByLengths: number[], selectValues: Fr[], selectComparators: number[], sortByIndexes: number[], sortByOffsets: number[], sortByLengths: number[], sortOrder: number[], limit: number, offset: number, status: NoteStatus): Promise<NoteData[]>;
162
164
  /**
163
165
  * Keep track of the new note created during execution.
164
166
  * It can be used in subsequent calls (or transactions when chaining txs is possible).
165
- * @param contractAddress - The contract address.
167
+ * @param owner - The owner of the note.
166
168
  * @param storageSlot - The storage slot.
169
+ * @param randomness - The randomness injected into the note.
167
170
  * @param noteTypeId - The type ID of the note.
168
171
  * @param noteItems - The items to be included in a Note.
169
172
  * @param noteHash - A hash of the new note.
170
173
  * @returns
171
174
  */
172
- privateNotifyCreatedNote(storageSlot: Fr, noteTypeId: NoteSelector, noteItems: Fr[], noteHash: Fr, counter: number): void;
175
+ privateNotifyCreatedNote(owner: AztecAddress, storageSlot: Fr, randomness: Fr, noteTypeId: NoteSelector, noteItems: Fr[], noteHash: Fr, counter: number): void;
173
176
  /**
174
177
  * Adding a siloed nullifier into the current set of all pending nullifiers created
175
178
  * within the current transaction/execution.
@@ -184,6 +187,14 @@ export declare class PrivateExecutionOracle extends UtilityExecutionOracle imple
184
187
  * @param noteHash - A hash of the new note.
185
188
  */
186
189
  privateNotifyCreatedNullifier(innerNullifier: Fr): Promise<void>;
190
+ /**
191
+ * Check if a nullifier has been emitted in the same transaction, i.e. if privateNotifyCreatedNullifier has been
192
+ * called for this inner nullifier from the contract with the specified address.
193
+ * @param innerNullifier - The inner nullifier to check.
194
+ * @param contractAddress - Address of the contract that emitted the nullifier.
195
+ * @returns A boolean indicating whether the nullifier is pending or not.
196
+ */
197
+ privateIsNullifierPending(innerNullifier: Fr, contractAddress: AztecAddress): Promise<boolean>;
187
198
  /**
188
199
  * Emit a contract class log.
189
200
  * This fn exists because we only carry a poseidon hash through the kernels, and need to
@@ -222,15 +233,9 @@ export declare class PrivateExecutionOracle extends UtilityExecutionOracle imple
222
233
  */
223
234
  privateNotifySetPublicTeardownFunctionCall(_targetContractAddress: AztecAddress, calldataHash: Fr, _sideEffectCounter: number, _isStaticCall: boolean): Promise<void>;
224
235
  privateNotifySetMinRevertibleSideEffectCounter(minRevertibleSideEffectCounter: number): Promise<void>;
225
- /**
226
- * Derives the call context for a nested execution.
227
- * @param targetContractAddress - The address of the contract being called.
228
- * @param targetArtifact - The artifact of the function being called.
229
- * @param isStaticCall - Whether the call is a static call.
230
- * @returns The derived call context.
231
- */
236
+ privateIsSideEffectCounterRevertible(sideEffectCounter: number): Promise<boolean>;
232
237
  private deriveCallContext;
233
238
  getDebugFunctionName(): Promise<string>;
234
239
  utilityEmitOffchainEffect(data: Fr[]): Promise<void>;
235
240
  }
236
- //# sourceMappingURL=private_execution_oracle.d.ts.map
241
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJpdmF0ZV9leGVjdXRpb25fb3JhY2xlLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29udHJhY3RfZnVuY3Rpb25fc2ltdWxhdG9yL29yYWNsZS9wcml2YXRlX2V4ZWN1dGlvbl9vcmFjbGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLEVBQUUsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBR3BELE9BQU8sS0FBSyxFQUFFLFFBQVEsRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBQ2pELE9BQU8sRUFBRSxLQUFLLGdCQUFnQixFQUFpQixNQUFNLHlCQUF5QixDQUFDO0FBQy9FLE9BQU8sRUFDTCxLQUFLLFdBQVcsRUFFaEIsS0FBSyxZQUFZLEVBQ2pCLGdCQUFnQixFQUNoQixLQUFLLFlBQVksRUFFbEIsTUFBTSxtQkFBbUIsQ0FBQztBQUMzQixPQUFPLEtBQUssRUFBRSxXQUFXLEVBQUUsTUFBTSw0QkFBNEIsQ0FBQztBQUM5RCxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sNkJBQTZCLENBQUM7QUFFM0QsT0FBTyxLQUFLLEVBQUUsU0FBUyxFQUFFLE1BQU0saUNBQWlDLENBQUM7QUFDakUsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDNUQsT0FBTyxFQUFFLEtBQUssZ0JBQWdCLEVBQStCLEtBQUssTUFBTSxFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFDckcsT0FBTyxFQUFFLEdBQUcsRUFBRSxNQUFNLG9CQUFvQ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0lBRUQ7Ozs7OztPQU1HO0lBQ0ksb0NBQW9DLENBQUMsR0FBRyxFQUFFLGdCQUFnQixFQUFFLE9BQU8sRUFBRSxNQUFNLFFBTWpGO0lBY0Q7Ozs7Ozs7O09BUUc7SUFDRywwQkFBMEIsQ0FDOUIscUJBQXFCLEVBQUUsWUFBWSxFQUNuQyxnQkFBZ0IsRUFBRSxnQkFBZ0IsRUFDbEMsUUFBUSxFQUFFLEVBQUUsRUFDWixpQkFBaUIsRUFBRSxNQUFNLEVBQ3pCLFlBQVksRUFBRSxPQUFPOzs7T0EwRnRCO0lBY0Q7Ozs7OztPQU1HO0lBQ0ksdUNBQXVDLENBQzVDLHNCQUFzQixFQUFFLFlBQVksRUFDcEMsWUFBWSxFQUFFLEVBQUUsRUFDaEIsa0JBQWtCLEVBQUUsTUFBTSxFQUMxQixhQUFhLEVBQUUsT0FBTyxpQkFJdkI7SUFFRDs7Ozs7O09BTUc7SUFDSSwwQ0FBMEMsQ0FDL0Msc0JBQXNCLEVBQUUsWUFBWSxFQUNwQyxZQUFZLEVBQUUsRUFBRSxFQUNoQixrQkFBa0IsRUFBRSxNQUFNLEVBQzFCLGFBQWEsRUFBRSxPQUFPLGlCQUl2QjtJQUVNLDhDQUE4QyxDQUFDLDhCQUE4QixFQUFFLE1BQU0sR0FBRyxPQUFPLENBQUMsSUFBSSxDQUFDLENBRTNHO0lBRU0sb0NBQW9DLENBQUMsaUJBQWlCLEVBQUUsTUFBTSxHQUFHLE9BQU8sQ0FBQyxPQUFPLENBQUMsQ0FFdkY7WUFTYSxpQkFBaUI7SUFheEIsb0JBQW9CLG9CQUUxQjtJQUVNLHlCQUF5QixDQUFDLElBQUksRUFBRSxFQUFFLEVBQUUsR0FBRyxPQUFPLENBQUMsSUFBSSxDQUFDLENBRzFEO0NBQ0YifQ==
@@ -1 +1 @@
1
- {"version":3,"file":"private_execution_oracle.d.ts","sourceRoot":"","sources":["../../../src/contract_function_simulator/oracle/private_execution_oracle.ts"],"names":[],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UAAU,EAAE,YAAY,EACxB,SAAS,EAAE,EAAE,EAAE,EACf,QAAQ,EAAE,EAAE,EACZ,OAAO,EAAE,MAAM;IAwBjB;;;;;OAKG;IACU,0BAA0B,CAAC,cAAc,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM;IAWzF;;;;;OAKG;IACI,6BAA6B,CAAC,cAAc,EAAE,EAAE;IAKvD;;;;;;OAMG;IACI,oCAAoC,CAAC,GAAG,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM;IAoBlF;;;;;;;;OAQG;IACG,0BAA0B,CAC9B,qBAAqB,EAAE,YAAY,EACnC,gBAAgB,EAAE,gBAAgB,EAClC,QAAQ,EAAE,EAAE,EACZ,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,OAAO;;;;IAsFvB;;;;;;OAMG;IACI,uCAAuC,CAC5C,sBAAsB,EAAE,YAAY,EACpC,YAAY,EAAE,EAAE,EAChB,kBAAkB,EAAE,MAAM,EAC1B,aAAa,EAAE,OAAO;IAMxB;;;;;;OAMG;IACI,0CAA0C,CAC/C,sBAAsB,EAAE,YAAY,EACpC,YAAY,EAAE,EAAE,EAChB,kBAAkB,EAAE,MAAM,EAC1B,aAAa,EAAE,OAAO;IAMjB,8CAA8C,CAAC,8BAA8B,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI5G;;;;;;OAMG;YACW,iBAAiB;IAaxB,oBAAoB;IAIpB,yBAAyB,CAAC,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAI5D"}
1
+ {"version":3,"file":"private_execution_oracle.d.ts","sourceRoot":"","sources":["../../../src/contract_function_simulator/oracle/private_execution_oracle.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AAGpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,KAAK,gBAAgB,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