{
  "contractName": "ITBTCSystem",
  "abi": [
    {
      "constant": true,
      "inputs": [],
      "name": "fetchBitcoinPrice",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "fetchRelayCurrentDifficulty",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "fetchRelayPreviousDifficulty",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "getNewDepositFeeEstimate",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "getAllowNewDeposits",
      "outputs": [
        {
          "internalType": "bool",
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "internalType": "uint64",
          "name": "_requestedLotSizeSatoshis",
          "type": "uint64"
        }
      ],
      "name": "isAllowedLotSize",
      "outputs": [
        {
          "internalType": "bool",
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "internalType": "uint64",
          "name": "_requestedLotSizeSatoshis",
          "type": "uint64"
        },
        {
          "internalType": "uint256",
          "name": "_maxSecuredLifetime",
          "type": "uint256"
        }
      ],
      "name": "requestNewKeep",
      "outputs": [
        {
          "internalType": "address",
          "name": "",
          "type": "address"
        }
      ],
      "payable": true,
      "stateMutability": "payable",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "getSignerFeeDivisor",
      "outputs": [
        {
          "internalType": "uint16",
          "name": "",
          "type": "uint16"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "getInitialCollateralizedPercent",
      "outputs": [
        {
          "internalType": "uint16",
          "name": "",
          "type": "uint16"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "getUndercollateralizedThresholdPercent",
      "outputs": [
        {
          "internalType": "uint16",
          "name": "",
          "type": "uint16"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "getSeverelyUndercollateralizedThresholdPercent",
      "outputs": [
        {
          "internalType": "uint16",
          "name": "",
          "type": "uint16"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    }
  ],
  "metadata": "{\"compiler\":{\"version\":\"0.5.17+commit.d19bba13\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[],\"name\":\"fetchBitcoinPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"fetchRelayCurrentDifficulty\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"fetchRelayPreviousDifficulty\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getAllowNewDeposits\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getInitialCollateralizedPercent\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getNewDepositFeeEstimate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getSeverelyUndercollateralizedThresholdPercent\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getSignerFeeDivisor\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getUndercollateralizedThresholdPercent\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"_requestedLotSizeSatoshis\",\"type\":\"uint64\"}],\"name\":\"isAllowedLotSize\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"_requestedLotSizeSatoshis\",\"type\":\"uint64\"},{\"internalType\":\"uint256\",\"name\":\"_maxSecuredLifetime\",\"type\":\"uint256\"}],\"name\":\"requestNewKeep\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{},\"title\":\"Keep interface\"},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/home/runner/work/tbtc/tbtc/solidity/contracts/interfaces/ITBTCSystem.sol\":\"ITBTCSystem\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/home/runner/work/tbtc/tbtc/solidity/contracts/interfaces/ITBTCSystem.sol\":{\"keccak256\":\"0xd8530ab1baddbdfbba6c1b03e547375afe79493b9948d645f94fc0da12ec953b\",\"urls\":[\"bzz-raw://713285a0a4d865a37f3770ce848c20f7277e1540c0a8aa43c2ae0966a7c3df9a\",\"dweb:/ipfs/QmaPiXxvySt9UDmQtVGidh8TQ4XJdxY2X61rEBd8346ELi\"]}},\"version\":1}",
  "bytecode": "0x",
  "deployedBytecode": "0x",
  "sourceMap": "",
  "deployedSourceMap": "",
  "source": "pragma solidity 0.5.17;\n\n/**\n * @title Keep interface\n */\n\ninterface ITBTCSystem {\n    // expected behavior:\n    // return the price of 1 sat in wei\n    // these are the native units of the deposit contract\n    function fetchBitcoinPrice() external view returns (uint256);\n\n    // passthrough requests for the oracle\n    function fetchRelayCurrentDifficulty() external view returns (uint256);\n\n    function fetchRelayPreviousDifficulty() external view returns (uint256);\n\n    function getNewDepositFeeEstimate() external view returns (uint256);\n\n    function getAllowNewDeposits() external view returns (bool);\n\n    function isAllowedLotSize(uint64 _requestedLotSizeSatoshis)\n        external\n        view\n        returns (bool);\n\n    function requestNewKeep(\n        uint64 _requestedLotSizeSatoshis,\n        uint256 _maxSecuredLifetime\n    ) external payable returns (address);\n\n    function getSignerFeeDivisor() external view returns (uint16);\n\n    function getInitialCollateralizedPercent() external view returns (uint16);\n\n    function getUndercollateralizedThresholdPercent()\n        external\n        view\n        returns (uint16);\n\n    function getSeverelyUndercollateralizedThresholdPercent()\n        external\n        view\n        returns (uint16);\n}\n",
  "sourcePath": "/home/runner/work/tbtc/tbtc/solidity/contracts/interfaces/ITBTCSystem.sol",
  "ast": {
    "absolutePath": "/home/runner/work/tbtc/tbtc/solidity/contracts/interfaces/ITBTCSystem.sol",
    "exportedSymbols": {
      "ITBTCSystem": [
        5511
      ]
    },
    "id": 5512,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 5449,
        "literals": [
          "solidity",
          "0.5",
          ".17"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:23:11"
      },
      {
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "interface",
        "documentation": "@title Keep interface",
        "fullyImplemented": false,
        "id": 5511,
        "linearizedBaseContracts": [
          5511
        ],
        "name": "ITBTCSystem",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "body": null,
            "documentation": null,
            "id": 5454,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "fetchBitcoinPrice",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 5450,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "237:2:11"
            },
            "returnParameters": {
              "id": 5453,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 5452,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 5454,
                  "src": "263:7:11",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 5451,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "263:7:11",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "262:9:11"
            },
            "scope": 5511,
            "src": "211:61:11",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": null,
            "documentation": null,
            "id": 5459,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "fetchRelayCurrentDifficulty",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 5455,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "357:2:11"
            },
            "returnParameters": {
              "id": 5458,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 5457,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 5459,
                  "src": "383:7:11",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 5456,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "383:7:11",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "382:9:11"
            },
            "scope": 5511,
            "src": "321:71:11",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": null,
            "documentation": null,
            "id": 5464,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "fetchRelayPreviousDifficulty",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 5460,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "435:2:11"
            },
            "returnParameters": {
              "id": 5463,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 5462,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 5464,
                  "src": "461:7:11",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 5461,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "461:7:11",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "460:9:11"
            },
            "scope": 5511,
            "src": "398:72:11",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": null,
            "documentation": null,
            "id": 5469,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "getNewDepositFeeEstimate",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 5465,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "509:2:11"
            },
            "returnParameters": {
              "id": 5468,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 5467,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 5469,
                  "src": "535:7:11",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 5466,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "535:7:11",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "534:9:11"
            },
            "scope": 5511,
            "src": "476:68:11",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": null,
            "documentation": null,
            "id": 5474,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "getAllowNewDeposits",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 5470,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "578:2:11"
            },
            "returnParameters": {
              "id": 5473,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 5472,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 5474,
                  "src": "604:4:11",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 5471,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "604:4:11",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "603:6:11"
            },
            "scope": 5511,
            "src": "550:60:11",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": null,
            "documentation": null,
            "id": 5481,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "isAllowedLotSize",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 5477,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 5476,
                  "name": "_requestedLotSizeSatoshis",
                  "nodeType": "VariableDeclaration",
                  "scope": 5481,
                  "src": "642:32:11",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint64",
                    "typeString": "uint64"
                  },
                  "typeName": {
                    "id": 5475,
                    "name": "uint64",
                    "nodeType": "ElementaryTypeName",
                    "src": "642:6:11",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint64",
                      "typeString": "uint64"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "641:34:11"
            },
            "returnParameters": {
              "id": 5480,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 5479,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 5481,
                  "src": "723:4:11",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 5478,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "723:4:11",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "722:6:11"
            },
            "scope": 5511,
            "src": "616:113:11",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": null,
            "documentation": null,
            "id": 5490,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "requestNewKeep",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 5486,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 5483,
                  "name": "_requestedLotSizeSatoshis",
                  "nodeType": "VariableDeclaration",
                  "scope": 5490,
                  "src": "768:32:11",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint64",
                    "typeString": "uint64"
                  },
                  "typeName": {
                    "id": 5482,
                    "name": "uint64",
                    "nodeType": "ElementaryTypeName",
                    "src": "768:6:11",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint64",
                      "typeString": "uint64"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 5485,
                  "name": "_maxSecuredLifetime",
                  "nodeType": "VariableDeclaration",
                  "scope": 5490,
                  "src": "810:27:11",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 5484,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "810:7:11",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "758:85:11"
            },
            "returnParameters": {
              "id": 5489,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 5488,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 5490,
                  "src": "870:7:11",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 5487,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "870:7:11",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "869:9:11"
            },
            "scope": 5511,
            "src": "735:144:11",
            "stateMutability": "payable",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": null,
            "documentation": null,
            "id": 5495,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "getSignerFeeDivisor",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 5491,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "913:2:11"
            },
            "returnParameters": {
              "id": 5494,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 5493,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 5495,
                  "src": "939:6:11",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint16",
                    "typeString": "uint16"
                  },
                  "typeName": {
                    "id": 5492,
                    "name": "uint16",
                    "nodeType": "ElementaryTypeName",
                    "src": "939:6:11",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint16",
                      "typeString": "uint16"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "938:8:11"
            },
            "scope": 5511,
            "src": "885:62:11",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": null,
            "documentation": null,
            "id": 5500,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "getInitialCollateralizedPercent",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 5496,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "993:2:11"
            },
            "returnParameters": {
              "id": 5499,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 5498,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 5500,
                  "src": "1019:6:11",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint16",
                    "typeString": "uint16"
                  },
                  "typeName": {
                    "id": 5497,
                    "name": "uint16",
                    "nodeType": "ElementaryTypeName",
                    "src": "1019:6:11",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint16",
                      "typeString": "uint16"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1018:8:11"
            },
            "scope": 5511,
            "src": "953:74:11",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": null,
            "documentation": null,
            "id": 5505,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "getUndercollateralizedThresholdPercent",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 5501,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1080:2:11"
            },
            "returnParameters": {
              "id": 5504,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 5503,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 5505,
                  "src": "1130:6:11",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint16",
                    "typeString": "uint16"
                  },
                  "typeName": {
                    "id": 5502,
                    "name": "uint16",
                    "nodeType": "ElementaryTypeName",
                    "src": "1130:6:11",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint16",
                      "typeString": "uint16"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1129:8:11"
            },
            "scope": 5511,
            "src": "1033:105:11",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": null,
            "documentation": null,
            "id": 5510,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "getSeverelyUndercollateralizedThresholdPercent",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 5506,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1199:2:11"
            },
            "returnParameters": {
              "id": 5509,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 5508,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 5510,
                  "src": "1249:6:11",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint16",
                    "typeString": "uint16"
                  },
                  "typeName": {
                    "id": 5507,
                    "name": "uint16",
                    "nodeType": "ElementaryTypeName",
                    "src": "1249:6:11",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint16",
                      "typeString": "uint16"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1248:8:11"
            },
            "scope": 5511,
            "src": "1144:113:11",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "external"
          }
        ],
        "scope": 5512,
        "src": "59:1200:11"
      }
    ],
    "src": "0:1260:11"
  },
  "legacyAST": {
    "attributes": {
      "absolutePath": "/home/runner/work/tbtc/tbtc/solidity/contracts/interfaces/ITBTCSystem.sol",
      "exportedSymbols": {
        "ITBTCSystem": [
          5511
        ]
      }
    },
    "children": [
      {
        "attributes": {
          "literals": [
            "solidity",
            "0.5",
            ".17"
          ]
        },
        "id": 5449,
        "name": "PragmaDirective",
        "src": "0:23:11"
      },
      {
        "attributes": {
          "baseContracts": [
            null
          ],
          "contractDependencies": [
            null
          ],
          "contractKind": "interface",
          "documentation": "@title Keep interface",
          "fullyImplemented": false,
          "linearizedBaseContracts": [
            5511
          ],
          "name": "ITBTCSystem",
          "scope": 5512
        },
        "children": [
          {
            "attributes": {
              "body": null,
              "documentation": null,
              "implemented": false,
              "isConstructor": false,
              "kind": "function",
              "modifiers": [
                null
              ],
              "name": "fetchBitcoinPrice",
              "scope": 5511,
              "stateMutability": "view",
              "superFunction": null,
              "visibility": "external"
            },
            "children": [
              {
                "attributes": {
                  "parameters": [
                    null
                  ]
                },
                "children": [],
                "id": 5450,
                "name": "ParameterList",
                "src": "237:2:11"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "",
                      "scope": 5454,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "uint256",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "uint256",
                          "type": "uint256"
                        },
                        "id": 5451,
                        "name": "ElementaryTypeName",
                        "src": "263:7:11"
                      }
                    ],
                    "id": 5452,
                    "name": "VariableDeclaration",
                    "src": "263:7:11"
                  }
                ],
                "id": 5453,
                "name": "ParameterList",
                "src": "262:9:11"
              }
            ],
            "id": 5454,
            "name": "FunctionDefinition",
            "src": "211:61:11"
          },
          {
            "attributes": {
              "body": null,
              "documentation": null,
              "implemented": false,
              "isConstructor": false,
              "kind": "function",
              "modifiers": [
                null
              ],
              "name": "fetchRelayCurrentDifficulty",
              "scope": 5511,
              "stateMutability": "view",
              "superFunction": null,
              "visibility": "external"
            },
            "children": [
              {
                "attributes": {
                  "parameters": [
                    null
                  ]
                },
                "children": [],
                "id": 5455,
                "name": "ParameterList",
                "src": "357:2:11"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "",
                      "scope": 5459,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "uint256",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "uint256",
                          "type": "uint256"
                        },
                        "id": 5456,
                        "name": "ElementaryTypeName",
                        "src": "383:7:11"
                      }
                    ],
                    "id": 5457,
                    "name": "VariableDeclaration",
                    "src": "383:7:11"
                  }
                ],
                "id": 5458,
                "name": "ParameterList",
                "src": "382:9:11"
              }
            ],
            "id": 5459,
            "name": "FunctionDefinition",
            "src": "321:71:11"
          },
          {
            "attributes": {
              "body": null,
              "documentation": null,
              "implemented": false,
              "isConstructor": false,
              "kind": "function",
              "modifiers": [
                null
              ],
              "name": "fetchRelayPreviousDifficulty",
              "scope": 5511,
              "stateMutability": "view",
              "superFunction": null,
              "visibility": "external"
            },
            "children": [
              {
                "attributes": {
                  "parameters": [
                    null
                  ]
                },
                "children": [],
                "id": 5460,
                "name": "ParameterList",
                "src": "435:2:11"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "",
                      "scope": 5464,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "uint256",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "uint256",
                          "type": "uint256"
                        },
                        "id": 5461,
                        "name": "ElementaryTypeName",
                        "src": "461:7:11"
                      }
                    ],
                    "id": 5462,
                    "name": "VariableDeclaration",
                    "src": "461:7:11"
                  }
                ],
                "id": 5463,
                "name": "ParameterList",
                "src": "460:9:11"
              }
            ],
            "id": 5464,
            "name": "FunctionDefinition",
            "src": "398:72:11"
          },
          {
            "attributes": {
              "body": null,
              "documentation": null,
              "implemented": false,
              "isConstructor": false,
              "kind": "function",
              "modifiers": [
                null
              ],
              "name": "getNewDepositFeeEstimate",
              "scope": 5511,
              "stateMutability": "view",
              "superFunction": null,
              "visibility": "external"
            },
            "children": [
              {
                "attributes": {
                  "parameters": [
                    null
                  ]
                },
                "children": [],
                "id": 5465,
                "name": "ParameterList",
                "src": "509:2:11"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "",
                      "scope": 5469,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "uint256",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "uint256",
                          "type": "uint256"
                        },
                        "id": 5466,
                        "name": "ElementaryTypeName",
                        "src": "535:7:11"
                      }
                    ],
                    "id": 5467,
                    "name": "VariableDeclaration",
                    "src": "535:7:11"
                  }
                ],
                "id": 5468,
                "name": "ParameterList",
                "src": "534:9:11"
              }
            ],
            "id": 5469,
            "name": "FunctionDefinition",
            "src": "476:68:11"
          },
          {
            "attributes": {
              "body": null,
              "documentation": null,
              "implemented": false,
              "isConstructor": false,
              "kind": "function",
              "modifiers": [
                null
              ],
              "name": "getAllowNewDeposits",
              "scope": 5511,
              "stateMutability": "view",
              "superFunction": null,
              "visibility": "external"
            },
            "children": [
              {
                "attributes": {
                  "parameters": [
                    null
                  ]
                },
                "children": [],
                "id": 5470,
                "name": "ParameterList",
                "src": "578:2:11"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "",
                      "scope": 5474,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "bool",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "bool",
                          "type": "bool"
                        },
                        "id": 5471,
                        "name": "ElementaryTypeName",
                        "src": "604:4:11"
                      }
                    ],
                    "id": 5472,
                    "name": "VariableDeclaration",
                    "src": "604:4:11"
                  }
                ],
                "id": 5473,
                "name": "ParameterList",
                "src": "603:6:11"
              }
            ],
            "id": 5474,
            "name": "FunctionDefinition",
            "src": "550:60:11"
          },
          {
            "attributes": {
              "body": null,
              "documentation": null,
              "implemented": false,
              "isConstructor": false,
              "kind": "function",
              "modifiers": [
                null
              ],
              "name": "isAllowedLotSize",
              "scope": 5511,
              "stateMutability": "view",
              "superFunction": null,
              "visibility": "external"
            },
            "children": [
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "_requestedLotSizeSatoshis",
                      "scope": 5481,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "uint64",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "uint64",
                          "type": "uint64"
                        },
                        "id": 5475,
                        "name": "ElementaryTypeName",
                        "src": "642:6:11"
                      }
                    ],
                    "id": 5476,
                    "name": "VariableDeclaration",
                    "src": "642:32:11"
                  }
                ],
                "id": 5477,
                "name": "ParameterList",
                "src": "641:34:11"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "",
                      "scope": 5481,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "bool",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "bool",
                          "type": "bool"
                        },
                        "id": 5478,
                        "name": "ElementaryTypeName",
                        "src": "723:4:11"
                      }
                    ],
                    "id": 5479,
                    "name": "VariableDeclaration",
                    "src": "723:4:11"
                  }
                ],
                "id": 5480,
                "name": "ParameterList",
                "src": "722:6:11"
              }
            ],
            "id": 5481,
            "name": "FunctionDefinition",
            "src": "616:113:11"
          },
          {
            "attributes": {
              "body": null,
              "documentation": null,
              "implemented": false,
              "isConstructor": false,
              "kind": "function",
              "modifiers": [
                null
              ],
              "name": "requestNewKeep",
              "scope": 5511,
              "stateMutability": "payable",
              "superFunction": null,
              "visibility": "external"
            },
            "children": [
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "_requestedLotSizeSatoshis",
                      "scope": 5490,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "uint64",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "uint64",
                          "type": "uint64"
                        },
                        "id": 5482,
                        "name": "ElementaryTypeName",
                        "src": "768:6:11"
                      }
                    ],
                    "id": 5483,
                    "name": "VariableDeclaration",
                    "src": "768:32:11"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "name": "_maxSecuredLifetime",
                      "scope": 5490,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "uint256",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "uint256",
                          "type": "uint256"
                        },
                        "id": 5484,
                        "name": "ElementaryTypeName",
                        "src": "810:7:11"
                      }
                    ],
                    "id": 5485,
                    "name": "VariableDeclaration",
                    "src": "810:27:11"
                  }
                ],
                "id": 5486,
                "name": "ParameterList",
                "src": "758:85:11"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "",
                      "scope": 5490,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "address",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "address",
                          "stateMutability": "nonpayable",
                          "type": "address"
                        },
                        "id": 5487,
                        "name": "ElementaryTypeName",
                        "src": "870:7:11"
                      }
                    ],
                    "id": 5488,
                    "name": "VariableDeclaration",
                    "src": "870:7:11"
                  }
                ],
                "id": 5489,
                "name": "ParameterList",
                "src": "869:9:11"
              }
            ],
            "id": 5490,
            "name": "FunctionDefinition",
            "src": "735:144:11"
          },
          {
            "attributes": {
              "body": null,
              "documentation": null,
              "implemented": false,
              "isConstructor": false,
              "kind": "function",
              "modifiers": [
                null
              ],
              "name": "getSignerFeeDivisor",
              "scope": 5511,
              "stateMutability": "view",
              "superFunction": null,
              "visibility": "external"
            },
            "children": [
              {
                "attributes": {
                  "parameters": [
                    null
                  ]
                },
                "children": [],
                "id": 5491,
                "name": "ParameterList",
                "src": "913:2:11"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "",
                      "scope": 5495,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "uint16",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "uint16",
                          "type": "uint16"
                        },
                        "id": 5492,
                        "name": "ElementaryTypeName",
                        "src": "939:6:11"
                      }
                    ],
                    "id": 5493,
                    "name": "VariableDeclaration",
                    "src": "939:6:11"
                  }
                ],
                "id": 5494,
                "name": "ParameterList",
                "src": "938:8:11"
              }
            ],
            "id": 5495,
            "name": "FunctionDefinition",
            "src": "885:62:11"
          },
          {
            "attributes": {
              "body": null,
              "documentation": null,
              "implemented": false,
              "isConstructor": false,
              "kind": "function",
              "modifiers": [
                null
              ],
              "name": "getInitialCollateralizedPercent",
              "scope": 5511,
              "stateMutability": "view",
              "superFunction": null,
              "visibility": "external"
            },
            "children": [
              {
                "attributes": {
                  "parameters": [
                    null
                  ]
                },
                "children": [],
                "id": 5496,
                "name": "ParameterList",
                "src": "993:2:11"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "",
                      "scope": 5500,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "uint16",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "uint16",
                          "type": "uint16"
                        },
                        "id": 5497,
                        "name": "ElementaryTypeName",
                        "src": "1019:6:11"
                      }
                    ],
                    "id": 5498,
                    "name": "VariableDeclaration",
                    "src": "1019:6:11"
                  }
                ],
                "id": 5499,
                "name": "ParameterList",
                "src": "1018:8:11"
              }
            ],
            "id": 5500,
            "name": "FunctionDefinition",
            "src": "953:74:11"
          },
          {
            "attributes": {
              "body": null,
              "documentation": null,
              "implemented": false,
              "isConstructor": false,
              "kind": "function",
              "modifiers": [
                null
              ],
              "name": "getUndercollateralizedThresholdPercent",
              "scope": 5511,
              "stateMutability": "view",
              "superFunction": null,
              "visibility": "external"
            },
            "children": [
              {
                "attributes": {
                  "parameters": [
                    null
                  ]
                },
                "children": [],
                "id": 5501,
                "name": "ParameterList",
                "src": "1080:2:11"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "",
                      "scope": 5505,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "uint16",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "uint16",
                          "type": "uint16"
                        },
                        "id": 5502,
                        "name": "ElementaryTypeName",
                        "src": "1130:6:11"
                      }
                    ],
                    "id": 5503,
                    "name": "VariableDeclaration",
                    "src": "1130:6:11"
                  }
                ],
                "id": 5504,
                "name": "ParameterList",
                "src": "1129:8:11"
              }
            ],
            "id": 5505,
            "name": "FunctionDefinition",
            "src": "1033:105:11"
          },
          {
            "attributes": {
              "body": null,
              "documentation": null,
              "implemented": false,
              "isConstructor": false,
              "kind": "function",
              "modifiers": [
                null
              ],
              "name": "getSeverelyUndercollateralizedThresholdPercent",
              "scope": 5511,
              "stateMutability": "view",
              "superFunction": null,
              "visibility": "external"
            },
            "children": [
              {
                "attributes": {
                  "parameters": [
                    null
                  ]
                },
                "children": [],
                "id": 5506,
                "name": "ParameterList",
                "src": "1199:2:11"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "",
                      "scope": 5510,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "uint16",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "uint16",
                          "type": "uint16"
                        },
                        "id": 5507,
                        "name": "ElementaryTypeName",
                        "src": "1249:6:11"
                      }
                    ],
                    "id": 5508,
                    "name": "VariableDeclaration",
                    "src": "1249:6:11"
                  }
                ],
                "id": 5509,
                "name": "ParameterList",
                "src": "1248:8:11"
              }
            ],
            "id": 5510,
            "name": "FunctionDefinition",
            "src": "1144:113:11"
          }
        ],
        "id": 5511,
        "name": "ContractDefinition",
        "src": "59:1200:11"
      }
    ],
    "id": 5512,
    "name": "SourceUnit",
    "src": "0:1260:11"
  },
  "compiler": {
    "name": "solc",
    "version": "0.5.17+commit.d19bba13.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "3.3.4",
  "updatedAt": "2021-11-23T11:52:09.273Z",
  "devdoc": {
    "methods": {},
    "title": "Keep interface"
  },
  "userdoc": {
    "methods": {}
  }
}