{
  "contractName": "IntermediaryMedianizer",
  "abi": [
    {
      "inputs": [
        {
          "internalType": "contract IMedianizer",
          "name": "realMedianizer",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "constructor"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "address",
          "name": "previousOwner",
          "type": "address"
        },
        {
          "indexed": true,
          "internalType": "address",
          "name": "newOwner",
          "type": "address"
        }
      ],
      "name": "OwnershipTransferred",
      "type": "event"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "isOwner",
      "outputs": [
        {
          "internalType": "bool",
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "owner",
      "outputs": [
        {
          "internalType": "address",
          "name": "",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [],
      "name": "renounceOwnership",
      "outputs": [],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "internalType": "address",
          "name": "newOwner",
          "type": "address"
        }
      ],
      "name": "transferOwnership",
      "outputs": [],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "getMedianizer",
      "outputs": [
        {
          "internalType": "contract IMedianizer",
          "name": "",
          "type": "address"
        }
      ],
      "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"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "read",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "internalType": "contract IMedianizer",
          "name": "realMedianizer",
          "type": "address"
        }
      ],
      "name": "setMedianizer",
      "outputs": [],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    }
  ],
  "metadata": "{\"compiler\":{\"version\":\"0.5.17+commit.d19bba13\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"contract IMedianizer\",\"name\":\"realMedianizer\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"constant\":true,\"inputs\":[],\"name\":\"getMedianizer\",\"outputs\":[{\"internalType\":\"contract IMedianizer\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"isOwner\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"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\"},{\"constant\":true,\"inputs\":[],\"name\":\"read\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"contract IMedianizer\",\"name\":\"realMedianizer\",\"type\":\"address\"}],\"name\":\"setMedianizer\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"This is used in Keep testnets where Maker has deployed a Medianizer      instance that needs to authorize a single consumer, to enable multiple      tBTC deployments to happen in the background and be pointed at a stable      medianizer instance that is authorized on the Maker contract. It allows      the updating of the backing medianizer and therefore is NOT suitable      for mainnet deployment.\",\"methods\":{\"isOwner()\":{\"details\":\"Returns true if the caller is the current owner.\"},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner.     * > Note: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"title\":\"IntermediaryMedianizer is an updatable intermediary between a real        medianizer and IMedianizer users.\"},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/home/runner/work/tbtc/tbtc/solidity/contracts/test/price-feed/IntermediaryMedianizer.sol\":\"IntermediaryMedianizer\"},\"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\"]},\"/home/runner/work/tbtc/tbtc/solidity/contracts/test/price-feed/IntermediaryMedianizer.sol\":{\"keccak256\":\"0xc5162a7c2b89169cad7a30c1bf52013a53b0cf42ff2e082c0e0042582d4b8e97\",\"urls\":[\"bzz-raw://165f4a34639ca53bbe4148d0b4ab84de069196c238ea2df3a116d74b11094654\",\"dweb:/ipfs/QmSJDDp8FA3W3k51moWUWzRjnBiKbgerLppVgPA6oHx21h\"]},\"openzeppelin-solidity/contracts/ownership/Ownable.sol\":{\"keccak256\":\"0xf79fb10e8235770eb4aea7249034076a3cc9f9119ad944fc48705bae9c9d20dc\",\"urls\":[\"bzz-raw://cd3429aa9a4878dcf6c73faa32c3722f4013d4be012ece543b246faa6b50f55c\",\"dweb:/ipfs/QmS55hgTvNEAKinus19m65CB4wcymN8EiUPFpRx5tYJ1i2\"]}},\"version\":1}",
  "bytecode": "0x608060405234801561001057600080fd5b506040516105b73803806105b78339818101604052602081101561003357600080fd5b5051600080546001600160a01b03191633178082556040516001600160a01b039190911691907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3600180546001600160a01b0319166001600160a01b039290921691909117905561050a806100ad6000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c80638da5cb5b1161005b5780638da5cb5b146100f65780638f32d59b146100fe578063e7baf8dd1461011a578063f2fde38b1461014057610088565b8063242043491461008d57806357de26a4146100b157806359e02dd7146100cb578063715018a6146100ec575b600080fd5b610095610166565b604080516001600160a01b039092168252519081900360200190f35b6100b9610175565b60408051918252519081900360200190f35b6100d36101eb565b6040805192835290151560208301528051918290030190f35b6100f461026c565b005b61009561030f565b61010661031e565b604080519115158252519081900360200190f35b6100f46004803603602081101561013057600080fd5b50356001600160a01b031661032f565b6100f46004803603602081101561015657600080fd5b50356001600160a01b03166103aa565b6001546001600160a01b031690565b600154604080516315f789a960e21b815290516000926001600160a01b0316916357de26a4916004808301926020929190829003018186803b1580156101ba57600080fd5b505afa1580156101ce573d6000803e3d6000fd5b505050506040513d60208110156101e457600080fd5b5051905090565b600154604080516359e02dd760e01b8152815160009384936001600160a01b03909116926359e02dd79260048083019392829003018186803b15801561023057600080fd5b505afa158015610244573d6000803e3d6000fd5b505050506040513d604081101561025a57600080fd5b50805160209091015190925090509091565b61027461031e565b6102c5576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6000546001600160a01b0316331490565b61033761031e565b610388576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6103b261031e565b610403576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61040c8161040f565b50565b6001600160a01b0381166104545760405162461bcd60e51b81526004018080602001828103825260268152602001806104b06026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b039290921691909117905556fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a265627a7a7231582038b11ef0e68b57fb82015c99a975d17a95bfa58eda67648ea13988bf7995bf7a64736f6c63430005110032",
  "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100885760003560e01c80638da5cb5b1161005b5780638da5cb5b146100f65780638f32d59b146100fe578063e7baf8dd1461011a578063f2fde38b1461014057610088565b8063242043491461008d57806357de26a4146100b157806359e02dd7146100cb578063715018a6146100ec575b600080fd5b610095610166565b604080516001600160a01b039092168252519081900360200190f35b6100b9610175565b60408051918252519081900360200190f35b6100d36101eb565b6040805192835290151560208301528051918290030190f35b6100f461026c565b005b61009561030f565b61010661031e565b604080519115158252519081900360200190f35b6100f46004803603602081101561013057600080fd5b50356001600160a01b031661032f565b6100f46004803603602081101561015657600080fd5b50356001600160a01b03166103aa565b6001546001600160a01b031690565b600154604080516315f789a960e21b815290516000926001600160a01b0316916357de26a4916004808301926020929190829003018186803b1580156101ba57600080fd5b505afa1580156101ce573d6000803e3d6000fd5b505050506040513d60208110156101e457600080fd5b5051905090565b600154604080516359e02dd760e01b8152815160009384936001600160a01b03909116926359e02dd79260048083019392829003018186803b15801561023057600080fd5b505afa158015610244573d6000803e3d6000fd5b505050506040513d604081101561025a57600080fd5b50805160209091015190925090509091565b61027461031e565b6102c5576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6000546001600160a01b0316331490565b61033761031e565b610388576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6103b261031e565b610403576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61040c8161040f565b50565b6001600160a01b0381166104545760405162461bcd60e51b81526004018080602001828103825260268152602001806104b06026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b039290921691909117905556fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a265627a7a7231582038b11ef0e68b57fb82015c99a975d17a95bfa58eda67648ea13988bf7995bf7a64736f6c63430005110032",
  "sourceMap": "697:637:36:-;;;801:96;8:9:-1;5:2;;;30:1;27;20:12;5:2;801:96:36;;;;;;;;;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;801:96:36;657:6:61;:19;;-1:-1:-1;;;;;;657:19:61;666:10;657:19;;;;691:40;;-1:-1:-1;;;;;724:6:61;;;;;657;691:40;;657:6;;691:40;858:15:36;:32;;-1:-1:-1;;;;;;858:32:36;-1:-1:-1;;;;;858:32:36;;;;;;;;;;697:637;;;-1:-1:-1;697:637:36;;",
  "deployedSourceMap": "697:637:36:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;697:637:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;903:100;;;:::i;:::-;;;;-1:-1:-1;;;;;903:100:36;;;;;;;;;;;;;;1115:94;;;:::i;:::-;;;;;;;;;;;;;;;;1009:100;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;1599:137:61;;;:::i;:::-;;814:77;;;:::i;1165:90::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;1215:117:36;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1215:117:36;-1:-1:-1;;;;;1215:117:36;;:::i;1885:107:61:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1885:107:61;-1:-1:-1;;;;;1885:107:61;;:::i;903:100:36:-;981:15;;-1:-1:-1;;;;;981:15:36;903:100;:::o;1115:94::-;1180:15;;:22;;;-1:-1:-1;;;1180:22:36;;;;1154:7;;-1:-1:-1;;;;;1180:15:36;;:20;;:22;;;;;;;;;;;;;;:15;:22;;;5:2:-1;;;;30:1;27;20:12;5:2;1180:22:36;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1180:22:36;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1180:22:36;;-1:-1:-1;1115:94:36;:::o;1009:100::-;1080:15;;:22;;;-1:-1:-1;;;1080:22:36;;;;1048:7;;;;-1:-1:-1;;;;;1080:15:36;;;;:20;;:22;;;;;;;;;;;:15;:22;;;5:2:-1;;;;30:1;27;20:12;5:2;1080:22:36;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1080:22:36;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1080:22:36;;;;;;;;;-1:-1:-1;1080:22:36;-1:-1:-1;1009:100:36;;:::o;1599:137:61:-;1018:9;:7;:9::i;:::-;1010:54;;;;;-1:-1:-1;;;1010:54:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1697:1;1681:6;;1660:40;;-1:-1:-1;;;;;1681:6:61;;;;1660:40;;1697:1;;1660:40;1727:1;1710:19;;-1:-1:-1;;;;;;1710:19:61;;;1599:137::o;814:77::-;852:7;878:6;-1:-1:-1;;;;;878:6:61;814:77;:::o;1165:90::-;1205:4;1242:6;-1:-1:-1;;;;;1242:6:61;1228:10;:20;;1165:90::o;1215:117:36:-;1018:9:61;:7;:9::i;:::-;1010:54;;;;;-1:-1:-1;;;1010:54:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1293:15:36;:32;;-1:-1:-1;;;;;;1293:32:36;-1:-1:-1;;;;;1293:32:36;;;;;;;;;;1215:117::o;1885:107:61:-;1018:9;:7;:9::i;:::-;1010:54;;;;;-1:-1:-1;;;1010:54:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1957:28;1976:8;1957:18;:28::i;:::-;1885:107;:::o;2093:225::-;-1:-1:-1;;;;;2166:22:61;;2158:73;;;;-1:-1:-1;;;2158:73:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2267:6;;;2246:38;;-1:-1:-1;;;;;2246:38:61;;;;2267:6;;;2246:38;;;2294:6;:17;;-1:-1:-1;;;;;;2294:17:61;-1:-1:-1;;;;;2294:17:61;;;;;;;;;;2093:225::o",
  "source": "pragma solidity 0.5.17;\n\nimport \"openzeppelin-solidity/contracts/ownership/Ownable.sol\";\nimport \"../../../contracts/external/IMedianizer.sol\";\n\n/// @title IntermediaryMedianizer is an updatable intermediary between a real\n///        medianizer and IMedianizer users.\n/// @dev This is used in Keep testnets where Maker has deployed a Medianizer\n///      instance that needs to authorize a single consumer, to enable multiple\n///      tBTC deployments to happen in the background and be pointed at a stable\n///      medianizer instance that is authorized on the Maker contract. It allows\n///      the updating of the backing medianizer and therefore is NOT suitable\n///      for mainnet deployment.\ncontract IntermediaryMedianizer is Ownable, IMedianizer {\n    IMedianizer private _realMedianizer;\n\n    constructor(IMedianizer realMedianizer) public {\n        _realMedianizer = realMedianizer;\n    }\n\n    function getMedianizer() external view returns (IMedianizer) {\n        return _realMedianizer;\n    }\n\n    function peek() external view returns (uint256, bool) {\n        return _realMedianizer.peek();\n    }\n\n    function read() external view returns (uint256) {\n        return _realMedianizer.read();\n    }\n\n    function setMedianizer(IMedianizer realMedianizer) public onlyOwner {\n        _realMedianizer = realMedianizer;\n    }\n}\n",
  "sourcePath": "/home/runner/work/tbtc/tbtc/solidity/contracts/test/price-feed/IntermediaryMedianizer.sol",
  "ast": {
    "absolutePath": "/home/runner/work/tbtc/tbtc/solidity/contracts/test/price-feed/IntermediaryMedianizer.sol",
    "exportedSymbols": {
      "IntermediaryMedianizer": [
        10585
      ]
    },
    "id": 10586,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 10524,
        "literals": [
          "solidity",
          "0.5",
          ".17"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:23:36"
      },
      {
        "absolutePath": "openzeppelin-solidity/contracts/ownership/Ownable.sol",
        "file": "openzeppelin-solidity/contracts/ownership/Ownable.sol",
        "id": 10525,
        "nodeType": "ImportDirective",
        "scope": 10586,
        "sourceUnit": 16967,
        "src": "25:63:36",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "/home/runner/work/tbtc/tbtc/solidity/contracts/external/IMedianizer.sol",
        "file": "../../../contracts/external/IMedianizer.sol",
        "id": 10526,
        "nodeType": "ImportDirective",
        "scope": 10586,
        "sourceUnit": 5434,
        "src": "89:53:36",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [
          {
            "arguments": null,
            "baseName": {
              "contractScope": null,
              "id": 10527,
              "name": "Ownable",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 16966,
              "src": "732:7:36",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_Ownable_$16966",
                "typeString": "contract Ownable"
              }
            },
            "id": 10528,
            "nodeType": "InheritanceSpecifier",
            "src": "732:7:36"
          },
          {
            "arguments": null,
            "baseName": {
              "contractScope": null,
              "id": 10529,
              "name": "IMedianizer",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 5433,
              "src": "741:11:36",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_IMedianizer_$5433",
                "typeString": "contract IMedianizer"
              }
            },
            "id": 10530,
            "nodeType": "InheritanceSpecifier",
            "src": "741:11:36"
          }
        ],
        "contractDependencies": [
          5433,
          16966
        ],
        "contractKind": "contract",
        "documentation": "@title IntermediaryMedianizer is an updatable intermediary between a real\n        medianizer and IMedianizer users.\n @dev This is used in Keep testnets where Maker has deployed a Medianizer\n      instance that needs to authorize a single consumer, to enable multiple\n      tBTC deployments to happen in the background and be pointed at a stable\n      medianizer instance that is authorized on the Maker contract. It allows\n      the updating of the backing medianizer and therefore is NOT suitable\n      for mainnet deployment.",
        "fullyImplemented": true,
        "id": 10585,
        "linearizedBaseContracts": [
          10585,
          5433,
          16966
        ],
        "name": "IntermediaryMedianizer",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "constant": false,
            "id": 10532,
            "name": "_realMedianizer",
            "nodeType": "VariableDeclaration",
            "scope": 10585,
            "src": "759:35:36",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_contract$_IMedianizer_$5433",
              "typeString": "contract IMedianizer"
            },
            "typeName": {
              "contractScope": null,
              "id": 10531,
              "name": "IMedianizer",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 5433,
              "src": "759:11:36",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_IMedianizer_$5433",
                "typeString": "contract IMedianizer"
              }
            },
            "value": null,
            "visibility": "private"
          },
          {
            "body": {
              "id": 10541,
              "nodeType": "Block",
              "src": "848:49:36",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 10539,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 10537,
                      "name": "_realMedianizer",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 10532,
                      "src": "858:15:36",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_IMedianizer_$5433",
                        "typeString": "contract IMedianizer"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "id": 10538,
                      "name": "realMedianizer",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 10534,
                      "src": "876:14:36",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_IMedianizer_$5433",
                        "typeString": "contract IMedianizer"
                      }
                    },
                    "src": "858:32:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IMedianizer_$5433",
                      "typeString": "contract IMedianizer"
                    }
                  },
                  "id": 10540,
                  "nodeType": "ExpressionStatement",
                  "src": "858:32:36"
                }
              ]
            },
            "documentation": null,
            "id": 10542,
            "implemented": true,
            "kind": "constructor",
            "modifiers": [],
            "name": "",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 10535,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10534,
                  "name": "realMedianizer",
                  "nodeType": "VariableDeclaration",
                  "scope": 10542,
                  "src": "813:26:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IMedianizer_$5433",
                    "typeString": "contract IMedianizer"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 10533,
                    "name": "IMedianizer",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 5433,
                    "src": "813:11:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IMedianizer_$5433",
                      "typeString": "contract IMedianizer"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "812:28:36"
            },
            "returnParameters": {
              "id": 10536,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "848:0:36"
            },
            "scope": 10585,
            "src": "801:96:36",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 10549,
              "nodeType": "Block",
              "src": "964:39:36",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 10547,
                    "name": "_realMedianizer",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 10532,
                    "src": "981:15:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IMedianizer_$5433",
                      "typeString": "contract IMedianizer"
                    }
                  },
                  "functionReturnParameters": 10546,
                  "id": 10548,
                  "nodeType": "Return",
                  "src": "974:22:36"
                }
              ]
            },
            "documentation": null,
            "id": 10550,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "getMedianizer",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 10543,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "925:2:36"
            },
            "returnParameters": {
              "id": 10546,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10545,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 10550,
                  "src": "951:11:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IMedianizer_$5433",
                    "typeString": "contract IMedianizer"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 10544,
                    "name": "IMedianizer",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 5433,
                    "src": "951:11:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IMedianizer_$5433",
                      "typeString": "contract IMedianizer"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "950:13:36"
            },
            "scope": 10585,
            "src": "903:100:36",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": {
              "id": 10561,
              "nodeType": "Block",
              "src": "1063:46:36",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [],
                    "expression": {
                      "argumentTypes": [],
                      "expression": {
                        "argumentTypes": null,
                        "id": 10557,
                        "name": "_realMedianizer",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 10532,
                        "src": "1080:15:36",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IMedianizer_$5433",
                          "typeString": "contract IMedianizer"
                        }
                      },
                      "id": 10558,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "peek",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 5432,
                      "src": "1080:20:36",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_view$__$returns$_t_uint256_$_t_bool_$",
                        "typeString": "function () view external returns (uint256,bool)"
                      }
                    },
                    "id": 10559,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1080:22:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$_t_uint256_$_t_bool_$",
                      "typeString": "tuple(uint256,bool)"
                    }
                  },
                  "functionReturnParameters": 10556,
                  "id": 10560,
                  "nodeType": "Return",
                  "src": "1073:29:36"
                }
              ]
            },
            "documentation": null,
            "id": 10562,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "peek",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 10551,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1022:2:36"
            },
            "returnParameters": {
              "id": 10556,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10553,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 10562,
                  "src": "1048:7:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 10552,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1048:7:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 10555,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 10562,
                  "src": "1057:4:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 10554,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "1057:4:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1047:15:36"
            },
            "scope": 10585,
            "src": "1009:100:36",
            "stateMutability": "view",
            "superFunction": 5432,
            "visibility": "external"
          },
          {
            "body": {
              "id": 10571,
              "nodeType": "Block",
              "src": "1163:46:36",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [],
                    "expression": {
                      "argumentTypes": [],
                      "expression": {
                        "argumentTypes": null,
                        "id": 10567,
                        "name": "_realMedianizer",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 10532,
                        "src": "1180:15:36",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IMedianizer_$5433",
                          "typeString": "contract IMedianizer"
                        }
                      },
                      "id": 10568,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "read",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 5425,
                      "src": "1180:20:36",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_view$__$returns$_t_uint256_$",
                        "typeString": "function () view external returns (uint256)"
                      }
                    },
                    "id": 10569,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1180:22:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "functionReturnParameters": 10566,
                  "id": 10570,
                  "nodeType": "Return",
                  "src": "1173:29:36"
                }
              ]
            },
            "documentation": null,
            "id": 10572,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "read",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 10563,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1128:2:36"
            },
            "returnParameters": {
              "id": 10566,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10565,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 10572,
                  "src": "1154:7:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 10564,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1154:7:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1153:9:36"
            },
            "scope": 10585,
            "src": "1115:94:36",
            "stateMutability": "view",
            "superFunction": 5425,
            "visibility": "external"
          },
          {
            "body": {
              "id": 10583,
              "nodeType": "Block",
              "src": "1283:49:36",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 10581,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 10579,
                      "name": "_realMedianizer",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 10532,
                      "src": "1293:15:36",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_IMedianizer_$5433",
                        "typeString": "contract IMedianizer"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "id": 10580,
                      "name": "realMedianizer",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 10574,
                      "src": "1311:14:36",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_IMedianizer_$5433",
                        "typeString": "contract IMedianizer"
                      }
                    },
                    "src": "1293:32:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IMedianizer_$5433",
                      "typeString": "contract IMedianizer"
                    }
                  },
                  "id": 10582,
                  "nodeType": "ExpressionStatement",
                  "src": "1293:32:36"
                }
              ]
            },
            "documentation": null,
            "id": 10584,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": null,
                "id": 10577,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 10576,
                  "name": "onlyOwner",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 16899,
                  "src": "1273:9:36",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$__$",
                    "typeString": "modifier ()"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "1273:9:36"
              }
            ],
            "name": "setMedianizer",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 10575,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10574,
                  "name": "realMedianizer",
                  "nodeType": "VariableDeclaration",
                  "scope": 10584,
                  "src": "1238:26:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IMedianizer_$5433",
                    "typeString": "contract IMedianizer"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 10573,
                    "name": "IMedianizer",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 5433,
                    "src": "1238:11:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IMedianizer_$5433",
                      "typeString": "contract IMedianizer"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1237:28:36"
            },
            "returnParameters": {
              "id": 10578,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1283:0:36"
            },
            "scope": 10585,
            "src": "1215:117:36",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          }
        ],
        "scope": 10586,
        "src": "697:637:36"
      }
    ],
    "src": "0:1335:36"
  },
  "legacyAST": {
    "attributes": {
      "absolutePath": "/home/runner/work/tbtc/tbtc/solidity/contracts/test/price-feed/IntermediaryMedianizer.sol",
      "exportedSymbols": {
        "IntermediaryMedianizer": [
          10585
        ]
      }
    },
    "children": [
      {
        "attributes": {
          "literals": [
            "solidity",
            "0.5",
            ".17"
          ]
        },
        "id": 10524,
        "name": "PragmaDirective",
        "src": "0:23:36"
      },
      {
        "attributes": {
          "SourceUnit": 16967,
          "absolutePath": "openzeppelin-solidity/contracts/ownership/Ownable.sol",
          "file": "openzeppelin-solidity/contracts/ownership/Ownable.sol",
          "scope": 10586,
          "symbolAliases": [
            null
          ],
          "unitAlias": ""
        },
        "id": 10525,
        "name": "ImportDirective",
        "src": "25:63:36"
      },
      {
        "attributes": {
          "SourceUnit": 5434,
          "absolutePath": "/home/runner/work/tbtc/tbtc/solidity/contracts/external/IMedianizer.sol",
          "file": "../../../contracts/external/IMedianizer.sol",
          "scope": 10586,
          "symbolAliases": [
            null
          ],
          "unitAlias": ""
        },
        "id": 10526,
        "name": "ImportDirective",
        "src": "89:53:36"
      },
      {
        "attributes": {
          "contractDependencies": [
            5433,
            16966
          ],
          "contractKind": "contract",
          "documentation": "@title IntermediaryMedianizer is an updatable intermediary between a real\n        medianizer and IMedianizer users.\n @dev This is used in Keep testnets where Maker has deployed a Medianizer\n      instance that needs to authorize a single consumer, to enable multiple\n      tBTC deployments to happen in the background and be pointed at a stable\n      medianizer instance that is authorized on the Maker contract. It allows\n      the updating of the backing medianizer and therefore is NOT suitable\n      for mainnet deployment.",
          "fullyImplemented": true,
          "linearizedBaseContracts": [
            10585,
            5433,
            16966
          ],
          "name": "IntermediaryMedianizer",
          "scope": 10586
        },
        "children": [
          {
            "attributes": {
              "arguments": null
            },
            "children": [
              {
                "attributes": {
                  "contractScope": null,
                  "name": "Ownable",
                  "referencedDeclaration": 16966,
                  "type": "contract Ownable"
                },
                "id": 10527,
                "name": "UserDefinedTypeName",
                "src": "732:7:36"
              }
            ],
            "id": 10528,
            "name": "InheritanceSpecifier",
            "src": "732:7:36"
          },
          {
            "attributes": {
              "arguments": null
            },
            "children": [
              {
                "attributes": {
                  "contractScope": null,
                  "name": "IMedianizer",
                  "referencedDeclaration": 5433,
                  "type": "contract IMedianizer"
                },
                "id": 10529,
                "name": "UserDefinedTypeName",
                "src": "741:11:36"
              }
            ],
            "id": 10530,
            "name": "InheritanceSpecifier",
            "src": "741:11:36"
          },
          {
            "attributes": {
              "constant": false,
              "name": "_realMedianizer",
              "scope": 10585,
              "stateVariable": true,
              "storageLocation": "default",
              "type": "contract IMedianizer",
              "value": null,
              "visibility": "private"
            },
            "children": [
              {
                "attributes": {
                  "contractScope": null,
                  "name": "IMedianizer",
                  "referencedDeclaration": 5433,
                  "type": "contract IMedianizer"
                },
                "id": 10531,
                "name": "UserDefinedTypeName",
                "src": "759:11:36"
              }
            ],
            "id": 10532,
            "name": "VariableDeclaration",
            "src": "759:35:36"
          },
          {
            "attributes": {
              "documentation": null,
              "implemented": true,
              "isConstructor": true,
              "kind": "constructor",
              "modifiers": [
                null
              ],
              "name": "",
              "scope": 10585,
              "stateMutability": "nonpayable",
              "superFunction": null,
              "visibility": "public"
            },
            "children": [
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "realMedianizer",
                      "scope": 10542,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "contract IMedianizer",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "contractScope": null,
                          "name": "IMedianizer",
                          "referencedDeclaration": 5433,
                          "type": "contract IMedianizer"
                        },
                        "id": 10533,
                        "name": "UserDefinedTypeName",
                        "src": "813:11:36"
                      }
                    ],
                    "id": 10534,
                    "name": "VariableDeclaration",
                    "src": "813:26:36"
                  }
                ],
                "id": 10535,
                "name": "ParameterList",
                "src": "812:28:36"
              },
              {
                "attributes": {
                  "parameters": [
                    null
                  ]
                },
                "children": [],
                "id": 10536,
                "name": "ParameterList",
                "src": "848:0:36"
              },
              {
                "children": [
                  {
                    "children": [
                      {
                        "attributes": {
                          "argumentTypes": null,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "operator": "=",
                          "type": "contract IMedianizer"
                        },
                        "children": [
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 10532,
                              "type": "contract IMedianizer",
                              "value": "_realMedianizer"
                            },
                            "id": 10537,
                            "name": "Identifier",
                            "src": "858:15:36"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 10534,
                              "type": "contract IMedianizer",
                              "value": "realMedianizer"
                            },
                            "id": 10538,
                            "name": "Identifier",
                            "src": "876:14:36"
                          }
                        ],
                        "id": 10539,
                        "name": "Assignment",
                        "src": "858:32:36"
                      }
                    ],
                    "id": 10540,
                    "name": "ExpressionStatement",
                    "src": "858:32:36"
                  }
                ],
                "id": 10541,
                "name": "Block",
                "src": "848:49:36"
              }
            ],
            "id": 10542,
            "name": "FunctionDefinition",
            "src": "801:96:36"
          },
          {
            "attributes": {
              "documentation": null,
              "implemented": true,
              "isConstructor": false,
              "kind": "function",
              "modifiers": [
                null
              ],
              "name": "getMedianizer",
              "scope": 10585,
              "stateMutability": "view",
              "superFunction": null,
              "visibility": "external"
            },
            "children": [
              {
                "attributes": {
                  "parameters": [
                    null
                  ]
                },
                "children": [],
                "id": 10543,
                "name": "ParameterList",
                "src": "925:2:36"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "",
                      "scope": 10550,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "contract IMedianizer",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "contractScope": null,
                          "name": "IMedianizer",
                          "referencedDeclaration": 5433,
                          "type": "contract IMedianizer"
                        },
                        "id": 10544,
                        "name": "UserDefinedTypeName",
                        "src": "951:11:36"
                      }
                    ],
                    "id": 10545,
                    "name": "VariableDeclaration",
                    "src": "951:11:36"
                  }
                ],
                "id": 10546,
                "name": "ParameterList",
                "src": "950:13:36"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "functionReturnParameters": 10546
                    },
                    "children": [
                      {
                        "attributes": {
                          "argumentTypes": null,
                          "overloadedDeclarations": [
                            null
                          ],
                          "referencedDeclaration": 10532,
                          "type": "contract IMedianizer",
                          "value": "_realMedianizer"
                        },
                        "id": 10547,
                        "name": "Identifier",
                        "src": "981:15:36"
                      }
                    ],
                    "id": 10548,
                    "name": "Return",
                    "src": "974:22:36"
                  }
                ],
                "id": 10549,
                "name": "Block",
                "src": "964:39:36"
              }
            ],
            "id": 10550,
            "name": "FunctionDefinition",
            "src": "903:100:36"
          },
          {
            "attributes": {
              "documentation": null,
              "implemented": true,
              "isConstructor": false,
              "kind": "function",
              "modifiers": [
                null
              ],
              "name": "peek",
              "scope": 10585,
              "stateMutability": "view",
              "superFunction": 5432,
              "visibility": "external"
            },
            "children": [
              {
                "attributes": {
                  "parameters": [
                    null
                  ]
                },
                "children": [],
                "id": 10551,
                "name": "ParameterList",
                "src": "1022:2:36"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "",
                      "scope": 10562,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "uint256",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "uint256",
                          "type": "uint256"
                        },
                        "id": 10552,
                        "name": "ElementaryTypeName",
                        "src": "1048:7:36"
                      }
                    ],
                    "id": 10553,
                    "name": "VariableDeclaration",
                    "src": "1048:7:36"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "name": "",
                      "scope": 10562,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "bool",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "bool",
                          "type": "bool"
                        },
                        "id": 10554,
                        "name": "ElementaryTypeName",
                        "src": "1057:4:36"
                      }
                    ],
                    "id": 10555,
                    "name": "VariableDeclaration",
                    "src": "1057:4:36"
                  }
                ],
                "id": 10556,
                "name": "ParameterList",
                "src": "1047:15:36"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "functionReturnParameters": 10556
                    },
                    "children": [
                      {
                        "attributes": {
                          "argumentTypes": null,
                          "arguments": [
                            null
                          ],
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "isStructConstructorCall": false,
                          "lValueRequested": false,
                          "names": [
                            null
                          ],
                          "type": "tuple(uint256,bool)",
                          "type_conversion": false
                        },
                        "children": [
                          {
                            "attributes": {
                              "argumentTypes": [
                                null
                              ],
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "member_name": "peek",
                              "referencedDeclaration": 5432,
                              "type": "function () view external returns (uint256,bool)"
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 10532,
                                  "type": "contract IMedianizer",
                                  "value": "_realMedianizer"
                                },
                                "id": 10557,
                                "name": "Identifier",
                                "src": "1080:15:36"
                              }
                            ],
                            "id": 10558,
                            "name": "MemberAccess",
                            "src": "1080:20:36"
                          }
                        ],
                        "id": 10559,
                        "name": "FunctionCall",
                        "src": "1080:22:36"
                      }
                    ],
                    "id": 10560,
                    "name": "Return",
                    "src": "1073:29:36"
                  }
                ],
                "id": 10561,
                "name": "Block",
                "src": "1063:46:36"
              }
            ],
            "id": 10562,
            "name": "FunctionDefinition",
            "src": "1009:100:36"
          },
          {
            "attributes": {
              "documentation": null,
              "implemented": true,
              "isConstructor": false,
              "kind": "function",
              "modifiers": [
                null
              ],
              "name": "read",
              "scope": 10585,
              "stateMutability": "view",
              "superFunction": 5425,
              "visibility": "external"
            },
            "children": [
              {
                "attributes": {
                  "parameters": [
                    null
                  ]
                },
                "children": [],
                "id": 10563,
                "name": "ParameterList",
                "src": "1128:2:36"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "",
                      "scope": 10572,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "uint256",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "uint256",
                          "type": "uint256"
                        },
                        "id": 10564,
                        "name": "ElementaryTypeName",
                        "src": "1154:7:36"
                      }
                    ],
                    "id": 10565,
                    "name": "VariableDeclaration",
                    "src": "1154:7:36"
                  }
                ],
                "id": 10566,
                "name": "ParameterList",
                "src": "1153:9:36"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "functionReturnParameters": 10566
                    },
                    "children": [
                      {
                        "attributes": {
                          "argumentTypes": null,
                          "arguments": [
                            null
                          ],
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "isStructConstructorCall": false,
                          "lValueRequested": false,
                          "names": [
                            null
                          ],
                          "type": "uint256",
                          "type_conversion": false
                        },
                        "children": [
                          {
                            "attributes": {
                              "argumentTypes": [
                                null
                              ],
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "member_name": "read",
                              "referencedDeclaration": 5425,
                              "type": "function () view external returns (uint256)"
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 10532,
                                  "type": "contract IMedianizer",
                                  "value": "_realMedianizer"
                                },
                                "id": 10567,
                                "name": "Identifier",
                                "src": "1180:15:36"
                              }
                            ],
                            "id": 10568,
                            "name": "MemberAccess",
                            "src": "1180:20:36"
                          }
                        ],
                        "id": 10569,
                        "name": "FunctionCall",
                        "src": "1180:22:36"
                      }
                    ],
                    "id": 10570,
                    "name": "Return",
                    "src": "1173:29:36"
                  }
                ],
                "id": 10571,
                "name": "Block",
                "src": "1163:46:36"
              }
            ],
            "id": 10572,
            "name": "FunctionDefinition",
            "src": "1115:94:36"
          },
          {
            "attributes": {
              "documentation": null,
              "implemented": true,
              "isConstructor": false,
              "kind": "function",
              "name": "setMedianizer",
              "scope": 10585,
              "stateMutability": "nonpayable",
              "superFunction": null,
              "visibility": "public"
            },
            "children": [
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "realMedianizer",
                      "scope": 10584,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "contract IMedianizer",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "contractScope": null,
                          "name": "IMedianizer",
                          "referencedDeclaration": 5433,
                          "type": "contract IMedianizer"
                        },
                        "id": 10573,
                        "name": "UserDefinedTypeName",
                        "src": "1238:11:36"
                      }
                    ],
                    "id": 10574,
                    "name": "VariableDeclaration",
                    "src": "1238:26:36"
                  }
                ],
                "id": 10575,
                "name": "ParameterList",
                "src": "1237:28:36"
              },
              {
                "attributes": {
                  "parameters": [
                    null
                  ]
                },
                "children": [],
                "id": 10578,
                "name": "ParameterList",
                "src": "1283:0:36"
              },
              {
                "attributes": {
                  "arguments": null
                },
                "children": [
                  {
                    "attributes": {
                      "argumentTypes": null,
                      "overloadedDeclarations": [
                        null
                      ],
                      "referencedDeclaration": 16899,
                      "type": "modifier ()",
                      "value": "onlyOwner"
                    },
                    "id": 10576,
                    "name": "Identifier",
                    "src": "1273:9:36"
                  }
                ],
                "id": 10577,
                "name": "ModifierInvocation",
                "src": "1273:9:36"
              },
              {
                "children": [
                  {
                    "children": [
                      {
                        "attributes": {
                          "argumentTypes": null,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "operator": "=",
                          "type": "contract IMedianizer"
                        },
                        "children": [
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 10532,
                              "type": "contract IMedianizer",
                              "value": "_realMedianizer"
                            },
                            "id": 10579,
                            "name": "Identifier",
                            "src": "1293:15:36"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 10574,
                              "type": "contract IMedianizer",
                              "value": "realMedianizer"
                            },
                            "id": 10580,
                            "name": "Identifier",
                            "src": "1311:14:36"
                          }
                        ],
                        "id": 10581,
                        "name": "Assignment",
                        "src": "1293:32:36"
                      }
                    ],
                    "id": 10582,
                    "name": "ExpressionStatement",
                    "src": "1293:32:36"
                  }
                ],
                "id": 10583,
                "name": "Block",
                "src": "1283:49:36"
              }
            ],
            "id": 10584,
            "name": "FunctionDefinition",
            "src": "1215:117:36"
          }
        ],
        "id": 10585,
        "name": "ContractDefinition",
        "src": "697:637:36"
      }
    ],
    "id": 10586,
    "name": "SourceUnit",
    "src": "0:1335:36"
  },
  "compiler": {
    "name": "solc",
    "version": "0.5.17+commit.d19bba13.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "3.3.4",
  "updatedAt": "2021-11-23T11:52:09.360Z",
  "devdoc": {
    "details": "This is used in Keep testnets where Maker has deployed a Medianizer      instance that needs to authorize a single consumer, to enable multiple      tBTC deployments to happen in the background and be pointed at a stable      medianizer instance that is authorized on the Maker contract. It allows      the updating of the backing medianizer and therefore is NOT suitable      for mainnet deployment.",
    "methods": {
      "isOwner()": {
        "details": "Returns true if the caller is the current owner."
      },
      "owner()": {
        "details": "Returns the address of the current owner."
      },
      "renounceOwnership()": {
        "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner.     * > Note: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."
      },
      "transferOwnership(address)": {
        "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
      }
    },
    "title": "IntermediaryMedianizer is an updatable intermediary between a real        medianizer and IMedianizer users."
  },
  "userdoc": {
    "methods": {}
  }
}