package
0.2501.0
Repository: https://github.com/oasisprotocol/oasis-core.git
Documentation: pkg.go.dev

# Functions

ConvertToTokenAmount returns the given amount in base units to the corresponding token amount accourding to the given token's value base-10 exponent.
PrettyPrintAmount writes a pretty-printed representation of the given amount to the given writer.

# Constants

ModuleName is a unique module name for the staking/token module.
TokenSymbolMaxLength is the maximum length of the token symbol.
nolint: gosec // Not that kind of token :).
TokenValueExponentMaxValue is the maximum value of token's value base-10 exponent.

# Variables

ErrInvalidTokenValueExponent is the error returned when an invalid token's value base-10 exponent is specified.
TokenValueAllowedSigns specifies allowed token's value signs.