@aztec/pxe 0.0.1-commit.b655e406 → 0.0.1-commit.b8a057fa

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 (620) hide show
  1. package/dest/bin/check_oracle_version.d.ts +1 -1
  2. package/dest/bin/check_oracle_version.js +53 -29
  3. package/dest/bin/index.d.ts +2 -0
  4. package/dest/bin/index.d.ts.map +1 -0
  5. package/dest/bin/index.js +1 -0
  6. package/dest/bin/oracle_version_helpers.d.ts +51 -0
  7. package/dest/bin/oracle_version_helpers.d.ts.map +1 -0
  8. package/dest/bin/oracle_version_helpers.js +254 -0
  9. package/dest/block_synchronizer/block_stream_source.d.ts +10 -0
  10. package/dest/block_synchronizer/block_stream_source.d.ts.map +1 -0
  11. package/dest/block_synchronizer/block_stream_source.js +37 -0
  12. package/dest/block_synchronizer/block_synchronizer.d.ts +53 -0
  13. package/dest/block_synchronizer/block_synchronizer.d.ts.map +1 -0
  14. package/dest/block_synchronizer/block_synchronizer.js +209 -0
  15. package/dest/block_synchronizer/index.d.ts +2 -0
  16. package/dest/block_synchronizer/index.d.ts.map +1 -0
  17. package/dest/block_synchronizer/index.js +1 -0
  18. package/dest/config/index.d.ts +14 -13
  19. package/dest/config/index.d.ts.map +1 -1
  20. package/dest/config/index.js +25 -15
  21. package/dest/config/package_info.d.ts +1 -1
  22. package/dest/config/package_info.js +1 -1
  23. package/dest/contract/contract_class_service.d.ts +31 -0
  24. package/dest/contract/contract_class_service.d.ts.map +1 -0
  25. package/dest/contract/contract_class_service.js +68 -0
  26. package/dest/contract/contract_sync_service.d.ts +48 -0
  27. package/dest/contract/contract_sync_service.d.ts.map +1 -0
  28. package/dest/contract/contract_sync_service.js +116 -0
  29. package/dest/contract/helpers.d.ts +7 -0
  30. package/dest/contract/helpers.d.ts.map +1 -0
  31. package/dest/contract/helpers.js +20 -0
  32. package/dest/contract_function_simulator/anchored_contract_data.d.ts +36 -0
  33. package/dest/contract_function_simulator/anchored_contract_data.d.ts.map +1 -0
  34. package/dest/contract_function_simulator/anchored_contract_data.js +54 -0
  35. package/dest/contract_function_simulator/benchmarked_node.d.ts +9 -0
  36. package/dest/contract_function_simulator/benchmarked_node.d.ts.map +1 -0
  37. package/dest/contract_function_simulator/benchmarked_node.js +77 -0
  38. package/dest/contract_function_simulator/contract_function_simulator.d.ts +93 -29
  39. package/dest/contract_function_simulator/contract_function_simulator.d.ts.map +1 -1
  40. package/dest/contract_function_simulator/contract_function_simulator.js +307 -97
  41. package/dest/contract_function_simulator/ephemeral_array_service.d.ts +28 -0
  42. package/dest/contract_function_simulator/ephemeral_array_service.d.ts.map +1 -0
  43. package/dest/contract_function_simulator/ephemeral_array_service.js +78 -0
  44. package/dest/contract_function_simulator/execution_note_cache.d.ts +22 -17
  45. package/dest/contract_function_simulator/execution_note_cache.d.ts.map +1 -1
  46. package/dest/contract_function_simulator/execution_note_cache.js +41 -36
  47. package/dest/contract_function_simulator/execution_tagging_index_cache.d.ts +7 -11
  48. package/dest/contract_function_simulator/execution_tagging_index_cache.d.ts.map +1 -1
  49. package/dest/contract_function_simulator/execution_tagging_index_cache.js +19 -15
  50. package/dest/contract_function_simulator/hashed_values_cache.d.ts +2 -2
  51. package/dest/contract_function_simulator/hashed_values_cache.d.ts.map +1 -1
  52. package/dest/contract_function_simulator/index.d.ts +27 -6
  53. package/dest/contract_function_simulator/index.d.ts.map +1 -1
  54. package/dest/contract_function_simulator/index.js +13 -4
  55. package/dest/contract_function_simulator/noir-structs/bounded_vec.d.ts +29 -0
  56. package/dest/contract_function_simulator/noir-structs/bounded_vec.d.ts.map +1 -0
  57. package/dest/contract_function_simulator/noir-structs/bounded_vec.js +30 -0
  58. package/dest/contract_function_simulator/noir-structs/contract_class_log_data.d.ts +9 -0
  59. package/dest/contract_function_simulator/noir-structs/contract_class_log_data.d.ts.map +1 -0
  60. package/dest/contract_function_simulator/noir-structs/contract_class_log_data.js +1 -0
  61. package/dest/contract_function_simulator/noir-structs/embedded_curve_point.d.ts +7 -0
  62. package/dest/contract_function_simulator/noir-structs/embedded_curve_point.d.ts.map +1 -0
  63. package/dest/contract_function_simulator/noir-structs/embedded_curve_point.js +1 -0
  64. package/dest/contract_function_simulator/noir-structs/ephemeral_array.d.ts +37 -0
  65. package/dest/contract_function_simulator/noir-structs/ephemeral_array.d.ts.map +1 -0
  66. package/dest/contract_function_simulator/noir-structs/ephemeral_array.js +59 -0
  67. package/dest/contract_function_simulator/noir-structs/event_validation_request.d.ts +6 -6
  68. package/dest/contract_function_simulator/noir-structs/event_validation_request.d.ts.map +1 -1
  69. package/dest/contract_function_simulator/noir-structs/event_validation_request.js +13 -11
  70. package/dest/contract_function_simulator/noir-structs/fact.d.ts +16 -0
  71. package/dest/contract_function_simulator/noir-structs/fact.d.ts.map +1 -0
  72. package/dest/contract_function_simulator/noir-structs/fact.js +6 -0
  73. package/dest/contract_function_simulator/noir-structs/fact_collection.d.ts +27 -0
  74. package/dest/contract_function_simulator/noir-structs/fact_collection.d.ts.map +1 -0
  75. package/dest/contract_function_simulator/noir-structs/fact_collection.js +31 -0
  76. package/dest/contract_function_simulator/noir-structs/log_retrieval_request.d.ts +21 -11
  77. package/dest/contract_function_simulator/noir-structs/log_retrieval_request.d.ts.map +1 -1
  78. package/dest/contract_function_simulator/noir-structs/log_retrieval_request.js +12 -23
  79. package/dest/contract_function_simulator/noir-structs/log_retrieval_response.d.ts +11 -9
  80. package/dest/contract_function_simulator/noir-structs/log_retrieval_response.d.ts.map +1 -1
  81. package/dest/contract_function_simulator/noir-structs/log_retrieval_response.js +2 -63
  82. package/dest/contract_function_simulator/noir-structs/note_data.d.ts +27 -0
  83. package/dest/contract_function_simulator/noir-structs/note_data.d.ts.map +1 -0
  84. package/dest/contract_function_simulator/noir-structs/note_data.js +3 -0
  85. package/dest/contract_function_simulator/noir-structs/note_validation_request.d.ts +7 -7
  86. package/dest/contract_function_simulator/noir-structs/note_validation_request.d.ts.map +1 -1
  87. package/dest/contract_function_simulator/noir-structs/note_validation_request.js +16 -11
  88. package/dest/contract_function_simulator/noir-structs/option.d.ts +59 -0
  89. package/dest/contract_function_simulator/noir-structs/option.d.ts.map +1 -0
  90. package/dest/contract_function_simulator/noir-structs/option.js +67 -0
  91. package/dest/contract_function_simulator/noir-structs/origin_block.d.ts +11 -0
  92. package/dest/contract_function_simulator/noir-structs/origin_block.d.ts.map +1 -0
  93. package/dest/contract_function_simulator/noir-structs/origin_block.js +5 -0
  94. package/dest/contract_function_simulator/noir-structs/pending_tagged_log.d.ts +11 -0
  95. package/dest/contract_function_simulator/noir-structs/pending_tagged_log.d.ts.map +1 -0
  96. package/dest/contract_function_simulator/noir-structs/pending_tagged_log.js +4 -0
  97. package/dest/contract_function_simulator/noir-structs/provided_secret.d.ts +8 -0
  98. package/dest/contract_function_simulator/noir-structs/provided_secret.d.ts.map +1 -0
  99. package/dest/contract_function_simulator/noir-structs/provided_secret.js +1 -0
  100. package/dest/contract_function_simulator/noir-structs/resolved_tagging_strategy.d.ts +28 -0
  101. package/dest/contract_function_simulator/noir-structs/resolved_tagging_strategy.d.ts.map +1 -0
  102. package/dest/contract_function_simulator/noir-structs/resolved_tagging_strategy.js +43 -0
  103. package/dest/contract_function_simulator/noir-structs/resolved_tx.d.ts +21 -0
  104. package/dest/contract_function_simulator/noir-structs/resolved_tx.d.ts.map +1 -0
  105. package/dest/contract_function_simulator/noir-structs/resolved_tx.js +50 -0
  106. package/dest/contract_function_simulator/noir-structs/tx_effect_data.d.ts +14 -0
  107. package/dest/contract_function_simulator/noir-structs/tx_effect_data.d.ts.map +1 -0
  108. package/dest/contract_function_simulator/noir-structs/tx_effect_data.js +5 -0
  109. package/dest/contract_function_simulator/noir-structs/utility_context.d.ts +7 -18
  110. package/dest/contract_function_simulator/noir-structs/utility_context.d.ts.map +1 -1
  111. package/dest/contract_function_simulator/noir-structs/utility_context.js +1 -31
  112. package/dest/contract_function_simulator/oracle/acir_callback.d.ts +21 -0
  113. package/dest/contract_function_simulator/oracle/acir_callback.d.ts.map +1 -0
  114. package/dest/contract_function_simulator/oracle/acir_callback.js +115 -0
  115. package/dest/contract_function_simulator/oracle/index.d.ts +2 -13
  116. package/dest/contract_function_simulator/oracle/index.d.ts.map +1 -1
  117. package/dest/contract_function_simulator/oracle/index.js +1 -1
  118. package/dest/contract_function_simulator/oracle/interfaces.d.ts +15 -88
  119. package/dest/contract_function_simulator/oracle/interfaces.d.ts.map +1 -1
  120. package/dest/contract_function_simulator/oracle/interfaces.js +2 -2
  121. package/dest/contract_function_simulator/oracle/legacy_oracle_registry.d.ts +39 -0
  122. package/dest/contract_function_simulator/oracle/legacy_oracle_registry.d.ts.map +1 -0
  123. package/dest/contract_function_simulator/oracle/legacy_oracle_registry.js +74 -0
  124. package/dest/contract_function_simulator/oracle/message_load_oracle_inputs.d.ts +3 -14
  125. package/dest/contract_function_simulator/oracle/message_load_oracle_inputs.d.ts.map +1 -1
  126. package/dest/contract_function_simulator/oracle/message_load_oracle_inputs.js +1 -24
  127. package/dest/contract_function_simulator/oracle/note_packing_utils.d.ts +14 -8
  128. package/dest/contract_function_simulator/oracle/note_packing_utils.d.ts.map +1 -1
  129. package/dest/contract_function_simulator/oracle/note_packing_utils.js +17 -12
  130. package/dest/contract_function_simulator/oracle/oracle_registry.d.ts +136 -0
  131. package/dest/contract_function_simulator/oracle/oracle_registry.d.ts.map +1 -0
  132. package/dest/contract_function_simulator/oracle/oracle_registry.js +989 -0
  133. package/dest/contract_function_simulator/oracle/oracle_type_mappings.d.ts +222 -0
  134. package/dest/contract_function_simulator/oracle/oracle_type_mappings.d.ts.map +1 -0
  135. package/dest/contract_function_simulator/oracle/oracle_type_mappings.js +1243 -0
  136. package/dest/contract_function_simulator/oracle/private_execution.d.ts +2 -27
  137. package/dest/contract_function_simulator/oracle/private_execution.d.ts.map +1 -1
  138. package/dest/contract_function_simulator/oracle/private_execution.js +8 -43
  139. package/dest/contract_function_simulator/oracle/private_execution_oracle.d.ts +92 -103
  140. package/dest/contract_function_simulator/oracle/private_execution_oracle.d.ts.map +1 -1
  141. package/dest/contract_function_simulator/oracle/private_execution_oracle.js +291 -138
  142. package/dest/contract_function_simulator/oracle/utility_execution_oracle.d.ts +228 -62
  143. package/dest/contract_function_simulator/oracle/utility_execution_oracle.d.ts.map +1 -1
  144. package/dest/contract_function_simulator/oracle/utility_execution_oracle.js +632 -129
  145. package/dest/contract_function_simulator/pick_notes.d.ts +2 -2
  146. package/dest/contract_function_simulator/pick_notes.d.ts.map +1 -1
  147. package/dest/contract_function_simulator/pick_notes.js +21 -4
  148. package/dest/contract_function_simulator/transient_array_service.d.ts +31 -0
  149. package/dest/contract_function_simulator/transient_array_service.d.ts.map +1 -0
  150. package/dest/contract_function_simulator/transient_array_service.js +62 -0
  151. package/dest/contract_logging.d.ts +27 -0
  152. package/dest/contract_logging.d.ts.map +1 -0
  153. package/dest/contract_logging.js +38 -0
  154. package/dest/debug/pxe_debug_utils.d.ts +40 -0
  155. package/dest/debug/pxe_debug_utils.d.ts.map +1 -0
  156. package/dest/debug/pxe_debug_utils.js +42 -0
  157. package/dest/entrypoints/client/bundle/index.d.ts +3 -2
  158. package/dest/entrypoints/client/bundle/index.d.ts.map +1 -1
  159. package/dest/entrypoints/client/bundle/index.js +2 -1
  160. package/dest/entrypoints/client/bundle/utils.d.ts +2 -2
  161. package/dest/entrypoints/client/bundle/utils.d.ts.map +1 -1
  162. package/dest/entrypoints/client/bundle/utils.js +49 -13
  163. package/dest/entrypoints/client/lazy/index.d.ts +3 -2
  164. package/dest/entrypoints/client/lazy/index.d.ts.map +1 -1
  165. package/dest/entrypoints/client/lazy/index.js +2 -1
  166. package/dest/entrypoints/client/lazy/utils.d.ts +3 -3
  167. package/dest/entrypoints/client/lazy/utils.d.ts.map +1 -1
  168. package/dest/entrypoints/client/lazy/utils.js +50 -14
  169. package/dest/entrypoints/pxe_creation_options.d.ts +22 -4
  170. package/dest/entrypoints/pxe_creation_options.d.ts.map +1 -1
  171. package/dest/entrypoints/pxe_creation_options.js +3 -1
  172. package/dest/entrypoints/server/index.d.ts +9 -3
  173. package/dest/entrypoints/server/index.d.ts.map +1 -1
  174. package/dest/entrypoints/server/index.js +7 -2
  175. package/dest/entrypoints/server/utils.d.ts +4 -3
  176. package/dest/entrypoints/server/utils.d.ts.map +1 -1
  177. package/dest/entrypoints/server/utils.js +57 -31
  178. package/dest/error_enriching.d.ts +6 -4
  179. package/dest/error_enriching.d.ts.map +1 -1
  180. package/dest/error_enriching.js +13 -11
  181. package/dest/events/event_service.d.ts +24 -0
  182. package/dest/events/event_service.d.ts.map +1 -0
  183. package/dest/events/event_service.js +77 -0
  184. package/dest/events/index.d.ts +2 -0
  185. package/dest/events/index.d.ts.map +1 -0
  186. package/dest/events/index.js +1 -0
  187. package/dest/events/private_event_filter_validator.d.ts +10 -0
  188. package/dest/events/private_event_filter_validator.d.ts.map +1 -0
  189. package/dest/events/private_event_filter_validator.js +53 -0
  190. package/dest/hooks/authorize_utility_call.d.ts +41 -0
  191. package/dest/hooks/authorize_utility_call.d.ts.map +1 -0
  192. package/dest/hooks/authorize_utility_call.js +4 -0
  193. package/dest/hooks/execution_hooks.d.ts +62 -0
  194. package/dest/hooks/execution_hooks.d.ts.map +1 -0
  195. package/dest/hooks/execution_hooks.js +9 -0
  196. package/dest/hooks/index.d.ts +5 -0
  197. package/dest/hooks/index.d.ts.map +1 -0
  198. package/dest/hooks/index.js +1 -0
  199. package/dest/hooks/resolve_custom_request.d.ts +23 -0
  200. package/dest/hooks/resolve_custom_request.d.ts.map +1 -0
  201. package/dest/hooks/resolve_custom_request.js +3 -0
  202. package/dest/hooks/resolve_tagging_secret_strategy.d.ts +48 -0
  203. package/dest/hooks/resolve_tagging_secret_strategy.d.ts.map +1 -0
  204. package/dest/hooks/resolve_tagging_secret_strategy.js +3 -0
  205. package/dest/job_coordinator/job_coordinator.d.ts +75 -0
  206. package/dest/job_coordinator/job_coordinator.d.ts.map +1 -0
  207. package/dest/job_coordinator/job_coordinator.js +94 -0
  208. package/dest/logs/log_service.d.ts +30 -0
  209. package/dest/logs/log_service.d.ts.map +1 -0
  210. package/dest/logs/log_service.js +223 -0
  211. package/dest/messages/tx_resolver_service.d.ts +17 -0
  212. package/dest/messages/tx_resolver_service.d.ts.map +1 -0
  213. package/dest/messages/tx_resolver_service.js +55 -0
  214. package/dest/notes/index.d.ts +2 -0
  215. package/dest/notes/index.d.ts.map +1 -0
  216. package/dest/notes/index.js +1 -0
  217. package/dest/notes/note_service.d.ts +70 -0
  218. package/dest/notes/note_service.d.ts.map +1 -0
  219. package/dest/notes/note_service.js +172 -0
  220. package/dest/notes_filter.d.ts +24 -0
  221. package/dest/notes_filter.d.ts.map +1 -0
  222. package/dest/notes_filter.js +4 -0
  223. package/dest/oracle_version.d.ts +4 -3
  224. package/dest/oracle_version.d.ts.map +1 -1
  225. package/dest/oracle_version.js +20 -9
  226. package/dest/private_kernel/batch_planner.d.ts +47 -0
  227. package/dest/private_kernel/batch_planner.d.ts.map +1 -0
  228. package/dest/private_kernel/batch_planner.js +104 -0
  229. package/dest/private_kernel/hints/compute_tx_expiration_timestamp.d.ts +4 -0
  230. package/dest/private_kernel/hints/compute_tx_expiration_timestamp.d.ts.map +1 -0
  231. package/dest/private_kernel/hints/{compute_tx_include_by_timestamp.js → compute_tx_expiration_timestamp.js} +12 -12
  232. package/dest/private_kernel/hints/index.d.ts +3 -3
  233. package/dest/private_kernel/hints/index.d.ts.map +1 -1
  234. package/dest/private_kernel/hints/index.js +2 -2
  235. package/dest/private_kernel/hints/private_kernel_reset_private_inputs_builder.d.ts +29 -0
  236. package/dest/private_kernel/hints/private_kernel_reset_private_inputs_builder.d.ts.map +1 -0
  237. package/dest/private_kernel/hints/private_kernel_reset_private_inputs_builder.js +342 -0
  238. package/dest/private_kernel/hints/test_utils.d.ts +122 -0
  239. package/dest/private_kernel/hints/test_utils.d.ts.map +1 -0
  240. package/dest/private_kernel/hints/test_utils.js +202 -0
  241. package/dest/private_kernel/index.d.ts +1 -1
  242. package/dest/private_kernel/private_kernel_execution_prover.d.ts +7 -2
  243. package/dest/private_kernel/private_kernel_execution_prover.d.ts.map +1 -1
  244. package/dest/private_kernel/private_kernel_execution_prover.js +218 -96
  245. package/dest/private_kernel/private_kernel_oracle.d.ts +32 -29
  246. package/dest/private_kernel/private_kernel_oracle.d.ts.map +1 -1
  247. package/dest/private_kernel/private_kernel_oracle.js +108 -2
  248. package/dest/pxe.d.ts +267 -134
  249. package/dest/pxe.d.ts.map +1 -1
  250. package/dest/pxe.js +498 -365
  251. package/dest/storage/address_store/address_store.d.ts +11 -0
  252. package/dest/storage/address_store/address_store.d.ts.map +1 -0
  253. package/dest/storage/{address_data_provider/address_data_provider.js → address_store/address_store.js} +13 -12
  254. package/dest/storage/address_store/index.d.ts +2 -0
  255. package/dest/storage/address_store/index.d.ts.map +1 -0
  256. package/dest/storage/address_store/index.js +1 -0
  257. package/dest/storage/allowed_scopes.d.ts +6 -0
  258. package/dest/storage/allowed_scopes.d.ts.map +1 -0
  259. package/dest/storage/allowed_scopes.js +7 -0
  260. package/dest/storage/anchor_block_store/anchor_block_store.d.ts +20 -0
  261. package/dest/storage/anchor_block_store/anchor_block_store.d.ts.map +1 -0
  262. package/dest/storage/anchor_block_store/anchor_block_store.js +28 -0
  263. package/dest/storage/anchor_block_store/index.d.ts +2 -0
  264. package/dest/storage/anchor_block_store/index.d.ts.map +1 -0
  265. package/dest/storage/anchor_block_store/index.js +1 -0
  266. package/dest/storage/backwards_compatibility_tests/kv_store_snapshot.d.ts +42 -0
  267. package/dest/storage/backwards_compatibility_tests/kv_store_snapshot.d.ts.map +1 -0
  268. package/dest/storage/backwards_compatibility_tests/kv_store_snapshot.js +93 -0
  269. package/dest/storage/backwards_compatibility_tests/schema_tests.d.ts +15 -0
  270. package/dest/storage/backwards_compatibility_tests/schema_tests.d.ts.map +1 -0
  271. package/dest/storage/backwards_compatibility_tests/schema_tests.js +647 -0
  272. package/dest/storage/backwards_compatibility_tests/store_spy.d.ts +19 -0
  273. package/dest/storage/backwards_compatibility_tests/store_spy.d.ts.map +1 -0
  274. package/dest/storage/backwards_compatibility_tests/store_spy.js +63 -0
  275. package/dest/storage/capsule_store/capsule_service.d.ts +21 -0
  276. package/dest/storage/capsule_store/capsule_service.d.ts.map +1 -0
  277. package/dest/storage/capsule_store/capsule_service.js +47 -0
  278. package/dest/storage/capsule_store/capsule_store.d.ts +72 -0
  279. package/dest/storage/capsule_store/capsule_store.d.ts.map +1 -0
  280. package/dest/storage/capsule_store/capsule_store.js +261 -0
  281. package/dest/storage/capsule_store/index.d.ts +3 -0
  282. package/dest/storage/capsule_store/index.d.ts.map +1 -0
  283. package/dest/storage/capsule_store/index.js +2 -0
  284. package/dest/storage/contract_store/contract_store.d.ts +96 -0
  285. package/dest/storage/contract_store/contract_store.d.ts.map +1 -0
  286. package/dest/storage/contract_store/contract_store.js +281 -0
  287. package/dest/storage/contract_store/index.d.ts +2 -0
  288. package/dest/storage/contract_store/index.d.ts.map +1 -0
  289. package/dest/storage/contract_store/index.js +1 -0
  290. package/dest/storage/{contract_data_provider → contract_store}/private_functions_tree.d.ts +1 -1
  291. package/dest/storage/contract_store/private_functions_tree.d.ts.map +1 -0
  292. package/dest/storage/{contract_data_provider → contract_store}/private_functions_tree.js +1 -1
  293. package/dest/storage/fact_store/fact_service.d.ts +22 -0
  294. package/dest/storage/fact_store/fact_service.d.ts.map +1 -0
  295. package/dest/storage/fact_store/fact_service.js +45 -0
  296. package/dest/storage/fact_store/fact_store.d.ts +95 -0
  297. package/dest/storage/fact_store/fact_store.d.ts.map +1 -0
  298. package/dest/storage/fact_store/fact_store.js +408 -0
  299. package/dest/storage/fact_store/fact_store_keys.d.ts +34 -0
  300. package/dest/storage/fact_store/fact_store_keys.d.ts.map +1 -0
  301. package/dest/storage/fact_store/fact_store_keys.js +50 -0
  302. package/dest/storage/fact_store/index.d.ts +6 -0
  303. package/dest/storage/fact_store/index.d.ts.map +1 -0
  304. package/dest/storage/fact_store/index.js +4 -0
  305. package/dest/storage/fact_store/origin_state.d.ts +57 -0
  306. package/dest/storage/fact_store/origin_state.d.ts.map +1 -0
  307. package/dest/storage/fact_store/origin_state.js +53 -0
  308. package/dest/storage/fact_store/stored_fact.d.ts +32 -0
  309. package/dest/storage/fact_store/stored_fact.d.ts.map +1 -0
  310. package/dest/storage/fact_store/stored_fact.js +64 -0
  311. package/dest/storage/index.d.ts +9 -8
  312. package/dest/storage/index.d.ts.map +1 -1
  313. package/dest/storage/index.js +8 -7
  314. package/dest/storage/metadata.d.ts +2 -2
  315. package/dest/storage/metadata.d.ts.map +1 -1
  316. package/dest/storage/metadata.js +1 -1
  317. package/dest/storage/note_store/index.d.ts +3 -0
  318. package/dest/storage/note_store/index.d.ts.map +1 -0
  319. package/dest/storage/note_store/index.js +2 -0
  320. package/dest/storage/note_store/note_store.d.ts +92 -0
  321. package/dest/storage/note_store/note_store.d.ts.map +1 -0
  322. package/dest/storage/note_store/note_store.js +372 -0
  323. package/dest/storage/note_store/stored_note.d.ts +11 -0
  324. package/dest/storage/note_store/stored_note.d.ts.map +1 -0
  325. package/dest/storage/note_store/stored_note.js +27 -0
  326. package/dest/storage/open_pxe_stores.d.ts +35 -0
  327. package/dest/storage/open_pxe_stores.d.ts.map +1 -0
  328. package/dest/storage/open_pxe_stores.js +29 -0
  329. package/dest/storage/private_event_store/private_event_store.d.ts +88 -0
  330. package/dest/storage/private_event_store/private_event_store.d.ts.map +1 -0
  331. package/dest/storage/private_event_store/private_event_store.js +273 -0
  332. package/dest/storage/private_event_store/stored_private_event.d.ts +23 -0
  333. package/dest/storage/private_event_store/stored_private_event.d.ts.map +1 -0
  334. package/dest/storage/private_event_store/stored_private_event.js +56 -0
  335. package/dest/storage/tagging_store/index.d.ts +4 -0
  336. package/dest/storage/tagging_store/index.d.ts.map +1 -0
  337. package/dest/storage/tagging_store/index.js +3 -0
  338. package/dest/storage/tagging_store/recipient_tagging_store.d.ts +28 -0
  339. package/dest/storage/tagging_store/recipient_tagging_store.d.ts.map +1 -0
  340. package/dest/storage/tagging_store/recipient_tagging_store.js +111 -0
  341. package/dest/storage/tagging_store/sender_tagging_store.d.ts +78 -0
  342. package/dest/storage/tagging_store/sender_tagging_store.d.ts.map +1 -0
  343. package/dest/storage/tagging_store/sender_tagging_store.js +374 -0
  344. package/dest/storage/tagging_store/tagging_secret_sources_store.d.ts +51 -0
  345. package/dest/storage/tagging_store/tagging_secret_sources_store.d.ts.map +1 -0
  346. package/dest/storage/tagging_store/tagging_secret_sources_store.js +105 -0
  347. package/dest/tagging/constants.d.ts +2 -2
  348. package/dest/tagging/constants.d.ts.map +1 -1
  349. package/dest/tagging/constants.js +7 -2
  350. package/dest/tagging/get_all_logs_by_tags.d.ts +48 -0
  351. package/dest/tagging/get_all_logs_by_tags.d.ts.map +1 -0
  352. package/dest/tagging/get_all_logs_by_tags.js +59 -0
  353. package/dest/tagging/index.d.ts +18 -7
  354. package/dest/tagging/index.d.ts.map +1 -1
  355. package/dest/tagging/index.js +16 -5
  356. package/dest/tagging/persist_sender_tagging_index_ranges.d.ts +29 -0
  357. package/dest/tagging/persist_sender_tagging_index_ranges.d.ts.map +1 -0
  358. package/dest/tagging/persist_sender_tagging_index_ranges.js +42 -0
  359. package/dest/tagging/recipient_sync/sync_tagged_private_logs.d.ts +69 -0
  360. package/dest/tagging/recipient_sync/sync_tagged_private_logs.d.ts.map +1 -0
  361. package/dest/tagging/recipient_sync/sync_tagged_private_logs.js +203 -0
  362. package/dest/tagging/recipient_sync/utils/find_highest_indexes.d.ts +12 -0
  363. package/dest/tagging/recipient_sync/utils/find_highest_indexes.d.ts.map +1 -0
  364. package/dest/tagging/recipient_sync/utils/find_highest_indexes.js +20 -0
  365. package/dest/tagging/reconcile_tagging_index_ranges.d.ts +36 -0
  366. package/dest/tagging/reconcile_tagging_index_ranges.d.ts.map +1 -0
  367. package/dest/tagging/reconcile_tagging_index_ranges.js +74 -0
  368. package/dest/tagging/sender_sync/sync_sender_tagging_indexes.d.ts +16 -0
  369. package/dest/tagging/sender_sync/sync_sender_tagging_indexes.d.ts.map +1 -0
  370. package/dest/tagging/sender_sync/sync_sender_tagging_indexes.js +92 -0
  371. package/dest/tagging/sender_sync/utils/get_status_change_of_pending.d.ts +17 -0
  372. package/dest/tagging/sender_sync/utils/get_status_change_of_pending.d.ts.map +1 -0
  373. package/dest/tagging/sender_sync/utils/get_status_change_of_pending.js +60 -0
  374. package/dest/tagging/sender_sync/utils/load_and_store_new_tagging_indexes.d.ts +19 -0
  375. package/dest/tagging/sender_sync/utils/load_and_store_new_tagging_indexes.d.ts.map +1 -0
  376. package/dest/tagging/sender_sync/utils/load_and_store_new_tagging_indexes.js +72 -0
  377. package/package.json +33 -20
  378. package/src/bin/check_oracle_version.ts +62 -33
  379. package/src/bin/index.ts +5 -0
  380. package/src/bin/oracle_version_helpers.ts +311 -0
  381. package/src/block_synchronizer/block_stream_source.ts +42 -0
  382. package/src/block_synchronizer/block_synchronizer.ts +241 -0
  383. package/src/block_synchronizer/index.ts +1 -0
  384. package/src/config/index.ts +32 -26
  385. package/src/config/package_info.ts +1 -1
  386. package/src/contract/contract_class_service.ts +83 -0
  387. package/src/contract/contract_sync_service.ts +176 -0
  388. package/src/contract/helpers.ts +35 -0
  389. package/src/contract_function_simulator/anchored_contract_data.ts +74 -0
  390. package/src/contract_function_simulator/benchmarked_node.ts +103 -0
  391. package/src/contract_function_simulator/contract_function_simulator.ts +526 -132
  392. package/src/contract_function_simulator/ephemeral_array_service.ts +110 -0
  393. package/src/contract_function_simulator/execution_note_cache.ts +42 -33
  394. package/src/contract_function_simulator/execution_tagging_index_cache.ts +19 -18
  395. package/src/contract_function_simulator/hashed_values_cache.ts +1 -1
  396. package/src/contract_function_simulator/index.ts +70 -5
  397. package/src/contract_function_simulator/noir-structs/bounded_vec.ts +43 -0
  398. package/src/contract_function_simulator/noir-structs/contract_class_log_data.ts +9 -0
  399. package/src/contract_function_simulator/noir-structs/embedded_curve_point.ts +4 -0
  400. package/src/contract_function_simulator/noir-structs/ephemeral_array.ts +66 -0
  401. package/src/contract_function_simulator/noir-structs/event_validation_request.ts +16 -11
  402. package/src/contract_function_simulator/noir-structs/fact.ts +13 -0
  403. package/src/contract_function_simulator/noir-structs/fact_collection.ts +64 -0
  404. package/src/contract_function_simulator/noir-structs/log_retrieval_request.ts +28 -20
  405. package/src/contract_function_simulator/noir-structs/log_retrieval_response.ts +14 -64
  406. package/src/contract_function_simulator/noir-structs/note_data.ts +27 -0
  407. package/src/contract_function_simulator/noir-structs/note_validation_request.ts +18 -11
  408. package/src/contract_function_simulator/noir-structs/option.ts +75 -0
  409. package/src/contract_function_simulator/noir-structs/origin_block.ts +8 -0
  410. package/src/contract_function_simulator/noir-structs/pending_tagged_log.ts +12 -0
  411. package/src/contract_function_simulator/noir-structs/provided_secret.ts +5 -0
  412. package/src/contract_function_simulator/noir-structs/resolved_tagging_strategy.ts +58 -0
  413. package/src/contract_function_simulator/noir-structs/resolved_tx.ts +53 -0
  414. package/src/contract_function_simulator/noir-structs/tx_effect_data.ts +15 -0
  415. package/src/contract_function_simulator/noir-structs/utility_context.ts +6 -37
  416. package/src/contract_function_simulator/oracle/acir_callback.ts +154 -0
  417. package/src/contract_function_simulator/oracle/index.ts +1 -15
  418. package/src/contract_function_simulator/oracle/interfaces.ts +11 -151
  419. package/src/contract_function_simulator/oracle/legacy_oracle_registry.ts +120 -0
  420. package/src/contract_function_simulator/oracle/message_load_oracle_inputs.ts +6 -21
  421. package/src/contract_function_simulator/oracle/note_packing_utils.ts +31 -15
  422. package/src/contract_function_simulator/oracle/oracle_registry.ts +689 -0
  423. package/src/contract_function_simulator/oracle/oracle_type_mappings.ts +964 -0
  424. package/src/contract_function_simulator/oracle/private_execution.ts +8 -75
  425. package/src/contract_function_simulator/oracle/private_execution_oracle.ts +363 -189
  426. package/src/contract_function_simulator/oracle/utility_execution_oracle.ts +974 -154
  427. package/src/contract_function_simulator/pick_notes.ts +23 -4
  428. package/src/contract_function_simulator/transient_array_service.ts +91 -0
  429. package/src/contract_logging.ts +52 -0
  430. package/src/debug/pxe_debug_utils.ts +85 -0
  431. package/src/entrypoints/client/bundle/index.ts +2 -1
  432. package/src/entrypoints/client/bundle/utils.ts +41 -22
  433. package/src/entrypoints/client/lazy/index.ts +2 -1
  434. package/src/entrypoints/client/lazy/utils.ts +43 -24
  435. package/src/entrypoints/pxe_creation_options.ts +27 -3
  436. package/src/entrypoints/server/index.ts +9 -2
  437. package/src/entrypoints/server/utils.ts +55 -60
  438. package/src/error_enriching.ts +20 -12
  439. package/src/events/event_service.ts +119 -0
  440. package/src/events/index.ts +1 -0
  441. package/src/events/private_event_filter_validator.ts +66 -0
  442. package/src/hooks/authorize_utility_call.ts +44 -0
  443. package/src/hooks/execution_hooks.ts +68 -0
  444. package/src/hooks/index.ts +12 -0
  445. package/src/hooks/resolve_custom_request.ts +24 -0
  446. package/src/hooks/resolve_tagging_secret_strategy.ts +57 -0
  447. package/src/job_coordinator/job_coordinator.ts +150 -0
  448. package/src/logs/log_service.ts +291 -0
  449. package/src/messages/tx_resolver_service.ts +69 -0
  450. package/src/notes/index.ts +1 -0
  451. package/src/notes/note_service.ts +230 -0
  452. package/src/notes_filter.ts +24 -0
  453. package/src/oracle_version.ts +20 -9
  454. package/src/private_kernel/batch_planner.ts +168 -0
  455. package/src/private_kernel/hints/{compute_tx_include_by_timestamp.ts → compute_tx_expiration_timestamp.ts} +13 -13
  456. package/src/private_kernel/hints/index.ts +2 -2
  457. package/src/private_kernel/hints/{build_private_kernel_reset_private_inputs.ts → private_kernel_reset_private_inputs_builder.ts} +211 -147
  458. package/src/private_kernel/hints/test_utils.ts +318 -0
  459. package/src/private_kernel/private_kernel_execution_prover.ts +358 -140
  460. package/src/private_kernel/private_kernel_oracle.ts +149 -39
  461. package/src/pxe.ts +849 -491
  462. package/src/storage/{address_data_provider/address_data_provider.ts → address_store/address_store.ts} +16 -16
  463. package/src/storage/address_store/index.ts +1 -0
  464. package/src/storage/allowed_scopes.ts +14 -0
  465. package/src/storage/anchor_block_store/anchor_block_store.ts +35 -0
  466. package/src/storage/anchor_block_store/index.ts +1 -0
  467. package/src/storage/backwards_compatibility_tests/__snapshots__/AddressStore.json +22 -0
  468. package/src/storage/backwards_compatibility_tests/__snapshots__/AnchorBlockStore.json +3 -0
  469. package/src/storage/backwards_compatibility_tests/__snapshots__/CapsuleStore.json +16 -0
  470. package/src/storage/backwards_compatibility_tests/__snapshots__/ContractStore.json +28 -0
  471. package/src/storage/backwards_compatibility_tests/__snapshots__/FactStore.json +40 -0
  472. package/src/storage/backwards_compatibility_tests/__snapshots__/KeyStore.json +52 -0
  473. package/src/storage/backwards_compatibility_tests/__snapshots__/L2TipsKVStore.json +40 -0
  474. package/src/storage/backwards_compatibility_tests/__snapshots__/NoteStore.json +56 -0
  475. package/src/storage/backwards_compatibility_tests/__snapshots__/PrivateEventStore.json +44 -0
  476. package/src/storage/backwards_compatibility_tests/__snapshots__/RecipientTaggingStore.json +18 -0
  477. package/src/storage/backwards_compatibility_tests/__snapshots__/SenderTaggingStore.json +22 -0
  478. package/src/storage/backwards_compatibility_tests/__snapshots__/TaggingSecretSourcesStore.json +30 -0
  479. package/src/storage/backwards_compatibility_tests/__snapshots__/opened_stores.json +117 -0
  480. package/src/storage/backwards_compatibility_tests/kv_store_snapshot.ts +122 -0
  481. package/src/storage/backwards_compatibility_tests/schema_tests.ts +774 -0
  482. package/src/storage/backwards_compatibility_tests/store_spy.ts +73 -0
  483. package/src/storage/capsule_store/capsule_service.ts +85 -0
  484. package/src/storage/capsule_store/capsule_store.ts +333 -0
  485. package/src/storage/capsule_store/index.ts +2 -0
  486. package/src/storage/contract_store/contract_store.ts +401 -0
  487. package/src/storage/contract_store/index.ts +1 -0
  488. package/src/storage/{contract_data_provider → contract_store}/private_functions_tree.ts +1 -1
  489. package/src/storage/fact_store/fact_service.ts +69 -0
  490. package/src/storage/fact_store/fact_store.ts +487 -0
  491. package/src/storage/fact_store/fact_store_keys.ts +75 -0
  492. package/src/storage/fact_store/index.ts +14 -0
  493. package/src/storage/fact_store/origin_state.ts +75 -0
  494. package/src/storage/fact_store/stored_fact.ts +80 -0
  495. package/src/storage/index.ts +8 -7
  496. package/src/storage/metadata.ts +1 -1
  497. package/src/storage/note_store/index.ts +2 -0
  498. package/src/storage/note_store/note_store.ts +454 -0
  499. package/src/storage/note_store/stored_note.ts +26 -0
  500. package/src/storage/open_pxe_stores.ts +52 -0
  501. package/src/storage/private_event_store/private_event_store.ts +382 -0
  502. package/src/storage/private_event_store/stored_private_event.ts +73 -0
  503. package/src/storage/tagging_store/index.ts +3 -0
  504. package/src/storage/tagging_store/recipient_tagging_store.ts +139 -0
  505. package/src/storage/tagging_store/sender_tagging_store.ts +476 -0
  506. package/src/storage/tagging_store/tagging_secret_sources_store.ts +138 -0
  507. package/src/tagging/constants.ts +8 -2
  508. package/src/tagging/get_all_logs_by_tags.ts +120 -0
  509. package/src/tagging/index.ts +20 -6
  510. package/src/tagging/persist_sender_tagging_index_ranges.ts +57 -0
  511. package/src/tagging/recipient_sync/sync_tagged_private_logs.ts +301 -0
  512. package/src/tagging/recipient_sync/utils/find_highest_indexes.ts +34 -0
  513. package/src/tagging/reconcile_tagging_index_ranges.ts +102 -0
  514. package/src/tagging/sender_sync/sync_sender_tagging_indexes.ts +134 -0
  515. package/src/tagging/sender_sync/utils/get_status_change_of_pending.ts +66 -0
  516. package/src/tagging/sender_sync/utils/load_and_store_new_tagging_indexes.ts +84 -0
  517. package/dest/contract_function_simulator/execution_data_provider.d.ts +0 -274
  518. package/dest/contract_function_simulator/execution_data_provider.d.ts.map +0 -1
  519. package/dest/contract_function_simulator/execution_data_provider.js +0 -14
  520. package/dest/contract_function_simulator/oracle/oracle.d.ts +0 -57
  521. package/dest/contract_function_simulator/oracle/oracle.d.ts.map +0 -1
  522. package/dest/contract_function_simulator/oracle/oracle.js +0 -328
  523. package/dest/contract_function_simulator/proxied_contract_data_source.d.ts +0 -6
  524. package/dest/contract_function_simulator/proxied_contract_data_source.d.ts.map +0 -1
  525. package/dest/contract_function_simulator/proxied_contract_data_source.js +0 -62
  526. package/dest/contract_function_simulator/proxied_node.d.ts +0 -9
  527. package/dest/contract_function_simulator/proxied_node.d.ts.map +0 -1
  528. package/dest/contract_function_simulator/proxied_node.js +0 -27
  529. package/dest/contract_function_simulator/pxe_oracle_interface.d.ts +0 -122
  530. package/dest/contract_function_simulator/pxe_oracle_interface.d.ts.map +0 -1
  531. package/dest/contract_function_simulator/pxe_oracle_interface.js +0 -701
  532. package/dest/private_kernel/hints/build_private_kernel_reset_private_inputs.d.ts +0 -28
  533. package/dest/private_kernel/hints/build_private_kernel_reset_private_inputs.d.ts.map +0 -1
  534. package/dest/private_kernel/hints/build_private_kernel_reset_private_inputs.js +0 -271
  535. package/dest/private_kernel/hints/compute_tx_include_by_timestamp.d.ts +0 -4
  536. package/dest/private_kernel/hints/compute_tx_include_by_timestamp.d.ts.map +0 -1
  537. package/dest/private_kernel/private_kernel_oracle_impl.d.ts +0 -45
  538. package/dest/private_kernel/private_kernel_oracle_impl.d.ts.map +0 -1
  539. package/dest/private_kernel/private_kernel_oracle_impl.js +0 -86
  540. package/dest/storage/address_data_provider/address_data_provider.d.ts +0 -11
  541. package/dest/storage/address_data_provider/address_data_provider.d.ts.map +0 -1
  542. package/dest/storage/address_data_provider/index.d.ts +0 -2
  543. package/dest/storage/address_data_provider/index.d.ts.map +0 -1
  544. package/dest/storage/address_data_provider/index.js +0 -1
  545. package/dest/storage/capsule_data_provider/capsule_data_provider.d.ts +0 -25
  546. package/dest/storage/capsule_data_provider/capsule_data_provider.d.ts.map +0 -1
  547. package/dest/storage/capsule_data_provider/capsule_data_provider.js +0 -118
  548. package/dest/storage/capsule_data_provider/index.d.ts +0 -2
  549. package/dest/storage/capsule_data_provider/index.d.ts.map +0 -1
  550. package/dest/storage/capsule_data_provider/index.js +0 -1
  551. package/dest/storage/contract_data_provider/contract_data_provider.d.ts +0 -74
  552. package/dest/storage/contract_data_provider/contract_data_provider.d.ts.map +0 -1
  553. package/dest/storage/contract_data_provider/contract_data_provider.js +0 -205
  554. package/dest/storage/contract_data_provider/index.d.ts +0 -2
  555. package/dest/storage/contract_data_provider/index.d.ts.map +0 -1
  556. package/dest/storage/contract_data_provider/index.js +0 -1
  557. package/dest/storage/contract_data_provider/private_functions_tree.d.ts.map +0 -1
  558. package/dest/storage/note_data_provider/index.d.ts +0 -3
  559. package/dest/storage/note_data_provider/index.d.ts.map +0 -1
  560. package/dest/storage/note_data_provider/index.js +0 -2
  561. package/dest/storage/note_data_provider/note_dao.d.ts +0 -100
  562. package/dest/storage/note_data_provider/note_dao.d.ts.map +0 -1
  563. package/dest/storage/note_data_provider/note_dao.js +0 -102
  564. package/dest/storage/note_data_provider/note_data_provider.d.ts +0 -83
  565. package/dest/storage/note_data_provider/note_data_provider.d.ts.map +0 -1
  566. package/dest/storage/note_data_provider/note_data_provider.js +0 -308
  567. package/dest/storage/private_event_data_provider/private_event_data_provider.d.ts +0 -43
  568. package/dest/storage/private_event_data_provider/private_event_data_provider.d.ts.map +0 -1
  569. package/dest/storage/private_event_data_provider/private_event_data_provider.js +0 -104
  570. package/dest/storage/sync_data_provider/index.d.ts +0 -2
  571. package/dest/storage/sync_data_provider/index.d.ts.map +0 -1
  572. package/dest/storage/sync_data_provider/index.js +0 -1
  573. package/dest/storage/sync_data_provider/sync_data_provider.d.ts +0 -10
  574. package/dest/storage/sync_data_provider/sync_data_provider.d.ts.map +0 -1
  575. package/dest/storage/sync_data_provider/sync_data_provider.js +0 -26
  576. package/dest/storage/tagging_data_provider/index.d.ts +0 -2
  577. package/dest/storage/tagging_data_provider/index.d.ts.map +0 -1
  578. package/dest/storage/tagging_data_provider/index.js +0 -1
  579. package/dest/storage/tagging_data_provider/tagging_data_provider.d.ts +0 -40
  580. package/dest/storage/tagging_data_provider/tagging_data_provider.d.ts.map +0 -1
  581. package/dest/storage/tagging_data_provider/tagging_data_provider.js +0 -89
  582. package/dest/synchronizer/index.d.ts +0 -2
  583. package/dest/synchronizer/index.d.ts.map +0 -1
  584. package/dest/synchronizer/index.js +0 -1
  585. package/dest/synchronizer/synchronizer.d.ts +0 -35
  586. package/dest/synchronizer/synchronizer.d.ts.map +0 -1
  587. package/dest/synchronizer/synchronizer.js +0 -101
  588. package/dest/tagging/siloed_tag.d.ts +0 -14
  589. package/dest/tagging/siloed_tag.d.ts.map +0 -1
  590. package/dest/tagging/siloed_tag.js +0 -20
  591. package/dest/tagging/tag.d.ts +0 -12
  592. package/dest/tagging/tag.d.ts.map +0 -1
  593. package/dest/tagging/tag.js +0 -17
  594. package/dest/tagging/utils.d.ts +0 -18
  595. package/dest/tagging/utils.d.ts.map +0 -1
  596. package/dest/tagging/utils.js +0 -24
  597. package/src/contract_function_simulator/execution_data_provider.ts +0 -343
  598. package/src/contract_function_simulator/oracle/oracle.ts +0 -575
  599. package/src/contract_function_simulator/proxied_contract_data_source.ts +0 -66
  600. package/src/contract_function_simulator/proxied_node.ts +0 -33
  601. package/src/contract_function_simulator/pxe_oracle_interface.ts +0 -1019
  602. package/src/private_kernel/private_kernel_oracle_impl.ts +0 -132
  603. package/src/storage/address_data_provider/index.ts +0 -1
  604. package/src/storage/capsule_data_provider/capsule_data_provider.ts +0 -147
  605. package/src/storage/capsule_data_provider/index.ts +0 -1
  606. package/src/storage/contract_data_provider/contract_data_provider.ts +0 -294
  607. package/src/storage/contract_data_provider/index.ts +0 -1
  608. package/src/storage/note_data_provider/index.ts +0 -2
  609. package/src/storage/note_data_provider/note_dao.ts +0 -154
  610. package/src/storage/note_data_provider/note_data_provider.ts +0 -393
  611. package/src/storage/private_event_data_provider/private_event_data_provider.ts +0 -148
  612. package/src/storage/sync_data_provider/index.ts +0 -1
  613. package/src/storage/sync_data_provider/sync_data_provider.ts +0 -34
  614. package/src/storage/tagging_data_provider/index.ts +0 -1
  615. package/src/storage/tagging_data_provider/tagging_data_provider.ts +0 -120
  616. package/src/synchronizer/index.ts +0 -1
  617. package/src/synchronizer/synchronizer.ts +0 -120
  618. package/src/tagging/siloed_tag.ts +0 -22
  619. package/src/tagging/tag.ts +0 -16
  620. package/src/tagging/utils.ts +0 -31
