Module IRolesAuth

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§

IRolesAuthInstance
A IRolesAuth instance.
RoleAdminUpdated
Event with signature RoleAdminUpdated(bytes32,bytes32,address) and selector 0x70d85637458e639f63e6106179309eadde21dacce320d9549168d49d0a9d6982.
RoleMembershipUpdated
Event with signature RoleMembershipUpdated(bytes32,address,address,bool) and selector 0x4811f35680ba814bed6b0b926a2949c8a1000f4f2443cfe9978745d46a251aec.
Unauthorized
Custom error with signature Unauthorized() and selector 0x82b42900.
getRoleAdminCall
Function with signature getRoleAdmin(bytes32) and selector 0x248a9ca3.
getRoleAdminReturn
Container type for the return parameters of the getRoleAdmin(bytes32) function.
grantRoleCall
Function with signature grantRole(bytes32,address) and selector 0x2f2ff15d.
grantRoleReturn
Container type for the return parameters of the grantRole(bytes32,address) function.
hasRoleCall
Function with signature hasRole(address,bytes32) and selector 0xac4ab3fb.
hasRoleReturn
Container type for the return parameters of the hasRole(address,bytes32) function.
renounceRoleCall
Function with signature renounceRole(bytes32) and selector 0x8bb9c5bf.
renounceRoleReturn
Container type for the return parameters of the renounceRole(bytes32) function.
revokeRoleCall
Function with signature revokeRole(bytes32,address) and selector 0xd547741f.
revokeRoleReturn
Container type for the return parameters of the revokeRole(bytes32,address) function.
setRoleAdminCall
Function with signature setRoleAdmin(bytes32,bytes32) and selector 0x1e4e0091.
setRoleAdminReturn
Container type for the return parameters of the setRoleAdmin(bytes32,bytes32) function.

Enums§

IRolesAuthCalls
Container for all the IRolesAuth function calls.
IRolesAuthErrors
Container for all the IRolesAuth custom errors.
IRolesAuthEvents
Container for all the IRolesAuth events.

Functions§

new
Creates a new wrapper around an on-chain IRolesAuth contract instance.