Skip to main content

Module roles

Module roles 

Source
Expand description

Role-based access control for TIP-20 tokens.

Implements AccessControl: each role has an admin role that can grant/revoke it. DEFAULT_ADMIN_ROLE is the root admin; UNGRANTABLE_ROLE is self-administered and cannot be granted externally.

Constantsยง

DEFAULT_ADMIN_ROLE
The default admin role (zero hash). Holders can grant/revoke any role.
UNGRANTABLE_ROLE
A self-administered role that cannot be granted by any admin.