Modules§
- IRoles
Auth - Module containing a contract’s types and functions.
- ITIP20
- TIP20 token interface providing standard ERC20 functionality with Tempo-specific extensions.
- dispatch
- rewards
- roles
- slots
Structs§
Enums§
- Roles
Auth Error - Container for all the
IRolesAuthcustom errors. - Roles
Auth Event - Container for all the
IRolesAuthevents. - TIP20
Error - Container for all the
ITIP20custom errors. - TIP20
Event - Container for all the
ITIP20events.
Constants§
- TIP20_
DECIMALS 🔒 - Decimal precision for TIP-20 tokens
- TIP20_
TOKEN_ 🔒PREFIX - TIP20 token address prefix (12 bytes for token ID encoding)
- U128_
MAX - u128::MAX as U256
- USD_
CURRENCY - USD currency string constant
Statics§
Functions§
- address_
to_ token_ id_ unchecked - is_
tip20_ prefix - Returns true if the address has the TIP20 prefix.
- token_
id_ to_ address - Converts a token ID to its corresponding contract address Uses the pattern: TIP20_TOKEN_PREFIX ++ token_id
- validate_
usd_ currency - Validates that a token has USD currency