AbstractProtected_valueAbstract ReadonlynameToken name
Abstract ReadonlytokenToken contract address
Abstract ReadonlyunitsBase 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.
OptionaldisplayDecimals: numberNumber of decimal places to round to
ProtectedinitializeInitilises the instance with a value
Token value
OptionalvalueUnits: 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)