"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.SuTokenRateModel__factory = void 0;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
var ethers_1 = require("ethers");
var _abi = [
    {
        inputs: [
            {
                internalType: "uint256",
                name: "initBorrowRate",
                type: "uint256"
            },
            {
                internalType: "uint256",
                name: "initSupplyRate",
                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: false,
        inputs: [
            {
                internalType: "address",
                name: "owner_",
                type: "address"
            },
        ],
        name: "changeOwner",
        outputs: [],
        payable: false,
        stateMutability: "nonpayable",
        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: "reserveFactorMantissa",
                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: "owner",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: false,
        inputs: [
            {
                internalType: "uint256",
                name: "rate",
                type: "uint256"
            },
        ],
        name: "setBorrowRate",
        outputs: [],
        payable: false,
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        constant: false,
        inputs: [
            {
                internalType: "uint256",
                name: "rate",
                type: "uint256"
            },
        ],
        name: "setSupplyRate",
        outputs: [],
        payable: false,
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        constant: true,
        inputs: [],
        name: "supplyRate",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
];
var _bytecode = "0x608060405234801561001057600080fd5b506040516103943803806103948339818101604052604081101561003357600080fd5b508051602090910151600191909155600255600080546001600160a01b0319163317905561032e806100666000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c8063a6f9dae111610066578063a6f9dae114610132578063ad2961a314610158578063b816881614610160578063c914b4371461018f578063dd3eaf041461019757610093565b806315f24053146100985780632191f92a146100d35780633f95e273146100ef5780638da5cb5b1461010e575b600080fd5b6100c1600480360360608110156100ae57600080fd5b50803590602081013590604001356101b4565b60408051918252519081900360200190f35b6100db6101be565b604080519115158252519081900360200190f35b61010c6004803603602081101561010557600080fd5b50356101c3565b005b610116610214565b604080516001600160a01b039092168252519081900360200190f35b61010c6004803603602081101561014857600080fd5b50356001600160a01b0316610223565b6100c1610291565b6100c16004803603608081101561017657600080fd5b5080359060208101359060408101359060600135610297565b6100c16102a2565b61010c600480360360208110156101ad57600080fd5b50356102a8565b6001549392505050565b600181565b6000546001600160a01b0316331461020f576040805162461bcd60e51b815260206004820152600a60248201526927a7262c9027aba722a960b11b604482015290519081900360640190fd5b600255565b6000546001600160a01b031681565b6000546001600160a01b0316331461026f576040805162461bcd60e51b815260206004820152600a60248201526927a7262c9027aba722a960b11b604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b60025481565b600254949350505050565b60015481565b6000546001600160a01b031633146102f4576040805162461bcd60e51b815260206004820152600a60248201526927a7262c9027aba722a960b11b604482015290519081900360640190fd5b60015556fea265627a7a723158202c0429ea2ecbcb8bfd154d587769f80e52c27cfa7f70c1656b96c2581cb36e2564736f6c63430005100032";
var isSuperArgs = function (xs) { return xs.length > 1; };
var SuTokenRateModel__factory = /** @class */ (function (_super) {
    __extends(SuTokenRateModel__factory, _super);
    function SuTokenRateModel__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;
    }
    SuTokenRateModel__factory.prototype.deploy = function (initBorrowRate, initSupplyRate, overrides) {
        return _super.prototype.deploy.call(this, initBorrowRate, initSupplyRate, overrides || {});
    };
    SuTokenRateModel__factory.prototype.getDeployTransaction = function (initBorrowRate, initSupplyRate, overrides) {
        return _super.prototype.getDeployTransaction.call(this, initBorrowRate, initSupplyRate, overrides || {});
    };
    SuTokenRateModel__factory.prototype.attach = function (address) {
        return _super.prototype.attach.call(this, address);
    };
    SuTokenRateModel__factory.prototype.connect = function (signer) {
        return _super.prototype.connect.call(this, signer);
    };
    SuTokenRateModel__factory.createInterface = function () {
        return new ethers_1.utils.Interface(_abi);
    };
    SuTokenRateModel__factory.connect = function (address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    };
    SuTokenRateModel__factory.bytecode = _bytecode;
    SuTokenRateModel__factory.abi = _abi;
    return SuTokenRateModel__factory;
}(ethers_1.ContractFactory));
exports.SuTokenRateModel__factory = SuTokenRateModel__factory;
//# sourceMappingURL=SuTokenRateModel__factory.js.map