Options
All
  • Public
  • Public/Protected
  • All
Menu

Class VotingEscrowInterface<T>

Type parameters

Hierarchy

  • ServiceInterface<T>
    • VotingEscrowInterface

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 Voting Escrows 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<VotingEscrow[]>
  • Get all Voting Escrow assets

    Parameters

    • addresses: { addresses?: string[] }

      filter, if not provided, all are returned

      • Optional addresses?: string[]

    Returns Promise<VotingEscrow[]>

    VotingEscrow array

  • Get dynamic properties of Voting Escrows

    Parameters

    • addresses: { addresses?: string[] }

      filter, if not provided, all are returned

      • Optional addresses?: string[]

    Returns Promise<VotingEscrowDynamic[]>

    VotingEscrowDynamic array

  • getExpectedTransactionOutcome(__namedParameters: { accountAddress: string; amount?: string; time?: number; tokenAddress: string; votingEscrowAddress: string; votingEscrowTransactionType: VotingEscrowTransactionType }): Promise<TransactionOutcome>
  • getLockAllowance(__namedParameters: { accountAddress: string; tokenAddress: string; votingEscrowAddress: string }): Promise<TokenAllowance>
  • Fetch the token amount that has been allowed to be used to lock

    Parameters

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

    Returns Promise<TokenAllowance>

    TokenAllowance

  • Get static properties of Voting Escrows

    Parameters

    • addresses: { addresses?: string[] }

      filter, if not provided, all are returned

      • Optional addresses?: string[]

    Returns Promise<VotingEscrowStatic[]>

    VotingEscrowStatic array

  • getSupportedAddresses(__namedParameters: { addresses?: string[] }): Promise<string[]>
  • getVotingPower(lockAmount: string, unlockTime: number): string
  • positionsOf(__namedParameters: { accountAddress: string; addresses?: string[] }): Promise<Position[]>
  • Get all Voting Escrows 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 Voting Escrows underlying tokens

    Parameters

    • addresses: { addresses?: string[] }

      filter, if not provided, all are returned

      • Optional addresses?: string[]

    Returns Promise<Token[]>

    Token array

Generated using TypeDoc