becrypto/build/contracts/IAccessControl.json
2022-01-27 19:13:37 +08:00

1918 lines
75 KiB
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.10+commit.fc410830\"},\"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\":false,\"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": [
506
]
},
"id": 507,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 435,
"literals": [
"solidity",
"^",
"0.8",
".0"
],
"nodeType": "PragmaDirective",
"src": "94:23:2"
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "IAccessControl",
"contractDependencies": [],
"contractKind": "interface",
"documentation": {
"id": 436,
"nodeType": "StructuredDocumentation",
"src": "119:89:2",
"text": " @dev External interface of AccessControl declared to support ERC165 detection."
},
"fullyImplemented": false,
"id": 506,
"linearizedBaseContracts": [
506
],
"name": "IAccessControl",
"nameLocation": "219:14:2",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": {
"id": 437,
"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": 445,
"name": "RoleAdminChanged",
"nameLocation": "543:16:2",
"nodeType": "EventDefinition",
"parameters": {
"id": 444,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 439,
"indexed": true,
"mutability": "mutable",
"name": "role",
"nameLocation": "576:4:2",
"nodeType": "VariableDeclaration",
"scope": 445,
"src": "560:20:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 438,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "560:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 441,
"indexed": true,
"mutability": "mutable",
"name": "previousAdminRole",
"nameLocation": "598:17:2",
"nodeType": "VariableDeclaration",
"scope": 445,
"src": "582:33:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 440,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "582:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 443,
"indexed": true,
"mutability": "mutable",
"name": "newAdminRole",
"nameLocation": "633:12:2",
"nodeType": "VariableDeclaration",
"scope": 445,
"src": "617:28:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 442,
"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": 446,
"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": 454,
"name": "RoleGranted",
"nameLocation": "876:11:2",
"nodeType": "EventDefinition",
"parameters": {
"id": 453,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 448,
"indexed": true,
"mutability": "mutable",
"name": "role",
"nameLocation": "904:4:2",
"nodeType": "VariableDeclaration",
"scope": 454,
"src": "888:20:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 447,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "888:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 450,
"indexed": true,
"mutability": "mutable",
"name": "account",
"nameLocation": "926:7:2",
"nodeType": "VariableDeclaration",
"scope": 454,
"src": "910:23:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 449,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "910:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 452,
"indexed": true,
"mutability": "mutable",
"name": "sender",
"nameLocation": "951:6:2",
"nodeType": "VariableDeclaration",
"scope": 454,
"src": "935:22:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 451,
"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": 455,
"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": 463,
"name": "RoleRevoked",
"nameLocation": "1251:11:2",
"nodeType": "EventDefinition",
"parameters": {
"id": 462,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 457,
"indexed": true,
"mutability": "mutable",
"name": "role",
"nameLocation": "1279:4:2",
"nodeType": "VariableDeclaration",
"scope": 463,
"src": "1263:20:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 456,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1263:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 459,
"indexed": true,
"mutability": "mutable",
"name": "account",
"nameLocation": "1301:7:2",
"nodeType": "VariableDeclaration",
"scope": 463,
"src": "1285:23:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 458,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1285:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 461,
"indexed": true,
"mutability": "mutable",
"name": "sender",
"nameLocation": "1326:6:2",
"nodeType": "VariableDeclaration",
"scope": 463,
"src": "1310:22:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 460,
"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": 464,
"nodeType": "StructuredDocumentation",
"src": "1340:76:2",
"text": " @dev Returns `true` if `account` has been granted `role`."
},
"functionSelector": "91d14854",
"id": 473,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "hasRole",
"nameLocation": "1430:7:2",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 469,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 466,
"mutability": "mutable",
"name": "role",
"nameLocation": "1446:4:2",
"nodeType": "VariableDeclaration",
"scope": 473,
"src": "1438:12:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 465,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1438:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 468,
"mutability": "mutable",
"name": "account",
"nameLocation": "1460:7:2",
"nodeType": "VariableDeclaration",
"scope": 473,
"src": "1452:15:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 467,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1452:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "1437:31:2"
},
"returnParameters": {
"id": 472,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 471,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 473,
"src": "1492:4:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 470,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1492:4:2",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "1491:6:2"
},
"scope": 506,
"src": "1421:77:2",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 474,
"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": 481,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getRoleAdmin",
"nameLocation": "1702:12:2",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 477,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 476,
"mutability": "mutable",
"name": "role",
"nameLocation": "1723:4:2",
"nodeType": "VariableDeclaration",
"scope": 481,
"src": "1715:12:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 475,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1715:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "1714:14:2"
},
"returnParameters": {
"id": 480,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 479,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 481,
"src": "1752:7:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 478,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1752:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "1751:9:2"
},
"scope": 506,
"src": "1693:68:2",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 482,
"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": 489,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "grantRole",
"nameLocation": "2020:9:2",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 487,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 484,
"mutability": "mutable",
"name": "role",
"nameLocation": "2038:4:2",
"nodeType": "VariableDeclaration",
"scope": 489,
"src": "2030:12:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 483,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2030:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 486,
"mutability": "mutable",
"name": "account",
"nameLocation": "2052:7:2",
"nodeType": "VariableDeclaration",
"scope": 489,
"src": "2044:15:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 485,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2044:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "2029:31:2"
},
"returnParameters": {
"id": 488,
"nodeType": "ParameterList",
"parameters": [],
"src": "2069:0:2"
},
"scope": 506,
"src": "2011:59:2",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 490,
"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": 497,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "revokeRole",
"nameLocation": "2313:10:2",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 495,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 492,
"mutability": "mutable",
"name": "role",
"nameLocation": "2332:4:2",
"nodeType": "VariableDeclaration",
"scope": 497,
"src": "2324:12:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 491,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2324:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 494,
"mutability": "mutable",
"name": "account",
"nameLocation": "2346:7:2",
"nodeType": "VariableDeclaration",
"scope": 497,
"src": "2338:15:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 493,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2338:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "2323:31:2"
},
"returnParameters": {
"id": 496,
"nodeType": "ParameterList",
"parameters": [],
"src": "2363:0:2"
},
"scope": 506,
"src": "2304:60:2",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 498,
"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": 505,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "renounceRole",
"nameLocation": "2864:12:2",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 503,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 500,
"mutability": "mutable",
"name": "role",
"nameLocation": "2885:4:2",
"nodeType": "VariableDeclaration",
"scope": 505,
"src": "2877:12:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 499,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2877:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 502,
"mutability": "mutable",
"name": "account",
"nameLocation": "2899:7:2",
"nodeType": "VariableDeclaration",
"scope": 505,
"src": "2891:15:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 501,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2891:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "2876:31:2"
},
"returnParameters": {
"id": 504,
"nodeType": "ParameterList",
"parameters": [],
"src": "2916:0:2"
},
"scope": 506,
"src": "2855:62:2",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"scope": 507,
"src": "209:2710:2",
"usedErrors": []
}
],
"src": "94:2826:2"
},
"legacyAST": {
"absolutePath": "@openzeppelin/contracts/access/IAccessControl.sol",
"exportedSymbols": {
"IAccessControl": [
506
]
},
"id": 507,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 435,
"literals": [
"solidity",
"^",
"0.8",
".0"
],
"nodeType": "PragmaDirective",
"src": "94:23:2"
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "IAccessControl",
"contractDependencies": [],
"contractKind": "interface",
"documentation": {
"id": 436,
"nodeType": "StructuredDocumentation",
"src": "119:89:2",
"text": " @dev External interface of AccessControl declared to support ERC165 detection."
},
"fullyImplemented": false,
"id": 506,
"linearizedBaseContracts": [
506
],
"name": "IAccessControl",
"nameLocation": "219:14:2",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": {
"id": 437,
"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": 445,
"name": "RoleAdminChanged",
"nameLocation": "543:16:2",
"nodeType": "EventDefinition",
"parameters": {
"id": 444,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 439,
"indexed": true,
"mutability": "mutable",
"name": "role",
"nameLocation": "576:4:2",
"nodeType": "VariableDeclaration",
"scope": 445,
"src": "560:20:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 438,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "560:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 441,
"indexed": true,
"mutability": "mutable",
"name": "previousAdminRole",
"nameLocation": "598:17:2",
"nodeType": "VariableDeclaration",
"scope": 445,
"src": "582:33:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 440,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "582:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 443,
"indexed": true,
"mutability": "mutable",
"name": "newAdminRole",
"nameLocation": "633:12:2",
"nodeType": "VariableDeclaration",
"scope": 445,
"src": "617:28:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 442,
"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": 446,
"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": 454,
"name": "RoleGranted",
"nameLocation": "876:11:2",
"nodeType": "EventDefinition",
"parameters": {
"id": 453,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 448,
"indexed": true,
"mutability": "mutable",
"name": "role",
"nameLocation": "904:4:2",
"nodeType": "VariableDeclaration",
"scope": 454,
"src": "888:20:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 447,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "888:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 450,
"indexed": true,
"mutability": "mutable",
"name": "account",
"nameLocation": "926:7:2",
"nodeType": "VariableDeclaration",
"scope": 454,
"src": "910:23:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 449,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "910:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 452,
"indexed": true,
"mutability": "mutable",
"name": "sender",
"nameLocation": "951:6:2",
"nodeType": "VariableDeclaration",
"scope": 454,
"src": "935:22:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 451,
"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": 455,
"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": 463,
"name": "RoleRevoked",
"nameLocation": "1251:11:2",
"nodeType": "EventDefinition",
"parameters": {
"id": 462,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 457,
"indexed": true,
"mutability": "mutable",
"name": "role",
"nameLocation": "1279:4:2",
"nodeType": "VariableDeclaration",
"scope": 463,
"src": "1263:20:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 456,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1263:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 459,
"indexed": true,
"mutability": "mutable",
"name": "account",
"nameLocation": "1301:7:2",
"nodeType": "VariableDeclaration",
"scope": 463,
"src": "1285:23:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 458,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1285:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 461,
"indexed": true,
"mutability": "mutable",
"name": "sender",
"nameLocation": "1326:6:2",
"nodeType": "VariableDeclaration",
"scope": 463,
"src": "1310:22:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 460,
"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": 464,
"nodeType": "StructuredDocumentation",
"src": "1340:76:2",
"text": " @dev Returns `true` if `account` has been granted `role`."
},
"functionSelector": "91d14854",
"id": 473,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "hasRole",
"nameLocation": "1430:7:2",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 469,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 466,
"mutability": "mutable",
"name": "role",
"nameLocation": "1446:4:2",
"nodeType": "VariableDeclaration",
"scope": 473,
"src": "1438:12:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 465,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1438:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 468,
"mutability": "mutable",
"name": "account",
"nameLocation": "1460:7:2",
"nodeType": "VariableDeclaration",
"scope": 473,
"src": "1452:15:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 467,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1452:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "1437:31:2"
},
"returnParameters": {
"id": 472,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 471,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 473,
"src": "1492:4:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 470,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1492:4:2",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "1491:6:2"
},
"scope": 506,
"src": "1421:77:2",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 474,
"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": 481,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getRoleAdmin",
"nameLocation": "1702:12:2",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 477,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 476,
"mutability": "mutable",
"name": "role",
"nameLocation": "1723:4:2",
"nodeType": "VariableDeclaration",
"scope": 481,
"src": "1715:12:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 475,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1715:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "1714:14:2"
},
"returnParameters": {
"id": 480,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 479,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 481,
"src": "1752:7:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 478,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1752:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "1751:9:2"
},
"scope": 506,
"src": "1693:68:2",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 482,
"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": 489,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "grantRole",
"nameLocation": "2020:9:2",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 487,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 484,
"mutability": "mutable",
"name": "role",
"nameLocation": "2038:4:2",
"nodeType": "VariableDeclaration",
"scope": 489,
"src": "2030:12:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 483,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2030:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 486,
"mutability": "mutable",
"name": "account",
"nameLocation": "2052:7:2",
"nodeType": "VariableDeclaration",
"scope": 489,
"src": "2044:15:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 485,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2044:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "2029:31:2"
},
"returnParameters": {
"id": 488,
"nodeType": "ParameterList",
"parameters": [],
"src": "2069:0:2"
},
"scope": 506,
"src": "2011:59:2",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 490,
"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": 497,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "revokeRole",
"nameLocation": "2313:10:2",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 495,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 492,
"mutability": "mutable",
"name": "role",
"nameLocation": "2332:4:2",
"nodeType": "VariableDeclaration",
"scope": 497,
"src": "2324:12:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 491,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2324:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 494,
"mutability": "mutable",
"name": "account",
"nameLocation": "2346:7:2",
"nodeType": "VariableDeclaration",
"scope": 497,
"src": "2338:15:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 493,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2338:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "2323:31:2"
},
"returnParameters": {
"id": 496,
"nodeType": "ParameterList",
"parameters": [],
"src": "2363:0:2"
},
"scope": 506,
"src": "2304:60:2",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 498,
"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": 505,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "renounceRole",
"nameLocation": "2864:12:2",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 503,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 500,
"mutability": "mutable",
"name": "role",
"nameLocation": "2885:4:2",
"nodeType": "VariableDeclaration",
"scope": 505,
"src": "2877:12:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 499,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2877:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 502,
"mutability": "mutable",
"name": "account",
"nameLocation": "2899:7:2",
"nodeType": "VariableDeclaration",
"scope": 505,
"src": "2891:15:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 501,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2891:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "2876:31:2"
},
"returnParameters": {
"id": 504,
"nodeType": "ParameterList",
"parameters": [],
"src": "2916:0:2"
},
"scope": 506,
"src": "2855:62:2",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"scope": 507,
"src": "209:2710:2",
"usedErrors": []
}
],
"src": "94:2826:2"
},
"compiler": {
"name": "solc",
"version": "0.8.10+commit.fc410830.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.4.4",
"updatedAt": "2022-01-27T10:56:46.903Z",
"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
}
}