{
  "contractName": "SimpleInterestTermsContractInterface",
  "abi": [
    {
      "constant": true,
      "inputs": [
        {
          "name": "agreementId",
          "type": "bytes32"
        }
      ],
      "name": "getValueRepaidToDate",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "_agreementId",
          "type": "bytes32"
        }
      ],
      "name": "getTermEndTimestamp",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "agreementId",
          "type": "bytes32"
        },
        {
          "name": "payer",
          "type": "address"
        },
        {
          "name": "beneficiary",
          "type": "address"
        },
        {
          "name": "unitsOfRepayment",
          "type": "uint256"
        },
        {
          "name": "tokenAddress",
          "type": "address"
        }
      ],
      "name": "registerRepayment",
      "outputs": [
        {
          "name": "_success",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "agreementId",
          "type": "bytes32"
        },
        {
          "name": "debtor",
          "type": "address"
        }
      ],
      "name": "registerTermStart",
      "outputs": [
        {
          "name": "_success",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "agreementId",
          "type": "bytes32"
        },
        {
          "name": "timestamp",
          "type": "uint256"
        }
      ],
      "name": "getExpectedRepaymentValue",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "parameters",
          "type": "bytes32"
        }
      ],
      "name": "unpackParametersFromBytes",
      "outputs": [
        {
          "name": "_principalTokenIndex",
          "type": "uint256"
        },
        {
          "name": "_principalAmount",
          "type": "uint256"
        },
        {
          "name": "_interestRate",
          "type": "uint256"
        },
        {
          "name": "_amortizationUnitType",
          "type": "uint256"
        },
        {
          "name": "_termLengthInAmortizationUnits",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "pure",
      "type": "function"
    }
  ],
  "bytecode": "0x",
  "deployedBytecode": "0x",
  "sourceMap": "",
  "deployedSourceMap": "",
  "source": "pragma solidity ^0.4.24;\npragma experimental ABIEncoderV2;\n\n\nimport \"./TermsContractInterface.sol\";\n\ncontract SimpleInterestTermsContractInterface is TermsContractInterface {\n\n    function unpackParametersFromBytes(\n        bytes32 parameters\n    ) public pure returns (\n        uint _principalTokenIndex,\n        uint _principalAmount,\n        uint _interestRate,\n        uint _amortizationUnitType,\n        uint _termLengthInAmortizationUnits\n    );\n\n}\n",
  "sourcePath": "/Users/graemeboy/Dharma/experimental/contracts/src/shared/interfaces/SimpleInterestTermsContractInterface.sol",
  "ast": {
    "absolutePath": "/Users/graemeboy/Dharma/experimental/contracts/src/shared/interfaces/SimpleInterestTermsContractInterface.sol",
    "exportedSymbols": {
      "SimpleInterestTermsContractInterface": [
        965
      ]
    },
    "id": 966,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 945,
        "literals": [
          "solidity",
          "^",
          "0.4",
          ".24"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:24:10"
      },
      {
        "id": 946,
        "literals": [
          "experimental",
          "ABIEncoderV2"
        ],
        "nodeType": "PragmaDirective",
        "src": "25:33:10"
      },
      {
        "absolutePath": "/Users/graemeboy/Dharma/experimental/contracts/src/shared/interfaces/TermsContractInterface.sol",
        "file": "./TermsContractInterface.sol",
        "id": 947,
        "nodeType": "ImportDirective",
        "scope": 966,
        "sourceUnit": 1017,
        "src": "61:38:10",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [
          {
            "arguments": null,
            "baseName": {
              "contractScope": null,
              "id": 948,
              "name": "TermsContractInterface",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 1016,
              "src": "150:22:10",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_TermsContractInterface_$1016",
                "typeString": "contract TermsContractInterface"
              }
            },
            "id": 949,
            "nodeType": "InheritanceSpecifier",
            "src": "150:22:10"
          }
        ],
        "contractDependencies": [
          1016
        ],
        "contractKind": "contract",
        "documentation": null,
        "fullyImplemented": false,
        "id": 965,
        "linearizedBaseContracts": [
          965,
          1016
        ],
        "name": "SimpleInterestTermsContractInterface",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "body": null,
            "documentation": null,
            "id": 964,
            "implemented": false,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "unpackParametersFromBytes",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 952,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 951,
                  "name": "parameters",
                  "nodeType": "VariableDeclaration",
                  "scope": 964,
                  "src": "224:18:10",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 950,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "224:7:10",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "214:34:10"
            },
            "payable": false,
            "returnParameters": {
              "id": 963,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 954,
                  "name": "_principalTokenIndex",
                  "nodeType": "VariableDeclaration",
                  "scope": 964,
                  "src": "279:25:10",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 953,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "279:4:10",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 956,
                  "name": "_principalAmount",
                  "nodeType": "VariableDeclaration",
                  "scope": 964,
                  "src": "314:21:10",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 955,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "314:4:10",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 958,
                  "name": "_interestRate",
                  "nodeType": "VariableDeclaration",
                  "scope": 964,
                  "src": "345:18:10",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 957,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "345:4:10",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 960,
                  "name": "_amortizationUnitType",
                  "nodeType": "VariableDeclaration",
                  "scope": 964,
                  "src": "373:26:10",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 959,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "373:4:10",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 962,
                  "name": "_termLengthInAmortizationUnits",
                  "nodeType": "VariableDeclaration",
                  "scope": 964,
                  "src": "409:35:10",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 961,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "409:4:10",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "269:181:10"
            },
            "scope": 965,
            "src": "180:271:10",
            "stateMutability": "pure",
            "superFunction": null,
            "visibility": "public"
          }
        ],
        "scope": 966,
        "src": "101:353:10"
      }
    ],
    "src": "0:455:10"
  },
  "legacyAST": {
    "absolutePath": "/Users/graemeboy/Dharma/experimental/contracts/src/shared/interfaces/SimpleInterestTermsContractInterface.sol",
    "exportedSymbols": {
      "SimpleInterestTermsContractInterface": [
        965
      ]
    },
    "id": 966,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 945,
        "literals": [
          "solidity",
          "^",
          "0.4",
          ".24"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:24:10"
      },
      {
        "id": 946,
        "literals": [
          "experimental",
          "ABIEncoderV2"
        ],
        "nodeType": "PragmaDirective",
        "src": "25:33:10"
      },
      {
        "absolutePath": "/Users/graemeboy/Dharma/experimental/contracts/src/shared/interfaces/TermsContractInterface.sol",
        "file": "./TermsContractInterface.sol",
        "id": 947,
        "nodeType": "ImportDirective",
        "scope": 966,
        "sourceUnit": 1017,
        "src": "61:38:10",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [
          {
            "arguments": null,
            "baseName": {
              "contractScope": null,
              "id": 948,
              "name": "TermsContractInterface",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 1016,
              "src": "150:22:10",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_TermsContractInterface_$1016",
                "typeString": "contract TermsContractInterface"
              }
            },
            "id": 949,
            "nodeType": "InheritanceSpecifier",
            "src": "150:22:10"
          }
        ],
        "contractDependencies": [
          1016
        ],
        "contractKind": "contract",
        "documentation": null,
        "fullyImplemented": false,
        "id": 965,
        "linearizedBaseContracts": [
          965,
          1016
        ],
        "name": "SimpleInterestTermsContractInterface",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "body": null,
            "documentation": null,
            "id": 964,
            "implemented": false,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "unpackParametersFromBytes",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 952,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 951,
                  "name": "parameters",
                  "nodeType": "VariableDeclaration",
                  "scope": 964,
                  "src": "224:18:10",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 950,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "224:7:10",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "214:34:10"
            },
            "payable": false,
            "returnParameters": {
              "id": 963,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 954,
                  "name": "_principalTokenIndex",
                  "nodeType": "VariableDeclaration",
                  "scope": 964,
                  "src": "279:25:10",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 953,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "279:4:10",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 956,
                  "name": "_principalAmount",
                  "nodeType": "VariableDeclaration",
                  "scope": 964,
                  "src": "314:21:10",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 955,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "314:4:10",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 958,
                  "name": "_interestRate",
                  "nodeType": "VariableDeclaration",
                  "scope": 964,
                  "src": "345:18:10",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 957,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "345:4:10",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 960,
                  "name": "_amortizationUnitType",
                  "nodeType": "VariableDeclaration",
                  "scope": 964,
                  "src": "373:26:10",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 959,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "373:4:10",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 962,
                  "name": "_termLengthInAmortizationUnits",
                  "nodeType": "VariableDeclaration",
                  "scope": 964,
                  "src": "409:35:10",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 961,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "409:4:10",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "269:181:10"
            },
            "scope": 965,
            "src": "180:271:10",
            "stateMutability": "pure",
            "superFunction": null,
            "visibility": "public"
          }
        ],
        "scope": 966,
        "src": "101:353:10"
      }
    ],
    "src": "0:455:10"
  },
  "compiler": {
    "name": "solc",
    "version": "0.4.24+commit.e67f0147.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "2.0.1",
  "updatedAt": "2018-10-16T21:20:58.389Z"
}