IGAC
Author: Struct Finance
SPDX-License-Identifier: MIT
Functions
unpause
Used to unpause the contracts globally if it's paused
function unpause() external;
pause
Used to pause the contracts globally if it's paused
function pause() external;
grantRole
Used to grant a specific role to an address
function grantRole(bytes32 role, address account) external;
Parameters
Name | Type | Description |
---|---|---|
role | bytes32 | The role to be granted |
account | address | The address to which the role should be granted |
hasRole
Used to validate whether the given address has a specific role
function hasRole(bytes32 role, address account) external view returns (bool);
Parameters
Name | Type | Description |
---|---|---|
role | bytes32 | The role to check |
account | address | The address which should be validated |
Returns
Name | Type | Description |
---|---|---|
<none> | bool | A boolean flag that indicates whether the given address has the required role |
paused
Used to check if the contracts are paused globally
function paused() external view returns (bool);
Returns
Name | Type | Description |
---|---|---|
<none> | bool | A boolean flag that indicates whether the contracts are paused or not. |
keeperWhitelistedRoles
Used to fetch the roles array KEEPER_WHITELISTED
function keeperWhitelistedRoles() external view returns (bytes32[] memory);
Returns
Name | Type | Description |
---|---|---|
<none> | bytes32[] | An array with the KEEPER and WHITELISTED roles |