Abstract
Protected
_valueAbstract
Readonly
nameToken name
Abstract
Readonly
tokenToken contract address
Abstract
Readonly
unitsBase units to represent the token
Get the token's value in base units.
Token value in base units
Converts the base unit value to a human-readable string.
If displayDecimals
is provided the value is rounded to that number of decimals
Otherwise, it falls back to the token's inherent units
.
Optional
displayDecimals: numberNumber of decimal places to round to
Protected
initializeInitilises the instance with a value
Token value
Optional
valueUnits: UnitsUnits for the token value
Represents a generic Token A token has base units (e.g. wei) and display units For example 1 VTHO (1 in display units) = 10^18 base units (wei)