Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface WhirlpoolClient

Helper class to help interact with Whirlpool Accounts with a simpler interface.

Hierarchy

  • WhirlpoolClient

Index

Methods

  • getPool(poolAddress: Address, refresh?: boolean): Promise<Whirlpool>
  • Get a Whirlpool object to interact with the Whirlpool account at the given address.

    Parameters

    • poolAddress: Address

      the address of the Whirlpool account

    • Optional refresh: boolean

    Returns Promise<Whirlpool>

    a Whirlpool object to interact with

  • getPosition(positionAddress: Address, refresh?: boolean): Promise<Position>
  • Get a Position object to interact with the Position account at the given address.

    Parameters

    • positionAddress: Address

      the address of the Position account

    • Optional refresh: boolean

    Returns Promise<Position>

    a Position object to interact with

Generated using TypeDoc