tokenboost-solidity
Version:
Solidity contracts for TokenBoost
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:20:-;;;616:76;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;649:38:20;668:18;649;;;;:38;:::i;:::-;178:967;;987:156;1065:26;;;;;;1057:35;;;;;;1098:33;;:19;:33;;;;;;;;;;:40;;-1:-1:-1;;1098:40:20;1134:4;1098:40;;;987:156::o;178:967::-;;;;;;;",
"deployedSourceMap": "178:967:20:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;775:142;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;775:142:20;-1:-1:-1;;775:142:20;;;;;;;;;;;;;;;;;;;;;;;230:54;;8:9:-1;5:2;;;30:1;27;20:12;5:2;230:54:20;;;;;;;;-1:-1:-1;;230:54:20;;;;;;;;;;;;;;775:142;-1:-1:-1;;879:33:20;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": [
4704
]
},
"id": 4705,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 4655,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:24:20"
},
{
"absolutePath": "zeppelin-solidity/contracts/introspection/ERC165.sol",
"file": "./ERC165.sol",
"id": 4656,
"nodeType": "ImportDirective",
"scope": 4705,
"sourceUnit": 4654,
"src": "26:22:20",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 4657,
"name": "ERC165",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 4653,
"src": "218:6:20",
"typeDescriptions": {
"typeIdentifier": "t_contract$_ERC165_$4653",
"typeString": "contract ERC165"
}
},
"id": 4658,
"nodeType": "InheritanceSpecifier",
"src": "218:6:20"
}
],
"contractDependencies": [
4653
],
"contractKind": "contract",
"documentation": "@title SupportsInterfaceWithLookup\n@author Matt Condon (@shrugs)\n@dev Implements ERC165 using a lookup table.",
"fullyImplemented": true,
"id": 4704,
"linearizedBaseContracts": [
4704,
4653
],
"name": "SupportsInterfaceWithLookup",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": true,
"id": 4661,
"name": "InterfaceId_ERC165",
"nodeType": "VariableDeclaration",
"scope": 4704,
"src": "230:54:20",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"typeName": {
"id": 4659,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "230:6:20",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"value": {
"argumentTypes": null,
"hexValue": "30783031666663396137",
"id": 4660,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "274:10:20",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_33540519_by_1",
"typeString": "int_const 33540519"
},
"value": "0x01ffc9a7"
},
"visibility": "public"
},
{
"constant": false,
"id": 4665,
"name": "supportedInterfaces",
"nodeType": "VariableDeclaration",
"scope": 4704,
"src": "456:52:20",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$",
"typeString": "mapping(bytes4 => bool)"
},
"typeName": {
"id": 4664,
"keyType": {
"id": 4662,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "464:6:20",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"nodeType": "Mapping",
"src": "456:23:20",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$",
"typeString": "mapping(bytes4 => bool)"
},
"valueType": {
"id": 4663,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "474:4:20",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
},
"value": null,
"visibility": "internal"
},
{
"body": {
"id": 4672,
"nodeType": "Block",
"src": "643:49:20",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 4669,
"name": "InterfaceId_ERC165",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4661,
"src": "668:18:20",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
],
"id": 4668,
"name": "_registerInterface",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4703,
"src": "649:18:20",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_bytes4_$returns$__$",
"typeString": "function (bytes4)"
}
},
"id": 4670,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "649:38:20",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 4671,
"nodeType": "ExpressionStatement",
"src": "649:38:20"
}
]
},
"documentation": "@dev A contract implementing SupportsInterfaceWithLookup\nimplement ERC165 itself",
"id": 4673,
"implemented": true,
"isConstructor": true,
"isDeclaredConst": false,
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 4666,
"nodeType": "ParameterList",
"parameters": [],
"src": "627:2:20"
},
"payable": false,
"returnParameters": {
"id": 4667,
"nodeType": "ParameterList",
"parameters": [],
"src": "643:0:20"
},
"scope": 4704,
"src": "616:76:20",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 4684,
"nodeType": "Block",
"src": "866:51:20",
"statements": [
{
"expression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 4680,
"name": "supportedInterfaces",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4665,
"src": "879:19:20",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$",
"typeString": "mapping(bytes4 => bool)"
}
},
"id": 4682,
"indexExpression": {
"argumentTypes": null,
"id": 4681,
"name": "_interfaceId",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4675,
"src": "899:12:20",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "879:33:20",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"functionReturnParameters": 4679,
"id": 4683,
"nodeType": "Return",
"src": "872:40:20"
}
]
},
"documentation": "@dev implement supportsInterface(bytes4) using a lookup table",
"id": 4685,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "supportsInterface",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 4676,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4675,
"name": "_interfaceId",
"nodeType": "VariableDeclaration",
"scope": 4685,
"src": "802:19:20",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"typeName": {
"id": 4674,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "802:6:20",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "801:21:20"
},
"payable": false,
"returnParameters": {
"id": 4679,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4678,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 4685,
"src": "858:4:20",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 4677,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "858:4:20",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "857:6:20"
},
"scope": 4704,
"src": "775:142:20",
"stateMutability": "view",
"superFunction": 4652,
"visibility": "external"
},
{
"body": {
"id": 4702,
"nodeType": "Block",
"src": "1051:92:20",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"id": 4693,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 4691,
"name": "_interfaceId",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4687,
"src": "1065:12:20",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"nodeType": "BinaryOperation",
"operator": "!=",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30786666666666666666",
"id": 4692,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1081:10:20",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_4294967295_by_1",
"typeString": "int_const 4294967295"
},
"value": "0xffffffff"
},
"src": "1065:26:20",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 4690,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
6576,
6577
],
"referencedDeclaration": 6576,
"src": "1057:7:20",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 4694,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1057:35:20",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 4695,
"nodeType": "ExpressionStatement",
"src": "1057:35:20"
},
{
"expression": {
"argumentTypes": null,
"id": 4700,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 4696,
"name": "supportedInterfaces",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4665,
"src": "1098:19:20",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$",
"typeString": "mapping(bytes4 => bool)"
}
},
"id": 4698,
"indexExpression": {
"argumentTypes": null,
"id": 4697,
"name": "_interfaceId",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4687,
"src": "1118:12:20",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "1098:33:20",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 4699,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1134:4:20",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"src": "1098:40:20",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 4701,
"nodeType": "ExpressionStatement",
"src": "1098:40:20"
}
]
},
"documentation": "@dev private method for registering an interface",
"id": 4703,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "_registerInterface",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 4688,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4687,
"name": "_interfaceId",
"nodeType": "VariableDeclaration",
"scope": 4703,
"src": "1015:19:20",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"typeName": {
"id": 4686,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "1015:6:20",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1014:21:20"
},
"payable": false,
"returnParameters": {
"id": 4689,
"nodeType": "ParameterList",
"parameters": [],
"src": "1051:0:20"
},
"scope": 4704,
"src": "987:156:20",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "internal"
}
],
"scope": 4705,
"src": "178:967:20"
}
],
"src": "0:1146:20"
},
"legacyAST": {
"absolutePath": "zeppelin-solidity/contracts/introspection/SupportsInterfaceWithLookup.sol",
"exportedSymbols": {
"SupportsInterfaceWithLookup": [
4704
]
},
"id": 4705,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 4655,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:24:20"
},
{
"absolutePath": "zeppelin-solidity/contracts/introspection/ERC165.sol",
"file": "./ERC165.sol",
"id": 4656,
"nodeType": "ImportDirective",
"scope": 4705,
"sourceUnit": 4654,
"src": "26:22:20",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 4657,
"name": "ERC165",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 4653,
"src": "218:6:20",
"typeDescriptions": {
"typeIdentifier": "t_contract$_ERC165_$4653",
"typeString": "contract ERC165"
}
},
"id": 4658,
"nodeType": "InheritanceSpecifier",
"src": "218:6:20"
}
],
"contractDependencies": [
4653
],
"contractKind": "contract",
"documentation": "@title SupportsInterfaceWithLookup\n@author Matt Condon (@shrugs)\n@dev Implements ERC165 using a lookup table.",
"fullyImplemented": true,
"id": 4704,
"linearizedBaseContracts": [
4704,
4653
],
"name": "SupportsInterfaceWithLookup",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": true,
"id": 4661,
"name": "InterfaceId_ERC165",
"nodeType": "VariableDeclaration",
"scope": 4704,
"src": "230:54:20",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"typeName": {
"id": 4659,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "230:6:20",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"value": {
"argumentTypes": null,
"hexValue": "30783031666663396137",
"id": 4660,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "274:10:20",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_33540519_by_1",
"typeString": "int_const 33540519"
},
"value": "0x01ffc9a7"
},
"visibility": "public"
},
{
"constant": false,
"id": 4665,
"name": "supportedInterfaces",
"nodeType": "VariableDeclaration",
"scope": 4704,
"src": "456:52:20",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$",
"typeString": "mapping(bytes4 => bool)"
},
"typeName": {
"id": 4664,
"keyType": {
"id": 4662,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "464:6:20",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"nodeType": "Mapping",
"src": "456:23:20",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$",
"typeString": "mapping(bytes4 => bool)"
},
"valueType": {
"id": 4663,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "474:4:20",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
},
"value": null,
"visibility": "internal"
},
{
"body": {
"id": 4672,
"nodeType": "Block",
"src": "643:49:20",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 4669,
"name": "InterfaceId_ERC165",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4661,
"src": "668:18:20",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
],
"id": 4668,
"name": "_registerInterface",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4703,
"src": "649:18:20",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_bytes4_$returns$__$",
"typeString": "function (bytes4)"
}
},
"id": 4670,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "649:38:20",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 4671,
"nodeType": "ExpressionStatement",
"src": "649:38:20"
}
]
},
"documentation": "@dev A contract implementing SupportsInterfaceWithLookup\nimplement ERC165 itself",
"id": 4673,
"implemented": true,
"isConstructor": true,
"isDeclaredConst": false,
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 4666,
"nodeType": "ParameterList",
"parameters": [],
"src": "627:2:20"
},
"payable": false,
"returnParameters": {
"id": 4667,
"nodeType": "ParameterList",
"parameters": [],
"src": "643:0:20"
},
"scope": 4704,
"src": "616:76:20",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 4684,
"nodeType": "Block",
"src": "866:51:20",
"statements": [
{
"expression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 4680,
"name": "supportedInterfaces",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4665,
"src": "879:19:20",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$",
"typeString": "mapping(bytes4 => bool)"
}
},
"id": 4682,
"indexExpression": {
"argumentTypes": null,
"id": 4681,
"name": "_interfaceId",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4675,
"src": "899:12:20",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "879:33:20",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"functionReturnParameters": 4679,
"id": 4683,
"nodeType": "Return",
"src": "872:40:20"
}
]
},
"documentation": "@dev implement supportsInterface(bytes4) using a lookup table",
"id": 4685,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "supportsInterface",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 4676,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4675,
"name": "_interfaceId",
"nodeType": "VariableDeclaration",
"scope": 4685,
"src": "802:19:20",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"typeName": {
"id": 4674,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "802:6:20",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "801:21:20"
},
"payable": false,
"returnParameters": {
"id": 4679,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4678,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 4685,
"src": "858:4:20",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 4677,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "858:4:20",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "857:6:20"
},
"scope": 4704,
"src": "775:142:20",
"stateMutability": "view",
"superFunction": 4652,
"visibility": "external"
},
{
"body": {
"id": 4702,
"nodeType": "Block",
"src": "1051:92:20",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"id": 4693,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 4691,
"name": "_interfaceId",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4687,
"src": "1065:12:20",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"nodeType": "BinaryOperation",
"operator": "!=",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30786666666666666666",
"id": 4692,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1081:10:20",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_4294967295_by_1",
"typeString": "int_const 4294967295"
},
"value": "0xffffffff"
},
"src": "1065:26:20",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 4690,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
6576,
6577
],
"referencedDeclaration": 6576,
"src": "1057:7:20",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 4694,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1057:35:20",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 4695,
"nodeType": "ExpressionStatement",
"src": "1057:35:20"
},
{
"expression": {
"argumentTypes": null,
"id": 4700,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 4696,
"name": "supportedInterfaces",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4665,
"src": "1098:19:20",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$",
"typeString": "mapping(bytes4 => bool)"
}
},
"id": 4698,
"indexExpression": {
"argumentTypes": null,
"id": 4697,
"name": "_interfaceId",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4687,
"src": "1118:12:20",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "1098:33:20",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 4699,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1134:4:20",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"src": "1098:40:20",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 4701,
"nodeType": "ExpressionStatement",
"src": "1098:40:20"
}
]
},
"documentation": "@dev private method for registering an interface",
"id": 4703,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "_registerInterface",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 4688,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4687,
"name": "_interfaceId",
"nodeType": "VariableDeclaration",
"scope": 4703,
"src": "1015:19:20",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"typeName": {
"id": 4686,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "1015:6:20",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1014:21:20"
},
"payable": false,
"returnParameters": {
"id": 4689,
"nodeType": "ParameterList",
"parameters": [],
"src": "1051:0:20"
},
"scope": 4704,
"src": "987:156:20",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "internal"
}
],
"scope": 4705,
"src": "178:967:20"
}
],
"src": "0:1146:20"
},
"compiler": {
"name": "solc",
"version": "0.4.24+commit.e67f0147.Emscripten.clang"
},
"networks": {},
"schemaVersion": "2.0.1",
"updatedAt": "2018-10-31T09:02:05.436Z"
}