/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
  BaseContract,
  BigNumberish,
  BytesLike,
  FunctionFragment,
  Result,
  Interface,
  AddressLike,
  ContractRunner,
  ContractMethod,
  Listener,
} from "ethers";
import type {
  TypedContractEvent,
  TypedDeferredTopicFilter,
  TypedEventLog,
  TypedListener,
  TypedContractMethod,
} from "../../common";

export declare namespace ILenderCommitmentForwarder {
  export type CommitmentStruct = {
    maxPrincipal: BigNumberish;
    expiration: BigNumberish;
    maxDuration: BigNumberish;
    minInterestRate: BigNumberish;
    collateralTokenAddress: AddressLike;
    collateralTokenId: BigNumberish;
    maxPrincipalPerCollateralAmount: BigNumberish;
    collateralTokenType: BigNumberish;
    lender: AddressLike;
    marketId: BigNumberish;
    principalTokenAddress: AddressLike;
  };

  export type CommitmentStructOutput = [
    maxPrincipal: bigint,
    expiration: bigint,
    maxDuration: bigint,
    minInterestRate: bigint,
    collateralTokenAddress: string,
    collateralTokenId: bigint,
    maxPrincipalPerCollateralAmount: bigint,
    collateralTokenType: bigint,
    lender: string,
    marketId: bigint,
    principalTokenAddress: string
  ] & {
    maxPrincipal: bigint;
    expiration: bigint;
    maxDuration: bigint;
    minInterestRate: bigint;
    collateralTokenAddress: string;
    collateralTokenId: bigint;
    maxPrincipalPerCollateralAmount: bigint;
    collateralTokenType: bigint;
    lender: string;
    marketId: bigint;
    principalTokenAddress: string;
  };
}

export interface LenderCommitmentForwarderMockInterface extends Interface {
  getFunction(
    nameOrSignature:
      | "acceptBidWasCalled"
      | "acceptCommitmentWithRecipient"
      | "acceptCommitmentWithRecipientAndProof"
      | "acceptCommitmentWithRecipientAndProofWasCalled"
      | "acceptCommitmentWithRecipientWasCalled"
      | "commitmentPrincipalAccepted"
      | "commitments"
      | "createCommitment"
      | "getCommitmentAcceptedPrincipal"
      | "getCommitmentLender"
      | "getCommitmentMarketId"
      | "getCommitmentMaxPrincipal"
      | "setCommitment"
      | "submitBidWasCalled"
      | "submitBidWithCollateralWasCalled"
  ): FunctionFragment;