@@ -1,97 +1,24 @@
1
- import type { L1_TO_L2_MSG_TREE_HEIGHT } from '@aztec/constants';
2
- import { Fr, Point } from '@aztec/foundation/fields';
3
- import type { FunctionSelector, NoteSelector } from '@aztec/stdlib/abi';
4
- import type { AztecAddress } from '@aztec/stdlib/aztec-address';
5
- import type { CompleteAddress, ContractInstance } from '@aztec/stdlib/contract';
6
- import type { KeyValidationRequest } from '@aztec/stdlib/kernel';
7
- import type { ContractClassLog } from '@aztec/stdlib/logs';
8
- import type { Note, NoteStatus } from '@aztec/stdlib/note';
9
- import { type MerkleTreeId, type NullifierMembershipWitness, PublicDataWitness } from '@aztec/stdlib/trees';
10
- import type { BlockHeader } from '@aztec/stdlib/tx';
11
- import type { Tag } from '../../tagging/tag.js';
12
- import type { UtilityContext } from '../noir-structs/utility_context.js';
13
- import type { MessageLoadOracleInputs } from './message_load_oracle_inputs.js';
1
+ import type { HandlersForPrefix, ORACLE_REGISTRY } from './oracle_registry.js';
14
2
  /**
15
- * Information about a note needed during execution.
3
+ * Miscellaneous oracle methods, not very Aztec-specific and expected to be available in all scenarios in which aztec-nr
4
+ * code runs, except #[external("public")] functions (since those are transpiled to AVM bytecode, where there are no
5
+ * oracles).
16
6
  */
