"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.GSRManager__factory = void 0;
var ethers_1 = require("ethers");
var _abi = [
    {
        inputs: [
            {
                internalType: "uint256",
                name: "_savingsRate",
                type: "uint256"
            },
            {
                internalType: "address",
                name: "_gdai",
                type: "address"
            },
        ],
        stateMutability: "nonpayable",
        type: "constructor"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "uint256",
                name: "cumulativeInterestRate",
                type: "uint256"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "lastDripTime",
                type: "uint256"
            },
        ],
        name: "Drip",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "account",
                type: "address"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "gsrBalance",
                type: "uint256"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "gdai",
                type: "uint256"
            },
        ],
        name: "Exit",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "account",
                type: "address"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "gdai",
                type: "uint256"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "gsrBalance",
                type: "uint256"
            },
        ],
        name: "Join",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "from",
                type: "address"
            },
            {
                indexed: true,
                internalType: "address",
                name: "to",
                type: "address"
            },
        ],
        name: "NewOwnership",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "from",
                type: "address"
            },
            {
                indexed: true,
                internalType: "address",
                name: "to",
                type: "address"
            },
        ],
        name: "NewPendingOwnership",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "uint256",
                name: "newRate",
                type: "uint256"
            },
        ],
        name: "SetRate",
        type: "event"
    },
    {
        inputs: [],
        name: "acceptOwnership",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        name: "balances",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_account",
                type: "address"
            },
        ],
        name: "calcReturn",
        outputs: [
            {
                internalType: "uint256",
                name: "totalBalance",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "calcUpdatedRate",
        outputs: [
            {
                internalType: "uint256",
                name: "updatedRate",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "cumulativeInterestRate",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "drip",
        outputs: [
            {
                internalType: "uint256",
                name: "updatedRate",
                type: "uint256"
            },
        ],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "_amount",
                type: "uint256"
            },
        ],
        name: "exit",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [],
        name: "governor",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "_amount",
                type: "uint256"
            },
        ],
        name: "join",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [],
        name: "lastDripTime",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "pendingGovernor",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "reserves",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "savingsRate",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "_newRate",
                type: "uint256"
            },
        ],
        name: "setRate",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [],
        name: "token",
        outputs: [
            {
                internalType: "contract GDAI",
                name: "",
                type: "address"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_newGovernor",
                type: "address"
            },
        ],
        name: "transferOwnership",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
];
var _bytecode = " ";
var GSRManager__factory = /** @class */ (function (_super) {
    __extends(GSRManager__factory, _super);
    function GSRManager__factory(signer) {
        return _super.call(this, _abi, _bytecode, signer) || this;
    }
    GSRManager__factory.prototype.deploy = function (_savingsRate, _gdai, overrides) {
        return _super.prototype.deploy.call(this, _savingsRate, _gdai, overrides || {});
    };
    GSRManager__factory.prototype.getDeployTransaction = function (_savingsRate, _gdai, overrides) {
        return _super.prototype.getDeployTransaction.call(this, _savingsRate, _gdai, overrides || {});
    };
    GSRManager__factory.prototype.attach = function (address) {
        return _super.prototype.attach.call(this, address);
    };
    GSRManager__factory.prototype.connect = function (signer) {
        return _super.prototype.connect.call(this, signer);
    };
    GSRManager__factory.createInterface = function () {
        return new ethers_1.utils.Interface(_abi);
    };
    GSRManager__factory.connect = function (address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    };
    GSRManager__factory.bytecode = _bytecode;
    GSRManager__factory.abi = _abi;
    return GSRManager__factory;
}(ethers_1.ContractFactory));
exports.GSRManager__factory = GSRManager__factory;
