{ "contractName": "Roles", "abi": [], "metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"Library for managing addresses assigned to a Role.\",\"methods\":{},\"title\":\"Roles\"},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"openzeppelin-solidity/contracts/access/Roles.sol\":\"Roles\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"openzeppelin-solidity/contracts/access/Roles.sol\":{\"keccak256\":\"0xb002c378d7b82a101bd659c341518953ca0919d342c0a400196982c0e7e7bcdb\",\"urls\":[\"bzz-raw://00a788c4631466c220b385bdd100c571d24b2deccd657615cfbcef6cadf669a4\",\"dweb:/ipfs/QmTEwDbjJNxmMNCDMqtuou3dyM8Wtp8Q9NFvn7SAVM7Jf3\"]}},\"version\":1}", "bytecode": "0x60556023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea265627a7a723158208e00ae3792bcab9cd29372c8d0f82b2dcb4d141536d980d8f5e7322a21bd1f6764736f6c63430005100032", "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea265627a7a723158208e00ae3792bcab9cd29372c8d0f82b2dcb4d141536d980d8f5e7322a21bd1f6764736f6c63430005100032", "sourceMap": "108:873:11:-;;132:2:-1;166:7;155:9;146:7;137:37;255:7;249:14;246:1;241:23;235:4;232:33;222:2;;269:9;222:2;293:9;290:1;283:20;323:4;314:7;306:22;347:7;338;331:24", "deployedSourceMap": "108:873:11:-;;;;;;;;", "source": "pragma solidity ^0.5.0;\n\n/**\n * @title Roles\n * @dev Library for managing addresses assigned to a Role.\n */\nlibrary Roles {\n struct Role {\n mapping (address => bool) bearer;\n }\n\n /**\n * @dev Give an account access to this role.\n */\n function add(Role storage role, address account) internal {\n require(!has(role, account), \"Roles: account already has role\");\n role.bearer[account] = true;\n }\n\n /**\n * @dev Remove an account's access to this role.\n */\n function remove(Role storage role, address account) internal {\n require(has(role, account), \"Roles: account does not have role\");\n role.bearer[account] = false;\n }\n\n /**\n * @dev Check if an account has this role.\n * @return bool\n */\n function has(Role storage role, address account) internal view returns (bool) {\n require(account != address(0), \"Roles: account is the zero address\");\n return role.bearer[account];\n }\n}\n", "sourcePath": "openzeppelin-solidity/contracts/access/Roles.sol", "ast": { "absolutePath": "openzeppelin-solidity/contracts/access/Roles.sol", "exportedSymbols": { "Roles": [ 5533 ] }, "id": 5534, "nodeType": "SourceUnit", "nodes": [ { "id": 5454, "literals": [ "solidity", "^", "0.5", ".0" ], "nodeType": "PragmaDirective", "src": "0:23:11" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "library", "documentation": "@title Roles\n@dev Library for managing addresses assigned to a Role.", "fullyImplemented": true, "id": 5533, "linearizedBaseContracts": [ 5533 ], "name": "Roles", "nodeType": "ContractDefinition", "nodes": [ { "canonicalName": "Roles.Role", "id": 5459, "members": [ { "constant": false, "id": 5458, "name": "bearer", "nodeType": "VariableDeclaration", "scope": 5459, "src": "150:32:11", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" }, "typeName": { "id": 5457, "keyType": { "id": 5455, "name": "address", "nodeType": "ElementaryTypeName", "src": "159:7:11", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Mapping", "src": "150:25:11", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" }, "valueType": { "id": 5456, "name": "bool", "nodeType": "ElementaryTypeName", "src": "170:4:11", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } }, "value": null, "visibility": "internal" } ], "name": "Role", "nodeType": "StructDefinition", "scope": 5533, "src": "128:61:11", "visibility": "public" }, { "body": { "id": 5483, "nodeType": "Block", "src": "318:117:11", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 5471, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "!", "prefix": true, "src": "336:19:11", "subExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 5468, "name": "role", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5461, "src": "341:4:11", "typeDescriptions": { "typeIdentifier": "t_struct$_Role_$5459_storage_ptr", "typeString": "struct Roles.Role storage pointer" } }, { "argumentTypes": null, "id": 5469, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5463, "src": "347:7:11", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_struct$_Role_$5459_storage_ptr", "typeString": "struct Roles.Role storage pointer" }, { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 5467, "name": "has", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5532, "src": "337:3:11", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_struct$_Role_$5459_storage_ptr_$_t_address_$returns$_t_bool_$", "typeString": "function (struct Roles.Role storage pointer,address) view returns (bool)" } }, "id": 5470, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "337:18:11", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "argumentTypes": null, "hexValue": "526f6c65733a206163636f756e7420616c72656164792068617320726f6c65", "id": 5472, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "357:33:11", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_0f76c3a3e97a37fcdff532c2741c10933ebf2b769d5475388e30ae4f7155f13a", "typeString": "literal_string \"Roles: account already has role\"" }, "value": "Roles: account already has role" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_0f76c3a3e97a37fcdff532c2741c10933ebf2b769d5475388e30ae4f7155f13a", "typeString": "literal_string \"Roles: account already has role\"" } ], "id": 5466, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 6351, 6352 ], "referencedDeclaration": 6352, "src": "328:7:11", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 5473, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "328:63:11", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 5474, "nodeType": "ExpressionStatement", "src": "328:63:11" }, { "expression": { "argumentTypes": null, "id": 5481, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 5475, "name": "role", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5461, "src": "401:4:11", "typeDescriptions": { "typeIdentifier": "t_struct$_Role_$5459_storage_ptr", "typeString": "struct Roles.Role storage pointer" } }, "id": 5478, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "bearer", "nodeType": "MemberAccess", "referencedDeclaration": 5458, "src": "401:11:11", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" } }, "id": 5479, "indexExpression": { "argumentTypes": null, "id": 5477, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5463, "src": "413:7:11", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "401:20:11", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "74727565", "id": 5480, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "424:4:11", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "true" }, "src": "401:27:11", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 5482, "nodeType": "ExpressionStatement", "src": "401:27:11" } ] }, "documentation": "@dev Give an account access to this role.", "id": 5484, "implemented": true, "kind": "function", "modifiers": [], "name": "add", "nodeType": "FunctionDefinition", "parameters": { "id": 5464, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5461, "name": "role", "nodeType": "VariableDeclaration", "scope": 5484, "src": "273:17:11", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { "typeIdentifier": "t_struct$_Role_$5459_storage_ptr", "typeString": "struct Roles.Role" }, "typeName": { "contractScope": null, "id": 5460, "name": "Role", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 5459, "src": "273:4:11", "typeDescriptions": { "typeIdentifier": "t_struct$_Role_$5459_storage_ptr", "typeString": "struct Roles.Role" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 5463, "name": "account", "nodeType": "VariableDeclaration", "scope": 5484, "src": "292:15:11", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 5462, "name": "address", "nodeType": "ElementaryTypeName", "src": "292:7:11", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "272:36:11" }, "returnParameters": { "id": 5465, "nodeType": "ParameterList", "parameters": [], "src": "318:0:11" }, "scope": 5533, "src": "260:175:11", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, { "body": { "id": 5507, "nodeType": "Block", "src": "571:119:11", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 5493, "name": "role", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5486, "src": "593:4:11", "typeDescriptions": { "typeIdentifier": "t_struct$_Role_$5459_storage_ptr", "typeString": "struct Roles.Role storage pointer" } }, { "argumentTypes": null, "id": 5494, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5488, "src": "599:7:11", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_struct$_Role_$5459_storage_ptr", "typeString": "struct Roles.Role storage pointer" }, { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 5492, "name": "has", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5532, "src": "589:3:11", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_struct$_Role_$5459_storage_ptr_$_t_address_$returns$_t_bool_$", "typeString": "function (struct Roles.Role storage pointer,address) view returns (bool)" } }, "id": 5495, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "589:18:11", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "argumentTypes": null, "hexValue": "526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c65", "id": 5496, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "609:35:11", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_7bd893145ac435f339bb7c288622d270324b7033b011f693aca172f5cbc3c257", "typeString": "literal_string \"Roles: account does not have role\"" }, "value": "Roles: account does not have role" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_7bd893145ac435f339bb7c288622d270324b7033b011f693aca172f5cbc3c257", "typeString": "literal_string \"Roles: account does not have role\"" } ], "id": 5491, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 6351, 6352 ], "referencedDeclaration": 6352, "src": "581:7:11", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 5497, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "581:64:11", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 5498, "nodeType": "ExpressionStatement", "src": "581:64:11" }, { "expression": { "argumentTypes": null, "id": 5505, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 5499, "name": "role", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5486, "src": "655:4:11", "typeDescriptions": { "typeIdentifier": "t_struct$_Role_$5459_storage_ptr", "typeString": "struct Roles.Role storage pointer" } }, "id": 5502, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "bearer", "nodeType": "MemberAccess", "referencedDeclaration": 5458, "src": "655:11:11", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" } }, "id": 5503, "indexExpression": { "argumentTypes": null, "id": 5501, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5488, "src": "667:7:11", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "655:20:11", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "66616c7365", "id": 5504, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "678:5:11", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "false" }, "src": "655:28:11", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 5506, "nodeType": "ExpressionStatement", "src": "655:28:11" } ] }, "documentation": "@dev Remove an account's access to this role.", "id": 5508, "implemented": true, "kind": "function", "modifiers": [], "name": "remove", "nodeType": "FunctionDefinition", "parameters": { "id": 5489, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5486, "name": "role", "nodeType": "VariableDeclaration", "scope": 5508, "src": "526:17:11", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { "typeIdentifier": "t_struct$_Role_$5459_storage_ptr", "typeString": "struct Roles.Role" }, "typeName": { "contractScope": null, "id": 5485, "name": "Role", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 5459, "src": "526:4:11", "typeDescriptions": { "typeIdentifier": "t_struct$_Role_$5459_storage_ptr", "typeString": "struct Roles.Role" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 5488, "name": "account", "nodeType": "VariableDeclaration", "scope": 5508, "src": "545:15:11", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 5487, "name": "address", "nodeType": "ElementaryTypeName", "src": "545:7:11", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "525:36:11" }, "returnParameters": { "id": 5490, "nodeType": "ParameterList", "parameters": [], "src": "571:0:11" }, "scope": 5533, "src": "510:180:11", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, { "body": { "id": 5531, "nodeType": "Block", "src": "857:122:11", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 5522, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 5518, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5512, "src": "875:7:11", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "30", "id": 5520, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "894:1:11", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" } ], "id": 5519, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "886:7:11", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, "id": 5521, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "886:10:11", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "src": "875:21:11", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "argumentTypes": null, "hexValue": "526f6c65733a206163636f756e7420697320746865207a65726f2061646472657373", "id": 5523, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "898:36:11", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_9d214fa89563f4e6456a3929327e54500ea1cde2c0ba9fb2035ec106190d682f", "typeString": "literal_string \"Roles: account is the zero address\"" }, "value": "Roles: account is the zero address" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_9d214fa89563f4e6456a3929327e54500ea1cde2c0ba9fb2035ec106190d682f", "typeString": "literal_string \"Roles: account is the zero address\"" } ], "id": 5517, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 6351, 6352 ], "referencedDeclaration": 6352, "src": "867:7:11", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 5524, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "867:68:11", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 5525, "nodeType": "ExpressionStatement", "src": "867:68:11" }, { "expression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 5526, "name": "role", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5510, "src": "952:4:11", "typeDescriptions": { "typeIdentifier": "t_struct$_Role_$5459_storage_ptr", "typeString": "struct Roles.Role storage pointer" } }, "id": 5527, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "bearer", "nodeType": "MemberAccess", "referencedDeclaration": 5458, "src": "952:11:11", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" } }, "id": 5529, "indexExpression": { "argumentTypes": null, "id": 5528, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5512, "src": "964:7:11", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "952:20:11", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "functionReturnParameters": 5516, "id": 5530, "nodeType": "Return", "src": "945:27:11" } ] }, "documentation": "@dev Check if an account has this role.\n@return bool", "id": 5532, "implemented": true, "kind": "function", "modifiers": [], "name": "has", "nodeType": "FunctionDefinition", "parameters": { "id": 5513, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5510, "name": "role", "nodeType": "VariableDeclaration", "scope": 5532, "src": "792:17:11", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { "typeIdentifier": "t_struct$_Role_$5459_storage_ptr", "typeString": "struct Roles.Role" }, "typeName": { "contractScope": null, "id": 5509, "name": "Role", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 5459, "src": "792:4:11", "typeDescriptions": { "typeIdentifier": "t_struct$_Role_$5459_storage_ptr", "typeString": "struct Roles.Role" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 5512, "name": "account", "nodeType": "VariableDeclaration", "scope": 5532, "src": "811:15:11", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 5511, "name": "address", "nodeType": "ElementaryTypeName", "src": "811:7:11", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "791:36:11" }, "returnParameters": { "id": 5516, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5515, "name": "", "nodeType": "VariableDeclaration", "scope": 5532, "src": "851:4:11", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 5514, "name": "bool", "nodeType": "ElementaryTypeName", "src": "851:4:11", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "850:6:11" }, "scope": 5533, "src": "779:200:11", "stateMutability": "view", "superFunction": null, "visibility": "internal" } ], "scope": 5534, "src": "108:873:11" } ], "src": "0:982:11" }, "legacyAST": { "absolutePath": "openzeppelin-solidity/contracts/access/Roles.sol", "exportedSymbols": { "Roles": [ 5533 ] }, "id": 5534, "nodeType": "SourceUnit", "nodes": [ { "id": 5454, "literals": [ "solidity", "^", "0.5", ".0" ], "nodeType": "PragmaDirective", "src": "0:23:11" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "library", "documentation": "@title Roles\n@dev Library for managing addresses assigned to a Role.", "fullyImplemented": true, "id": 5533, "linearizedBaseContracts": [ 5533 ], "name": "Roles", "nodeType": "ContractDefinition", "nodes": [ { "canonicalName": "Roles.Role", "id": 5459, "members": [ { "constant": false, "id": 5458, "name": "bearer", "nodeType": "VariableDeclaration", "scope": 5459, "src": "150:32:11", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" }, "typeName": { "id": 5457, "keyType": { "id": 5455, "name": "address", "nodeType": "ElementaryTypeName", "src": "159:7:11", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Mapping", "src": "150:25:11", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" }, "valueType": { "id": 5456, "name": "bool", "nodeType": "ElementaryTypeName", "src": "170:4:11", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } }, "value": null, "visibility": "internal" } ], "name": "Role", "nodeType": "StructDefinition", "scope": 5533, "src": "128:61:11", "visibility": "public" }, { "body": { "id": 5483, "nodeType": "Block", "src": "318:117:11", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 5471, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "!", "prefix": true, "src": "336:19:11", "subExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 5468, "name": "role", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5461, "src": "341:4:11", "typeDescriptions": { "typeIdentifier": "t_struct$_Role_$5459_storage_ptr", "typeString": "struct Roles.Role storage pointer" } }, { "argumentTypes": null, "id": 5469, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5463, "src": "347:7:11", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_struct$_Role_$5459_storage_ptr", "typeString": "struct Roles.Role storage pointer" }, { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 5467, "name": "has", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5532, "src": "337:3:11", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_struct$_Role_$5459_storage_ptr_$_t_address_$returns$_t_bool_$", "typeString": "function (struct Roles.Role storage pointer,address) view returns (bool)" } }, "id": 5470, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "337:18:11", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "argumentTypes": null, "hexValue": "526f6c65733a206163636f756e7420616c72656164792068617320726f6c65", "id": 5472, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "357:33:11", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_0f76c3a3e97a37fcdff532c2741c10933ebf2b769d5475388e30ae4f7155f13a", "typeString": "literal_string \"Roles: account already has role\"" }, "value": "Roles: account already has role" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_0f76c3a3e97a37fcdff532c2741c10933ebf2b769d5475388e30ae4f7155f13a", "typeString": "literal_string \"Roles: account already has role\"" } ], "id": 5466, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 6351, 6352 ], "referencedDeclaration": 6352, "src": "328:7:11", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 5473, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "328:63:11", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 5474, "nodeType": "ExpressionStatement", "src": "328:63:11" }, { "expression": { "argumentTypes": null, "id": 5481, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 5475, "name": "role", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5461, "src": "401:4:11", "typeDescriptions": { "typeIdentifier": "t_struct$_Role_$5459_storage_ptr", "typeString": "struct Roles.Role storage pointer" } }, "id": 5478, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "bearer", "nodeType": "MemberAccess", "referencedDeclaration": 5458, "src": "401:11:11", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" } }, "id": 5479, "indexExpression": { "argumentTypes": null, "id": 5477, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5463, "src": "413:7:11", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "401:20:11", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "74727565", "id": 5480, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "424:4:11", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "true" }, "src": "401:27:11", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 5482, "nodeType": "ExpressionStatement", "src": "401:27:11" } ] }, "documentation": "@dev Give an account access to this role.", "id": 5484, "implemented": true, "kind": "function", "modifiers": [], "name": "add", "nodeType": "FunctionDefinition", "parameters": { "id": 5464, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5461, "name": "role", "nodeType": "VariableDeclaration", "scope": 5484, "src": "273:17:11", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { "typeIdentifier": "t_struct$_Role_$5459_storage_ptr", "typeString": "struct Roles.Role" }, "typeName": { "contractScope": null, "id": 5460, "name": "Role", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 5459, "src": "273:4:11", "typeDescriptions": { "typeIdentifier": "t_struct$_Role_$5459_storage_ptr", "typeString": "struct Roles.Role" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 5463, "name": "account", "nodeType": "VariableDeclaration", "scope": 5484, "src": "292:15:11", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 5462, "name": "address", "nodeType": "ElementaryTypeName", "src": "292:7:11", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "272:36:11" }, "returnParameters": { "id": 5465, "nodeType": "ParameterList", "parameters": [], "src": "318:0:11" }, "scope": 5533, "src": "260:175:11", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, { "body": { "id": 5507, "nodeType": "Block", "src": "571:119:11", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 5493, "name": "role", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5486, "src": "593:4:11", "typeDescriptions": { "typeIdentifier": "t_struct$_Role_$5459_storage_ptr", "typeString": "struct Roles.Role storage pointer" } }, { "argumentTypes": null, "id": 5494, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5488, "src": "599:7:11", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_struct$_Role_$5459_storage_ptr", "typeString": "struct Roles.Role storage pointer" }, { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 5492, "name": "has", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5532, "src": "589:3:11", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_struct$_Role_$5459_storage_ptr_$_t_address_$returns$_t_bool_$", "typeString": "function (struct Roles.Role storage pointer,address) view returns (bool)" } }, "id": 5495, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "589:18:11", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "argumentTypes": null, "hexValue": "526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c65", "id": 5496, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "609:35:11", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_7bd893145ac435f339bb7c288622d270324b7033b011f693aca172f5cbc3c257", "typeString": "literal_string \"Roles: account does not have role\"" }, "value": "Roles: account does not have role" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_7bd893145ac435f339bb7c288622d270324b7033b011f693aca172f5cbc3c257", "typeString": "literal_string \"Roles: account does not have role\"" } ], "id": 5491, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 6351, 6352 ], "referencedDeclaration": 6352, "src": "581:7:11", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 5497, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "581:64:11", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 5498, "nodeType": "ExpressionStatement", "src": "581:64:11" }, { "expression": { "argumentTypes": null, "id": 5505, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 5499, "name": "role", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5486, "src": "655:4:11", "typeDescriptions": { "typeIdentifier": "t_struct$_Role_$5459_storage_ptr", "typeString": "struct Roles.Role storage pointer" } }, "id": 5502, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "bearer", "nodeType": "MemberAccess", "referencedDeclaration": 5458, "src": "655:11:11", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" } }, "id": 5503, "indexExpression": { "argumentTypes": null, "id": 5501, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5488, "src": "667:7:11", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "655:20:11", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "66616c7365", "id": 5504, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "678:5:11", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "false" }, "src": "655:28:11", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 5506, "nodeType": "ExpressionStatement", "src": "655:28:11" } ] }, "documentation": "@dev Remove an account's access to this role.", "id": 5508, "implemented": true, "kind": "function", "modifiers": [], "name": "remove", "nodeType": "FunctionDefinition", "parameters": { "id": 5489, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5486, "name": "role", "nodeType": "VariableDeclaration", "scope": 5508, "src": "526:17:11", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { "typeIdentifier": "t_struct$_Role_$5459_storage_ptr", "typeString": "struct Roles.Role" }, "typeName": { "contractScope": null, "id": 5485, "name": "Role", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 5459, "src": "526:4:11", "typeDescriptions": { "typeIdentifier": "t_struct$_Role_$5459_storage_ptr", "typeString": "struct Roles.Role" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 5488, "name": "account", "nodeType": "VariableDeclaration", "scope": 5508, "src": "545:15:11", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 5487, "name": "address", "nodeType": "ElementaryTypeName", "src": "545:7:11", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "525:36:11" }, "returnParameters": { "id": 5490, "nodeType": "ParameterList", "parameters": [], "src": "571:0:11" }, "scope": 5533, "src": "510:180:11", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, { "body": { "id": 5531, "nodeType": "Block", "src": "857:122:11", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 5522, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 5518, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5512, "src": "875:7:11", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "30", "id": 5520, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "894:1:11", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" } ], "id": 5519, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "886:7:11", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, "id": 5521, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "886:10:11", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "src": "875:21:11", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "argumentTypes": null, "hexValue": "526f6c65733a206163636f756e7420697320746865207a65726f2061646472657373", "id": 5523, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "898:36:11", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_9d214fa89563f4e6456a3929327e54500ea1cde2c0ba9fb2035ec106190d682f", "typeString": "literal_string \"Roles: account is the zero address\"" }, "value": "Roles: account is the zero address" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_9d214fa89563f4e6456a3929327e54500ea1cde2c0ba9fb2035ec106190d682f", "typeString": "literal_string \"Roles: account is the zero address\"" } ], "id": 5517, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 6351, 6352 ], "referencedDeclaration": 6352, "src": "867:7:11", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 5524, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "867:68:11", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 5525, "nodeType": "ExpressionStatement", "src": "867:68:11" }, { "expression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 5526, "name": "role", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5510, "src": "952:4:11", "typeDescriptions": { "typeIdentifier": "t_struct$_Role_$5459_storage_ptr", "typeString": "struct Roles.Role storage pointer" } }, "id": 5527, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "bearer", "nodeType": "MemberAccess", "referencedDeclaration": 5458, "src": "952:11:11", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" } }, "id": 5529, "indexExpression": { "argumentTypes": null, "id": 5528, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5512, "src": "964:7:11", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "952:20:11", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "functionReturnParameters": 5516, "id": 5530, "nodeType": "Return", "src": "945:27:11" } ] }, "documentation": "@dev Check if an account has this role.\n@return bool", "id": 5532, "implemented": true, "kind": "function", "modifiers": [], "name": "has", "nodeType": "FunctionDefinition", "parameters": { "id": 5513, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5510, "name": "role", "nodeType": "VariableDeclaration", "scope": 5532, "src": "792:17:11", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { "typeIdentifier": "t_struct$_Role_$5459_storage_ptr", "typeString": "struct Roles.Role" }, "typeName": { "contractScope": null, "id": 5509, "name": "Role", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 5459, "src": "792:4:11", "typeDescriptions": { "typeIdentifier": "t_struct$_Role_$5459_storage_ptr", "typeString": "struct Roles.Role" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 5512, "name": "account", "nodeType": "VariableDeclaration", "scope": 5532, "src": "811:15:11", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 5511, "name": "address", "nodeType": "ElementaryTypeName", "src": "811:7:11", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "791:36:11" }, "returnParameters": { "id": 5516, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5515, "name": "", "nodeType": "VariableDeclaration", "scope": 5532, "src": "851:4:11", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 5514, "name": "bool", "nodeType": "ElementaryTypeName", "src": "851:4:11", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "850:6:11" }, "scope": 5533, "src": "779:200:11", "stateMutability": "view", "superFunction": null, "visibility": "internal" } ], "scope": 5534, "src": "108:873:11" } ], "src": "0:982:11" }, "compiler": { "name": "solc", "version": "0.5.16+commit.9c3226ce.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.1.0", "updatedAt": "2020-04-13T15:29:57.225Z", "devdoc": { "details": "Library for managing addresses assigned to a Role.", "methods": {}, "title": "Roles" }, "userdoc": { "methods": {} } }