UNPKG

@etherisc/depeg-contracts

Version:

Etherisc's smart contracts for a depeg insurance for stable coins.

715 lines 23.7 kB
{ "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" } ], "allSourcePaths": { "49": "/home/vscode/.brownie/packages/smartcontractkit/chainlink@1.10.0/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol" }, "ast": { "absolutePath": "/home/vscode/.brownie/packages/smartcontractkit/chainlink@1.10.0/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol", "exportedSymbols": { "AggregatorV3Interface": [ 15742 ] }, "id": 15743, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 15698, "literals": [ "solidity", "^", "0.8", ".0" ], "nodeType": "PragmaDirective", "src": "32:23:49" }, { "abstract": false, "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "fullyImplemented": false, "id": 15742, "linearizedBaseContracts": [ 15742 ], "name": "AggregatorV3Interface", "nameLocation": "67:21:49", "nodeType": "ContractDefinition", "nodes": [ { "functionSelector": "313ce567", "id": 15703, "implemented": false, "kind": "function", "modifiers": [], "name": "decimals", "nameLocation": "102:8:49", "nodeType": "FunctionDefinition", "parameters": { "id": 15699, "nodeType": "ParameterList", "parameters": [], "src": "110:2:49" }, "returnParameters": { "id": 15702, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 15701, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 15703, "src": "136:5:49", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "typeName": { "id": 15700, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "136:5:49", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "visibility": "internal" } ], "src": "135:7:49" }, "scope": 15742, "src": "93:50:49", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "7284e416", "id": 15708, "implemented": false, "kind": "function", "modifiers": [], "name": "description", "nameLocation": "156:11:49", "nodeType": "FunctionDefinition", "parameters": { "id": 15704, "nodeType": "ParameterList", "parameters": [], "src": "167:2:49" }, "returnParameters": { "id": 15707, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 15706, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 15708, "src": "193:13:49", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 15705, "name": "string", "nodeType": "ElementaryTypeName", "src": "193:6:49", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "192:15:49" }, "scope": 15742, "src": "147:61:49", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "54fd4d50", "id": 15713, "implemented": false, "kind": "function", "modifiers": [], "name": "version", "nameLocation": "221:7:49", "nodeType": "FunctionDefinition", "parameters": { "id": 15709, "nodeType": "ParameterList", "parameters": [], "src": "228:2:49" }, "returnParameters": { "id": 15712, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 15711, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 15713, "src": "254:7:49", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 15710, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "254:7:49", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "253:9:49" }, "scope": 15742, "src": "212:51:49", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "9a6fc8f5", "id": 15728, "implemented": false, "kind": "function", "modifiers": [], "name": "getRoundData", "nameLocation": "276:12:49", "nodeType": "FunctionDefinition", "parameters": { "id": 15716, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 15715, "mutability": "mutable", "name": "_roundId", "nameLocation": "296:8:49", "nodeType": "VariableDeclaration", "scope": 15728, "src": "289:15:49", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint80", "typeString": "uint80" }, "typeName": { "id": 15714, "name": "uint80", "nodeType": "ElementaryTypeName", "src": "289:6:49", "typeDescriptions": { "typeIdentifier": "t_uint80", "typeString": "uint80" } }, "visibility": "internal" } ], "src": "288:17:49" }, "returnParameters": { "id": 15727, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 15718, "mutability": "mutable", "name": "roundId", "nameLocation": "355:7:49", "nodeType": "VariableDeclaration", "scope": 15728, "src": "348:14:49", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint80", "typeString": "uint80" }, "typeName": { "id": 15717, "name": "uint80", "nodeType": "ElementaryTypeName", "src": "348:6:49", "typeDescriptions": { "typeIdentifier": "t_uint80", "typeString": "uint80" } }, "visibility": "internal" }, { "constant": false, "id": 15720, "mutability": "mutable", "name": "answer", "nameLocation": "377:6:49", "nodeType": "VariableDeclaration", "scope": 15728, "src": "370:13:49", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 15719, "name": "int256", "nodeType": "ElementaryTypeName", "src": "370:6:49", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 15722, "mutability": "mutable", "name": "startedAt", "nameLocation": "399:9:49", "nodeType": "VariableDeclaration", "scope": 15728, "src": "391:17:49", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 15721, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "391:7:49", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 15724, "mutability": "mutable", "name": "updatedAt", "nameLocation": "424:9:49", "nodeType": "VariableDeclaration", "scope": 15728, "src": "416:17:49", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 15723, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "416:7:49", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 15726, "mutability": "mutable", "name": "answeredInRound", "nameLocation": "448:15:49", "nodeType": "VariableDeclaration", "scope": 15728, "src": "441:22:49", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint80", "typeString": "uint80" }, "typeName": { "id": 15725, "name": "uint80", "nodeType": "ElementaryTypeName", "src": "441:6:49", "typeDescriptions": { "typeIdentifier": "t_uint80", "typeString": "uint80" } }, "visibility": "internal" } ], "src": "340:129:49" }, "scope": 15742, "src": "267:203:49", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "feaf968c", "id": 15741, "implemented": false, "kind": "function", "modifiers": [], "name": "latestRoundData", "nameLocation": "483:15:49", "nodeType": "FunctionDefinition", "parameters": { "id": 15729, "nodeType": "ParameterList", "parameters": [], "src": "498:2:49" }, "returnParameters": { "id": 15740, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 15731, "mutability": "mutable", "name": "roundId", "nameLocation": "550:7:49", "nodeType": "VariableDeclaration", "scope": 15741, "src": "543:14:49", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint80", "typeString": "uint80" }, "typeName": { "id": 15730, "name": "uint80", "nodeType": "ElementaryTypeName", "src": "543:6:49", "typeDescriptions": { "typeIdentifier": "t_uint80", "typeString": "uint80" } }, "visibility": "internal" }, { "constant": false, "id": 15733, "mutability": "mutable", "name": "answer", "nameLocation": "572:6:49", "nodeType": "VariableDeclaration", "scope": 15741, "src": "565:13:49", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 15732, "name": "int256", "nodeType": "ElementaryTypeName", "src": "565:6:49", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 15735, "mutability": "mutable", "name": "startedAt", "nameLocation": "594:9:49", "nodeType": "VariableDeclaration", "scope": 15741, "src": "586:17:49", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 15734, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "586:7:49", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 15737, "mutability": "mutable", "name": "updatedAt", "nameLocation": "619:9:49", "nodeType": "VariableDeclaration", "scope": 15741, "src": "611:17:49", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 15736, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "611:7:49", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 15739, "mutability": "mutable", "name": "answeredInRound", "nameLocation": "643:15:49", "nodeType": "VariableDeclaration", "scope": 15741, "src": "636:22:49", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint80", "typeString": "uint80" }, "typeName": { "id": 15738, "name": "uint80", "nodeType": "ElementaryTypeName", "src": "636:6:49", "typeDescriptions": { "typeIdentifier": "t_uint80", "typeString": "uint80" } }, "visibility": "internal" } ], "src": "535:129:49" }, "scope": 15742, "src": "474:191:49", "stateMutability": "view", "virtual": false, "visibility": "external" } ], "scope": 15743, "src": "57:610:49" } ], "src": "32:636:49" }, "bytecode": "", "bytecodeSha1": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "compiler": { "evm_version": "istanbul", "optimizer": { "enabled": true, "runs": 200 }, "version": "0.8.2+commit.661d1103" }, "contractName": "AggregatorV3Interface", "coverageMap": { "branches": {}, "statements": {} }, "dependencies": [], "deployedBytecode": "", "deployedSourceMap": "", "language": "Solidity", "natspec": { "kind": "dev", "methods": {}, "version": 1 }, "offset": [ 57, 667 ], "opcodes": "", "pcMap": {}, "sha1": "965e7614763128f952d3c12c822c787937c2330f", "source": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\ninterface AggregatorV3Interface {\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 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", "sourceMap": "", "sourcePath": "/home/vscode/.brownie/packages/smartcontractkit/chainlink@1.10.0/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol", "type": "interface" }