{ "contractName": "ConstOracle", "abi": [ { "inputs": [ { "internalType": "uint256", "name": "_price", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "tokenPrice", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getPrice", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.6.9+commit.3e3065ac\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_price\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"getPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tokenPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/Users/owen/Desktop/dodo/dodo-smart-contract/contracts/helper/ConstOracle.sol\":\"ConstOracle\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/owen/Desktop/dodo/dodo-smart-contract/contracts/helper/ConstOracle.sol\":{\"keccak256\":\"0x135f4a8c2768de7c0889f1ec0040ccef60cc9366c7174adb28ce23f1105d0b84\",\"license\":\"Apache-2.0\",\"urls\":[\"bzz-raw://d584bbc06b0b4b06d139ca5169ce0a11e137f89606aa76c0dd6f7ef0c2b7a809\",\"dweb:/ipfs/QmfEvU1dvU6j7brDDEVLXBwoP5gwxjr6kfazGvXocBTXTR\"]}},\"version\":1}", "bytecode": "0x608060405234801561001057600080fd5b506040516100ff3803806100ff83398101604081905261002f91610037565b60005561004f565b600060208284031215610048578081fd5b5051919050565b60a28061005d6000396000f3fe6080604052348015600f57600080fd5b506004361060325760003560e01c80637ff9b59614603757806398d5fdca146051575b600080fd5b603d6057565b604051604891906063565b60405180910390f35b603d605d565b60005481565b60005490565b9081526020019056fea2646970667358221220983b3926be425c261897fcc5f62f15dd5763108fb7819b19ba891e32c578a13464736f6c63430006090033", "deployedBytecode": "0x6080604052348015600f57600080fd5b506004361060325760003560e01c80637ff9b59614603757806398d5fdca146051575b600080fd5b603d6057565b604051604891906063565b60405180910390f35b603d605d565b60005481565b60005490565b9081526020019056fea2646970667358221220983b3926be425c261897fcc5f62f15dd5763108fb7819b19ba891e32c578a13464736f6c63430006090033", "immutableReferences": {}, "sourceMap": "137:224:13:-:0;;;196:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;241:10;:19;137:224;;146:263:-1;;261:2;249:9;240:7;236:23;232:32;229:2;;;-1:-1;;267:12;229:2;-1:-1;83:13;;223:186;-1:-1;223:186;;137:224:13;;;;;;", "deployedSourceMap": "137:224:13:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;164:25;;;:::i;:::-;;;;;;;;;;;;;;;;273:86;;;:::i;164:25::-;;;;:::o;273:86::-;316:7;342:10;273:86;:::o;125:222:-1:-;76:37;;;252:2;237:18;;223:124", "source": "/*\n\n Copyright 2020 DODO ZOO.\n SPDX-License-Identifier: Apache-2.0\n\n*/\n\npragma solidity 0.6.9;\npragma experimental ABIEncoderV2;\n\n\ncontract ConstOracle {\n uint256 public tokenPrice;\n\n constructor(uint256 _price) public {\n tokenPrice = _price;\n }\n\n function getPrice() external view returns (uint256) {\n return tokenPrice;\n }\n}\n", "sourcePath": "/Users/owen/Desktop/dodo/dodo-smart-contract/contracts/helper/ConstOracle.sol", "ast": { "absolutePath": "/Users/owen/Desktop/dodo/dodo-smart-contract/contracts/helper/ConstOracle.sol", "exportedSymbols": { "ConstOracle": [ 2032 ] }, "id": 2033, "license": "Apache-2.0", "nodeType": "SourceUnit", "nodes": [ { "id": 2010, "literals": [ "solidity", "0.6", ".9" ], "nodeType": "PragmaDirective", "src": "78:22:13" }, { "id": 2011, "literals": [ "experimental", "ABIEncoderV2" ], "nodeType": "PragmaDirective", "src": "101:33:13" }, { "abstract": false, "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 2032, "linearizedBaseContracts": [ 2032 ], "name": "ConstOracle", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "functionSelector": "7ff9b596", "id": 2013, "mutability": "mutable", "name": "tokenPrice", "nodeType": "VariableDeclaration", "overrides": null, "scope": 2032, "src": "164:25:13", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2012, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "164:7:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "public" }, { "body": { "id": 2022, "nodeType": "Block", "src": "231:36:13", "statements": [ { "expression": { "argumentTypes": null, "id": 2020, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 2018, "name": "tokenPrice", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2013, "src": "241:10:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 2019, "name": "_price", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2015, "src": "254:6:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "241:19:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 2021, "nodeType": "ExpressionStatement", "src": "241:19:13" } ] }, "documentation": null, "id": 2023, "implemented": true, "kind": "constructor", "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 2016, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2015, "mutability": "mutable", "name": "_price", "nodeType": "VariableDeclaration", "overrides": null, "scope": 2023, "src": "208:14:13", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2014, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "208:7:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "207:16:13" }, "returnParameters": { "id": 2017, "nodeType": "ParameterList", "parameters": [], "src": "231:0:13" }, "scope": 2032, "src": "196:71:13", "stateMutability": "nonpayable", "virtual": false, "visibility": "public" }, { "body": { "id": 2030, "nodeType": "Block", "src": "325:34:13", "statements": [ { "expression": { "argumentTypes": null, "id": 2028, "name": "tokenPrice", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2013, "src": "342:10:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "functionReturnParameters": 2027, "id": 2029, "nodeType": "Return", "src": "335:17:13" } ] }, "documentation": null, "functionSelector": "98d5fdca", "id": 2031, "implemented": true, "kind": "function", "modifiers": [], "name": "getPrice", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 2024, "nodeType": "ParameterList", "parameters": [], "src": "290:2:13" }, "returnParameters": { "id": 2027, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2026, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 2031, "src": "316:7:13", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2025, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "316:7:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "315:9:13" }, "scope": 2032, "src": "273:86:13", "stateMutability": "view", "virtual": false, "visibility": "external" } ], "scope": 2033, "src": "137:224:13" } ], "src": "78:284:13" }, "legacyAST": { "absolutePath": "/Users/owen/Desktop/dodo/dodo-smart-contract/contracts/helper/ConstOracle.sol", "exportedSymbols": { "ConstOracle": [ 2032 ] }, "id": 2033, "license": "Apache-2.0", "nodeType": "SourceUnit", "nodes": [ { "id": 2010, "literals": [ "solidity", "0.6", ".9" ], "nodeType": "PragmaDirective", "src": "78:22:13" }, { "id": 2011, "literals": [ "experimental", "ABIEncoderV2" ], "nodeType": "PragmaDirective", "src": "101:33:13" }, { "abstract": false, "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 2032, "linearizedBaseContracts": [ 2032 ], "name": "ConstOracle", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "functionSelector": "7ff9b596", "id": 2013, "mutability": "mutable", "name": "tokenPrice", "nodeType": "VariableDeclaration", "overrides": null, "scope": 2032, "src": "164:25:13", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2012, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "164:7:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "public" }, { "body": { "id": 2022, "nodeType": "Block", "src": "231:36:13", "statements": [ { "expression": { "argumentTypes": null, "id": 2020, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 2018, "name": "tokenPrice", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2013, "src": "241:10:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 2019, "name": "_price", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2015, "src": "254:6:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "241:19:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 2021, "nodeType": "ExpressionStatement", "src": "241:19:13" } ] }, "documentation": null, "id": 2023, "implemented": true, "kind": "constructor", "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 2016, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2015, "mutability": "mutable", "name": "_price", "nodeType": "VariableDeclaration", "overrides": null, "scope": 2023, "src": "208:14:13", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2014, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "208:7:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "207:16:13" }, "returnParameters": { "id": 2017, "nodeType": "ParameterList", "parameters": [], "src": "231:0:13" }, "scope": 2032, "src": "196:71:13", "stateMutability": "nonpayable", "virtual": false, "visibility": "public" }, { "body": { "id": 2030, "nodeType": "Block", "src": "325:34:13", "statements": [ { "expression": { "argumentTypes": null, "id": 2028, "name": "tokenPrice", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2013, "src": "342:10:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "functionReturnParameters": 2027, "id": 2029, "nodeType": "Return", "src": "335:17:13" } ] }, "documentation": null, "functionSelector": "98d5fdca", "id": 2031, "implemented": true, "kind": "function", "modifiers": [], "name": "getPrice", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 2024, "nodeType": "ParameterList", "parameters": [], "src": "290:2:13" }, "returnParameters": { "id": 2027, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2026, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 2031, "src": "316:7:13", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2025, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "316:7:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "315:9:13" }, "scope": 2032, "src": "273:86:13", "stateMutability": "view", "virtual": false, "visibility": "external" } ], "scope": 2033, "src": "137:224:13" } ], "src": "78:284:13" }, "compiler": { "name": "solc", "version": "0.6.9+commit.3e3065ac.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.2.3", "updatedAt": "2020-11-06T08:03:35.509Z", "devdoc": { "methods": {} }, "userdoc": { "methods": {} } }