1297 lines
49 KiB
JSON
1297 lines
49 KiB
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": "0x608060405234801561001057600080fd5b5061004c6301ffc9a77c010000000000000000000000000000000000000000000000000000000002610051640100000000026401000000009004565b61010e565b63ffffffff7c010000000000000000000000000000000000000000000000000000000002817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916141515156100a257600080fd5b6001600080837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6101d88061011d6000396000f30060806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806301ffc9a71461005157806319fa8f50146100b5575b600080fd5b34801561005d57600080fd5b5061009b60048036038101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916906020019092919050505061011e565b604051808215151515815260200191505060405180910390f35b3480156100c157600080fd5b506100ca610185565b60405180827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200191505060405180910390f35b6000806000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff169050919050565b6301ffc9a77c010000000000000000000000000000000000000000000000000000000002815600a165627a7a7230582038c6c9fb266d7cfcab5351cc82343b0c8577b5d0c73baaa8dcb394ea10d998080029",
|
|
"deployedBytecode": "0x60806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806301ffc9a71461005157806319fa8f50146100b5575b600080fd5b34801561005d57600080fd5b5061009b60048036038101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916906020019092919050505061011e565b604051808215151515815260200191505060405180910390f35b3480156100c157600080fd5b506100ca610185565b60405180827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200191505060405180910390f35b6000806000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff169050919050565b6301ffc9a77c010000000000000000000000000000000000000000000000000000000002815600a165627a7a7230582038c6c9fb266d7cfcab5351cc82343b0c8577b5d0c73baaa8dcb394ea10d998080029",
|
|
"sourceMap": "178:967:4:-;;;616:76;8:9:-1;5:2;;;30:1;27;20:12;5:2;616:76:4;649:38;274:10;668:18;;649;;;:38;;;:::i;:::-;178:967;;987:156;1081:10;1065:26;;:12;:26;;;;;1057:35;;;;;;;;1134:4;1098:19;:33;1118:12;1098:33;;;;;;;;;;;;;;;;;;:40;;;;;;;;;;;;;;;;;;987:156;:::o;178:967::-;;;;;;;",
|
|
"deployedSourceMap": "178:967:4:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;775:142;;8:9:-1;5:2;;;30:1;27;20:12;5:2;775:142:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;230:54;;8:9:-1;5:2;;;30:1;27;20:12;5:2;230:54:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;775:142;858:4;879:19;:33;899:12;879:33;;;;;;;;;;;;;;;;;;;;;;;;;;;872:40;;775:142;;;:::o;230:54::-;274:10;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": "/Users/willpark/Desktop/bookwork-blockchain/testcodes/9nftdapp-new/backend-nftdapp/node_modules/zeppelin-solidity/contracts/introspection/SupportsInterfaceWithLookup.sol",
|
|
"ast": {
|
|
"absolutePath": "/Users/willpark/Desktop/bookwork-blockchain/testcodes/9nftdapp-new/backend-nftdapp/node_modules/zeppelin-solidity/contracts/introspection/SupportsInterfaceWithLookup.sol",
|
|
"exportedSymbols": {
|
|
"SupportsInterfaceWithLookup": [
|
|
474
|
|
]
|
|
},
|
|
"id": 475,
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 425,
|
|
"literals": [
|
|
"solidity",
|
|
"^",
|
|
"0.4",
|
|
".24"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "0:24:4"
|
|
},
|
|
{
|
|
"absolutePath": "/Users/willpark/Desktop/bookwork-blockchain/testcodes/9nftdapp-new/backend-nftdapp/node_modules/zeppelin-solidity/contracts/introspection/ERC165.sol",
|
|
"file": "./ERC165.sol",
|
|
"id": 426,
|
|
"nodeType": "ImportDirective",
|
|
"scope": 475,
|
|
"sourceUnit": 424,
|
|
"src": "26:22:4",
|
|
"symbolAliases": [],
|
|
"unitAlias": ""
|
|
},
|
|
{
|
|
"baseContracts": [
|
|
{
|
|
"arguments": null,
|
|
"baseName": {
|
|
"contractScope": null,
|
|
"id": 427,
|
|
"name": "ERC165",
|
|
"nodeType": "UserDefinedTypeName",
|
|
"referencedDeclaration": 423,
|
|
"src": "218:6:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_ERC165_$423",
|
|
"typeString": "contract ERC165"
|
|
}
|
|
},
|
|
"id": 428,
|
|
"nodeType": "InheritanceSpecifier",
|
|
"src": "218:6:4"
|
|
}
|
|
],
|
|
"contractDependencies": [
|
|
423
|
|
],
|
|
"contractKind": "contract",
|
|
"documentation": "@title SupportsInterfaceWithLookup\n@author Matt Condon (@shrugs)\n@dev Implements ERC165 using a lookup table.",
|
|
"fullyImplemented": true,
|
|
"id": 474,
|
|
"linearizedBaseContracts": [
|
|
474,
|
|
423
|
|
],
|
|
"name": "SupportsInterfaceWithLookup",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"constant": true,
|
|
"id": 431,
|
|
"name": "InterfaceId_ERC165",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 474,
|
|
"src": "230:54:4",
|
|
"stateVariable": true,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
},
|
|
"typeName": {
|
|
"id": 429,
|
|
"name": "bytes4",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "230:6:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
},
|
|
"value": {
|
|
"argumentTypes": null,
|
|
"hexValue": "30783031666663396137",
|
|
"id": 430,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "274:10:4",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_33540519_by_1",
|
|
"typeString": "int_const 33540519"
|
|
},
|
|
"value": "0x01ffc9a7"
|
|
},
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 435,
|
|
"name": "supportedInterfaces",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 474,
|
|
"src": "456:52:4",
|
|
"stateVariable": true,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$",
|
|
"typeString": "mapping(bytes4 => bool)"
|
|
},
|
|
"typeName": {
|
|
"id": 434,
|
|
"keyType": {
|
|
"id": 432,
|
|
"name": "bytes4",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "464:6:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
},
|
|
"nodeType": "Mapping",
|
|
"src": "456:23:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$",
|
|
"typeString": "mapping(bytes4 => bool)"
|
|
},
|
|
"valueType": {
|
|
"id": 433,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "474:4:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 442,
|
|
"nodeType": "Block",
|
|
"src": "643:49:4",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 439,
|
|
"name": "InterfaceId_ERC165",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 431,
|
|
"src": "668:18:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
],
|
|
"id": 438,
|
|
"name": "_registerInterface",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 473,
|
|
"src": "649:18:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_internal_nonpayable$_t_bytes4_$returns$__$",
|
|
"typeString": "function (bytes4)"
|
|
}
|
|
},
|
|
"id": 440,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "649:38:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 441,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "649:38:4"
|
|
}
|
|
]
|
|
},
|
|
"documentation": "@dev A contract implementing SupportsInterfaceWithLookup\nimplement ERC165 itself",
|
|
"id": 443,
|
|
"implemented": true,
|
|
"isConstructor": true,
|
|
"isDeclaredConst": false,
|
|
"modifiers": [],
|
|
"name": "",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 436,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "627:2:4"
|
|
},
|
|
"payable": false,
|
|
"returnParameters": {
|
|
"id": 437,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "643:0:4"
|
|
},
|
|
"scope": 474,
|
|
"src": "616:76:4",
|
|
"stateMutability": "nonpayable",
|
|
"superFunction": null,
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 454,
|
|
"nodeType": "Block",
|
|
"src": "866:51:4",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"baseExpression": {
|
|
"argumentTypes": null,
|
|
"id": 450,
|
|
"name": "supportedInterfaces",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 435,
|
|
"src": "879:19:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$",
|
|
"typeString": "mapping(bytes4 => bool)"
|
|
}
|
|
},
|
|
"id": 452,
|
|
"indexExpression": {
|
|
"argumentTypes": null,
|
|
"id": 451,
|
|
"name": "_interfaceId",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 445,
|
|
"src": "899:12:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "879:33:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"functionReturnParameters": 449,
|
|
"id": 453,
|
|
"nodeType": "Return",
|
|
"src": "872:40:4"
|
|
}
|
|
]
|
|
},
|
|
"documentation": "@dev implement supportsInterface(bytes4) using a lookup table",
|
|
"id": 455,
|
|
"implemented": true,
|
|
"isConstructor": false,
|
|
"isDeclaredConst": true,
|
|
"modifiers": [],
|
|
"name": "supportsInterface",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 446,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 445,
|
|
"name": "_interfaceId",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 455,
|
|
"src": "802:19:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
},
|
|
"typeName": {
|
|
"id": 444,
|
|
"name": "bytes4",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "802:6:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "801:21:4"
|
|
},
|
|
"payable": false,
|
|
"returnParameters": {
|
|
"id": 449,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 448,
|
|
"name": "",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 455,
|
|
"src": "858:4:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 447,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "858:4:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "857:6:4"
|
|
},
|
|
"scope": 474,
|
|
"src": "775:142:4",
|
|
"stateMutability": "view",
|
|
"superFunction": 422,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 472,
|
|
"nodeType": "Block",
|
|
"src": "1051:92:4",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"commonType": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
},
|
|
"id": 463,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"argumentTypes": null,
|
|
"id": 461,
|
|
"name": "_interfaceId",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 457,
|
|
"src": "1065:12:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "!=",
|
|
"rightExpression": {
|
|
"argumentTypes": null,
|
|
"hexValue": "30786666666666666666",
|
|
"id": 462,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1081:10:4",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_4294967295_by_1",
|
|
"typeString": "int_const 4294967295"
|
|
},
|
|
"value": "0xffffffff"
|
|
},
|
|
"src": "1065:26:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
],
|
|
"id": 460,
|
|
"name": "require",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [
|
|
1702,
|
|
1703
|
|
],
|
|
"referencedDeclaration": 1702,
|
|
"src": "1057:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
|
|
"typeString": "function (bool) pure"
|
|
}
|
|
},
|
|
"id": 464,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1057:35:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 465,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1057:35:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 470,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"argumentTypes": null,
|
|
"baseExpression": {
|
|
"argumentTypes": null,
|
|
"id": 466,
|
|
"name": "supportedInterfaces",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 435,
|
|
"src": "1098:19:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$",
|
|
"typeString": "mapping(bytes4 => bool)"
|
|
}
|
|
},
|
|
"id": 468,
|
|
"indexExpression": {
|
|
"argumentTypes": null,
|
|
"id": 467,
|
|
"name": "_interfaceId",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 457,
|
|
"src": "1118:12:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"nodeType": "IndexAccess",
|
|
"src": "1098:33:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"argumentTypes": null,
|
|
"hexValue": "74727565",
|
|
"id": 469,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "bool",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1134:4:4",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"value": "true"
|
|
},
|
|
"src": "1098:40:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"id": 471,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1098:40:4"
|
|
}
|
|
]
|
|
},
|
|
"documentation": "@dev private method for registering an interface",
|
|
"id": 473,
|
|
"implemented": true,
|
|
"isConstructor": false,
|
|
"isDeclaredConst": false,
|
|
"modifiers": [],
|
|
"name": "_registerInterface",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 458,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 457,
|
|
"name": "_interfaceId",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 473,
|
|
"src": "1015:19:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
},
|
|
"typeName": {
|
|
"id": 456,
|
|
"name": "bytes4",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1015:6:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1014:21:4"
|
|
},
|
|
"payable": false,
|
|
"returnParameters": {
|
|
"id": 459,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "1051:0:4"
|
|
},
|
|
"scope": 474,
|
|
"src": "987:156:4",
|
|
"stateMutability": "nonpayable",
|
|
"superFunction": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"scope": 475,
|
|
"src": "178:967:4"
|
|
}
|
|
],
|
|
"src": "0:1146:4"
|
|
},
|
|
"legacyAST": {
|
|
"absolutePath": "/Users/willpark/Desktop/bookwork-blockchain/testcodes/9nftdapp-new/backend-nftdapp/node_modules/zeppelin-solidity/contracts/introspection/SupportsInterfaceWithLookup.sol",
|
|
"exportedSymbols": {
|
|
"SupportsInterfaceWithLookup": [
|
|
474
|
|
]
|
|
},
|
|
"id": 475,
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 425,
|
|
"literals": [
|
|
"solidity",
|
|
"^",
|
|
"0.4",
|
|
".24"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "0:24:4"
|
|
},
|
|
{
|
|
"absolutePath": "/Users/willpark/Desktop/bookwork-blockchain/testcodes/9nftdapp-new/backend-nftdapp/node_modules/zeppelin-solidity/contracts/introspection/ERC165.sol",
|
|
"file": "./ERC165.sol",
|
|
"id": 426,
|
|
"nodeType": "ImportDirective",
|
|
"scope": 475,
|
|
"sourceUnit": 424,
|
|
"src": "26:22:4",
|
|
"symbolAliases": [],
|
|
"unitAlias": ""
|
|
},
|
|
{
|
|
"baseContracts": [
|
|
{
|
|
"arguments": null,
|
|
"baseName": {
|
|
"contractScope": null,
|
|
"id": 427,
|
|
"name": "ERC165",
|
|
"nodeType": "UserDefinedTypeName",
|
|
"referencedDeclaration": 423,
|
|
"src": "218:6:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_ERC165_$423",
|
|
"typeString": "contract ERC165"
|
|
}
|
|
},
|
|
"id": 428,
|
|
"nodeType": "InheritanceSpecifier",
|
|
"src": "218:6:4"
|
|
}
|
|
],
|
|
"contractDependencies": [
|
|
423
|
|
],
|
|
"contractKind": "contract",
|
|
"documentation": "@title SupportsInterfaceWithLookup\n@author Matt Condon (@shrugs)\n@dev Implements ERC165 using a lookup table.",
|
|
"fullyImplemented": true,
|
|
"id": 474,
|
|
"linearizedBaseContracts": [
|
|
474,
|
|
423
|
|
],
|
|
"name": "SupportsInterfaceWithLookup",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"constant": true,
|
|
"id": 431,
|
|
"name": "InterfaceId_ERC165",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 474,
|
|
"src": "230:54:4",
|
|
"stateVariable": true,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
},
|
|
"typeName": {
|
|
"id": 429,
|
|
"name": "bytes4",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "230:6:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
},
|
|
"value": {
|
|
"argumentTypes": null,
|
|
"hexValue": "30783031666663396137",
|
|
"id": 430,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "274:10:4",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_33540519_by_1",
|
|
"typeString": "int_const 33540519"
|
|
},
|
|
"value": "0x01ffc9a7"
|
|
},
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 435,
|
|
"name": "supportedInterfaces",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 474,
|
|
"src": "456:52:4",
|
|
"stateVariable": true,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$",
|
|
"typeString": "mapping(bytes4 => bool)"
|
|
},
|
|
"typeName": {
|
|
"id": 434,
|
|
"keyType": {
|
|
"id": 432,
|
|
"name": "bytes4",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "464:6:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
},
|
|
"nodeType": "Mapping",
|
|
"src": "456:23:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$",
|
|
"typeString": "mapping(bytes4 => bool)"
|
|
},
|
|
"valueType": {
|
|
"id": 433,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "474:4:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 442,
|
|
"nodeType": "Block",
|
|
"src": "643:49:4",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 439,
|
|
"name": "InterfaceId_ERC165",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 431,
|
|
"src": "668:18:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
],
|
|
"id": 438,
|
|
"name": "_registerInterface",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 473,
|
|
"src": "649:18:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_internal_nonpayable$_t_bytes4_$returns$__$",
|
|
"typeString": "function (bytes4)"
|
|
}
|
|
},
|
|
"id": 440,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "649:38:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 441,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "649:38:4"
|
|
}
|
|
]
|
|
},
|
|
"documentation": "@dev A contract implementing SupportsInterfaceWithLookup\nimplement ERC165 itself",
|
|
"id": 443,
|
|
"implemented": true,
|
|
"isConstructor": true,
|
|
"isDeclaredConst": false,
|
|
"modifiers": [],
|
|
"name": "",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 436,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "627:2:4"
|
|
},
|
|
"payable": false,
|
|
"returnParameters": {
|
|
"id": 437,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "643:0:4"
|
|
},
|
|
"scope": 474,
|
|
"src": "616:76:4",
|
|
"stateMutability": "nonpayable",
|
|
"superFunction": null,
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 454,
|
|
"nodeType": "Block",
|
|
"src": "866:51:4",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"baseExpression": {
|
|
"argumentTypes": null,
|
|
"id": 450,
|
|
"name": "supportedInterfaces",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 435,
|
|
"src": "879:19:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$",
|
|
"typeString": "mapping(bytes4 => bool)"
|
|
}
|
|
},
|
|
"id": 452,
|
|
"indexExpression": {
|
|
"argumentTypes": null,
|
|
"id": 451,
|
|
"name": "_interfaceId",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 445,
|
|
"src": "899:12:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "879:33:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"functionReturnParameters": 449,
|
|
"id": 453,
|
|
"nodeType": "Return",
|
|
"src": "872:40:4"
|
|
}
|
|
]
|
|
},
|
|
"documentation": "@dev implement supportsInterface(bytes4) using a lookup table",
|
|
"id": 455,
|
|
"implemented": true,
|
|
"isConstructor": false,
|
|
"isDeclaredConst": true,
|
|
"modifiers": [],
|
|
"name": "supportsInterface",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 446,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 445,
|
|
"name": "_interfaceId",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 455,
|
|
"src": "802:19:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
},
|
|
"typeName": {
|
|
"id": 444,
|
|
"name": "bytes4",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "802:6:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "801:21:4"
|
|
},
|
|
"payable": false,
|
|
"returnParameters": {
|
|
"id": 449,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 448,
|
|
"name": "",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 455,
|
|
"src": "858:4:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 447,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "858:4:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "857:6:4"
|
|
},
|
|
"scope": 474,
|
|
"src": "775:142:4",
|
|
"stateMutability": "view",
|
|
"superFunction": 422,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 472,
|
|
"nodeType": "Block",
|
|
"src": "1051:92:4",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"commonType": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
},
|
|
"id": 463,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"argumentTypes": null,
|
|
"id": 461,
|
|
"name": "_interfaceId",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 457,
|
|
"src": "1065:12:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "!=",
|
|
"rightExpression": {
|
|
"argumentTypes": null,
|
|
"hexValue": "30786666666666666666",
|
|
"id": 462,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1081:10:4",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_4294967295_by_1",
|
|
"typeString": "int_const 4294967295"
|
|
},
|
|
"value": "0xffffffff"
|
|
},
|
|
"src": "1065:26:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
],
|
|
"id": 460,
|
|
"name": "require",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [
|
|
1702,
|
|
1703
|
|
],
|
|
"referencedDeclaration": 1702,
|
|
"src": "1057:7:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
|
|
"typeString": "function (bool) pure"
|
|
}
|
|
},
|
|
"id": 464,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1057:35:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 465,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1057:35:4"
|
|
},
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 470,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"argumentTypes": null,
|
|
"baseExpression": {
|
|
"argumentTypes": null,
|
|
"id": 466,
|
|
"name": "supportedInterfaces",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 435,
|
|
"src": "1098:19:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$",
|
|
"typeString": "mapping(bytes4 => bool)"
|
|
}
|
|
},
|
|
"id": 468,
|
|
"indexExpression": {
|
|
"argumentTypes": null,
|
|
"id": 467,
|
|
"name": "_interfaceId",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 457,
|
|
"src": "1118:12:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"nodeType": "IndexAccess",
|
|
"src": "1098:33:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"argumentTypes": null,
|
|
"hexValue": "74727565",
|
|
"id": 469,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "bool",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1134:4:4",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"value": "true"
|
|
},
|
|
"src": "1098:40:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"id": 471,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1098:40:4"
|
|
}
|
|
]
|
|
},
|
|
"documentation": "@dev private method for registering an interface",
|
|
"id": 473,
|
|
"implemented": true,
|
|
"isConstructor": false,
|
|
"isDeclaredConst": false,
|
|
"modifiers": [],
|
|
"name": "_registerInterface",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 458,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 457,
|
|
"name": "_interfaceId",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 473,
|
|
"src": "1015:19:4",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
},
|
|
"typeName": {
|
|
"id": 456,
|
|
"name": "bytes4",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1015:6:4",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1014:21:4"
|
|
},
|
|
"payable": false,
|
|
"returnParameters": {
|
|
"id": 459,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "1051:0:4"
|
|
},
|
|
"scope": 474,
|
|
"src": "987:156:4",
|
|
"stateMutability": "nonpayable",
|
|
"superFunction": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"scope": 475,
|
|
"src": "178:967:4"
|
|
}
|
|
],
|
|
"src": "0:1146:4"
|
|
},
|
|
"compiler": {
|
|
"name": "solc",
|
|
"version": "0.4.25+commit.59dbf8f1.Emscripten.clang"
|
|
},
|
|
"networks": {},
|
|
"schemaVersion": "2.0.2",
|
|
"updatedAt": "2019-01-10T18:16:54.182Z"
|
|
} |