Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GaugeInterface<T>

Type parameters

Hierarchy

  • ServiceInterface<T>
    • GaugeInterface

Index

Constructors

Properties

chainId: 1 | 10 | 250 | 1337 | 42161
ctx: Context
events: Emittery<Record<string, unknown>, Record<string, unknown> & OmnipresentEventData, never>
yearn: Yearn<T>

Methods

  • balances(__namedParameters: { accountAddress: string; addresses?: string[] }): Promise<Balance[]>
  • Get all Gauge underlying token balances of an account

    Parameters

    • __namedParameters: { accountAddress: string; addresses?: string[] }
      • accountAddress: string
      • Optional addresses?: string[]

    Returns Promise<Balance[]>

    Balance array

  • get(addresses: { addresses?: string[] }): Promise<Gauge[]>
  • Get all Gauges

    Parameters

    • addresses: { addresses?: string[] }

      filter, if not provided, all are returned

      • Optional addresses?: string[]

    Returns Promise<Gauge[]>

    Gauge array

  • getDynamic(addresses: { addresses?: string[] }): Promise<GaugeDynamic[]>
  • Get dynamic properties of Gauges

    Parameters

    • addresses: { addresses?: string[] }

      filter, if not provided, all are returned

      • Optional addresses?: string[]

    Returns Promise<GaugeDynamic[]>

    GaugeDynamic array

  • getStakeAllowance(__namedParameters: { accountAddress: string; gaugeAddress: string; tokenAddress: string }): Promise<TokenAllowance>
  • Fetch the token amount that has been allowed to be used to stake

    Parameters

    • __namedParameters: { accountAddress: string; gaugeAddress: string; tokenAddress: string }
      • accountAddress: string
      • gaugeAddress: string
      • tokenAddress: string

    Returns Promise<TokenAllowance>

    TokenAllowance

  • getStatic(addresses: { addresses?: string[] }): Promise<GaugeStatic[]>
  • Get static properties of Gauges

    Parameters

    • addresses: { addresses?: string[] }

      filter, if not provided, all are returned

      • Optional addresses?: string[]

    Returns Promise<GaugeStatic[]>

    GaugeStatic array

  • getSupportedAddresses(__namedParameters: { addresses?: string[] }): Promise<string[]>
  • Parameters

    • __namedParameters: { addresses?: string[] }
      • Optional addresses?: string[]

    Returns Promise<string[]>

  • metadataOf(__namedParameters: { accountAddress: string; addresses?: string[] }): Promise<GaugeUserMetadata[]>
  • Get the Gauges user metadata of an account

    Parameters

    • __namedParameters: { accountAddress: string; addresses?: string[] }
      • accountAddress: string
      • Optional addresses?: string[]

    Returns Promise<GaugeUserMetadata[]>

  • positionsOf(__namedParameters: { accountAddress: string; addresses?: string[] }): Promise<Position[]>
  • Get all Gauge positions of an account

    Parameters

    • __namedParameters: { accountAddress: string; addresses?: string[] }
      • accountAddress: string
      • Optional addresses?: string[]

    Returns Promise<Position[]>

    Position array

  • tokens(addresses: { addresses?: string[] }): Promise<Token[]>
  • Get all Gauge underlying tokens

    Parameters

    • addresses: { addresses?: string[] }

      filter, if not provided, all are returned

      • Optional addresses?: string[]

    Returns Promise<Token[]>

    Token array

Generated using TypeDoc