17
- export interface NoteData {
18
- /** The actual note content (the fields of the Noir #[note] struct). */
19
- note: Note;
20
- /** The address of the contract that owns the note. */
21
- contractAddress: AztecAddress;
22
- /** The storage slot of the note. */
23
- storageSlot: Fr;
24
- /** The nonce injected into the note hash preimage by kernels. */
25
- noteNonce: Fr;
26
- /** A hash of the note as it gets stored in the note hash tree. */
27
- noteHash: Fr;
28
- /** The corresponding nullifier of the note. Undefined for pending notes. */
29
- siloedNullifier?: Fr;
30
- /** The note's leaf index in the note hash tree. Undefined for pending notes. */
31
- index?: bigint;
32
- }
33
- /**
34
- * Miscellaneous oracle methods, not very Aztec-specific and expected to be available all scenarios in which aztec-nr
35
- * code runs, except #[external("public")] functions (since those are transpiled to AVM bytecode, where there are no oracles).
36
- */
37
- export interface IMiscOracle {
7
+ export type IMiscOracle = HandlersForPrefix<typeof ORACLE_REGISTRY, 'misc'> & {
38
8
  isMisc: true;
39
- utilityGetRandomField(): Fr;
40
- utilityAssertCompatibleOracleVersion(version: number): void;
41
- utilityDebugLog(level: number, message: string, fields: Fr[]): void;
42
- }
9
+ };
43
10
  /**
44
- * Oracle methods associated with the execution of an Aztec #[external("utility")] function. Note that the IMiscOracles are also
45
- * expected to be available in these contexts.
11
+ * Oracle methods associated with the execution of an Aztec #[external("utility")] function. Note that the IMiscOracle
12
+ * methods are also expected to be available in these contexts.
46
13
  */
