cic-internal-integration/apps/cic-eth/tests/testdata/bancor/IPriceOracle.json

1260 lines
46 KiB
JSON

{
"contractName": "IPriceOracle",
"abi": [
{
"inputs": [],
"name": "tokenAOracle",
"outputs": [
{
"internalType": "contract IChainlinkPriceOracle",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "tokenBOracle",
"outputs": [
{
"internalType": "contract IChainlinkPriceOracle",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IERC20Token",
"name": "_tokenA",
"type": "address"
},
{
"internalType": "contract IERC20Token",
"name": "_tokenB",
"type": "address"
}
],
"name": "latestRate",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "lastUpdateTime",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IERC20Token",
"name": "_tokenA",
"type": "address"
},
{
"internalType": "contract IERC20Token",
"name": "_tokenB",
"type": "address"
}
],
"name": "latestRateAndUpdateTime",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.6.12+commit.27d51765\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"lastUpdateTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20Token\",\"name\":\"_tokenA\",\"type\":\"address\"},{\"internalType\":\"contract IERC20Token\",\"name\":\"_tokenB\",\"type\":\"address\"}],\"name\":\"latestRate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20Token\",\"name\":\"_tokenA\",\"type\":\"address\"},{\"internalType\":\"contract IERC20Token\",\"name\":\"_tokenB\",\"type\":\"address\"}],\"name\":\"latestRateAndUpdateTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tokenAOracle\",\"outputs\":[{\"internalType\":\"contract IChainlinkPriceOracle\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tokenBOracle\",\"outputs\":[{\"internalType\":\"contract IChainlinkPriceOracle\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/utility/interfaces/IPriceOracle.sol\":\"IPriceOracle\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/token/interfaces/IERC20Token.sol\":{\"keccak256\":\"0xe6f988c3156e88258474526a541d5a42b6a9adae98b04177a059d9f723bc82cd\",\"license\":\"SEE LICENSE IN LICENSE\",\"urls\":[\"bzz-raw://9a6eb77a5b9ce70995a11a6e48ac3985a4c70896fe5fe04d46146ad7c1c83ea3\",\"dweb:/ipfs/QmYvGSveZFG51tghwkVuu6eK9Jy8frHpfLxHTMyvNZN461\"]},\"/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/utility/interfaces/IChainlinkPriceOracle.sol\":{\"keccak256\":\"0x544a1d335c9a30e5543f5c069bbd9f73e6478b0a6941481619a0d20eea159c2a\",\"license\":\"SEE LICENSE IN LICENSE\",\"urls\":[\"bzz-raw://8649d3ff5e21bf5ff21d45a62193974e08ccec27b392e91cbfdad479a60e87f0\",\"dweb:/ipfs/QmatS5peisTv9PdqVz9eSuveQdhJBqpxfpr5q4YsMv51CZ\"]},\"/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/utility/interfaces/IPriceOracle.sol\":{\"keccak256\":\"0x39f4f7af694f7f24373901d8edd57245c6e59970cd1b35137ded4bbebe2155bb\",\"license\":\"SEE LICENSE IN LICENSE\",\"urls\":[\"bzz-raw://30d1011854960be9ab326844d4d97324084955593b2903bee969aba6b1b5f8e9\",\"dweb:/ipfs/QmeTQNZRDNrboKD3ikyMj3tNVHGsa1GqBuAXytJAhhK5Az\"]}},\"version\":1}",
"bytecode": "0x",
"deployedBytecode": "0x",
"immutableReferences": {},
"sourceMap": "",
"deployedSourceMap": "",
"source": "// SPDX-License-Identifier: SEE LICENSE IN LICENSE\npragma solidity 0.6.12;\nimport \"./IChainlinkPriceOracle.sol\";\nimport \"../../token/interfaces/IERC20Token.sol\";\n\n/*\n Price Oracle interface\n*/\ninterface IPriceOracle {\n function tokenAOracle() external view returns (IChainlinkPriceOracle);\n function tokenBOracle() external view returns (IChainlinkPriceOracle);\n\n function latestRate(IERC20Token _tokenA, IERC20Token _tokenB) external view returns (uint256, uint256);\n function lastUpdateTime() external view returns (uint256);\n function latestRateAndUpdateTime(IERC20Token _tokenA, IERC20Token _tokenB) external view returns (uint256, uint256, uint256);\n}\n",
"sourcePath": "/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/utility/interfaces/IPriceOracle.sol",
"ast": {
"absolutePath": "/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/utility/interfaces/IPriceOracle.sol",
"exportedSymbols": {
"IPriceOracle": [
22891
]
},
"id": 22892,
"license": "SEE LICENSE IN LICENSE",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 22849,
"literals": [
"solidity",
"0.6",
".12"
],
"nodeType": "PragmaDirective",
"src": "51:23:69"
},
{
"absolutePath": "/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/utility/interfaces/IChainlinkPriceOracle.sol",
"file": "./IChainlinkPriceOracle.sol",
"id": 22850,
"nodeType": "ImportDirective",
"scope": 22892,
"sourceUnit": 22822,
"src": "75:37:69",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/token/interfaces/IERC20Token.sol",
"file": "../../token/interfaces/IERC20Token.sol",
"id": 22851,
"nodeType": "ImportDirective",
"scope": 22892,
"sourceUnit": 21128,
"src": "113:48:69",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 22891,
"linearizedBaseContracts": [
22891
],
"name": "IPriceOracle",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"functionSelector": "b9e1715b",
"id": 22856,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "tokenAOracle",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 22852,
"nodeType": "ParameterList",
"parameters": [],
"src": "246:2:69"
},
"returnParameters": {
"id": 22855,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 22854,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 22856,
"src": "272:21:69",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IChainlinkPriceOracle_$22821",
"typeString": "contract IChainlinkPriceOracle"
},
"typeName": {
"contractScope": null,
"id": 22853,
"name": "IChainlinkPriceOracle",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 22821,
"src": "272:21:69",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IChainlinkPriceOracle_$22821",
"typeString": "contract IChainlinkPriceOracle"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "271:23:69"
},
"scope": 22891,
"src": "225:70:69",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "f997fda7",
"id": 22861,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "tokenBOracle",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 22857,
"nodeType": "ParameterList",
"parameters": [],
"src": "321:2:69"
},
"returnParameters": {
"id": 22860,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 22859,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 22861,
"src": "347:21:69",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IChainlinkPriceOracle_$22821",
"typeString": "contract IChainlinkPriceOracle"
},
"typeName": {
"contractScope": null,
"id": 22858,
"name": "IChainlinkPriceOracle",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 22821,
"src": "347:21:69",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IChainlinkPriceOracle_$22821",
"typeString": "contract IChainlinkPriceOracle"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "346:23:69"
},
"scope": 22891,
"src": "300:70:69",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "ae818004",
"id": 22872,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "latestRate",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 22866,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 22863,
"mutability": "mutable",
"name": "_tokenA",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 22872,
"src": "396:19:69",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
"typeName": {
"contractScope": null,
"id": 22862,
"name": "IERC20Token",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21127,
"src": "396:11:69",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 22865,
"mutability": "mutable",
"name": "_tokenB",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 22872,
"src": "417:19:69",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
"typeName": {
"contractScope": null,
"id": 22864,
"name": "IERC20Token",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21127,
"src": "417:11:69",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "395:42:69"
},
"returnParameters": {
"id": 22871,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 22868,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 22872,
"src": "461:7:69",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 22867,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "461:7:69",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 22870,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 22872,
"src": "470:7:69",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 22869,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "470:7:69",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "460:18:69"
},
"scope": 22891,
"src": "376:103:69",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "c8f33c91",
"id": 22877,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "lastUpdateTime",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 22873,
"nodeType": "ParameterList",
"parameters": [],
"src": "507:2:69"
},
"returnParameters": {
"id": 22876,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 22875,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 22877,
"src": "533:7:69",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 22874,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "533:7:69",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "532:9:69"
},
"scope": 22891,
"src": "484:58:69",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "b1772d7a",
"id": 22890,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "latestRateAndUpdateTime",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 22882,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 22879,
"mutability": "mutable",
"name": "_tokenA",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 22890,
"src": "580:19:69",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
"typeName": {
"contractScope": null,
"id": 22878,
"name": "IERC20Token",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21127,
"src": "580:11:69",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 22881,
"mutability": "mutable",
"name": "_tokenB",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 22890,
"src": "601:19:69",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
"typeName": {
"contractScope": null,
"id": 22880,
"name": "IERC20Token",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21127,
"src": "601:11:69",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "579:42:69"
},
"returnParameters": {
"id": 22889,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 22884,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 22890,
"src": "645:7:69",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 22883,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "645:7:69",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 22886,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 22890,
"src": "654:7:69",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 22885,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "654:7:69",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 22888,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 22890,
"src": "663:7:69",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 22887,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "663:7:69",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "644:27:69"
},
"scope": 22891,
"src": "547:125:69",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 22892,
"src": "196:478:69"
}
],
"src": "51:624:69"
},
"legacyAST": {
"absolutePath": "/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/utility/interfaces/IPriceOracle.sol",
"exportedSymbols": {
"IPriceOracle": [
22891
]
},
"id": 22892,
"license": "SEE LICENSE IN LICENSE",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 22849,
"literals": [
"solidity",
"0.6",
".12"
],
"nodeType": "PragmaDirective",
"src": "51:23:69"
},
{
"absolutePath": "/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/utility/interfaces/IChainlinkPriceOracle.sol",
"file": "./IChainlinkPriceOracle.sol",
"id": 22850,
"nodeType": "ImportDirective",
"scope": 22892,
"sourceUnit": 22822,
"src": "75:37:69",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/token/interfaces/IERC20Token.sol",
"file": "../../token/interfaces/IERC20Token.sol",
"id": 22851,
"nodeType": "ImportDirective",
"scope": 22892,
"sourceUnit": 21128,
"src": "113:48:69",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 22891,
"linearizedBaseContracts": [
22891
],
"name": "IPriceOracle",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"functionSelector": "b9e1715b",
"id": 22856,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "tokenAOracle",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 22852,
"nodeType": "ParameterList",
"parameters": [],
"src": "246:2:69"
},
"returnParameters": {
"id": 22855,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 22854,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 22856,
"src": "272:21:69",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IChainlinkPriceOracle_$22821",
"typeString": "contract IChainlinkPriceOracle"
},
"typeName": {
"contractScope": null,
"id": 22853,
"name": "IChainlinkPriceOracle",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 22821,
"src": "272:21:69",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IChainlinkPriceOracle_$22821",
"typeString": "contract IChainlinkPriceOracle"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "271:23:69"
},
"scope": 22891,
"src": "225:70:69",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "f997fda7",
"id": 22861,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "tokenBOracle",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 22857,
"nodeType": "ParameterList",
"parameters": [],
"src": "321:2:69"
},
"returnParameters": {
"id": 22860,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 22859,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 22861,
"src": "347:21:69",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IChainlinkPriceOracle_$22821",
"typeString": "contract IChainlinkPriceOracle"
},
"typeName": {
"contractScope": null,
"id": 22858,
"name": "IChainlinkPriceOracle",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 22821,
"src": "347:21:69",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IChainlinkPriceOracle_$22821",
"typeString": "contract IChainlinkPriceOracle"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "346:23:69"
},
"scope": 22891,
"src": "300:70:69",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "ae818004",
"id": 22872,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "latestRate",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 22866,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 22863,
"mutability": "mutable",
"name": "_tokenA",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 22872,
"src": "396:19:69",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
"typeName": {
"contractScope": null,
"id": 22862,
"name": "IERC20Token",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21127,
"src": "396:11:69",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 22865,
"mutability": "mutable",
"name": "_tokenB",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 22872,
"src": "417:19:69",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
"typeName": {
"contractScope": null,
"id": 22864,
"name": "IERC20Token",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21127,
"src": "417:11:69",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "395:42:69"
},
"returnParameters": {
"id": 22871,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 22868,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 22872,
"src": "461:7:69",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 22867,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "461:7:69",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 22870,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 22872,
"src": "470:7:69",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 22869,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "470:7:69",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "460:18:69"
},
"scope": 22891,
"src": "376:103:69",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "c8f33c91",
"id": 22877,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "lastUpdateTime",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 22873,
"nodeType": "ParameterList",
"parameters": [],
"src": "507:2:69"
},
"returnParameters": {
"id": 22876,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 22875,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 22877,
"src": "533:7:69",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 22874,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "533:7:69",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "532:9:69"
},
"scope": 22891,
"src": "484:58:69",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "b1772d7a",
"id": 22890,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "latestRateAndUpdateTime",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 22882,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 22879,
"mutability": "mutable",
"name": "_tokenA",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 22890,
"src": "580:19:69",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
"typeName": {
"contractScope": null,
"id": 22878,
"name": "IERC20Token",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21127,
"src": "580:11:69",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 22881,
"mutability": "mutable",
"name": "_tokenB",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 22890,
"src": "601:19:69",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
"typeName": {
"contractScope": null,
"id": 22880,
"name": "IERC20Token",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21127,
"src": "601:11:69",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "579:42:69"
},
"returnParameters": {
"id": 22889,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 22884,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 22890,
"src": "645:7:69",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 22883,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "645:7:69",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 22886,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 22890,
"src": "654:7:69",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 22885,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "654:7:69",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 22888,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 22890,
"src": "663:7:69",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 22887,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "663:7:69",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "644:27:69"
},
"scope": 22891,
"src": "547:125:69",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 22892,
"src": "196:478:69"
}
],
"src": "51:624:69"
},
"compiler": {
"name": "solc",
"version": "0.6.12+commit.27d51765.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.2.3",
"updatedAt": "2020-10-20T08:24:47.850Z",
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}