UNPKG

@daostack/access_control

Version:

Capability-based access control for Ethereum smart contracts.

285 lines 9.27 kB
{ "contractName": "ERC165", "abi": [ { "constant": true, "inputs": [ { "name": "_interfaceId", "type": "bytes4" } ], "name": "supportsInterface", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function" } ], "bytecode": "0x", "deployedBytecode": "0x", "sourceMap": "", "deployedSourceMap": "", "source": "pragma solidity ^0.4.24;\n\n\n/**\n * @title ERC165\n * @dev https://github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md\n */\ninterface ERC165 {\n\n /**\n * @notice Query if a contract implements an interface\n * @param _interfaceId The interface identifier, as specified in ERC-165\n * @dev Interface identification is specified in ERC-165. This function\n * uses less than 30,000 gas.\n */\n function supportsInterface(bytes4 _interfaceId)\n external\n view\n returns (bool);\n}\n", "sourcePath": "openzeppelin-solidity/contracts/introspection/ERC165.sol", "ast": { "absolutePath": "openzeppelin-solidity/contracts/introspection/ERC165.sol", "exportedSymbols": { "ERC165": [ 1353 ] }, "id": 1354, "nodeType": "SourceUnit", "nodes": [ { "id": 1345, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:9" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": "@title ERC165\n@dev https://github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md", "fullyImplemented": false, "id": 1353, "linearizedBaseContracts": [ 1353 ], "name": "ERC165", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": "@notice Query if a contract implements an interface\n@param _interfaceId The interface identifier, as specified in ERC-165\n@dev Interface identification is specified in ERC-165. This function\nuses less than 30,000 gas.", "id": 1352, "implemented": false, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "supportsInterface", "nodeType": "FunctionDefinition", "parameters": { "id": 1348, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1347, "name": "_interfaceId", "nodeType": "VariableDeclaration", "scope": 1352, "src": "420:19:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 1346, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "420:6:9", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "value": null, "visibility": "internal" } ], "src": "419:21:9" }, "payable": false, "returnParameters": { "id": 1351, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1350, "name": "", "nodeType": "VariableDeclaration", "scope": 1352, "src": "476:4:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 1349, "name": "bool", "nodeType": "ElementaryTypeName", "src": "476:4:9", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "475:6:9" }, "scope": 1353, "src": "393:89:9", "stateMutability": "view", "superFunction": null, "visibility": "external" } ], "scope": 1354, "src": "121:363:9" } ], "src": "0:485:9" }, "legacyAST": { "absolutePath": "openzeppelin-solidity/contracts/introspection/ERC165.sol", "exportedSymbols": { "ERC165": [ 1353 ] }, "id": 1354, "nodeType": "SourceUnit", "nodes": [ { "id": 1345, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:9" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": "@title ERC165\n@dev https://github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md", "fullyImplemented": false, "id": 1353, "linearizedBaseContracts": [ 1353 ], "name": "ERC165", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": "@notice Query if a contract implements an interface\n@param _interfaceId The interface identifier, as specified in ERC-165\n@dev Interface identification is specified in ERC-165. This function\nuses less than 30,000 gas.", "id": 1352, "implemented": false, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "supportsInterface", "nodeType": "FunctionDefinition", "parameters": { "id": 1348, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1347, "name": "_interfaceId", "nodeType": "VariableDeclaration", "scope": 1352, "src": "420:19:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 1346, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "420:6:9", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "value": null, "visibility": "internal" } ], "src": "419:21:9" }, "payable": false, "returnParameters": { "id": 1351, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1350, "name": "", "nodeType": "VariableDeclaration", "scope": 1352, "src": "476:4:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 1349, "name": "bool", "nodeType": "ElementaryTypeName", "src": "476:4:9", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "475:6:9" }, "scope": 1353, "src": "393:89:9", "stateMutability": "view", "superFunction": null, "visibility": "external" } ], "scope": 1354, "src": "121:363:9" } ], "src": "0:485:9" }, "compiler": { "name": "solc", "version": "0.4.24+commit.e67f0147.Emscripten.clang" }, "networks": {}, "schemaVersion": "2.0.1", "updatedAt": "2018-10-30T22:33:40.615Z" }