UNPKG

@defi-wonderland/keep3r-v2

Version:

The Keep3r Network is a decentralized network for projects that need external devops, and for external teams to find keeper jobs

776 lines (775 loc) 32.4 kB
{ "id": "103007e78f383238099cfc40cb2ca558", "_format": "hh-sol-build-info-1", "solcVersion": "0.8.7", "solcLongVersion": "0.8.7+commit.e28d00a7", "input": { "language": "Solidity", "sources": { "solidity/interfaces/external/IAggregatorV3.sol": { "content": "// SPDX-License-Identifier: MIT\npragma solidity >=0.8.4 <0.9.0;\n\ninterface IAggregatorV3 {\n function decimals() external view returns (uint8);\n\n function description() external view returns (string memory);\n\n function version() external view returns (uint256);\n\n // getRoundData and latestRoundData should both raise \"No data present\"\n // if they do not have data to report, instead of returning unset values\n // which could be misinterpreted as actual reported values.\n function getRoundData(uint80 _roundId)\n external\n view\n returns (\n uint80 roundId,\n int256 answer,\n uint256 startedAt,\n uint256 updatedAt,\n uint80 answeredInRound\n );\n\n function latestRoundData()\n external\n view\n returns (\n uint80 roundId,\n int256 answer,\n uint256 startedAt,\n uint256 updatedAt,\n uint80 answeredInRound\n );\n}\n" } }, "settings": { "optimizer": { "enabled": true, "runs": 33 }, "outputSelection": { "*": { "*": [ "storageLayout", "abi", "evm.bytecode", "evm.deployedBytecode", "evm.methodIdentifiers", "metadata", "devdoc", "userdoc", "evm.gasEstimates" ], "": [ "ast" ] } }, "metadata": { "useLiteralContent": true } } }, "output": { "contracts": { "solidity/interfaces/external/IAggregatorV3.sol": { "IAggregatorV3": { "abi": [ { "inputs": [], "name": "decimals", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "description", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint80", "name": "_roundId", "type": "uint80" } ], "name": "getRoundData", "outputs": [ { "internalType": "uint80", "name": "roundId", "type": "uint80" }, { "internalType": "int256", "name": "answer", "type": "int256" }, { "internalType": "uint256", "name": "startedAt", "type": "uint256" }, { "internalType": "uint256", "name": "updatedAt", "type": "uint256" }, { "internalType": "uint80", "name": "answeredInRound", "type": "uint80" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "latestRoundData", "outputs": [ { "internalType": "uint80", "name": "roundId", "type": "uint80" }, { "internalType": "int256", "name": "answer", "type": "int256" }, { "internalType": "uint256", "name": "startedAt", "type": "uint256" }, { "internalType": "uint256", "name": "updatedAt", "type": "uint256" }, { "internalType": "uint80", "name": "answeredInRound", "type": "uint80" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "version", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" } ], "devdoc": { "kind": "dev", "methods": {}, "version": 1 }, "evm": { "bytecode": { "functionDebugData": {}, "generatedSources": [], "linkReferences": {}, "object": "", "opcodes": "", "sourceMap": "" }, "deployedBytecode": { "functionDebugData": {}, "generatedSources": [], "immutableReferences": {}, "linkReferences": {}, "object": "", "opcodes": "", "sourceMap": "" }, "gasEstimates": null, "methodIdentifiers": { "decimals()": "313ce567", "description()": "7284e416", "getRoundData(uint80)": "9a6fc8f5", "latestRoundData()": "feaf968c", "version()": "54fd4d50" } }, "metadata": "{\"compiler\":{\"version\":\"0.8.7+commit.e28d00a7\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"description\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint80\",\"name\":\"_roundId\",\"type\":\"uint80\"}],\"name\":\"getRoundData\",\"outputs\":[{\"internalType\":\"uint80\",\"name\":\"roundId\",\"type\":\"uint80\"},{\"internalType\":\"int256\",\"name\":\"answer\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"startedAt\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"updatedAt\",\"type\":\"uint256\"},{\"internalType\":\"uint80\",\"name\":\"answeredInRound\",\"type\":\"uint80\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"latestRoundData\",\"outputs\":[{\"internalType\":\"uint80\",\"name\":\"roundId\",\"type\":\"uint80\"},{\"internalType\":\"int256\",\"name\":\"answer\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"startedAt\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"updatedAt\",\"type\":\"uint256\"},{\"internalType\":\"uint80\",\"name\":\"answeredInRound\",\"type\":\"uint80\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"solidity/interfaces/external/IAggregatorV3.sol\":\"IAggregatorV3\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":33},\"remappings\":[]},\"sources\":{\"solidity/interfaces/external/IAggregatorV3.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity >=0.8.4 <0.9.0;\\n\\ninterface IAggregatorV3 {\\n function decimals() external view returns (uint8);\\n\\n function description() external view returns (string memory);\\n\\n function version() external view returns (uint256);\\n\\n // getRoundData and latestRoundData should both raise \\\"No data present\\\"\\n // if they do not have data to report, instead of returning unset values\\n // which could be misinterpreted as actual reported values.\\n function getRoundData(uint80 _roundId)\\n external\\n view\\n returns (\\n uint80 roundId,\\n int256 answer,\\n uint256 startedAt,\\n uint256 updatedAt,\\n uint80 answeredInRound\\n );\\n\\n function latestRoundData()\\n external\\n view\\n returns (\\n uint80 roundId,\\n int256 answer,\\n uint256 startedAt,\\n uint256 updatedAt,\\n uint80 answeredInRound\\n );\\n}\\n\",\"keccak256\":\"0x986621cc9f21c95cfa170a822bc2383a4765c21bf0fccfc00e7d5d452cd18fff\",\"license\":\"MIT\"}},\"version\":1}", "storageLayout": { "storage": [], "types": null }, "userdoc": { "kind": "user", "methods": {}, "version": 1 } } } }, "sources": { "solidity/interfaces/external/IAggregatorV3.sol": { "ast": { "absolutePath": "solidity/interfaces/external/IAggregatorV3.sol", "exportedSymbols": { "IAggregatorV3": [ 45 ] }, "id": 46, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 1, "literals": [ "solidity", ">=", "0.8", ".4", "<", "0.9", ".0" ], "nodeType": "PragmaDirective", "src": "32:31:0" }, { "abstract": false, "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "fullyImplemented": false, "id": 45, "linearizedBaseContracts": [ 45 ], "name": "IAggregatorV3", "nameLocation": "75:13:0", "nodeType": "ContractDefinition", "nodes": [ { "functionSelector": "313ce567", "id": 6, "implemented": false, "kind": "function", "modifiers": [], "name": "decimals", "nameLocation": "102:8:0", "nodeType": "FunctionDefinition", "parameters": { "id": 2, "nodeType": "ParameterList", "parameters": [], "src": "110:2:0" }, "returnParameters": { "id": 5, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 6, "src": "136:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "typeName": { "id": 3, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "136:5:0", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "visibility": "internal" } ], "src": "135:7:0" }, "scope": 45, "src": "93:50:0", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "7284e416", "id": 11, "implemented": false, "kind": "function", "modifiers": [], "name": "description", "nameLocation": "156:11:0", "nodeType": "FunctionDefinition", "parameters": { "id": 7, "nodeType": "ParameterList", "parameters": [], "src": "167:2:0" }, "returnParameters": { "id": 10, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 9, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 11, "src": "193:13:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 8, "name": "string", "nodeType": "ElementaryTypeName", "src": "193:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "192:15:0" }, "scope": 45, "src": "147:61:0", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "54fd4d50", "id": 16, "implemented": false, "kind": "function", "modifiers": [], "name": "version", "nameLocation": "221:7:0", "nodeType": "FunctionDefinition", "parameters": { "id": 12, "nodeType": "ParameterList", "parameters": [], "src": "228:2:0" }, "returnParameters": { "id": 15, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 14, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 16, "src": "254:7:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 13, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "254:7:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "253:9:0" }, "scope": 45, "src": "212:51:0", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "9a6fc8f5", "id": 31, "implemented": false, "kind": "function", "modifiers": [], "name": "getRoundData", "nameLocation": "487:12:0", "nodeType": "FunctionDefinition", "parameters": { "id": 19, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 18, "mutability": "mutable", "name": "_roundId", "nameLocation": "507:8:0", "nodeType": "VariableDeclaration", "scope": 31, "src": "500:15:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint80", "typeString": "uint80" }, "typeName": { "id": 17, "name": "uint80", "nodeType": "ElementaryTypeName", "src": "500:6:0", "typeDescriptions": { "typeIdentifier": "t_uint80", "typeString": "uint80" } }, "visibility": "internal" } ], "src": "499:17:0" }, "returnParameters": { "id": 30, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 21, "mutability": "mutable", "name": "roundId", "nameLocation": "566:7:0", "nodeType": "VariableDeclaration", "scope": 31, "src": "559:14:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint80", "typeString": "uint80" }, "typeName": { "id": 20, "name": "uint80", "nodeType": "ElementaryTypeName", "src": "559:6:0", "typeDescriptions": { "typeIdentifier": "t_uint80", "typeString": "uint80" } }, "visibility": "internal" }, { "constant": false, "id": 23, "mutability": "mutable", "name": "answer", "nameLocation": "588:6:0", "nodeType": "VariableDeclaration", "scope": 31, "src": "581:13:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 22, "name": "int256", "nodeType": "ElementaryTypeName", "src": "581:6:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 25, "mutability": "mutable", "name": "startedAt", "nameLocation": "610:9:0", "nodeType": "VariableDeclaration", "scope": 31, "src": "602:17:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 24, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "602:7:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 27, "mutability": "mutable", "name": "updatedAt", "nameLocation": "635:9:0", "nodeType": "VariableDeclaration", "scope": 31, "src": "627:17:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 26, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "627:7:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 29, "mutability": "mutable", "name": "answeredInRound", "nameLocation": "659:15:0", "nodeType": "VariableDeclaration", "scope": 31, "src": "652:22:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint80", "typeString": "uint80" }, "typeName": { "id": 28, "name": "uint80", "nodeType": "ElementaryTypeName", "src": "652:6:0", "typeDescriptions": { "typeIdentifier": "t_uint80", "typeString": "uint80" } }, "visibility": "internal" } ], "src": "551:129:0" }, "scope": 45, "src": "478:203:0", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "feaf968c", "id": 44, "implemented": false, "kind": "function", "modifiers": [], "name": "latestRoundData", "nameLocation": "694:15:0", "nodeType": "FunctionDefinition", "parameters": { "id": 32, "nodeType": "ParameterList", "parameters": [], "src": "709:2:0" }, "returnParameters": { "id": 43, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 34, "mutability": "mutable", "name": "roundId", "nameLocation": "761:7:0", "nodeType": "VariableDeclaration", "scope": 44, "src": "754:14:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint80", "typeString": "uint80" }, "typeName": { "id": 33, "name": "uint80", "nodeType": "ElementaryTypeName", "src": "754:6:0", "typeDescriptions": { "typeIdentifier": "t_uint80", "typeString": "uint80" } }, "visibility": "internal" }, { "constant": false, "id": 36, "mutability": "mutable", "name": "answer", "nameLocation": "783:6:0", "nodeType": "VariableDeclaration", "scope": 44, "src": "776:13:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 35, "name": "int256", "nodeType": "ElementaryTypeName", "src": "776:6:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 38, "mutability": "mutable", "name": "startedAt", "nameLocation": "805:9:0", "nodeType": "VariableDeclaration", "scope": 44, "src": "797:17:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 37, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "797:7:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 40, "mutability": "mutable", "name": "updatedAt", "nameLocation": "830:9:0", "nodeType": "VariableDeclaration", "scope": 44, "src": "822:17:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 39, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "822:7:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 42, "mutability": "mutable", "name": "answeredInRound", "nameLocation": "854:15:0", "nodeType": "VariableDeclaration", "scope": 44, "src": "847:22:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint80", "typeString": "uint80" }, "typeName": { "id": 41, "name": "uint80", "nodeType": "ElementaryTypeName", "src": "847:6:0", "typeDescriptions": { "typeIdentifier": "t_uint80", "typeString": "uint80" } }, "visibility": "internal" } ], "src": "746:129:0" }, "scope": 45, "src": "685:191:0", "stateMutability": "view", "virtual": false, "visibility": "external" } ], "scope": 46, "src": "65:813:0", "usedErrors": [] } ], "src": "32:847:0" }, "id": 0 } } } }