UNPKG

core-artifacts

Version:

Consist artifacts of the maple protocol

191 lines (190 loc) 6.09 kB
{ "id": "224bfe8336e951ad529532445181d13a", "_format": "hh-sol-build-info-1", "solcVersion": "0.6.11", "solcLongVersion": "0.6.11+commit.5ef660b1", "input": { "language": "Solidity", "sources": { "contracts/core/oracle/v1/interfaces/IOracle.sol": { "content": "// SPDX-License-Identifier: AGPL-3.0-or-later // hevm: flattened sources of contracts/core/oracle/v1/interfaces/IOracle.sol\npragma solidity =0.6.11;\n\n////// contracts/core/oracle/v1/interfaces/IOracle.sol\n/* pragma solidity 0.6.11; */\n\n/// @title Oracle is a price oracle feed.\ninterface IOracle {\n\n /**\n @dev Returns the price of the asset.\n */\n function getLatestPrice() external view returns (int256);\n\n}\n" } }, "settings": { "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "abi", "evm.bytecode", "evm.deployedBytecode", "evm.methodIdentifiers" ], "": [ "ast" ] } } } }, "output": { "contracts": { "contracts/core/oracle/v1/interfaces/IOracle.sol": { "IOracle": { "abi": [ { "inputs": [], "name": "getLatestPrice", "outputs": [ { "internalType": "int256", "name": "", "type": "int256" } ], "stateMutability": "view", "type": "function" } ], "evm": { "bytecode": { "linkReferences": {}, "object": "", "opcodes": "", "sourceMap": "" }, "deployedBytecode": { "immutableReferences": {}, "linkReferences": {}, "object": "", "opcodes": "", "sourceMap": "" }, "methodIdentifiers": { "getLatestPrice()": "8e15f473" } } } } }, "sources": { "contracts/core/oracle/v1/interfaces/IOracle.sol": { "ast": { "absolutePath": "contracts/core/oracle/v1/interfaces/IOracle.sol", "exportedSymbols": { "IOracle": [ 9 ] }, "id": 10, "license": "AGPL-3.0-or-later", "nodeType": "SourceUnit", "nodes": [ { "id": 1, "literals": [ "solidity", "=", "0.6", ".11" ], "nodeType": "PragmaDirective", "src": "124:24:0" }, { "abstract": false, "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": { "id": 2, "nodeType": "StructuredDocumentation", "src": "236:42:0", "text": "@title Oracle is a price oracle feed." }, "fullyImplemented": false, "id": 9, "linearizedBaseContracts": [ 9 ], "name": "IOracle", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": { "id": 3, "nodeType": "StructuredDocumentation", "src": "303:56:0", "text": "@dev Returns the price of the asset." }, "functionSelector": "8e15f473", "id": 8, "implemented": false, "kind": "function", "modifiers": [], "name": "getLatestPrice", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 4, "nodeType": "ParameterList", "parameters": [], "src": "387:2:0" }, "returnParameters": { "id": 7, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 8, "src": "413:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 5, "name": "int256", "nodeType": "ElementaryTypeName", "src": "413:6:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "value": null, "visibility": "internal" } ], "src": "412:8:0" }, "scope": 9, "src": "364:57:0", "stateMutability": "view", "virtual": false, "visibility": "external" } ], "scope": 10, "src": "278:146:0" } ], "src": "124:301:0" }, "id": 0 } } } }