/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import {
  Contract,
  ContractFactory,
  ContractTransactionResponse,
  Interface,
} from "ethers";
import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers";
import type { NonPayableOverrides } from "../../../common";
import type {
  LenderGroupMockInteract,
  LenderGroupMockInteractInterface,
} from "../../../contracts/penetrationtesting/LenderGroupMockInteract";

const _abi = [
  {
    inputs: [
      {
        internalType: "address",
        name: "_target",
        type: "address",
      },
      {
        internalType: "address",
        name: "_principalToken",
        type: "address",
      },
      {
        internalType: "address",
        name: "_sharesToken",
        type: "address",
      },
      {
        internalType: "uint256",
        name: "_amount",
        type: "uint256",
      },
      {
        internalType: "address",
        name: "_sharesRecipient",
        type: "address",
      },
      {
        internalType: "uint256",
        name: "_minSharesAmountOut",
        type: "uint256",
      },
    ],
    name: "addPrincipalToCommitmentGroup",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "_target",
        type: "address",
      },
      {
        internalType: "address",
        name: "_principalToken",
        type: "address",
      },
      {
        internalType: "address",
        name: "_poolSharesToken",
        type: "address",
      },
      {
        internalType: "uint256",
        name: "_amountPoolSharesTokens",
        type: "uint256",
      },
      {
        internalType: "address",
        name: "_recipient",
        type: "address",
      },
      {
        internalType: "uint256",
        name: "_minAmountOut",
        type: "uint256",
      },
    ],
    name: "burnSharesToWithdrawEarnings",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "_target",
        type: "address",
      },
      {
        internalType: "address",
        name: "_principalToken",
        type: "address",
      },
      {
        internalType: "uint256",
        name: "_bidId",
        type: "uint256",
      },
      {
        internalType: "int256",
        name: "_tokenAmountDifference",
        type: "int256",
      },
      {
        internalType: "int256",
        name: "loanAmount",
        type: "int256",
      },
    ],
    name: "liquidateDefaultedLoanWithIncentive",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "_target",
        type: "address",
      },
      {
        internalType: "uint256",
        name: "_amountPoolSharesTokens",
        type: "uint256",
      },
    ],
    name: "prepareSharesForBurn",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
] as const;

const _bytecode =
  " ";

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

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

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

  override getDeployTransaction(
    overrides?: NonPayableOverrides & { from?: string }
  ): Promise<ContractDeployTransaction> {
    return super.getDeployTransaction(overrides || {});
  }
  override deploy(overrides?: NonPayableOverrides & { from?: string }) {
    return super.deploy(overrides || {}) as Promise<
      LenderGroupMockInteract & {
        deploymentTransaction(): ContractTransactionResponse;
      }
    >;
  }
  override connect(
    runner: ContractRunner | null
  ): LenderGroupMockInteract__factory {
    return super.connect(runner) as LenderGroupMockInteract__factory;
  }

  static readonly bytecode = _bytecode;
  static readonly abi = _abi;
  static createInterface(): LenderGroupMockInteractInterface {
    return new Interface(_abi) as LenderGroupMockInteractInterface;
  }
  static connect(
    address: string,
    runner?: ContractRunner | null
  ): LenderGroupMockInteract {
    return new Contract(
      address,
      _abi,
      runner
    ) as unknown as LenderGroupMockInteract;
  }
}
