Checks if the provided object is a valid IEventRecord.

An IEventRecord is expected to have the following properties:

  • phase: An object representing the phase of the event.
  • event: An object representing the event details.
  • topics: An array of topics associated with the event.

This function validates the presence and type of these properties in the provided object.

  • Parameters

    • event: any

      The object to be checked.

    Returns event is IEventRecord<IRuntimeEvent, `0x${string}`>

    true if the object is a valid IEventRecord, false otherwise.