/* Autogenerated file. Do not edit manually. */

/* tslint:disable */

/* eslint-disable */
import type { PromiseOrValue } from "../../../common";
import type {
  MockCoreComptroller,
  MockCoreComptrollerInterface,
} from "../../../contracts/test/MockCoreComptroller";
import type { Provider, TransactionRequest } from "@ethersproject/providers";
import { Signer, utils, Contract, ContractFactory, Overrides } from "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",
  },
] as const;

const _bytecode =
  " ";

type MockCoreComptrollerConstructorParams =
  | [signer?: Signer]
  | ConstructorParameters<typeof ContractFactory>;

const isSuperArgs = (
  xs: MockCoreComptrollerConstructorParams
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;

export class MockCoreComptroller__factory extends ContractFactory {
  constructor(...args: MockCoreComptrollerConstructorParams) {
    if (isSuperArgs(args)) {
      super(...args);
    } else {
      super(_abi, _bytecode, args[0]);
    }
  }

  override deploy(
    overrides?: Overrides & { from?: PromiseOrValue<string> }
  ): Promise<MockCoreComptroller> {
    return super.deploy(overrides || {}) as Promise<MockCoreComptroller>;
  }
  override getDeployTransaction(
    overrides?: Overrides & { from?: PromiseOrValue<string> }
  ): TransactionRequest {
    return super.getDeployTransaction(overrides || {});
  }
  override attach(address: string): MockCoreComptroller {
    return super.attach(address) as MockCoreComptroller;
  }
  override connect(signer: Signer): MockCoreComptroller__factory {
    return super.connect(signer) as MockCoreComptroller__factory;
  }

  static readonly bytecode = _bytecode;
  static readonly abi = _abi;
  static createInterface(): MockCoreComptrollerInterface {
    return new utils.Interface(_abi) as MockCoreComptrollerInterface;
  }
  static connect(
    address: string,
    signerOrProvider: Signer | Provider
  ): MockCoreComptroller {
    return new Contract(address, _abi, signerOrProvider) as MockCoreComptroller;
  }
}
