@etherisc/depeg-contracts
Version:
Etherisc's smart contracts for a depeg insurance for stable coins.
387 lines • 9.4 kB
JSON
{
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "int256",
"name": "current",
"type": "int256"
},
{
"indexed": true,
"internalType": "uint256",
"name": "roundId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "updatedAt",
"type": "uint256"
}
],
"name": "AnswerUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "roundId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "startedBy",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "startedAt",
"type": "uint256"
}
],
"name": "NewRound",
"type": "event"
},
{
"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": "uint256",
"name": "roundId",
"type": "uint256"
}
],
"name": "getAnswer",
"outputs": [
{
"internalType": "int256",
"name": "",
"type": "int256"
}
],
"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": [
{
"internalType": "uint256",
"name": "roundId",
"type": "uint256"
}
],
"name": "getTimestamp",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "latestAnswer",
"outputs": [
{
"internalType": "int256",
"name": "",
"type": "int256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "latestRound",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"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": "latestTimestamp",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "version",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
],
"allSourcePaths": {
"47": "/home/vscode/.brownie/packages/smartcontractkit/chainlink@1.10.0/contracts/src/v0.8/interfaces/AggregatorInterface.sol",
"48": "/home/vscode/.brownie/packages/smartcontractkit/chainlink@1.10.0/contracts/src/v0.8/interfaces/AggregatorV2V3Interface.sol",
"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/AggregatorV2V3Interface.sol",
"exportedSymbols": {
"AggregatorInterface": [
15696
],
"AggregatorV2V3Interface": [
9485
],
"AggregatorV3Interface": [
15742
]
},
"id": 9486,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 9478,
"literals": [
"solidity",
"^",
"0.8",
".0"
],
"nodeType": "PragmaDirective",
"src": "32:23:48"
},
{
"absolutePath": "/home/vscode/.brownie/packages/smartcontractkit/chainlink@1.10.0/contracts/src/v0.8/interfaces/AggregatorInterface.sol",
"file": "./AggregatorInterface.sol",
"id": 9479,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 9486,
"sourceUnit": 15697,
"src": "57:35:48",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/home/vscode/.brownie/packages/smartcontractkit/chainlink@1.10.0/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol",
"file": "./AggregatorV3Interface.sol",
"id": 9480,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 9486,
"sourceUnit": 15743,
"src": "93:37:48",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [
{
"baseName": {
"id": 9481,
"name": "AggregatorInterface",
"nodeType": "IdentifierPath",
"referencedDeclaration": 15696,
"src": "169:19:48"
},
"id": 9482,
"nodeType": "InheritanceSpecifier",
"src": "169:19:48"
},
{
"baseName": {
"id": 9483,
"name": "AggregatorV3Interface",
"nodeType": "IdentifierPath",
"referencedDeclaration": 15742,
"src": "190:21:48"
},
"id": 9484,
"nodeType": "InheritanceSpecifier",
"src": "190:21:48"
}
],
"contractDependencies": [
15696,
15742
],
"contractKind": "interface",
"fullyImplemented": false,
"id": 9485,
"linearizedBaseContracts": [
9485,
15742,
15696
],
"name": "AggregatorV2V3Interface",
"nameLocation": "142:23:48",
"nodeType": "ContractDefinition",
"nodes": [],
"scope": 9486,
"src": "132:82:48"
}
],
"src": "32:183:48"
},
"bytecode": "",
"bytecodeSha1": "da39a3ee5e6b4b0d3255bfef95601890afd80709",
"compiler": {
"evm_version": "istanbul",
"optimizer": {
"enabled": true,
"runs": 200
},
"version": "0.8.2+commit.661d1103"
},
"contractName": "AggregatorV2V3Interface",
"coverageMap": {
"branches": {},
"statements": {}
},
"dependencies": [
"smartcontractkit/chainlink@1.10.0/AggregatorInterface",
"smartcontractkit/chainlink@1.10.0/AggregatorV3Interface"
],
"deployedBytecode": "",
"deployedSourceMap": "",
"language": "Solidity",
"natspec": {
"kind": "dev",
"methods": {},
"version": 1
},
"offset": [
132,
214
],
"opcodes": "",
"pcMap": {},
"sha1": "f55523e2fbcab717b1e849c30330aa43967563d1",
"source": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport \"./AggregatorInterface.sol\";\nimport \"./AggregatorV3Interface.sol\";\n\ninterface AggregatorV2V3Interface is AggregatorInterface, AggregatorV3Interface {}\n",
"sourceMap": "",
"sourcePath": "/home/vscode/.brownie/packages/smartcontractkit/chainlink@1.10.0/contracts/src/v0.8/interfaces/AggregatorV2V3Interface.sol",
"type": "interface"
}