tokenboost-solidity-erc20sale
Version:
Solidity contracts for TokenBoost (ERC20Sale)
1,297 lines • 49.6 kB
JSON
{
"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:25:-;;;616:76;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;649:38:25;668:18;649;;;;:38;:::i;:::-;178:967;;987:156;1065:26;;;;;;1057:35;;;;;;1098:33;;:19;:33;;;;;;;;;;:40;;-1:-1:-1;;1098:40:25;1134:4;1098:40;;;987:156::o;178:967::-;;;;;;;",
"deployedSourceMap": "178:967:25:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;775:142;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;775:142:25;-1:-1:-1;;775:142:25;;;;;;;;;;;;;;;;;;;;;;;230:54;;8:9:-1;5:2;;;30:1;27;20:12;5:2;230:54:25;;;;;;;;-1:-1:-1;;230:54:25;;;;;;;;;;;;;;775:142;-1:-1:-1;;879:33:25;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": [
5175
]
},
"id": 5176,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 5126,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:24:25"
},
{
"absolutePath": "zeppelin-solidity/contracts/introspection/ERC165.sol",
"file": "./ERC165.sol",
"id": 5127,
"nodeType": "ImportDirective",
"scope": 5176,
"sourceUnit": 5125,
"src": "26:22:25",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 5128,
"name": "ERC165",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 5124,
"src": "218:6:25",
"typeDescriptions": {
"typeIdentifier": "t_contract$_ERC165_$5124",
"typeString": "contract ERC165"
}
},
"id": 5129,
"nodeType": "InheritanceSpecifier",
"src": "218:6:25"
}
],
"contractDependencies": [
5124
],
"contractKind": "contract",
"documentation": "@title SupportsInterfaceWithLookup\n@author Matt Condon (@shrugs)\n@dev Implements ERC165 using a lookup table.",
"fullyImplemented": true,
"id": 5175,
"linearizedBaseContracts": [
5175,
5124
],
"name": "SupportsInterfaceWithLookup",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": true,
"id": 5132,
"name": "InterfaceId_ERC165",
"nodeType": "VariableDeclaration",
"scope": 5175,
"src": "230:54:25",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"typeName": {
"id": 5130,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "230:6:25",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"value": {
"argumentTypes": null,
"hexValue": "30783031666663396137",
"id": 5131,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "274:10:25",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_33540519_by_1",
"typeString": "int_const 33540519"
},
"value": "0x01ffc9a7"
},
"visibility": "public"
},
{
"constant": false,
"id": 5136,
"name": "supportedInterfaces",
"nodeType": "VariableDeclaration",
"scope": 5175,
"src": "456:52:25",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$",
"typeString": "mapping(bytes4 => bool)"
},
"typeName": {
"id": 5135,
"keyType": {
"id": 5133,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "464:6:25",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"nodeType": "Mapping",
"src": "456:23:25",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$",
"typeString": "mapping(bytes4 => bool)"
},
"valueType": {
"id": 5134,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "474:4:25",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
},
"value": null,
"visibility": "internal"
},
{
"body": {
"id": 5143,
"nodeType": "Block",
"src": "643:49:25",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 5140,
"name": "InterfaceId_ERC165",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5132,
"src": "668:18:25",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
],
"id": 5139,
"name": "_registerInterface",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5174,
"src": "649:18:25",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_bytes4_$returns$__$",
"typeString": "function (bytes4)"
}
},
"id": 5141,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "649:38:25",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 5142,
"nodeType": "ExpressionStatement",
"src": "649:38:25"
}
]
},
"documentation": "@dev A contract implementing SupportsInterfaceWithLookup\nimplement ERC165 itself",
"id": 5144,
"implemented": true,
"isConstructor": true,
"isDeclaredConst": false,
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5137,
"nodeType": "ParameterList",
"parameters": [],
"src": "627:2:25"
},
"payable": false,
"returnParameters": {
"id": 5138,
"nodeType": "ParameterList",
"parameters": [],
"src": "643:0:25"
},
"scope": 5175,
"src": "616:76:25",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 5155,
"nodeType": "Block",
"src": "866:51:25",
"statements": [
{
"expression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 5151,
"name": "supportedInterfaces",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5136,
"src": "879:19:25",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$",
"typeString": "mapping(bytes4 => bool)"
}
},
"id": 5153,
"indexExpression": {
"argumentTypes": null,
"id": 5152,
"name": "_interfaceId",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5146,
"src": "899:12:25",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "879:33:25",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"functionReturnParameters": 5150,
"id": 5154,
"nodeType": "Return",
"src": "872:40:25"
}
]
},
"documentation": "@dev implement supportsInterface(bytes4) using a lookup table",
"id": 5156,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "supportsInterface",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5147,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5146,
"name": "_interfaceId",
"nodeType": "VariableDeclaration",
"scope": 5156,
"src": "802:19:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"typeName": {
"id": 5145,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "802:6:25",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "801:21:25"
},
"payable": false,
"returnParameters": {
"id": 5150,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5149,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 5156,
"src": "858:4:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 5148,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "858:4:25",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "857:6:25"
},
"scope": 5175,
"src": "775:142:25",
"stateMutability": "view",
"superFunction": 5123,
"visibility": "external"
},
{
"body": {
"id": 5173,
"nodeType": "Block",
"src": "1051:92:25",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"id": 5164,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 5162,
"name": "_interfaceId",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5158,
"src": "1065:12:25",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"nodeType": "BinaryOperation",
"operator": "!=",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30786666666666666666",
"id": 5163,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1081:10:25",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_4294967295_by_1",
"typeString": "int_const 4294967295"
},
"value": "0xffffffff"
},
"src": "1065:26:25",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 5161,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
5448,
5449
],
"referencedDeclaration": 5448,
"src": "1057:7:25",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 5165,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1057:35:25",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 5166,
"nodeType": "ExpressionStatement",
"src": "1057:35:25"
},
{
"expression": {
"argumentTypes": null,
"id": 5171,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 5167,
"name": "supportedInterfaces",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5136,
"src": "1098:19:25",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$",
"typeString": "mapping(bytes4 => bool)"
}
},
"id": 5169,
"indexExpression": {
"argumentTypes": null,
"id": 5168,
"name": "_interfaceId",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5158,
"src": "1118:12:25",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "1098:33:25",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 5170,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1134:4:25",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"src": "1098:40:25",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 5172,
"nodeType": "ExpressionStatement",
"src": "1098:40:25"
}
]
},
"documentation": "@dev private method for registering an interface",
"id": 5174,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "_registerInterface",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5159,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5158,
"name": "_interfaceId",
"nodeType": "VariableDeclaration",
"scope": 5174,
"src": "1015:19:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"typeName": {
"id": 5157,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "1015:6:25",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1014:21:25"
},
"payable": false,
"returnParameters": {
"id": 5160,
"nodeType": "ParameterList",
"parameters": [],
"src": "1051:0:25"
},
"scope": 5175,
"src": "987:156:25",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "internal"
}
],
"scope": 5176,
"src": "178:967:25"
}
],
"src": "0:1146:25"
},
"legacyAST": {
"absolutePath": "zeppelin-solidity/contracts/introspection/SupportsInterfaceWithLookup.sol",
"exportedSymbols": {
"SupportsInterfaceWithLookup": [
5175
]
},
"id": 5176,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 5126,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:24:25"
},
{
"absolutePath": "zeppelin-solidity/contracts/introspection/ERC165.sol",
"file": "./ERC165.sol",
"id": 5127,
"nodeType": "ImportDirective",
"scope": 5176,
"sourceUnit": 5125,
"src": "26:22:25",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 5128,
"name": "ERC165",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 5124,
"src": "218:6:25",
"typeDescriptions": {
"typeIdentifier": "t_contract$_ERC165_$5124",
"typeString": "contract ERC165"
}
},
"id": 5129,
"nodeType": "InheritanceSpecifier",
"src": "218:6:25"
}
],
"contractDependencies": [
5124
],
"contractKind": "contract",
"documentation": "@title SupportsInterfaceWithLookup\n@author Matt Condon (@shrugs)\n@dev Implements ERC165 using a lookup table.",
"fullyImplemented": true,
"id": 5175,
"linearizedBaseContracts": [
5175,
5124
],
"name": "SupportsInterfaceWithLookup",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": true,
"id": 5132,
"name": "InterfaceId_ERC165",
"nodeType": "VariableDeclaration",
"scope": 5175,
"src": "230:54:25",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"typeName": {
"id": 5130,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "230:6:25",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"value": {
"argumentTypes": null,
"hexValue": "30783031666663396137",
"id": 5131,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "274:10:25",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_33540519_by_1",
"typeString": "int_const 33540519"
},
"value": "0x01ffc9a7"
},
"visibility": "public"
},
{
"constant": false,
"id": 5136,
"name": "supportedInterfaces",
"nodeType": "VariableDeclaration",
"scope": 5175,
"src": "456:52:25",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$",
"typeString": "mapping(bytes4 => bool)"
},
"typeName": {
"id": 5135,
"keyType": {
"id": 5133,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "464:6:25",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"nodeType": "Mapping",
"src": "456:23:25",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$",
"typeString": "mapping(bytes4 => bool)"
},
"valueType": {
"id": 5134,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "474:4:25",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
},
"value": null,
"visibility": "internal"
},
{
"body": {
"id": 5143,
"nodeType": "Block",
"src": "643:49:25",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 5140,
"name": "InterfaceId_ERC165",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5132,
"src": "668:18:25",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
],
"id": 5139,
"name": "_registerInterface",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5174,
"src": "649:18:25",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_bytes4_$returns$__$",
"typeString": "function (bytes4)"
}
},
"id": 5141,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "649:38:25",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 5142,
"nodeType": "ExpressionStatement",
"src": "649:38:25"
}
]
},
"documentation": "@dev A contract implementing SupportsInterfaceWithLookup\nimplement ERC165 itself",
"id": 5144,
"implemented": true,
"isConstructor": true,
"isDeclaredConst": false,
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5137,
"nodeType": "ParameterList",
"parameters": [],
"src": "627:2:25"
},
"payable": false,
"returnParameters": {
"id": 5138,
"nodeType": "ParameterList",
"parameters": [],
"src": "643:0:25"
},
"scope": 5175,
"src": "616:76:25",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 5155,
"nodeType": "Block",
"src": "866:51:25",
"statements": [
{
"expression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 5151,
"name": "supportedInterfaces",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5136,
"src": "879:19:25",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$",
"typeString": "mapping(bytes4 => bool)"
}
},
"id": 5153,
"indexExpression": {
"argumentTypes": null,
"id": 5152,
"name": "_interfaceId",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5146,
"src": "899:12:25",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "879:33:25",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"functionReturnParameters": 5150,
"id": 5154,
"nodeType": "Return",
"src": "872:40:25"
}
]
},
"documentation": "@dev implement supportsInterface(bytes4) using a lookup table",
"id": 5156,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "supportsInterface",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5147,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5146,
"name": "_interfaceId",
"nodeType": "VariableDeclaration",
"scope": 5156,
"src": "802:19:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"typeName": {
"id": 5145,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "802:6:25",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "801:21:25"
},
"payable": false,
"returnParameters": {
"id": 5150,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5149,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 5156,
"src": "858:4:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 5148,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "858:4:25",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "857:6:25"
},
"scope": 5175,
"src": "775:142:25",
"stateMutability": "view",
"superFunction": 5123,
"visibility": "external"
},
{
"body": {
"id": 5173,
"nodeType": "Block",
"src": "1051:92:25",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"id": 5164,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 5162,
"name": "_interfaceId",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5158,
"src": "1065:12:25",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"nodeType": "BinaryOperation",
"operator": "!=",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30786666666666666666",
"id": 5163,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1081:10:25",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_4294967295_by_1",
"typeString": "int_const 4294967295"
},
"value": "0xffffffff"
},
"src": "1065:26:25",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 5161,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
5448,
5449
],
"referencedDeclaration": 5448,
"src": "1057:7:25",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 5165,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1057:35:25",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 5166,
"nodeType": "ExpressionStatement",
"src": "1057:35:25"
},
{
"expression": {
"argumentTypes": null,
"id": 5171,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 5167,
"name": "supportedInterfaces",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5136,
"src": "1098:19:25",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$",
"typeString": "mapping(bytes4 => bool)"
}
},
"id": 5169,
"indexExpression": {
"argumentTypes": null,
"id": 5168,
"name": "_interfaceId",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5158,
"src": "1118:12:25",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "1098:33:25",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 5170,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1134:4:25",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"src": "1098:40:25",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 5172,
"nodeType": "ExpressionStatement",
"src": "1098:40:25"
}
]
},
"documentation": "@dev private method for registering an interface",
"id": 5174,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "_registerInterface",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5159,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5158,
"name": "_interfaceId",
"nodeType": "VariableDeclaration",
"scope": 5174,
"src": "1015:19:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"typeName": {
"id": 5157,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "1015:6:25",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1014:21:25"
},
"payable": false,
"returnParameters": {
"id": 5160,
"nodeType": "ParameterList",
"parameters": [],
"src": "1051:0:25"
},
"scope": 5175,
"src": "987:156:25",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "internal"
}
],
"scope": 5176,
"src": "178:967:25"
}
],
"src": "0:1146:25"
},
"compiler": {
"name": "solc",
"version": "0.4.24+commit.e67f0147.Emscripten.clang"
},
"networks": {},
"schemaVersion": "2.0.1",
"updatedAt": "2018-11-01T09:01:02.403Z"
}