{ "contractName": "ChainlinkETHToETHOracle", "abi": [ { "inputs": [], "name": "latestAnswer", "outputs": [ { "internalType": "int256", "name": "", "type": "int256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "latestTimestamp", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.6.12+commit.27d51765\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"latestAnswer\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"latestTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Provides the trivial ETH/ETH rate to be used with other TKN/ETH rates\",\"kind\":\"dev\",\"methods\":{\"latestAnswer()\":{\"details\":\"returns the trivial ETH/ETH rate.\",\"returns\":{\"_0\":\"always returns the trivial rate of 1\"}},\"latestTimestamp()\":{\"details\":\"returns the trivial ETH/ETH update time.\",\"returns\":{\"_0\":\"always returns current block's timestamp\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/utility/ChainlinkETHToETHOracle.sol\":\"ChainlinkETHToETHOracle\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/utility/ChainlinkETHToETHOracle.sol\":{\"keccak256\":\"0x4e0c0568103a535f522cf43833e3632ce9a79c6e6d62b2e116b83f21afbe2d78\",\"license\":\"SEE LICENSE IN LICENSE\",\"urls\":[\"bzz-raw://b656f1c4c522b77bd73347d9857fedb0dc72306b50d6e3879222b9ca6fc6a75e\",\"dweb:/ipfs/Qmeqp6RQV5RciQCWkFE4DiYb5ZybhJyXqif3n5bkVrd4BA\"]},\"/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/utility/interfaces/IChainlinkPriceOracle.sol\":{\"keccak256\":\"0x544a1d335c9a30e5543f5c069bbd9f73e6478b0a6941481619a0d20eea159c2a\",\"license\":\"SEE LICENSE IN LICENSE\",\"urls\":[\"bzz-raw://8649d3ff5e21bf5ff21d45a62193974e08ccec27b392e91cbfdad479a60e87f0\",\"dweb:/ipfs/QmatS5peisTv9PdqVz9eSuveQdhJBqpxfpr5q4YsMv51CZ\"]}},\"version\":1}", "bytecode": "0x6080604052348015600f57600080fd5b5060948061001e6000396000f3fe6080604052348015600f57600080fd5b506004361060325760003560e01c806350d25bcd1460375780638205bf6a14604f575b600080fd5b603d6055565b60408051918252519081900360200190f35b603d605a565b600190565b429056fea2646970667358221220c822ae6afcb353631cf38e35b68885314d174a60445c8b6f4e095de2c2451b7164736f6c634300060c0033", "deployedBytecode": "0x6080604052348015600f57600080fd5b506004361060325760003560e01c806350d25bcd1460375780638205bf6a14604f575b600080fd5b603d6055565b60408051918252519081900360200190f35b603d605a565b600190565b429056fea2646970667358221220c822ae6afcb353631cf38e35b68885314d174a60445c8b6f4e095de2c2451b7164736f6c634300060c0033", "immutableReferences": {}, "sourceMap": "212:563:54:-:0;;;;;;;;;;;;;;;;;;;", "deployedSourceMap": "212:563:54:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;442:96;;;:::i;:::-;;;;;;;;;;;;;;;;678:95;;;:::i;442:96::-;311:1;442:96;:::o;678:95::-;763:3;678:95;:::o", "source": "// SPDX-License-Identifier: SEE LICENSE IN LICENSE\npragma solidity 0.6.12;\n\nimport \"./interfaces/IChainlinkPriceOracle.sol\";\n\n/**\n * @dev Provides the trivial ETH/ETH rate to be used with other TKN/ETH rates\n*/\ncontract ChainlinkETHToETHOracle is IChainlinkPriceOracle {\n int256 private constant ETH_RATE = 1;\n\n /**\n * @dev returns the trivial ETH/ETH rate.\n *\n * @return always returns the trivial rate of 1\n */\n function latestAnswer() external view override returns (int256) {\n return ETH_RATE;\n }\n\n /**\n * @dev returns the trivial ETH/ETH update time.\n *\n * @return always returns current block's timestamp\n */\n function latestTimestamp() external view override returns (uint256) {\n return now;\n }\n}\n", "sourcePath": "/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/utility/ChainlinkETHToETHOracle.sol", "ast": { "absolutePath": "/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/utility/ChainlinkETHToETHOracle.sol", "exportedSymbols": { "ChainlinkETHToETHOracle": [ 21212 ] }, "id": 21213, "license": "SEE LICENSE IN LICENSE", "nodeType": "SourceUnit", "nodes": [ { "id": 21184, "literals": [ "solidity", "0.6", ".12" ], "nodeType": "PragmaDirective", "src": "51:23:54" }, { "absolutePath": "/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/utility/interfaces/IChainlinkPriceOracle.sol", "file": "./interfaces/IChainlinkPriceOracle.sol", "id": 21185, "nodeType": "ImportDirective", "scope": 21213, "sourceUnit": 22822, "src": "76:48:54", "symbolAliases": [], "unitAlias": "" }, { "abstract": false, "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 21187, "name": "IChainlinkPriceOracle", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 22821, "src": "248:21:54", "typeDescriptions": { "typeIdentifier": "t_contract$_IChainlinkPriceOracle_$22821", "typeString": "contract IChainlinkPriceOracle" } }, "id": 21188, "nodeType": "InheritanceSpecifier", "src": "248:21:54" } ], "contractDependencies": [ 22821 ], "contractKind": "contract", "documentation": { "id": 21186, "nodeType": "StructuredDocumentation", "src": "126:85:54", "text": " @dev Provides the trivial ETH/ETH rate to be used with other TKN/ETH rates" }, "fullyImplemented": true, "id": 21212, "linearizedBaseContracts": [ 21212, 22821 ], "name": "ChainlinkETHToETHOracle", "nodeType": "ContractDefinition", "nodes": [ { "constant": true, "id": 21191, "mutability": "constant", "name": "ETH_RATE", "nodeType": "VariableDeclaration", "overrides": null, "scope": 21212, "src": "276:36:54", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 21189, "name": "int256", "nodeType": "ElementaryTypeName", "src": "276:6:54", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "value": { "argumentTypes": null, "hexValue": "31", "id": 21190, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "311:1:54", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_1_by_1", "typeString": "int_const 1" }, "value": "1" }, "visibility": "private" }, { "baseFunctions": [ 22815 ], "body": { "id": 21200, "nodeType": "Block", "src": "506:32:54", "statements": [ { "expression": { "argumentTypes": null, "id": 21198, "name": "ETH_RATE", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 21191, "src": "523:8:54", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "functionReturnParameters": 21197, "id": 21199, "nodeType": "Return", "src": "516:15:54" } ] }, "documentation": { "id": 21192, "nodeType": "StructuredDocumentation", "src": "319:118:54", "text": " @dev returns the trivial ETH/ETH rate.\n @return always returns the trivial rate of 1" }, "functionSelector": "50d25bcd", "id": 21201, "implemented": true, "kind": "function", "modifiers": [], "name": "latestAnswer", "nodeType": "FunctionDefinition", "overrides": { "id": 21194, "nodeType": "OverrideSpecifier", "overrides": [], "src": "480:8:54" }, "parameters": { "id": 21193, "nodeType": "ParameterList", "parameters": [], "src": "463:2:54" }, "returnParameters": { "id": 21197, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 21196, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 21201, "src": "498:6:54", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 21195, "name": "int256", "nodeType": "ElementaryTypeName", "src": "498:6:54", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "value": null, "visibility": "internal" } ], "src": "497:8:54" }, "scope": 21212, "src": "442:96:54", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "baseFunctions": [ 22820 ], "body": { "id": 21210, "nodeType": "Block", "src": "746:27:54", "statements": [ { "expression": { "argumentTypes": null, "id": 21208, "name": "now", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -17, "src": "763:3:54", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "functionReturnParameters": 21207, "id": 21209, "nodeType": "Return", "src": "756:10:54" } ] }, "documentation": { "id": 21202, "nodeType": "StructuredDocumentation", "src": "544:129:54", "text": " @dev returns the trivial ETH/ETH update time.\n @return always returns current block's timestamp" }, "functionSelector": "8205bf6a", "id": 21211, "implemented": true, "kind": "function", "modifiers": [], "name": "latestTimestamp", "nodeType": "FunctionDefinition", "overrides": { "id": 21204, "nodeType": "OverrideSpecifier", "overrides": [], "src": "719:8:54" }, "parameters": { "id": 21203, "nodeType": "ParameterList", "parameters": [], "src": "702:2:54" }, "returnParameters": { "id": 21207, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 21206, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 21211, "src": "737:7:54", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 21205, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "737:7:54", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "736:9:54" }, "scope": 21212, "src": "678:95:54", "stateMutability": "view", "virtual": false, "visibility": "external" } ], "scope": 21213, "src": "212:563:54" } ], "src": "51:725:54" }, "legacyAST": { "absolutePath": "/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/utility/ChainlinkETHToETHOracle.sol", "exportedSymbols": { "ChainlinkETHToETHOracle": [ 21212 ] }, "id": 21213, "license": "SEE LICENSE IN LICENSE", "nodeType": "SourceUnit", "nodes": [ { "id": 21184, "literals": [ "solidity", "0.6", ".12" ], "nodeType": "PragmaDirective", "src": "51:23:54" }, { "absolutePath": "/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/utility/interfaces/IChainlinkPriceOracle.sol", "file": "./interfaces/IChainlinkPriceOracle.sol", "id": 21185, "nodeType": "ImportDirective", "scope": 21213, "sourceUnit": 22822, "src": "76:48:54", "symbolAliases": [], "unitAlias": "" }, { "abstract": false, "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 21187, "name": "IChainlinkPriceOracle", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 22821, "src": "248:21:54", "typeDescriptions": { "typeIdentifier": "t_contract$_IChainlinkPriceOracle_$22821", "typeString": "contract IChainlinkPriceOracle" } }, "id": 21188, "nodeType": "InheritanceSpecifier", "src": "248:21:54" } ], "contractDependencies": [ 22821 ], "contractKind": "contract", "documentation": { "id": 21186, "nodeType": "StructuredDocumentation", "src": "126:85:54", "text": " @dev Provides the trivial ETH/ETH rate to be used with other TKN/ETH rates" }, "fullyImplemented": true, "id": 21212, "linearizedBaseContracts": [ 21212, 22821 ], "name": "ChainlinkETHToETHOracle", "nodeType": "ContractDefinition", "nodes": [ { "constant": true, "id": 21191, "mutability": "constant", "name": "ETH_RATE", "nodeType": "VariableDeclaration", "overrides": null, "scope": 21212, "src": "276:36:54", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 21189, "name": "int256", "nodeType": "ElementaryTypeName", "src": "276:6:54", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "value": { "argumentTypes": null, "hexValue": "31", "id": 21190, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "311:1:54", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_1_by_1", "typeString": "int_const 1" }, "value": "1" }, "visibility": "private" }, { "baseFunctions": [ 22815 ], "body": { "id": 21200, "nodeType": "Block", "src": "506:32:54", "statements": [ { "expression": { "argumentTypes": null, "id": 21198, "name": "ETH_RATE", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 21191, "src": "523:8:54", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "functionReturnParameters": 21197, "id": 21199, "nodeType": "Return", "src": "516:15:54" } ] }, "documentation": { "id": 21192, "nodeType": "StructuredDocumentation", "src": "319:118:54", "text": " @dev returns the trivial ETH/ETH rate.\n @return always returns the trivial rate of 1" }, "functionSelector": "50d25bcd", "id": 21201, "implemented": true, "kind": "function", "modifiers": [], "name": "latestAnswer", "nodeType": "FunctionDefinition", "overrides": { "id": 21194, "nodeType": "OverrideSpecifier", "overrides": [], "src": "480:8:54" }, "parameters": { "id": 21193, "nodeType": "ParameterList", "parameters": [], "src": "463:2:54" }, "returnParameters": { "id": 21197, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 21196, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 21201, "src": "498:6:54", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 21195, "name": "int256", "nodeType": "ElementaryTypeName", "src": "498:6:54", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "value": null, "visibility": "internal" } ], "src": "497:8:54" }, "scope": 21212, "src": "442:96:54", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "baseFunctions": [ 22820 ], "body": { "id": 21210, "nodeType": "Block", "src": "746:27:54", "statements": [ { "expression": { "argumentTypes": null, "id": 21208, "name": "now", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -17, "src": "763:3:54", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "functionReturnParameters": 21207, "id": 21209, "nodeType": "Return", "src": "756:10:54" } ] }, "documentation": { "id": 21202, "nodeType": "StructuredDocumentation", "src": "544:129:54", "text": " @dev returns the trivial ETH/ETH update time.\n @return always returns current block's timestamp" }, "functionSelector": "8205bf6a", "id": 21211, "implemented": true, "kind": "function", "modifiers": [], "name": "latestTimestamp", "nodeType": "FunctionDefinition", "overrides": { "id": 21204, "nodeType": "OverrideSpecifier", "overrides": [], "src": "719:8:54" }, "parameters": { "id": 21203, "nodeType": "ParameterList", "parameters": [], "src": "702:2:54" }, "returnParameters": { "id": 21207, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 21206, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 21211, "src": "737:7:54", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 21205, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "737:7:54", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "736:9:54" }, "scope": 21212, "src": "678:95:54", "stateMutability": "view", "virtual": false, "visibility": "external" } ], "scope": 21213, "src": "212:563:54" } ], "src": "51:725:54" }, "compiler": { "name": "solc", "version": "0.6.12+commit.27d51765.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.2.3", "updatedAt": "2020-10-20T08:24:47.837Z", "devdoc": { "details": "Provides the trivial ETH/ETH rate to be used with other TKN/ETH rates", "kind": "dev", "methods": { "latestAnswer()": { "details": "returns the trivial ETH/ETH rate.", "returns": { "_0": "always returns the trivial rate of 1" } }, "latestTimestamp()": { "details": "returns the trivial ETH/ETH update time.", "returns": { "_0": "always returns current block's timestamp" } } }, "version": 1 }, "userdoc": { "kind": "user", "methods": {}, "version": 1 } }