EeseeAccessManager

EeseeAccessManager

ADMIN_ROLE

bytes32 ADMIN_ROLE

grantRole

function grantRole(bytes32 role, address account) external

Grants {role} to {account}. If {account} had not been already granted {role}, emits a {RoleGranted} event.

Parameters

Name
Type
Description

role

bytes32

- Role to grant.

account

address

- Account to grant role to.

Note: This function can only be called by the ADMIN_ROLE. |

revokeRole

function revokeRole(bytes32 role, address account) external

Revokes {role} from {account}. If {account} had been granted {role}, emits a {RoleRevoked} event.

Parameters

Name
Type
Description

role

bytes32

- Role to revoke.

account

address

- Account to revoke role from.

Note: This function can only be called by the ADMIN_ROLE. |

hasRole

function hasRole(bytes32 role, address account) public view returns (bool)

Retrurns if {account} has {role}.

Parameters

Name
Type
Description

role

bytes32

- Role to check.

account

address

- Account to check.

Return Values

Name
Type
Description

[0]

bool

true if {account} has been granted {role}.

Inherited from IEeseeAccessManager

ADMIN_ROLE

function ADMIN_ROLE() external view returns (bytes32)

RoleGranted

event RoleGranted(bytes32 role, address account)

RoleRevoked

event RoleRevoked(bytes32 role, address account)

Last updated