Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RadixTokenDefinition

Hierarchy

  • RadixTokenDefinition

Index

Constructors

constructor

Properties

address

address: RadixAddress

description

description: string

granularity

granularity: RadixUInt256

iconUrl

iconUrl: string

name

name: string

symbol

symbol: string

tokenSupplyType

tokenSupplyType: RadixTokenSupplyType

totalSupply

totalSupply: BN = new BN(0)

unallocatedTokens

unallocatedTokens: TSMap<string, RadixUnallocatedTokensParticle> = new TSMap()

Static SUBUNITS

SUBUNITS: Decimal = new Decimal(10).pow(18)

Methods

addTotalSupply

  • addTotalSupply(difference: number | BN): void

getGranularity

  • getGranularity(): BN

getTokenUnitsGranularity

  • getTokenUnitsGranularity(): Decimal

getTokenUnitsTotalSupply

  • getTokenUnitsTotalSupply(): Decimal

getTotalSupply

  • getTotalSupply(): BN

getUnallocatedSupply

  • getUnallocatedSupply(): BN

getUnallocatedTokens

Static fromDecimalToSubunits

  • fromDecimalToSubunits(amount: string | number | Decimal): BN

Static fromSubunitsToDecimal

  • fromSubunitsToDecimal(amount: BN): Decimal

Generated using TypeDoc