UNPKG

tokenboost-solidity-erc20token

Version:
1,297 lines 49.6 kB
{ "contractName": "SupportsInterfaceWithLookup", "abi": [ { "constant": true, "inputs": [], "name": "InterfaceId_ERC165", "outputs": [ { "name": "", "type": "bytes4" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "inputs": [], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "constant": true, "inputs": [ { "name": "_interfaceId", "type": "bytes4" } ], "name": "supportsInterface", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function" } ], "bytecode": "0x608060405234801561001057600080fd5b506100437f01ffc9a700000000000000000000000000000000000000000000000000000000640100000000610048810204565b6100b4565b7fffffffff00000000000000000000000000000000000000000000000000000000808216141561007757600080fd5b7fffffffff00000000000000000000000000000000000000000000000000000000166000908152602081905260409020805460ff19166001179055565b610166806100c36000396000f30060806040526004361061004b5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166301ffc9a7811461005057806319fa8f501461009b575b600080fd5b34801561005c57600080fd5b506100877bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19600435166100e2565b604080519115158252519081900360200190f35b3480156100a757600080fd5b506100b0610116565b604080517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff199092168252519081900360200190f35b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191660009081526020819052604090205460ff1690565b7f01ffc9a700000000000000000000000000000000000000000000000000000000815600a165627a7a723058202c9a42de468246c6419a799f838857d031ba6905c2116be7a45bd9d1f97864090029", "deployedBytecode": "0x60806040526004361061004b5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166301ffc9a7811461005057806319fa8f501461009b575b600080fd5b34801561005c57600080fd5b506100877bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19600435166100e2565b604080519115158252519081900360200190f35b3480156100a757600080fd5b506100b0610116565b604080517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff199092168252519081900360200190f35b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191660009081526020819052604090205460ff1690565b7f01ffc9a700000000000000000000000000000000000000000000000000000000815600a165627a7a723058202c9a42de468246c6419a799f838857d031ba6905c2116be7a45bd9d1f97864090029", "sourceMap": "178:967:18:-;;;616:76;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;649:38:18;668:18;649;;;;:38;:::i;:::-;178:967;;987:156;1065:26;;;;;;1057:35;;;;;;1098:33;;:19;:33;;;;;;;;;;:40;;-1:-1:-1;;1098:40:18;1134:4;1098:40;;;987:156::o;178:967::-;;;;;;;", "deployedSourceMap": "178:967:18:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;775:142;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;775:142:18;-1:-1:-1;;775:142:18;;;;;;;;;;;;;;;;;;;;;;;230:54;;8:9:-1;5:2;;;30:1;27;20:12;5:2;230:54:18;;;;;;;;-1:-1:-1;;230:54:18;;;;;;;;;;;;;;775:142;-1:-1:-1;;879:33:18;858:4;879:33;;;;;;;;;;;;;;775:142::o;230:54::-;;;:::o", "source": "pragma solidity ^0.4.24;\n\nimport \"./ERC165.sol\";\n\n\n/**\n * @title SupportsInterfaceWithLookup\n * @author Matt Condon (@shrugs)\n * @dev Implements ERC165 using a lookup table.\n */\ncontract SupportsInterfaceWithLookup is ERC165 {\n\n bytes4 public constant InterfaceId_ERC165 = 0x01ffc9a7;\n /**\n * 0x01ffc9a7 ===\n * bytes4(keccak256('supportsInterface(bytes4)'))\n */\n\n /**\n * @dev a mapping of interface id to whether or not it's supported\n */\n mapping(bytes4 => bool) internal supportedInterfaces;\n\n /**\n * @dev A contract implementing SupportsInterfaceWithLookup\n * implement ERC165 itself\n */\n constructor()\n public\n {\n _registerInterface(InterfaceId_ERC165);\n }\n\n /**\n * @dev implement supportsInterface(bytes4) using a lookup table\n */\n function supportsInterface(bytes4 _interfaceId)\n external\n view\n returns (bool)\n {\n return supportedInterfaces[_interfaceId];\n }\n\n /**\n * @dev private method for registering an interface\n */\n function _registerInterface(bytes4 _interfaceId)\n internal\n {\n require(_interfaceId != 0xffffffff);\n supportedInterfaces[_interfaceId] = true;\n }\n}\n", "sourcePath": "zeppelin-solidity/contracts/introspection/SupportsInterfaceWithLookup.sol", "ast": { "absolutePath": "zeppelin-solidity/contracts/introspection/SupportsInterfaceWithLookup.sol", "exportedSymbols": { "SupportsInterfaceWithLookup": [ 3882 ] }, "id": 3883, "nodeType": "SourceUnit", "nodes": [ { "id": 3833, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:18" }, { "absolutePath": "zeppelin-solidity/contracts/introspection/ERC165.sol", "file": "./ERC165.sol", "id": 3834, "nodeType": "ImportDirective", "scope": 3883, "sourceUnit": 3832, "src": "26:22:18", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 3835, "name": "ERC165", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 3831, "src": "218:6:18", "typeDescriptions": { "typeIdentifier": "t_contract$_ERC165_$3831", "typeString": "contract ERC165" } }, "id": 3836, "nodeType": "InheritanceSpecifier", "src": "218:6:18" } ], "contractDependencies": [ 3831 ], "contractKind": "contract", "documentation": "@title SupportsInterfaceWithLookup\n@author Matt Condon (@shrugs)\n@dev Implements ERC165 using a lookup table.", "fullyImplemented": true, "id": 3882, "linearizedBaseContracts": [ 3882, 3831 ], "name": "SupportsInterfaceWithLookup", "nodeType": "ContractDefinition", "nodes": [ { "constant": true, "id": 3839, "name": "InterfaceId_ERC165", "nodeType": "VariableDeclaration", "scope": 3882, "src": "230:54:18", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 3837, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "230:6:18", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "value": { "argumentTypes": null, "hexValue": "30783031666663396137", "id": 3838, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "274:10:18", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_33540519_by_1", "typeString": "int_const 33540519" }, "value": "0x01ffc9a7" }, "visibility": "public" }, { "constant": false, "id": 3843, "name": "supportedInterfaces", "nodeType": "VariableDeclaration", "scope": 3882, "src": "456:52:18", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$", "typeString": "mapping(bytes4 => bool)" }, "typeName": { "id": 3842, "keyType": { "id": 3840, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "464:6:18", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "nodeType": "Mapping", "src": "456:23:18", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$", "typeString": "mapping(bytes4 => bool)" }, "valueType": { "id": 3841, "name": "bool", "nodeType": "ElementaryTypeName", "src": "474:4:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } }, "value": null, "visibility": "internal" }, { "body": { "id": 3850, "nodeType": "Block", "src": "643:49:18", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 3847, "name": "InterfaceId_ERC165", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3839, "src": "668:18:18", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } ], "id": 3846, "name": "_registerInterface", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3881, "src": "649:18:18", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_bytes4_$returns$__$", "typeString": "function (bytes4)" } }, "id": 3848, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "649:38:18", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 3849, "nodeType": "ExpressionStatement", "src": "649:38:18" } ] }, "documentation": "@dev A contract implementing SupportsInterfaceWithLookup\nimplement ERC165 itself", "id": 3851, "implemented": true, "isConstructor": true, "isDeclaredConst": false, "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { "id": 3844, "nodeType": "ParameterList", "parameters": [], "src": "627:2:18" }, "payable": false, "returnParameters": { "id": 3845, "nodeType": "ParameterList", "parameters": [], "src": "643:0:18" }, "scope": 3882, "src": "616:76:18", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 3862, "nodeType": "Block", "src": "866:51:18", "statements": [ { "expression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 3858, "name": "supportedInterfaces", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3843, "src": "879:19:18", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$", "typeString": "mapping(bytes4 => bool)" } }, "id": 3860, "indexExpression": { "argumentTypes": null, "id": 3859, "name": "_interfaceId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3853, "src": "899:12:18", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "879:33:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "functionReturnParameters": 3857, "id": 3861, "nodeType": "Return", "src": "872:40:18" } ] }, "documentation": "@dev implement supportsInterface(bytes4) using a lookup table", "id": 3863, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "supportsInterface", "nodeType": "FunctionDefinition", "parameters": { "id": 3854, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3853, "name": "_interfaceId", "nodeType": "VariableDeclaration", "scope": 3863, "src": "802:19:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 3852, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "802:6:18", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "value": null, "visibility": "internal" } ], "src": "801:21:18" }, "payable": false, "returnParameters": { "id": 3857, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3856, "name": "", "nodeType": "VariableDeclaration", "scope": 3863, "src": "858:4:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 3855, "name": "bool", "nodeType": "ElementaryTypeName", "src": "858:4:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "857:6:18" }, "scope": 3882, "src": "775:142:18", "stateMutability": "view", "superFunction": 3830, "visibility": "external" }, { "body": { "id": 3880, "nodeType": "Block", "src": "1051:92:18", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "id": 3871, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 3869, "name": "_interfaceId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3865, "src": "1065:12:18", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "hexValue": "30786666666666666666", "id": 3870, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1081:10:18", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_4294967295_by_1", "typeString": "int_const 4294967295" }, "value": "0xffffffff" }, "src": "1065:26:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 3868, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4919, 4920 ], "referencedDeclaration": 4919, "src": "1057:7:18", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 3872, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1057:35:18", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 3873, "nodeType": "ExpressionStatement", "src": "1057:35:18" }, { "expression": { "argumentTypes": null, "id": 3878, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 3874, "name": "supportedInterfaces", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3843, "src": "1098:19:18", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$", "typeString": "mapping(bytes4 => bool)" } }, "id": 3876, "indexExpression": { "argumentTypes": null, "id": 3875, "name": "_interfaceId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3865, "src": "1118:12:18", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "1098:33:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "74727565", "id": 3877, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "1134:4:18", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "true" }, "src": "1098:40:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 3879, "nodeType": "ExpressionStatement", "src": "1098:40:18" } ] }, "documentation": "@dev private method for registering an interface", "id": 3881, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "_registerInterface", "nodeType": "FunctionDefinition", "parameters": { "id": 3866, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3865, "name": "_interfaceId", "nodeType": "VariableDeclaration", "scope": 3881, "src": "1015:19:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 3864, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "1015:6:18", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "value": null, "visibility": "internal" } ], "src": "1014:21:18" }, "payable": false, "returnParameters": { "id": 3867, "nodeType": "ParameterList", "parameters": [], "src": "1051:0:18" }, "scope": 3882, "src": "987:156:18", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" } ], "scope": 3883, "src": "178:967:18" } ], "src": "0:1146:18" }, "legacyAST": { "absolutePath": "zeppelin-solidity/contracts/introspection/SupportsInterfaceWithLookup.sol", "exportedSymbols": { "SupportsInterfaceWithLookup": [ 3882 ] }, "id": 3883, "nodeType": "SourceUnit", "nodes": [ { "id": 3833, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:18" }, { "absolutePath": "zeppelin-solidity/contracts/introspection/ERC165.sol", "file": "./ERC165.sol", "id": 3834, "nodeType": "ImportDirective", "scope": 3883, "sourceUnit": 3832, "src": "26:22:18", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 3835, "name": "ERC165", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 3831, "src": "218:6:18", "typeDescriptions": { "typeIdentifier": "t_contract$_ERC165_$3831", "typeString": "contract ERC165" } }, "id": 3836, "nodeType": "InheritanceSpecifier", "src": "218:6:18" } ], "contractDependencies": [ 3831 ], "contractKind": "contract", "documentation": "@title SupportsInterfaceWithLookup\n@author Matt Condon (@shrugs)\n@dev Implements ERC165 using a lookup table.", "fullyImplemented": true, "id": 3882, "linearizedBaseContracts": [ 3882, 3831 ], "name": "SupportsInterfaceWithLookup", "nodeType": "ContractDefinition", "nodes": [ { "constant": true, "id": 3839, "name": "InterfaceId_ERC165", "nodeType": "VariableDeclaration", "scope": 3882, "src": "230:54:18", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 3837, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "230:6:18", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "value": { "argumentTypes": null, "hexValue": "30783031666663396137", "id": 3838, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "274:10:18", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_33540519_by_1", "typeString": "int_const 33540519" }, "value": "0x01ffc9a7" }, "visibility": "public" }, { "constant": false, "id": 3843, "name": "supportedInterfaces", "nodeType": "VariableDeclaration", "scope": 3882, "src": "456:52:18", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$", "typeString": "mapping(bytes4 => bool)" }, "typeName": { "id": 3842, "keyType": { "id": 3840, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "464:6:18", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "nodeType": "Mapping", "src": "456:23:18", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$", "typeString": "mapping(bytes4 => bool)" }, "valueType": { "id": 3841, "name": "bool", "nodeType": "ElementaryTypeName", "src": "474:4:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } }, "value": null, "visibility": "internal" }, { "body": { "id": 3850, "nodeType": "Block", "src": "643:49:18", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 3847, "name": "InterfaceId_ERC165", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3839, "src": "668:18:18", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } ], "id": 3846, "name": "_registerInterface", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3881, "src": "649:18:18", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_bytes4_$returns$__$", "typeString": "function (bytes4)" } }, "id": 3848, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "649:38:18", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 3849, "nodeType": "ExpressionStatement", "src": "649:38:18" } ] }, "documentation": "@dev A contract implementing SupportsInterfaceWithLookup\nimplement ERC165 itself", "id": 3851, "implemented": true, "isConstructor": true, "isDeclaredConst": false, "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { "id": 3844, "nodeType": "ParameterList", "parameters": [], "src": "627:2:18" }, "payable": false, "returnParameters": { "id": 3845, "nodeType": "ParameterList", "parameters": [], "src": "643:0:18" }, "scope": 3882, "src": "616:76:18", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 3862, "nodeType": "Block", "src": "866:51:18", "statements": [ { "expression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 3858, "name": "supportedInterfaces", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3843, "src": "879:19:18", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$", "typeString": "mapping(bytes4 => bool)" } }, "id": 3860, "indexExpression": { "argumentTypes": null, "id": 3859, "name": "_interfaceId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3853, "src": "899:12:18", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "879:33:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "functionReturnParameters": 3857, "id": 3861, "nodeType": "Return", "src": "872:40:18" } ] }, "documentation": "@dev implement supportsInterface(bytes4) using a lookup table", "id": 3863, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "supportsInterface", "nodeType": "FunctionDefinition", "parameters": { "id": 3854, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3853, "name": "_interfaceId", "nodeType": "VariableDeclaration", "scope": 3863, "src": "802:19:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 3852, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "802:6:18", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "value": null, "visibility": "internal" } ], "src": "801:21:18" }, "payable": false, "returnParameters": { "id": 3857, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3856, "name": "", "nodeType": "VariableDeclaration", "scope": 3863, "src": "858:4:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 3855, "name": "bool", "nodeType": "ElementaryTypeName", "src": "858:4:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "857:6:18" }, "scope": 3882, "src": "775:142:18", "stateMutability": "view", "superFunction": 3830, "visibility": "external" }, { "body": { "id": 3880, "nodeType": "Block", "src": "1051:92:18", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "id": 3871, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 3869, "name": "_interfaceId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3865, "src": "1065:12:18", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "hexValue": "30786666666666666666", "id": 3870, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1081:10:18", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_4294967295_by_1", "typeString": "int_const 4294967295" }, "value": "0xffffffff" }, "src": "1065:26:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 3868, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4919, 4920 ], "referencedDeclaration": 4919, "src": "1057:7:18", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 3872, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1057:35:18", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 3873, "nodeType": "ExpressionStatement", "src": "1057:35:18" }, { "expression": { "argumentTypes": null, "id": 3878, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 3874, "name": "supportedInterfaces", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3843, "src": "1098:19:18", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$", "typeString": "mapping(bytes4 => bool)" } }, "id": 3876, "indexExpression": { "argumentTypes": null, "id": 3875, "name": "_interfaceId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3865, "src": "1118:12:18", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "1098:33:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "74727565", "id": 3877, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "1134:4:18", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "true" }, "src": "1098:40:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 3879, "nodeType": "ExpressionStatement", "src": "1098:40:18" } ] }, "documentation": "@dev private method for registering an interface", "id": 3881, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "_registerInterface", "nodeType": "FunctionDefinition", "parameters": { "id": 3866, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3865, "name": "_interfaceId", "nodeType": "VariableDeclaration", "scope": 3881, "src": "1015:19:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 3864, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "1015:6:18", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "value": null, "visibility": "internal" } ], "src": "1014:21:18" }, "payable": false, "returnParameters": { "id": 3867, "nodeType": "ParameterList", "parameters": [], "src": "1051:0:18" }, "scope": 3882, "src": "987:156:18", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" } ], "scope": 3883, "src": "178:967:18" } ], "src": "0:1146:18" }, "compiler": { "name": "solc", "version": "0.4.24+commit.e67f0147.Emscripten.clang" }, "networks": {}, "schemaVersion": "2.0.1", "updatedAt": "2018-10-16T05:56:33.180Z" }