"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.UnderwriterAdmin__factory = void 0;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
var ethers_1 = require("ethers");
var _abi = [
    {
        inputs: [
            {
                internalType: "address",
                name: "_gov",
                type: "address"
            },
        ],
        payable: false,
        stateMutability: "nonpayable",
        type: "constructor"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "string",
                name: "action",
                type: "string"
            },
            {
                indexed: false,
                internalType: "bool",
                name: "pauseState",
                type: "bool"
            },
        ],
        name: "ActionPaused",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "contract CToken",
                name: "cToken",
                type: "address"
            },
            {
                indexed: false,
                internalType: "string",
                name: "action",
                type: "string"
            },
            {
                indexed: false,
                internalType: "bool",
                name: "pauseState",
                type: "bool"
            },
        ],
        name: "ActionPaused",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "uint256",
                name: "error",
                type: "uint256"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "info",
                type: "uint256"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "detail",
                type: "uint256"
            },
        ],
        name: "Failure",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "contract CToken",
                name: "cToken",
                type: "address"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "newBorrowCap",
                type: "uint256"
            },
        ],
        name: "NewBorrowCap",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "address",
                name: "oldBorrowCapGuardian",
                type: "address"
            },
            {
                indexed: false,
                internalType: "address",
                name: "newBorrowCapGuardian",
                type: "address"
            },
        ],
        name: "NewBorrowCapGuardian",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "address",
                name: "oldPauseGuardian",
                type: "address"
            },
            {
                indexed: false,
                internalType: "address",
                name: "newPauseGuardian",
                type: "address"
            },
        ],
        name: "NewPauseGuardian",
        type: "event"
    },
    {
        constant: true,
        inputs: [],
        name: "_borrowGuardianPaused",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: true,
        inputs: [],
        name: "_getBorrowCapGuardian",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: true,
        inputs: [
            {
                internalType: "contract CToken",
                name: "cToken",
                type: "address"
            },
        ],
        name: "_getBorrowPaused",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: true,
        inputs: [
            {
                internalType: "contract CToken",
                name: "cToken",
                type: "address"
            },
        ],
        name: "_getMarketBorrowCap",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: false,
        inputs: [
            {
                internalType: "contract CToken",
                name: "cToken",
                type: "address"
            },
        ],
        name: "_getMintPaused",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool"
            },
        ],
        payable: false,
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        constant: true,
        inputs: [],
        name: "_getPauseGuardian",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: true,
        inputs: [],
        name: "_getSeizePaused",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: true,
        inputs: [],
        name: "_getSuTokenRateMantissa",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: true,
        inputs: [],
        name: "_getTransferPaused",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: true,
        inputs: [],
        name: "_mintGuardianPaused",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: false,
        inputs: [
            {
                internalType: "address",
                name: "newBorrowCapGuardian",
                type: "address"
            },
        ],
        name: "_setBorrowCapGuardian",
        outputs: [],
        payable: false,
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        constant: false,
        inputs: [
            {
                internalType: "contract CToken",
                name: "cToken",
                type: "address"
            },
            {
                internalType: "bool",
                name: "state",
                type: "bool"
            },
        ],
        name: "_setBorrowPaused",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool"
            },
        ],
        payable: false,
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        constant: false,
        inputs: [
            {
                internalType: "contract CToken[]",
                name: "cTokens",
                type: "address[]"
            },
            {
                internalType: "uint256[]",
                name: "newBorrowCaps",
                type: "uint256[]"
            },
        ],
        name: "_setMarketBorrowCaps",
        outputs: [],
        payable: false,
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        constant: false,
        inputs: [
            {
                internalType: "contract CToken",
                name: "cToken",
                type: "address"
            },
            {
                internalType: "bool",
                name: "state",
                type: "bool"
            },
        ],
        name: "_setMintPaused",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool"
            },
        ],
        payable: false,
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        constant: false,
        inputs: [
            {
                internalType: "address",
                name: "newPauseGuardian",
                type: "address"
            },
        ],
        name: "_setPauseGuardian",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        payable: false,
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        constant: false,
        inputs: [
            {
                internalType: "bool",
                name: "state",
                type: "bool"
            },
        ],
        name: "_setSeizePaused",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool"
            },
        ],
        payable: false,
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        constant: false,
        inputs: [
            {
                internalType: "uint256",
                name: "_suTokenRateMantissa",
                type: "uint256"
            },
        ],
        name: "_setSuTokenRateMantissa",
        outputs: [],
        payable: false,
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        constant: false,
        inputs: [
            {
                internalType: "bool",
                name: "state",
                type: "bool"
            },
        ],
        name: "_setTransferPaused",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool"
            },
        ],
        payable: false,
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        constant: true,
        inputs: [],
        name: "admin",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: true,
        inputs: [],
        name: "borrowCapGuardian",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: true,
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        name: "borrowCaps",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: true,
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        name: "borrowGuardianPaused",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: true,
        inputs: [
            {
                internalType: "uint8",
                name: "",
                type: "uint8"
            },
        ],
        name: "eqAssetGroup",
        outputs: [
            {
                internalType: "uint8",
                name: "groupId",
                type: "uint8"
            },
            {
                internalType: "string",
                name: "groupName",
                type: "string"
            },
            {
                internalType: "uint256",
                name: "inGroupCTokenRateMantissa",
                type: "uint256"
            },
            {
                internalType: "uint256",
                name: "inGroupSuTokenRateMantissa",
                type: "uint256"
            },
            {
                internalType: "uint256",
                name: "interGroupCTokenRateMantissa",
                type: "uint256"
            },
            {
                internalType: "uint256",
                name: "interGroupSuTokenRateMantissa",
                type: "uint256"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: true,
        inputs: [],
        name: "equalAssetsGroupNum",
        outputs: [
            {
                internalType: "uint8",
                name: "",
                type: "uint8"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: true,
        inputs: [],
        name: "getCompAddress",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: true,
        inputs: [
            {
                internalType: "uint8",
                name: "groupId",
                type: "uint8"
            },
        ],
        name: "getEqAssetGroup",
        outputs: [
            {
                components: [
                    {
                        internalType: "uint8",
                        name: "groupId",
                        type: "uint8"
                    },
                    {
                        internalType: "string",
                        name: "groupName",
                        type: "string"
                    },
                    {
                        internalType: "uint256",
                        name: "inGroupCTokenRateMantissa",
                        type: "uint256"
                    },
                    {
                        internalType: "uint256",
                        name: "inGroupSuTokenRateMantissa",
                        type: "uint256"
                    },
                    {
                        internalType: "uint256",
                        name: "interGroupCTokenRateMantissa",
                        type: "uint256"
                    },
                    {
                        internalType: "uint256",
                        name: "interGroupSuTokenRateMantissa",
                        type: "uint256"
                    },
                ],
                internalType: "struct UnderwriterAdminInterface.EqualAssets",
                name: "",
                type: "tuple"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: true,
        inputs: [],
        name: "getEqAssetGroupNum",
        outputs: [
            {
                internalType: "uint8",
                name: "",
                type: "uint8"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: true,
        inputs: [],
        name: "governanceToken",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: true,
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        name: "mintGuardianPaused",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: true,
        inputs: [],
        name: "pauseGuardian",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: false,
        inputs: [
            {
                internalType: "uint8",
                name: "groupId",
                type: "uint8"
            },
        ],
        name: "removeEqAssetGroup",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        payable: false,
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        constant: true,
        inputs: [],
        name: "seizeGuardianPaused",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: false,
        inputs: [
            {
                internalType: "uint8",
                name: "groupId",
                type: "uint8"
            },
            {
                internalType: "string",
                name: "groupName",
                type: "string"
            },
            {
                internalType: "uint256",
                name: "inGroupCTokenRateMantissa",
                type: "uint256"
            },
            {
                internalType: "uint256",
                name: "inGroupSuTokenRateMantissa",
                type: "uint256"
            },
            {
                internalType: "uint256",
                name: "interGroupCTokenRateMantissa",
                type: "uint256"
            },
            {
                internalType: "uint256",
                name: "interGroupSuTokenRateMantissa",
                type: "uint256"
            },
        ],
        name: "setEqAssetGroup",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        payable: false,
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        constant: false,
        inputs: [
            {
                internalType: "address",
                name: "_governanceToken",
                type: "address"
            },
        ],
        name: "setGovTokenAddress",
        outputs: [],
        payable: false,
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        constant: true,
        inputs: [],
        name: "suTokenRateMantissa",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: true,
        inputs: [],
        name: "transferGuardianPaused",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
];
var _bytecode = " ";
var isSuperArgs = function (xs) { return xs.length > 1; };
var UnderwriterAdmin__factory = /** @class */ (function (_super) {
    __extends(UnderwriterAdmin__factory, _super);
    function UnderwriterAdmin__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;
    }
    UnderwriterAdmin__factory.prototype.deploy = function (_gov, overrides) {
        return _super.prototype.deploy.call(this, _gov, overrides || {});
    };
    UnderwriterAdmin__factory.prototype.getDeployTransaction = function (_gov, overrides) {
        return _super.prototype.getDeployTransaction.call(this, _gov, overrides || {});
    };
    UnderwriterAdmin__factory.prototype.attach = function (address) {
        return _super.prototype.attach.call(this, address);
    };
    UnderwriterAdmin__factory.prototype.connect = function (signer) {
        return _super.prototype.connect.call(this, signer);
    };
    UnderwriterAdmin__factory.createInterface = function () {
        return new ethers_1.utils.Interface(_abi);
    };
    UnderwriterAdmin__factory.connect = function (address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    };
    UnderwriterAdmin__factory.bytecode = _bytecode;
    UnderwriterAdmin__factory.abi = _abi;
    return UnderwriterAdmin__factory;
}(ethers_1.ContractFactory));
exports.UnderwriterAdmin__factory = UnderwriterAdmin__factory;
//# sourceMappingURL=UnderwriterAdmin__factory.js.map