Module token

Module token 

Source

Modules§

state
types

Structs§

Token
Library functions that implement core FRC-??? standards.

Enums§

TokenError

Constants§

TOKEN_PRECISION
Ratio of integral units to interpretation as standard token units, as given by FRC-0046. Aka “18 decimals”.

Functions§

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.