Module token
Source - state
- types
- Token
- Library functions that implement core FRC-??? standards.
- TokenError
- TOKEN_PRECISION
- Ratio of integral units to interpretation as standard token units, as given by FRC-0046.
Aka “18 decimals”.
- validate_allowance
- Validates that an allowance is non-negative. Allowances do not need to be an integer multiple of
granularity.
- validate_amount_with_granularity
- Validates that a token amount for burning/transfer/minting is non-negative, and an integer
multiple of granularity.