"use strict";
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        if (typeof b !== "function" && b !== null)
            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
exports.__esModule = true;
exports.InterestRateModelHarness__factory = void 0;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
var ethers_1 = require("ethers");
var _abi = [
    {
        inputs: [
            {
                internalType: "uint256",
                name: "borrowRate_",
                type: "uint256"
            },
        ],
        payable: false,
        stateMutability: "nonpayable",
        type: "constructor"
    },
    {
        constant: true,
        inputs: [],
        name: "borrowRate",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: true,
        inputs: [],
        name: "failBorrowRate",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: true,
        inputs: [
            {
                internalType: "uint256",
                name: "_cash",
                type: "uint256"
            },
            {
                internalType: "uint256",
                name: "_borrows",
                type: "uint256"
            },
            {
                internalType: "uint256",
                name: "_reserves",
                type: "uint256"
            },
        ],
        name: "getBorrowRate",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: true,
        inputs: [
            {
                internalType: "uint256",
                name: "_cash",
                type: "uint256"
            },
            {
                internalType: "uint256",
                name: "_borrows",
                type: "uint256"
            },
            {
                internalType: "uint256",
                name: "_reserves",
                type: "uint256"
            },
            {
                internalType: "uint256",
                name: "_reserveFactor",
                type: "uint256"
            },
        ],
        name: "getSupplyRate",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: true,
        inputs: [],
        name: "isInterestRateModel",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: true,
        inputs: [],
        name: "opaqueBorrowFailureCode",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: false,
        inputs: [
            {
                internalType: "uint256",
                name: "borrowRate_",
                type: "uint256"
            },
        ],
        name: "setBorrowRate",
        outputs: [],
        payable: false,
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        constant: false,
        inputs: [
            {
                internalType: "bool",
                name: "failBorrowRate_",
                type: "bool"
            },
        ],
        name: "setFailBorrowRate",
        outputs: [],
        payable: false,
        stateMutability: "nonpayable",
        type: "function"
    },
];
var _bytecode = "0x608060405234801561001057600080fd5b506040516102753803806102758339818101604052602081101561003357600080fd5b505160015561022e806100476000396000f3fe608060405234801561001057600080fd5b50600436106100785760003560e01c806315f240531461007d5780631f64eb4e146100b85780632191f92a146100d95780637ddeded1146100f5578063b8168816146100fd578063c4fd6b2d1461012c578063c914b43714610134578063dd3eaf041461013c575b600080fd5b6100a66004803603606081101561009357600080fd5b5080359060208101359060400135610159565b60408051918252519081900360200190f35b6100d7600480360360208110156100ce57600080fd5b503515156101b9565b005b6100e16101cc565b604080519115158252519081900360200190f35b6100a66101d1565b6100a66004803603608081101561011357600080fd5b50803590602081013590604081013590606001356101d6565b6100e16101e5565b6100a66101ee565b6100d76004803603602081101561015257600080fd5b50356101f4565b6000805460ff16156101ae576040805162461bcd60e51b815260206004820152601960248201527824a72a22a922a9aa2fa920aa22afa6a7a222a62fa2a92927a960391b604482015290519081900360640190fd5b506001549392505050565b6000805460ff1916911515919091179055565b600181565b601481565b60018054919003029392505050565b60005460ff1681565b60015481565b60015556fea265627a7a723158204fba117ecc9406087ac7dcb6cbcec3028042efa139f21ebe29c11e4de96d3c1064736f6c63430005100032";
var isSuperArgs = function (xs) { return xs.length > 1; };
var InterestRateModelHarness__factory = /** @class */ (function (_super) {
    __extends(InterestRateModelHarness__factory, _super);
    function InterestRateModelHarness__factory() {
        var args = [];
        for (var _i = 0; _i < arguments.length; _i++) {
            args[_i] = arguments[_i];
        }
        var _this = this;
        if (isSuperArgs(args)) {
            _this = _super.apply(this, args) || this;
        }
        else {
            _this = _super.call(this, _abi, _bytecode, args[0]) || this;
        }
        return _this;
    }
    InterestRateModelHarness__factory.prototype.deploy = function (borrowRate_, overrides) {
        return _super.prototype.deploy.call(this, borrowRate_, overrides || {});
    };
    InterestRateModelHarness__factory.prototype.getDeployTransaction = function (borrowRate_, overrides) {
        return _super.prototype.getDeployTransaction.call(this, borrowRate_, overrides || {});
    };
    InterestRateModelHarness__factory.prototype.attach = function (address) {
        return _super.prototype.attach.call(this, address);
    };
    InterestRateModelHarness__factory.prototype.connect = function (signer) {
        return _super.prototype.connect.call(this, signer);
    };
    InterestRateModelHarness__factory.createInterface = function () {
        return new ethers_1.utils.Interface(_abi);
    };
    InterestRateModelHarness__factory.connect = function (address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    };
    InterestRateModelHarness__factory.bytecode = _bytecode;
    InterestRateModelHarness__factory.abi = _abi;
    return InterestRateModelHarness__factory;
}(ethers_1.ContractFactory));
exports.InterestRateModelHarness__factory = InterestRateModelHarness__factory;
//# sourceMappingURL=InterestRateModelHarness__factory.js.map