/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */

import { Contract, Interface, type ContractRunner } from "ethers";
import type {
  ILenderCommitmentGroup_V2,
  ILenderCommitmentGroup_V2Interface,
} from "../../../contracts/interfaces/ILenderCommitmentGroup_V2";

const _abi = [
  {
    inputs: [],
    name: "getTokenDifferenceFromLiquidations",
    outputs: [
      {
        internalType: "int256",
        name: "",
        type: "int256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        components: [
          {
            internalType: "address",
            name: "principalTokenAddress",
            type: "address",
          },
          {
            internalType: "address",
            name: "collateralTokenAddress",
            type: "address",
          },
          {
            internalType: "uint256",
            name: "marketId",
            type: "uint256",
          },
          {
            internalType: "uint32",
            name: "maxLoanDuration",
            type: "uint32",
          },
          {
            internalType: "uint16",
            name: "interestRateLowerBound",
            type: "uint16",
          },
          {
            internalType: "uint16",
            name: "interestRateUpperBound",
            type: "uint16",
          },
          {
            internalType: "uint16",
            name: "liquidityThresholdPercent",
            type: "uint16",
          },
          {
            internalType: "uint16",
            name: "collateralRatio",
            type: "uint16",
          },
        ],
        internalType: "struct ILenderCommitmentGroup_V2.CommitmentGroupConfig",
        name: "_commitmentGroupConfig",
        type: "tuple",
      },
      {
        components: [
          {
            internalType: "address",
            name: "pool",
            type: "address",
          },
          {
            internalType: "bool",
            name: "zeroForOne",
            type: "bool",
          },
          {
            internalType: "uint32",
            name: "twapInterval",
            type: "uint32",
          },
          {
            internalType: "uint256",
            name: "token0Decimals",
            type: "uint256",
          },
          {
            internalType: "uint256",
            name: "token1Decimals",
            type: "uint256",
          },
        ],
        internalType: "struct IUniswapPricingLibrary.PoolRouteConfig[]",
        name: "_poolOracleRoutes",
        type: "tuple[]",
      },
    ],
    name: "initialize",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "_bidId",
        type: "uint256",
      },
      {
        internalType: "int256",
        name: "_tokenAmountDifference",
        type: "int256",
      },
    ],
    name: "liquidateDefaultedLoanWithIncentive",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
] as const;

export class ILenderCommitmentGroup_V2__factory {
  static readonly abi = _abi;
  static createInterface(): ILenderCommitmentGroup_V2Interface {
    return new Interface(_abi) as ILenderCommitmentGroup_V2Interface;
  }
  static connect(
    address: string,
    runner?: ContractRunner | null
  ): ILenderCommitmentGroup_V2 {
    return new Contract(
      address,
      _abi,
      runner
    ) as unknown as ILenderCommitmentGroup_V2;
  }
}
