{
  "contractName": "LTVDecisionEngineInterface",
  "abi": [
    {
      "constant": true,
      "inputs": [
        {
          "components": [
            {
              "name": "creditor",
              "type": "address"
            },
            {
              "name": "priceFeedOperator",
              "type": "address"
            },
            {
              "components": [
                {
                  "components": [
                    {
                      "name": "maxLTV",
                      "type": "uint256"
                    }
                  ],
                  "name": "values",
                  "type": "tuple"
                },
                {
                  "components": [
                    {
                      "name": "v",
                      "type": "uint8"
                    },
                    {
                      "name": "r",
                      "type": "bytes32"
                    },
                    {
                      "name": "s",
                      "type": "bytes32"
                    }
                  ],
                  "name": "signature",
                  "type": "tuple"
                }
              ],
              "name": "creditorCommitment",
              "type": "tuple"
            },
            {
              "components": [
                {
                  "name": "value",
                  "type": "uint256"
                },
                {
                  "name": "timestamp",
                  "type": "uint256"
                },
                {
                  "name": "tokenAddress",
                  "type": "address"
                },
                {
                  "components": [
                    {
                      "name": "v",
                      "type": "uint8"
                    },
                    {
                      "name": "r",
                      "type": "bytes32"
                    },
                    {
                      "name": "s",
                      "type": "bytes32"
                    }
                  ],
                  "name": "signature",
                  "type": "tuple"
                }
              ],
              "name": "principalPrice",
              "type": "tuple"
            },
            {
              "components": [
                {
                  "name": "value",
                  "type": "uint256"
                },
                {
                  "name": "timestamp",
                  "type": "uint256"
                },
                {
                  "name": "tokenAddress",
                  "type": "address"
                },
                {
                  "components": [
                    {
                      "name": "v",
                      "type": "uint8"
                    },
                    {
                      "name": "r",
                      "type": "bytes32"
                    },
                    {
                      "name": "s",
                      "type": "bytes32"
                    }
                  ],
                  "name": "signature",
                  "type": "tuple"
                }
              ],
              "name": "collateralPrice",
              "type": "tuple"
            },
            {
              "components": [
                {
                  "name": "kernelVersion",
                  "type": "address"
                },
                {
                  "name": "issuanceVersion",
                  "type": "address"
                },
                {
                  "name": "principalAmount",
                  "type": "uint256"
                },
                {
                  "name": "principalToken",
                  "type": "address"
                },
                {
                  "name": "collateralAmount",
                  "type": "uint256"
                },
                {
                  "name": "collateralToken",
                  "type": "address"
                },
                {
                  "name": "debtor",
                  "type": "address"
                },
                {
                  "name": "debtorFee",
                  "type": "uint256"
                },
                {
                  "name": "creditor",
                  "type": "address"
                },
                {
                  "name": "creditorFee",
                  "type": "uint256"
                },
                {
                  "name": "relayer",
                  "type": "address"
                },
                {
                  "name": "relayerFee",
                  "type": "uint256"
                },
                {
                  "name": "underwriter",
                  "type": "address"
                },
                {
                  "name": "underwriterFee",
                  "type": "uint256"
                },
                {
                  "name": "underwriterRiskRating",
                  "type": "uint256"
                },
                {
                  "name": "termsContract",
                  "type": "address"
                },
                {
                  "name": "termsContractParameters",
                  "type": "bytes32"
                },
                {
                  "name": "expirationTimestampInSec",
                  "type": "uint256"
                },
                {
                  "name": "salt",
                  "type": "uint256"
                },
                {
                  "components": [
                    {
                      "name": "v",
                      "type": "uint8"
                    },
                    {
                      "name": "r",
                      "type": "bytes32"
                    },
                    {
                      "name": "s",
                      "type": "bytes32"
                    }
                  ],
                  "name": "debtorSignature",
                  "type": "tuple"
                },
                {
                  "components": [
                    {
                      "name": "v",
                      "type": "uint8"
                    },
                    {
                      "name": "r",
                      "type": "bytes32"
                    },
                    {
                      "name": "s",
                      "type": "bytes32"
                    }
                  ],
                  "name": "creditorSignature",
                  "type": "tuple"
                },
                {
                  "components": [
                    {
                      "name": "v",
                      "type": "uint8"
                    },
                    {
                      "name": "r",
                      "type": "bytes32"
                    },
                    {
                      "name": "s",
                      "type": "bytes32"
                    }
                  ],
                  "name": "underwriterSignature",
                  "type": "tuple"
                }
              ],
              "name": "order",
              "type": "tuple"
            }
          ],
          "name": "params",
          "type": "tuple"
        }
      ],
      "name": "evaluateConsent",
      "outputs": [
        {
          "name": "signatureValid",
          "type": "bool"
        },
        {
          "name": "_id",
          "type": "bytes32"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "components": [
            {
              "name": "creditor",
              "type": "address"
            },
            {
              "name": "priceFeedOperator",
              "type": "address"
            },
            {
              "components": [
                {
                  "components": [
                    {
                      "name": "maxLTV",
                      "type": "uint256"
                    }
                  ],
                  "name": "values",
                  "type": "tuple"
                },
                {
                  "components": [
                    {
                      "name": "v",
                      "type": "uint8"
                    },
                    {
                      "name": "r",
                      "type": "bytes32"
                    },
                    {
                      "name": "s",
                      "type": "bytes32"
                    }
                  ],
                  "name": "signature",
                  "type": "tuple"
                }
              ],
              "name": "creditorCommitment",
              "type": "tuple"
            },
            {
              "components": [
                {
                  "name": "value",
                  "type": "uint256"
                },
                {
                  "name": "timestamp",
                  "type": "uint256"
                },
                {
                  "name": "tokenAddress",
                  "type": "address"
                },
                {
                  "components": [
                    {
                      "name": "v",
                      "type": "uint8"
                    },
                    {
                      "name": "r",
                      "type": "bytes32"
                    },
                    {
                      "name": "s",
                      "type": "bytes32"
                    }
                  ],
                  "name": "signature",
                  "type": "tuple"
                }
              ],
              "name": "principalPrice",
              "type": "tuple"
            },
            {
              "components": [
                {
                  "name": "value",
                  "type": "uint256"
                },
                {
                  "name": "timestamp",
                  "type": "uint256"
                },
                {
                  "name": "tokenAddress",
                  "type": "address"
                },
                {
                  "components": [
                    {
                      "name": "v",
                      "type": "uint8"
                    },
                    {
                      "name": "r",
                      "type": "bytes32"
                    },
                    {
                      "name": "s",
                      "type": "bytes32"
                    }
                  ],
                  "name": "signature",
                  "type": "tuple"
                }
              ],
              "name": "collateralPrice",
              "type": "tuple"
            },
            {
              "components": [
                {
                  "name": "kernelVersion",
                  "type": "address"
                },
                {
                  "name": "issuanceVersion",
                  "type": "address"
                },
                {
                  "name": "principalAmount",
                  "type": "uint256"
                },
                {
                  "name": "principalToken",
                  "type": "address"
                },
                {
                  "name": "collateralAmount",
                  "type": "uint256"
                },
                {
                  "name": "collateralToken",
                  "type": "address"
                },
                {
                  "name": "debtor",
                  "type": "address"
                },
                {
                  "name": "debtorFee",
                  "type": "uint256"
                },
                {
                  "name": "creditor",
                  "type": "address"
                },
                {
                  "name": "creditorFee",
                  "type": "uint256"
                },
                {
                  "name": "relayer",
                  "type": "address"
                },
                {
                  "name": "relayerFee",
                  "type": "uint256"
                },
                {
                  "name": "underwriter",
                  "type": "address"
                },
                {
                  "name": "underwriterFee",
                  "type": "uint256"
                },
                {
                  "name": "underwriterRiskRating",
                  "type": "uint256"
                },
                {
                  "name": "termsContract",
                  "type": "address"
                },
                {
                  "name": "termsContractParameters",
                  "type": "bytes32"
                },
                {
                  "name": "expirationTimestampInSec",
                  "type": "uint256"
                },
                {
                  "name": "salt",
                  "type": "uint256"
                },
                {
                  "components": [
                    {
                      "name": "v",
                      "type": "uint8"
                    },
                    {
                      "name": "r",
                      "type": "bytes32"
                    },
                    {
                      "name": "s",
                      "type": "bytes32"
                    }
                  ],
                  "name": "debtorSignature",
                  "type": "tuple"
                },
                {
                  "components": [
                    {
                      "name": "v",
                      "type": "uint8"
                    },
                    {
                      "name": "r",
                      "type": "bytes32"
                    },
                    {
                      "name": "s",
                      "type": "bytes32"
                    }
                  ],
                  "name": "creditorSignature",
                  "type": "tuple"
                },
                {
                  "components": [
                    {
                      "name": "v",
                      "type": "uint8"
                    },
                    {
                      "name": "r",
                      "type": "bytes32"
                    },
                    {
                      "name": "s",
                      "type": "bytes32"
                    }
                  ],
                  "name": "underwriterSignature",
                  "type": "tuple"
                }
              ],
              "name": "order",
              "type": "tuple"
            }
          ],
          "name": "params",
          "type": "tuple"
        }
      ],
      "name": "evaluateDecision",
      "outputs": [
        {
          "name": "_success",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    }
  ],
  "bytecode": "0x",
  "deployedBytecode": "0x",
  "sourceMap": "",
  "deployedSourceMap": "",
  "source": "pragma solidity ^0.4.24;\npragma experimental ABIEncoderV2;\n\nimport \"../DecisionEngines/libraries/LTVDecisionEngineTypes.sol\";\n\n\ncontract LTVDecisionEngineInterface {\n\n\tfunction evaluateConsent(LTVDecisionEngineTypes.Params params)\n\t\tpublic view returns (bool signatureValid, bytes32 _id);\n\n\tfunction evaluateDecision(LTVDecisionEngineTypes.Params params)\n\t\tpublic returns (bool _success);\n\n}\n",
  "sourcePath": "/Users/graemeboy/Dharma/experimental/contracts/src/CreditorDrivenLoans/interfaces/LTVDecisionEngineInterface.sol",
  "ast": {
    "absolutePath": "/Users/graemeboy/Dharma/experimental/contracts/src/CreditorDrivenLoans/interfaces/LTVDecisionEngineInterface.sol",
    "exportedSymbols": {
      "LTVDecisionEngineInterface": [
        956
      ]
    },
    "id": 957,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 937,
        "literals": [
          "solidity",
          "^",
          "0.4",
          ".24"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:24:8"
      },
      {
        "id": 938,
        "literals": [
          "experimental",
          "ABIEncoderV2"
        ],
        "nodeType": "PragmaDirective",
        "src": "25:33:8"
      },
      {
        "absolutePath": "/Users/graemeboy/Dharma/experimental/contracts/src/CreditorDrivenLoans/DecisionEngines/libraries/LTVDecisionEngineTypes.sol",
        "file": "../DecisionEngines/libraries/LTVDecisionEngineTypes.sol",
        "id": 939,
        "nodeType": "ImportDirective",
        "scope": 957,
        "sourceUnit": 491,
        "src": "60:65:8",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "contract",
        "documentation": null,
        "fullyImplemented": false,
        "id": 956,
        "linearizedBaseContracts": [
          956
        ],
        "name": "LTVDecisionEngineInterface",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "body": null,
            "documentation": null,
            "id": 948,
            "implemented": false,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "evaluateConsent",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 942,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 941,
                  "name": "params",
                  "nodeType": "VariableDeclaration",
                  "scope": 948,
                  "src": "193:36:8",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_Params_$472_memory_ptr",
                    "typeString": "struct LTVDecisionEngineTypes.Params"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 940,
                    "name": "LTVDecisionEngineTypes.Params",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 472,
                    "src": "193:29:8",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Params_$472_storage_ptr",
                      "typeString": "struct LTVDecisionEngineTypes.Params"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "192:38:8"
            },
            "payable": false,
            "returnParameters": {
              "id": 947,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 944,
                  "name": "signatureValid",
                  "nodeType": "VariableDeclaration",
                  "scope": 948,
                  "src": "254:19:8",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 943,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "254:4:8",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 946,
                  "name": "_id",
                  "nodeType": "VariableDeclaration",
                  "scope": 948,
                  "src": "275:11:8",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 945,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "275:7:8",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "253:34:8"
            },
            "scope": 956,
            "src": "168:120:8",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": null,
            "documentation": null,
            "id": 955,
            "implemented": false,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "evaluateDecision",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 951,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 950,
                  "name": "params",
                  "nodeType": "VariableDeclaration",
                  "scope": 955,
                  "src": "317:36:8",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_Params_$472_memory_ptr",
                    "typeString": "struct LTVDecisionEngineTypes.Params"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 949,
                    "name": "LTVDecisionEngineTypes.Params",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 472,
                    "src": "317:29:8",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Params_$472_storage_ptr",
                      "typeString": "struct LTVDecisionEngineTypes.Params"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "316:38:8"
            },
            "payable": false,
            "returnParameters": {
              "id": 954,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 953,
                  "name": "_success",
                  "nodeType": "VariableDeclaration",
                  "scope": 955,
                  "src": "373:13:8",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 952,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "373:4:8",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "372:15:8"
            },
            "scope": 956,
            "src": "291:97:8",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          }
        ],
        "scope": 957,
        "src": "128:263:8"
      }
    ],
    "src": "0:392:8"
  },
  "legacyAST": {
    "absolutePath": "/Users/graemeboy/Dharma/experimental/contracts/src/CreditorDrivenLoans/interfaces/LTVDecisionEngineInterface.sol",
    "exportedSymbols": {
      "LTVDecisionEngineInterface": [
        956
      ]
    },
    "id": 957,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 937,
        "literals": [
          "solidity",
          "^",
          "0.4",
          ".24"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:24:8"
      },
      {
        "id": 938,
        "literals": [
          "experimental",
          "ABIEncoderV2"
        ],
        "nodeType": "PragmaDirective",
        "src": "25:33:8"
      },
      {
        "absolutePath": "/Users/graemeboy/Dharma/experimental/contracts/src/CreditorDrivenLoans/DecisionEngines/libraries/LTVDecisionEngineTypes.sol",
        "file": "../DecisionEngines/libraries/LTVDecisionEngineTypes.sol",
        "id": 939,
        "nodeType": "ImportDirective",
        "scope": 957,
        "sourceUnit": 491,
        "src": "60:65:8",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "contract",
        "documentation": null,
        "fullyImplemented": false,
        "id": 956,
        "linearizedBaseContracts": [
          956
        ],
        "name": "LTVDecisionEngineInterface",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "body": null,
            "documentation": null,
            "id": 948,
            "implemented": false,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "evaluateConsent",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 942,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 941,
                  "name": "params",
                  "nodeType": "VariableDeclaration",
                  "scope": 948,
                  "src": "193:36:8",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_Params_$472_memory_ptr",
                    "typeString": "struct LTVDecisionEngineTypes.Params"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 940,
                    "name": "LTVDecisionEngineTypes.Params",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 472,
                    "src": "193:29:8",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Params_$472_storage_ptr",
                      "typeString": "struct LTVDecisionEngineTypes.Params"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "192:38:8"
            },
            "payable": false,
            "returnParameters": {
              "id": 947,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 944,
                  "name": "signatureValid",
                  "nodeType": "VariableDeclaration",
                  "scope": 948,
                  "src": "254:19:8",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 943,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "254:4:8",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 946,
                  "name": "_id",
                  "nodeType": "VariableDeclaration",
                  "scope": 948,
                  "src": "275:11:8",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 945,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "275:7:8",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "253:34:8"
            },
            "scope": 956,
            "src": "168:120:8",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": null,
            "documentation": null,
            "id": 955,
            "implemented": false,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "evaluateDecision",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 951,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 950,
                  "name": "params",
                  "nodeType": "VariableDeclaration",
                  "scope": 955,
                  "src": "317:36:8",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_Params_$472_memory_ptr",
                    "typeString": "struct LTVDecisionEngineTypes.Params"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 949,
                    "name": "LTVDecisionEngineTypes.Params",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 472,
                    "src": "317:29:8",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Params_$472_storage_ptr",
                      "typeString": "struct LTVDecisionEngineTypes.Params"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "316:38:8"
            },
            "payable": false,
            "returnParameters": {
              "id": 954,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 953,
                  "name": "_success",
                  "nodeType": "VariableDeclaration",
                  "scope": 955,
                  "src": "373:13:8",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 952,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "373:4:8",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "372:15:8"
            },
            "scope": 956,
            "src": "291:97:8",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          }
        ],
        "scope": 957,
        "src": "128:263:8"
      }
    ],
    "src": "0:392:8"
  },
  "compiler": {
    "name": "solc",
    "version": "0.4.24+commit.e67f0147.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "2.0.1",
  "updatedAt": "2018-10-15T20:00:34.896Z"
}