"use strict";
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
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;
var ethers_1 = require("ethers");
var _abi = [
    {
        inputs: [
            {
                internalType: "uint256",
                name: "initBorrowRate",
                type: "uint256"
            },
            {
                internalType: "uint256",
                name: "initSupplyRate",
                type: "uint256"
            },
        ],
        stateMutability: "nonpayable",
        type: "constructor"
    },
    {
        inputs: [],
        name: "borrowRate",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "owner_",
                type: "address"
            },
        ],
        name: "changeOwner",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        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"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        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"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "isInterestRateModel",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "owner",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "rate",
                type: "uint256"
            },
        ],
        name: "setBorrowRate",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "rate",
                type: "uint256"
            },
        ],
        name: "setSupplyRate",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [],
        name: "supplyRate",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
];
var _bytecode = "0x608060405234801561001057600080fd5b506040516103eb3803806103eb83398101604081905261002f9161004f565b600191909155600255600080546001600160a01b03191633179055610073565b6000806040838503121561006257600080fd5b505080516020909101519092909150565b610369806100826000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c8063a6f9dae111610066578063a6f9dae11461011b578063ad2961a31461012e578063b816881614610137578063c914b43714610150578063dd3eaf041461015957600080fd5b806315f24053146100985780632191f92a146100c35780633f95e273146100db5780638da5cb5b146100f0575b600080fd5b6100b06100a6366004610268565b6001549392505050565b6040519081526020015b60405180910390f35b6100cb600181565b60405190151581526020016100ba565b6100ee6100e9366004610294565b61016c565b005b600054610103906001600160a01b031681565b6040516001600160a01b0390911681526020016100ba565b6100ee6101293660046102ad565b6101a4565b6100b060025481565b6100b06101453660046102dd565b600254949350505050565b6100b060015481565b6100ee610167366004610294565b610239565b6000546001600160a01b0316331461019f5760405162461bcd60e51b81526004016101969061030f565b60405180910390fd5b600255565b6000546001600160a01b031633146101ce5760405162461bcd60e51b81526004016101969061030f565b6001600160a01b0381166102175760405162461bcd60e51b815260206004820152601060248201526f41646472657373206973205a65726f2160801b6044820152606401610196565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146102635760405162461bcd60e51b81526004016101969061030f565b600155565b60008060006060848603121561027d57600080fd5b505081359360208301359350604090920135919050565b6000602082840312156102a657600080fd5b5035919050565b6000602082840312156102bf57600080fd5b81356001600160a01b03811681146102d657600080fd5b9392505050565b600080600080608085870312156102f357600080fd5b5050823594602084013594506040840135936060013592509050565b6020808252600a908201526927a7262c9027aba722a960b11b60408201526060019056fea26469706673582212200945f50834f19dfa6ad9f7ffca4519714309af08b61796be97ac18628b98402864736f6c634300080b0033";
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 (args.length === 1) {
            _this = _super.call(this, _abi, _bytecode, args[0]) || this;
        }
        else {
            _this = _super.apply(this, args) || 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