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": "0x608060405234801561001057600080fd5b5061004c6301ffc9a77c010000000000000000000000000000000000000000000000000000000002610051640100000000026401000000009004565b61010e565b63ffffffff7c010000000000000000000000000000000000000000000000000000000002817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916141515156100a257600080fd5b6001600080837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6101d88061011d6000396000f30060806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806301ffc9a71461005157806319fa8f50146100b5575b600080fd5b34801561005d57600080fd5b5061009b60048036038101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916906020019092919050505061011e565b604051808215151515815260200191505060405180910390f35b3480156100c157600080fd5b506100ca610185565b60405180827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200191505060405180910390f35b6000806000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff169050919050565b6301ffc9a77c010000000000000000000000000000000000000000000000000000000002815600a165627a7a72305820f2610f5b2d0bd89a39512f71a34538ec1d0b2d96c22f42285229e4e6c4c9efe70029",
|
|
"deployedBytecode": "0x60806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806301ffc9a71461005157806319fa8f50146100b5575b600080fd5b34801561005d57600080fd5b5061009b60048036038101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916906020019092919050505061011e565b604051808215151515815260200191505060405180910390f35b3480156100c157600080fd5b506100ca610185565b60405180827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200191505060405180910390f35b6000806000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff169050919050565b6301ffc9a77c010000000000000000000000000000000000000000000000000000000002815600a165627a7a72305820f2610f5b2d0bd89a39512f71a34538ec1d0b2d96c22f42285229e4e6c4c9efe70029",
|
|
"sourceMap": "178:967:5:-;;;616:76;8:9:-1;5:2;;;30:1;27;20:12;5:2;616:76:5;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:5:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;775:142;;8:9:-1;5:2;;;30:1;27;20:12;5:2;775:142:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;230:54;;8:9:-1;5:2;;;30:1;27;20:12;5:2;230:54:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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-klaytn/project_codes/nftbapp/backend-nftdapp/node_modules/zeppelin-solidity/contracts/introspection/SupportsInterfaceWithLookup.sol",
|
|
"ast": {
|
|
"absolutePath": "/Users/willpark/Desktop/bookwork-klaytn/project_codes/nftbapp/backend-nftdapp/node_modules/zeppelin-solidity/contracts/introspection/SupportsInterfaceWithLookup.sol",
|
|
"exportedSymbols": {
|
|
"SupportsInterfaceWithLookup": [
|
|
531
|
|
]
|
|
},
|
|
"id": 532,
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 482,
|
|
"literals": [
|
|
"solidity",
|
|
"^",
|
|
"0.4",
|
|
".24"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "0:24:5"
|
|
},
|
|
{
|
|
"absolutePath": "/Users/willpark/Desktop/bookwork-klaytn/project_codes/nftbapp/backend-nftdapp/node_modules/zeppelin-solidity/contracts/introspection/ERC165.sol",
|
|
"file": "./ERC165.sol",
|
|
"id": 483,
|
|
"nodeType": "ImportDirective",
|
|
"scope": 532,
|
|
"sourceUnit": 481,
|
|
"src": "26:22:5",
|
|
"symbolAliases": [],
|
|
"unitAlias": ""
|
|
},
|
|
{
|
|
"baseContracts": [
|
|
{
|
|
"arguments": null,
|
|
"baseName": {
|
|
"contractScope": null,
|
|
"id": 484,
|
|
"name": "ERC165",
|
|
"nodeType": "UserDefinedTypeName",
|
|
"referencedDeclaration": 480,
|
|
"src": "218:6:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_ERC165_$480",
|
|
"typeString": "contract ERC165"
|
|
}
|
|
},
|
|
"id": 485,
|
|
"nodeType": "InheritanceSpecifier",
|
|
"src": "218:6:5"
|
|
}
|
|
],
|
|
"contractDependencies": [
|
|
480
|
|
],
|
|
"contractKind": "contract",
|
|
"documentation": "@title SupportsInterfaceWithLookup\n@author Matt Condon (@shrugs)\n@dev Implements ERC165 using a lookup table.",
|
|
"fullyImplemented": true,
|
|
"id": 531,
|
|
"linearizedBaseContracts": [
|
|
531,
|
|
480
|
|
],
|
|
"name": "SupportsInterfaceWithLookup",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"constant": true,
|
|
"id": 488,
|
|
"name": "InterfaceId_ERC165",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 531,
|
|
"src": "230:54:5",
|
|
"stateVariable": true,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
},
|
|
"typeName": {
|
|
"id": 486,
|
|
"name": "bytes4",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "230:6:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
},
|
|
"value": {
|
|
"argumentTypes": null,
|
|
"hexValue": "30783031666663396137",
|
|
"id": 487,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "274:10:5",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_33540519_by_1",
|
|
"typeString": "int_const 33540519"
|
|
},
|
|
"value": "0x01ffc9a7"
|
|
},
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 492,
|
|
"name": "supportedInterfaces",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 531,
|
|
"src": "456:52:5",
|
|
"stateVariable": true,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$",
|
|
"typeString": "mapping(bytes4 => bool)"
|
|
},
|
|
"typeName": {
|
|
"id": 491,
|
|
"keyType": {
|
|
"id": 489,
|
|
"name": "bytes4",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "464:6:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
},
|
|
"nodeType": "Mapping",
|
|
"src": "456:23:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$",
|
|
"typeString": "mapping(bytes4 => bool)"
|
|
},
|
|
"valueType": {
|
|
"id": 490,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "474:4:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 499,
|
|
"nodeType": "Block",
|
|
"src": "643:49:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 496,
|
|
"name": "InterfaceId_ERC165",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 488,
|
|
"src": "668:18:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
],
|
|
"id": 495,
|
|
"name": "_registerInterface",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 530,
|
|
"src": "649:18:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_internal_nonpayable$_t_bytes4_$returns$__$",
|
|
"typeString": "function (bytes4)"
|
|
}
|
|
},
|
|
"id": 497,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "649:38:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 498,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "649:38:5"
|
|
}
|
|
]
|
|
},
|
|
"documentation": "@dev A contract implementing SupportsInterfaceWithLookup\nimplement ERC165 itself",
|
|
"id": 500,
|
|
"implemented": true,
|
|
"isConstructor": true,
|
|
"isDeclaredConst": false,
|
|
"modifiers": [],
|
|
"name": "",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 493,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "627:2:5"
|
|
},
|
|
"payable": false,
|
|
"returnParameters": {
|
|
"id": 494,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "643:0:5"
|
|
},
|
|
"scope": 531,
|
|
"src": "616:76:5",
|
|
"stateMutability": "nonpayable",
|
|
"superFunction": null,
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 511,
|
|
"nodeType": "Block",
|
|
"src": "866:51:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"baseExpression": {
|
|
"argumentTypes": null,
|
|
"id": 507,
|
|
"name": "supportedInterfaces",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 492,
|
|
"src": "879:19:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$",
|
|
"typeString": "mapping(bytes4 => bool)"
|
|
}
|
|
},
|
|
"id": 509,
|
|
"indexExpression": {
|
|
"argumentTypes": null,
|
|
"id": 508,
|
|
"name": "_interfaceId",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 502,
|
|
"src": "899:12:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "879:33:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"functionReturnParameters": 506,
|
|
"id": 510,
|
|
"nodeType": "Return",
|
|
"src": "872:40:5"
|
|
}
|
|
]
|
|
},
|
|
"documentation": "@dev implement supportsInterface(bytes4) using a lookup table",
|
|
"id": 512,
|
|
"implemented": true,
|
|
"isConstructor": false,
|
|
"isDeclaredConst": true,
|
|
"modifiers": [],
|
|
"name": "supportsInterface",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 503,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 502,
|
|
"name": "_interfaceId",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 512,
|
|
"src": "802:19:5",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
},
|
|
"typeName": {
|
|
"id": 501,
|
|
"name": "bytes4",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "802:6:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "801:21:5"
|
|
},
|
|
"payable": false,
|
|
"returnParameters": {
|
|
"id": 506,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 505,
|
|
"name": "",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 512,
|
|
"src": "858:4:5",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 504,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "858:4:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "857:6:5"
|
|
},
|
|
"scope": 531,
|
|
"src": "775:142:5",
|
|
"stateMutability": "view",
|
|
"superFunction": 479,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 529,
|
|
"nodeType": "Block",
|
|
"src": "1051:92:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"commonType": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
},
|
|
"id": 520,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"argumentTypes": null,
|
|
"id": 518,
|
|
"name": "_interfaceId",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 514,
|
|
"src": "1065:12:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "!=",
|
|
"rightExpression": {
|
|
"argumentTypes": null,
|
|
"hexValue": "30786666666666666666",
|
|
"id": 519,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1081:10:5",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_4294967295_by_1",
|
|
"typeString": "int_const 4294967295"
|
|
},
|
|
"value": "0xffffffff"
|
|
},
|
|
"src": "1065:26:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
],
|
|
"id": 517,
|
|
"name": "require",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [
|
|
1759,
|
|
1760
|
|
],
|
|
"referencedDeclaration": 1759,
|
|
"src": "1057:7:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
|
|
"typeString": "function (bool) pure"
|
|
}
|
|
},
|
|
"id": 521,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1057:35:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 522,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1057:35:5"
|
|
},
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 527,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"argumentTypes": null,
|
|
"baseExpression": {
|
|
"argumentTypes": null,
|
|
"id": 523,
|
|
"name": "supportedInterfaces",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 492,
|
|
"src": "1098:19:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$",
|
|
"typeString": "mapping(bytes4 => bool)"
|
|
}
|
|
},
|
|
"id": 525,
|
|
"indexExpression": {
|
|
"argumentTypes": null,
|
|
"id": 524,
|
|
"name": "_interfaceId",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 514,
|
|
"src": "1118:12:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"nodeType": "IndexAccess",
|
|
"src": "1098:33:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"argumentTypes": null,
|
|
"hexValue": "74727565",
|
|
"id": 526,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "bool",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1134:4:5",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"value": "true"
|
|
},
|
|
"src": "1098:40:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"id": 528,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1098:40:5"
|
|
}
|
|
]
|
|
},
|
|
"documentation": "@dev private method for registering an interface",
|
|
"id": 530,
|
|
"implemented": true,
|
|
"isConstructor": false,
|
|
"isDeclaredConst": false,
|
|
"modifiers": [],
|
|
"name": "_registerInterface",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 515,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 514,
|
|
"name": "_interfaceId",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 530,
|
|
"src": "1015:19:5",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
},
|
|
"typeName": {
|
|
"id": 513,
|
|
"name": "bytes4",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1015:6:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1014:21:5"
|
|
},
|
|
"payable": false,
|
|
"returnParameters": {
|
|
"id": 516,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "1051:0:5"
|
|
},
|
|
"scope": 531,
|
|
"src": "987:156:5",
|
|
"stateMutability": "nonpayable",
|
|
"superFunction": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"scope": 532,
|
|
"src": "178:967:5"
|
|
}
|
|
],
|
|
"src": "0:1146:5"
|
|
},
|
|
"legacyAST": {
|
|
"absolutePath": "/Users/willpark/Desktop/bookwork-klaytn/project_codes/nftbapp/backend-nftdapp/node_modules/zeppelin-solidity/contracts/introspection/SupportsInterfaceWithLookup.sol",
|
|
"exportedSymbols": {
|
|
"SupportsInterfaceWithLookup": [
|
|
531
|
|
]
|
|
},
|
|
"id": 532,
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 482,
|
|
"literals": [
|
|
"solidity",
|
|
"^",
|
|
"0.4",
|
|
".24"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "0:24:5"
|
|
},
|
|
{
|
|
"absolutePath": "/Users/willpark/Desktop/bookwork-klaytn/project_codes/nftbapp/backend-nftdapp/node_modules/zeppelin-solidity/contracts/introspection/ERC165.sol",
|
|
"file": "./ERC165.sol",
|
|
"id": 483,
|
|
"nodeType": "ImportDirective",
|
|
"scope": 532,
|
|
"sourceUnit": 481,
|
|
"src": "26:22:5",
|
|
"symbolAliases": [],
|
|
"unitAlias": ""
|
|
},
|
|
{
|
|
"baseContracts": [
|
|
{
|
|
"arguments": null,
|
|
"baseName": {
|
|
"contractScope": null,
|
|
"id": 484,
|
|
"name": "ERC165",
|
|
"nodeType": "UserDefinedTypeName",
|
|
"referencedDeclaration": 480,
|
|
"src": "218:6:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_ERC165_$480",
|
|
"typeString": "contract ERC165"
|
|
}
|
|
},
|
|
"id": 485,
|
|
"nodeType": "InheritanceSpecifier",
|
|
"src": "218:6:5"
|
|
}
|
|
],
|
|
"contractDependencies": [
|
|
480
|
|
],
|
|
"contractKind": "contract",
|
|
"documentation": "@title SupportsInterfaceWithLookup\n@author Matt Condon (@shrugs)\n@dev Implements ERC165 using a lookup table.",
|
|
"fullyImplemented": true,
|
|
"id": 531,
|
|
"linearizedBaseContracts": [
|
|
531,
|
|
480
|
|
],
|
|
"name": "SupportsInterfaceWithLookup",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"constant": true,
|
|
"id": 488,
|
|
"name": "InterfaceId_ERC165",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 531,
|
|
"src": "230:54:5",
|
|
"stateVariable": true,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
},
|
|
"typeName": {
|
|
"id": 486,
|
|
"name": "bytes4",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "230:6:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
},
|
|
"value": {
|
|
"argumentTypes": null,
|
|
"hexValue": "30783031666663396137",
|
|
"id": 487,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "274:10:5",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_33540519_by_1",
|
|
"typeString": "int_const 33540519"
|
|
},
|
|
"value": "0x01ffc9a7"
|
|
},
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 492,
|
|
"name": "supportedInterfaces",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 531,
|
|
"src": "456:52:5",
|
|
"stateVariable": true,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$",
|
|
"typeString": "mapping(bytes4 => bool)"
|
|
},
|
|
"typeName": {
|
|
"id": 491,
|
|
"keyType": {
|
|
"id": 489,
|
|
"name": "bytes4",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "464:6:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
},
|
|
"nodeType": "Mapping",
|
|
"src": "456:23:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$",
|
|
"typeString": "mapping(bytes4 => bool)"
|
|
},
|
|
"valueType": {
|
|
"id": 490,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "474:4:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 499,
|
|
"nodeType": "Block",
|
|
"src": "643:49:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 496,
|
|
"name": "InterfaceId_ERC165",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 488,
|
|
"src": "668:18:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
],
|
|
"id": 495,
|
|
"name": "_registerInterface",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 530,
|
|
"src": "649:18:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_internal_nonpayable$_t_bytes4_$returns$__$",
|
|
"typeString": "function (bytes4)"
|
|
}
|
|
},
|
|
"id": 497,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "649:38:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 498,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "649:38:5"
|
|
}
|
|
]
|
|
},
|
|
"documentation": "@dev A contract implementing SupportsInterfaceWithLookup\nimplement ERC165 itself",
|
|
"id": 500,
|
|
"implemented": true,
|
|
"isConstructor": true,
|
|
"isDeclaredConst": false,
|
|
"modifiers": [],
|
|
"name": "",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 493,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "627:2:5"
|
|
},
|
|
"payable": false,
|
|
"returnParameters": {
|
|
"id": 494,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "643:0:5"
|
|
},
|
|
"scope": 531,
|
|
"src": "616:76:5",
|
|
"stateMutability": "nonpayable",
|
|
"superFunction": null,
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 511,
|
|
"nodeType": "Block",
|
|
"src": "866:51:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"baseExpression": {
|
|
"argumentTypes": null,
|
|
"id": 507,
|
|
"name": "supportedInterfaces",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 492,
|
|
"src": "879:19:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$",
|
|
"typeString": "mapping(bytes4 => bool)"
|
|
}
|
|
},
|
|
"id": 509,
|
|
"indexExpression": {
|
|
"argumentTypes": null,
|
|
"id": 508,
|
|
"name": "_interfaceId",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 502,
|
|
"src": "899:12:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "IndexAccess",
|
|
"src": "879:33:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"functionReturnParameters": 506,
|
|
"id": 510,
|
|
"nodeType": "Return",
|
|
"src": "872:40:5"
|
|
}
|
|
]
|
|
},
|
|
"documentation": "@dev implement supportsInterface(bytes4) using a lookup table",
|
|
"id": 512,
|
|
"implemented": true,
|
|
"isConstructor": false,
|
|
"isDeclaredConst": true,
|
|
"modifiers": [],
|
|
"name": "supportsInterface",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 503,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 502,
|
|
"name": "_interfaceId",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 512,
|
|
"src": "802:19:5",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
},
|
|
"typeName": {
|
|
"id": 501,
|
|
"name": "bytes4",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "802:6:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "801:21:5"
|
|
},
|
|
"payable": false,
|
|
"returnParameters": {
|
|
"id": 506,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 505,
|
|
"name": "",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 512,
|
|
"src": "858:4:5",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 504,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "858:4:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "857:6:5"
|
|
},
|
|
"scope": 531,
|
|
"src": "775:142:5",
|
|
"stateMutability": "view",
|
|
"superFunction": 479,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 529,
|
|
"nodeType": "Block",
|
|
"src": "1051:92:5",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"commonType": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
},
|
|
"id": 520,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"argumentTypes": null,
|
|
"id": 518,
|
|
"name": "_interfaceId",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 514,
|
|
"src": "1065:12:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "!=",
|
|
"rightExpression": {
|
|
"argumentTypes": null,
|
|
"hexValue": "30786666666666666666",
|
|
"id": 519,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1081:10:5",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_4294967295_by_1",
|
|
"typeString": "int_const 4294967295"
|
|
},
|
|
"value": "0xffffffff"
|
|
},
|
|
"src": "1065:26:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
],
|
|
"id": 517,
|
|
"name": "require",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [
|
|
1759,
|
|
1760
|
|
],
|
|
"referencedDeclaration": 1759,
|
|
"src": "1057:7:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
|
|
"typeString": "function (bool) pure"
|
|
}
|
|
},
|
|
"id": 521,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1057:35:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 522,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1057:35:5"
|
|
},
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 527,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"argumentTypes": null,
|
|
"baseExpression": {
|
|
"argumentTypes": null,
|
|
"id": 523,
|
|
"name": "supportedInterfaces",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 492,
|
|
"src": "1098:19:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$",
|
|
"typeString": "mapping(bytes4 => bool)"
|
|
}
|
|
},
|
|
"id": 525,
|
|
"indexExpression": {
|
|
"argumentTypes": null,
|
|
"id": 524,
|
|
"name": "_interfaceId",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 514,
|
|
"src": "1118:12:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
},
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"nodeType": "IndexAccess",
|
|
"src": "1098:33:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"argumentTypes": null,
|
|
"hexValue": "74727565",
|
|
"id": 526,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "bool",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1134:4:5",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"value": "true"
|
|
},
|
|
"src": "1098:40:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"id": 528,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1098:40:5"
|
|
}
|
|
]
|
|
},
|
|
"documentation": "@dev private method for registering an interface",
|
|
"id": 530,
|
|
"implemented": true,
|
|
"isConstructor": false,
|
|
"isDeclaredConst": false,
|
|
"modifiers": [],
|
|
"name": "_registerInterface",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 515,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 514,
|
|
"name": "_interfaceId",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 530,
|
|
"src": "1015:19:5",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
},
|
|
"typeName": {
|
|
"id": 513,
|
|
"name": "bytes4",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1015:6:5",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1014:21:5"
|
|
},
|
|
"payable": false,
|
|
"returnParameters": {
|
|
"id": 516,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "1051:0:5"
|
|
},
|
|
"scope": 531,
|
|
"src": "987:156:5",
|
|
"stateMutability": "nonpayable",
|
|
"superFunction": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"scope": 532,
|
|
"src": "178:967:5"
|
|
}
|
|
],
|
|
"src": "0:1146:5"
|
|
},
|
|
"compiler": {
|
|
"name": "solc",
|
|
"version": "0.4.25+commit.59dbf8f1.Emscripten.clang"
|
|
},
|
|
"networks": {},
|
|
"schemaVersion": "2.0.2",
|
|
"updatedAt": "2020-03-25T02:14:16.720Z"
|
|
} |