The input criteria object.
Optional
address?: string | string[]A single address string or an array of address strings.
Optional
topics?: string[] | string[][]A single array of topics or an array of arrays of topics.
An array of EventCriteria objects.
Function to generate a set of event criteria based on input criteria. The function takes an object with optional address and topics properties, and returns an array of EventCriteria objects.