> Aztec.nr API reference, v6.0.0 (mainnet and testnet). Index: https://docs.aztec.network/aztec-nr-api/v6.0.0/llms.txt

# Module events

Module: `noir_aztec::macros::events`

## Functions

- [event](/aztec-nr-api/v6.0.0/noir_aztec/macros/events/fn.event.md): Generates the core event functionality for a struct, including the [`EventInterface`](/aztec-nr-api/v6.0.0/noir_aztec/event/event_interface/trait.EventInterface.md) implementation (which provides the event type id) and a [`Serialize`](/aztec-nr-api/v6.0.0/serde/serialization/trait.Serialize.md) implementation if one is not already provided.

## Globals

- [EVENT_SELECTORS](/aztec-nr-api/v6.0.0/noir_aztec/macros/events/global.EVENT_SELECTORS.md): A map from event selector to event name indicating whether the event selector has already been seen during the contract compilation - prevents event selector collisions.
