Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PriceToken

Contains token structure with price in usd per 1 unit.

Hierarchy

Index

Constructors

  • new PriceToken(tokenStruct: PriceTokenStruct): PriceToken

Properties

address: string
blockchain: BlockchainName
decimals: number
name: string
symbol: string

Accessors

  • get asStruct(): PriceTokenStruct
  • get isNative(): boolean
  • get price(): BigNumber

Methods

  • clone(tokenStruct?: Partial<PriceTokenStruct>): PriceToken
  • cloneAndCreate(tokenStruct?: Partial<PriceTokenStruct>): Promise<PriceToken>
  • getAndUpdateTokenPrice(): Promise<BigNumber>
  • createFromToken(token: TokenStruct): Promise<PriceToken>
  • createTokens(tokensAddresses: string[] | readonly string[], blockchain: BlockchainName): Promise<Token[]>
  • tokensToAddresses(tokens: Token[]): string[]

Generated using TypeDoc