@oikos/swap
Version:
Oikos Swap Contracts
281 lines • 9.15 kB
JSON
{
"contractName": "IERC165",
"abi": [
{
"constant": true,
"inputs": [
{
"name": "_interfaceId",
"type": "bytes4"
}
],
"name": "supportsInterface",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"sourceMap": "",
"deployedSourceMap": "",
"source": "pragma solidity ^0.5.0;\n\n\n/**\n * @title ERC165\n * @dev https://github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md\n */\ninterface IERC165 {\n\n /**\n * @notice Query if a contract implements an interface\n * @param _interfaceId The interface identifier, as specified in ERC-165\n * @dev Interface identification is specified in ERC-165. This function\n * uses less than 30,000 gas.\n */\n function supportsInterface(bytes4 _interfaceId)\n external\n view\n returns (bool);\n}",
"sourcePath": "/home/binyu/Desktop/Synthetix/prod/swap-solidity/contracts/interfaces/IERC165.sol",
"ast": {
"absolutePath": "/home/binyu/Desktop/Synthetix/prod/swap-solidity/contracts/interfaces/IERC165.sol",
"exportedSymbols": {
"IERC165": [
66
]
},
"id": 67,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 58,
"literals": [
"solidity",
"^",
"0.5",
".0"
],
"nodeType": "PragmaDirective",
"src": "0:23:1"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": "@title ERC165\n@dev https://github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md",
"fullyImplemented": false,
"id": 66,
"linearizedBaseContracts": [
66
],
"name": "IERC165",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": "@notice Query if a contract implements an interface\n@param _interfaceId The interface identifier, as specified in ERC-165\n@dev Interface identification is specified in ERC-165. This function\nuses less than 30,000 gas.",
"id": 65,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "supportsInterface",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 61,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 60,
"name": "_interfaceId",
"nodeType": "VariableDeclaration",
"scope": 65,
"src": "434:19:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"typeName": {
"id": 59,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "434:6:1",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "433:21:1"
},
"returnParameters": {
"id": 64,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 63,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 65,
"src": "490:4:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 62,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "490:4:1",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "489:6:1"
},
"scope": 66,
"src": "407:89:1",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
}
],
"scope": 67,
"src": "120:378:1"
}
],
"src": "0:498:1"
},
"legacyAST": {
"absolutePath": "/home/binyu/Desktop/Synthetix/prod/swap-solidity/contracts/interfaces/IERC165.sol",
"exportedSymbols": {
"IERC165": [
66
]
},
"id": 67,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 58,
"literals": [
"solidity",
"^",
"0.5",
".0"
],
"nodeType": "PragmaDirective",
"src": "0:23:1"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": "@title ERC165\n@dev https://github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md",
"fullyImplemented": false,
"id": 66,
"linearizedBaseContracts": [
66
],
"name": "IERC165",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": "@notice Query if a contract implements an interface\n@param _interfaceId The interface identifier, as specified in ERC-165\n@dev Interface identification is specified in ERC-165. This function\nuses less than 30,000 gas.",
"id": 65,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "supportsInterface",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 61,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 60,
"name": "_interfaceId",
"nodeType": "VariableDeclaration",
"scope": 65,
"src": "434:19:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"typeName": {
"id": 59,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "434:6:1",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "433:21:1"
},
"returnParameters": {
"id": 64,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 63,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 65,
"src": "490:4:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 62,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "490:4:1",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "489:6:1"
},
"scope": 66,
"src": "407:89:1",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
}
],
"scope": 67,
"src": "120:378:1"
}
],
"src": "0:498:1"
},
"compiler": {
"name": "solc",
"version": "0.5.8+commit.1f148fe1.Emscripten.clang"
},
"networks": {},
"schemaVersion": "2.0.1",
"updatedAt": "2020-05-02T17:32:58.315Z"
}