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

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

const _abi = [
  {
    inputs: [
      {
        internalType: "uint256",
        name: "_amount",
        type: "uint256",
      },
      {
        internalType: "address",
        name: "_sharesRecipient",
        type: "address",
      },
      {
        internalType: "uint256",
        name: "_minAmountOut",
        type: "uint256",
      },
    ],
    name: "addPrincipalToCommitmentGroup",
    outputs: [
      {
        internalType: "uint256",
        name: "sharesAmount_",
        type: "uint256",
      },
    ],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "_amountPoolSharesTokens",
        type: "uint256",
      },
      {
        internalType: "address",
        name: "_recipient",
        type: "address",
      },
      {
        internalType: "uint256",
        name: "_minAmountOut",
        type: "uint256",
      },
    ],
    name: "burnSharesToWithdrawEarnings",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    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.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: [
      {
        internalType: "address",
        name: "poolSharesToken",
        type: "address",
      },
    ],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "_bidId",
        type: "uint256",
      },
      {
        internalType: "int256",
        name: "_tokenAmountDifference",
        type: "int256",
      },
    ],
    name: "liquidateDefaultedLoanWithIncentive",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "_amountPoolSharesTokens",
        type: "uint256",
      },
    ],
    name: "prepareSharesForBurn",
    outputs: [
      {
        internalType: "bool",
        name: "",
        type: "bool",
      },
    ],
    stateMutability: "nonpayable",
    type: "function",
  },
] as const;

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