Skip to main content

IGAC

Git Source

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

NameTypeDescription
rolebytes32The role to be granted
accountaddressThe 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

NameTypeDescription
rolebytes32The role to check
accountaddressThe address which should be validated

Returns

NameTypeDescription
<none>boolA 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

NameTypeDescription
<none>boolA 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

NameTypeDescription
<none>bytes32[]An array with the KEEPER and WHITELISTED roles