Skip to main contentModule role
Source - Tip20Role
- A TIP-20 role identifier, parsed from a role name or a raw 32-byte hash.
- RoleUpdate ๐
- Whether a role membership update grants or revokes the role.
- DEFAULT_ADMIN_ROLE ๐
- Name of the root admin role, whose identifier is the zero hash.
- HASHED_ROLES ๐
- Names of the TIP-20 roles whose identifier is the keccak256 hash of the name.
- ensure_role_admin ๐
- Fails early when
sender does not hold the admin role of role, instead of submitting a
transaction the precompile rejects with a bare Unauthorized(). - has_role ๐
- Prints whether
account holds role on token. - update ๐
- Grants or revokes
role for account on token.