Module tip20

Module tip20 

Source

Modules§

IRolesAuth
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§

TIP20Token

Enums§

RolesAuthError
Container for all the IRolesAuth custom errors.
RolesAuthEvent
Container for all the IRolesAuth events.
TIP20Error
Container for all the ITIP20 custom errors.
TIP20Event
Container for all the ITIP20 events.

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§

BURN_BLOCKED_ROLE
ISSUER_ROLE
PAUSE_ROLE
UNPAUSE_ROLE

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