UNPKG

@dnextco/tokenboost-solidity-erc223token

Version:

Solidity contracts for TokenBoost (ERC223Token)

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:40:-;;;616:76;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;649:38:40;668:18;649;;;;:38;:::i;:::-;178:967;;987:156;1065:26;;;;;;1057:35;;;;;;1098:33;;:19;:33;;;;;;;;;;:40;;-1:-1:-1;;1098:40:40;1134:4;1098:40;;;987:156::o;178:967::-;;;;;;;", "deployedSourceMap": "178:967:40:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;775:142;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;775:142:40;-1:-1:-1;;775:142:40;;;;;;;;;;;;;;;;;;;;;;;230:54;;8:9:-1;5:2;;;30:1;27;20:12;5:2;230:54:40;;;;;;;;-1:-1:-1;;230:54:40;;;;;;;;;;;;;;775:142;-1:-1:-1;;879:33:40;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": [ 6662 ] }, "id": 6663, "nodeType": "SourceUnit", "nodes": [ { "id": 6613, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:40" }, { "absolutePath": "zeppelin-solidity/contracts/introspection/ERC165.sol", "file": "./ERC165.sol", "id": 6614, "nodeType": "ImportDirective", "scope": 6663, "sourceUnit": 6612, "src": "26:22:40", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 6615, "name": "ERC165", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 6611, "src": "218:6:40", "typeDescriptions": { "typeIdentifier": "t_contract$_ERC165_$6611", "typeString": "contract ERC165" } }, "id": 6616, "nodeType": "InheritanceSpecifier", "src": "218:6:40" } ], "contractDependencies": [ 6611 ], "contractKind": "contract", "documentation": "@title SupportsInterfaceWithLookup\n@author Matt Condon (@shrugs)\n@dev Implements ERC165 using a lookup table.", "fullyImplemented": true, "id": 6662, "linearizedBaseContracts": [ 6662, 6611 ], "name": "SupportsInterfaceWithLookup", "nodeType": "ContractDefinition", "nodes": [ { "constant": true, "id": 6619, "name": "InterfaceId_ERC165", "nodeType": "VariableDeclaration", "scope": 6662, "src": "230:54:40", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 6617, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "230:6:40", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "value": { "argumentTypes": null, "hexValue": "30783031666663396137", "id": 6618, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "274:10:40", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_33540519_by_1", "typeString": "int_const 33540519" }, "value": "0x01ffc9a7" }, "visibility": "public" }, { "constant": false, "id": 6623, "name": "supportedInterfaces", "nodeType": "VariableDeclaration", "scope": 6662, "src": "456:52:40", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$", "typeString": "mapping(bytes4 => bool)" }, "typeName": { "id": 6622, "keyType": { "id": 6620, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "464:6:40", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "nodeType": "Mapping", "src": "456:23:40", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$", "typeString": "mapping(bytes4 => bool)" }, "valueType": { "id": 6621, "name": "bool", "nodeType": "ElementaryTypeName", "src": "474:4:40", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } }, "value": null, "visibility": "internal" }, { "body": { "id": 6630, "nodeType": "Block", "src": "643:49:40", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 6627, "name": "InterfaceId_ERC165", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6619, "src": "668:18:40", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } ], "id": 6626, "name": "_registerInterface", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6661, "src": "649:18:40", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_bytes4_$returns$__$", "typeString": "function (bytes4)" } }, "id": 6628, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "649:38:40", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 6629, "nodeType": "ExpressionStatement", "src": "649:38:40" } ] }, "documentation": "@dev A contract implementing SupportsInterfaceWithLookup\nimplement ERC165 itself", "id": 6631, "implemented": true, "isConstructor": true, "isDeclaredConst": false, "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { "id": 6624, "nodeType": "ParameterList", "parameters": [], "src": "627:2:40" }, "payable": false, "returnParameters": { "id": 6625, "nodeType": "ParameterList", "parameters": [], "src": "643:0:40" }, "scope": 6662, "src": "616:76:40", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 6642, "nodeType": "Block", "src": "866:51:40", "statements": [ { "expression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 6638, "name": "supportedInterfaces", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6623, "src": "879:19:40", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$", "typeString": "mapping(bytes4 => bool)" } }, "id": 6640, "indexExpression": { "argumentTypes": null, "id": 6639, "name": "_interfaceId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6633, "src": "899:12:40", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "879:33:40", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "functionReturnParameters": 6637, "id": 6641, "nodeType": "Return", "src": "872:40:40" } ] }, "documentation": "@dev implement supportsInterface(bytes4) using a lookup table", "id": 6643, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "supportsInterface", "nodeType": "FunctionDefinition", "parameters": { "id": 6634, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6633, "name": "_interfaceId", "nodeType": "VariableDeclaration", "scope": 6643, "src": "802:19:40", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 6632, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "802:6:40", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "value": null, "visibility": "internal" } ], "src": "801:21:40" }, "payable": false, "returnParameters": { "id": 6637, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6636, "name": "", "nodeType": "VariableDeclaration", "scope": 6643, "src": "858:4:40", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 6635, "name": "bool", "nodeType": "ElementaryTypeName", "src": "858:4:40", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "857:6:40" }, "scope": 6662, "src": "775:142:40", "stateMutability": "view", "superFunction": 6610, "visibility": "external" }, { "body": { "id": 6660, "nodeType": "Block", "src": "1051:92:40", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "id": 6651, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 6649, "name": "_interfaceId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6645, "src": "1065:12:40", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "hexValue": "30786666666666666666", "id": 6650, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1081:10:40", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_4294967295_by_1", "typeString": "int_const 4294967295" }, "value": "0xffffffff" }, "src": "1065:26:40", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 6648, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 7665, 7666 ], "referencedDeclaration": 7665, "src": "1057:7:40", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 6652, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1057:35:40", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 6653, "nodeType": "ExpressionStatement", "src": "1057:35:40" }, { "expression": { "argumentTypes": null, "id": 6658, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 6654, "name": "supportedInterfaces", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6623, "src": "1098:19:40", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$", "typeString": "mapping(bytes4 => bool)" } }, "id": 6656, "indexExpression": { "argumentTypes": null, "id": 6655, "name": "_interfaceId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6645, "src": "1118:12:40", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "1098:33:40", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "74727565", "id": 6657, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "1134:4:40", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "true" }, "src": "1098:40:40", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 6659, "nodeType": "ExpressionStatement", "src": "1098:40:40" } ] }, "documentation": "@dev private method for registering an interface", "id": 6661, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "_registerInterface", "nodeType": "FunctionDefinition", "parameters": { "id": 6646, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6645, "name": "_interfaceId", "nodeType": "VariableDeclaration", "scope": 6661, "src": "1015:19:40", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 6644, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "1015:6:40", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "value": null, "visibility": "internal" } ], "src": "1014:21:40" }, "payable": false, "returnParameters": { "id": 6647, "nodeType": "ParameterList", "parameters": [], "src": "1051:0:40" }, "scope": 6662, "src": "987:156:40", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" } ], "scope": 6663, "src": "178:967:40" } ], "src": "0:1146:40" }, "legacyAST": { "absolutePath": "zeppelin-solidity/contracts/introspection/SupportsInterfaceWithLookup.sol", "exportedSymbols": { "SupportsInterfaceWithLookup": [ 6662 ] }, "id": 6663, "nodeType": "SourceUnit", "nodes": [ { "id": 6613, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:40" }, { "absolutePath": "zeppelin-solidity/contracts/introspection/ERC165.sol", "file": "./ERC165.sol", "id": 6614, "nodeType": "ImportDirective", "scope": 6663, "sourceUnit": 6612, "src": "26:22:40", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 6615, "name": "ERC165", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 6611, "src": "218:6:40", "typeDescriptions": { "typeIdentifier": "t_contract$_ERC165_$6611", "typeString": "contract ERC165" } }, "id": 6616, "nodeType": "InheritanceSpecifier", "src": "218:6:40" } ], "contractDependencies": [ 6611 ], "contractKind": "contract", "documentation": "@title SupportsInterfaceWithLookup\n@author Matt Condon (@shrugs)\n@dev Implements ERC165 using a lookup table.", "fullyImplemented": true, "id": 6662, "linearizedBaseContracts": [ 6662, 6611 ], "name": "SupportsInterfaceWithLookup", "nodeType": "ContractDefinition", "nodes": [ { "constant": true, "id": 6619, "name": "InterfaceId_ERC165", "nodeType": "VariableDeclaration", "scope": 6662, "src": "230:54:40", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 6617, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "230:6:40", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "value": { "argumentTypes": null, "hexValue": "30783031666663396137", "id": 6618, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "274:10:40", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_33540519_by_1", "typeString": "int_const 33540519" }, "value": "0x01ffc9a7" }, "visibility": "public" }, { "constant": false, "id": 6623, "name": "supportedInterfaces", "nodeType": "VariableDeclaration", "scope": 6662, "src": "456:52:40", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$", "typeString": "mapping(bytes4 => bool)" }, "typeName": { "id": 6622, "keyType": { "id": 6620, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "464:6:40", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "nodeType": "Mapping", "src": "456:23:40", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$", "typeString": "mapping(bytes4 => bool)" }, "valueType": { "id": 6621, "name": "bool", "nodeType": "ElementaryTypeName", "src": "474:4:40", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } }, "value": null, "visibility": "internal" }, { "body": { "id": 6630, "nodeType": "Block", "src": "643:49:40", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 6627, "name": "InterfaceId_ERC165", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6619, "src": "668:18:40", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } ], "id": 6626, "name": "_registerInterface", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6661, "src": "649:18:40", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_bytes4_$returns$__$", "typeString": "function (bytes4)" } }, "id": 6628, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "649:38:40", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 6629, "nodeType": "ExpressionStatement", "src": "649:38:40" } ] }, "documentation": "@dev A contract implementing SupportsInterfaceWithLookup\nimplement ERC165 itself", "id": 6631, "implemented": true, "isConstructor": true, "isDeclaredConst": false, "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { "id": 6624, "nodeType": "ParameterList", "parameters": [], "src": "627:2:40" }, "payable": false, "returnParameters": { "id": 6625, "nodeType": "ParameterList", "parameters": [], "src": "643:0:40" }, "scope": 6662, "src": "616:76:40", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 6642, "nodeType": "Block", "src": "866:51:40", "statements": [ { "expression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 6638, "name": "supportedInterfaces", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6623, "src": "879:19:40", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$", "typeString": "mapping(bytes4 => bool)" } }, "id": 6640, "indexExpression": { "argumentTypes": null, "id": 6639, "name": "_interfaceId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6633, "src": "899:12:40", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "879:33:40", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "functionReturnParameters": 6637, "id": 6641, "nodeType": "Return", "src": "872:40:40" } ] }, "documentation": "@dev implement supportsInterface(bytes4) using a lookup table", "id": 6643, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "supportsInterface", "nodeType": "FunctionDefinition", "parameters": { "id": 6634, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6633, "name": "_interfaceId", "nodeType": "VariableDeclaration", "scope": 6643, "src": "802:19:40", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 6632, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "802:6:40", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "value": null, "visibility": "internal" } ], "src": "801:21:40" }, "payable": false, "returnParameters": { "id": 6637, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6636, "name": "", "nodeType": "VariableDeclaration", "scope": 6643, "src": "858:4:40", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 6635, "name": "bool", "nodeType": "ElementaryTypeName", "src": "858:4:40", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "857:6:40" }, "scope": 6662, "src": "775:142:40", "stateMutability": "view", "superFunction": 6610, "visibility": "external" }, { "body": { "id": 6660, "nodeType": "Block", "src": "1051:92:40", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "id": 6651, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 6649, "name": "_interfaceId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6645, "src": "1065:12:40", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "hexValue": "30786666666666666666", "id": 6650, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1081:10:40", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_4294967295_by_1", "typeString": "int_const 4294967295" }, "value": "0xffffffff" }, "src": "1065:26:40", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 6648, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 7665, 7666 ], "referencedDeclaration": 7665, "src": "1057:7:40", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 6652, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1057:35:40", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 6653, "nodeType": "ExpressionStatement", "src": "1057:35:40" }, { "expression": { "argumentTypes": null, "id": 6658, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 6654, "name": "supportedInterfaces", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6623, "src": "1098:19:40", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$", "typeString": "mapping(bytes4 => bool)" } }, "id": 6656, "indexExpression": { "argumentTypes": null, "id": 6655, "name": "_interfaceId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6645, "src": "1118:12:40", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "1098:33:40", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "74727565", "id": 6657, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "1134:4:40", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "true" }, "src": "1098:40:40", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 6659, "nodeType": "ExpressionStatement", "src": "1098:40:40" } ] }, "documentation": "@dev private method for registering an interface", "id": 6661, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "_registerInterface", "nodeType": "FunctionDefinition", "parameters": { "id": 6646, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6645, "name": "_interfaceId", "nodeType": "VariableDeclaration", "scope": 6661, "src": "1015:19:40", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 6644, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "1015:6:40", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "value": null, "visibility": "internal" } ], "src": "1014:21:40" }, "payable": false, "returnParameters": { "id": 6647, "nodeType": "ParameterList", "parameters": [], "src": "1051:0:40" }, "scope": 6662, "src": "987:156:40", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" } ], "scope": 6663, "src": "178:967:40" } ], "src": "0:1146:40" }, "compiler": { "name": "solc", "version": "0.4.24+commit.e67f0147.Emscripten.clang" }, "networks": {}, "schemaVersion": "2.0.1", "updatedAt": "2018-10-24T12:40:22.248Z" }