Description
InfiniFiCore is the foundational contract responsible for maintaining and enforcing hierarchical role-based permissions throughout the InfiniFi system. Every contract requiring access control should delegate role checks to this core registry.
Constructor
Initializes the core roles structure. The deployer is granted theGOVERNOR role and all critical admin roles are explicitly set under the GOVERNOR’s authority.
Errors
Functions
createRole
role: The new role identifieradminRole: The admin role that governs the new role
setRoleAdmin
grantRoles
Caller must have administrative rights over each role being granted.