CoreAccessControl
CoreAccessControl
Extends OpenZeppelin's enumerable access control.
_AccessControlEnumerable is used as is, except for making the DEFAULT_ADMIN_ROLE a super admin role by giving it the ability to set role admins for other roles even when these roles have custom admin roles set.
constructor
Constructor.
_Grants DEFAULT_ADMIN_ROLE to the deployer. Lists the core protocol roles.
setRoleAdmin
Sets a role admin for a specific role.
Caller must have the DEFAULT_ADMIN_ROLE.
Name | Type | Description |
---|---|---|
role | bytes32 | Role value to set the admin of |
adminRole | bytes32 | new admin role of the 'role' |
Last updated