47
- export interface IUtilityExecutionOracle {
14
+ export type IUtilityExecutionOracle = HandlersForPrefix<typeof ORACLE_REGISTRY, 'utl'> & {
48
15
  isUtility: true;
49
- utilityGetUtilityContext(): Promise<UtilityContext>;
50
- utilityGetKeyValidationRequest(pkMHash: Fr): Promise<KeyValidationRequest>;
51
- utilityGetContractInstance(address: AztecAddress): Promise<ContractInstance>;
52
- utilityGetMembershipWitness(blockNumber: number, treeId: MerkleTreeId, leafValue: Fr): Promise<Fr[] | undefined>;
53
- utilityGetNullifierMembershipWitness(blockNumber: number, nullifier: Fr): Promise<NullifierMembershipWitness | undefined>;
54
- utilityGetPublicDataWitness(blockNumber: number, leafSlot: Fr): Promise<PublicDataWitness | undefined>;
55
- utilityGetLowNullifierMembershipWitness(blockNumber: number, nullifier: Fr): Promise<NullifierMembershipWitness | undefined>;
56
- utilityGetBlockHeader(blockNumber: number): Promise<BlockHeader | undefined>;
57
- utilityGetPublicKeysAndPartialAddress(account: AztecAddress): Promise<CompleteAddress>;
58
- utilityGetAuthWitness(messageHash: Fr): Promise<Fr[] | undefined>;
59
- 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[]>;
60
- utilityCheckNullifierExists(innerNullifier: Fr): Promise<boolean>;
61
- utilityGetL1ToL2MembershipWitness(contractAddress: AztecAddress, messageHash: Fr, secret: Fr): Promise<MessageLoadOracleInputs<typeof L1_TO_L2_MSG_TREE_HEIGHT>>;
62
- utilityStorageRead(contractAddress: AztecAddress, startStorageSlot: Fr, blockNumber: number, numberOfElements: number): Promise<Fr[]>;
63
- utilityFetchTaggedLogs(pendingTaggedLogArrayBaseSlot: Fr): Promise<void>;
64
- utilityValidateEnqueuedNotesAndEvents(contractAddress: AztecAddress, noteValidationRequestsArrayBaseSlot: Fr, eventValidationRequestsArrayBaseSlot: Fr): Promise<void>;
65
- utilityBulkRetrieveLogs(contractAddress: AztecAddress, logRetrievalRequestsArrayBaseSlot: Fr, logRetrievalResponsesArrayBaseSlot: Fr): Promise<void>;
66
- utilityStoreCapsule(contractAddress: AztecAddress, key: Fr, capsule: Fr[]): Promise<void>;
67
- utilityLoadCapsule(contractAddress: AztecAddress, key: Fr): Promise<Fr[] | null>;
68
- utilityDeleteCapsule(contractAddress: AztecAddress, key: Fr): Promise<void>;
69
- utilityCopyCapsule(contractAddress: AztecAddress, srcKey: Fr, dstKey: Fr, numEntries: number): Promise<void>;
70
- utilityAes128Decrypt(ciphertext: Buffer, iv: Buffer, symKey: Buffer): Promise<Buffer>;
71
- utilityGetSharedSecret(address: AztecAddress, ephPk: Point): Promise<Point>;
72
- }
16
+ };
73
17
  /**
74
- * Oracle methods associated with the execution of an Aztec #[external("private")] function. Note that both the IMiscOracles and
75
- * IUtilityExecutionOracle are also expected to be available in these contexts.
18
+ * Oracle methods associated with the execution of an Aztec #[external("private")] function. Note that both the
19
+ * IMiscOracle and IUtilityExecutionOracle methods are also expected to be available in these contexts.
76
20
  */
