Skip to main content


AuditLog Objects

class AuditLog()

Represents an audit event's details within Luna's contract execution environment.


  • event_type (AuditEventType): The type of the audit event.
  • event_context (dict): Contextual information about the audit event.

Logger Objects

class Logger()

Logs audit events for contracts, equipped with engine handle and clock. Creates 'AuditEntry' instances for each audit event and forwards them to the engine.

NoLogger Objects

class NoLogger(Logger)

Placeholder logger with an empty implementation for 'log_audit'. This class allows for optional logging behavior within Luna's contract environment.