witnet-solidity-bridge
Version:
Witnet Solidity Bridge contracts for EVM-compatible chains
711 lines • 26.1 kB
JSON
{
"contractName": "IChainlinkAggregatorV3",
"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"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"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\":{\"project:/contracts/interfaces/legacy/IChainlinkAggregatorV3.sol\":\"IChainlinkAggregatorV3\"},\"evmVersion\":\"prague\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"project:/contracts/interfaces/legacy/IChainlinkAggregatorV3.sol\":{\"keccak256\":\"0x09750da5b74e684e13093320b00c8e95d648ddf58bfdb29b8bc3b90e6853c263\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b08da33fc3e7cbf1f60965f82efdea926f2f62312298be29188eca9d109189ac\",\"dweb:/ipfs/QmR2sJ4dddcDW5q14usqiEeB7pamqHDfqkMDd9hghVMhiJ\"]}},\"version\":1}",
"bytecode": "0x",
"deployedBytecode": "0x",
"immutableReferences": {},
"generatedSources": [],
"deployedGeneratedSources": [],
"sourceMap": "",
"deployedSourceMap": "",
"source": "// SPDX-License-Identifier: MIT\r\n\r\npragma solidity >=0.8.0 <0.9.0;\r\n\r\ninterface IChainlinkAggregatorV3 {\r\n\r\n function decimals() external view returns (uint8);\r\n function description() external view returns (string memory);\r\n \r\n function getRoundData(uint80 _roundId)\r\n external view returns (\r\n uint80 roundId, \r\n int256 answer, \r\n uint256 startedAt, \r\n uint256 updatedAt, \r\n uint80 answeredInRound\r\n );\r\n\r\n function latestRoundData()\r\n external view returns (\r\n uint80 roundId, \r\n int256 answer, \r\n uint256 startedAt, \r\n uint256 updatedAt, \r\n uint80 answeredInRound\r\n );\r\n\r\n function version() external view returns (uint256);\r\n}\r\n",
"sourcePath": "C:\\Users\\guill\\github\\guidiaz\\witnet-solidity-bridge\\contracts\\interfaces\\legacy\\IChainlinkAggregatorV3.sol",
"ast": {
"absolutePath": "project:/contracts/interfaces/legacy/IChainlinkAggregatorV3.sol",
"exportedSymbols": {
"IChainlinkAggregatorV3": [
28507
]
},
"id": 28508,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 28463,
"literals": [
"solidity",
">=",
"0.8",
".0",
"<",
"0.9",
".0"
],
"nodeType": "PragmaDirective",
"src": "35:31:90"
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "IChainlinkAggregatorV3",
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 28507,
"linearizedBaseContracts": [
28507
],
"name": "IChainlinkAggregatorV3",
"nameLocation": "80:22:90",
"nodeType": "ContractDefinition",
"nodes": [
{
"functionSelector": "313ce567",
"id": 28468,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "decimals",
"nameLocation": "121:8:90",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 28464,
"nodeType": "ParameterList",
"parameters": [],
"src": "129:2:90"
},
"returnParameters": {
"id": 28467,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 28466,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 28468,
"src": "155:5:90",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 28465,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "155:5:90",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"visibility": "internal"
}
],
"src": "154:7:90"
},
"scope": 28507,
"src": "112:50:90",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "7284e416",
"id": 28473,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "description",
"nameLocation": "177:11:90",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 28469,
"nodeType": "ParameterList",
"parameters": [],
"src": "188:2:90"
},
"returnParameters": {
"id": 28472,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 28471,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 28473,
"src": "214:13:90",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 28470,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "214:6:90",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
}
],
"src": "213:15:90"
},
"scope": 28507,
"src": "168:61:90",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "9a6fc8f5",
"id": 28488,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getRoundData",
"nameLocation": "250:12:90",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 28476,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 28475,
"mutability": "mutable",
"name": "_roundId",
"nameLocation": "270:8:90",
"nodeType": "VariableDeclaration",
"scope": 28488,
"src": "263:15:90",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint80",
"typeString": "uint80"
},
"typeName": {
"id": 28474,
"name": "uint80",
"nodeType": "ElementaryTypeName",
"src": "263:6:90",
"typeDescriptions": {
"typeIdentifier": "t_uint80",
"typeString": "uint80"
}
},
"visibility": "internal"
}
],
"src": "262:17:90"
},
"returnParameters": {
"id": 28487,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 28478,
"mutability": "mutable",
"name": "roundId",
"nameLocation": "333:7:90",
"nodeType": "VariableDeclaration",
"scope": 28488,
"src": "326:14:90",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint80",
"typeString": "uint80"
},
"typeName": {
"id": 28477,
"name": "uint80",
"nodeType": "ElementaryTypeName",
"src": "326:6:90",
"typeDescriptions": {
"typeIdentifier": "t_uint80",
"typeString": "uint80"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 28480,
"mutability": "mutable",
"name": "answer",
"nameLocation": "363:6:90",
"nodeType": "VariableDeclaration",
"scope": 28488,
"src": "356:13:90",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_int256",
"typeString": "int256"
},
"typeName": {
"id": 28479,
"name": "int256",
"nodeType": "ElementaryTypeName",
"src": "356:6:90",
"typeDescriptions": {
"typeIdentifier": "t_int256",
"typeString": "int256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 28482,
"mutability": "mutable",
"name": "startedAt",
"nameLocation": "393:9:90",
"nodeType": "VariableDeclaration",
"scope": 28488,
"src": "385:17:90",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 28481,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "385:7:90",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 28484,
"mutability": "mutable",
"name": "updatedAt",
"nameLocation": "426:9:90",
"nodeType": "VariableDeclaration",
"scope": 28488,
"src": "418:17:90",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 28483,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "418:7:90",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 28486,
"mutability": "mutable",
"name": "answeredInRound",
"nameLocation": "458:15:90",
"nodeType": "VariableDeclaration",
"scope": 28488,
"src": "451:22:90",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint80",
"typeString": "uint80"
},
"typeName": {
"id": 28485,
"name": "uint80",
"nodeType": "ElementaryTypeName",
"src": "451:6:90",
"typeDescriptions": {
"typeIdentifier": "t_uint80",
"typeString": "uint80"
}
},
"visibility": "internal"
}
],
"src": "311:173:90"
},
"scope": 28507,
"src": "241:244:90",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "feaf968c",
"id": 28501,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "latestRoundData",
"nameLocation": "502:15:90",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 28489,
"nodeType": "ParameterList",
"parameters": [],
"src": "517:2:90"
},
"returnParameters": {
"id": 28500,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 28491,
"mutability": "mutable",
"name": "roundId",
"nameLocation": "573:7:90",
"nodeType": "VariableDeclaration",
"scope": 28501,
"src": "566:14:90",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint80",
"typeString": "uint80"
},
"typeName": {
"id": 28490,
"name": "uint80",
"nodeType": "ElementaryTypeName",
"src": "566:6:90",
"typeDescriptions": {
"typeIdentifier": "t_uint80",
"typeString": "uint80"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 28493,
"mutability": "mutable",
"name": "answer",
"nameLocation": "603:6:90",
"nodeType": "VariableDeclaration",
"scope": 28501,
"src": "596:13:90",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_int256",
"typeString": "int256"
},
"typeName": {
"id": 28492,
"name": "int256",
"nodeType": "ElementaryTypeName",
"src": "596:6:90",
"typeDescriptions": {
"typeIdentifier": "t_int256",
"typeString": "int256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 28495,
"mutability": "mutable",
"name": "startedAt",
"nameLocation": "633:9:90",
"nodeType": "VariableDeclaration",
"scope": 28501,
"src": "625:17:90",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 28494,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "625:7:90",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 28497,
"mutability": "mutable",
"name": "updatedAt",
"nameLocation": "666:9:90",
"nodeType": "VariableDeclaration",
"scope": 28501,
"src": "658:17:90",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 28496,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "658:7:90",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 28499,
"mutability": "mutable",
"name": "answeredInRound",
"nameLocation": "698:15:90",
"nodeType": "VariableDeclaration",
"scope": 28501,
"src": "691:22:90",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint80",
"typeString": "uint80"
},
"typeName": {
"id": 28498,
"name": "uint80",
"nodeType": "ElementaryTypeName",
"src": "691:6:90",
"typeDescriptions": {
"typeIdentifier": "t_uint80",
"typeString": "uint80"
}
},
"visibility": "internal"
}
],
"src": "551:173:90"
},
"scope": 28507,
"src": "493:232:90",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "54fd4d50",
"id": 28506,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "version",
"nameLocation": "742:7:90",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 28502,
"nodeType": "ParameterList",
"parameters": [],
"src": "749:2:90"
},
"returnParameters": {
"id": 28505,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 28504,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 28506,
"src": "775:7:90",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 28503,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "775:7:90",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "774:9:90"
},
"scope": 28507,
"src": "733:51:90",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 28508,
"src": "70:717:90",
"usedErrors": [],
"usedEvents": []
}
],
"src": "35:754:90"
},
"compiler": {
"name": "solc",
"version": "0.8.30+commit.73712a01.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.4.16",
"updatedAt": "2025-10-15T14:34:45.920Z",
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}