{ "contractName": "ERC165", "abi": [ { "inputs": [ { "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" } ], "name": "supportsInterface", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.8.11+commit.d7f03943\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Implementation of the {IERC165} interface. Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check for the additional interface id that will be supported. For example: ```solidity function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); } ``` Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.\",\"kind\":\"dev\",\"methods\":{\"supportsInterface(bytes4)\":{\"details\":\"See {IERC165-supportsInterface}.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@openzeppelin/contracts/utils/introspection/ERC165.sol\":\"ERC165\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/utils/introspection/ERC165.sol\":{\"keccak256\":\"0xd10975de010d89fd1c78dc5e8a9a7e7f496198085c151648f20cba166b32582b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://fb0048dee081f6fffa5f74afc3fb328483c2a30504e94a0ddd2a5114d731ec4d\",\"dweb:/ipfs/QmZptt1nmYoA5SgjwnSgWqgUSDgm4q52Yos3xhnMv3MV43\"]},\"@openzeppelin/contracts/utils/introspection/IERC165.sol\":{\"keccak256\":\"0x447a5f3ddc18419d41ff92b3773fb86471b1db25773e07f877f548918a185bf1\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://be161e54f24e5c6fae81a12db1a8ae87bc5ae1b0ddc805d82a1440a68455088f\",\"dweb:/ipfs/QmP7C3CHdY9urF4dEMb9wmsp1wMxHF6nhA2yQE5SKiPAdy\"]}},\"version\":1}", "bytecode": "0x", "deployedBytecode": "0x", "immutableReferences": {}, "generatedSources": [], "deployedGeneratedSources": [], "sourceMap": "", "deployedSourceMap": "", "source": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IERC165.sol\";\n\n/**\n * @dev Implementation of the {IERC165} interface.\n *\n * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\n * for the additional interface id that will be supported. For example:\n *\n * ```solidity\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\n * }\n * ```\n *\n * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.\n */\nabstract contract ERC165 is IERC165 {\n /**\n * @dev See {IERC165-supportsInterface}.\n */\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n return interfaceId == type(IERC165).interfaceId;\n }\n}\n", "sourcePath": "@openzeppelin/contracts/utils/introspection/ERC165.sol", "ast": { "absolutePath": "@openzeppelin/contracts/utils/introspection/ERC165.sol", "exportedSymbols": { "ERC165": [ 1844 ], "IERC165": [ 1856 ] }, "id": 1845, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 1822, "literals": [ "solidity", "^", "0.8", ".0" ], "nodeType": "PragmaDirective", "src": "99:23:10" }, { "absolutePath": "@openzeppelin/contracts/utils/introspection/IERC165.sol", "file": "./IERC165.sol", "id": 1823, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 1845, "sourceUnit": 1857, "src": "124:23:10", "symbolAliases": [], "unitAlias": "" }, { "abstract": true, "baseContracts": [ { "baseName": { "id": 1825, "name": "IERC165", "nodeType": "IdentifierPath", "referencedDeclaration": 1856, "src": "754:7:10" }, "id": 1826, "nodeType": "InheritanceSpecifier", "src": "754:7:10" } ], "canonicalName": "ERC165", "contractDependencies": [], "contractKind": "contract", "documentation": { "id": 1824, "nodeType": "StructuredDocumentation", "src": "149:576:10", "text": " @dev Implementation of the {IERC165} interface.\n Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\n for the additional interface id that will be supported. For example:\n ```solidity\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\n }\n ```\n Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation." }, "fullyImplemented": true, "id": 1844, "linearizedBaseContracts": [ 1844, 1856 ], "name": "ERC165", "nameLocation": "744:6:10", "nodeType": "ContractDefinition", "nodes": [ { "baseFunctions": [ 1855 ], "body": { "id": 1842, "nodeType": "Block", "src": "920:64:10", "statements": [ { "expression": { "commonType": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "id": 1840, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1835, "name": "interfaceId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1829, "src": "937:11:10", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "expression": { "arguments": [ { "id": 1837, "name": "IERC165", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1856, "src": "957:7:10", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_IERC165_$1856_$", "typeString": "type(contract IERC165)" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_type$_t_contract$_IERC165_$1856_$", "typeString": "type(contract IERC165)" } ], "id": 1836, "name": "type", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967269, "src": "952:4:10", "typeDescriptions": { "typeIdentifier": "t_function_metatype_pure$__$returns$__$", "typeString": "function () pure" } }, "id": 1838, "isConstant": false, "isLValue": false, "isPure": true, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "952:13:10", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_magic_meta_type_t_contract$_IERC165_$1856", "typeString": "type(contract IERC165)" } }, "id": 1839, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberName": "interfaceId", "nodeType": "MemberAccess", "src": "952:25:10", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "src": "937:40:10", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "functionReturnParameters": 1834, "id": 1841, "nodeType": "Return", "src": "930:47:10" } ] }, "documentation": { "id": 1827, "nodeType": "StructuredDocumentation", "src": "768:56:10", "text": " @dev See {IERC165-supportsInterface}." }, "functionSelector": "01ffc9a7", "id": 1843, "implemented": true, "kind": "function", "modifiers": [], "name": "supportsInterface", "nameLocation": "838:17:10", "nodeType": "FunctionDefinition", "overrides": { "id": 1831, "nodeType": "OverrideSpecifier", "overrides": [], "src": "896:8:10" }, "parameters": { "id": 1830, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1829, "mutability": "mutable", "name": "interfaceId", "nameLocation": "863:11:10", "nodeType": "VariableDeclaration", "scope": 1843, "src": "856:18:10", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 1828, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "856:6:10", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "visibility": "internal" } ], "src": "855:20:10" }, "returnParameters": { "id": 1834, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1833, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 1843, "src": "914:4:10", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 1832, "name": "bool", "nodeType": "ElementaryTypeName", "src": "914:4:10", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" } ], "src": "913:6:10" }, "scope": 1844, "src": "829:155:10", "stateMutability": "view", "virtual": true, "visibility": "public" } ], "scope": 1845, "src": "726:260:10", "usedErrors": [] } ], "src": "99:888:10" }, "legacyAST": { "absolutePath": "@openzeppelin/contracts/utils/introspection/ERC165.sol", "exportedSymbols": { "ERC165": [ 1844 ], "IERC165": [ 1856 ] }, "id": 1845, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 1822, "literals": [ "solidity", "^", "0.8", ".0" ], "nodeType": "PragmaDirective", "src": "99:23:10" }, { "absolutePath": "@openzeppelin/contracts/utils/introspection/IERC165.sol", "file": "./IERC165.sol", "id": 1823, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 1845, "sourceUnit": 1857, "src": "124:23:10", "symbolAliases": [], "unitAlias": "" }, { "abstract": true, "baseContracts": [ { "baseName": { "id": 1825, "name": "IERC165", "nodeType": "IdentifierPath", "referencedDeclaration": 1856, "src": "754:7:10" }, "id": 1826, "nodeType": "InheritanceSpecifier", "src": "754:7:10" } ], "canonicalName": "ERC165", "contractDependencies": [], "contractKind": "contract", "documentation": { "id": 1824, "nodeType": "StructuredDocumentation", "src": "149:576:10", "text": " @dev Implementation of the {IERC165} interface.\n Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\n for the additional interface id that will be supported. For example:\n ```solidity\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\n }\n ```\n Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation." }, "fullyImplemented": true, "id": 1844, "linearizedBaseContracts": [ 1844, 1856 ], "name": "ERC165", "nameLocation": "744:6:10", "nodeType": "ContractDefinition", "nodes": [ { "baseFunctions": [ 1855 ], "body": { "id": 1842, "nodeType": "Block", "src": "920:64:10", "statements": [ { "expression": { "commonType": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "id": 1840, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1835, "name": "interfaceId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1829, "src": "937:11:10", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "expression": { "arguments": [ { "id": 1837, "name": "IERC165", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1856, "src": "957:7:10", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_IERC165_$1856_$", "typeString": "type(contract IERC165)" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_type$_t_contract$_IERC165_$1856_$", "typeString": "type(contract IERC165)" } ], "id": 1836, "name": "type", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967269, "src": "952:4:10", "typeDescriptions": { "typeIdentifier": "t_function_metatype_pure$__$returns$__$", "typeString": "function () pure" } }, "id": 1838, "isConstant": false, "isLValue": false, "isPure": true, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "952:13:10", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_magic_meta_type_t_contract$_IERC165_$1856", "typeString": "type(contract IERC165)" } }, "id": 1839, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberName": "interfaceId", "nodeType": "MemberAccess", "src": "952:25:10", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "src": "937:40:10", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "functionReturnParameters": 1834, "id": 1841, "nodeType": "Return", "src": "930:47:10" } ] }, "documentation": { "id": 1827, "nodeType": "StructuredDocumentation", "src": "768:56:10", "text": " @dev See {IERC165-supportsInterface}." }, "functionSelector": "01ffc9a7", "id": 1843, "implemented": true, "kind": "function", "modifiers": [], "name": "supportsInterface", "nameLocation": "838:17:10", "nodeType": "FunctionDefinition", "overrides": { "id": 1831, "nodeType": "OverrideSpecifier", "overrides": [], "src": "896:8:10" }, "parameters": { "id": 1830, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1829, "mutability": "mutable", "name": "interfaceId", "nameLocation": "863:11:10", "nodeType": "VariableDeclaration", "scope": 1843, "src": "856:18:10", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 1828, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "856:6:10", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "visibility": "internal" } ], "src": "855:20:10" }, "returnParameters": { "id": 1834, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1833, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 1843, "src": "914:4:10", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 1832, "name": "bool", "nodeType": "ElementaryTypeName", "src": "914:4:10", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" } ], "src": "913:6:10" }, "scope": 1844, "src": "829:155:10", "stateMutability": "view", "virtual": true, "visibility": "public" } ], "scope": 1845, "src": "726:260:10", "usedErrors": [] } ], "src": "99:888:10" }, "compiler": { "name": "solc", "version": "0.8.11+commit.d7f03943.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.4.4", "updatedAt": "2021-12-29T22:14:28.601Z", "devdoc": { "details": "Implementation of the {IERC165} interface. Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check for the additional interface id that will be supported. For example: ```solidity function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); } ``` Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.", "kind": "dev", "methods": { "supportsInterface(bytes4)": { "details": "See {IERC165-supportsInterface}." } }, "version": 1 }, "userdoc": { "kind": "user", "methods": {}, "version": 1 } }