core-artifacts
Version:
Consist artifacts of the maple protocol
345 lines (344 loc) • 11.9 kB
JSON
{
"id": "df9abf4d075e2383e44d3fb7993e03e3",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.6.11",
"solcLongVersion": "0.6.11+commit.5ef660b1",
"input": {
"language": "Solidity",
"sources": {
"contracts/core/usd-oracle/v1/interfaces/IUsdOracle.sol": {
"content": "// SPDX-License-Identifier: AGPL-3.0-or-later // hevm: flattened sources of contracts/core/usd-oracle/v1/interfaces/IUsdOracle.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\n////// contracts/core/usd-oracle/v1/interfaces/IUsdOracle.sol\n/* pragma solidity 0.6.11; */\n\n/* import { IOracle } from \"../../../oracle/v1/interfaces/IOracle.sol\"; */\n\n/// @title UsdOracle is a constant price oracle feed that always returns 1 USD in 8 decimal precision.\ninterface IUsdOracle is IOracle {\n\n /**\n @dev Returns the constant USD price.\n */\n function getLatestPrice() external override 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/usd-oracle/v1/interfaces/IUsdOracle.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"
}
}
},
"IUsdOracle": {
"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/usd-oracle/v1/interfaces/IUsdOracle.sol": {
"ast": {
"absolutePath": "contracts/core/usd-oracle/v1/interfaces/IUsdOracle.sol",
"exportedSymbols": {
"IOracle": [
9
],
"IUsdOracle": [
20
]
},
"id": 21,
"license": "AGPL-3.0-or-later",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1,
"literals": [
"solidity",
"=",
"0.6",
".11"
],
"nodeType": "PragmaDirective",
"src": "131:24:0"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": {
"id": 2,
"nodeType": "StructuredDocumentation",
"src": "243: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": "310: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": "394:2:0"
},
"returnParameters": {
"id": 7,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 8,
"src": "420:6:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_int256",
"typeString": "int256"
},
"typeName": {
"id": 5,
"name": "int256",
"nodeType": "ElementaryTypeName",
"src": "420:6:0",
"typeDescriptions": {
"typeIdentifier": "t_int256",
"typeString": "int256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "419:8:0"
},
"scope": 9,
"src": "371:57:0",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 21,
"src": "285:146:0"
},
{
"abstract": false,
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 11,
"name": "IOracle",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 9,
"src": "729:7:0",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IOracle_$9",
"typeString": "contract IOracle"
}
},
"id": 12,
"nodeType": "InheritanceSpecifier",
"src": "729:7:0"
}
],
"contractDependencies": [
9
],
"contractKind": "interface",
"documentation": {
"id": 10,
"nodeType": "StructuredDocumentation",
"src": "602:103:0",
"text": "@title UsdOracle is a constant price oracle feed that always returns 1 USD in 8 decimal precision."
},
"fullyImplemented": false,
"id": 20,
"linearizedBaseContracts": [
20,
9
],
"name": "IUsdOracle",
"nodeType": "ContractDefinition",
"nodes": [
{
"baseFunctions": [
8
],
"body": null,
"documentation": {
"id": 13,
"nodeType": "StructuredDocumentation",
"src": "744:56:0",
"text": "@dev Returns the constant USD price."
},
"functionSelector": "8e15f473",
"id": 19,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getLatestPrice",
"nodeType": "FunctionDefinition",
"overrides": {
"id": 15,
"nodeType": "OverrideSpecifier",
"overrides": [],
"src": "840:8:0"
},
"parameters": {
"id": 14,
"nodeType": "ParameterList",
"parameters": [],
"src": "828:2:0"
},
"returnParameters": {
"id": 18,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 17,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19,
"src": "863:6:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_int256",
"typeString": "int256"
},
"typeName": {
"id": 16,
"name": "int256",
"nodeType": "ElementaryTypeName",
"src": "863:6:0",
"typeDescriptions": {
"typeIdentifier": "t_int256",
"typeString": "int256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "862:8:0"
},
"scope": 20,
"src": "805:66:0",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 21,
"src": "705:173:0"
}
],
"src": "131:748:0"
},
"id": 0
}
}
}
}