UNPKG

jcc-solidity-utils

Version:
303 lines 10.1 kB
{ "contractName": "IERC165", "abi": [ { "constant": true, "inputs": [ { "name": "_interfaceID", "type": "bytes4" } ], "name": "supportsInterface", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function" } ], "metadata": "", "bytecode": "0x", "deployedBytecode": "0x", "sourceMap": "", "deployedSourceMap": "", "source": "pragma solidity >=0.4.24;\n\n/**\n * @dev A standard for detecting smart contract interfaces. See https://goo.gl/cxQCse.\n * get interfaceID in geth use follow command:\n * web3.sha3(\"supportsInterface(bytes4)\", ture)\n * web3.sha3(\"yourFunction(uint256,address)\", ture)\n */\ninterface IERC165 {\n /**\n * @dev Checks if the smart contract includes a specific interface.\n * @notice This function uses less than 30,000 gas.\n * @param _interfaceID The interface identifier, as specified in ERC-165.\n */\n function supportsInterface(bytes4 _interfaceID) external view returns (bool);\n}\n", "sourcePath": "/Users/chtian/Documents/01_work/01_develope/jcc/jcc-solidity-utils/contracts/interface/IERC165.sol", "ast": { "absolutePath": "/Users/chtian/Documents/01_work/01_develope/jcc/jcc-solidity-utils/contracts/interface/IERC165.sol", "exportedSymbols": { "IERC165": [ 906 ] }, "id": 907, "nodeType": "SourceUnit", "nodes": [ { "id": 898, "literals": [ "solidity", ">=", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:25:5" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": "@dev A standard for detecting smart contract interfaces. See https://goo.gl/cxQCse.\nget interfaceID in geth use follow command:\nweb3.sha3(\"supportsInterface(bytes4)\", ture)\nweb3.sha3(\"yourFunction(uint256,address)\", ture)", "fullyImplemented": false, "id": 906, "linearizedBaseContracts": [ 906 ], "name": "IERC165", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": "@dev Checks if the smart contract includes a specific interface.\n@notice This function uses less than 30,000 gas.\n@param _interfaceID The interface identifier, as specified in ERC-165.", "id": 905, "implemented": false, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "supportsInterface", "nodeType": "FunctionDefinition", "parameters": { "id": 901, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 900, "name": "_interfaceID", "nodeType": "VariableDeclaration", "scope": 905, "src": "530:19:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 899, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "530:6:5", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "value": null, "visibility": "internal" } ], "src": "529:21:5" }, "payable": false, "returnParameters": { "id": 904, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 903, "name": "", "nodeType": "VariableDeclaration", "scope": 905, "src": "574:4:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 902, "name": "bool", "nodeType": "ElementaryTypeName", "src": "574:4:5", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "573:6:5" }, "scope": 906, "src": "503:77:5", "stateMutability": "view", "superFunction": null, "visibility": "external" } ], "scope": 907, "src": "269:313:5" } ], "src": "0:583:5" }, "legacyAST": { "absolutePath": "/Users/chtian/Documents/01_work/01_develope/jcc/jcc-solidity-utils/contracts/interface/IERC165.sol", "exportedSymbols": { "IERC165": [ 906 ] }, "id": 907, "nodeType": "SourceUnit", "nodes": [ { "id": 898, "literals": [ "solidity", ">=", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:25:5" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": "@dev A standard for detecting smart contract interfaces. See https://goo.gl/cxQCse.\nget interfaceID in geth use follow command:\nweb3.sha3(\"supportsInterface(bytes4)\", ture)\nweb3.sha3(\"yourFunction(uint256,address)\", ture)", "fullyImplemented": false, "id": 906, "linearizedBaseContracts": [ 906 ], "name": "IERC165", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": "@dev Checks if the smart contract includes a specific interface.\n@notice This function uses less than 30,000 gas.\n@param _interfaceID The interface identifier, as specified in ERC-165.", "id": 905, "implemented": false, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "supportsInterface", "nodeType": "FunctionDefinition", "parameters": { "id": 901, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 900, "name": "_interfaceID", "nodeType": "VariableDeclaration", "scope": 905, "src": "530:19:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 899, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "530:6:5", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "value": null, "visibility": "internal" } ], "src": "529:21:5" }, "payable": false, "returnParameters": { "id": 904, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 903, "name": "", "nodeType": "VariableDeclaration", "scope": 905, "src": "574:4:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 902, "name": "bool", "nodeType": "ElementaryTypeName", "src": "574:4:5", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "573:6:5" }, "scope": 906, "src": "503:77:5", "stateMutability": "view", "superFunction": null, "visibility": "external" } ], "scope": 907, "src": "269:313:5" } ], "src": "0:583:5" }, "compiler": { "name": "solc", "version": "0.4.24+commit.e67f0147.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.0.16", "updatedAt": "2021-03-06T09:30:00.942Z", "devdoc": { "methods": { "supportsInterface(bytes4)": { "details": "Checks if the smart contract includes a specific interface.", "params": { "_interfaceID": "The interface identifier, as specified in ERC-165." } } } }, "userdoc": { "methods": { "supportsInterface(bytes4)": { "notice": "This function uses less than 30,000 gas." } } } }