"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.ComptrollerStorage__factory = void 0;
var ethers_1 = require("ethers");
var _abi = [
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "cToken",
                type: "address"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "newSpeed",
                type: "uint256"
            },
        ],
        name: "CompBorrowSpeedUpdated",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "address",
                name: "recipient",
                type: "address"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "amount",
                type: "uint256"
            },
        ],
        name: "CompGranted",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "cToken",
                type: "address"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "newSpeed",
                type: "uint256"
            },
        ],
        name: "CompSupplySpeedUpdated",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "contributor",
                type: "address"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "newSpeed",
                type: "uint256"
            },
        ],
        name: "ContributorCompSpeedUpdated",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "cToken",
                type: "address"
            },
            {
                indexed: true,
                internalType: "address",
                name: "borrower",
                type: "address"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "compDelta",
                type: "uint256"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "compBorrowIndex",
                type: "uint256"
            },
        ],
        name: "DistributedBorrowerComp",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "cToken",
                type: "address"
            },
            {
                indexed: true,
                internalType: "address",
                name: "supplier",
                type: "address"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "compDelta",
                type: "uint256"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "compSupplyIndex",
                type: "uint256"
            },
        ],
        name: "DistributedSupplierComp",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "address",
                name: "cToken",
                type: "address"
            },
            {
                indexed: false,
                internalType: "address",
                name: "account",
                type: "address"
            },
        ],
        name: "MarketEntered",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "address",
                name: "cToken",
                type: "address"
            },
            {
                indexed: false,
                internalType: "address",
                name: "account",
                type: "address"
            },
        ],
        name: "MarketExited",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "address",
                name: "cToken",
                type: "address"
            },
        ],
        name: "MarketListed",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "uint256",
                name: "oldCloseFactorMantissa",
                type: "uint256"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "newCloseFactorMantissa",
                type: "uint256"
            },
        ],
        name: "NewCloseFactor",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "uint256",
                name: "oldLiquidationIncentiveMantissa",
                type: "uint256"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "newLiquidationIncentiveMantissa",
                type: "uint256"
            },
        ],
        name: "NewLiquidationIncentive",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "address",
                name: "oldPriceOracle",
                type: "address"
            },
            {
                indexed: false,
                internalType: "address",
                name: "newPriceOracle",
                type: "address"
            },
        ],
        name: "NewPriceOracle",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "cToken",
                type: "address"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "amount",
                type: "uint256"
            },
        ],
        name: "SetMaxSupply",
        type: "event"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        name: "accountAssets",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "admin",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        name: "allMarkets",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "closeFactorMantissa",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        name: "compAccrued",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        name: "compBorrowSpeeds",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        name: "compBorrowState",
        outputs: [
            {
                internalType: "uint224",
                name: "index",
                type: "uint224"
            },
            {
                internalType: "uint32",
                name: "block",
                type: "uint32"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        name: "compBorrowerIndex",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        name: "compContributorSpeeds",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "compInitialIndex",
        outputs: [
            {
                internalType: "uint224",
                name: "",
                type: "uint224"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        name: "compSupplierIndex",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        name: "compSupplySpeeds",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        name: "compSupplyState",
        outputs: [
            {
                internalType: "uint224",
                name: "index",
                type: "uint224"
            },
            {
                internalType: "uint32",
                name: "block",
                type: "uint32"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "isComptroller",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        name: "lastContributorBlock",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "liquidationIncentiveMantissa",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        name: "markets",
        outputs: [
            {
                internalType: "bool",
                name: "isListed",
                type: "bool"
            },
            {
                internalType: "uint8",
                name: "assetGroupId",
                type: "uint8"
            },
            {
                internalType: "bool",
                name: "isComped",
                type: "bool"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        name: "maxSupply",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "oracle",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "underWriterAdmin",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
];
var _bytecode = "0x608060405234801561001057600080fd5b5061055f806100206000396000f3fe608060405234801561001057600080fd5b506004361061012b5760003560e01c80639cc7becf116100ad578063cc7ebdc411610071578063cc7ebdc4146103a4578063dce15449146103c4578063e8755446146103d7578063f4a433c0146103e0578063f851a4401461040057600080fd5b80639cc7becf146102e0578063a7f0e23114610300578063b21be7fd1461032e578063bea6b8b814610359578063ca0af0431461037957600080fd5b80636b79c38d116100f45780636b79c38d146101c25780637dc0d1d01461021e5780638c57804e146102315780638e8f294b14610269578063986ab838146102c057600080fd5b80627e3dd2146101305780632408d5f01461014d5780634ada90af1461017857806352d84d1e1461018f5780636aa875b5146101a2575b600080fd5b610138600181565b60405190151581526020015b60405180910390f35b600154610160906001600160a01b031681565b6040516001600160a01b039091168152602001610144565b61018160045481565b604051908152602001610144565b61016061019d366004610475565b610413565b6101816101b03660046104aa565b60106020526000908152604090205481565b6101fa6101d03660046104aa565b6008602052600090815260409020546001600160e01b03811690600160e01b900463ffffffff1682565b604080516001600160e01b03909316835263ffffffff909116602083015201610144565b600254610160906001600160a01b031681565b6101fa61023f3660046104aa565b6009602052600090815260409020546001600160e01b03811690600160e01b900463ffffffff1682565b61029f6102773660046104aa565b6006602052600090815260409020805460029091015460ff8083169261010090048116911683565b60408051931515845260ff9092166020840152151590820152606001610144565b6101816102ce3660046104aa565b600d6020526000908152604090205481565b6101816102ee3660046104aa565b60116020526000908152604090205481565b6103166ec097ce7bc90715b34b9f100000000081565b6040516001600160e01b039091168152602001610144565b61018161033c3660046104cc565b600a60209081526000928352604080842090915290825290205481565b6101816103673660046104aa565b600e6020526000908152604090205481565b6101816103873660046104cc565b600b60209081526000928352604080842090915290825290205481565b6101816103b23660046104aa565b600c6020526000908152604090205481565b6101606103d23660046104ff565b61043d565b61018160035481565b6101816103ee3660046104aa565b600f6020526000908152604090205481565b600054610160906001600160a01b031681565b6007818154811061042357600080fd5b6000918252602090912001546001600160a01b0316905081565b6005602052816000526040600020818154811061045957600080fd5b6000918252602090912001546001600160a01b03169150829050565b60006020828403121561048757600080fd5b5035919050565b80356001600160a01b03811681146104a557600080fd5b919050565b6000602082840312156104bc57600080fd5b6104c58261048e565b9392505050565b600080604083850312156104df57600080fd5b6104e88361048e565b91506104f66020840161048e565b90509250929050565b6000806040838503121561051257600080fd5b61051b8361048e565b94602093909301359350505056fea26469706673582212205e9700b5a4a10f049ba9c88507a9d23fdaa2f65ef0993516ab0ab2e2fec16ed764736f6c634300080b0033";
var ComptrollerStorage__factory = /** @class */ (function (_super) {
    __extends(ComptrollerStorage__factory, _super);
    function ComptrollerStorage__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;
    }
    ComptrollerStorage__factory.prototype.deploy = function (overrides) {
        return _super.prototype.deploy.call(this, overrides || {});
    };
    ComptrollerStorage__factory.prototype.getDeployTransaction = function (overrides) {
        return _super.prototype.getDeployTransaction.call(this, overrides || {});
    };
    ComptrollerStorage__factory.prototype.attach = function (address) {
        return _super.prototype.attach.call(this, address);
    };
    ComptrollerStorage__factory.prototype.connect = function (signer) {
        return _super.prototype.connect.call(this, signer);
    };
    ComptrollerStorage__factory.createInterface = function () {
        return new ethers_1.utils.Interface(_abi);
    };
    ComptrollerStorage__factory.connect = function (address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    };
    ComptrollerStorage__factory.bytecode = _bytecode;
    ComptrollerStorage__factory.abi = _abi;
    return ComptrollerStorage__factory;
}(ethers_1.ContractFactory));
exports.ComptrollerStorage__factory = ComptrollerStorage__factory;
//# sourceMappingURL=ComptrollerStorage__factory.js.map