/* 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 type PaymentStruct = { principal: BigNumberish; interest: BigNumberish };

export type PaymentStructOutput = [principal: bigint, interest: bigint] & {
  principal: bigint;
  interest: bigint;
};

export type LoanDetailsStruct = {
  lendingToken: AddressLike;
  principal: BigNumberish;
  totalRepaid: PaymentStruct;
  timestamp: BigNumberish;
  acceptedTimestamp: BigNumberish;
  lastRepaidTimestamp: BigNumberish;
  loanDuration: BigNumberish;
};

export type LoanDetailsStructOutput = [
  lendingToken: string,
  principal: bigint,
  totalRepaid: PaymentStructOutput,
  timestamp: bigint,
  acceptedTimestamp: bigint,
  lastRepaidTimestamp: bigint,
  loanDuration: bigint
] & {
  lendingToken: string;
  principal: bigint;
  totalRepaid: PaymentStructOutput;
  timestamp: bigint;
  acceptedTimestamp: bigint;
  lastRepaidTimestamp: bigint;
  loanDuration: bigint;
};

export type TermsStruct = {
  paymentCycleAmount: BigNumberish;
  paymentCycle: BigNumberish;
  APR: BigNumberish;
};

export type TermsStructOutput = [
  paymentCycleAmount: bigint,
  paymentCycle: bigint,
  APR: bigint
] & { paymentCycleAmount: bigint; paymentCycle: bigint; APR: bigint };

export type CollateralStruct = {
  _collateralType: BigNumberish;
  _amount: BigNumberish;
  _tokenId: BigNumberish;
  _collateralAddress: AddressLike;
};

export type CollateralStructOutput = [
  _collateralType: bigint,
  _amount: bigint,
  _tokenId: bigint,
  _collateralAddress: string
] & {
  _collateralType: bigint;
  _amount: bigint;
  _tokenId: bigint;
  _collateralAddress: string;
};

export interface TellerV2SolMockInterface extends Interface {
  getFunction(
    nameOrSignature:
      | "__lenderVolumeFilled"
      | "__totalVolumeFilled"
      | "amountOwedMockInterest"
      | "amountOwedMockPrincipal"
      | "approveMarketForwarder"
      | "approvedForwarder"
      | "bidDefaultDuration"
      | "bidExpirationTime"
      | "bidId"
      | "bidPaymentCycleType"
      | "bids"
      | "borrowerBids"
      | "calculateAmountDue"
      | "calculateAmountOwed"
      | "collateralManager"
      | "escrowVault"
      | "getBidState"
      | "getBorrowerActiveLoanIds"
      | "getEscrowVault"
      | "getLoanBorrower"
      | "getLoanDefaultTimestamp"
      | "getLoanDetails"
      | "getLoanLender"
      | "getLoanLendingToken"
      | "getLoanMarketId"
      | "getLoanSummary"
      | "getMarketRegistry"
      | "getProtocolFeeRecipient"
      | "getProtocolPausingManager"
      | "getRepaymentListenerForBid"
      | "isLoanDefaulted"
      | "isLoanLiquidateable"
      | "isPausedMock"
      | "isPaymentLate"
      | "lenderAcceptBid"
      | "lenderCloseLoan"
      | "lenderCloseLoanWasCalled"
      | "lenderCloseLoanWithRecipient"
      | "lenderCommitmentForwarder"
      | "lenderManager"
      | "lenderVolumeFilled"
      | "liquidateLoanFull"
      | "liquidateLoanFullWithRecipient"
      | "marketRegistry"
      | "mockOwner"
      | "mockPausers"
      | "mockProtocolFeeRecipient"
      | "mock_setLoanDefaultTimestamp"
      | "owner"
      | "paused"
      | "protocolFee"
      | "repayLoan"
      | "repayLoanFull"
      | "repayLoanMinimum"
      | "repaymentListenerForBid"
      | "reputationManager"
      | "setLastRepaidTimestamp"
      | "setMarketRegistry"
      | "setMockOwner"
      | "setMockProtocolFeeRecipient"
      | "setProtocolPausingManager"
      | "setRepaymentListenerForBid"
      | "submitBid(address,uint256,uint256,uint32,uint16,string,address)"
      | "submitBid(address,uint256,uint256,uint32,uint16,string,address,(uint8,uint256,uint256,address)[])"
      | "totalVolumeFilled"
      | "uris"
      | "version"
  ): FunctionFragment;

  encodeFunctionData(
    functionFragment: "__lenderVolumeFilled",
    values: [AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "__totalVolumeFilled",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "amountOwedMockInterest",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "amountOwedMockPrincipal",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "approveMarketForwarder",
    values: [BigNumberish, AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "approvedForwarder",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "bidDefaultDuration",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "bidExpirationTime",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(functionFragment: "bidId", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "bidPaymentCycleType",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(functionFragment: "bids", values: [BigNumberish]): string;
  encodeFunctionData(
    functionFragment: "borrowerBids",
    values: [AddressLike, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "calculateAmountDue",
    values: [BigNumberish, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "calculateAmountOwed",
    values: [BigNumberish, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "collateralManager",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "escrowVault",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "getBidState",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "getBorrowerActiveLoanIds",
    values: [AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "getEscrowVault",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "getLoanBorrower",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "getLoanDefaultTimestamp",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "getLoanDetails",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "getLoanLender",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "getLoanLendingToken",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "getLoanMarketId",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "getLoanSummary",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "getMarketRegistry",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "getProtocolFeeRecipient",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "getProtocolPausingManager",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "getRepaymentListenerForBid",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "isLoanDefaulted",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "isLoanLiquidateable",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "isPausedMock",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "isPaymentLate",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "lenderAcceptBid",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "lenderCloseLoan",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "lenderCloseLoanWasCalled",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "lenderCloseLoanWithRecipient",
    values: [BigNumberish, AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "lenderCommitmentForwarder",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "lenderManager",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "lenderVolumeFilled",
    values: [AddressLike, AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "liquidateLoanFull",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "liquidateLoanFullWithRecipient",
    values: [BigNumberish, AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "marketRegistry",
    values?: undefined
  ): string;
  encodeFunctionData(functionFragment: "mockOwner", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "mockPausers",
    values: [AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "mockProtocolFeeRecipient",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "mock_setLoanDefaultTimestamp",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(functionFragment: "owner", values?: undefined): string;
  encodeFunctionData(functionFragment: "paused", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "protocolFee",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "repayLoan",
    values: [BigNumberish, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "repayLoanFull",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "repayLoanMinimum",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "repaymentListenerForBid",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "reputationManager",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "setLastRepaidTimestamp",
    values: [BigNumberish, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "setMarketRegistry",
    values: [AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "setMockOwner",
    values: [AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "setMockProtocolFeeRecipient",
    values: [AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "setProtocolPausingManager",
    values: [AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "setRepaymentListenerForBid",
    values: [BigNumberish, AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "submitBid(address,uint256,uint256,uint32,uint16,string,address)",
    values: [
      AddressLike,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      string,
      AddressLike
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "submitBid(address,uint256,uint256,uint32,uint16,string,address,(uint8,uint256,uint256,address)[])",
    values: [
      AddressLike,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      string,
      AddressLike,
      CollateralStruct[]
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "totalVolumeFilled",
    values: [AddressLike]
  ): string;
  encodeFunctionData(functionFragment: "uris", values: [BigNumberish]): string;
  encodeFunctionData(functionFragment: "version", values?: undefined): string;

  decodeFunctionResult(
    functionFragment: "__lenderVolumeFilled",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "__totalVolumeFilled",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "amountOwedMockInterest",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "amountOwedMockPrincipal",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "approveMarketForwarder",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "approvedForwarder",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "bidDefaultDuration",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "bidExpirationTime",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "bidId", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "bidPaymentCycleType",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "bids", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "borrowerBids",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "calculateAmountDue",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "calculateAmountOwed",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "collateralManager",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "escrowVault",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getBidState",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getBorrowerActiveLoanIds",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getEscrowVault",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getLoanBorrower",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getLoanDefaultTimestamp",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getLoanDetails",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getLoanLender",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getLoanLendingToken",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getLoanMarketId",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getLoanSummary",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getMarketRegistry",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getProtocolFeeRecipient",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getProtocolPausingManager",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getRepaymentListenerForBid",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "isLoanDefaulted",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "isLoanLiquidateable",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "isPausedMock",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "isPaymentLate",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "lenderAcceptBid",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "lenderCloseLoan",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "lenderCloseLoanWasCalled",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "lenderCloseLoanWithRecipient",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "lenderCommitmentForwarder",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "lenderManager",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "lenderVolumeFilled",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "liquidateLoanFull",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "liquidateLoanFullWithRecipient",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "marketRegistry",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "mockOwner", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "mockPausers",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "mockProtocolFeeRecipient",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "mock_setLoanDefaultTimestamp",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "paused", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "protocolFee",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "repayLoan", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "repayLoanFull",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "repayLoanMinimum",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "repaymentListenerForBid",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "reputationManager",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setLastRepaidTimestamp",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setMarketRegistry",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setMockOwner",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setMockProtocolFeeRecipient",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setProtocolPausingManager",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setRepaymentListenerForBid",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "submitBid(address,uint256,uint256,uint32,uint16,string,address)",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "submitBid(address,uint256,uint256,uint32,uint16,string,address,(uint8,uint256,uint256,address)[])",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "totalVolumeFilled",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "uris", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "version", data: BytesLike): Result;
}

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

  interface: TellerV2SolMockInterface;

  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>;

  __lenderVolumeFilled: TypedContractMethod<
    [arg0: AddressLike],
    [bigint],
    "view"
  >;

  __totalVolumeFilled: TypedContractMethod<[], [bigint], "view">;

  amountOwedMockInterest: TypedContractMethod<[], [bigint], "view">;

  amountOwedMockPrincipal: TypedContractMethod<[], [bigint], "view">;

  approveMarketForwarder: TypedContractMethod<
    [_marketId: BigNumberish, _forwarder: AddressLike],
    [void],
    "nonpayable"
  >;

  approvedForwarder: TypedContractMethod<[], [string], "view">;

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

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

  bidId: TypedContractMethod<[], [bigint], "view">;

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

  bids: TypedContractMethod<
    [arg0: BigNumberish],
    [
      [
        string,
        string,
        string,
        bigint,
        string,
        LoanDetailsStructOutput,
        TermsStructOutput,
        bigint,
        bigint
      ] & {
        borrower: string;
        receiver: string;
        lender: string;
        marketplaceId: bigint;
        _metadataURI: string;
        loanDetails: LoanDetailsStructOutput;
        terms: TermsStructOutput;
        state: bigint;
        paymentType: bigint;
      }
    ],
    "view"
  >;

  borrowerBids: TypedContractMethod<
    [arg0: AddressLike, arg1: BigNumberish],
    [bigint],
    "view"
  >;

  calculateAmountDue: TypedContractMethod<
    [_bidId: BigNumberish, _timestamp: BigNumberish],
    [PaymentStructOutput],
    "view"
  >;

  calculateAmountOwed: TypedContractMethod<
    [_bidId: BigNumberish, _timestamp: BigNumberish],
    [PaymentStructOutput],
    "view"
  >;

  collateralManager: TypedContractMethod<[], [string], "view">;

  escrowVault: TypedContractMethod<[], [string], "view">;

  getBidState: TypedContractMethod<[_bidId: BigNumberish], [bigint], "view">;

  getBorrowerActiveLoanIds: TypedContractMethod<
    [_borrower: AddressLike],
    [bigint[]],
    "view"
  >;

  getEscrowVault: TypedContractMethod<[], [string], "view">;

  getLoanBorrower: TypedContractMethod<
    [_bidId: BigNumberish],
    [string],
    "view"
  >;

  getLoanDefaultTimestamp: TypedContractMethod<
    [_bidId: BigNumberish],
    [bigint],
    "view"
  >;

  getLoanDetails: TypedContractMethod<
    [_bidId: BigNumberish],
    [LoanDetailsStructOutput],
    "view"
  >;

  getLoanLender: TypedContractMethod<[_bidId: BigNumberish], [string], "view">;

  getLoanLendingToken: TypedContractMethod<
    [_bidId: BigNumberish],
    [string],
    "view"
  >;

  getLoanMarketId: TypedContractMethod<
    [_bidId: BigNumberish],
    [bigint],
    "view"
  >;

  getLoanSummary: TypedContractMethod<
    [_bidId: BigNumberish],
    [
      [string, string, bigint, string, bigint, bigint, bigint, bigint] & {
        borrower: string;
        lender: string;
        marketId: bigint;
        principalTokenAddress: string;
        principalAmount: bigint;
        acceptedTimestamp: bigint;
        lastRepaidTimestamp: bigint;
        bidState: bigint;
      }
    ],
    "view"
  >;

  getMarketRegistry: TypedContractMethod<[], [string], "view">;

  getProtocolFeeRecipient: TypedContractMethod<[], [string], "view">;

  getProtocolPausingManager: TypedContractMethod<[], [string], "view">;

  getRepaymentListenerForBid: TypedContractMethod<
    [_bidId: BigNumberish],
    [string],
    "view"
  >;

  isLoanDefaulted: TypedContractMethod<
    [_bidId: BigNumberish],
    [boolean],
    "view"
  >;

  isLoanLiquidateable: TypedContractMethod<
    [_bidId: BigNumberish],
    [boolean],
    "view"
  >;

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

  isPaymentLate: TypedContractMethod<[_bidId: BigNumberish], [boolean], "view">;

  lenderAcceptBid: TypedContractMethod<
    [_bidId: BigNumberish],
    [
      [bigint, bigint, bigint] & {
        amountToProtocol: bigint;
        amountToMarketplace: bigint;
        amountToBorrower: bigint;
      }
    ],
    "nonpayable"
  >;

  lenderCloseLoan: TypedContractMethod<
    [_bidId: BigNumberish],
    [void],
    "nonpayable"
  >;

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

  lenderCloseLoanWithRecipient: TypedContractMethod<
    [_bidId: BigNumberish, _recipient: AddressLike],
    [void],
    "nonpayable"
  >;

  lenderCommitmentForwarder: TypedContractMethod<[], [string], "view">;

  lenderManager: TypedContractMethod<[], [string], "view">;

  lenderVolumeFilled: TypedContractMethod<
    [arg0: AddressLike, arg1: AddressLike],
    [bigint],
    "view"
  >;

  liquidateLoanFull: TypedContractMethod<
    [_bidId: BigNumberish],
    [void],
    "nonpayable"
  >;

  liquidateLoanFullWithRecipient: TypedContractMethod<
    [_bidId: BigNumberish, _recipient: AddressLike],
    [void],
    "nonpayable"
  >;

  marketRegistry: TypedContractMethod<[], [string], "view">;

  mockOwner: TypedContractMethod<[], [string], "view">;

  mockPausers: TypedContractMethod<[arg0: AddressLike], [boolean], "view">;

  mockProtocolFeeRecipient: TypedContractMethod<[], [string], "view">;

  mock_setLoanDefaultTimestamp: TypedContractMethod<
    [_defaultedAt: BigNumberish],
    [bigint],
    "nonpayable"
  >;

  owner: TypedContractMethod<[], [string], "view">;

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

  protocolFee: TypedContractMethod<[], [bigint], "view">;

  repayLoan: TypedContractMethod<
    [_bidId: BigNumberish, _amount: BigNumberish],
    [void],
    "nonpayable"
  >;

  repayLoanFull: TypedContractMethod<
    [_bidId: BigNumberish],
    [void],
    "nonpayable"
  >;

  repayLoanMinimum: TypedContractMethod<
    [_bidId: BigNumberish],
    [void],
    "nonpayable"
  >;

  repaymentListenerForBid: TypedContractMethod<
    [arg0: BigNumberish],
    [string],
    "view"
  >;

  reputationManager: TypedContractMethod<[], [string], "view">;

  setLastRepaidTimestamp: TypedContractMethod<
    [_bidId: BigNumberish, _timestamp: BigNumberish],
    [void],
    "nonpayable"
  >;

  setMarketRegistry: TypedContractMethod<
    [_marketRegistry: AddressLike],
    [void],
    "nonpayable"
  >;

  setMockOwner: TypedContractMethod<
    [_newOwner: AddressLike],
    [void],
    "nonpayable"
  >;

  setMockProtocolFeeRecipient: TypedContractMethod<
    [_address: AddressLike],
    [void],
    "nonpayable"
  >;

  setProtocolPausingManager: TypedContractMethod<
    [_protocolPausingManager: AddressLike],
    [void],
    "nonpayable"
  >;

  setRepaymentListenerForBid: TypedContractMethod<
    [_bidId: BigNumberish, _listener: AddressLike],
    [void],
    "nonpayable"
  >;

  "submitBid(address,uint256,uint256,uint32,uint16,string,address)": TypedContractMethod<
    [
      _lendingToken: AddressLike,
      _marketId: BigNumberish,
      _principal: BigNumberish,
      _duration: BigNumberish,
      _APR: BigNumberish,
      arg5: string,
      _receiver: AddressLike
    ],
    [bigint],
    "nonpayable"
  >;

  "submitBid(address,uint256,uint256,uint32,uint16,string,address,(uint8,uint256,uint256,address)[])": TypedContractMethod<
    [
      _lendingToken: AddressLike,
      _marketplaceId: BigNumberish,
      _principal: BigNumberish,
      _duration: BigNumberish,
      _APR: BigNumberish,
      _metadataURI: string,
      _receiver: AddressLike,
      _collateralInfo: CollateralStruct[]
    ],
    [bigint],
    "nonpayable"
  >;

  totalVolumeFilled: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;

  uris: TypedContractMethod<[arg0: BigNumberish], [string], "view">;

  version: TypedContractMethod<[], [bigint], "view">;

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

  getFunction(
    nameOrSignature: "__lenderVolumeFilled"
  ): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
  getFunction(
    nameOrSignature: "__totalVolumeFilled"
  ): TypedContractMethod<[], [bigint], "view">;
  getFunction(
    nameOrSignature: "amountOwedMockInterest"
  ): TypedContractMethod<[], [bigint], "view">;
  getFunction(
    nameOrSignature: "amountOwedMockPrincipal"
  ): TypedContractMethod<[], [bigint], "view">;
  getFunction(
    nameOrSignature: "approveMarketForwarder"
  ): TypedContractMethod<
    [_marketId: BigNumberish, _forwarder: AddressLike],
    [void],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "approvedForwarder"
  ): TypedContractMethod<[], [string], "view">;
  getFunction(
    nameOrSignature: "bidDefaultDuration"
  ): TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
  getFunction(
    nameOrSignature: "bidExpirationTime"
  ): TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
  getFunction(
    nameOrSignature: "bidId"
  ): TypedContractMethod<[], [bigint], "view">;
  getFunction(
    nameOrSignature: "bidPaymentCycleType"
  ): TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
  getFunction(
    nameOrSignature: "bids"
  ): TypedContractMethod<
    [arg0: BigNumberish],
    [
      [
        string,
        string,
        string,
        bigint,
        string,
        LoanDetailsStructOutput,
        TermsStructOutput,
        bigint,
        bigint
      ] & {
        borrower: string;
        receiver: string;
        lender: string;
        marketplaceId: bigint;
        _metadataURI: string;
        loanDetails: LoanDetailsStructOutput;
        terms: TermsStructOutput;
        state: bigint;
        paymentType: bigint;
      }
    ],
    "view"
  >;
  getFunction(
    nameOrSignature: "borrowerBids"
  ): TypedContractMethod<
    [arg0: AddressLike, arg1: BigNumberish],
    [bigint],
    "view"
  >;
  getFunction(
    nameOrSignature: "calculateAmountDue"
  ): TypedContractMethod<
    [_bidId: BigNumberish, _timestamp: BigNumberish],
    [PaymentStructOutput],
    "view"
  >;
  getFunction(
    nameOrSignature: "calculateAmountOwed"
  ): TypedContractMethod<
    [_bidId: BigNumberish, _timestamp: BigNumberish],
    [PaymentStructOutput],
    "view"
  >;
  getFunction(
    nameOrSignature: "collateralManager"
  ): TypedContractMethod<[], [string], "view">;
  getFunction(
    nameOrSignature: "escrowVault"
  ): TypedContractMethod<[], [string], "view">;
  getFunction(
    nameOrSignature: "getBidState"
  ): TypedContractMethod<[_bidId: BigNumberish], [bigint], "view">;
  getFunction(
    nameOrSignature: "getBorrowerActiveLoanIds"
  ): TypedContractMethod<[_borrower: AddressLike], [bigint[]], "view">;
  getFunction(
    nameOrSignature: "getEscrowVault"
  ): TypedContractMethod<[], [string], "view">;
  getFunction(
    nameOrSignature: "getLoanBorrower"
  ): TypedContractMethod<[_bidId: BigNumberish], [string], "view">;
  getFunction(
    nameOrSignature: "getLoanDefaultTimestamp"
  ): TypedContractMethod<[_bidId: BigNumberish], [bigint], "view">;
  getFunction(
    nameOrSignature: "getLoanDetails"
  ): TypedContractMethod<
    [_bidId: BigNumberish],
    [LoanDetailsStructOutput],
    "view"
  >;
  getFunction(
    nameOrSignature: "getLoanLender"
  ): TypedContractMethod<[_bidId: BigNumberish], [string], "view">;
  getFunction(
    nameOrSignature: "getLoanLendingToken"
  ): TypedContractMethod<[_bidId: BigNumberish], [string], "view">;
  getFunction(
    nameOrSignature: "getLoanMarketId"
  ): TypedContractMethod<[_bidId: BigNumberish], [bigint], "view">;
  getFunction(
    nameOrSignature: "getLoanSummary"
  ): TypedContractMethod<
    [_bidId: BigNumberish],
    [
      [string, string, bigint, string, bigint, bigint, bigint, bigint] & {
        borrower: string;
        lender: string;
        marketId: bigint;
        principalTokenAddress: string;
        principalAmount: bigint;
        acceptedTimestamp: bigint;
        lastRepaidTimestamp: bigint;
        bidState: bigint;
      }
    ],
    "view"
  >;
  getFunction(
    nameOrSignature: "getMarketRegistry"
  ): TypedContractMethod<[], [string], "view">;
  getFunction(
    nameOrSignature: "getProtocolFeeRecipient"
  ): TypedContractMethod<[], [string], "view">;
  getFunction(
    nameOrSignature: "getProtocolPausingManager"
  ): TypedContractMethod<[], [string], "view">;
  getFunction(
    nameOrSignature: "getRepaymentListenerForBid"
  ): TypedContractMethod<[_bidId: BigNumberish], [string], "view">;
  getFunction(
    nameOrSignature: "isLoanDefaulted"
  ): TypedContractMethod<[_bidId: BigNumberish], [boolean], "view">;
  getFunction(
    nameOrSignature: "isLoanLiquidateable"
  ): TypedContractMethod<[_bidId: BigNumberish], [boolean], "view">;
  getFunction(
    nameOrSignature: "isPausedMock"
  ): TypedContractMethod<[], [boolean], "view">;
  getFunction(
    nameOrSignature: "isPaymentLate"
  ): TypedContractMethod<[_bidId: BigNumberish], [boolean], "view">;
  getFunction(
    nameOrSignature: "lenderAcceptBid"
  ): TypedContractMethod<
    [_bidId: BigNumberish],
    [
      [bigint, bigint, bigint] & {
        amountToProtocol: bigint;
        amountToMarketplace: bigint;
        amountToBorrower: bigint;
      }
    ],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "lenderCloseLoan"
  ): TypedContractMethod<[_bidId: BigNumberish], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "lenderCloseLoanWasCalled"
  ): TypedContractMethod<[], [boolean], "view">;
  getFunction(
    nameOrSignature: "lenderCloseLoanWithRecipient"
  ): TypedContractMethod<
    [_bidId: BigNumberish, _recipient: AddressLike],
    [void],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "lenderCommitmentForwarder"
  ): TypedContractMethod<[], [string], "view">;
  getFunction(
    nameOrSignature: "lenderManager"
  ): TypedContractMethod<[], [string], "view">;
  getFunction(
    nameOrSignature: "lenderVolumeFilled"
  ): TypedContractMethod<
    [arg0: AddressLike, arg1: AddressLike],
    [bigint],
    "view"
  >;
  getFunction(
    nameOrSignature: "liquidateLoanFull"
  ): TypedContractMethod<[_bidId: BigNumberish], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "liquidateLoanFullWithRecipient"
  ): TypedContractMethod<
    [_bidId: BigNumberish, _recipient: AddressLike],
    [void],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "marketRegistry"
  ): TypedContractMethod<[], [string], "view">;
  getFunction(
    nameOrSignature: "mockOwner"
  ): TypedContractMethod<[], [string], "view">;
  getFunction(
    nameOrSignature: "mockPausers"
  ): TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
  getFunction(
    nameOrSignature: "mockProtocolFeeRecipient"
  ): TypedContractMethod<[], [string], "view">;
  getFunction(
    nameOrSignature: "mock_setLoanDefaultTimestamp"
  ): TypedContractMethod<[_defaultedAt: BigNumberish], [bigint], "nonpayable">;
  getFunction(
    nameOrSignature: "owner"
  ): TypedContractMethod<[], [string], "view">;
  getFunction(
    nameOrSignature: "paused"
  ): TypedContractMethod<[], [boolean], "view">;
  getFunction(
    nameOrSignature: "protocolFee"
  ): TypedContractMethod<[], [bigint], "view">;
  getFunction(
    nameOrSignature: "repayLoan"
  ): TypedContractMethod<
    [_bidId: BigNumberish, _amount: BigNumberish],
    [void],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "repayLoanFull"
  ): TypedContractMethod<[_bidId: BigNumberish], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "repayLoanMinimum"
  ): TypedContractMethod<[_bidId: BigNumberish], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "repaymentListenerForBid"
  ): TypedContractMethod<[arg0: BigNumberish], [string], "view">;
  getFunction(
    nameOrSignature: "reputationManager"
  ): TypedContractMethod<[], [string], "view">;
  getFunction(
    nameOrSignature: "setLastRepaidTimestamp"
  ): TypedContractMethod<
    [_bidId: BigNumberish, _timestamp: BigNumberish],
    [void],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "setMarketRegistry"
  ): TypedContractMethod<[_marketRegistry: AddressLike], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "setMockOwner"
  ): TypedContractMethod<[_newOwner: AddressLike], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "setMockProtocolFeeRecipient"
  ): TypedContractMethod<[_address: AddressLike], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "setProtocolPausingManager"
  ): TypedContractMethod<
    [_protocolPausingManager: AddressLike],
    [void],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "setRepaymentListenerForBid"
  ): TypedContractMethod<
    [_bidId: BigNumberish, _listener: AddressLike],
    [void],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "submitBid(address,uint256,uint256,uint32,uint16,string,address)"
  ): TypedContractMethod<
    [
      _lendingToken: AddressLike,
      _marketId: BigNumberish,
      _principal: BigNumberish,
      _duration: BigNumberish,
      _APR: BigNumberish,
      arg5: string,
      _receiver: AddressLike
    ],
    [bigint],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "submitBid(address,uint256,uint256,uint32,uint16,string,address,(uint8,uint256,uint256,address)[])"
  ): TypedContractMethod<
    [
      _lendingToken: AddressLike,
      _marketplaceId: BigNumberish,
      _principal: BigNumberish,
      _duration: BigNumberish,
      _APR: BigNumberish,
      _metadataURI: string,
      _receiver: AddressLike,
      _collateralInfo: CollateralStruct[]
    ],
    [bigint],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "totalVolumeFilled"
  ): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
  getFunction(
    nameOrSignature: "uris"
  ): TypedContractMethod<[arg0: BigNumberish], [string], "view">;
  getFunction(
    nameOrSignature: "version"
  ): TypedContractMethod<[], [bigint], "view">;

  filters: {};
}
