A utility class for working with pool graphs

Constructors

Properties

PATH_ID_DELIMITER: "-" = "-"

Methods

  • Deconstruct a path id into the two tokens it represents

    Parameters

    • pathId: string

      The path id to deconstruct

    Returns readonly [string, string]

    A tuple of the two tokens in the path id. Returns undefined if the provided pathId is invalid.

  • Get a search path id from two tokens. The id can be used to identify a path between the two tokens in PathSearchEntries.

    Parameters

    • tokenA: Address

      The first token in the path

    • tokenB: Address

      The second token in the path

    Returns string

    A path id that can be used to identify a path between the two tokens in PathSearchEntries.

Generated using TypeDoc