{
  "contractName": "IMedianizer",
  "abi": [
    {
      "constant": true,
      "inputs": [],
      "name": "read",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "peek",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        },
        {
          "internalType": "bool",
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    }
  ],
  "metadata": "{\"compiler\":{\"version\":\"0.5.17+commit.d19bba13\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[],\"name\":\"peek\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"read\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Based off the MakerDAO medianizer (https://github.com/makerdao/median)\",\"methods\":{\"peek()\":{\"details\":\"May revert if caller not whitelisted.\",\"return\":\"Designated price with 18 decimal places.true if price is > 0, else returns false\"},\"read()\":{\"details\":\"May revert if caller not whitelisted.\",\"return\":\"Designated price with 18 decimal places.\"}}},\"userdoc\":{\"methods\":{\"peek()\":{\"notice\":\"Get the current price and check if the price feed is active\"},\"read()\":{\"notice\":\"Get the current price.\"}},\"notice\":\"A medianizer price feed.\"}},\"settings\":{\"compilationTarget\":{\"/home/runner/work/tbtc/tbtc/solidity/contracts/external/IMedianizer.sol\":\"IMedianizer\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/home/runner/work/tbtc/tbtc/solidity/contracts/external/IMedianizer.sol\":{\"keccak256\":\"0xbe5c1dbd0f097ed0ef72e2a61ab54de315685a835e7dc7f5d3404b5158189c67\",\"urls\":[\"bzz-raw://0519b1ce42540d07debfa8b62a52c6c44b309ea549cc4d3166d4fd821aec9b79\",\"dweb:/ipfs/QmYD2cojTyk2ZDrWrTKSthVUAPydzAgPrpRWeiwJyksPJV\"]}},\"version\":1}",
  "bytecode": "0x",
  "deployedBytecode": "0x",
  "sourceMap": "",
  "deployedSourceMap": "",
  "source": "pragma solidity 0.5.17;\n\n/// @notice A medianizer price feed.\n/// @dev Based off the MakerDAO medianizer (https://github.com/makerdao/median)\ninterface IMedianizer {\n    /// @notice Get the current price.\n    /// @dev May revert if caller not whitelisted.\n    /// @return Designated price with 18 decimal places.\n    function read() external view returns (uint256);\n\n    /// @notice Get the current price and check if the price feed is active\n    /// @dev May revert if caller not whitelisted.\n    /// @return Designated price with 18 decimal places.\n    /// @return true if price is > 0, else returns false\n    function peek() external view returns (uint256, bool);\n}\n",
  "sourcePath": "/home/runner/work/tbtc/tbtc/solidity/contracts/external/IMedianizer.sol",
  "ast": {
    "absolutePath": "/home/runner/work/tbtc/tbtc/solidity/contracts/external/IMedianizer.sol",
    "exportedSymbols": {
      "IMedianizer": [
        5433
      ]
    },
    "id": 5434,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 5420,
        "literals": [
          "solidity",
          "0.5",
          ".17"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:23:9"
      },
      {
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "interface",
        "documentation": "@notice A medianizer price feed.\n @dev Based off the MakerDAO medianizer (https://github.com/makerdao/median)",
        "fullyImplemented": false,
        "id": 5433,
        "linearizedBaseContracts": [
          5433
        ],
        "name": "IMedianizer",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "body": null,
            "documentation": "@notice Get the current price.\n @dev May revert if caller not whitelisted.\n @return Designated price with 18 decimal places.",
            "id": 5425,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "read",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 5421,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "330:2:9"
            },
            "returnParameters": {
              "id": 5424,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 5423,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 5425,
                  "src": "356:7:9",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 5422,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "356:7:9",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "355:9:9"
            },
            "scope": 5433,
            "src": "317:48:9",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": null,
            "documentation": "@notice Get the current price and check if the price feed is active\n @dev May revert if caller not whitelisted.\n @return Designated price with 18 decimal places.\n @return true if price is > 0, else returns false",
            "id": 5432,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "peek",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 5426,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "625:2:9"
            },
            "returnParameters": {
              "id": 5431,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 5428,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 5432,
                  "src": "651:7:9",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 5427,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "651:7:9",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 5430,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 5432,
                  "src": "660:4:9",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 5429,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "660:4:9",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "650:15:9"
            },
            "scope": 5433,
            "src": "612:54:9",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "external"
          }
        ],
        "scope": 5434,
        "src": "142:526:9"
      }
    ],
    "src": "0:669:9"
  },
  "legacyAST": {
    "attributes": {
      "absolutePath": "/home/runner/work/tbtc/tbtc/solidity/contracts/external/IMedianizer.sol",
      "exportedSymbols": {
        "IMedianizer": [
          5433
        ]
      }
    },
    "children": [
      {
        "attributes": {
          "literals": [
            "solidity",
            "0.5",
            ".17"
          ]
        },
        "id": 5420,
        "name": "PragmaDirective",
        "src": "0:23:9"
      },
      {
        "attributes": {
          "baseContracts": [
            null
          ],
          "contractDependencies": [
            null
          ],
          "contractKind": "interface",
          "documentation": "@notice A medianizer price feed.\n @dev Based off the MakerDAO medianizer (https://github.com/makerdao/median)",
          "fullyImplemented": false,
          "linearizedBaseContracts": [
            5433
          ],
          "name": "IMedianizer",
          "scope": 5434
        },
        "children": [
          {
            "attributes": {
              "body": null,
              "documentation": "@notice Get the current price.\n @dev May revert if caller not whitelisted.\n @return Designated price with 18 decimal places.",
              "implemented": false,
              "isConstructor": false,
              "kind": "function",
              "modifiers": [
                null
              ],
              "name": "read",
              "scope": 5433,
              "stateMutability": "view",
              "superFunction": null,
              "visibility": "external"
            },
            "children": [
              {
                "attributes": {
                  "parameters": [
                    null
                  ]
                },
                "children": [],
                "id": 5421,
                "name": "ParameterList",
                "src": "330:2:9"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "",
                      "scope": 5425,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "uint256",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "uint256",
                          "type": "uint256"
                        },
                        "id": 5422,
                        "name": "ElementaryTypeName",
                        "src": "356:7:9"
                      }
                    ],
                    "id": 5423,
                    "name": "VariableDeclaration",
                    "src": "356:7:9"
                  }
                ],
                "id": 5424,
                "name": "ParameterList",
                "src": "355:9:9"
              }
            ],
            "id": 5425,
            "name": "FunctionDefinition",
            "src": "317:48:9"
          },
          {
            "attributes": {
              "body": null,
              "documentation": "@notice Get the current price and check if the price feed is active\n @dev May revert if caller not whitelisted.\n @return Designated price with 18 decimal places.\n @return true if price is > 0, else returns false",
              "implemented": false,
              "isConstructor": false,
              "kind": "function",
              "modifiers": [
                null
              ],
              "name": "peek",
              "scope": 5433,
              "stateMutability": "view",
              "superFunction": null,
              "visibility": "external"
            },
            "children": [
              {
                "attributes": {
                  "parameters": [
                    null
                  ]
                },
                "children": [],
                "id": 5426,
                "name": "ParameterList",
                "src": "625:2:9"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "",
                      "scope": 5432,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "uint256",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "uint256",
                          "type": "uint256"
                        },
                        "id": 5427,
                        "name": "ElementaryTypeName",
                        "src": "651:7:9"
                      }
                    ],
                    "id": 5428,
                    "name": "VariableDeclaration",
                    "src": "651:7:9"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "name": "",
                      "scope": 5432,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "bool",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "bool",
                          "type": "bool"
                        },
                        "id": 5429,
                        "name": "ElementaryTypeName",
                        "src": "660:4:9"
                      }
                    ],
                    "id": 5430,
                    "name": "VariableDeclaration",
                    "src": "660:4:9"
                  }
                ],
                "id": 5431,
                "name": "ParameterList",
                "src": "650:15:9"
              }
            ],
            "id": 5432,
            "name": "FunctionDefinition",
            "src": "612:54:9"
          }
        ],
        "id": 5433,
        "name": "ContractDefinition",
        "src": "142:526:9"
      }
    ],
    "id": 5434,
    "name": "SourceUnit",
    "src": "0:669:9"
  },
  "compiler": {
    "name": "solc",
    "version": "0.5.17+commit.d19bba13.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "3.3.4",
  "updatedAt": "2021-11-23T11:52:09.272Z",
  "devdoc": {
    "details": "Based off the MakerDAO medianizer (https://github.com/makerdao/median)",
    "methods": {
      "peek()": {
        "details": "May revert if caller not whitelisted.",
        "return": "Designated price with 18 decimal places.true if price is > 0, else returns false"
      },
      "read()": {
        "details": "May revert if caller not whitelisted.",
        "return": "Designated price with 18 decimal places."
      }
    }
  },
  "userdoc": {
    "methods": {
      "peek()": {
        "notice": "Get the current price and check if the price feed is active"
      },
      "read()": {
        "notice": "Get the current price."
      }
    },
    "notice": "A medianizer price feed."
  }
}