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.

  • Parameters

    • criteria: {
          address?: string | string[];
          topics?: string[] | string[][];
      }

      The input criteria object.

      • Optionaladdress?: string | string[]

        A single address string or an array of address strings.

      • Optionaltopics?: string[] | string[][]

        A single array of topics or an array of arrays of topics.

    Returns EventCriteria[]

    An array of EventCriteria objects.