/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
  BaseContract,
  BigNumberish,
  BytesLike,
  FunctionFragment,
  Result,
  Interface,
  EventFragment,
  AddressLike,
  ContractRunner,
  ContractMethod,
  Listener,
} from "ethers";
import type {
  TypedContractEvent,
  TypedDeferredTopicFilter,
  TypedEventLog,
  TypedLogDescription,
  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 TellerV2Interface extends Interface {
  getFunction(
    nameOrSignature:
      | "CURRENT_CODE_VERSION"
      | "LIQUIDATION_DELAY"
      | "__lenderVolumeFilled"
      | "__totalVolumeFilled"
      | "approveMarketForwarder"
      | "bidDefaultDuration"
      | "bidExpirationTime"
      | "bidId"
      | "bidPaymentCycleType"
      | "bids"
      | "borrowerBids"
      | "calculateAmountDue"
      | "calculateAmountOwed"
      | "calculateNextDueDate"
      | "cancelBid"
      | "claimLoanNFT"
      | "collateralManager"
      | "escrowVault"
      | "getBidState"
      | "getBorrowerActiveLoanIds"
      | "getBorrowerLoanIds"
      | "getLoanBorrower"
      | "getLoanLender"
      | "getLoanLendingToken"
      | "getLoanMarketId"
      | "getLoanSummary"
      | "getMetadataURI"
      | "hasApprovedMarketForwarder"
      | "initialize"
      | "isLoanDefaulted"
      | "isLoanExpired"
      | "isLoanLiquidateable"
      | "isPaymentLate"
      | "isTrustedForwarder"
      | "isTrustedMarketForwarder"
      | "lastRepaidTimestamp"
      | "lenderAcceptBid"
      | "lenderCloseLoan"
      | "lenderCommitmentForwarder"
      | "lenderManager"
      | "lenderVolumeFilled"
      | "liquidateLoanFull"
      | "marketOwnerCancelBid"
      | "marketRegistry"
      | "owner"
      | "pauseProtocol"
      | "paused"
      | "protocolFee"
      | "renounceMarketForwarder"
      | "renounceOwnership"
      | "repayLoan"
      | "repayLoanFull"
      | "repayLoanFullWithoutCollateralWithdraw"
      | "repayLoanMinimum"
      | "repayLoanWithoutCollateralWithdraw"
      | "reputationManager"
      | "setEscrowVault"
      | "setProtocolFee"
      | "setTrustedMarketForwarder"
      | "submitBid(address,uint256,uint256,uint32,uint16,string,address)"
      | "submitBid(address,uint256,uint256,uint32,uint16,string,address,(uint8,uint256,uint256,address)[])"
      | "totalVolumeFilled"
      | "transferOwnership"
      | "unpauseProtocol"
      | "uris"
      | "version"
  ): FunctionFragment;

  getEvent(
    nameOrSignatureOrTopic:
      | "AcceptedBid"
      | "CancelledBid"
      | "FeePaid"
      | "Initialized"
      | "LoanLiquidated"
      | "LoanRepaid"
      | "LoanRepayment"
      | "MarketForwarderApproved"
      | "MarketForwarderRenounced"
      | "MarketOwnerCancelledBid"
      | "OwnershipTransferred"
      | "Paused"
      | "ProtocolFeeSet"
      | "SubmittedBid"
      | "TrustedMarketForwarderSet"
      | "Unpaused"
  ): EventFragment;

  encodeFunctionData(
    functionFragment: "CURRENT_CODE_VERSION",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "LIQUIDATION_DELAY",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "__lenderVolumeFilled",
    values: [AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "__totalVolumeFilled",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "approveMarketForwarder",
    values: [BigNumberish, AddressLike]
  ): 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: "calculateNextDueDate",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "cancelBid",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "claimLoanNFT",
    values: [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: "getBorrowerLoanIds",
    values: [AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "getLoanBorrower",
    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: "getMetadataURI",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "hasApprovedMarketForwarder",
    values: [BigNumberish, AddressLike, AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "initialize",
    values: [
      BigNumberish,
      AddressLike,
      AddressLike,
      AddressLike,
      AddressLike,
      AddressLike,
      AddressLike
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "isLoanDefaulted",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "isLoanExpired",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "isLoanLiquidateable",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "isPaymentLate",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "isTrustedForwarder",
    values: [AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "isTrustedMarketForwarder",
    values: [BigNumberish, AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "lastRepaidTimestamp",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "lenderAcceptBid",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "lenderCloseLoan",
    values: [BigNumberish]
  ): 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: "marketOwnerCancelBid",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "marketRegistry",
    values?: undefined
  ): string;
  encodeFunctionData(functionFragment: "owner", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "pauseProtocol",
    values?: undefined
  ): string;
  encodeFunctionData(functionFragment: "paused", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "protocolFee",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "renounceMarketForwarder",
    values: [BigNumberish, AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "renounceOwnership",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "repayLoan",
    values: [BigNumberish, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "repayLoanFull",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "repayLoanFullWithoutCollateralWithdraw",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "repayLoanMinimum",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "repayLoanWithoutCollateralWithdraw",
    values: [BigNumberish, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "reputationManager",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "setEscrowVault",
    values: [AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "setProtocolFee",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "setTrustedMarketForwarder",
    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: "transferOwnership",
    values: [AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "unpauseProtocol",
    values?: undefined
  ): string;
  encodeFunctionData(functionFragment: "uris", values: [BigNumberish]): string;
  encodeFunctionData(functionFragment: "version", values?: undefined): string;

  decodeFunctionResult(
    functionFragment: "CURRENT_CODE_VERSION",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "LIQUIDATION_DELAY",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "__lenderVolumeFilled",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "__totalVolumeFilled",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "approveMarketForwarder",
    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: "calculateNextDueDate",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "cancelBid", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "claimLoanNFT",
    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: "getBorrowerLoanIds",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getLoanBorrower",
    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: "getMetadataURI",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "hasApprovedMarketForwarder",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "isLoanDefaulted",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "isLoanExpired",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "isLoanLiquidateable",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "isPaymentLate",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "isTrustedForwarder",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "isTrustedMarketForwarder",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "lastRepaidTimestamp",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "lenderAcceptBid",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "lenderCloseLoan",
    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: "marketOwnerCancelBid",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "marketRegistry",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "pauseProtocol",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "paused", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "protocolFee",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "renounceMarketForwarder",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "renounceOwnership",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "repayLoan", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "repayLoanFull",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "repayLoanFullWithoutCollateralWithdraw",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "repayLoanMinimum",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "repayLoanWithoutCollateralWithdraw",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "reputationManager",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setEscrowVault",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setProtocolFee",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setTrustedMarketForwarder",
    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: "transferOwnership",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "unpauseProtocol",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "uris", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "version", data: BytesLike): Result;
}

export namespace AcceptedBidEvent {
  export type InputTuple = [bidId: BigNumberish, lender: AddressLike];
  export type OutputTuple = [bidId: bigint, lender: string];
  export interface OutputObject {
    bidId: bigint;
    lender: string;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

export namespace CancelledBidEvent {
  export type InputTuple = [bidId: BigNumberish];
  export type OutputTuple = [bidId: bigint];
  export interface OutputObject {
    bidId: bigint;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

export namespace FeePaidEvent {
  export type InputTuple = [
    bidId: BigNumberish,
    feeType: string,
    amount: BigNumberish
  ];
  export type OutputTuple = [bidId: bigint, feeType: string, amount: bigint];
  export interface OutputObject {
    bidId: bigint;
    feeType: string;
    amount: bigint;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

export namespace InitializedEvent {
  export type InputTuple = [version: BigNumberish];
  export type OutputTuple = [version: bigint];
  export interface OutputObject {
    version: bigint;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

export namespace LoanLiquidatedEvent {
  export type InputTuple = [bidId: BigNumberish, liquidator: AddressLike];
  export type OutputTuple = [bidId: bigint, liquidator: string];
  export interface OutputObject {
    bidId: bigint;
    liquidator: string;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

export namespace LoanRepaidEvent {
  export type InputTuple = [bidId: BigNumberish];
  export type OutputTuple = [bidId: bigint];
  export interface OutputObject {
    bidId: bigint;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

export namespace LoanRepaymentEvent {
  export type InputTuple = [bidId: BigNumberish];
  export type OutputTuple = [bidId: bigint];
  export interface OutputObject {
    bidId: bigint;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

export namespace MarketForwarderApprovedEvent {
  export type InputTuple = [
    marketId: BigNumberish,
    forwarder: AddressLike,
    sender: AddressLike
  ];
  export type OutputTuple = [
    marketId: bigint,
    forwarder: string,
    sender: string
  ];
  export interface OutputObject {
    marketId: bigint;
    forwarder: string;
    sender: string;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

export namespace MarketForwarderRenouncedEvent {
  export type InputTuple = [
    marketId: BigNumberish,
    forwarder: AddressLike,
    sender: AddressLike
  ];
  export type OutputTuple = [
    marketId: bigint,
    forwarder: string,
    sender: string
  ];
  export interface OutputObject {
    marketId: bigint;
    forwarder: string;
    sender: string;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

export namespace MarketOwnerCancelledBidEvent {
  export type InputTuple = [bidId: BigNumberish];
  export type OutputTuple = [bidId: bigint];
  export interface OutputObject {
    bidId: bigint;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

export namespace OwnershipTransferredEvent {
  export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
  export type OutputTuple = [previousOwner: string, newOwner: string];
  export interface OutputObject {
    previousOwner: string;
    newOwner: string;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

export namespace PausedEvent {
  export type InputTuple = [account: AddressLike];
  export type OutputTuple = [account: string];
  export interface OutputObject {
    account: string;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

export namespace ProtocolFeeSetEvent {
  export type InputTuple = [newFee: BigNumberish, oldFee: BigNumberish];
  export type OutputTuple = [newFee: bigint, oldFee: bigint];
  export interface OutputObject {
    newFee: bigint;
    oldFee: bigint;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

export namespace SubmittedBidEvent {
  export type InputTuple = [
    bidId: BigNumberish,
    borrower: AddressLike,
    receiver: AddressLike,
    metadataURI: BytesLike
  ];
  export type OutputTuple = [
    bidId: bigint,
    borrower: string,
    receiver: string,
    metadataURI: string
  ];
  export interface OutputObject {
    bidId: bigint;
    borrower: string;
    receiver: string;
    metadataURI: string;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

export namespace TrustedMarketForwarderSetEvent {
  export type InputTuple = [
    marketId: BigNumberish,
    forwarder: AddressLike,
    sender: AddressLike
  ];
  export type OutputTuple = [
    marketId: bigint,
    forwarder: string,
    sender: string
  ];
  export interface OutputObject {
    marketId: bigint;
    forwarder: string;
    sender: string;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

export namespace UnpausedEvent {
  export type InputTuple = [account: AddressLike];
  export type OutputTuple = [account: string];
  export interface OutputObject {
    account: string;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

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

  interface: TellerV2Interface;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  getLoanBorrower: TypedContractMethod<
    [_bidId: BigNumberish],
    [string],
    "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"
  >;

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

  hasApprovedMarketForwarder: TypedContractMethod<
    [_marketId: BigNumberish, _forwarder: AddressLike, _account: AddressLike],
    [boolean],
    "view"
  >;

  initialize: TypedContractMethod<
    [
      _protocolFee: BigNumberish,
      _marketRegistry: AddressLike,
      _reputationManager: AddressLike,
      _lenderCommitmentForwarder: AddressLike,
      _collateralManager: AddressLike,
      _lenderManager: AddressLike,
      _escrowVault: AddressLike
    ],
    [void],
    "nonpayable"
  >;

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

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

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

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

  isTrustedForwarder: TypedContractMethod<
    [forwarder: AddressLike],
    [boolean],
    "view"
  >;

  isTrustedMarketForwarder: TypedContractMethod<
    [_marketId: BigNumberish, _trustedMarketForwarder: AddressLike],
    [boolean],
    "view"
  >;

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

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

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

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

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

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

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

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

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

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

  pauseProtocol: TypedContractMethod<[], [void], "nonpayable">;

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

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

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

  renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;

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

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

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

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

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

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

  setEscrowVault: TypedContractMethod<
    [_escrowVault: AddressLike],
    [void],
    "nonpayable"
  >;

  setProtocolFee: TypedContractMethod<
    [newFee: BigNumberish],
    [void],
    "nonpayable"
  >;

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

  "submitBid(address,uint256,uint256,uint32,uint16,string,address)": TypedContractMethod<
    [
      _lendingToken: AddressLike,
      _marketplaceId: BigNumberish,
      _principal: BigNumberish,
      _duration: BigNumberish,
      _APR: BigNumberish,
      _metadataURI: 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">;

  transferOwnership: TypedContractMethod<
    [newOwner: AddressLike],
    [void],
    "nonpayable"
  >;

  unpauseProtocol: TypedContractMethod<[], [void], "nonpayable">;

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

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

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

  getFunction(
    nameOrSignature: "CURRENT_CODE_VERSION"
  ): TypedContractMethod<[], [bigint], "view">;
  getFunction(
    nameOrSignature: "LIQUIDATION_DELAY"
  ): TypedContractMethod<[], [bigint], "view">;
  getFunction(
    nameOrSignature: "__lenderVolumeFilled"
  ): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
  getFunction(
    nameOrSignature: "__totalVolumeFilled"
  ): TypedContractMethod<[], [bigint], "view">;
  getFunction(
    nameOrSignature: "approveMarketForwarder"
  ): TypedContractMethod<
    [_marketId: BigNumberish, _forwarder: AddressLike],
    [void],
    "nonpayable"
  >;
  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: "calculateNextDueDate"
  ): TypedContractMethod<[_bidId: BigNumberish], [bigint], "view">;
  getFunction(
    nameOrSignature: "cancelBid"
  ): TypedContractMethod<[_bidId: BigNumberish], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "claimLoanNFT"
  ): TypedContractMethod<[_bidId: BigNumberish], [void], "nonpayable">;
  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: "getBorrowerLoanIds"
  ): TypedContractMethod<[_borrower: AddressLike], [bigint[]], "view">;
  getFunction(
    nameOrSignature: "getLoanBorrower"
  ): TypedContractMethod<[_bidId: BigNumberish], [string], "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: "getMetadataURI"
  ): TypedContractMethod<[_bidId: BigNumberish], [string], "view">;
  getFunction(
    nameOrSignature: "hasApprovedMarketForwarder"
  ): TypedContractMethod<
    [_marketId: BigNumberish, _forwarder: AddressLike, _account: AddressLike],
    [boolean],
    "view"
  >;
  getFunction(
    nameOrSignature: "initialize"
  ): TypedContractMethod<
    [
      _protocolFee: BigNumberish,
      _marketRegistry: AddressLike,
      _reputationManager: AddressLike,
      _lenderCommitmentForwarder: AddressLike,
      _collateralManager: AddressLike,
      _lenderManager: AddressLike,
      _escrowVault: AddressLike
    ],
    [void],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "isLoanDefaulted"
  ): TypedContractMethod<[_bidId: BigNumberish], [boolean], "view">;
  getFunction(
    nameOrSignature: "isLoanExpired"
  ): TypedContractMethod<[_bidId: BigNumberish], [boolean], "view">;
  getFunction(
    nameOrSignature: "isLoanLiquidateable"
  ): TypedContractMethod<[_bidId: BigNumberish], [boolean], "view">;
  getFunction(
    nameOrSignature: "isPaymentLate"
  ): TypedContractMethod<[_bidId: BigNumberish], [boolean], "view">;
  getFunction(
    nameOrSignature: "isTrustedForwarder"
  ): TypedContractMethod<[forwarder: AddressLike], [boolean], "view">;
  getFunction(
    nameOrSignature: "isTrustedMarketForwarder"
  ): TypedContractMethod<
    [_marketId: BigNumberish, _trustedMarketForwarder: AddressLike],
    [boolean],
    "view"
  >;
  getFunction(
    nameOrSignature: "lastRepaidTimestamp"
  ): TypedContractMethod<[_bidId: BigNumberish], [bigint], "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: "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: "marketOwnerCancelBid"
  ): TypedContractMethod<[_bidId: BigNumberish], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "marketRegistry"
  ): TypedContractMethod<[], [string], "view">;
  getFunction(
    nameOrSignature: "owner"
  ): TypedContractMethod<[], [string], "view">;
  getFunction(
    nameOrSignature: "pauseProtocol"
  ): TypedContractMethod<[], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "paused"
  ): TypedContractMethod<[], [boolean], "view">;
  getFunction(
    nameOrSignature: "protocolFee"
  ): TypedContractMethod<[], [bigint], "view">;
  getFunction(
    nameOrSignature: "renounceMarketForwarder"
  ): TypedContractMethod<
    [_marketId: BigNumberish, _forwarder: AddressLike],
    [void],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "renounceOwnership"
  ): TypedContractMethod<[], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "repayLoan"
  ): TypedContractMethod<
    [_bidId: BigNumberish, _amount: BigNumberish],
    [void],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "repayLoanFull"
  ): TypedContractMethod<[_bidId: BigNumberish], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "repayLoanFullWithoutCollateralWithdraw"
  ): TypedContractMethod<[_bidId: BigNumberish], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "repayLoanMinimum"
  ): TypedContractMethod<[_bidId: BigNumberish], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "repayLoanWithoutCollateralWithdraw"
  ): TypedContractMethod<
    [_bidId: BigNumberish, _amount: BigNumberish],
    [void],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "reputationManager"
  ): TypedContractMethod<[], [string], "view">;
  getFunction(
    nameOrSignature: "setEscrowVault"
  ): TypedContractMethod<[_escrowVault: AddressLike], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "setProtocolFee"
  ): TypedContractMethod<[newFee: BigNumberish], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "setTrustedMarketForwarder"
  ): TypedContractMethod<
    [_marketId: BigNumberish, _forwarder: AddressLike],
    [void],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "submitBid(address,uint256,uint256,uint32,uint16,string,address)"
  ): TypedContractMethod<
    [
      _lendingToken: AddressLike,
      _marketplaceId: BigNumberish,
      _principal: BigNumberish,
      _duration: BigNumberish,
      _APR: BigNumberish,
      _metadataURI: 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: "transferOwnership"
  ): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "unpauseProtocol"
  ): TypedContractMethod<[], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "uris"
  ): TypedContractMethod<[arg0: BigNumberish], [string], "view">;
  getFunction(
    nameOrSignature: "version"
  ): TypedContractMethod<[], [bigint], "view">;

  getEvent(
    key: "AcceptedBid"
  ): TypedContractEvent<
    AcceptedBidEvent.InputTuple,
    AcceptedBidEvent.OutputTuple,
    AcceptedBidEvent.OutputObject
  >;
  getEvent(
    key: "CancelledBid"
  ): TypedContractEvent<
    CancelledBidEvent.InputTuple,
    CancelledBidEvent.OutputTuple,
    CancelledBidEvent.OutputObject
  >;
  getEvent(
    key: "FeePaid"
  ): TypedContractEvent<
    FeePaidEvent.InputTuple,
    FeePaidEvent.OutputTuple,
    FeePaidEvent.OutputObject
  >;
  getEvent(
    key: "Initialized"
  ): TypedContractEvent<
    InitializedEvent.InputTuple,
    InitializedEvent.OutputTuple,
    InitializedEvent.OutputObject
  >;
  getEvent(
    key: "LoanLiquidated"
  ): TypedContractEvent<
    LoanLiquidatedEvent.InputTuple,
    LoanLiquidatedEvent.OutputTuple,
    LoanLiquidatedEvent.OutputObject
  >;
  getEvent(
    key: "LoanRepaid"
  ): TypedContractEvent<
    LoanRepaidEvent.InputTuple,
    LoanRepaidEvent.OutputTuple,
    LoanRepaidEvent.OutputObject
  >;
  getEvent(
    key: "LoanRepayment"
  ): TypedContractEvent<
    LoanRepaymentEvent.InputTuple,
    LoanRepaymentEvent.OutputTuple,
    LoanRepaymentEvent.OutputObject
  >;
  getEvent(
    key: "MarketForwarderApproved"
  ): TypedContractEvent<
    MarketForwarderApprovedEvent.InputTuple,
    MarketForwarderApprovedEvent.OutputTuple,
    MarketForwarderApprovedEvent.OutputObject
  >;
  getEvent(
    key: "MarketForwarderRenounced"
  ): TypedContractEvent<
    MarketForwarderRenouncedEvent.InputTuple,
    MarketForwarderRenouncedEvent.OutputTuple,
    MarketForwarderRenouncedEvent.OutputObject
  >;
  getEvent(
    key: "MarketOwnerCancelledBid"
  ): TypedContractEvent<
    MarketOwnerCancelledBidEvent.InputTuple,
    MarketOwnerCancelledBidEvent.OutputTuple,
    MarketOwnerCancelledBidEvent.OutputObject
  >;
  getEvent(
    key: "OwnershipTransferred"
  ): TypedContractEvent<
    OwnershipTransferredEvent.InputTuple,
    OwnershipTransferredEvent.OutputTuple,
    OwnershipTransferredEvent.OutputObject
  >;
  getEvent(
    key: "Paused"
  ): TypedContractEvent<
    PausedEvent.InputTuple,
    PausedEvent.OutputTuple,
    PausedEvent.OutputObject
  >;
  getEvent(
    key: "ProtocolFeeSet"
  ): TypedContractEvent<
    ProtocolFeeSetEvent.InputTuple,
    ProtocolFeeSetEvent.OutputTuple,
    ProtocolFeeSetEvent.OutputObject
  >;
  getEvent(
    key: "SubmittedBid"
  ): TypedContractEvent<
    SubmittedBidEvent.InputTuple,
    SubmittedBidEvent.OutputTuple,
    SubmittedBidEvent.OutputObject
  >;
  getEvent(
    key: "TrustedMarketForwarderSet"
  ): TypedContractEvent<
    TrustedMarketForwarderSetEvent.InputTuple,
    TrustedMarketForwarderSetEvent.OutputTuple,
    TrustedMarketForwarderSetEvent.OutputObject
  >;
  getEvent(
    key: "Unpaused"
  ): TypedContractEvent<
    UnpausedEvent.InputTuple,
    UnpausedEvent.OutputTuple,
    UnpausedEvent.OutputObject
  >;

  filters: {
    "AcceptedBid(uint256,address)": TypedContractEvent<
      AcceptedBidEvent.InputTuple,
      AcceptedBidEvent.OutputTuple,
      AcceptedBidEvent.OutputObject
    >;
    AcceptedBid: TypedContractEvent<
      AcceptedBidEvent.InputTuple,
      AcceptedBidEvent.OutputTuple,
      AcceptedBidEvent.OutputObject
    >;

    "CancelledBid(uint256)": TypedContractEvent<
      CancelledBidEvent.InputTuple,
      CancelledBidEvent.OutputTuple,
      CancelledBidEvent.OutputObject
    >;
    CancelledBid: TypedContractEvent<
      CancelledBidEvent.InputTuple,
      CancelledBidEvent.OutputTuple,
      CancelledBidEvent.OutputObject
    >;

    "FeePaid(uint256,string,uint256)": TypedContractEvent<
      FeePaidEvent.InputTuple,
      FeePaidEvent.OutputTuple,
      FeePaidEvent.OutputObject
    >;
    FeePaid: TypedContractEvent<
      FeePaidEvent.InputTuple,
      FeePaidEvent.OutputTuple,
      FeePaidEvent.OutputObject
    >;

    "Initialized(uint8)": TypedContractEvent<
      InitializedEvent.InputTuple,
      InitializedEvent.OutputTuple,
      InitializedEvent.OutputObject
    >;
    Initialized: TypedContractEvent<
      InitializedEvent.InputTuple,
      InitializedEvent.OutputTuple,
      InitializedEvent.OutputObject
    >;

    "LoanLiquidated(uint256,address)": TypedContractEvent<
      LoanLiquidatedEvent.InputTuple,
      LoanLiquidatedEvent.OutputTuple,
      LoanLiquidatedEvent.OutputObject
    >;
    LoanLiquidated: TypedContractEvent<
      LoanLiquidatedEvent.InputTuple,
      LoanLiquidatedEvent.OutputTuple,
      LoanLiquidatedEvent.OutputObject
    >;

    "LoanRepaid(uint256)": TypedContractEvent<
      LoanRepaidEvent.InputTuple,
      LoanRepaidEvent.OutputTuple,
      LoanRepaidEvent.OutputObject
    >;
    LoanRepaid: TypedContractEvent<
      LoanRepaidEvent.InputTuple,
      LoanRepaidEvent.OutputTuple,
      LoanRepaidEvent.OutputObject
    >;

    "LoanRepayment(uint256)": TypedContractEvent<
      LoanRepaymentEvent.InputTuple,
      LoanRepaymentEvent.OutputTuple,
      LoanRepaymentEvent.OutputObject
    >;
    LoanRepayment: TypedContractEvent<
      LoanRepaymentEvent.InputTuple,
      LoanRepaymentEvent.OutputTuple,
      LoanRepaymentEvent.OutputObject
    >;

    "MarketForwarderApproved(uint256,address,address)": TypedContractEvent<
      MarketForwarderApprovedEvent.InputTuple,
      MarketForwarderApprovedEvent.OutputTuple,
      MarketForwarderApprovedEvent.OutputObject
    >;
    MarketForwarderApproved: TypedContractEvent<
      MarketForwarderApprovedEvent.InputTuple,
      MarketForwarderApprovedEvent.OutputTuple,
      MarketForwarderApprovedEvent.OutputObject
    >;

    "MarketForwarderRenounced(uint256,address,address)": TypedContractEvent<
      MarketForwarderRenouncedEvent.InputTuple,
      MarketForwarderRenouncedEvent.OutputTuple,
      MarketForwarderRenouncedEvent.OutputObject
    >;
    MarketForwarderRenounced: TypedContractEvent<
      MarketForwarderRenouncedEvent.InputTuple,
      MarketForwarderRenouncedEvent.OutputTuple,
      MarketForwarderRenouncedEvent.OutputObject
    >;

    "MarketOwnerCancelledBid(uint256)": TypedContractEvent<
      MarketOwnerCancelledBidEvent.InputTuple,
      MarketOwnerCancelledBidEvent.OutputTuple,
      MarketOwnerCancelledBidEvent.OutputObject
    >;
    MarketOwnerCancelledBid: TypedContractEvent<
      MarketOwnerCancelledBidEvent.InputTuple,
      MarketOwnerCancelledBidEvent.OutputTuple,
      MarketOwnerCancelledBidEvent.OutputObject
    >;

    "OwnershipTransferred(address,address)": TypedContractEvent<
      OwnershipTransferredEvent.InputTuple,
      OwnershipTransferredEvent.OutputTuple,
      OwnershipTransferredEvent.OutputObject
    >;
    OwnershipTransferred: TypedContractEvent<
      OwnershipTransferredEvent.InputTuple,
      OwnershipTransferredEvent.OutputTuple,
      OwnershipTransferredEvent.OutputObject
    >;

    "Paused(address)": TypedContractEvent<
      PausedEvent.InputTuple,
      PausedEvent.OutputTuple,
      PausedEvent.OutputObject
    >;
    Paused: TypedContractEvent<
      PausedEvent.InputTuple,
      PausedEvent.OutputTuple,
      PausedEvent.OutputObject
    >;

    "ProtocolFeeSet(uint16,uint16)": TypedContractEvent<
      ProtocolFeeSetEvent.InputTuple,
      ProtocolFeeSetEvent.OutputTuple,
      ProtocolFeeSetEvent.OutputObject
    >;
    ProtocolFeeSet: TypedContractEvent<
      ProtocolFeeSetEvent.InputTuple,
      ProtocolFeeSetEvent.OutputTuple,
      ProtocolFeeSetEvent.OutputObject
    >;

    "SubmittedBid(uint256,address,address,bytes32)": TypedContractEvent<
      SubmittedBidEvent.InputTuple,
      SubmittedBidEvent.OutputTuple,
      SubmittedBidEvent.OutputObject
    >;
    SubmittedBid: TypedContractEvent<
      SubmittedBidEvent.InputTuple,
      SubmittedBidEvent.OutputTuple,
      SubmittedBidEvent.OutputObject
    >;

    "TrustedMarketForwarderSet(uint256,address,address)": TypedContractEvent<
      TrustedMarketForwarderSetEvent.InputTuple,
      TrustedMarketForwarderSetEvent.OutputTuple,
      TrustedMarketForwarderSetEvent.OutputObject
    >;
    TrustedMarketForwarderSet: TypedContractEvent<
      TrustedMarketForwarderSetEvent.InputTuple,
      TrustedMarketForwarderSetEvent.OutputTuple,
      TrustedMarketForwarderSetEvent.OutputObject
    >;

    "Unpaused(address)": TypedContractEvent<
      UnpausedEvent.InputTuple,
      UnpausedEvent.OutputTuple,
      UnpausedEvent.OutputObject
    >;
    Unpaused: TypedContractEvent<
      UnpausedEvent.InputTuple,
      UnpausedEvent.OutputTuple,
      UnpausedEvent.OutputObject
    >;
  };
}