77
- export interface IPrivateExecutionOracle {
21
+ export type IPrivateExecutionOracle = HandlersForPrefix<typeof ORACLE_REGISTRY, 'prv'> & {
78
22
  isPrivate: true;
79
- privateStoreInExecutionCache(values: Fr[], hash: Fr): void;
80
- privateLoadFromExecutionCache(hash: Fr): Promise<Fr[]>;
81
- privateNotifyCreatedNote(storageSlot: Fr, noteTypeId: NoteSelector, note: Fr[], noteHash: Fr, counter: number): void;
82
- privateNotifyNullifiedNote(innerNullifier: Fr, noteHash: Fr, counter: number): Promise<void>;
83
- privateNotifyCreatedNullifier(innerNullifier: Fr): Promise<void>;
84
- privateNotifyCreatedContractClassLog(log: ContractClassLog, counter: number): void;
85
- privateCallPrivateFunction(targetContractAddress: AztecAddress, functionSelector: FunctionSelector, argsHash: Fr, sideEffectCounter: number, isStaticCall: boolean): Promise<{
86
- endSideEffectCounter: Fr;
87
- returnsHash: Fr;
88
- }>;
89
- privateNotifyEnqueuedPublicFunctionCall(targetContractAddress: AztecAddress, calldataHash: Fr, sideEffectCounter: number, isStaticCall: boolean): Promise<void>;
90
- privateNotifySetPublicTeardownFunctionCall(targetContractAddress: AztecAddress, calldataHash: Fr, sideEffectCounter: number, isStaticCall: boolean): Promise<void>;
91
- privateNotifySetMinRevertibleSideEffectCounter(minRevertibleSideEffectCounter: number): Promise<void>;
92
- privateGetSenderForTags(): Promise<AztecAddress | undefined>;
93
- privateSetSenderForTags(senderForTags: AztecAddress): Promise<void>;
94
- privateGetNextAppTagAsSender(sender: AztecAddress, recipient: AztecAddress): Promise<Tag>;
95
- utilityEmitOffchainEffect(data: Fr[]): Promise<void>;
96
- }
97
- //# sourceMappingURL=interfaces.d.ts.map
23
+ };
24
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJmYWNlcy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NvbnRyYWN0X2Z1bmN0aW9uX3NpbXVsYXRvci9vcmFjbGUvaW50ZXJmYWNlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPL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,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB,0CAA0C,CACxC,qBAAqB,EAAE,YAAY,EACnC,YAAY,EAAE,EAAE,EAChB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,OAAO,GACpB,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB,8CAA8C,CAAC,8BAA8B,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACtG,uBAAuB,IAAI,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC,CAAC;IAC7D,uBAAuB,CAAC,aAAa,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpE,4BAA4B,CAAC,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAC1F,yBAAyB,CAAC,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACtD"}
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/contract_function_simulator/oracle/interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE/E;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,iBAAiB,CAAC,OAAO,eAAe,EAAE,MAAM,CAAC,GAAG;IAAE,MAAM,EAAE,IAAI,CAAA;CAAE,CAAC;AAE/F;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG,iBAAiB,CAAC,OAAO,eAAe,EAAE,KAAK,CAAC,GAAG;IAAE,SAAS,EAAE,IAAI,CAAA;CAAE,CAAC;AAE7G;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG,iBAAiB,CAAC,OAAO,eAAe,EAAE,KAAK,CAAC,GAAG;IAAE,SAAS,EAAE,IAAI,CAAA;CAAE,CAAC"}
@@ -1,4 +1,4 @@
1
1
  /**
2
- * Oracle methods associated with the execution of an Aztec #[external("private")] function. Note that both the IMiscOracles and
3
- * IUtilityExecutionOracle are also expected to be available in these contexts.
2
+ * Oracle methods associated with the execution of an Aztec #[external("private")] function. Note that both the
3
+ * IMiscOracle and IUtilityExecutionOracle methods are also expected to be available in these contexts.
4
4
  */ export { };
@@ -0,0 +1,39 @@
1
+ import { ORACLE_REGISTRY, type RegistryParam } from './oracle_registry.js';
2
+ import { type TypeMapping } from './oracle_type_mappings.js';
3
+ /**
4
+ * Wire shapes that already-deployed contracts still call by their original oracle name, keyed by that retired name.
5
+ * New Aztec.nr calls the current name in `ORACLE_REGISTRY`; old bytecode keeps calling the name compiled into it and
6
+ * is served from here, so versioning an oracle's wire (e.g. adding return fields) stops being a breaking change.
7
+ *
8
+ * Append-only. Drop an entry only once the `ORACLE_VERSION_MAJOR` that introduced its successor is retired, since
9
+ * older contracts can no longer run against this environment.
10
+ */
11
+ export declare const LEGACY_ORACLE_REGISTRY: Record<string, LegacyOracleEntry>;
12
+ type Registry = typeof ORACLE_REGISTRY;
13
+ /**
14
+ * A legacy oracle adapter, stored under the retired oracle name that already-deployed contracts still call. It reuses
15
+ * the handler of `modernOracle` and overrides only the wire side(s) that changed; an omitted side falls back to that
16
+ * modern entry.
17
+ */
18
+ export interface LegacyOracleEntry {
19
+ /** The current oracle whose handler this reuses and whose param/return wire it inherits by default. */
20
+ modernOracle: keyof Registry;
21
+ /**
22
+ * Old param wire. `legacyType` deserializes the old wire; `mapping` bridges the deserialized legacy args to the
23
+ * modern handler's args. Omit when the param wire is unchanged.
24
+ */
25
+ params?: {
26
+ legacyType: readonly RegistryParam[];
27
+ mapping: (legacyArgs: any) => readonly unknown[];
28
+ };
29
+ /**
30
+ * Old return wire. `legacyType` serializes the subset the old contract reads; `mapping` bridges the handler's
31
+ * current result to that subset's value type. Omit when the return wire is unchanged.
32
+ */
33
+ returnType?: {
34
+ legacyType: TypeMapping;
35
+ mapping: (result: any) => unknown;
36
+ };
37
+ }
38
+ export {};
39
+ //# sourceMappingURL=data:application/json;base64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ourceRoot":"","sources":["../../../src/contract_function_simulator/oracle/legacy_oracle_registry.ts"],"names":[],"mappings":"AAOA,OAAO,EAEL,eAAe,EAGf,KAAK,aAAa,EACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAML,KAAK,WAAW,EACjB,MAAM,2BAA2B,CAAC;AAsBnC;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAiBpE,CAAC;AAcF,KAAK,QAAQ,GAAG,OAAO,eAAe,CAAC;AAQvC;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,uGAAuG;IACvG,YAAY,EAAE,MAAM,QAAQ,CAAC;IAC7B;;;OAGG;IACH,MAAM,CAAC,EAAE;QAAE,UAAU,EAAE,SAAS,aAAa,EAAE,CAAC;QAAC,OAAO,EAAE,CAAC,UAAU,EAAE,GAAG,KAAK,SAAS,OAAO,EAAE,CAAA;KAAE,CAAC;IACpG;;;OAGG;IACH,UAAU,CAAC,EAAE;QAAE,UAAU,EAAE,WAAW,CAAC;QAAC,OAAO,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,OAAO,CAAA;KAAE,CAAC;CAC7E"}
@@ -0,0 +1,74 @@
1
+ /* eslint-disable camelcase */ import { MAX_NOTE_HASHES_PER_TX, PRIVATE_LOG_CIPHERTEXT_LEN, PRIVATE_LOG_SIZE_IN_FIELDS } from '@aztec/constants';
2
+ import { EPHEMERAL_ARRAY, FIELD, FIXED_BOUNDED_VEC, STRUCT, TX_HASH } from './oracle_type_mappings.js';
3
+ const LEGACY_LOG_RETRIEVAL_RESPONSE = STRUCT([
4
+ {
5
+ name: 'logPayload',
6
+ type: FIXED_BOUNDED_VEC(FIELD, PRIVATE_LOG_CIPHERTEXT_LEN)
7
+ },
8
+ {
9
+ name: 'txHash',
10
+ type: TX_HASH
11
+ },
12
+ {
13
+ name: 'uniqueNoteHashesInTx',
14
+ type: FIXED_BOUNDED_VEC(FIELD, MAX_NOTE_HASHES_PER_TX)
15
+ },
16
+ {
17
+ name: 'firstNullifierInTx',
18
+ type: FIELD
19
+ }
20
+ ]);
21
+ // Block-less transaction context: the prefix of `ResolvedTx`'s wire carried by the original `getPendingTaggedLogs`
22
+ // oracle. Known as `MessageContext` in the Aztec.nr versions that call that oracle.
23
+ const LEGACY_MESSAGE_CONTEXT = STRUCT([
24
+ {
25
+ name: 'txHash',
26
+ type: TX_HASH
27
+ },
28
+ {
29
+ name: 'uniqueNoteHashesInTx',
30
+ type: FIXED_BOUNDED_VEC(FIELD, MAX_NOTE_HASHES_PER_TX)
31
+ },
32
+ {
33
+ name: 'firstNullifierInTx',
34
+ type: FIELD
35
+ }
36
+ ]);
37
+ const LEGACY_PENDING_TAGGED_LOG = STRUCT([
38
+ {
39
+ name: 'log',
40
+ type: FIXED_BOUNDED_VEC(FIELD, PRIVATE_LOG_SIZE_IN_FIELDS)
41
+ },
42
+ {
43
+ name: 'context',
44
+ type: LEGACY_MESSAGE_CONTEXT
45
+ }
46
+ ]);
47
+ /**
48
+ * Wire shapes that already-deployed contracts still call by their original oracle name, keyed by that retired name.
49
+ * New Aztec.nr calls the current name in `ORACLE_REGISTRY`; old bytecode keeps calling the name compiled into it and
50
+ * is served from here, so versioning an oracle's wire (e.g. adding return fields) stops being a breaking change.
51
+ *
52
+ * Append-only. Drop an entry only once the `ORACLE_VERSION_MAJOR` that introduced its successor is retired, since
53
+ * older contracts can no longer run against this environment.
54
+ */ export const LEGACY_ORACLE_REGISTRY = {
55
+ aztec_utl_getLogsByTag: legacyOracle({
56
+ modernOracle: 'aztec_utl_getLogsByTagV2',
57
+ returnType: {
58
+ legacyType: EPHEMERAL_ARRAY(EPHEMERAL_ARRAY(LEGACY_LOG_RETRIEVAL_RESPONSE)),
59
+ // We can map this directly, since the new type is a superset of the old type
60
+ mapping: (result)=>result
61
+ }
62
+ }),
63
+ aztec_utl_getPendingTaggedLogs: legacyOracle({
64
+ modernOracle: 'aztec_utl_getPendingTaggedLogsV2',
65
+ returnType: {
66
+ legacyType: EPHEMERAL_ARRAY(LEGACY_PENDING_TAGGED_LOG),
67
+ // We can map this directly, since `ResolvedTx` carries the legacy context's fields under the same names
68
+ mapping: (result)=>result
69
+ }
70
+ })
71
+ };
72
+ function legacyOracle(entry) {
73
+ return entry;
74
+ }
@@ -1,19 +1,8 @@
1
- import { Fr } from '@aztec/foundation/fields';
2
1
  import type { SiblingPath } from '@aztec/foundation/trees';
