Function subscribeToSoroswapContracts

Subscribe to Soroswap contracts of the given types.

  • 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.

    Returns Promise<boolean>

    A promise that resolves to true if all subscriptions were successful.