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

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

const _abi = [
  {
    inputs: [
      {
        internalType: "address",
        name: "_smartCommitmentAddress",
        type: "address",
      },
      {
        internalType: "uint256",
        name: "_principalAmount",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "_collateralAmount",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "_collateralTokenId",
        type: "uint256",
      },
      {
        internalType: "address",
        name: "_collateralTokenAddress",
        type: "address",
      },
      {
        internalType: "address",
        name: "_recipient",
        type: "address",
      },
      {
        internalType: "uint16",
        name: "_interestRate",
        type: "uint16",
      },
      {
        internalType: "uint32",
        name: "_loanDuration",
        type: "uint32",
      },
    ],
    name: "acceptSmartCommitmentWithRecipient",
    outputs: [
      {
        internalType: "uint256",
        name: "bidId",
        type: "uint256",
      },
    ],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [],
    name: "getLiquidationProtocolFeePercent",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "_percent",
        type: "uint256",
      },
    ],
    name: "setLiquidationProtocolFeePercent",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
] as const;

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