"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.Maximillion__factory = void 0;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
var ethers_1 = require("ethers");
var _abi = [
    {
        inputs: [
            {
                internalType: "contract CEther",
                name: "cEther_",
                type: "address"
            },
        ],
        payable: false,
        stateMutability: "nonpayable",
        type: "constructor"
    },
    {
        constant: true,
        inputs: [],
        name: "cEther",
        outputs: [
            {
                internalType: "contract CEther",
                name: "",
                type: "address"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: false,
        inputs: [
            {
                internalType: "address",
                name: "borrower",
                type: "address"
            },
        ],
        name: "repayBehalf",
        outputs: [],
        payable: true,
        stateMutability: "payable",
        type: "function"
    },
    {
        constant: false,
        inputs: [
            {
                internalType: "address",
                name: "borrower",
                type: "address"
            },
            {
                internalType: "contract CEther",
                name: "cEther_",
                type: "address"
            },
        ],
        name: "repayBehalfExplicit",
        outputs: [],
        payable: true,
        stateMutability: "payable",
        type: "function"
    },
];
var _bytecode = "0x608060405234801561001057600080fd5b506040516103363803806103368339818101604052602081101561003357600080fd5b5051600080546001600160a01b039092166001600160a01b03199092169190911790556102d1806100656000396000f3fe6080604052600436106100345760003560e01c806319b68c0014610039578063367b7f051461006a5780639f35c3d51461009a575b600080fd5b34801561004557600080fd5b5061004e6100c0565b604080516001600160a01b039092168252519081900360200190f35b6100986004803603604081101561008057600080fd5b506001600160a01b03813581169160200135166100cf565b005b610098600480360360208110156100b057600080fd5b50356001600160a01b0316610282565b6000546001600160a01b031681565b60003490506000826001600160a01b03166317bfdfbc856040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b03168152602001915050602060405180830381600087803b15801561012e57600080fd5b505af1158015610142573d6000803e3d6000fd5b505050506040513d602081101561015857600080fd5b505190508082111561020a57826001600160a01b031663e597461982866040518363ffffffff1660e01b815260040180826001600160a01b03166001600160a01b031681526020019150506000604051808303818588803b1580156101bc57600080fd5b505af11580156101d0573d6000803e3d6000fd5b505060405133935084860380156108fc02935091506000818181858888f19350505050158015610204573d6000803e3d6000fd5b5061027c565b826001600160a01b031663e597461983866040518363ffffffff1660e01b815260040180826001600160a01b03166001600160a01b031681526020019150506000604051808303818588803b15801561026257600080fd5b505af1158015610276573d6000803e3d6000fd5b50505050505b50505050565b6000546102999082906001600160a01b03166100cf565b5056fea265627a7a72315820ba475a5ff27e51e3edb27df29f074db379e17f270ee2fc97646bbf28bbb1c21f64736f6c63430005100032";
var isSuperArgs = function (xs) { return xs.length > 1; };
var Maximillion__factory = /** @class */ (function (_super) {
    __extends(Maximillion__factory, _super);
    function Maximillion__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;
    }
    Maximillion__factory.prototype.deploy = function (cEther_, overrides) {
        return _super.prototype.deploy.call(this, cEther_, overrides || {});
    };
    Maximillion__factory.prototype.getDeployTransaction = function (cEther_, overrides) {
        return _super.prototype.getDeployTransaction.call(this, cEther_, overrides || {});
    };
    Maximillion__factory.prototype.attach = function (address) {
        return _super.prototype.attach.call(this, address);
    };
    Maximillion__factory.prototype.connect = function (signer) {
        return _super.prototype.connect.call(this, signer);
    };
    Maximillion__factory.createInterface = function () {
        return new ethers_1.utils.Interface(_abi);
    };
    Maximillion__factory.connect = function (address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    };
    Maximillion__factory.bytecode = _bytecode;
    Maximillion__factory.abi = _abi;
    return Maximillion__factory;
}(ethers_1.ContractFactory));
exports.Maximillion__factory = Maximillion__factory;
//# sourceMappingURL=Maximillion__factory.js.map