Module IRolesAuth
Expand description
Module containing a contract’s types and functions.
interface IRolesAuth {
function hasRole(address account, bytes32 role) external view returns (bool);
function getRoleAdmin(bytes32 role) external view returns (bytes32);
function grantRole(bytes32 role, address account) external;
function revokeRole(bytes32 role, address account) external;
function renounceRole(bytes32 role) external;
function setRoleAdmin(bytes32 role, bytes32 adminRole) external;
event RoleMembershipUpdated(bytes32 indexed role, address indexed account, address indexed sender, bool hasRole);
event RoleAdminUpdated(bytes32 indexed role, bytes32 indexed newAdminRole, address indexed sender);
error Unauthorized();
}Modules§
- abi
- Contains dynamic ABI definitions for this contract.
Structs§
- IRoles
Auth Instance - A
IRolesAuthinstance. - Role
Admin Updated - Event with signature
RoleAdminUpdated(bytes32,bytes32,address)and selector0x70d85637458e639f63e6106179309eadde21dacce320d9549168d49d0a9d6982. - Role
Membership Updated - Event with signature
RoleMembershipUpdated(bytes32,address,address,bool)and selector0x4811f35680ba814bed6b0b926a2949c8a1000f4f2443cfe9978745d46a251aec. - Unauthorized
- Custom error with signature
Unauthorized()and selector0x82b42900. - getRole
Admin Call - Function with signature
getRoleAdmin(bytes32)and selector0x248a9ca3. - getRole
Admin Return - Container type for the return parameters of the
getRoleAdmin(bytes32)function. - grant
Role Call - Function with signature
grantRole(bytes32,address)and selector0x2f2ff15d. - grant
Role Return - Container type for the return parameters of the
grantRole(bytes32,address)function. - hasRole
Call - Function with signature
hasRole(address,bytes32)and selector0xac4ab3fb. - hasRole
Return - Container type for the return parameters of the
hasRole(address,bytes32)function. - renounce
Role Call - Function with signature
renounceRole(bytes32)and selector0x8bb9c5bf. - renounce
Role Return - Container type for the return parameters of the
renounceRole(bytes32)function. - revoke
Role Call - Function with signature
revokeRole(bytes32,address)and selector0xd547741f. - revoke
Role Return - Container type for the return parameters of the
revokeRole(bytes32,address)function. - setRole
Admin Call - Function with signature
setRoleAdmin(bytes32,bytes32)and selector0x1e4e0091. - setRole
Admin Return - Container type for the return parameters of the
setRoleAdmin(bytes32,bytes32)function.
Enums§
- IRoles
Auth Calls - Container for all the
IRolesAuthfunction calls. - IRoles
Auth Errors - Container for all the
IRolesAuthcustom errors. - IRoles
Auth Events - Container for all the
IRolesAuthevents.
Functions§
- new
- Creates a new wrapper around an on-chain
IRolesAuthcontract instance.