"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MockCoreComptroller__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
    {
        inputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        name: "allVTokens",
        outputs: [
            {
                internalType: "contract ICorePoolVToken",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        name: "borrowCaps",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "getAllMarkets",
        outputs: [
            {
                internalType: "contract ICorePoolVToken[]",
                name: "",
                type: "address[]",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "vToken",
                type: "address",
            },
        ],
        name: "markets",
        outputs: [
            {
                internalType: "bool",
                name: "isListed",
                type: "bool",
            },
            {
                internalType: "uint256",
                name: "collateralFactorMantissa",
                type: "uint256",
            },
            {
                internalType: "bool",
                name: "isVenus",
                type: "bool",
            },
            {
                internalType: "uint256",
                name: "liquidationThresholdMantissa",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "liquidationIncentiveMantissa",
                type: "uint256",
            },
            {
                internalType: "uint96",
                name: "marketPoolId",
                type: "uint96",
            },
            {
                internalType: "bool",
                name: "isBorrowAllowed",
                type: "bool",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint96",
                name: "poolId",
                type: "uint96",
            },
            {
                internalType: "address",
                name: "vToken",
                type: "address",
            },
        ],
        name: "poolMarkets",
        outputs: [
            {
                internalType: "bool",
                name: "isListed",
                type: "bool",
            },
            {
                internalType: "uint256",
                name: "collateralFactorMantissa",
                type: "uint256",
            },
            {
                internalType: "bool",
                name: "isVenus",
                type: "bool",
            },
            {
                internalType: "uint256",
                name: "liquidationThresholdMantissa",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "liquidationIncentiveMantissa",
                type: "uint256",
            },
            {
                internalType: "uint96",
                name: "marketPoolId",
                type: "uint96",
            },
            {
                internalType: "bool",
                name: "isBorrowAllowed",
                type: "bool",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint96",
                name: "poolId",
                type: "uint96",
            },
            {
                internalType: "address",
                name: "vToken",
                type: "address",
            },
            {
                internalType: "uint256",
                name: "newCollateralFactorMantissa",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "newLiquidationThresholdMantissa",
                type: "uint256",
            },
        ],
        name: "setCollateralFactor",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address[]",
                name: "vTokens",
                type: "address[]",
            },
            {
                internalType: "uint256[]",
                name: "newCaps",
                type: "uint256[]",
            },
        ],
        name: "setMarketBorrowCaps",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address[]",
                name: "vTokens",
                type: "address[]",
            },
            {
                internalType: "uint256[]",
                name: "newCaps",
                type: "uint256[]",
            },
        ],
        name: "setMarketSupplyCaps",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        name: "supplyCaps",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "vToken",
                type: "address",
            },
        ],
        name: "supportMarket",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        name: "vTokenListed",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
];
const _bytecode = " ";
const isSuperArgs = (xs) => xs.length > 1;
class MockCoreComptroller__factory extends ethers_1.ContractFactory {
    constructor(...args) {
        if (isSuperArgs(args)) {
            super(...args);
        }
        else {
            super(_abi, _bytecode, args[0]);
        }
    }
    deploy(overrides) {
        return super.deploy(overrides || {});
    }
    getDeployTransaction(overrides) {
        return super.getDeployTransaction(overrides || {});
    }
    attach(address) {
        return super.attach(address);
    }
    connect(signer) {
        return super.connect(signer);
    }
    static createInterface() {
        return new ethers_1.utils.Interface(_abi);
    }
    static connect(address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    }
}
exports.MockCoreComptroller__factory = MockCoreComptroller__factory;
MockCoreComptroller__factory.bytecode = _bytecode;
MockCoreComptroller__factory.abi = _abi;
//# sourceMappingURL=MockCoreComptroller__factory.js.map