3
- export declare class MessageLoadOracleInputs<N extends number> {
2
+ export type MessageLoadOracleInputs<N extends number> = {
4
3
  /** The index of the message commitment in the merkle tree. */
5
4
  index: bigint;
6
5
  /** The path in the merkle tree to the message. */
7
6
  siblingPath: SiblingPath<N>;
8
- constructor(
9
- /** The index of the message commitment in the merkle tree. */
10
- index: bigint,
11
- /** The path in the merkle tree to the message. */
12
- siblingPath: SiblingPath<N>);
13
- toFields(): Fr[];
14
- /**
15
- * Returns a representation of the public data witness as expected by intrinsic Noir deserialization.
16
- */
17
- toNoirRepresentation(): (string | string[])[];
18
- }
19
- //# sourceMappingURL=message_load_oracle_inputs.d.ts.map
7
+ };
8
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVzc2FnZV9sb2FkX29yYWNsZV9pbnB1dHMuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb250cmFjdF9mdW5jdGlvbl9zaW11bGF0b3Ivb3JhY2xlL21lc3NhZ2VfbG9hZF9vcmFjbGVfaW5wdXRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxFQUFFLFdBQVcsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBRTNELE1BQU0sTUFBTSx1QkFBdUIsQ0FBQyxDQUFDLFNBQVMsTUFBTSxJQUFJO0lBQ3RELDhEQUE4RDtJQUM5RCxLQUFLLEVBQUUsTUFBTSxDQUFDO0lBQ2Qsa0RBQWtEO0lBQ2xELFdBQVcsRUFBRSxXQUFXLENBQUMsQ0FBQyxDQUFDLENBQUM7Q0FDN0IsQ0FBQyJ9
@@ -1 +1 @@
1
- {"version":3,"file":"message_load_oracle_inputs.d.ts","sourceRoot":"","sources":["../../../src/contract_function_simulator/oracle/message_load_oracle_inputs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,qBAAa,uBAAuB,CAAC,CAAC,SAAS,MAAM;IAEjD,8DAA8D;IACvD,KAAK,EAAE,MAAM;IACpB,kDAAkD;IAC3C,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC;;IAHlC,8DAA8D;IACvD,KAAK,EAAE,MAAM;IACpB,kDAAkD;IAC3C,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC;IAGpC,QAAQ,IAAI,EAAE,EAAE;IAIhB;;OAEG;IACI,oBAAoB,IAAI,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,EAAE;CAIrD"}
1
+ {"version":3,"file":"message_load_oracle_inputs.d.ts","sourceRoot":"","sources":["../../../src/contract_function_simulator/oracle/message_load_oracle_inputs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,MAAM,MAAM,uBAAuB,CAAC,CAAC,SAAS,MAAM,IAAI;IACtD,8DAA8D;IAC9D,KAAK,EAAE,MAAM,CAAC;IACd,kDAAkD;IAClD,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;CAC7B,CAAC"}
@@ -1,24 +1 @@
1
- import { Fr } from '@aztec/foundation/fields';
2
- export class MessageLoadOracleInputs {
3
- index;
4
- siblingPath;
5
- constructor(/** The index of the message commitment in the merkle tree. */ index, /** The path in the merkle tree to the message. */ siblingPath){
6
- this.index = index;
7
- this.siblingPath = siblingPath;
8
- }
9
- toFields() {
10
- return [
11
- new Fr(this.index),
12
- ...this.siblingPath.toFields()
13
- ];
14
- }
15
- /**
16
- * Returns a representation of the public data witness as expected by intrinsic Noir deserialization.
17
- */ toNoirRepresentation() {
18
- // TODO(#12874): remove the stupid as string conversion by modifying ForeignCallOutput type in acvm.js
19
- return [
20
- new Fr(this.index).toString(),
21
- this.siblingPath.toFields().map((fr)=>fr.toString())
22
- ];
23
- }
24
- }
1
+ export { };
@@ -1,22 +1,28 @@
1
- import { Fr } from '@aztec/foundation/fields';
1
+ import { Fr } from '@aztec/foundation/curves/bn254';
2
2
  import type { AztecAddress } from '@aztec/stdlib/aztec-address';
3
3
  import type { Note } from '@aztec/stdlib/note';
4
4
  /**
5
- * Packs a note in a format that is compatible with the default Packable implementation of the retrieved note.
5
+ * Packs a note in a format that is compatible with the default Packable implementation of the hinted note.
6
6
  *
7
7
  * @dev Unlike the default Packable implementation, this function first constructs the note metadata from the inputs
8
- * and only after that it packs the retrieved note. Hence it doesn't map one to one with `RetrievedNote::pack()`.
8
+ * and only after that it packs the hinted note. Hence it doesn't map one to one with `HintedNote::pack()`.
9
9
  *
10
10
  * @param contractAddress - The address of the contract that owns the note
11
+ * @param owner - The owner of the note
12
+ * @param randomness - The randomness injected into the note to get the hiding property of commitments
13
+ * @param storageSlot - The storage slot of the note
11
14
  * @param noteNonce - The nonce injected into the note hash preimage by kernels.
12
- * @param index - Optional index in the note hash tree. If undefined, indicates a transient note
15
+ * @param isPending - True if the note is pending, false if settled
13
16
  * @param note - The note content containing the actual note data
14
17
  * @returns The packed note as an array of field elements
15
18
  */
16
- export declare function packAsRetrievedNote({ contractAddress, noteNonce, index, note, }: {
19
+ export declare function packAsHintedNote({ contractAddress, owner, randomness, storageSlot, noteNonce, isPending, note }: {
17
20
  contractAddress: AztecAddress;
21
+ owner: AztecAddress;
22
+ randomness: Fr;
23
+ storageSlot: Fr;
18
24
  noteNonce: Fr;
19
- index?: bigint;
25
+ isPending: boolean;
20
26
  note: Note;
21
- }): (Fr | AztecAddress)[];
22
- //# sourceMappingURL=note_packing_utils.d.ts.map
27
+ }): Fr[];
28
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm90ZV9wYWNraW5nX3V0aWxzLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29udHJhY3RfZnVuY3Rpb25fc2ltdWxhdG9yL29yYWNsZS9ub3RlX3BhY2tpbmdfdXRpbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLEVBQUUsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBQ3BELE9BQU8sS0FBSyxFQUFFLFlBQVksRUFBRSxNQUFNLDZCQUE2QixDQUFDO0FBQ2hFLE9BQU8sS0FBSyxFQUFFLElBQUksRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBaUIvQzs7Ozs7Ozs7Ozs7Ozs7R0FjRztBQUNILHdCQUFnQixnQkFBZ0IsQ0FBQyxFQUMvQixlQUFlLEVBQ2YsS0FBSyxFQUNMLFVBQVUsRUFDVixXQUFXLEVBQ1gsU0FBUyxFQUNULFNBQVMsRUFDVCxJQUFJLEVBQ0wsRUFBRTtJQUNELGVBQWUsRUFBRSxZQUFZLENBQUM7SUFDOUIsS0FBSyxFQUFFLFlBQVksQ0FBQztJQUNwQixVQUFVLEVBQUUsRUFBRSxDQUFDO0lBQ2YsV0FBVyxFQUFFLEVBQUUsQ0FBQztJQUNoQixTQUFTLEVBQUUsRUFBRSxDQUFDO0lBQ2QsU0FBUyxFQUFFLE9BQU8sQ0FBQztJQUNuQixJQUFJLEVBQUUsSUFBSSxDQUFDO0NBQ1osR0FBRyxFQUFFLEVBQUUsQ0FpQlAifQ==
@@ -1 +1 @@
1
- {"version":3,"file":"note_packing_utils.d.ts","sourceRoot":"","sources":["../../../src/contract_function_simulator/oracle/note_packing_utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAiB/C;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,eAAe,EACf,SAAS,EACT,KAAK,EACL,IAAI,GACL,EAAE;IACD,eAAe,EAAE,YAAY,CAAC;IAC9B,SAAS,EAAE,EAAE,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,IAAI,CAAC;CACZ,yBAUA"}
1
+ {"version":3,"file":"note_packing_utils.d.ts","sourceRoot":"","sources":["../../../src/contract_function_simulator/oracle/note_packing_utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAiB/C;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,eAAe,EACf,KAAK,EACL,UAAU,EACV,WAAW,EACX,SAAS,EACT,SAAS,EACT,IAAI,EACL,EAAE;IACD,eAAe,EAAE,YAAY,CAAC;IAC9B,KAAK,EAAE,YAAY,CAAC;IACpB,UAAU,EAAE,EAAE,CAAC;IACf,WAAW,EAAE,EAAE,CAAC;IAChB,SAAS,EAAE,EAAE,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,IAAI,CAAC;CACZ,GAAG,EAAE,EAAE,CAiBP"}
@@ -1,4 +1,4 @@
1
- import { Fr } from '@aztec/foundation/fields';
1
+ import { Fr } from '@aztec/foundation/curves/bn254';
2
2
  // TS equivalent of the `NoteMetadata::from_raw_data` function in `aztec/src/note/note_metadata.nr`
3
3
  function fromRawData(nonzeroNoteHashCounter, maybeNoteNonce) {
4
4
  if (nonzeroNoteHashCounter) {
@@ -23,26 +23,31 @@ function fromRawData(nonzeroNoteHashCounter, maybeNoteNonce) {
23
23
  }
24
24
  }
25
25
  /**
26
- * Packs a note in a format that is compatible with the default Packable implementation of the retrieved note.
26
+ * Packs a note in a format that is compatible with the default Packable implementation of the hinted note.
27
27
  *
28
28
  * @dev Unlike the default Packable implementation, this function first constructs the note metadata from the inputs
29
- * and only after that it packs the retrieved note. Hence it doesn't map one to one with `RetrievedNote::pack()`.
29
+ * and only after that it packs the hinted note. Hence it doesn't map one to one with `HintedNote::pack()`.
30
30
  *
31
31
  * @param contractAddress - The address of the contract that owns the note
32
+ * @param owner - The owner of the note
33
+ * @param randomness - The randomness injected into the note to get the hiding property of commitments
34
+ * @param storageSlot - The storage slot of the note
32
35
  * @param noteNonce - The nonce injected into the note hash preimage by kernels.
33
- * @param index - Optional index in the note hash tree. If undefined, indicates a transient note
36
+ * @param isPending - True if the note is pending, false if settled
34
37
  * @param note - The note content containing the actual note data
35
38
  * @returns The packed note as an array of field elements
36
- */ export function packAsRetrievedNote({ contractAddress, noteNonce, index, note }) {
37
- // If index is undefined, the note is transient which implies that the nonzero_note_hash_counter has to be true
38
- const noteIsTransient = index === undefined;
39
- const nonzeroNoteHashCounter = noteIsTransient ? true : false;
40
- // To pack the note as retrieved note we first need to reconstruct the note metadata.
41
- const noteMetadata = fromRawData(nonzeroNoteHashCounter, noteNonce);
42
- // Pack metadata first (stage and maybe_note_nonce), followed by the rest
39
+ */ export function packAsHintedNote({ contractAddress, owner, randomness, storageSlot, noteNonce, isPending, note }) {
40
+ // If the note is pending it means it has a non-zero note hash counter associated with it.
41
+ const nonZeroNoteHashCounter = isPending;
42
+ // To pack the note as hinted note we first need to reconstruct the note metadata.
43
+ const noteMetadata = fromRawData(nonZeroNoteHashCounter, noteNonce);
44
+ // Pack in order: note, contract_address, owner, randomness, storage_slot, metadata (stage, maybe_note_nonce)
43
45
  return [
44
46
  ...note.items,
45
- contractAddress,
47
+ contractAddress.toField(),
48
+ owner.toField(),
49
+ randomness,
50
+ storageSlot,
46
51
  new Fr(noteMetadata.stage),
47
52
  noteMetadata.maybeNoteNonce
48
53
  ];
@@ -0,0 +1,136 @@
1
+ import { Fr } from '@aztec/foundation/curves/bn254';
2
+ import { type InputSlot, type MaybePromise, type OutputSlot, type TypeMapping } from './oracle_type_mappings.js';
3
+ export { ARRAY, AZTEC_ADDRESS, BIGINT, BLOCK_NUMBER, BOOL, BOUNDED_VEC, BUFFER, BYTE, CONTRACT_CLASS_LOG, DELIVERY_MODE, RESOLVED_TAGGING_STRATEGY, EPHEMERAL_ARRAY, EVENT_VALIDATION_REQUEST, FIELD, FUNCTION_SELECTOR, LOG_RETRIEVAL_REQUEST, LOG_RETRIEVAL_RESPONSE, MEMBERSHIP_WITNESS, NOTE_VALIDATION_REQUEST, OPTION, PENDING_TAGGED_LOG, POINT, PROVIDED_SECRET, RESOLVED_TX, STR, U32, slotsOf, type InputSlot, type MaybePromise, type OutputSlot, type SlotShape, type TypeMapping, } from './oracle_type_mappings.js';
4
+ export declare const ORACLE_REGISTRY: {
5
+ aztec_misc_assertCompatibleOracleVersion: OracleRegistryEntry<[NamedValue<"major", number>, NamedValue<"minor", number>], any>;
6
+ aztec_misc_getRandomField: OracleRegistryEntry<NamedValue<string, any>[], Fr>;
7
+ aztec_misc_log: OracleRegistryEntry<[NamedValue<"level", number>, NamedValue<"message", string>, NamedValue<"fieldsSize", number>, NamedValue<"fields", Fr[]>], any>;
8
+ aztec_utl_getUtilityContext: OracleRegistryEntry<NamedValue<string, any>[], import("../index.js").UtilityContext>;
9
+ aztec_utl_getKeyValidationRequest: OracleRegistryEntry<[NamedValue<"pkMHash", Fr>, NamedValue<"keyIndex", Fr>], import("@aztec/stdlib/kernel").KeyValidationRequest>;
10
+ aztec_utl_getContractInstance: OracleRegistryEntry<[NamedValue<"address", import("@aztec/stdlib/aztec-address").AztecAddress>], import("./oracle_type_mappings.js").ContractInstancePreimage>;
11
+ aztec_utl_getNoteHashMembershipWitness: OracleRegistryEntry<[NamedValue<"anchorBlockHash", import("./oracle_type_mappings.js").BlockHash>, NamedValue<"noteHash", Fr>], import("./oracle_type_mappings.js").MembershipWitness<42>>;
12
+ aztec_utl_getBlockHashMembershipWitness: OracleRegistryEntry<[NamedValue<"anchorBlockHash", import("./oracle_type_mappings.js").BlockHash>, NamedValue<"blockHash", import("./oracle_type_mappings.js").BlockHash>], import("../index.js").Option<import("./oracle_type_mappings.js").MembershipWitness<30>>>;
13
+ aztec_utl_getNullifierMembershipWitness: OracleRegistryEntry<[NamedValue<"blockHash", import("./oracle_type_mappings.js").BlockHash>, NamedValue<"nullifier", Fr>], import("./oracle_type_mappings.js").NullifierMembershipWitness>;
14
+ aztec_utl_getLowNullifierMembershipWitness: OracleRegistryEntry<[NamedValue<"blockHash", import("./oracle_type_mappings.js").BlockHash>, NamedValue<"nullifier", Fr>], import("./oracle_type_mappings.js").NullifierMembershipWitness>;
15
+ aztec_utl_getPublicDataWitness: OracleRegistryEntry<[NamedValue<"blockHash", import("./oracle_type_mappings.js").BlockHash>, NamedValue<"leafSlot", Fr>], import("./oracle_type_mappings.js").PublicDataWitness>;
16
+ aztec_utl_getBlockHeader: OracleRegistryEntry<[NamedValue<"blockNumber", import("@aztec/foundation/branded-types").BlockNumber>], import("./oracle_type_mappings.js").BlockHeader>;
17
+ aztec_utl_getAuthWitness: OracleRegistryEntry<[NamedValue<"messageHash", Fr>], Fr[]>;
18
+ aztec_utl_getPublicKeysAndPartialAddress: OracleRegistryEntry<[NamedValue<"address", import("@aztec/stdlib/aztec-address").AztecAddress>], import("../index.js").Option<{
19
+ publicKeys: import("@aztec/stdlib/keys").PublicKeys;
20
+ partialAddress: Fr;
21
+ }>>;
22
+ aztec_utl_doesNullifierExist: OracleRegistryEntry<[NamedValue<"innerNullifier", Fr>], boolean>;
23
+ aztec_utl_getL1ToL2MembershipWitness: OracleRegistryEntry<[NamedValue<"contractAddress", import("@aztec/stdlib/aztec-address").AztecAddress>, NamedValue<"messageHash", Fr>, NamedValue<"secret", Fr>], import("./message_load_oracle_inputs.js").MessageLoadOracleInputs<36>>;
24
+ aztec_utl_getFromPublicStorage: OracleRegistryEntry<[NamedValue<"blockHash", import("./oracle_type_mappings.js").BlockHash>, NamedValue<"contractAddress", import("@aztec/stdlib/aztec-address").AztecAddress>, NamedValue<"startStorageSlot", Fr>, NamedValue<"numberOfElements", number>], Fr[]>;
25
+ aztec_utl_getNotes: OracleRegistryEntry<[NamedValue<"owner", import("../index.js").Option<import("@aztec/stdlib/aztec-address").AztecAddress>>, NamedValue<"storageSlot", Fr>, NamedValue<"numSelects", number>, NamedValue<"selectByIndexes", number[]>, NamedValue<"selectByOffsets", number[]>, NamedValue<"selectByLengths", number[]>, NamedValue<"selectValues", Fr[]>, NamedValue<"selectComparators", number[]>, NamedValue<"sortByIndexes", number[]>, NamedValue<"sortByOffsets", number[]>, NamedValue<"sortByLengths", number[]>, NamedValue<"sortOrder", number[]>, NamedValue<"limit", number>, NamedValue<"offset", number>, NamedValue<"status", number>, NamedValue<"maxNotes", number>, NamedValue<"packedHintedNoteLength", number>], import("../index.js").BoundedVec<import("../index.js").NoteData>>;
26
+ aztec_utl_getPendingTaggedLogsV2: OracleRegistryEntry<[NamedValue<"scope", import("@aztec/stdlib/aztec-address").AztecAddress>, NamedValue<"providedSecrets", import("../index.js").EphemeralArray<import("../index.js").ProvidedSecret>>], import("../index.js").EphemeralArray<import("./oracle_type_mappings.js").PendingTaggedLog>>;
27
+ aztec_utl_validateAndStoreEnqueuedNotesAndEvents: OracleRegistryEntry<[NamedValue<"noteValidationRequests", import("../index.js").EphemeralArray<import("../index.js").NoteValidationRequest>>, NamedValue<"eventValidationRequests", import("../index.js").EphemeralArray<import("../index.js").EventValidationRequest>>, NamedValue<"scope", import("@aztec/stdlib/aztec-address").AztecAddress>], any>;
28
+ aztec_utl_getLogsByTagV2: OracleRegistryEntry<[NamedValue<"requests", import("../index.js").EphemeralArray<import("../index.js").LogRetrievalRequest>>], import("../index.js").EphemeralArray<import("../index.js").EphemeralArray<import("../index.js").LogRetrievalResponse>>>;
29
+ aztec_utl_getResolvedTxs: OracleRegistryEntry<[NamedValue<"requests", import("../index.js").EphemeralArray<Fr>>], import("../index.js").EphemeralArray<import("../index.js").Option<import("../index.js").ResolvedTx>>>;
30
+ aztec_utl_getTxEffect: OracleRegistryEntry<[NamedValue<"txHash", import("@aztec/stdlib/tx/tx-hash").TxHash>], import("../index.js").Option<import("../index.js").TxEffectData>>;
31
+ aztec_utl_setCapsule: OracleRegistryEntry<[NamedValue<"contractAddress", import("@aztec/stdlib/aztec-address").AztecAddress>, NamedValue<"slot", Fr>, NamedValue<"capsule", Fr[]>, NamedValue<"scope", import("@aztec/stdlib/aztec-address").AztecAddress>], any>;
32
+ aztec_utl_getCapsule: OracleRegistryEntry<[NamedValue<"contractAddress", import("@aztec/stdlib/aztec-address").AztecAddress>, NamedValue<"slot", Fr>, NamedValue<"tSize", number>, NamedValue<"scope", import("@aztec/stdlib/aztec-address").AztecAddress>], import("../index.js").Option<Fr[]>>;
33
+ aztec_utl_deleteCapsule: OracleRegistryEntry<[NamedValue<"contractAddress", import("@aztec/stdlib/aztec-address").AztecAddress>, NamedValue<"slot", Fr>, NamedValue<"scope", import("@aztec/stdlib/aztec-address").AztecAddress>], any>;
34
+ aztec_utl_copyCapsule: OracleRegistryEntry<[NamedValue<"contractAddress", import("@aztec/stdlib/aztec-address").AztecAddress>, NamedValue<"srcSlot", Fr>, NamedValue<"dstSlot", Fr>, NamedValue<"numEntries", number>, NamedValue<"scope", import("@aztec/stdlib/aztec-address").AztecAddress>], any>;
35
+ aztec_utl_decryptAes128: OracleRegistryEntry<[NamedValue<"ciphertext", import("../index.js").BoundedVec<number>>, NamedValue<"iv", Buffer<ArrayBufferLike>>, NamedValue<"symKey", Buffer<ArrayBufferLike>>], import("../index.js").Option<import("../index.js").BoundedVec<number>>>;
36
+ aztec_utl_getSharedSecrets: OracleRegistryEntry<[NamedValue<"address", import("@aztec/stdlib/aztec-address").AztecAddress>, NamedValue<"ephPks", import("../index.js").EphemeralArray<import("../index.js").EmbeddedCurvePoint>>, NamedValue<"contractAddress", import("@aztec/stdlib/aztec-address").AztecAddress>], import("../index.js").EphemeralArray<Fr>>;
37
+ aztec_utl_setContractSyncCacheInvalid: OracleRegistryEntry<[NamedValue<"contractAddress", import("@aztec/stdlib/aztec-address").AztecAddress>, NamedValue<"scopes", import("../index.js").BoundedVec<import("@aztec/stdlib/aztec-address").AztecAddress>>], any>;
38
+ aztec_utl_emitOffchainEffect: OracleRegistryEntry<[NamedValue<"data", Fr[]>], any>;
39
+ aztec_utl_recordFact: OracleRegistryEntry<[NamedValue<"contractAddress", import("@aztec/stdlib/aztec-address").AztecAddress>, NamedValue<"scope", import("@aztec/stdlib/aztec-address").AztecAddress>, NamedValue<"factCollectionTypeId", Fr>, NamedValue<"factCollectionId", Fr>, NamedValue<"factTypeId", Fr>, NamedValue<"payload", import("../index.js").EphemeralArray<Fr>>, NamedValue<"originBlock", import("../index.js").Option<import("../../storage/index.js").OriginBlock>>], any>;
40
+ aztec_utl_deleteFactCollection: OracleRegistryEntry<[NamedValue<"contractAddress", import("@aztec/stdlib/aztec-address").AztecAddress>, NamedValue<"scope", import("@aztec/stdlib/aztec-address").AztecAddress>, NamedValue<"factCollectionTypeId", Fr>, NamedValue<"factCollectionId", Fr>], any>;
41
+ aztec_utl_getFactCollection: OracleRegistryEntry<[NamedValue<"contractAddress", import("@aztec/stdlib/aztec-address").AztecAddress>, NamedValue<"scope", import("@aztec/stdlib/aztec-address").AztecAddress>, NamedValue<"factCollectionTypeId", Fr>, NamedValue<"factCollectionId", Fr>], import("../index.js").Option<import("../index.js").FactCollection>>;
42
+ aztec_utl_getFactCollectionsByType: OracleRegistryEntry<[NamedValue<"contractAddress", import("@aztec/stdlib/aztec-address").AztecAddress>, NamedValue<"scope", import("@aztec/stdlib/aztec-address").AztecAddress>, NamedValue<"factCollectionTypeId", Fr>], import("../index.js").EphemeralArray<import("../index.js").FactCollection>>;
43
+ aztec_utl_callUtilityFunction: OracleRegistryEntry<[NamedValue<"contractAddress", import("@aztec/stdlib/aztec-address").AztecAddress>, NamedValue<"functionSelector", import("@aztec/stdlib/abi").FunctionSelector>, NamedValue<"args", Fr[]>], Fr[]>;
44
+ aztec_utl_pushEphemeral: OracleRegistryEntry<[NamedValue<"slot", Fr>, NamedValue<"elements", Fr[]>], number>;
45
+ aztec_utl_popEphemeral: OracleRegistryEntry<[NamedValue<"slot", Fr>], Fr[]>;
46
+ aztec_utl_getEphemeral: OracleRegistryEntry<[NamedValue<"slot", Fr>, NamedValue<"index", number>], Fr[]>;
47
+ aztec_utl_setEphemeral: OracleRegistryEntry<[NamedValue<"slot", Fr>, NamedValue<"index", number>, NamedValue<"elements", Fr[]>], any>;
48
+ aztec_utl_getEphemeralLen: OracleRegistryEntry<[NamedValue<"slot", Fr>], number>;
49
+ aztec_utl_removeEphemeral: OracleRegistryEntry<[NamedValue<"slot", Fr>, NamedValue<"index", number>], any>;
50
+ aztec_utl_clearEphemeral: OracleRegistryEntry<[NamedValue<"slot", Fr>], any>;
51
+ aztec_utl_pushTransient: OracleRegistryEntry<[NamedValue<"slot", Fr>, NamedValue<"elements", Fr[]>], number>;
52
+ aztec_utl_popTransient: OracleRegistryEntry<[NamedValue<"slot", Fr>], Fr[]>;
53
+ aztec_utl_getTransient: OracleRegistryEntry<[NamedValue<"slot", Fr>, NamedValue<"index", number>], Fr[]>;
54
+ aztec_utl_setTransient: OracleRegistryEntry<[NamedValue<"slot", Fr>, NamedValue<"index", number>, NamedValue<"elements", Fr[]>], any>;
55
+ aztec_utl_getTransientLen: OracleRegistryEntry<[NamedValue<"slot", Fr>], number>;
56
+ aztec_utl_removeTransient: OracleRegistryEntry<[NamedValue<"slot", Fr>, NamedValue<"index", number>], any>;
57
+ aztec_utl_clearTransient: OracleRegistryEntry<[NamedValue<"slot", Fr>], any>;
58
+ aztec_prv_setHashPreimage: OracleRegistryEntry<[NamedValue<"values", Fr[]>, NamedValue<"hash", Fr>], any>;
59
+ aztec_prv_getHashPreimage: OracleRegistryEntry<[NamedValue<"returnsHash", Fr>], Fr[]>;
60
+ aztec_prv_notifyCreatedNote: OracleRegistryEntry<[NamedValue<"owner", import("@aztec/stdlib/aztec-address").AztecAddress>, NamedValue<"storageSlot", Fr>, NamedValue<"randomness", Fr>, NamedValue<"noteTypeId", import("@aztec/stdlib/abi").NoteSelector>, NamedValue<"note", Fr[]>, NamedValue<"noteHash", Fr>, NamedValue<"counter", number>], any>;
61
+ aztec_prv_notifyNullifiedNote: OracleRegistryEntry<[NamedValue<"innerNullifier", Fr>, NamedValue<"noteHash", Fr>, NamedValue<"counter", number>], any>;
62
+ aztec_prv_notifyCreatedNullifier: OracleRegistryEntry<[NamedValue<"innerNullifier", Fr>], any>;
63
+ aztec_prv_isNullifierPending: OracleRegistryEntry<[NamedValue<"innerNullifier", Fr>, NamedValue<"contractAddress", import("@aztec/stdlib/aztec-address").AztecAddress>], boolean>;
64
+ aztec_prv_notifyCreatedContractClassLog: OracleRegistryEntry<[NamedValue<"log", import("../index.js").ContractClassLogData>, NamedValue<"counter", number>], any>;
65
+ aztec_prv_callPrivateFunction: OracleRegistryEntry<[NamedValue<"contractAddress", import("@aztec/stdlib/aztec-address").AztecAddress>, NamedValue<"functionSelector", import("@aztec/stdlib/abi").FunctionSelector>, NamedValue<"argsHash", Fr>, NamedValue<"sideEffectCounter", number>, NamedValue<"isStaticCall", boolean>], {
66
+ endSideEffectCounter: Fr;
67
+ returnsHash: Fr;
68
+ }>;
69
+ aztec_prv_assertValidPublicCalldata: OracleRegistryEntry<[NamedValue<"calldataHash", Fr>], any>;
70
+ aztec_prv_notifyRevertiblePhaseStart: OracleRegistryEntry<[NamedValue<"minRevertibleSideEffectCounter", number>], any>;
71
+ aztec_prv_isExecutionInRevertiblePhase: OracleRegistryEntry<[NamedValue<"sideEffectCounter", number>], boolean>;
72
+ aztec_prv_getAppTaggingSecret: OracleRegistryEntry<[NamedValue<"sender", import("@aztec/stdlib/aztec-address").AztecAddress>, NamedValue<"recipient", import("@aztec/stdlib/aztec-address").AztecAddress>], import("../index.js").Option<Fr>>;
73
+ aztec_prv_getNextTaggingIndex: OracleRegistryEntry<[NamedValue<"secret", Fr>, NamedValue<"deliveryMode", import("./oracle_type_mappings.js").AppTaggingSecretKind>], number>;
74
+ aztec_prv_getSenderForTags: OracleRegistryEntry<NamedValue<string, any>[], import("../index.js").Option<import("@aztec/stdlib/aztec-address").AztecAddress>>;
75
+ aztec_prv_resolveTaggingStrategy: OracleRegistryEntry<[NamedValue<"sender", import("@aztec/stdlib/aztec-address").AztecAddress>, NamedValue<"recipient", import("@aztec/stdlib/aztec-address").AztecAddress>, NamedValue<"deliveryMode", import("./oracle_type_mappings.js").AppTaggingSecretKind>], import("../index.js").ResolvedTaggingStrategy>;
76
+ aztec_prv_resolveCustomRequest: OracleRegistryEntry<[NamedValue<"kind", Fr>, NamedValue<"payload", Fr[]>], Fr[]>;
77
+ };
78
+ /**
79
+ * A full oracle registry entry describing param and return serialization.
80
+ *
81
+ * TDeserializedParams — the array of named pairs returned by `deserializeParams`.
82
+ * TReturnValue — the typed handler return value consumed by `serializeReturn`.
83
+ */
84
+ export interface OracleRegistryEntry<TDeserializedParams extends readonly NamedValue[] = readonly NamedValue[], TReturnValue = any> {
85
+ /** Deserialize all ACVM inputs into named pairs in positional order. */
86
+ deserializeParams(inputs: InputSlot[]): TDeserializedParams;
87
+ /** Serialize a handler return value into ACVM output slots. */
88
+ serializeReturn(result: TReturnValue): OutputSlot[];
89
+ /** The ordered named parameters with their {@link TypeMapping}s. Lets callers introspect the oracle's wire ABI. */
90
+ readonly params: readonly RegistryParam[];
91
+ /** The return {@link TypeMapping}, or `undefined` for oracles that return nothing. */
92
+ readonly returnType?: TypeMapping<TReturnValue>;
93
+ }
94
+ export declare function makeEntry<const TParams extends RegistryParam[] = [], TReturnValue = void>({ params, returnType }?: {
95
+ params?: [...TParams];
96
+ returnType?: TypeMapping<TReturnValue>;
97
+ }): OracleRegistryEntry<InferDeserializedParams<TParams>, TReturnValue>;
98
+ /** A named oracle parameter with its TypeMapping. */
99
+ export interface RegistryParam<TName extends string = string, T = any> {
100
+ name: TName;
101
+ type: TypeMapping<T>;
102
+ }
103
+ /** One named param entry from a deserializeParams result. */
104
+ export type NamedValue<TName extends string = string, TValue = any> = {
105
+ readonly name: TName;
106
+ readonly value: TValue;
107
+ };
108
+ /**
109
+ * Extracts the positional type tuple from a {@link OracleRegistryEntry.deserializeParams} result,
110
+ * stripping names to produce the handler's argument types.
111
+ *
112
+ * @example `ParamTypes<[NamedValue<'addr', AztecAddress>, NamedValue<'slot', Fr>]>` → `[AztecAddress, Fr]`
113
+ */
114
+ export type ParamTypes<T extends readonly NamedValue[]> = {
115
+ [K in keyof T]: T[K] extends NamedValue<string, infer V> ? V : never;
116
+ };
117
+ /**
118
+ * Maps a registry entry's `params` declaration to the return type of
119
+ * {@link OracleRegistryEntry.deserializeParams}: each `RegistryParam<Name, Type>` becomes a
120
+ * `NamedValue<Name, Type>` at the same position.
121
+ *
122
+ * @example `InferDeserializedParams<[RegistryParam<'addr', AztecAddress>, RegistryParam<'slot', Fr>]>`
123
+ * → `[NamedValue<'addr', AztecAddress>, NamedValue<'slot', Fr>]`
124
+ */
125
+ export type InferDeserializedParams<T extends RegistryParam[]> = {
126
+ [K in keyof T]: T[K] extends RegistryParam<infer N, infer V> ? NamedValue<N, V> : never;
127
+ };
128
+ /** Strips the `aztec_{scope}_` prefix from an oracle key to get the handler method name. */
129
+ type StripOraclePrefix<K extends string> = K extends `aztec_${string}_${infer M}` ? M : never;
130
+ /** Derives the handler function signature from a registry entry's deserialization/serialization types. */
131
+ type HandlerFn<E extends OracleRegistryEntry> = (...args: ParamTypes<ReturnType<E['deserializeParams']>>) => MaybePromise<Parameters<E['serializeReturn']>[0]>;
132
+ /** Collects all oracle handler methods for a given name prefix into a single object type. */
133
+ export type HandlersForPrefix<R extends Record<string, OracleRegistryEntry>, P extends string> = {
134
+ [K in keyof R as K extends `aztec_${P}_${string}` ? StripOraclePrefix<K & string> : never]: HandlerFn<R[K]>;
135
+ };
136
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JhY2xlX3JlZ2lzdHJ5LmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29udHJhY3RfZnVuY3Rpb25fc2ltdWxhdG9yL29yYWNsZS9vcmFjbGVfcmVnaXN0cnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsT0FBTyxFQUFFLEVBQUUsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBSXBELE9BQU8sRUFtQkwsS0FBSyxTQUFTLEVBTWQsS0FBSyxZQUFZLEVBT2pCLEtBQUssVUFBVSxFQVdmLEtBQUssV0FBVyxFQUtqQixNQUFNLDJCQUEyQixDQUFDO0FBRW5DLE9BQU8sRUFDTCxLQUFLLEVBQ0wsYUFBYSxFQUNiLE1BQU0sRUFDTixZQUFZLEVBQ1osSUFBSSxFQUNKLFdBQVcsRUFDWCxNQUFNLEVBQ04sSUFBSSxFQUNKLGtCQUFrQixFQUNsQixhQUFhLEVBQ2IseUJBQXlCLEVBQ3pCLGVBQWUsRUFDZix3QkFBd0IsRUFDeEIsS0FBSyxFQUNMLGlCQUFpQixFQUNqQixxQkFBcUIsRUFDckIsc0JBQXNCLEVBQ3RCLGtCQUFrQixFQUNsQix1QkFBdUIsRUFDdkIsTUFBTSxFQUNOLGtCQUFrQixFQUNsQixLQUFLLEVBQ0wsZUFBZSxFQUNmLFdBQVcsRUFDWCxHQUFHLEVBQ0gsR0FBRyxFQUNILE9BQU8sRUFDUCxLQUFLLFNBQVMsRUFDZCxLQUFLLFlBQVksRUFDakIsS0FBSyxVQUFVLEVBQ2YsS0FBSyxTQUFTLEVBQ2QsS0FBSyxXQUFXLEdBQ2pCLE1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CQUFpQixDQUFDLENBQUMsU0FBUyxNQUFNLElBQUksQ0FBQyxTQUFTLFNBQVMsTUFBTSxJQUFJLE1BQU0sQ0FBQyxFQUFFLEdBQUcsQ0FBQyxHQUFHLEtBQUssQ0FBQztBQUU5RiwwR0FBMEc7QUFDMUcsS0FBSyxTQUFTLENBQUMsQ0FBQyxTQUFTLG1CQUFtQixJQUFJLENBQzlDLEdBQUcsSUFBSSxFQUFFLFVBQVUsQ0FBQyxVQUFVLENBQUMsQ0FBQyxDQUFDLG1CQUFtQixDQUFDLENBQUMsQ0FBQyxLQUNwRCxZQUFZLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQyxpQkFBaUIsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQztBQUV2RCw2RkFBNkY7QUFDN0YsTUFBTSxNQUFNLGlCQUFpQixDQUFDLENBQUMsU0FBUyxNQUFNLENBQUMsTUFBTSxFQUFFLG1CQUFtQixDQUFDLEVBQUUsQ0FBQyxTQUFTLE1BQU0sSUFBSTtLQUM5RixDQUFDLElBQUksTUFBTSxDQUFDLElBQUksQ0FBQyxTQUFTLFNBQVMsQ0FBQyxJQUFJLE1BQU0sRUFBRSxHQUFHLGlCQUFpQixDQUFDLENBQUMsR0FBRyxNQUFNLENBQUMsR0FBRyxLQUFLLEdBQUcsU0FBUyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQztDQUM1RyxDQUFDIn0=
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oracle_registry.d.ts","sourceRoot":"","sources":["../../../src/contract_function_simulator/oracle/oracle_registry.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AAIpD,OAAO,EAmBL,KAAK,SAAS,EAMd,KAAK,YAAY,EAOjB,KAAK,UAAU,EAWf,KAAK,WAAW,EAKjB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,KAAK,EACL,aAAa,EACb,MAAM,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