@aztec/pxe 0.0.1-commit.f2ce05ee → 0.0.1-commit.f5a9928
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.
- package/dest/bin/check_oracle_version.js +41 -112
- package/dest/bin/index.d.ts +2 -0
- package/dest/bin/index.d.ts.map +1 -0
- package/dest/bin/index.js +1 -0
- package/dest/bin/oracle_version_helpers.d.ts +34 -0
- package/dest/bin/oracle_version_helpers.d.ts.map +1 -0
- package/dest/bin/oracle_version_helpers.js +46 -0
- package/dest/block_synchronizer/block_stream_source.d.ts +10 -0
- package/dest/block_synchronizer/block_stream_source.d.ts.map +1 -0
- package/dest/block_synchronizer/block_stream_source.js +37 -0
- package/dest/block_synchronizer/block_synchronizer.d.ts +22 -16
- package/dest/block_synchronizer/block_synchronizer.d.ts.map +1 -1
- package/dest/block_synchronizer/block_synchronizer.js +71 -28
- package/dest/config/index.d.ts +9 -2
- package/dest/config/index.d.ts.map +1 -1
- package/dest/config/index.js +14 -15
- package/dest/config/package_info.js +1 -1
- package/dest/contract/contract_class_service.d.ts +24 -0
- package/dest/contract/contract_class_service.d.ts.map +1 -0
- package/dest/contract/contract_class_service.js +36 -0
- package/dest/contract/contract_sync_service.d.ts +48 -0
- package/dest/contract/contract_sync_service.d.ts.map +1 -0
- package/dest/contract/contract_sync_service.js +119 -0
- package/dest/contract/helpers.d.ts +7 -0
- package/dest/contract/helpers.d.ts.map +1 -0
- package/dest/contract/helpers.js +20 -0
- package/dest/contract/skip_sync_contracts.d.ts +11 -0
- package/dest/contract/skip_sync_contracts.d.ts.map +1 -0
- package/dest/contract/skip_sync_contracts.js +18 -0
- package/dest/contract_function_simulator/anchored_contract_data.d.ts +36 -0
- package/dest/contract_function_simulator/anchored_contract_data.d.ts.map +1 -0
- package/dest/contract_function_simulator/anchored_contract_data.js +54 -0
- package/dest/contract_function_simulator/contract_function_simulator.d.ts +72 -43
- package/dest/contract_function_simulator/contract_function_simulator.d.ts.map +1 -1
- package/dest/contract_function_simulator/contract_function_simulator.js +266 -114
- package/dest/contract_function_simulator/ephemeral_array_service.d.ts +28 -0
- package/dest/contract_function_simulator/ephemeral_array_service.d.ts.map +1 -0
- package/dest/contract_function_simulator/ephemeral_array_service.js +78 -0
- package/dest/contract_function_simulator/execution_note_cache.d.ts +4 -10
- package/dest/contract_function_simulator/execution_note_cache.d.ts.map +1 -1
- package/dest/contract_function_simulator/execution_note_cache.js +10 -29
- package/dest/contract_function_simulator/execution_tagging_index_cache.d.ts +7 -11
- package/dest/contract_function_simulator/execution_tagging_index_cache.d.ts.map +1 -1
- package/dest/contract_function_simulator/execution_tagging_index_cache.js +19 -15
- package/dest/contract_function_simulator/index.d.ts +26 -5
- package/dest/contract_function_simulator/index.d.ts.map +1 -1
- package/dest/contract_function_simulator/index.js +11 -3
- package/dest/contract_function_simulator/noir-structs/bounded_vec.d.ts +29 -0
- package/dest/contract_function_simulator/noir-structs/bounded_vec.d.ts.map +1 -0
- package/dest/contract_function_simulator/noir-structs/bounded_vec.js +30 -0
- package/dest/contract_function_simulator/noir-structs/contract_class_log_data.d.ts +9 -0
- package/dest/contract_function_simulator/noir-structs/contract_class_log_data.d.ts.map +1 -0
- package/dest/contract_function_simulator/noir-structs/contract_class_log_data.js +1 -0
- package/dest/contract_function_simulator/noir-structs/embedded_curve_point.d.ts +7 -0
- package/dest/contract_function_simulator/noir-structs/embedded_curve_point.d.ts.map +1 -0
- package/dest/contract_function_simulator/noir-structs/embedded_curve_point.js +1 -0
- package/dest/contract_function_simulator/noir-structs/ephemeral_array.d.ts +37 -0
- package/dest/contract_function_simulator/noir-structs/ephemeral_array.d.ts.map +1 -0
- package/dest/contract_function_simulator/noir-structs/ephemeral_array.js +59 -0
- package/dest/contract_function_simulator/noir-structs/event_validation_request.d.ts +3 -4
- package/dest/contract_function_simulator/noir-structs/event_validation_request.d.ts.map +1 -1
- package/dest/contract_function_simulator/noir-structs/event_validation_request.js +9 -10
- package/dest/contract_function_simulator/noir-structs/fact.d.ts +16 -0
- package/dest/contract_function_simulator/noir-structs/fact.d.ts.map +1 -0
- package/dest/contract_function_simulator/noir-structs/fact.js +6 -0
- package/dest/contract_function_simulator/noir-structs/fact_collection.d.ts +27 -0
- package/dest/contract_function_simulator/noir-structs/fact_collection.d.ts.map +1 -0
- package/dest/contract_function_simulator/noir-structs/fact_collection.js +31 -0
- package/dest/contract_function_simulator/noir-structs/log_retrieval_request.d.ts +19 -10
- package/dest/contract_function_simulator/noir-structs/log_retrieval_request.d.ts.map +1 -1
- package/dest/contract_function_simulator/noir-structs/log_retrieval_request.js +12 -24
- package/dest/contract_function_simulator/noir-structs/log_retrieval_response.d.ts +11 -9
- package/dest/contract_function_simulator/noir-structs/log_retrieval_response.d.ts.map +1 -1
- package/dest/contract_function_simulator/noir-structs/log_retrieval_response.js +2 -63
- package/dest/contract_function_simulator/noir-structs/note_data.d.ts +27 -0
- package/dest/contract_function_simulator/noir-structs/note_data.d.ts.map +1 -0
- package/dest/contract_function_simulator/noir-structs/note_data.js +3 -0
- package/dest/contract_function_simulator/noir-structs/note_validation_request.d.ts +3 -5
- package/dest/contract_function_simulator/noir-structs/note_validation_request.d.ts.map +1 -1
- package/dest/contract_function_simulator/noir-structs/note_validation_request.js +8 -12
- package/dest/contract_function_simulator/noir-structs/option.d.ts +59 -0
- package/dest/contract_function_simulator/noir-structs/option.d.ts.map +1 -0
- package/dest/contract_function_simulator/noir-structs/option.js +67 -0
- package/dest/contract_function_simulator/noir-structs/origin_block.d.ts +11 -0
- package/dest/contract_function_simulator/noir-structs/origin_block.d.ts.map +1 -0
- package/dest/contract_function_simulator/noir-structs/origin_block.js +5 -0
- package/dest/contract_function_simulator/noir-structs/pending_tagged_log.d.ts +11 -0
- package/dest/contract_function_simulator/noir-structs/pending_tagged_log.d.ts.map +1 -0
- package/dest/contract_function_simulator/noir-structs/pending_tagged_log.js +4 -0
- package/dest/contract_function_simulator/noir-structs/provided_secret.d.ts +8 -0
- package/dest/contract_function_simulator/noir-structs/provided_secret.d.ts.map +1 -0
- package/dest/contract_function_simulator/noir-structs/provided_secret.js +1 -0
- package/dest/contract_function_simulator/noir-structs/resolved_tagging_strategy.d.ts +28 -0
- package/dest/contract_function_simulator/noir-structs/resolved_tagging_strategy.d.ts.map +1 -0
- package/dest/contract_function_simulator/noir-structs/resolved_tagging_strategy.js +50 -0
- package/dest/contract_function_simulator/noir-structs/resolved_tx.d.ts +19 -0
- package/dest/contract_function_simulator/noir-structs/resolved_tx.d.ts.map +1 -0
- package/dest/contract_function_simulator/noir-structs/resolved_tx.js +9 -0
- package/dest/contract_function_simulator/noir-structs/tx_effect_data.d.ts +15 -0
- package/dest/contract_function_simulator/noir-structs/tx_effect_data.d.ts.map +1 -0
- package/dest/contract_function_simulator/noir-structs/tx_effect_data.js +5 -0
- package/dest/contract_function_simulator/noir-structs/utility_context.d.ts +6 -11
- package/dest/contract_function_simulator/noir-structs/utility_context.d.ts.map +1 -1
- package/dest/contract_function_simulator/noir-structs/utility_context.js +1 -20
- package/dest/contract_function_simulator/oracle/acir_callback.d.ts +21 -0
- package/dest/contract_function_simulator/oracle/acir_callback.d.ts.map +1 -0
- package/dest/contract_function_simulator/oracle/acir_callback.js +115 -0
- package/dest/contract_function_simulator/oracle/index.d.ts +2 -13
- package/dest/contract_function_simulator/oracle/index.d.ts.map +1 -1
- package/dest/contract_function_simulator/oracle/index.js +1 -1
- package/dest/contract_function_simulator/oracle/interfaces.d.ts +15 -98
- package/dest/contract_function_simulator/oracle/interfaces.d.ts.map +1 -1
- package/dest/contract_function_simulator/oracle/interfaces.js +2 -2
- package/dest/contract_function_simulator/oracle/legacy_oracle_registry.d.ts +39 -0
- package/dest/contract_function_simulator/oracle/legacy_oracle_registry.d.ts.map +1 -0
- package/dest/contract_function_simulator/oracle/legacy_oracle_registry.js +107 -0
- package/dest/contract_function_simulator/oracle/message_load_oracle_inputs.d.ts +3 -14
- package/dest/contract_function_simulator/oracle/message_load_oracle_inputs.d.ts.map +1 -1
- package/dest/contract_function_simulator/oracle/message_load_oracle_inputs.js +1 -24
- package/dest/contract_function_simulator/oracle/note_packing_utils.d.ts +2 -2
- package/dest/contract_function_simulator/oracle/note_packing_utils.d.ts.map +1 -1
- package/dest/contract_function_simulator/oracle/note_packing_utils.js +2 -2
- package/dest/contract_function_simulator/oracle/oracle_registry.d.ts +139 -0
- package/dest/contract_function_simulator/oracle/oracle_registry.d.ts.map +1 -0
- package/dest/contract_function_simulator/oracle/oracle_registry.js +1016 -0
- package/dest/contract_function_simulator/oracle/oracle_type_mappings.d.ts +274 -0
- package/dest/contract_function_simulator/oracle/oracle_type_mappings.d.ts.map +1 -0
- package/dest/contract_function_simulator/oracle/oracle_type_mappings.js +1243 -0
- package/dest/contract_function_simulator/oracle/private_execution.d.ts +1 -1
- package/dest/contract_function_simulator/oracle/private_execution.d.ts.map +1 -1
- package/dest/contract_function_simulator/oracle/private_execution.js +7 -6
- package/dest/contract_function_simulator/oracle/private_execution_oracle.d.ts +82 -98
- package/dest/contract_function_simulator/oracle/private_execution_oracle.d.ts.map +1 -1
- package/dest/contract_function_simulator/oracle/private_execution_oracle.js +263 -117
- package/dest/contract_function_simulator/oracle/utility_execution_oracle.d.ts +206 -83
- package/dest/contract_function_simulator/oracle/utility_execution_oracle.d.ts.map +1 -1
- package/dest/contract_function_simulator/oracle/utility_execution_oracle.js +688 -188
- package/dest/contract_function_simulator/pick_notes.d.ts +1 -1
- package/dest/contract_function_simulator/pick_notes.d.ts.map +1 -1
- package/dest/contract_function_simulator/pick_notes.js +20 -3
- package/dest/contract_function_simulator/transient_array_service.d.ts +31 -0
- package/dest/contract_function_simulator/transient_array_service.d.ts.map +1 -0
- package/dest/contract_function_simulator/transient_array_service.js +62 -0
- package/dest/contract_logging.d.ts +27 -0
- package/dest/contract_logging.d.ts.map +1 -0
- package/dest/contract_logging.js +38 -0
- package/dest/debug/pxe_debug_utils.d.ts +5 -9
- package/dest/debug/pxe_debug_utils.d.ts.map +1 -1
- package/dest/debug/pxe_debug_utils.js +4 -10
- package/dest/entrypoints/client/bundle/index.d.ts +4 -1
- package/dest/entrypoints/client/bundle/index.d.ts.map +1 -1
- package/dest/entrypoints/client/bundle/index.js +3 -0
- package/dest/entrypoints/client/bundle/utils.d.ts +2 -2
- package/dest/entrypoints/client/bundle/utils.d.ts.map +1 -1
- package/dest/entrypoints/client/bundle/utils.js +29 -8
- package/dest/entrypoints/client/lazy/index.d.ts +4 -1
- package/dest/entrypoints/client/lazy/index.d.ts.map +1 -1
- package/dest/entrypoints/client/lazy/index.js +3 -0
- package/dest/entrypoints/client/lazy/utils.d.ts +2 -2
- package/dest/entrypoints/client/lazy/utils.d.ts.map +1 -1
- package/dest/entrypoints/client/lazy/utils.js +29 -8
- package/dest/entrypoints/client/store.d.ts +14 -0
- package/dest/entrypoints/client/store.d.ts.map +1 -0
- package/dest/entrypoints/client/store.js +42 -0
- package/dest/entrypoints/pxe_creation_options.d.ts +16 -2
- package/dest/entrypoints/pxe_creation_options.d.ts.map +1 -1
- package/dest/entrypoints/pxe_creation_options.js +3 -1
- package/dest/entrypoints/server/index.d.ts +8 -3
- package/dest/entrypoints/server/index.d.ts.map +1 -1
- package/dest/entrypoints/server/index.js +6 -2
- package/dest/entrypoints/server/store.d.ts +18 -0
- package/dest/entrypoints/server/store.d.ts.map +1 -0
- package/dest/entrypoints/server/store.js +28 -0
- package/dest/entrypoints/server/utils.d.ts +4 -3
- package/dest/entrypoints/server/utils.d.ts.map +1 -1
- package/dest/entrypoints/server/utils.js +30 -8
- package/dest/error_enriching.d.ts +5 -3
- package/dest/error_enriching.d.ts.map +1 -1
- package/dest/error_enriching.js +15 -12
- package/dest/events/event_service.d.ts +21 -5
- package/dest/events/event_service.d.ts.map +1 -1
- package/dest/events/event_service.js +51 -17
- package/dest/events/private_event_filter_validator.d.ts +3 -2
- package/dest/events/private_event_filter_validator.d.ts.map +1 -1
- package/dest/events/private_event_filter_validator.js +15 -0
- package/dest/hooks/authorize_utility_call.d.ts +41 -0
- package/dest/hooks/authorize_utility_call.d.ts.map +1 -0
- package/dest/hooks/authorize_utility_call.js +4 -0
- package/dest/hooks/execution_hooks.d.ts +62 -0
- package/dest/hooks/execution_hooks.d.ts.map +1 -0
- package/dest/hooks/execution_hooks.js +9 -0
- package/dest/hooks/index.d.ts +5 -0
- package/dest/hooks/index.d.ts.map +1 -0
- package/dest/hooks/index.js +2 -0
- package/dest/hooks/resolve_custom_request.d.ts +23 -0
- package/dest/hooks/resolve_custom_request.d.ts.map +1 -0
- package/dest/hooks/resolve_custom_request.js +3 -0
- package/dest/hooks/resolve_tagging_secret_strategy.d.ts +50 -0
- package/dest/hooks/resolve_tagging_secret_strategy.d.ts.map +1 -0
- package/dest/hooks/resolve_tagging_secret_strategy.js +3 -0
- package/dest/logs/log_service.d.ts +21 -10
- package/dest/logs/log_service.d.ts.map +1 -1
- package/dest/logs/log_service.js +184 -90
- package/dest/messages/tx_resolver_service.d.ts +28 -0
- package/dest/messages/tx_resolver_service.d.ts.map +1 -0
- package/dest/messages/tx_resolver_service.js +62 -0
- package/dest/node/benchmarked_node.d.ts +20 -0
- package/dest/node/benchmarked_node.d.ts.map +1 -0
- package/dest/node/benchmarked_node.js +94 -0
- package/dest/node/caching_aztec_node.d.ts +24 -0
- package/dest/node/caching_aztec_node.d.ts.map +1 -0
- package/dest/node/caching_aztec_node.js +268 -0
- package/dest/notes/note_service.d.ts +34 -6
- package/dest/notes/note_service.d.ts.map +1 -1
- package/dest/notes/note_service.js +85 -59
- package/dest/notes_filter.d.ts +24 -0
- package/dest/notes_filter.d.ts.map +1 -0
- package/dest/notes_filter.js +4 -0
- package/dest/oracle_version.d.ts +4 -3
- package/dest/oracle_version.d.ts.map +1 -1
- package/dest/oracle_version.js +20 -10
- package/dest/private_kernel/batch_planner.d.ts +47 -0
- package/dest/private_kernel/batch_planner.d.ts.map +1 -0
- package/dest/private_kernel/batch_planner.js +104 -0
- package/dest/private_kernel/hints/compute_tx_expiration_timestamp.d.ts +4 -0
- package/dest/private_kernel/hints/compute_tx_expiration_timestamp.d.ts.map +1 -0
- package/dest/private_kernel/hints/{compute_tx_include_by_timestamp.js → compute_tx_expiration_timestamp.js} +12 -12
- package/dest/private_kernel/hints/index.d.ts +1 -1
- package/dest/private_kernel/hints/index.js +1 -1
- package/dest/private_kernel/hints/private_kernel_reset_private_inputs_builder.d.ts +4 -3
- package/dest/private_kernel/hints/private_kernel_reset_private_inputs_builder.d.ts.map +1 -1
- package/dest/private_kernel/hints/private_kernel_reset_private_inputs_builder.js +138 -72
- package/dest/private_kernel/hints/test_utils.d.ts +122 -0
- package/dest/private_kernel/hints/test_utils.d.ts.map +1 -0
- package/dest/private_kernel/hints/test_utils.js +202 -0
- package/dest/private_kernel/private_kernel_execution_prover.d.ts +6 -2
- package/dest/private_kernel/private_kernel_execution_prover.d.ts.map +1 -1
- package/dest/private_kernel/private_kernel_execution_prover.js +165 -82
- package/dest/private_kernel/private_kernel_oracle.d.ts +17 -11
- package/dest/private_kernel/private_kernel_oracle.d.ts.map +1 -1
- package/dest/private_kernel/private_kernel_oracle.js +47 -29
- package/dest/pxe.d.ts +219 -68
- package/dest/pxe.d.ts.map +1 -1
- package/dest/pxe.js +423 -243
- package/dest/storage/address_store/address_store.d.ts +1 -1
- package/dest/storage/address_store/address_store.d.ts.map +1 -1
- package/dest/storage/address_store/address_store.js +2 -1
- package/dest/storage/allowed_scopes.d.ts +6 -0
- package/dest/storage/allowed_scopes.d.ts.map +1 -0
- package/dest/storage/allowed_scopes.js +7 -0
- package/dest/storage/anchor_block_store/anchor_block_store.d.ts +9 -6
- package/dest/storage/anchor_block_store/anchor_block_store.d.ts.map +1 -1
- package/dest/storage/anchor_block_store/anchor_block_store.js +9 -7
- package/dest/storage/backwards_compatibility_tests/kv_store_snapshot.d.ts +42 -0
- package/dest/storage/backwards_compatibility_tests/kv_store_snapshot.d.ts.map +1 -0
- package/dest/storage/backwards_compatibility_tests/kv_store_snapshot.js +93 -0
- package/dest/storage/backwards_compatibility_tests/schema_tests.d.ts +15 -0
- package/dest/storage/backwards_compatibility_tests/schema_tests.d.ts.map +1 -0
- package/dest/storage/backwards_compatibility_tests/schema_tests.js +671 -0
- package/dest/storage/backwards_compatibility_tests/store_spy.d.ts +19 -0
- package/dest/storage/backwards_compatibility_tests/store_spy.d.ts.map +1 -0
- package/dest/storage/backwards_compatibility_tests/store_spy.js +63 -0
- package/dest/storage/capsule_store/capsule_service.d.ts +21 -0
- package/dest/storage/capsule_store/capsule_service.d.ts.map +1 -0
- package/dest/storage/capsule_store/capsule_service.js +47 -0
- package/dest/storage/capsule_store/capsule_store.d.ts +9 -9
- package/dest/storage/capsule_store/capsule_store.d.ts.map +1 -1
- package/dest/storage/capsule_store/capsule_store.js +37 -29
- package/dest/storage/capsule_store/index.d.ts +2 -1
- package/dest/storage/capsule_store/index.d.ts.map +1 -1
- package/dest/storage/capsule_store/index.js +1 -0
- package/dest/storage/contract_store/contract_store.d.ts +63 -33
- package/dest/storage/contract_store/contract_store.d.ts.map +1 -1
- package/dest/storage/contract_store/contract_store.js +179 -130
- package/dest/storage/contract_store/private_functions_tree.d.ts +1 -1
- package/dest/storage/contract_store/private_functions_tree.d.ts.map +1 -1
- package/dest/storage/contract_store/private_functions_tree.js +2 -1
- package/dest/storage/fact_store/fact_service.d.ts +22 -0
- package/dest/storage/fact_store/fact_service.d.ts.map +1 -0
- package/dest/storage/fact_store/fact_service.js +45 -0
- package/dest/storage/fact_store/fact_store.d.ts +95 -0
- package/dest/storage/fact_store/fact_store.d.ts.map +1 -0
- package/dest/storage/fact_store/fact_store.js +411 -0
- package/dest/storage/fact_store/fact_store_keys.d.ts +34 -0
- package/dest/storage/fact_store/fact_store_keys.d.ts.map +1 -0
- package/dest/storage/fact_store/fact_store_keys.js +50 -0
- package/dest/storage/fact_store/index.d.ts +6 -0
- package/dest/storage/fact_store/index.d.ts.map +1 -0
- package/dest/storage/fact_store/index.js +4 -0
- package/dest/storage/fact_store/origin_state.d.ts +59 -0
- package/dest/storage/fact_store/origin_state.d.ts.map +1 -0
- package/dest/storage/fact_store/origin_state.js +60 -0
- package/dest/storage/fact_store/stored_fact.d.ts +32 -0
- package/dest/storage/fact_store/stored_fact.d.ts.map +1 -0
- package/dest/storage/fact_store/stored_fact.js +64 -0
- package/dest/storage/index.d.ts +3 -2
- package/dest/storage/index.d.ts.map +1 -1
- package/dest/storage/index.js +2 -1
- package/dest/storage/metadata.d.ts +2 -2
- package/dest/storage/metadata.d.ts.map +1 -1
- package/dest/storage/metadata.js +1 -1
- package/dest/storage/note_store/note_store.d.ts +44 -35
- package/dest/storage/note_store/note_store.d.ts.map +1 -1
- package/dest/storage/note_store/note_store.js +203 -174
- package/dest/storage/note_store/stored_note.d.ts +3 -8
- package/dest/storage/note_store/stored_note.d.ts.map +1 -1
- package/dest/storage/note_store/stored_note.js +4 -20
- package/dest/storage/open_pxe_stores.d.ts +35 -0
- package/dest/storage/open_pxe_stores.d.ts.map +1 -0
- package/dest/storage/open_pxe_stores.js +29 -0
- package/dest/storage/private_event_store/private_event_store.d.ts +13 -16
- package/dest/storage/private_event_store/private_event_store.d.ts.map +1 -1
- package/dest/storage/private_event_store/private_event_store.js +48 -45
- package/dest/storage/private_event_store/stored_private_event.js +1 -1
- package/dest/storage/store_identity.d.ts +35 -0
- package/dest/storage/store_identity.d.ts.map +1 -0
- package/dest/storage/store_identity.js +44 -0
- package/dest/storage/tagging_store/index.d.ts +2 -2
- package/dest/storage/tagging_store/index.d.ts.map +1 -1
- package/dest/storage/tagging_store/index.js +1 -1
- package/dest/storage/tagging_store/recipient_tagging_store.d.ts +6 -6
- package/dest/storage/tagging_store/recipient_tagging_store.d.ts.map +1 -1
- package/dest/storage/tagging_store/sender_tagging_store.d.ts +63 -31
- package/dest/storage/tagging_store/sender_tagging_store.d.ts.map +1 -1
- package/dest/storage/tagging_store/sender_tagging_store.js +210 -129
- package/dest/storage/tagging_store/tagging_secret_sources_store.d.ts +51 -0
- package/dest/storage/tagging_store/tagging_secret_sources_store.d.ts.map +1 -0
- package/dest/storage/tagging_store/tagging_secret_sources_store.js +105 -0
- package/dest/tagging/constants.d.ts +11 -2
- package/dest/tagging/constants.d.ts.map +1 -1
- package/dest/tagging/constants.js +38 -10
- package/dest/tagging/get_all_logs_by_tags.d.ts +55 -10
- package/dest/tagging/get_all_logs_by_tags.d.ts.map +1 -1
- package/dest/tagging/get_all_logs_by_tags.js +65 -32
- package/dest/tagging/index.d.ts +8 -7
- package/dest/tagging/index.d.ts.map +1 -1
- package/dest/tagging/index.js +6 -5
- package/dest/tagging/persist_sender_tagging_index_ranges.d.ts +29 -0
- package/dest/tagging/persist_sender_tagging_index_ranges.d.ts.map +1 -0
- package/dest/tagging/persist_sender_tagging_index_ranges.js +42 -0
- package/dest/tagging/recipient_sync/sync_tagged_private_logs.d.ts +74 -0
- package/dest/tagging/recipient_sync/sync_tagged_private_logs.d.ts.map +1 -0
- package/dest/tagging/recipient_sync/sync_tagged_private_logs.js +235 -0
- package/dest/tagging/recipient_sync/utils/find_highest_indexes.d.ts +3 -3
- package/dest/tagging/recipient_sync/utils/find_highest_indexes.d.ts.map +1 -1
- package/dest/tagging/recipient_sync/utils/find_highest_indexes.js +2 -2
- package/dest/tagging/reconcile_tagging_index_ranges.d.ts +36 -0
- package/dest/tagging/reconcile_tagging_index_ranges.d.ts.map +1 -0
- package/dest/tagging/reconcile_tagging_index_ranges.js +74 -0
- package/dest/tagging/sender_sync/sync_sender_tagging_indexes.d.ts +8 -10
- package/dest/tagging/sender_sync/sync_sender_tagging_indexes.d.ts.map +1 -1
- package/dest/tagging/sender_sync/sync_sender_tagging_indexes.js +25 -22
- package/dest/tagging/sender_sync/utils/classify_pending_txs.d.ts +22 -0
- package/dest/tagging/sender_sync/utils/classify_pending_txs.d.ts.map +1 -0
- package/dest/tagging/sender_sync/utils/classify_pending_txs.js +62 -0
- package/dest/tagging/sender_sync/utils/load_and_store_new_tagging_indexes.d.ts +17 -9
- package/dest/tagging/sender_sync/utils/load_and_store_new_tagging_indexes.d.ts.map +1 -1
- package/dest/tagging/sender_sync/utils/load_and_store_new_tagging_indexes.js +53 -39
- package/dest/tagging/sender_sync/utils/resolve_pending_txs.d.ts +29 -0
- package/dest/tagging/sender_sync/utils/resolve_pending_txs.d.ts.map +1 -0
- package/dest/tagging/sender_sync/utils/resolve_pending_txs.js +42 -0
- package/dest/tagging/sender_sync/utils/test_utils.d.ts +16 -0
- package/dest/tagging/sender_sync/utils/test_utils.d.ts.map +1 -0
- package/dest/tagging/sender_sync/utils/test_utils.js +24 -0
- package/dest/tagging/testing/tag_query_test_utils.d.ts +6 -0
- package/dest/tagging/testing/tag_query_test_utils.d.ts.map +1 -0
- package/dest/tagging/testing/tag_query_test_utils.js +10 -0
- package/package.json +20 -17
- package/src/bin/check_oracle_version.ts +46 -135
- package/src/bin/index.ts +1 -0
- package/src/bin/oracle_version_helpers.ts +54 -0
- package/src/block_synchronizer/block_stream_source.ts +42 -0
- package/src/block_synchronizer/block_synchronizer.ts +86 -40
- package/src/config/index.ts +16 -9
- package/src/config/package_info.ts +1 -1
- package/src/contract/contract_class_service.ts +45 -0
- package/src/contract/contract_sync_service.ts +179 -0
- package/src/contract/helpers.ts +35 -0
- package/src/contract/skip_sync_contracts.ts +23 -0
- package/src/contract_function_simulator/anchored_contract_data.ts +74 -0
- package/src/contract_function_simulator/contract_function_simulator.ts +468 -180
- package/src/contract_function_simulator/ephemeral_array_service.ts +110 -0
- package/src/contract_function_simulator/execution_note_cache.ts +10 -30
- package/src/contract_function_simulator/execution_tagging_index_cache.ts +19 -18
- package/src/contract_function_simulator/index.ts +89 -4
- package/src/contract_function_simulator/noir-structs/bounded_vec.ts +43 -0
- package/src/contract_function_simulator/noir-structs/contract_class_log_data.ts +9 -0
- package/src/contract_function_simulator/noir-structs/embedded_curve_point.ts +4 -0
- package/src/contract_function_simulator/noir-structs/ephemeral_array.ts +66 -0
- package/src/contract_function_simulator/noir-structs/event_validation_request.ts +10 -9
- package/src/contract_function_simulator/noir-structs/fact.ts +13 -0
- package/src/contract_function_simulator/noir-structs/fact_collection.ts +64 -0
- package/src/contract_function_simulator/noir-structs/log_retrieval_request.ts +27 -20
- package/src/contract_function_simulator/noir-structs/log_retrieval_response.ts +14 -64
- package/src/contract_function_simulator/noir-structs/note_data.ts +27 -0
- package/src/contract_function_simulator/noir-structs/note_validation_request.ts +6 -11
- package/src/contract_function_simulator/noir-structs/option.ts +75 -0
- package/src/contract_function_simulator/noir-structs/origin_block.ts +8 -0
- package/src/contract_function_simulator/noir-structs/pending_tagged_log.ts +12 -0
- package/src/contract_function_simulator/noir-structs/provided_secret.ts +5 -0
- package/src/contract_function_simulator/noir-structs/resolved_tagging_strategy.ts +66 -0
- package/src/contract_function_simulator/noir-structs/resolved_tx.ts +19 -0
- package/src/contract_function_simulator/noir-structs/tx_effect_data.ts +16 -0
- package/src/contract_function_simulator/noir-structs/utility_context.ts +5 -17
- package/src/contract_function_simulator/oracle/acir_callback.ts +154 -0
- package/src/contract_function_simulator/oracle/index.ts +1 -15
- package/src/contract_function_simulator/oracle/interfaces.ts +11 -176
- package/src/contract_function_simulator/oracle/legacy_oracle_registry.ts +147 -0
- package/src/contract_function_simulator/oracle/message_load_oracle_inputs.ts +6 -21
- package/src/contract_function_simulator/oracle/note_packing_utils.ts +3 -3
- package/src/contract_function_simulator/oracle/oracle_registry.ts +710 -0
- package/src/contract_function_simulator/oracle/oracle_type_mappings.ts +1052 -0
- package/src/contract_function_simulator/oracle/private_execution.ts +6 -7
- package/src/contract_function_simulator/oracle/private_execution_oracle.ts +320 -210
- package/src/contract_function_simulator/oracle/utility_execution_oracle.ts +1028 -268
- package/src/contract_function_simulator/pick_notes.ts +22 -3
- package/src/contract_function_simulator/transient_array_service.ts +91 -0
- package/src/contract_logging.ts +52 -0
- package/src/debug/pxe_debug_utils.ts +11 -17
- package/src/entrypoints/client/bundle/index.ts +3 -0
- package/src/entrypoints/client/bundle/utils.ts +35 -9
- package/src/entrypoints/client/lazy/index.ts +3 -0
- package/src/entrypoints/client/lazy/utils.ts +35 -9
- package/src/entrypoints/client/store.ts +54 -0
- package/src/entrypoints/pxe_creation_options.ts +21 -1
- package/src/entrypoints/server/index.ts +8 -2
- package/src/entrypoints/server/store.ts +47 -0
- package/src/entrypoints/server/utils.ts +46 -21
- package/src/error_enriching.ts +30 -13
- package/src/events/event_service.ts +85 -26
- package/src/events/private_event_filter_validator.ts +21 -1
- package/src/hooks/authorize_utility_call.ts +44 -0
- package/src/hooks/execution_hooks.ts +68 -0
- package/src/hooks/index.ts +13 -0
- package/src/hooks/resolve_custom_request.ts +24 -0
- package/src/hooks/resolve_tagging_secret_strategy.ts +60 -0
- package/src/logs/log_service.ts +231 -157
- package/src/messages/tx_resolver_service.ts +81 -0
- package/src/node/benchmarked_node.ts +140 -0
- package/src/node/caching_aztec_node.ts +407 -0
- package/src/notes/note_service.ts +128 -86
- package/src/notes_filter.ts +24 -0
- package/src/oracle_version.ts +20 -10
- package/src/private_kernel/batch_planner.ts +169 -0
- package/src/private_kernel/hints/{compute_tx_include_by_timestamp.ts → compute_tx_expiration_timestamp.ts} +13 -13
- package/src/private_kernel/hints/index.ts +1 -1
- package/src/private_kernel/hints/private_kernel_reset_private_inputs_builder.ts +179 -121
- package/src/private_kernel/hints/test_utils.ts +318 -0
- package/src/private_kernel/private_kernel_execution_prover.ts +252 -116
- package/src/private_kernel/private_kernel_oracle.ts +65 -36
- package/src/pxe.ts +698 -311
- package/src/storage/address_store/address_store.ts +2 -1
- package/src/storage/allowed_scopes.ts +14 -0
- package/src/storage/anchor_block_store/anchor_block_store.ts +9 -7
- package/src/storage/backwards_compatibility_tests/__snapshots__/AddressStore.json +22 -0
- package/src/storage/backwards_compatibility_tests/__snapshots__/AnchorBlockStore.json +3 -0
- package/src/storage/backwards_compatibility_tests/__snapshots__/CapsuleStore.json +16 -0
- package/src/storage/backwards_compatibility_tests/__snapshots__/ContractStore.json +28 -0
- package/src/storage/backwards_compatibility_tests/__snapshots__/FactStore.json +40 -0
- package/src/storage/backwards_compatibility_tests/__snapshots__/KeyStore.json +52 -0
- package/src/storage/backwards_compatibility_tests/__snapshots__/L2TipsKVStore.json +40 -0
- package/src/storage/backwards_compatibility_tests/__snapshots__/NoteStore.json +56 -0
- package/src/storage/backwards_compatibility_tests/__snapshots__/PrivateEventStore.json +44 -0
- package/src/storage/backwards_compatibility_tests/__snapshots__/RecipientTaggingStore.json +26 -0
- package/src/storage/backwards_compatibility_tests/__snapshots__/SenderTaggingStore.json +30 -0
- package/src/storage/backwards_compatibility_tests/__snapshots__/TaggingSecretSourcesStore.json +30 -0
- package/src/storage/backwards_compatibility_tests/__snapshots__/opened_stores.json +117 -0
- package/src/storage/backwards_compatibility_tests/kv_store_snapshot.ts +122 -0
- package/src/storage/backwards_compatibility_tests/schema_tests.ts +803 -0
- package/src/storage/backwards_compatibility_tests/store_spy.ts +73 -0
- package/src/storage/capsule_store/capsule_service.ts +85 -0
- package/src/storage/capsule_store/capsule_store.ts +45 -27
- package/src/storage/capsule_store/index.ts +1 -0
- package/src/storage/contract_store/contract_store.ts +238 -166
- package/src/storage/contract_store/private_functions_tree.ts +2 -1
- package/src/storage/fact_store/fact_service.ts +69 -0
- package/src/storage/fact_store/fact_store.ts +488 -0
- package/src/storage/fact_store/fact_store_keys.ts +75 -0
- package/src/storage/fact_store/index.ts +15 -0
- package/src/storage/fact_store/origin_state.ts +84 -0
- package/src/storage/fact_store/stored_fact.ts +80 -0
- package/src/storage/index.ts +2 -1
- package/src/storage/metadata.ts +1 -1
- package/src/storage/note_store/note_store.ts +236 -194
- package/src/storage/note_store/stored_note.ts +5 -27
- package/src/storage/open_pxe_stores.ts +52 -0
- package/src/storage/private_event_store/private_event_store.ts +55 -56
- package/src/storage/private_event_store/stored_private_event.ts +1 -1
- package/src/storage/store_identity.ts +72 -0
- package/src/storage/tagging_store/index.ts +1 -1
- package/src/storage/tagging_store/recipient_tagging_store.ts +5 -5
- package/src/storage/tagging_store/sender_tagging_store.ts +278 -158
- package/src/storage/tagging_store/tagging_secret_sources_store.ts +138 -0
- package/src/tagging/constants.ts +42 -10
- package/src/tagging/get_all_logs_by_tags.ts +125 -36
- package/src/tagging/index.ts +12 -6
- package/src/tagging/persist_sender_tagging_index_ranges.ts +57 -0
- package/src/tagging/recipient_sync/sync_tagged_private_logs.ts +356 -0
- package/src/tagging/recipient_sync/utils/find_highest_indexes.ts +4 -4
- package/src/tagging/reconcile_tagging_index_ranges.ts +102 -0
- package/src/tagging/sender_sync/sync_sender_tagging_indexes.ts +32 -27
- package/src/tagging/sender_sync/utils/classify_pending_txs.ts +92 -0
- package/src/tagging/sender_sync/utils/load_and_store_new_tagging_indexes.ts +57 -50
- package/src/tagging/sender_sync/utils/resolve_pending_txs.ts +65 -0
- package/src/tagging/sender_sync/utils/test_utils.ts +46 -0
- package/src/tagging/testing/tag_query_test_utils.ts +11 -0
- package/dest/contract_function_simulator/benchmarked_node.d.ts +0 -9
- package/dest/contract_function_simulator/benchmarked_node.d.ts.map +0 -1
- package/dest/contract_function_simulator/benchmarked_node.js +0 -77
- package/dest/contract_function_simulator/oracle/oracle.d.ts +0 -60
- package/dest/contract_function_simulator/oracle/oracle.d.ts.map +0 -1
- package/dest/contract_function_simulator/oracle/oracle.js +0 -368
- package/dest/contract_function_simulator/proxied_contract_data_source.d.ts +0 -6
- package/dest/contract_function_simulator/proxied_contract_data_source.d.ts.map +0 -1
- package/dest/contract_function_simulator/proxied_contract_data_source.js +0 -80
- package/dest/contract_sync/contract_sync_service.d.ts +0 -41
- package/dest/contract_sync/contract_sync_service.d.ts.map +0 -1
- package/dest/contract_sync/contract_sync_service.js +0 -82
- package/dest/contract_sync/helpers.d.ts +0 -28
- package/dest/contract_sync/helpers.d.ts.map +0 -1
- package/dest/contract_sync/helpers.js +0 -55
- package/dest/private_kernel/hints/compute_tx_include_by_timestamp.d.ts +0 -4
- package/dest/private_kernel/hints/compute_tx_include_by_timestamp.d.ts.map +0 -1
- package/dest/storage/tagging_store/sender_address_book_store.d.ts +0 -14
- package/dest/storage/tagging_store/sender_address_book_store.d.ts.map +0 -1
- package/dest/storage/tagging_store/sender_address_book_store.js +0 -36
- package/dest/tagging/recipient_sync/load_private_logs_for_sender_recipient_pair.d.ts +0 -15
- package/dest/tagging/recipient_sync/load_private_logs_for_sender_recipient_pair.d.ts.map +0 -1
- package/dest/tagging/recipient_sync/load_private_logs_for_sender_recipient_pair.js +0 -99
- package/dest/tagging/recipient_sync/utils/load_logs_for_range.d.ts +0 -15
- package/dest/tagging/recipient_sync/utils/load_logs_for_range.d.ts.map +0 -1
- package/dest/tagging/recipient_sync/utils/load_logs_for_range.js +0 -32
- package/dest/tagging/sender_sync/utils/get_status_change_of_pending.d.ts +0 -11
- package/dest/tagging/sender_sync/utils/get_status_change_of_pending.d.ts.map +0 -1
- package/dest/tagging/sender_sync/utils/get_status_change_of_pending.js +0 -29
- package/src/contract_function_simulator/benchmarked_node.ts +0 -103
- package/src/contract_function_simulator/oracle/oracle.ts +0 -637
- package/src/contract_function_simulator/proxied_contract_data_source.ts +0 -83
- package/src/contract_sync/contract_sync_service.ts +0 -129
- package/src/contract_sync/helpers.ts +0 -93
- package/src/storage/tagging_store/sender_address_book_store.ts +0 -48
- package/src/tagging/recipient_sync/load_private_logs_for_sender_recipient_pair.ts +0 -143
- package/src/tagging/recipient_sync/utils/load_logs_for_range.ts +0 -49
- package/src/tagging/sender_sync/utils/get_status_change_of_pending.ts +0 -36
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private_kernel_oracle.d.ts","sourceRoot":"","sources":["../../src/private_kernel/private_kernel_oracle.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"private_kernel_oracle.d.ts","sourceRoot":"","sources":["../../src/private_kernel/private_kernel_oracle.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EAGrB,cAAc,EACf,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,gC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ACrE,0BAA0B,CAAC,eAAe,EAAE,EAAE;;;;OAU1D;IAED,uGAAuG;IAC1F,4BAA4B,CACvC,eAAe,EAAE,EAAE,EACnB,QAAQ,EAAE,gBAAgB,GACzB,OAAO,CAAC,iBAAiB,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAQzD;IAED;;;OAGG;IACI,sBAAsB,CAAC,EAAE,EAAE,uBAAuB,GAAG,OAAO,CAAC,iBAAiB,CAAC,OAAO,cAAc,CAAC,CAAC,CAG5G;IAED,+FAA+F;IACzF,4BAA4B,CAChC,QAAQ,EAAE,EAAE,GACX,OAAO,CAAC,iBAAiB,CAAC,OAAO,qBAAqB,CAAC,GAAG,SAAS,CAAC,CAEtE;IAED,8GAA8G;IACxG,6BAA6B,CAAC,SAAS,EAAE,EAAE,GAAG,OAAO,CAAC,0BAA0B,GAAG,SAAS,CAAC,CAElG;IAED,qDAAqD;IACrD,mBAAmB,IAAI,EAAE,CAExB;IAED;;;;;;OAMG;IACI,kBAAkB,CAAC,mBAAmB,EAAE,EAAE,GAAG,OAAO,CAAC,cAAc,CAAC,CAE1E;IAED,2EAA2E;IAC9D,oBAAoB,CAC/B,eAAe,EAAE,YAAY,EAC7B,QAAQ,EAAE,gBAAgB,GACzB,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAG7B;IAED;;;OAGG;IACU,sBAAsB,CAAC,eAAe,EAAE,YAAY,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAoC/F;CACF"}
|
|
@@ -1,40 +1,55 @@
|
|
|
1
|
-
import { PUBLIC_DATA_TREE_HEIGHT, VK_TREE_HEIGHT } from '@aztec/constants';
|
|
1
|
+
import { PUBLIC_DATA_TREE_HEIGHT, UPDATES_VALUE_SIZE, VK_TREE_HEIGHT } from '@aztec/constants';
|
|
2
2
|
import { MembershipWitness } from '@aztec/foundation/trees';
|
|
3
3
|
import { getVKIndex, getVKSiblingPath } from '@aztec/noir-protocol-circuits-types/vk-tree';
|
|
4
4
|
import { ProtocolContractAddress } from '@aztec/protocol-contracts';
|
|
5
|
-
import {
|
|
5
|
+
import { computeSaltedInitializationHash } from '@aztec/stdlib/contract';
|
|
6
6
|
import { DelayedPublicMutableValues, DelayedPublicMutableValuesWithHash } from '@aztec/stdlib/delayed-public-mutable';
|
|
7
7
|
import { computePublicDataTreeLeafSlot } from '@aztec/stdlib/hash';
|
|
8
8
|
import { UpdatedClassIdHints } from '@aztec/stdlib/kernel';
|
|
9
|
+
import { AnchoredContractData } from '../contract_function_simulator/anchored_contract_data.js';
|
|
9
10
|
/**
|
|
10
11
|
* Provides functionality needed by the private kernel for interacting with our state trees.
|
|
11
12
|
*/ export class PrivateKernelOracle {
|
|
12
13
|
contractStore;
|
|
13
14
|
keyStore;
|
|
14
15
|
node;
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
blockHeader;
|
|
17
|
+
anchoredContractData;
|
|
18
|
+
constructor(contractStore, contractClassService, keyStore, node, blockHeader){
|
|
17
19
|
this.contractStore = contractStore;
|
|
18
20
|
this.keyStore = keyStore;
|
|
19
21
|
this.node = node;
|
|
20
|
-
this.
|
|
22
|
+
this.blockHeader = blockHeader;
|
|
23
|
+
// Kernels never use contract overrides (those are confined to simulations, which skip proving), so this view is
|
|
24
|
+
// built without them.
|
|
25
|
+
this.anchoredContractData = new AnchoredContractData(contractStore, contractClassService, blockHeader);
|
|
21
26
|
}
|
|
22
27
|
/** Retrieves the preimage of a contract address from the registered contract instances db. */ async getContractAddressPreimage(address) {
|
|
23
|
-
const instance = await this.
|
|
28
|
+
const instance = await this.anchoredContractData.getContractInstance(address);
|
|
24
29
|
if (!instance) {
|
|
25
30
|
throw new Error(`Contract instance not found when getting address preimage. Contract address: ${address}.`);
|
|
26
31
|
}
|
|
32
|
+
// Local instance existence was checked above, so resolution below cannot come back empty.
|
|
33
|
+
const currentContractClassId = await this.anchoredContractData.getCurrentClassId(address);
|
|
34
|
+
if (!currentContractClassId) {
|
|
35
|
+
throw new Error(`Could not resolve the current class id for registered contract ${address}.`);
|
|
36
|
+
}
|
|
27
37
|
return {
|
|
28
38
|
saltedInitializationHash: await computeSaltedInitializationHash(instance),
|
|
29
|
-
...instance
|
|
39
|
+
...instance,
|
|
40
|
+
currentContractClassId
|
|
30
41
|
};
|
|
31
42
|
}
|
|
32
43
|
/** Retrieves the preimage of a contract class id from the contract classes db. */ async getContractClassIdPreimage(contractClassId) {
|
|
33
|
-
const contractClass = await this.contractStore.
|
|
44
|
+
const contractClass = await this.contractStore.getContractClassWithPreimage(contractClassId);
|
|
34
45
|
if (!contractClass) {
|
|
35
46
|
throw new Error(`Contract class not found when getting class id preimage. Class id: ${contractClassId}.`);
|
|
36
47
|
}
|
|
37
|
-
return
|
|
48
|
+
return {
|
|
49
|
+
artifactHash: contractClass.artifactHash,
|
|
50
|
+
privateFunctionsRoot: contractClass.privateFunctionsRoot,
|
|
51
|
+
publicBytecodeCommitment: contractClass.publicBytecodeCommitment
|
|
52
|
+
};
|
|
38
53
|
}
|
|
39
54
|
/** Returns a membership witness with the sibling path and leaf index in our private functions tree. */ async getFunctionMembershipWitness(contractClassId, selector) {
|
|
40
55
|
const membershipWitness = await this.contractStore.getFunctionMembershipWitness(contractClassId, selector);
|
|
@@ -50,30 +65,27 @@ import { UpdatedClassIdHints } from '@aztec/stdlib/kernel';
|
|
|
50
65
|
const leafIndex = getVKIndex(vk);
|
|
51
66
|
return Promise.resolve(new MembershipWitness(VK_TREE_HEIGHT, BigInt(leafIndex), getVKSiblingPath(leafIndex)));
|
|
52
67
|
}
|
|
53
|
-
/** Returns a membership witness with the sibling path and leaf index in our note hash tree. */ getNoteHashMembershipWitness(noteHash) {
|
|
54
|
-
return this.node.getNoteHashMembershipWitness(this.
|
|
68
|
+
/** Returns a membership witness with the sibling path and leaf index in our note hash tree. */ async getNoteHashMembershipWitness(noteHash) {
|
|
69
|
+
return this.node.getNoteHashMembershipWitness(await this.blockHeader.hash(), noteHash);
|
|
55
70
|
}
|
|
56
|
-
/** Returns a membership witness with the sibling path and leaf index in our nullifier indexed merkle tree. */ getNullifierMembershipWitness(nullifier) {
|
|
57
|
-
return this.node.getNullifierMembershipWitness(this.
|
|
71
|
+
/** Returns a membership witness with the sibling path and leaf index in our nullifier indexed merkle tree. */ async getNullifierMembershipWitness(nullifier) {
|
|
72
|
+
return this.node.getNullifierMembershipWitness(await this.blockHeader.hash(), nullifier);
|
|
58
73
|
}
|
|
59
|
-
/** Returns the root of our note hash merkle tree. */
|
|
60
|
-
|
|
61
|
-
if (!header) {
|
|
62
|
-
throw new Error(`No block header found for block hash ${this.blockHash}`);
|
|
63
|
-
}
|
|
64
|
-
return header.state.partial.noteHashTree.root;
|
|
74
|
+
/** Returns the root of our note hash merkle tree. */ getNoteHashTreeRoot() {
|
|
75
|
+
return this.blockHeader.state.partial.noteHashTree.root;
|
|
65
76
|
}
|
|
66
77
|
/**
|
|
67
|
-
* Retrieves the sk_m corresponding to the pk_m.
|
|
68
|
-
* @throws If the provided
|
|
69
|
-
* @param
|
|
78
|
+
* Retrieves the sk_m corresponding to the pk_m hash.
|
|
79
|
+
* @throws If the provided hash is not associated with any of the registered accounts.
|
|
80
|
+
* @param masterPublicKeyHash - The master public key hash to get secret key for.
|
|
70
81
|
* @returns A Promise that resolves to sk_m.
|
|
71
82
|
* @dev Used when feeding the sk_m to the kernel circuit for keys verification.
|
|
72
|
-
*/ getMasterSecretKey(
|
|
73
|
-
return this.keyStore.getMasterSecretKey(
|
|
83
|
+
*/ getMasterSecretKey(masterPublicKeyHash) {
|
|
84
|
+
return this.keyStore.getMasterSecretKey(masterPublicKeyHash);
|
|
74
85
|
}
|
|
75
|
-
/** Use debug data to get the function name corresponding to a selector. */ getDebugFunctionName(contractAddress, selector) {
|
|
76
|
-
|
|
86
|
+
/** Use debug data to get the function name corresponding to a selector. */ async getDebugFunctionName(contractAddress, selector) {
|
|
87
|
+
const classId = await this.anchoredContractData.getCurrentClassId(contractAddress);
|
|
88
|
+
return classId ? this.contractStore.getDebugFunctionName(classId, selector) : undefined;
|
|
77
89
|
}
|
|
78
90
|
/**
|
|
79
91
|
* Returns a membership witness and leaf index to our public data indexed merkle tree,
|
|
@@ -81,12 +93,18 @@ import { UpdatedClassIdHints } from '@aztec/stdlib/kernel';
|
|
|
81
93
|
*/ async getUpdatedClassIdHints(contractAddress) {
|
|
82
94
|
const { delayedPublicMutableSlot, delayedPublicMutableHashSlot } = await DelayedPublicMutableValuesWithHash.getContractUpdateSlots(contractAddress);
|
|
83
95
|
const hashLeafSlot = await computePublicDataTreeLeafSlot(ProtocolContractAddress.ContractInstanceRegistry, delayedPublicMutableHashSlot);
|
|
84
|
-
const
|
|
96
|
+
const blockHash = await this.blockHeader.hash();
|
|
97
|
+
const updatedClassIdWitness = await this.node.getPublicDataWitness(blockHash, hashLeafSlot);
|
|
85
98
|
if (!updatedClassIdWitness) {
|
|
86
99
|
throw new Error(`No public data tree witness found for ${hashLeafSlot}`);
|
|
87
100
|
}
|
|
88
|
-
|
|
89
|
-
|
|
101
|
+
// In an indexed merkle tree, getPublicDataWitness returns a leaf whose slot matches our query
|
|
102
|
+
// only if the slot has been written to. Otherwise, it returns the "low leaf" predecessor, whose
|
|
103
|
+
// slot will differ. Most contracts are never updated, so we can skip the readFromTree call
|
|
104
|
+
// (which triggers multiple RPC calls) and return empty values directly.
|
|
105
|
+
const readStorage = (storageSlot)=>this.node.getPublicStorageAt(blockHash, ProtocolContractAddress.ContractInstanceRegistry, storageSlot);
|
|
106
|
+
const slotExists = updatedClassIdWitness.leafPreimage.leaf.slot.equals(hashLeafSlot);
|
|
107
|
+
const delayedPublicMutableValues = slotExists ? await DelayedPublicMutableValues.readFromTree(delayedPublicMutableSlot, readStorage) : DelayedPublicMutableValues.empty(UPDATES_VALUE_SIZE);
|
|
90
108
|
return new UpdatedClassIdHints(new MembershipWitness(PUBLIC_DATA_TREE_HEIGHT, updatedClassIdWitness.index, updatedClassIdWitness.siblingPath.toTuple()), updatedClassIdWitness.leafPreimage, delayedPublicMutableValues);
|
|
91
109
|
}
|
|
92
110
|
}
|
package/dest/pxe.d.ts
CHANGED
|
@@ -1,21 +1,159 @@
|
|
|
1
1
|
import type { PrivateEventFilter } from '@aztec/aztec.js/wallet';
|
|
2
2
|
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
3
|
+
import { Point } from '@aztec/foundation/curves/grumpkin';
|
|
3
4
|
import { type Logger } from '@aztec/foundation/log';
|
|
5
|
+
import type { AccountPrivacyKeys, AccountPrivacySecretKeys } from '@aztec/key-store';
|
|
4
6
|
import type { AztecAsyncKVStore } from '@aztec/kv-store';
|
|
5
7
|
import { type ProtocolContractsProvider } from '@aztec/protocol-contracts';
|
|
6
8
|
import type { CircuitSimulator } from '@aztec/simulator/client';
|
|
7
9
|
import { type ContractArtifact, EventSelector, FunctionCall } from '@aztec/stdlib/abi';
|
|
8
10
|
import type { AuthWitness } from '@aztec/stdlib/auth-witness';
|
|
9
11
|
import type { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
10
|
-
import { CompleteAddress, type ContractInstanceWithAddress, type PartialAddress } from '@aztec/stdlib/contract';
|
|
11
|
-
import type { AztecNode, PrivateKernelProver } from '@aztec/stdlib/interfaces/client';
|
|
12
|
-
import { BlockHeader, type InTx, SimulationOverrides, TxExecutionRequest, TxProfileResult, TxProvingResult, TxSimulationResult,
|
|
12
|
+
import { CompleteAddress, type ContractInstancePreimage, type ContractInstancePreimageWithAddress, type ContractInstanceWithAddress, type PartialAddress } from '@aztec/stdlib/contract';
|
|
13
|
+
import type { AztecNode, AztecNodeDebug, PrivateKernelProver } from '@aztec/stdlib/interfaces/client';
|
|
14
|
+
import { BlockHeader, type InTx, SimulationOverrides, TxExecutionRequest, TxProfileResult, TxProvingResult, TxSimulationResult, UtilityExecutionResult } from '@aztec/stdlib/tx';
|
|
13
15
|
import type { PXEConfig } from './config/index.js';
|
|
14
16
|
import { PXEDebugUtils } from './debug/pxe_debug_utils.js';
|
|
17
|
+
import type { ExecutionHooks } from './hooks/index.js';
|
|
15
18
|
export type PackedPrivateEvent = InTx & {
|
|
16
19
|
packedEvent: Fr[];
|
|
17
20
|
eventSelector: EventSelector;
|
|
18
21
|
};
|
|
22
|
+
/** Options for PXE.proveTx. */
|
|
23
|
+
export type ProveTxOpts = {
|
|
24
|
+
/** Addresses whose private state and keys are accessible during private execution. */
|
|
25
|
+
scopes: AztecAddress[];
|
|
26
|
+
/** Sender address used to derive discovery tags for private messages (notes, events, logs) this tx emits. */
|
|
27
|
+
senderForTags?: AztecAddress;
|
|
28
|
+
};
|
|
29
|
+
/** Options for PXE.profileTx. */
|
|
30
|
+
export type ProfileTxOpts = {
|
|
31
|
+
/** The profiling mode to use. */
|
|
32
|
+
profileMode: 'full' | 'execution-steps' | 'gates';
|
|
33
|
+
/** If true, proof generation is skipped during profiling. Defaults to true. */
|
|
34
|
+
skipProofGeneration?: boolean;
|
|
35
|
+
/** Addresses whose private state and keys are accessible during private execution. */
|
|
36
|
+
scopes: AztecAddress[];
|
|
37
|
+
/** Sender address used to derive discovery tags for private messages (notes, events, logs) this tx emits. */
|
|
38
|
+
senderForTags?: AztecAddress;
|
|
39
|
+
};
|
|
40
|
+
/** Options for PXE.simulateTx. */
|
|
41
|
+
export type SimulateTxOpts = {
|
|
42
|
+
/** Whether to simulate the public part of the transaction. */
|
|
43
|
+
simulatePublic: boolean;
|
|
44
|
+
/** If false, this function throws if the transaction is unable to be included in a block at the current state. */
|
|
45
|
+
skipTxValidation?: boolean;
|
|
46
|
+
/** If false, fees are enforced. */
|
|
47
|
+
skipFeeEnforcement?: boolean;
|
|
48
|
+
/** If true, kernel logic is emulated in TS for simulation */
|
|
49
|
+
skipKernels?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Pre-simulation overrides applied to the ephemeral fork and contract DB. Bundles publicStorage
|
|
52
|
+
* writes (no skipKernels required) and per-address (instance, artifact?) overrides used by both
|
|
53
|
+
* AVM-side public dispatch and PXE-side ACIR private dispatch (requires skipKernels: true).
|
|
54
|
+
*/
|
|
55
|
+
overrides?: SimulationOverrides;
|
|
56
|
+
/** Addresses whose private state and keys are accessible during private execution */
|
|
57
|
+
scopes: AztecAddress[];
|
|
58
|
+
/** Sender address used to derive discovery tags for private messages (notes, events, logs) this tx emits. */
|
|
59
|
+
senderForTags?: AztecAddress;
|
|
60
|
+
};
|
|
61
|
+
/** Options for PXE.executeUtility. */
|
|
62
|
+
export type ExecuteUtilityOpts = {
|
|
63
|
+
/** The authentication witnesses required for the function call. */
|
|
64
|
+
authwits?: AuthWitness[];
|
|
65
|
+
/** The accounts whose notes we can access in this call */
|
|
66
|
+
scopes: AztecAddress[];
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Supplies the set of "nice to have" contracts that every PXE preloads regardless of which wallet
|
|
70
|
+
* drives it. Today this is just the standard multi-call entrypoint: the SDK's self-paid account
|
|
71
|
+
* deploy flow ({@link DeployAccountMethod} with `from = NO_FROM`) routes its payload through it, so a
|
|
72
|
+
* PXE that did not register it would fail contract sync with an opaque "no contract instance" error.
|
|
73
|
+
*
|
|
74
|
+
* Returning a list keeps this extensible: a wallet may supply its own provider that preloads
|
|
75
|
+
* additional contracts. Injected the same way as {@link ProtocolContractsProvider} so the PXE never
|
|
76
|
+
* statically imports the bundled artifacts, keeping the bundle/lazy split intact.
|
|
77
|
+
*/
|
|
78
|
+
export type PreloadedContractsProvider = {
|
|
79
|
+
/** Returns the contract instances and artifacts the PXE should preload on startup. */
|
|
80
|
+
getPreloadedContracts: () => Promise<Array<{
|
|
81
|
+
instance: ContractInstanceWithAddress;
|
|
82
|
+
artifact: ContractArtifact;
|
|
83
|
+
}>>;
|
|
84
|
+
};
|
|
85
|
+
/** Args for PXE.create. */
|
|
86
|
+
export type PXECreateArgs = {
|
|
87
|
+
/** The Aztec node to connect to. */
|
|
88
|
+
node: AztecNode;
|
|
89
|
+
/**
|
|
90
|
+
* Optional debug API client. When provided, public function signatures are registered with the node so that
|
|
91
|
+
* node-side public-execution stack traces can be named. Skipped when the node does not expose the debug API.
|
|
92
|
+
*/
|
|
93
|
+
nodeDebug?: AztecNodeDebug;
|
|
94
|
+
/** The key-value store for persisting PXE state. */
|
|
95
|
+
store: AztecAsyncKVStore;
|
|
96
|
+
/** The prover for generating private kernel proofs. */
|
|
97
|
+
proofCreator: PrivateKernelProver;
|
|
98
|
+
/** The circuit simulator for executing ACIR circuits. */
|
|
99
|
+
simulator: CircuitSimulator;
|
|
100
|
+
/** Provider for protocol contract artifacts and instances. */
|
|
101
|
+
protocolContractsProvider: ProtocolContractsProvider;
|
|
102
|
+
/**
|
|
103
|
+
* Contracts to preload on startup. Injected by the entrypoint with the bundle-or-lazy flavor that
|
|
104
|
+
* matches the runtime (bundle for node/eager browser, lazy for code-split browser), so the PXE
|
|
105
|
+
* never statically imports a standard-contract artifact and the bundle/lazy split stays intact.
|
|
106
|
+
*/
|
|
107
|
+
preloadedContractsProvider: PreloadedContractsProvider;
|
|
108
|
+
/** PXE configuration options. */
|
|
109
|
+
config: PXEConfig;
|
|
110
|
+
/** Optional logger instance or string suffix for the logger name. */
|
|
111
|
+
loggerOrSuffix?: string | Logger;
|
|
112
|
+
/** Optional hooks to observe and influence contract execution. */
|
|
113
|
+
hooks?: ExecutionHooks;
|
|
114
|
+
};
|
|
115
|
+
/** A source from which PXE derives the tagging secrets it scans for to discover incoming private logs. */
|
|
116
|
+
export type TaggingSecretSource =
|
|
117
|
+
/**
|
|
118
|
+
* Derives a shared secret via ECDH from an external `sender` address against every account registered in this PXE
|
|
119
|
+
* (present and future), so registering one sender applies it to all of them. The address is not secret, so unlike
|
|
120
|
+
* `arbitrary-secret` it can be reused freely across recipients.
|
|
121
|
+
*/
|
|
122
|
+
{
|
|
123
|
+
kind: 'address-derived';
|
|
124
|
+
sender: AztecAddress;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* A shared secret point provided directly, scoped to a single recipient. It bypasses ECDH, so it must not be
|
|
128
|
+
* reused across recipients (each would then be able to find the others' tags).
|
|
129
|
+
*/
|
|
130
|
+
| {
|
|
131
|
+
kind: 'arbitrary-secret';
|
|
132
|
+
recipient: AztecAddress;
|
|
133
|
+
secret: Point;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* A handshake known by the x-coordinate of its ephemeral public key (the value a recipient learns while authorizing
|
|
137
|
+
* an interactive handshake, which emits no discoverable announcement). The ephemeral key's y-coordinate is always
|
|
138
|
+
* positive by protocol construction, so the x-coordinate alone identifies it.
|
|
139
|
+
*/
|
|
140
|
+
| {
|
|
141
|
+
kind: 'handshake';
|
|
142
|
+
recipient: AztecAddress;
|
|
143
|
+
ephPk: Fr;
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* The registered form of a {@link TaggingSecretSource}.
|
|
147
|
+
*/
|
|
148
|
+
export type RegisteredTaggingSecretSource = Exclude<TaggingSecretSource, {
|
|
149
|
+
kind: 'handshake';
|
|
150
|
+
}>
|
|
151
|
+
/** A handshake's resolved shared secret, derived at registration from the handshake's ephemeral key. */
|
|
152
|
+
| {
|
|
153
|
+
kind: 'handshake';
|
|
154
|
+
recipient: AztecAddress;
|
|
155
|
+
secret: Point;
|
|
156
|
+
};
|
|
19
157
|
/**
|
|
20
158
|
* Private eXecution Environment (PXE) is a library used by wallets to simulate private phase of transactions and to
|
|
21
159
|
* manage private state of users.
|
|
@@ -23,26 +161,35 @@ export type PackedPrivateEvent = InTx & {
|
|
|
23
161
|
export declare class PXE {
|
|
24
162
|
#private;
|
|
25
163
|
private node;
|
|
164
|
+
private nodeDebug;
|
|
165
|
+
private db;
|
|
26
166
|
private blockStateSynchronizer;
|
|
27
167
|
private keyStore;
|
|
28
168
|
private contractStore;
|
|
29
169
|
private noteStore;
|
|
30
170
|
private capsuleStore;
|
|
171
|
+
private factStore;
|
|
31
172
|
private anchorBlockStore;
|
|
32
173
|
private senderTaggingStore;
|
|
33
|
-
private
|
|
174
|
+
private taggingSecretSourcesStore;
|
|
34
175
|
private recipientTaggingStore;
|
|
35
176
|
private addressStore;
|
|
36
177
|
private privateEventStore;
|
|
37
178
|
private contractSyncService;
|
|
179
|
+
private contractClassService;
|
|
180
|
+
private txResolver;
|
|
181
|
+
private l2TipsStore;
|
|
38
182
|
private simulator;
|
|
39
183
|
private proverEnabled;
|
|
184
|
+
private autoSync;
|
|
40
185
|
private proofCreator;
|
|
41
186
|
private protocolContractsProvider;
|
|
187
|
+
private preloadedContractsProvider;
|
|
42
188
|
private log;
|
|
43
189
|
private jobQueue;
|
|
44
190
|
private jobCoordinator;
|
|
45
191
|
debug: PXEDebugUtils;
|
|
192
|
+
private hooks;
|
|
46
193
|
private constructor();
|
|
47
194
|
/**
|
|
48
195
|
* Creates an instance of a PXE by instantiating all the necessary data providers and services.
|
|
@@ -51,18 +198,24 @@ export declare class PXE {
|
|
|
51
198
|
*
|
|
52
199
|
* @returns A promise that resolves PXE is ready to be used.
|
|
53
200
|
*/
|
|
54
|
-
static create(node
|
|
201
|
+
static create({ node, nodeDebug, store, proofCreator, simulator, protocolContractsProvider, preloadedContractsProvider, config, loggerOrSuffix, hooks }: PXECreateArgs): Promise<PXE>;
|
|
202
|
+
/**
|
|
203
|
+
* Triggers a sync of PXE state with the node, regardless of the `autoSync` config flag. Use this to
|
|
204
|
+
* batch syncs across composite flows when `autoSync` is disabled (e.g. one sync per simulate+send
|
|
205
|
+
* instead of one per inner PXE call). Serialized through the job queue.
|
|
206
|
+
*/
|
|
207
|
+
sync(): Promise<void>;
|
|
55
208
|
/**
|
|
56
209
|
* Returns the block header up to which the PXE has synced.
|
|
57
210
|
* @returns The synced block header
|
|
58
211
|
*/
|
|
59
212
|
getSyncedBlockHeader(): Promise<BlockHeader>;
|
|
60
213
|
/**
|
|
61
|
-
* Returns the contract instance
|
|
214
|
+
* Returns the address preimage of the contract instance at a given address, if it's registered in the PXE.
|
|
62
215
|
* @param address - The contract address.
|
|
63
|
-
* @returns The contract instance if found, undefined otherwise.
|
|
216
|
+
* @returns The contract instance address preimage if found, undefined otherwise.
|
|
64
217
|
*/
|
|
65
|
-
getContractInstance(address: AztecAddress): Promise<
|
|
218
|
+
getContractInstance(address: AztecAddress): Promise<ContractInstancePreimageWithAddress | undefined>;
|
|
66
219
|
/**
|
|
67
220
|
* Returns the contract artifact for a given contract class id, if it's registered in the PXE.
|
|
68
221
|
* @param id - Identifier of the contract class.
|
|
@@ -70,37 +223,59 @@ export declare class PXE {
|
|
|
70
223
|
*/
|
|
71
224
|
getContractArtifact(id: Fr): Promise<ContractArtifact | undefined>;
|
|
72
225
|
/**
|
|
73
|
-
* Registers a user account in PXE
|
|
74
|
-
*
|
|
75
|
-
* the
|
|
76
|
-
*
|
|
226
|
+
* Registers a user account in PXE.
|
|
227
|
+
*
|
|
228
|
+
* PXE holds the account's four privacy secret keys but only the *public* message-signing and fallback keys: their
|
|
229
|
+
* secret keys are withheld, since PXE is not trusted to hold them.
|
|
230
|
+
*
|
|
231
|
+
* Does nothing if the account is already registered.
|
|
77
232
|
*
|
|
78
|
-
*
|
|
233
|
+
* The four privacy secret keys can be retrieved later with {@link getAccountSecretKeys}.
|
|
234
|
+
*
|
|
235
|
+
* @param keys - The account's privacy keys: four secret keys plus the message-signing and fallback public keys.
|
|
79
236
|
* @param partialAddress - The partial address of the account contract corresponding to the account being registered.
|
|
80
237
|
* @returns The complete address of the account.
|
|
81
238
|
*/
|
|
82
|
-
registerAccount(
|
|
239
|
+
registerAccount(keys: AccountPrivacyKeys, partialAddress: PartialAddress): Promise<CompleteAddress>;
|
|
83
240
|
/**
|
|
84
|
-
*
|
|
241
|
+
* Retrieves the four privacy secret keys PXE holds for a registered account (nullifier-hiding, incoming-viewing,
|
|
242
|
+
* outgoing-viewing, tagging).
|
|
243
|
+
*
|
|
244
|
+
* These do NOT grant control over an account's assets, e.g. they are insufficient to impersonate the account or to
|
|
245
|
+
* spend notes, but they _do_ guard the account's privacy. Parties that have knowledge of these keys can decrypt all
|
|
246
|
+
* messages sent to the account, discover all of their on-chain activity, including notes, events, etc.
|
|
247
|
+
*
|
|
248
|
+
* Security is paramount when handling these keys, which should itself be a very rare occurrence. Other than exporting
|
|
249
|
+
* and then importing an account into a separate PXE/wallet, there is typically no need for a wallet to ever access
|
|
250
|
+
* these keys. Applications should NEVER be given access to them.
|
|
85
251
|
*
|
|
86
|
-
*
|
|
87
|
-
|
|
252
|
+
* @throws If the account is not registered.
|
|
253
|
+
*/
|
|
254
|
+
getAccountSecretKeys(account: AztecAddress): Promise<AccountPrivacySecretKeys>;
|
|
255
|
+
/**
|
|
256
|
+
* Registers a source from which this PXE derives the tagging secrets it scans for to discover incoming private logs.
|
|
257
|
+
* See {@link TaggingSecretSource} for the meaning of each variant. Does nothing if the source is already registered.
|
|
88
258
|
*
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
259
|
+
* After a new source is added we clear the cache tracking which contracts have finished syncing, so every contract
|
|
260
|
+
* re-syncs against the new source's logs (whose notes/events could belong to any contract). Already-discovered
|
|
261
|
+
* notes/events are not discarded.
|
|
92
262
|
*/
|
|
93
|
-
|
|
263
|
+
registerTaggingSecretSource(source: TaggingSecretSource): Promise<void>;
|
|
94
264
|
/**
|
|
95
|
-
*
|
|
96
|
-
* @
|
|
265
|
+
* Removes a previously registered tagging secret source, identified by its registered form (see
|
|
266
|
+
* {@link getTaggingSecretSources}). Does nothing if it was not registered.
|
|
97
267
|
*/
|
|
98
|
-
|
|
268
|
+
removeTaggingSecretSource(source: RegisteredTaggingSecretSource): Promise<void>;
|
|
99
269
|
/**
|
|
100
|
-
*
|
|
101
|
-
*
|
|
270
|
+
* Retrieves the tagging secret sources registered in this PXE, in their registered form. Without a filter it
|
|
271
|
+
* returns every source; pass `{ kind }` to narrow to a single variant. See {@link RegisteredTaggingSecretSource}.
|
|
102
272
|
*/
|
|
103
|
-
|
|
273
|
+
getTaggingSecretSources<K extends RegisteredTaggingSecretSource['kind']>(filter: {
|
|
274
|
+
kind: K;
|
|
275
|
+
}): Promise<Extract<RegisteredTaggingSecretSource, {
|
|
276
|
+
kind: K;
|
|
277
|
+
}>[]>;
|
|
278
|
+
getTaggingSecretSources(): Promise<RegisteredTaggingSecretSource[]>;
|
|
104
279
|
/**
|
|
105
280
|
* Retrieves the user accounts registered on this PXE.
|
|
106
281
|
* @returns An array of the accounts registered on this PXE.
|
|
@@ -113,27 +288,15 @@ export declare class PXE {
|
|
|
113
288
|
*/
|
|
114
289
|
registerContractClass(artifact: ContractArtifact): Promise<void>;
|
|
115
290
|
/**
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
*
|
|
291
|
+
* Registers a deployed contract instance so its private state can be synced and its functions simulated. The
|
|
292
|
+
* artifact for the class the instance runs must be registered separately via {@link registerContractClass}, before
|
|
293
|
+
* or after this call; registration performs no validation, so a missing or mismatched artifact only surfaces when
|
|
294
|
+
* the contract is later simulated. This is automatically called by aztec.js when deploying a contract.
|
|
120
295
|
*
|
|
121
|
-
* @param
|
|
296
|
+
* @param instance - The address preimage of the contract instance to register. The address is derived from it.
|
|
297
|
+
* @returns The address of the registered instance.
|
|
122
298
|
*/
|
|
123
|
-
registerContract(
|
|
124
|
-
instance: ContractInstanceWithAddress;
|
|
125
|
-
artifact?: ContractArtifact;
|
|
126
|
-
}): Promise<void>;
|
|
127
|
-
/**
|
|
128
|
-
* Updates a deployed contract in the PXE. This is used to update the contract artifact when
|
|
129
|
-
* an update has happened, so the new code can be used in the simulation of local transactions.
|
|
130
|
-
* This is called by aztec.js when instantiating a contract in a given address with a mismatching artifact.
|
|
131
|
-
* @param contractAddress - The address of the contract to update.
|
|
132
|
-
* @param artifact - The updated artifact for the contract.
|
|
133
|
-
* @throws If the artifact's contract class is not found in the PXE or if the contract class is different from
|
|
134
|
-
* the current one (current one from the point of view of the node to which the PXE is connected).
|
|
135
|
-
*/
|
|
136
|
-
updateContract(contractAddress: AztecAddress, artifact: ContractArtifact): Promise<void>;
|
|
299
|
+
registerContract(instance: ContractInstancePreimage): Promise<AztecAddress>;
|
|
137
300
|
/**
|
|
138
301
|
* Retrieves the addresses of contracts added to this PXE.
|
|
139
302
|
* @returns An array of contracts addresses registered on this PXE.
|
|
@@ -144,21 +307,19 @@ export declare class PXE {
|
|
|
144
307
|
* (where validators prove the public portion).
|
|
145
308
|
*
|
|
146
309
|
* @param txRequest - An authenticated tx request ready for proving
|
|
310
|
+
* @param scopes - Addresses whose private state and keys are accessible during private execution.
|
|
147
311
|
* @returns A result containing the proof and public inputs of the tail circuit.
|
|
148
312
|
* @throws If contract code not found, or public simulation reverts.
|
|
149
313
|
* Also throws if simulatePublic is true and public simulation reverts.
|
|
150
314
|
*/
|
|
151
|
-
proveTx(txRequest: TxExecutionRequest): Promise<TxProvingResult>;
|
|
315
|
+
proveTx(txRequest: TxExecutionRequest, { scopes, senderForTags }: ProveTxOpts): Promise<TxProvingResult>;
|
|
152
316
|
/**
|
|
153
317
|
* Profiles a transaction, reporting gate counts (unless disabled) and returns an execution trace.
|
|
154
|
-
*
|
|
155
|
-
* @param txRequest - An authenticated tx request ready for simulation
|
|
156
|
-
* @param msgSender - (Optional) The message sender to use for the simulation.
|
|
157
|
-
* @param skipTxValidation - (Optional) If false, this function throws if the transaction is unable to be included in a block at the current state.
|
|
318
|
+
* @param txRequest - An authenticated tx request ready for simulation.
|
|
158
319
|
* @returns A trace of the program execution with gate counts.
|
|
159
320
|
* @throws If the code for the functions executed in this transaction have not been made available via `addContracts`.
|
|
160
321
|
*/
|
|
161
|
-
profileTx(txRequest: TxExecutionRequest, profileMode
|
|
322
|
+
profileTx(txRequest: TxExecutionRequest, { profileMode, skipProofGeneration, scopes, senderForTags }: ProfileTxOpts): Promise<TxProfileResult>;
|
|
162
323
|
/**
|
|
163
324
|
* Simulates a transaction based on the provided preauthenticated execution request.
|
|
164
325
|
* This will run a local simulation of private execution (and optionally of public as well), run the
|
|
@@ -170,29 +331,19 @@ export declare class PXE {
|
|
|
170
331
|
* In that case, the transaction returned is only potentially ready to be sent to the network for execution.
|
|
171
332
|
*
|
|
172
333
|
*
|
|
173
|
-
* @param txRequest - An authenticated tx request ready for simulation
|
|
174
|
-
* @param simulatePublic - Whether to simulate the public part of the transaction.
|
|
175
|
-
* @param skipTxValidation - (Optional) If false, this function throws if the transaction is unable to be included in a block at the current state.
|
|
176
|
-
* @param skipFeeEnforcement - (Optional) If false, fees are enforced.
|
|
177
|
-
* @param overrides - (Optional) State overrides for the simulation, such as msgSender, contract instances and artifacts.
|
|
178
|
-
* @param scopes - (Optional) The accounts whose notes we can access in this call. Currently optional and will default to all.
|
|
334
|
+
* @param txRequest - An authenticated tx request ready for simulation.
|
|
179
335
|
* @returns A simulated transaction result object that includes public and private return values.
|
|
180
336
|
* @throws If the code for the functions executed in this transaction have not been made available via `addContracts`.
|
|
181
337
|
* Also throws if simulatePublic is true and public simulation reverts.
|
|
182
338
|
*
|
|
183
339
|
* TODO(#7456) Prevent msgSender being defined here for the first call
|
|
184
340
|
*/
|
|
185
|
-
simulateTx(txRequest: TxExecutionRequest, simulatePublic
|
|
341
|
+
simulateTx(txRequest: TxExecutionRequest, { simulatePublic, skipTxValidation, skipFeeEnforcement, skipKernels, overrides, scopes, senderForTags }: SimulateTxOpts): Promise<TxSimulationResult>;
|
|
186
342
|
/**
|
|
187
|
-
*
|
|
188
|
-
*
|
|
343
|
+
* Executes a contract utility function.
|
|
189
344
|
* @param call - The function call containing the function details, arguments, and target contract address.
|
|
190
|
-
* @param authwits - (Optional) The authentication witnesses required for the function call.
|
|
191
|
-
* @param scopes - (Optional) The accounts whose notes we can access in this call. Currently optional and will
|
|
192
|
-
* default to all.
|
|
193
|
-
* @returns The result of the utility function call, structured based on the function ABI.
|
|
194
345
|
*/
|
|
195
|
-
|
|
346
|
+
executeUtility(call: FunctionCall, { authwits, scopes }?: ExecuteUtilityOpts): Promise<UtilityExecutionResult>;
|
|
196
347
|
/**
|
|
197
348
|
* Returns the private events given search parameters.
|
|
198
349
|
* @param eventSelector - Event selector to search for.
|
|
@@ -208,8 +359,8 @@ export declare class PXE {
|
|
|
208
359
|
*/
|
|
209
360
|
getPrivateEvents(eventSelector: EventSelector, filter: PrivateEventFilter): Promise<PackedPrivateEvent[]>;
|
|
210
361
|
/**
|
|
211
|
-
* Stops the PXE's job queue.
|
|
362
|
+
* Stops the PXE's job queue and closes the backing store.
|
|
212
363
|
*/
|
|
213
364
|
stop(): Promise<void>;
|
|
214
365
|
}
|
|
215
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
366
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHhlLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvcHhlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFFakUsT0FBTyxFQUFFLEVBQUUsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBQ3BELE9BQU8sRUFBRSxLQUFLLEVBQUUsTUFBTSxtQ0FBbUMsQ0FBQztBQUMxRCxPQUFPLEVBQUUsS0FBSyxNQUFNLEVBQXFDLE1BQU0sdUJBQXVCLENBQUM7QUFLdkYsT0FBTyxLQUFLLEVBQUUsa0JBQWtCLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUNyRixPQUFPLEtBQUssRUFBRSxpQkFBaUIsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQ3pELE9BQU8sRUFBRSxLQUFLLHlCQUF5QixFQUF5QixNQUFNLDJCQUEyQixDQUFDO0FBQ2xHLE9BQU8sS0FBSyxFQUFFLGdCQUFnQixFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFDaEUsT0FBTyxFQUNMLEtBQUssZ0JBQWdCLEVBQ3JCLGFBQWEsRUFDYixZQUFZLEVBSWIsTUFBTSxtQkFBbUIsQ0FBQztBQUMzQixPQUFPLEtBQUssRUFBRSxXQUFXLEVBQUUsTUFBTSw0QkFBNEIsQ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dest/pxe.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pxe.d.ts","sourceRoot":"","sources":["../src/pxe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAEjE,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACpD,OAAO,EAAE,KAAK,MAAM,EAAqC,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"pxe.d.ts","sourceRoot":"","sources":["../src/pxe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAEjE,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAC1D,OAAO,EAAE,KAAK,MAAM,EAAqC,MAAM,uBAAuB,CAAC;AAKvF,OAAO,KAAK,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AACrF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,KAAK,yBAAyB,EAAyB,MAAM,2BAA2B,CAAC;AAClG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EACL,KAAK,gBAAgB,EACrB,aAAa,EACb,YAAY,EAIb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAEhE,OAAO,EACL,eAAe,EACf,KAAK,wBAAwB,EAC7B,KAAK,mCAAmC,EACxC,KAAK,2BAA2B,EAChC,KAAK,cAAc,EAEpB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,mBAAmB,EAAE,M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