@alpsfinance/core
Version:
This is the official Alps Finance smart contract repository.
1,222 lines (1,221 loc) • 76.6 kB
JSON
{
"contractName": "IAccessControl",
"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"
},
{
"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"
}
],
"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": "revokeRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "renounceRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.8.11+commit.d7f03943\"},\"language\":\"Solidity\",\"output\":{\"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\"}],\"devdoc\":{\"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},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@openzeppelin/contracts/access/IAccessControl.sol\":\"IAccessControl\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/access/IAccessControl.sol\":{\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://bb2c137c343ef0c4c7ce7b18c1d108afdc9d315a04e48307288d2d05adcbde3a\",\"dweb:/ipfs/QmUxhrAQM3MM3FF5j7AtcXLXguWCJBHJ14BRdVtuoQc8Fh\"]}},\"version\":1}",
"bytecode": "0x",
"deployedBytecode": "0x",
"immutableReferences": {},
"generatedSources": [],
"deployedGeneratedSources": [],
"sourceMap": "",
"deployedSourceMap": "",
"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",
"sourcePath": "@openzeppelin/contracts/access/IAccessControl.sol",
"ast": {
"absolutePath": "@openzeppelin/contracts/access/IAccessControl.sol",
"exportedSymbols": {
"IAccessControl": [
427
]
},
"id": 428,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 356,
"literals": [
"solidity",
"^",
"0.8",
".0"
],
"nodeType": "PragmaDirective",
"src": "94:23:2"
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "IAccessControl",
"contractDependencies": [],
"contractKind": "interface",
"documentation": {
"id": 357,
"nodeType": "StructuredDocumentation",
"src": "119:89:2",
"text": " @dev External interface of AccessControl declared to support ERC165 detection."
},
"fullyImplemented": false,
"id": 427,
"linearizedBaseContracts": [
427
],
"name": "IAccessControl",
"nameLocation": "219:14:2",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": {
"id": 358,
"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": 366,
"name": "RoleAdminChanged",
"nameLocation": "543:16:2",
"nodeType": "EventDefinition",
"parameters": {
"id": 365,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 360,
"indexed": true,
"mutability": "mutable",
"name": "role",
"nameLocation": "576:4:2",
"nodeType": "VariableDeclaration",
"scope": 366,
"src": "560:20:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 359,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "560:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 362,
"indexed": true,
"mutability": "mutable",
"name": "previousAdminRole",
"nameLocation": "598:17:2",
"nodeType": "VariableDeclaration",
"scope": 366,
"src": "582:33:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 361,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "582:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 364,
"indexed": true,
"mutability": "mutable",
"name": "newAdminRole",
"nameLocation": "633:12:2",
"nodeType": "VariableDeclaration",
"scope": 366,
"src": "617:28:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 363,
"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": 367,
"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": 375,
"name": "RoleGranted",
"nameLocation": "876:11:2",
"nodeType": "EventDefinition",
"parameters": {
"id": 374,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 369,
"indexed": true,
"mutability": "mutable",
"name": "role",
"nameLocation": "904:4:2",
"nodeType": "VariableDeclaration",
"scope": 375,
"src": "888:20:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 368,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "888:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 371,
"indexed": true,
"mutability": "mutable",
"name": "account",
"nameLocation": "926:7:2",
"nodeType": "VariableDeclaration",
"scope": 375,
"src": "910:23:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 370,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "910:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 373,
"indexed": true,
"mutability": "mutable",
"name": "sender",
"nameLocation": "951:6:2",
"nodeType": "VariableDeclaration",
"scope": 375,
"src": "935:22:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 372,
"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": 376,
"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": 384,
"name": "RoleRevoked",
"nameLocation": "1251:11:2",
"nodeType": "EventDefinition",
"parameters": {
"id": 383,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 378,
"indexed": true,
"mutability": "mutable",
"name": "role",
"nameLocation": "1279:4:2",
"nodeType": "VariableDeclaration",
"scope": 384,
"src": "1263:20:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 377,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1263:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 380,
"indexed": true,
"mutability": "mutable",
"name": "account",
"nameLocation": "1301:7:2",
"nodeType": "VariableDeclaration",
"scope": 384,
"src": "1285:23:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 379,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1285:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 382,
"indexed": true,
"mutability": "mutable",
"name": "sender",
"nameLocation": "1326:6:2",
"nodeType": "VariableDeclaration",
"scope": 384,
"src": "1310:22:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 381,
"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": 385,
"nodeType": "StructuredDocumentation",
"src": "1340:76:2",
"text": " @dev Returns `true` if `account` has been granted `role`."
},
"functionSelector": "91d14854",
"id": 394,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "hasRole",
"nameLocation": "1430:7:2",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 390,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 387,
"mutability": "mutable",
"name": "role",
"nameLocation": "1446:4:2",
"nodeType": "VariableDeclaration",
"scope": 394,
"src": "1438:12:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 386,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1438:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 389,
"mutability": "mutable",
"name": "account",
"nameLocation": "1460:7:2",
"nodeType": "VariableDeclaration",
"scope": 394,
"src": "1452:15:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 388,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1452:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "1437:31:2"
},
"returnParameters": {
"id": 393,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 392,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 394,
"src": "1492:4:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 391,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1492:4:2",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "1491:6:2"
},
"scope": 427,
"src": "1421:77:2",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 395,
"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": 402,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getRoleAdmin",
"nameLocation": "1702:12:2",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 398,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 397,
"mutability": "mutable",
"name": "role",
"nameLocation": "1723:4:2",
"nodeType": "VariableDeclaration",
"scope": 402,
"src": "1715:12:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 396,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1715:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "1714:14:2"
},
"returnParameters": {
"id": 401,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 400,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 402,
"src": "1752:7:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 399,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1752:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "1751:9:2"
},
"scope": 427,
"src": "1693:68:2",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 403,
"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": 410,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "grantRole",
"nameLocation": "2020:9:2",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 408,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 405,
"mutability": "mutable",
"name": "role",
"nameLocation": "2038:4:2",
"nodeType": "VariableDeclaration",
"scope": 410,
"src": "2030:12:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 404,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2030:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 407,
"mutability": "mutable",
"name": "account",
"nameLocation": "2052:7:2",
"nodeType": "VariableDeclaration",
"scope": 410,
"src": "2044:15:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 406,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2044:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "2029:31:2"
},
"returnParameters": {
"id": 409,
"nodeType": "ParameterList",
"parameters": [],
"src": "2069:0:2"
},
"scope": 427,
"src": "2011:59:2",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 411,
"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": 418,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "revokeRole",
"nameLocation": "2313:10:2",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 416,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 413,
"mutability": "mutable",
"name": "role",
"nameLocation": "2332:4:2",
"nodeType": "VariableDeclaration",
"scope": 418,
"src": "2324:12:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 412,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2324:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 415,
"mutability": "mutable",
"name": "account",
"nameLocation": "2346:7:2",
"nodeType": "VariableDeclaration",
"scope": 418,
"src": "2338:15:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 414,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2338:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "2323:31:2"
},
"returnParameters": {
"id": 417,
"nodeType": "ParameterList",
"parameters": [],
"src": "2363:0:2"
},
"scope": 427,
"src": "2304:60:2",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 419,
"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": 426,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "renounceRole",
"nameLocation": "2864:12:2",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 424,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 421,
"mutability": "mutable",
"name": "role",
"nameLocation": "2885:4:2",
"nodeType": "VariableDeclaration",
"scope": 426,
"src": "2877:12:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 420,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2877:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 423,
"mutability": "mutable",
"name": "account",
"nameLocation": "2899:7:2",
"nodeType": "VariableDeclaration",
"scope": 426,
"src": "2891:15:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 422,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2891:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "2876:31:2"
},
"returnParameters": {
"id": 425,
"nodeType": "ParameterList",
"parameters": [],
"src": "2916:0:2"
},
"scope": 427,
"src": "2855:62:2",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"scope": 428,
"src": "209:2710:2",
"usedErrors": []
}
],
"src": "94:2826:2"
},
"legacyAST": {
"absolutePath": "@openzeppelin/contracts/access/IAccessControl.sol",
"exportedSymbols": {
"IAccessControl": [
427
]
},
"id": 428,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 356,
"literals": [
"solidity",
"^",
"0.8",
".0"
],
"nodeType": "PragmaDirective",
"src": "94:23:2"
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "IAccessControl",
"contractDependencies": [],
"contractKind": "interface",
"documentation": {
"id": 357,
"nodeType": "StructuredDocumentation",
"src": "119:89:2",
"text": " @dev External interface of AccessControl declared to support ERC165 detection."
},
"fullyImplemented": false,
"id": 427,
"linearizedBaseContracts": [
427
],
"name": "IAccessControl",
"nameLocation": "219:14:2",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": {
"id": 358,
"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": 366,
"name": "RoleAdminChanged",
"nameLocation": "543:16:2",
"nodeType": "EventDefinition",
"parameters": {
"id": 365,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 360,
"indexed": true,
"mutability": "mutable",
"name": "role",
"nameLocation": "576:4:2",
"nodeType": "VariableDeclaration",
"scope": 366,
"src": "560:20:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 359,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "560:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 362,
"indexed": true,
"mutability": "mutable",
"name": "previousAdminRole",
"nameLocation": "598:17:2",
"nodeType": "VariableDeclaration",
"scope": 366,
"src": "582:33:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 361,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "582:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 364,
"indexed": true,
"mutability": "mutable",
"name": "newAdminRole",
"nameLocation": "633:12:2",
"nodeType": "VariableDeclaration",
"scope": 366,
"src": "617:28:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 363,
"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": 367,
"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": 375,
"name": "RoleGranted",
"nameLocation": "876:11:2",
"nodeType": "EventDefinition",
"parameters": {
"id": 374,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 369,
"indexed": true,
"mutability": "mutable",
"name": "role",
"nameLocation": "904:4:2",
"nodeType": "VariableDeclaration",
"scope": 375,
"src": "888:20:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 368,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "888:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},