{
  "contractName": "IBondedECDSAKeepFactory",
  "abi": [
    {
      "constant": false,
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_groupSize",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "_honestThreshold",
          "type": "uint256"
        },
        {
          "internalType": "address",
          "name": "_owner",
          "type": "address"
        },
        {
          "internalType": "uint256",
          "name": "_bond",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "_stakeLockDuration",
          "type": "uint256"
        }
      ],
      "name": "openKeep",
      "outputs": [
        {
          "internalType": "address",
          "name": "keepAddress",
          "type": "address"
        }
      ],
      "payable": true,
      "stateMutability": "payable",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "openKeepFeeEstimate",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "internalType": "address",
          "name": "_application",
          "type": "address"
        }
      ],
      "name": "getSortitionPoolWeight",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_minimumBondableValue",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "_groupSize",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "_honestThreshold",
          "type": "uint256"
        }
      ],
      "name": "setMinimumBondableValue",
      "outputs": [],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    }
  ],
  "metadata": "{\"compiler\":{\"version\":\"0.5.17+commit.d19bba13\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"_application\",\"type\":\"address\"}],\"name\":\"getSortitionPoolWeight\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_groupSize\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_honestThreshold\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_bond\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_stakeLockDuration\",\"type\":\"uint256\"}],\"name\":\"openKeep\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"keepAddress\",\"type\":\"address\"}],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"openKeepFeeEstimate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_minimumBondableValue\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_groupSize\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_honestThreshold\",\"type\":\"uint256\"}],\"name\":\"setMinimumBondableValue\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{\"getSortitionPoolWeight(address)\":{\"params\":{\"_application\":\"Address of the application.\"},\"return\":\"The sum of all registered operators' weights in the pool. Reverts if sortition pool for the application does not exist.\"},\"openKeep(uint256,uint256,address,uint256,uint256)\":{\"params\":{\"_bond\":\"Value of ETH bond required from the keep.\",\"_groupSize\":\"Number of members in the keep.\",\"_honestThreshold\":\"Minimum number of honest keep members.\",\"_owner\":\"Address of the keep owner.\",\"_stakeLockDuration\":\"Stake lock duration in seconds.\"},\"return\":\"Address of the opened keep.\"},\"openKeepFeeEstimate()\":{\"return\":\"Uint256 estimate.\"},\"setMinimumBondableValue(uint256,uint256,uint256)\":{\"details\":\"The default minimum bond value for each sortition pool created is 20 ETH.\",\"params\":{\"_groupSize\":\"Number of signers in the keep.\",\"_honestThreshold\":\"Minimum number of honest keep signers.\",\"_minimumBondableValue\":\"The minimum unbonded value the application requires from a single keep.\"}}},\"title\":\"Bonded ECDSA Keep Factory\"},\"userdoc\":{\"methods\":{\"getSortitionPoolWeight(address)\":{\"notice\":\"Gets the total weight of operators in the sortition pool for the given application.\"},\"openKeep(uint256,uint256,address,uint256,uint256)\":{\"notice\":\"Open a new ECDSA Keep.\"},\"openKeepFeeEstimate()\":{\"notice\":\"Gets a fee estimate for opening a new keep.\"},\"setMinimumBondableValue(uint256,uint256,uint256)\":{\"notice\":\"Sets the minimum bondable value required from the operator to join the sortition pool of the given application. It is up to the application to specify a reasonable minimum bond for operators trying to join the pool to prevent griefing by operators joining without enough bondable value.\"}},\"notice\":\"Factory for Bonded ECDSA Keeps.\"}},\"settings\":{\"compilationTarget\":{\"@keep-network/keep-ecdsa/contracts/api/IBondedECDSAKeepFactory.sol\":\"IBondedECDSAKeepFactory\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@keep-network/keep-ecdsa/contracts/api/IBondedECDSAKeepFactory.sol\":{\"keccak256\":\"0x07ae883d2a0f5b7fe2c0b055206f565da51b04d1ca574ae4d4da3a19e6badcdb\",\"urls\":[\"bzz-raw://038b4f5b45b2d676ef7411b69cadd490d5789e3d245afd78aaa72177ce042572\",\"dweb:/ipfs/QmRaBYU4HCDSH33a3gpLN4t2TsyNaFRxLKv3WeAZEgk9Rr\"]}},\"version\":1}",
  "bytecode": "0x",
  "deployedBytecode": "0x",
  "sourceMap": "",
  "deployedSourceMap": "",
  "source": "/**\n▓▓▌ ▓▓ ▐▓▓ ▓▓▓▓▓▓▓▓▓▓▌▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▄\n▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▌▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓\n  ▓▓▓▓▓▓    ▓▓▓▓▓▓▓▀    ▐▓▓▓▓▓▓    ▐▓▓▓▓▓   ▓▓▓▓▓▓     ▓▓▓▓▓   ▐▓▓▓▓▓▌   ▐▓▓▓▓▓▓\n  ▓▓▓▓▓▓▄▄▓▓▓▓▓▓▓▀      ▐▓▓▓▓▓▓▄▄▄▄         ▓▓▓▓▓▓▄▄▄▄         ▐▓▓▓▓▓▌   ▐▓▓▓▓▓▓\n  ▓▓▓▓▓▓▓▓▓▓▓▓▓▀        ▐▓▓▓▓▓▓▓▓▓▓         ▓▓▓▓▓▓▓▓▓▓▌        ▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓\n  ▓▓▓▓▓▓▀▀▓▓▓▓▓▓▄       ▐▓▓▓▓▓▓▀▀▀▀         ▓▓▓▓▓▓▀▀▀▀         ▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▀\n  ▓▓▓▓▓▓   ▀▓▓▓▓▓▓▄     ▐▓▓▓▓▓▓     ▓▓▓▓▓   ▓▓▓▓▓▓     ▓▓▓▓▓   ▐▓▓▓▓▓▌\n▓▓▓▓▓▓▓▓▓▓ █▓▓▓▓▓▓▓▓▓ ▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓  ▓▓▓▓▓▓▓▓▓▓\n▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓ ▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓  ▓▓▓▓▓▓▓▓▓▓\n\n                           Trust math, not hardware.\n*/\n\npragma solidity 0.5.17;\n\n/// @title Bonded ECDSA Keep Factory\n/// @notice Factory for Bonded ECDSA Keeps.\ninterface IBondedECDSAKeepFactory {\n    /// @notice Open a new ECDSA Keep.\n    /// @param _groupSize Number of members in the keep.\n    /// @param _honestThreshold Minimum number of honest keep members.\n    /// @param _owner Address of the keep owner.\n    /// @param _bond Value of ETH bond required from the keep.\n    /// @param _stakeLockDuration Stake lock duration in seconds.\n    /// @return Address of the opened keep.\n    function openKeep(\n        uint256 _groupSize,\n        uint256 _honestThreshold,\n        address _owner,\n        uint256 _bond,\n        uint256 _stakeLockDuration\n    ) external payable returns (address keepAddress);\n\n    /// @notice Gets a fee estimate for opening a new keep.\n    /// @return Uint256 estimate.\n    function openKeepFeeEstimate() external view returns (uint256);\n\n    /// @notice Gets the total weight of operators\n    /// in the sortition pool for the given application.\n    /// @param _application Address of the application.\n    /// @return The sum of all registered operators' weights in the pool.\n    /// Reverts if sortition pool for the application does not exist.\n    function getSortitionPoolWeight(address _application)\n        external\n        view\n        returns (uint256);\n\n    /// @notice Sets the minimum bondable value required from the operator to\n    /// join the sortition pool of the given application. It is up to the\n    /// application to specify a reasonable minimum bond for operators trying to\n    /// join the pool to prevent griefing by operators joining without enough\n    /// bondable value.\n    /// @dev The default minimum bond value for each sortition pool created\n    /// is 20 ETH.\n    /// @param _minimumBondableValue The minimum unbonded value the application\n    /// requires from a single keep.\n    /// @param _groupSize Number of signers in the keep.\n    /// @param _honestThreshold Minimum number of honest keep signers.\n    function setMinimumBondableValue(\n        uint256 _minimumBondableValue,\n        uint256 _groupSize,\n        uint256 _honestThreshold\n    ) external;\n}\n",
  "sourcePath": "@keep-network/keep-ecdsa/contracts/api/IBondedECDSAKeepFactory.sol",
  "ast": {
    "absolutePath": "@keep-network/keep-ecdsa/contracts/api/IBondedECDSAKeepFactory.sol",
    "exportedSymbols": {
      "IBondedECDSAKeepFactory": [
        11467
      ]
    },
    "id": 11468,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 11430,
        "literals": [
          "solidity",
          "0.5",
          ".17"
        ],
        "nodeType": "PragmaDirective",
        "src": "1837:23:47"
      },
      {
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "interface",
        "documentation": "@title Bonded ECDSA Keep Factory\n @notice Factory for Bonded ECDSA Keeps.",
        "fullyImplemented": false,
        "id": 11467,
        "linearizedBaseContracts": [
          11467
        ],
        "name": "IBondedECDSAKeepFactory",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "body": null,
            "documentation": "@notice Open a new ECDSA Keep.\n @param _groupSize Number of members in the keep.\n @param _honestThreshold Minimum number of honest keep members.\n @param _owner Address of the keep owner.\n @param _bond Value of ETH bond required from the keep.\n @param _stakeLockDuration Stake lock duration in seconds.\n @return Address of the opened keep.",
            "id": 11445,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "openKeep",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 11441,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 11432,
                  "name": "_groupSize",
                  "nodeType": "VariableDeclaration",
                  "scope": 11445,
                  "src": "2399:18:47",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 11431,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "2399:7:47",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 11434,
                  "name": "_honestThreshold",
                  "nodeType": "VariableDeclaration",
                  "scope": 11445,
                  "src": "2427:24:47",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 11433,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "2427:7:47",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 11436,
                  "name": "_owner",
                  "nodeType": "VariableDeclaration",
                  "scope": 11445,
                  "src": "2461:14:47",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 11435,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "2461:7:47",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 11438,
                  "name": "_bond",
                  "nodeType": "VariableDeclaration",
                  "scope": 11445,
                  "src": "2485:13:47",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 11437,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "2485:7:47",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 11440,
                  "name": "_stakeLockDuration",
                  "nodeType": "VariableDeclaration",
                  "scope": 11445,
                  "src": "2508:26:47",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 11439,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "2508:7:47",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "2389:151:47"
            },
            "returnParameters": {
              "id": 11444,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 11443,
                  "name": "keepAddress",
                  "nodeType": "VariableDeclaration",
                  "scope": 11445,
                  "src": "2567:19:47",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 11442,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "2567:7:47",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "2566:21:47"
            },
            "scope": 11467,
            "src": "2372:216:47",
            "stateMutability": "payable",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": null,
            "documentation": "@notice Gets a fee estimate for opening a new keep.\n @return Uint256 estimate.",
            "id": 11450,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "openKeepFeeEstimate",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 11446,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "2716:2:47"
            },
            "returnParameters": {
              "id": 11449,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 11448,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 11450,
                  "src": "2742:7:47",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 11447,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "2742:7:47",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "2741:9:47"
            },
            "scope": 11467,
            "src": "2688:63:47",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": null,
            "documentation": "@notice Gets the total weight of operators\n in the sortition pool for the given application.\n @param _application Address of the application.\n @return The sum of all registered operators' weights in the pool.\n Reverts if sortition pool for the application does not exist.",
            "id": 11457,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "getSortitionPoolWeight",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 11453,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 11452,
                  "name": "_application",
                  "nodeType": "VariableDeclaration",
                  "scope": 11457,
                  "src": "3097:20:47",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 11451,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "3097:7:47",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "3096:22:47"
            },
            "returnParameters": {
              "id": 11456,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 11455,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 11457,
                  "src": "3166:7:47",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 11454,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "3166:7:47",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "3165:9:47"
            },
            "scope": 11467,
            "src": "3065:110:47",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": null,
            "documentation": "@notice Sets the minimum bondable value required from the operator to\n join the sortition pool of the given application. It is up to the\n application to specify a reasonable minimum bond for operators trying to\n join the pool to prevent griefing by operators joining without enough\n bondable value.\n @dev The default minimum bond value for each sortition pool created\n is 20 ETH.\n @param _minimumBondableValue The minimum unbonded value the application\n requires from a single keep.\n @param _groupSize Number of signers in the keep.\n @param _honestThreshold Minimum number of honest keep signers.",
            "id": 11466,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "setMinimumBondableValue",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 11464,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 11459,
                  "name": "_minimumBondableValue",
                  "nodeType": "VariableDeclaration",
                  "scope": 11466,
                  "src": "3898:29:47",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 11458,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "3898:7:47",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 11461,
                  "name": "_groupSize",
                  "nodeType": "VariableDeclaration",
                  "scope": 11466,
                  "src": "3937:18:47",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 11460,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "3937:7:47",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 11463,
                  "name": "_honestThreshold",
                  "nodeType": "VariableDeclaration",
                  "scope": 11466,
                  "src": "3965:24:47",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 11462,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "3965:7:47",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "3888:107:47"
            },
            "returnParameters": {
              "id": 11465,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "4004:0:47"
            },
            "scope": 11467,
            "src": "3856:149:47",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "external"
          }
        ],
        "scope": 11468,
        "src": "1943:2064:47"
      }
    ],
    "src": "1837:2171:47"
  },
  "legacyAST": {
    "attributes": {
      "absolutePath": "@keep-network/keep-ecdsa/contracts/api/IBondedECDSAKeepFactory.sol",
      "exportedSymbols": {
        "IBondedECDSAKeepFactory": [
          11467
        ]
      }
    },
    "children": [
      {
        "attributes": {
          "literals": [
            "solidity",
            "0.5",
            ".17"
          ]
        },
        "id": 11430,
        "name": "PragmaDirective",
        "src": "1837:23:47"
      },
      {
        "attributes": {
          "baseContracts": [
            null
          ],
          "contractDependencies": [
            null
          ],
          "contractKind": "interface",
          "documentation": "@title Bonded ECDSA Keep Factory\n @notice Factory for Bonded ECDSA Keeps.",
          "fullyImplemented": false,
          "linearizedBaseContracts": [
            11467
          ],
          "name": "IBondedECDSAKeepFactory",
          "scope": 11468
        },
        "children": [
          {
            "attributes": {
              "body": null,
              "documentation": "@notice Open a new ECDSA Keep.\n @param _groupSize Number of members in the keep.\n @param _honestThreshold Minimum number of honest keep members.\n @param _owner Address of the keep owner.\n @param _bond Value of ETH bond required from the keep.\n @param _stakeLockDuration Stake lock duration in seconds.\n @return Address of the opened keep.",
              "implemented": false,
              "isConstructor": false,
              "kind": "function",
              "modifiers": [
                null
              ],
              "name": "openKeep",
              "scope": 11467,
              "stateMutability": "payable",
              "superFunction": null,
              "visibility": "external"
            },
            "children": [
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "_groupSize",
                      "scope": 11445,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "uint256",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "uint256",
                          "type": "uint256"
                        },
                        "id": 11431,
                        "name": "ElementaryTypeName",
                        "src": "2399:7:47"
                      }
                    ],
                    "id": 11432,
                    "name": "VariableDeclaration",
                    "src": "2399:18:47"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "name": "_honestThreshold",
                      "scope": 11445,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "uint256",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "uint256",
                          "type": "uint256"
                        },
                        "id": 11433,
                        "name": "ElementaryTypeName",
                        "src": "2427:7:47"
                      }
                    ],
                    "id": 11434,
                    "name": "VariableDeclaration",
                    "src": "2427:24:47"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "name": "_owner",
                      "scope": 11445,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "address",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "address",
                          "stateMutability": "nonpayable",
                          "type": "address"
                        },
                        "id": 11435,
                        "name": "ElementaryTypeName",
                        "src": "2461:7:47"
                      }
                    ],
                    "id": 11436,
                    "name": "VariableDeclaration",
                    "src": "2461:14:47"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "name": "_bond",
                      "scope": 11445,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "uint256",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "uint256",
                          "type": "uint256"
                        },
                        "id": 11437,
                        "name": "ElementaryTypeName",
                        "src": "2485:7:47"
                      }
                    ],
                    "id": 11438,
                    "name": "VariableDeclaration",
                    "src": "2485:13:47"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "name": "_stakeLockDuration",
                      "scope": 11445,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "uint256",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "uint256",
                          "type": "uint256"
                        },
                        "id": 11439,
                        "name": "ElementaryTypeName",
                        "src": "2508:7:47"
                      }
                    ],
                    "id": 11440,
                    "name": "VariableDeclaration",
                    "src": "2508:26:47"
                  }
                ],
                "id": 11441,
                "name": "ParameterList",
                "src": "2389:151:47"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "keepAddress",
                      "scope": 11445,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "address",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "address",
                          "stateMutability": "nonpayable",
                          "type": "address"
                        },
                        "id": 11442,
                        "name": "ElementaryTypeName",
                        "src": "2567:7:47"
                      }
                    ],
                    "id": 11443,
                    "name": "VariableDeclaration",
                    "src": "2567:19:47"
                  }
                ],
                "id": 11444,
                "name": "ParameterList",
                "src": "2566:21:47"
              }
            ],
            "id": 11445,
            "name": "FunctionDefinition",
            "src": "2372:216:47"
          },
          {
            "attributes": {
              "body": null,
              "documentation": "@notice Gets a fee estimate for opening a new keep.\n @return Uint256 estimate.",
              "implemented": false,
              "isConstructor": false,
              "kind": "function",
              "modifiers": [
                null
              ],
              "name": "openKeepFeeEstimate",
              "scope": 11467,
              "stateMutability": "view",
              "superFunction": null,
              "visibility": "external"
            },
            "children": [
              {
                "attributes": {
                  "parameters": [
                    null
                  ]
                },
                "children": [],
                "id": 11446,
                "name": "ParameterList",
                "src": "2716:2:47"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "",
                      "scope": 11450,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "uint256",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "uint256",
                          "type": "uint256"
                        },
                        "id": 11447,
                        "name": "ElementaryTypeName",
                        "src": "2742:7:47"
                      }
                    ],
                    "id": 11448,
                    "name": "VariableDeclaration",
                    "src": "2742:7:47"
                  }
                ],
                "id": 11449,
                "name": "ParameterList",
                "src": "2741:9:47"
              }
            ],
            "id": 11450,
            "name": "FunctionDefinition",
            "src": "2688:63:47"
          },
          {
            "attributes": {
              "body": null,
              "documentation": "@notice Gets the total weight of operators\n in the sortition pool for the given application.\n @param _application Address of the application.\n @return The sum of all registered operators' weights in the pool.\n Reverts if sortition pool for the application does not exist.",
              "implemented": false,
              "isConstructor": false,
              "kind": "function",
              "modifiers": [
                null
              ],
              "name": "getSortitionPoolWeight",
              "scope": 11467,
              "stateMutability": "view",
              "superFunction": null,
              "visibility": "external"
            },
            "children": [
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "_application",
                      "scope": 11457,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "address",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "address",
                          "stateMutability": "nonpayable",
                          "type": "address"
                        },
                        "id": 11451,
                        "name": "ElementaryTypeName",
                        "src": "3097:7:47"
                      }
                    ],
                    "id": 11452,
                    "name": "VariableDeclaration",
                    "src": "3097:20:47"
                  }
                ],
                "id": 11453,
                "name": "ParameterList",
                "src": "3096:22:47"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "",
                      "scope": 11457,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "uint256",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "uint256",
                          "type": "uint256"
                        },
                        "id": 11454,
                        "name": "ElementaryTypeName",
                        "src": "3166:7:47"
                      }
                    ],
                    "id": 11455,
                    "name": "VariableDeclaration",
                    "src": "3166:7:47"
                  }
                ],
                "id": 11456,
                "name": "ParameterList",
                "src": "3165:9:47"
              }
            ],
            "id": 11457,
            "name": "FunctionDefinition",
            "src": "3065:110:47"
          },
          {
            "attributes": {
              "body": null,
              "documentation": "@notice Sets the minimum bondable value required from the operator to\n join the sortition pool of the given application. It is up to the\n application to specify a reasonable minimum bond for operators trying to\n join the pool to prevent griefing by operators joining without enough\n bondable value.\n @dev The default minimum bond value for each sortition pool created\n is 20 ETH.\n @param _minimumBondableValue The minimum unbonded value the application\n requires from a single keep.\n @param _groupSize Number of signers in the keep.\n @param _honestThreshold Minimum number of honest keep signers.",
              "implemented": false,
              "isConstructor": false,
              "kind": "function",
              "modifiers": [
                null
              ],
              "name": "setMinimumBondableValue",
              "scope": 11467,
              "stateMutability": "nonpayable",
              "superFunction": null,
              "visibility": "external"
            },
            "children": [
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "_minimumBondableValue",
                      "scope": 11466,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "uint256",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "uint256",
                          "type": "uint256"
                        },
                        "id": 11458,
                        "name": "ElementaryTypeName",
                        "src": "3898:7:47"
                      }
                    ],
                    "id": 11459,
                    "name": "VariableDeclaration",
                    "src": "3898:29:47"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "name": "_groupSize",
                      "scope": 11466,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "uint256",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "uint256",
                          "type": "uint256"
                        },
                        "id": 11460,
                        "name": "ElementaryTypeName",
                        "src": "3937:7:47"
                      }
                    ],
                    "id": 11461,
                    "name": "VariableDeclaration",
                    "src": "3937:18:47"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "name": "_honestThreshold",
                      "scope": 11466,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "uint256",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "uint256",
                          "type": "uint256"
                        },
                        "id": 11462,
                        "name": "ElementaryTypeName",
                        "src": "3965:7:47"
                      }
                    ],
                    "id": 11463,
                    "name": "VariableDeclaration",
                    "src": "3965:24:47"
                  }
                ],
                "id": 11464,
                "name": "ParameterList",
                "src": "3888:107:47"
              },
              {
                "attributes": {
                  "parameters": [
                    null
                  ]
                },
                "children": [],
                "id": 11465,
                "name": "ParameterList",
                "src": "4004:0:47"
              }
            ],
            "id": 11466,
            "name": "FunctionDefinition",
            "src": "3856:149:47"
          }
        ],
        "id": 11467,
        "name": "ContractDefinition",
        "src": "1943:2064:47"
      }
    ],
    "id": 11468,
    "name": "SourceUnit",
    "src": "1837:2171:47"
  },
  "compiler": {
    "name": "solc",
    "version": "0.5.17+commit.d19bba13.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "3.3.4",
  "updatedAt": "2021-11-23T11:52:09.383Z",
  "devdoc": {
    "methods": {
      "getSortitionPoolWeight(address)": {
        "params": {
          "_application": "Address of the application."
        },
        "return": "The sum of all registered operators' weights in the pool. Reverts if sortition pool for the application does not exist."
      },
      "openKeep(uint256,uint256,address,uint256,uint256)": {
        "params": {
          "_bond": "Value of ETH bond required from the keep.",
          "_groupSize": "Number of members in the keep.",
          "_honestThreshold": "Minimum number of honest keep members.",
          "_owner": "Address of the keep owner.",
          "_stakeLockDuration": "Stake lock duration in seconds."
        },
        "return": "Address of the opened keep."
      },
      "openKeepFeeEstimate()": {
        "return": "Uint256 estimate."
      },
      "setMinimumBondableValue(uint256,uint256,uint256)": {
        "details": "The default minimum bond value for each sortition pool created is 20 ETH.",
        "params": {
          "_groupSize": "Number of signers in the keep.",
          "_honestThreshold": "Minimum number of honest keep signers.",
          "_minimumBondableValue": "The minimum unbonded value the application requires from a single keep."
        }
      }
    },
    "title": "Bonded ECDSA Keep Factory"
  },
  "userdoc": {
    "methods": {
      "getSortitionPoolWeight(address)": {
        "notice": "Gets the total weight of operators in the sortition pool for the given application."
      },
      "openKeep(uint256,uint256,address,uint256,uint256)": {
        "notice": "Open a new ECDSA Keep."
      },
      "openKeepFeeEstimate()": {
        "notice": "Gets a fee estimate for opening a new keep."
      },
      "setMinimumBondableValue(uint256,uint256,uint256)": {
        "notice": "Sets the minimum bondable value required from the operator to join the sortition pool of the given application. It is up to the application to specify a reasonable minimum bond for operators trying to join the pool to prevent griefing by operators joining without enough bondable value."
      }
    },
    "notice": "Factory for Bonded ECDSA Keeps."
  }
}