  encodeFunctionData(
    functionFragment: "acceptBidWasCalled",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "acceptCommitmentWithRecipient",
    values: [
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      AddressLike,
      AddressLike,
      BigNumberish,
      BigNumberish
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "acceptCommitmentWithRecipientAndProof",
    values: [
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      AddressLike,
      AddressLike,
      BigNumberish,
      BigNumberish,
      BytesLike[]
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "acceptCommitmentWithRecipientAndProofWasCalled",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "acceptCommitmentWithRecipientWasCalled",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "commitmentPrincipalAccepted",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "commitments",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "createCommitment",
    values: [ILenderCommitmentForwarder.CommitmentStruct, AddressLike[]]
  ): string;
  encodeFunctionData(
    functionFragment: "getCommitmentAcceptedPrincipal",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "getCommitmentLender",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "getCommitmentMarketId",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "getCommitmentMaxPrincipal",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "setCommitment",
    values: [BigNumberish, ILenderCommitmentForwarder.CommitmentStruct]
  ): string;
  encodeFunctionData(
    functionFragment: "submitBidWasCalled",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "submitBidWithCollateralWasCalled",
    values?: undefined
  ): string;

  decodeFunctionResult(
    functionFragment: "acceptBidWasCalled",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "acceptCommitmentWithRecipient",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "acceptCommitmentWithRecipientAndProof",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "acceptCommitmentWithRecipientAndProofWasCalled",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "acceptCommitmentWithRecipientWasCalled",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "commitmentPrincipalAccepted",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "commitments",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "createCommitment",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getCommitmentAcceptedPrincipal",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getCommitmentLender",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getCommitmentMarketId",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getCommitmentMaxPrincipal",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setCommitment",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "submitBidWasCalled",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "submitBidWithCollateralWasCalled",
    data: BytesLike
  ): Result;
}

export interface LenderCommitmentForwarderMock extends BaseContract {
  connect(runner?: ContractRunner | null): LenderCommitmentForwarderMock;
  waitForDeployment(): Promise<this>;

  interface: LenderCommitmentForwarderMockInterface;

  queryFilter<TCEvent extends TypedContractEvent>(
    event: TCEvent,
    fromBlockOrBlockhash?: string | number | undefined,
    toBlock?: string | number | undefined
  ): Promise<Array<TypedEventLog<TCEvent>>>;
  queryFilter<TCEvent extends TypedContractEvent>(
    filter: TypedDeferredTopicFilter<TCEvent>,
    fromBlockOrBlockhash?: string | number | undefined,
    toBlock?: string | number | undefined
  ): Promise<Array<TypedEventLog<TCEvent>>>;

  on<TCEvent extends TypedContractEvent>(
    event: TCEvent,
    listener: TypedListener<TCEvent>
  ): Promise<this>;
  on<TCEvent extends TypedContractEvent>(
    filter: TypedDeferredTopicFilter<TCEvent>,
    listener: TypedListener<TCEvent>
  ): Promise<this>;

  once<TCEvent extends TypedContractEvent>(
    event: TCEvent,
    listener: TypedListener<TCEvent>
  ): Promise<this>;
  once<TCEvent extends TypedContractEvent>(
    filter: TypedDeferredTopicFilter<TCEvent>,
    listener: TypedListener<TCEvent>
  ): Promise<this>;

  listeners<TCEvent extends TypedContractEvent>(
    event: TCEvent
  ): Promise<Array<TypedListener<TCEvent>>>;
  listeners(eventName?: string): Promise<Array<Listener>>;
  removeAllListeners<TCEvent extends TypedContractEvent>(
    event?: TCEvent
  ): Promise<this>;

  acceptBidWasCalled: TypedContractMethod<[], [boolean], "view">;

  acceptCommitmentWithRecipient: TypedContractMethod<
    [
      _commitmentId: BigNumberish,
      _principalAmount: BigNumberish,
      _collateralAmount: BigNumberish,
      _collateralTokenId: BigNumberish,
      _collateralTokenAddress: AddressLike,
      _recipient: AddressLike,
      _interestRate: BigNumberish,
      _loanDuration: BigNumberish
    ],
    [bigint],
    "nonpayable"
  >;

  acceptCommitmentWithRecipientAndProof: TypedContractMethod<
    [
      _commitmentId: BigNumberish,
      _principalAmount: BigNumberish,
      _collateralAmount: BigNumberish,
      _collateralTokenId: BigNumberish,
      _collateralTokenAddress: AddressLike,
      _recipient: AddressLike,
      _interestRate: BigNumberish,
      _loanDuration: BigNumberish,
      _merkleProof: BytesLike[]
    ],
    [bigint],
    "nonpayable"
  >;

  acceptCommitmentWithRecipientAndProofWasCalled: TypedContractMethod<
    [],
    [boolean],
    "view"
  >;

  acceptCommitmentWithRecipientWasCalled: TypedContractMethod<
    [],
    [boolean],
    "view"
  >;

  commitmentPrincipalAccepted: TypedContractMethod<
    [arg0: BigNumberish],
    [bigint],
    "view"
  >;

  commitments: TypedContractMethod<
    [arg0: BigNumberish],
    [
      [
        bigint,
        bigint,
        bigint,
        bigint,
        string,
        bigint,
        bigint,
        bigint,
        string,
        bigint,
        string
      ] & {
        maxPrincipal: bigint;
        expiration: bigint;
        maxDuration: bigint;
        minInterestRate: bigint;
        collateralTokenAddress: string;
        collateralTokenId: bigint;
        maxPrincipalPerCollateralAmount: bigint;
        collateralTokenType: bigint;
        lender: string;
        marketId: bigint;
        principalTokenAddress: string;
      }
    ],
    "view"
  >;

  createCommitment: TypedContractMethod<
    [
      _commitment: ILenderCommitmentForwarder.CommitmentStruct,
      _borrowerAddressList: AddressLike[]
    ],
    [bigint],
    "nonpayable"
  >;

  getCommitmentAcceptedPrincipal: TypedContractMethod<
    [_commitmentId: BigNumberish],
    [bigint],
    "view"
  >;

  getCommitmentLender: TypedContractMethod<
    [_commitmentId: BigNumberish],
    [string],
    "view"
  >;

  getCommitmentMarketId: TypedContractMethod<
    [_commitmentId: BigNumberish],
    [bigint],
    "view"
  >;

  getCommitmentMaxPrincipal: TypedContractMethod<
    [_commitmentId: BigNumberish],
    [bigint],
    "view"
  >;

  setCommitment: TypedContractMethod<
    [
      _commitmentId: BigNumberish,
      _commitment: ILenderCommitmentForwarder.CommitmentStruct
    ],
    [void],
    "nonpayable"
  >;

  submitBidWasCalled: TypedContractMethod<[], [boolean], "view">;

  submitBidWithCollateralWasCalled: TypedContractMethod<[], [boolean], "view">;

  getFunction<T extends ContractMethod = ContractMethod>(
    key: string | FunctionFragment
  ): T;

  getFunction(
    nameOrSignature: "acceptBidWasCalled"
  ): TypedContractMethod<[], [boolean], "view">;
  getFunction(
    nameOrSignature: "acceptCommitmentWithRecipient"
  ): TypedContractMethod<
    [
      _commitmentId: BigNumberish,
      _principalAmount: BigNumberish,
      _collateralAmount: BigNumberish,
      _collateralTokenId: BigNumberish,
      _collateralTokenAddress: AddressLike,
      _recipient: AddressLike,
      _interestRate: BigNumberish,
      _loanDuration: BigNumberish
    ],
    [bigint],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "acceptCommitmentWithRecipientAndProof"
  ): TypedContractMethod<
    [
      _commitmentId: BigNumberish,
      _principalAmount: BigNumberish,
      _collateralAmount: BigNumberish,
      _collateralTokenId: BigNumberish,
      _collateralTokenAddress: AddressLike,
      _recipient: AddressLike,
      _interestRate: BigNumberish,
      _loanDuration: BigNumberish,
      _merkleProof: BytesLike[]
    ],
    [bigint],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "acceptCommitmentWithRecipientAndProofWasCalled"
  ): TypedContractMethod<[], [boolean], "view">;
  getFunction(
    nameOrSignature: "acceptCommitmentWithRecipientWasCalled"
  ): TypedContractMethod<[], [boolean], "view">;
  getFunction(
    nameOrSignature: "commitmentPrincipalAccepted"
  ): TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
  getFunction(
    nameOrSignature: "commitments"
  ): TypedContractMethod<
    [arg0: BigNumberish],
    [
      [
        bigint,
        bigint,
        bigint,
        bigint,
        string,
        bigint,
        bigint,
        bigint,
        string,
        bigint,
        string
      ] & {
        maxPrincipal: bigint;
        expiration: bigint;
        maxDuration: bigint;
        minInterestRate: bigint;
        collateralTokenAddress: string;
        collateralTokenId: bigint;
        maxPrincipalPerCollateralAmount: bigint;
        collateralTokenType: bigint;
        lender: string;
        marketId: bigint;
        principalTokenAddress: string;
      }
    ],
    "view"
  >;
  getFunction(
    nameOrSignature: "createCommitment"
  ): TypedContractMethod<
    [
      _commitment: ILenderCommitmentForwarder.CommitmentStruct,
      _borrowerAddressList: AddressLike[]
    ],
    [bigint],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "getCommitmentAcceptedPrincipal"
  ): TypedContractMethod<[_commitmentId: BigNumberish], [bigint], "view">;
  getFunction(
    nameOrSignature: "getCommitmentLender"
  ): TypedContractMethod<[_commitmentId: BigNumberish], [string], "view">;
  getFunction(
    nameOrSignature: "getCommitmentMarketId"
  ): TypedContractMethod<[_commitmentId: BigNumberish], [bigint], "view">;
  getFunction(
    nameOrSignature: "getCommitmentMaxPrincipal"
  ): TypedContractMethod<[_commitmentId: BigNumberish], [bigint], "view">;
  getFunction(
    nameOrSignature: "setCommitment"
  ): TypedContractMethod<
    [
      _commitmentId: BigNumberish,
      _commitment: ILenderCommitmentForwarder.CommitmentStruct
    ],
    [void],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "submitBidWasCalled"
  ): TypedContractMethod<[], [boolean], "view">;
  getFunction(
    nameOrSignature: "submitBidWithCollateralWasCalled"
  ): TypedContractMethod<[], [boolean], "view">;

  filters: {};
}
