UNPKG

@etherisc/gif-contracts

Version:

This repository holds the GIF core contracts and tools to develop, test and deploy GIF instances.

1,083 lines 41 kB
{ "abi": [ { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "previousAdminRole", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "newAdminRole", "type": "bytes32" } ], "name": "RoleAdminChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "account", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sender", "type": "address" } ], "name": "RoleGranted", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "account", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sender", "type": "address" } ], "name": "RoleRevoked", "type": "event" }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" } ], "name": "getRoleAdmin", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" } ], "name": "grantRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" } ], "name": "hasRole", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" } ], "name": "renounceRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" } ], "name": "revokeRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ], "allSourcePaths": { "2": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/access/IAccessControl.sol" }, "ast": { "absolutePath": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/access/IAccessControl.sol", "exportedSymbols": { "IAccessControl": [ 26055 ] }, "id": 26056, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 25984, "literals": [ "solidity", "^", "0.8", ".0" ], "nodeType": "PragmaDirective", "src": "94:23:2" }, { "abstract": false, "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": { "id": 25985, "nodeType": "StructuredDocumentation", "src": "119:89:2", "text": " @dev External interface of AccessControl declared to support ERC165 detection." }, "fullyImplemented": false, "id": 26055, "linearizedBaseContracts": [ 26055 ], "name": "IAccessControl", "nameLocation": "219:14:2", "nodeType": "ContractDefinition", "nodes": [ { "anonymous": false, "documentation": { "id": 25986, "nodeType": "StructuredDocumentation", "src": "240:292:2", "text": " @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\n `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\n {RoleAdminChanged} not being emitted signaling this.\n _Available since v3.1._" }, "id": 25994, "name": "RoleAdminChanged", "nameLocation": "543:16:2", "nodeType": "EventDefinition", "parameters": { "id": 25993, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 25988, "indexed": true, "mutability": "mutable", "name": "role", "nameLocation": "576:4:2", "nodeType": "VariableDeclaration", "scope": 25994, "src": "560:20:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 25987, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "560:7:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 25990, "indexed": true, "mutability": "mutable", "name": "previousAdminRole", "nameLocation": "598:17:2", "nodeType": "VariableDeclaration", "scope": 25994, "src": "582:33:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 25989, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "582:7:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 25992, "indexed": true, "mutability": "mutable", "name": "newAdminRole", "nameLocation": "633:12:2", "nodeType": "VariableDeclaration", "scope": 25994, "src": "617:28:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 25991, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "617:7:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "559:87:2" }, "src": "537:110:2" }, { "anonymous": false, "documentation": { "id": 25995, "nodeType": "StructuredDocumentation", "src": "653:212:2", "text": " @dev Emitted when `account` is granted `role`.\n `sender` is the account that originated the contract call, an admin role\n bearer except when using {AccessControl-_setupRole}." }, "id": 26003, "name": "RoleGranted", "nameLocation": "876:11:2", "nodeType": "EventDefinition", "parameters": { "id": 26002, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 25997, "indexed": true, "mutability": "mutable", "name": "role", "nameLocation": "904:4:2", "nodeType": "VariableDeclaration", "scope": 26003, "src": "888:20:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 25996, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "888:7:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 25999, "indexed": true, "mutability": "mutable", "name": "account", "nameLocation": "926:7:2", "nodeType": "VariableDeclaration", "scope": 26003, "src": "910:23:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 25998, "name": "address", "nodeType": "ElementaryTypeName", "src": "910:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 26001, "indexed": true, "mutability": "mutable", "name": "sender", "nameLocation": "951:6:2", "nodeType": "VariableDeclaration", "scope": 26003, "src": "935:22:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 26000, "name": "address", "nodeType": "ElementaryTypeName", "src": "935:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "887:71:2" }, "src": "870:89:2" }, { "anonymous": false, "documentation": { "id": 26004, "nodeType": "StructuredDocumentation", "src": "965:275:2", "text": " @dev Emitted when `account` is revoked `role`.\n `sender` is the account that originated the contract call:\n - if using `revokeRole`, it is the admin role bearer\n - if using `renounceRole`, it is the role bearer (i.e. `account`)" }, "id": 26012, "name": "RoleRevoked", "nameLocation": "1251:11:2", "nodeType": "EventDefinition", "parameters": { "id": 26011, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 26006, "indexed": true, "mutability": "mutable", "name": "role", "nameLocation": "1279:4:2", "nodeType": "VariableDeclaration", "scope": 26012, "src": "1263:20:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 26005, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "1263:7:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 26008, "indexed": true, "mutability": "mutable", "name": "account", "nameLocation": "1301:7:2", "nodeType": "VariableDeclaration", "scope": 26012, "src": "1285:23:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 26007, "name": "address", "nodeType": "ElementaryTypeName", "src": "1285:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 26010, "indexed": true, "mutability": "mutable", "name": "sender", "nameLocation": "1326:6:2", "nodeType": "VariableDeclaration", "scope": 26012, "src": "1310:22:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 26009, "name": "address", "nodeType": "ElementaryTypeName", "src": "1310:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "1262:71:2" }, "src": "1245:89:2" }, { "documentation": { "id": 26013, "nodeType": "StructuredDocumentation", "src": "1340:76:2", "text": " @dev Returns `true` if `account` has been granted `role`." }, "functionSelector": "91d14854", "id": 26022, "implemented": false, "kind": "function", "modifiers": [], "name": "hasRole", "nameLocation": "1430:7:2", "nodeType": "FunctionDefinition", "parameters": { "id": 26018, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 26015, "mutability": "mutable", "name": "role", "nameLocation": "1446:4:2", "nodeType": "VariableDeclaration", "scope": 26022, "src": "1438:12:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 26014, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "1438:7:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 26017, "mutability": "mutable", "name": "account", "nameLocation": "1460:7:2", "nodeType": "VariableDeclaration", "scope": 26022, "src": "1452:15:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 26016, "name": "address", "nodeType": "ElementaryTypeName", "src": "1452:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "1437:31:2" }, "returnParameters": { "id": 26021, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 26020, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 26022, "src": "1492:4:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 26019, "name": "bool", "nodeType": "ElementaryTypeName", "src": "1492:4:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" } ], "src": "1491:6:2" }, "scope": 26055, "src": "1421:77:2", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "documentation": { "id": 26023, "nodeType": "StructuredDocumentation", "src": "1504:184:2", "text": " @dev Returns the admin role that controls `role`. See {grantRole} and\n {revokeRole}.\n To change a role's admin, use {AccessControl-_setRoleAdmin}." }, "functionSelector": "248a9ca3", "id": 26030, "implemented": false, "kind": "function", "modifiers": [], "name": "getRoleAdmin", "nameLocation": "1702:12:2", "nodeType": "FunctionDefinition", "parameters": { "id": 26026, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 26025, "mutability": "mutable", "name": "role", "nameLocation": "1723:4:2", "nodeType": "VariableDeclaration", "scope": 26030, "src": "1715:12:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 26024, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "1715:7:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "1714:14:2" }, "returnParameters": { "id": 26029, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 26028, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 26030, "src": "1752:7:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 26027, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "1752:7:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "1751:9:2" }, "scope": 26055, "src": "1693:68:2", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "documentation": { "id": 26031, "nodeType": "StructuredDocumentation", "src": "1767:239:2", "text": " @dev Grants `role` to `account`.\n If `account` had not been already granted `role`, emits a {RoleGranted}\n event.\n Requirements:\n - the caller must have ``role``'s admin role." }, "functionSelector": "2f2ff15d", "id": 26038, "implemented": false, "kind": "function", "modifiers": [], "name": "grantRole", "nameLocation": "2020:9:2", "nodeType": "FunctionDefinition", "parameters": { "id": 26036, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 26033, "mutability": "mutable", "name": "role", "nameLocation": "2038:4:2", "nodeType": "VariableDeclaration", "scope": 26038, "src": "2030:12:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 26032, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "2030:7:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 26035, "mutability": "mutable", "name": "account", "nameLocation": "2052:7:2", "nodeType": "VariableDeclaration", "scope": 26038, "src": "2044:15:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 26034, "name": "address", "nodeType": "ElementaryTypeName", "src": "2044:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "2029:31:2" }, "returnParameters": { "id": 26037, "nodeType": "ParameterList", "parameters": [], "src": "2069:0:2" }, "scope": 26055, "src": "2011:59:2", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "documentation": { "id": 26039, "nodeType": "StructuredDocumentation", "src": "2076:223:2", "text": " @dev Revokes `role` from `account`.\n If `account` had been granted `role`, emits a {RoleRevoked} event.\n Requirements:\n - the caller must have ``role``'s admin role." }, "functionSelector": "d547741f", "id": 26046, "implemented": false, "kind": "function", "modifiers": [], "name": "revokeRole", "nameLocation": "2313:10:2", "nodeType": "FunctionDefinition", "parameters": { "id": 26044, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 26041, "mutability": "mutable", "name": "role", "nameLocation": "2332:4:2", "nodeType": "VariableDeclaration", "scope": 26046, "src": "2324:12:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 26040, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "2324:7:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 26043, "mutability": "mutable", "name": "account", "nameLocation": "2346:7:2", "nodeType": "VariableDeclaration", "scope": 26046, "src": "2338:15:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 26042, "name": "address", "nodeType": "ElementaryTypeName", "src": "2338:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "2323:31:2" }, "returnParameters": { "id": 26045, "nodeType": "ParameterList", "parameters": [], "src": "2363:0:2" }, "scope": 26055, "src": "2304:60:2", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "documentation": { "id": 26047, "nodeType": "StructuredDocumentation", "src": "2370:480:2", "text": " @dev Revokes `role` from the calling account.\n Roles are often managed via {grantRole} and {revokeRole}: this function's\n purpose is to provide a mechanism for accounts to lose their privileges\n if they are compromised (such as when a trusted device is misplaced).\n If the calling account had been granted `role`, emits a {RoleRevoked}\n event.\n Requirements:\n - the caller must be `account`." }, "functionSelector": "36568abe", "id": 26054, "implemented": false, "kind": "function", "modifiers": [], "name": "renounceRole", "nameLocation": "2864:12:2", "nodeType": "FunctionDefinition", "parameters": { "id": 26052, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 26049, "mutability": "mutable", "name": "role", "nameLocation": "2885:4:2", "nodeType": "VariableDeclaration", "scope": 26054, "src": "2877:12:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 26048, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "2877:7:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 26051, "mutability": "mutable", "name": "account", "nameLocation": "2899:7:2", "nodeType": "VariableDeclaration", "scope": 26054, "src": "2891:15:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 26050, "name": "address", "nodeType": "ElementaryTypeName", "src": "2891:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "2876:31:2" }, "returnParameters": { "id": 26053, "nodeType": "ParameterList", "parameters": [], "src": "2916:0:2" }, "scope": 26055, "src": "2855:62:2", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" } ], "scope": 26056, "src": "209:2710:2" } ], "src": "94:2826:2" }, "bytecode": "", "bytecodeSha1": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "compiler": { "evm_version": "istanbul", "optimizer": { "enabled": true, "runs": 200 }, "version": "0.8.2+commit.661d1103" }, "contractName": "IAccessControl", "coverageMap": { "branches": {}, "statements": {} }, "dependencies": [], "deployedBytecode": "", "deployedSourceMap": "", "language": "Solidity", "natspec": { "details": "External interface of AccessControl declared to support ERC165 detection.", "events": { "RoleAdminChanged(bytes32,bytes32,bytes32)": { "details": "Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite {RoleAdminChanged} not being emitted signaling this. _Available since v3.1._" }, "RoleGranted(bytes32,address,address)": { "details": "Emitted when `account` is granted `role`. `sender` is the account that originated the contract call, an admin role bearer except when using {AccessControl-_setupRole}." }, "RoleRevoked(bytes32,address,address)": { "details": "Emitted when `account` is revoked `role`. `sender` is the account that originated the contract call: - if using `revokeRole`, it is the admin role bearer - if using `renounceRole`, it is the role bearer (i.e. `account`)" } }, "kind": "dev", "methods": { "getRoleAdmin(bytes32)": { "details": "Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {AccessControl-_setRoleAdmin}." }, "grantRole(bytes32,address)": { "details": "Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role." }, "hasRole(bytes32,address)": { "details": "Returns `true` if `account` has been granted `role`." }, "renounceRole(bytes32,address)": { "details": "Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`." }, "revokeRole(bytes32,address)": { "details": "Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role." } }, "version": 1 }, "offset": [ 209, 2919 ], "opcodes": "", "pcMap": {}, "sha1": "2b849a2b0daaf0a0bc7173bb5c866ea5bd2e7ba6", "source": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev External interface of AccessControl declared to support ERC165 detection.\n */\ninterface IAccessControl {\n /**\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\n *\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\n * {RoleAdminChanged} not being emitted signaling this.\n *\n * _Available since v3.1._\n */\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\n\n /**\n * @dev Emitted when `account` is granted `role`.\n *\n * `sender` is the account that originated the contract call, an admin role\n * bearer except when using {AccessControl-_setupRole}.\n */\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\n\n /**\n * @dev Emitted when `account` is revoked `role`.\n *\n * `sender` is the account that originated the contract call:\n * - if using `revokeRole`, it is the admin role bearer\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\n */\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\n\n /**\n * @dev Returns `true` if `account` has been granted `role`.\n */\n function hasRole(bytes32 role, address account) external view returns (bool);\n\n /**\n * @dev Returns the admin role that controls `role`. See {grantRole} and\n * {revokeRole}.\n *\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\n */\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\n\n /**\n * @dev Grants `role` to `account`.\n *\n * If `account` had not been already granted `role`, emits a {RoleGranted}\n * event.\n *\n * Requirements:\n *\n * - the caller must have ``role``'s admin role.\n */\n function grantRole(bytes32 role, address account) external;\n\n /**\n * @dev Revokes `role` from `account`.\n *\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\n *\n * Requirements:\n *\n * - the caller must have ``role``'s admin role.\n */\n function revokeRole(bytes32 role, address account) external;\n\n /**\n * @dev Revokes `role` from the calling account.\n *\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\n * purpose is to provide a mechanism for accounts to lose their privileges\n * if they are compromised (such as when a trusted device is misplaced).\n *\n * If the calling account had been granted `role`, emits a {RoleRevoked}\n * event.\n *\n * Requirements:\n *\n * - the caller must be `account`.\n */\n function renounceRole(bytes32 role, address account) external;\n}\n", "sourceMap": "", "sourcePath": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/access/IAccessControl.sol", "type": "interface" }