aztec-nr - noir_aztec::messages::processing

Function validate_and_store_enqueued_notes_and_events

pub unconstrained fn validate_and_store_enqueued_notes_and_events(
    contract_address: AztecAddress,
)

Validates all note and event validation requests enqueued via enqueue_note_for_validation and enqueue_event_for_validation, inserting them into the note database and event store respectively, making them queryable via get_notes oracle and our TS API (PXE::getPrivateEvents).

This automatically clears both validation request queues, so no further work needs to be done by the caller.