Function getEventsFromSoroswapContracts

Retrieve events from Soroswap contracts of the given types.

If the events cannot be read.

  • Parameters

    • contractTypes: readonly SoroswapContract[]

      An array of types of contracts to subscribe to. These can be:

      • the strings "SoroswapFactory" or "factory"
      • the strings "SoroswapRouter" or "router"
      • an object with either the key "SoroswapPair" or just "pair" and the value an array of contract IDs to subscribe to.
    • Optionaloptions: Readonly<EventGetterOptions>

      Options for event retrieval

    Returns Promise<readonly SoroswapEvent[]>

    A promise that resolves to the flat event array.