Type Parameters
T extends BaseCurrencyType
Constructors
constructor
- new Balance<T>(integerBalance: undefined | number, type: T): Balance<T>
Type Parameters
Parameters
integerBalance: undefined | number
type: T
Properties
bigBalance
bigBalance: BigNumber
bigInteger
bigInteger: BigNumber
floatBalance
floatBalance: number
integerBalance
integerBalance: number
Methods
toString
- toString(maxDecimalPlaces?: number, options?: StringFormatOptions): string
Parameters
Optional maxDecimalPlaces: number
Optional options: StringFormatOptions
Returns string
Static fromFloatAndTicker
Static fromIntAndTicker
- fromIntAndTicker(integerBalance: number, ticker?: "SOL" | "MOBILE" | "HNT" | "IOT" | "DC" | "TNT" | "USD" | "HST"): Balance<default>
Parameters
integerBalance: number
Optional ticker: "SOL" | "MOBILE" | "HNT" | "IOT" | "DC" | "TNT" | "USD" | "HST"
Returns Balance<default>