/* 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 interface TellerV2AutopayInterface extends Interface {
  getFunction(
    nameOrSignature:
      | "autoPayLoanMinimum"
      | "getAutopayFee"
      | "getEstimatedMinimumPayment"
      | "initialize"
      | "loanAutoPayEnabled"
      | "owner"
      | "renounceOwnership"
      | "setAutoPayEnabled"
      | "setAutopayFee"
      | "tellerV2"
      | "transferOwnership"
  ): FunctionFragment;

  getEvent(
    nameOrSignatureOrTopic:
      | "AutoPaidLoanMinimum"
      | "AutoPayEnabled"
      | "AutopayFeeSet"
      | "Initialized"
      | "OwnershipTransferred"
  ): EventFragment;

  encodeFunctionData(
    functionFragment: "autoPayLoanMinimum",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "getAutopayFee",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "getEstimatedMinimumPayment",
    values: [BigNumberish, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "initialize",
    values: [BigNumberish, AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "loanAutoPayEnabled",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(functionFragment: "owner", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "renounceOwnership",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "setAutoPayEnabled",
    values: [BigNumberish, boolean]
  ): string;
  encodeFunctionData(
    functionFragment: "setAutopayFee",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(functionFragment: "tellerV2", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "transferOwnership",
    values: [AddressLike]
  ): string;

  decodeFunctionResult(
    functionFragment: "autoPayLoanMinimum",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getAutopayFee",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getEstimatedMinimumPayment",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "loanAutoPayEnabled",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "renounceOwnership",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setAutoPayEnabled",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setAutopayFee",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "tellerV2", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "transferOwnership",
    data: BytesLike
  ): Result;
}

export namespace AutoPaidLoanMinimumEvent {
  export type InputTuple = [bidId: BigNumberish, msgsender: AddressLike];
  export type OutputTuple = [bidId: bigint, msgsender: string];
  export interface OutputObject {
    bidId: bigint;
    msgsender: 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 AutoPayEnabledEvent {
  export type InputTuple = [bidId: BigNumberish, enabled: boolean];
  export type OutputTuple = [bidId: bigint, enabled: boolean];
  export interface OutputObject {
    bidId: bigint;
    enabled: boolean;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

export namespace AutopayFeeSetEvent {
  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 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 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 interface TellerV2Autopay extends BaseContract {
  connect(runner?: ContractRunner | null): TellerV2Autopay;
  waitForDeployment(): Promise<this>;

  interface: TellerV2AutopayInterface;

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

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

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

  getEstimatedMinimumPayment: TypedContractMethod<
    [_bidId: BigNumberish, _timestamp: BigNumberish],
    [bigint],
    "nonpayable"
  >;

  initialize: TypedContractMethod<
    [_fee: BigNumberish, _owner: AddressLike],
    [void],
    "nonpayable"
  >;

  loanAutoPayEnabled: TypedContractMethod<
    [arg0: BigNumberish],
    [boolean],
    "view"
  >;

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

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

  setAutoPayEnabled: TypedContractMethod<
    [_bidId: BigNumberish, _autoPayEnabled: boolean],
    [void],
    "nonpayable"
  >;

  setAutopayFee: TypedContractMethod<
    [_newFee: BigNumberish],
    [void],
    "nonpayable"
  >;

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

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

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

  getFunction(
    nameOrSignature: "autoPayLoanMinimum"
  ): TypedContractMethod<[_bidId: BigNumberish], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "getAutopayFee"
  ): TypedContractMethod<[], [bigint], "view">;
  getFunction(
    nameOrSignature: "getEstimatedMinimumPayment"
  ): TypedContractMethod<
    [_bidId: BigNumberish, _timestamp: BigNumberish],
    [bigint],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "initialize"
  ): TypedContractMethod<
    [_fee: BigNumberish, _owner: AddressLike],
    [void],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "loanAutoPayEnabled"
  ): TypedContractMethod<[arg0: BigNumberish], [boolean], "view">;
  getFunction(
    nameOrSignature: "owner"
  ): TypedContractMethod<[], [string], "view">;
  getFunction(
    nameOrSignature: "renounceOwnership"
  ): TypedContractMethod<[], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "setAutoPayEnabled"
  ): TypedContractMethod<
    [_bidId: BigNumberish, _autoPayEnabled: boolean],
    [void],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "setAutopayFee"
  ): TypedContractMethod<[_newFee: BigNumberish], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "tellerV2"
  ): TypedContractMethod<[], [string], "view">;
  getFunction(
    nameOrSignature: "transferOwnership"
  ): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;

  getEvent(
    key: "AutoPaidLoanMinimum"
  ): TypedContractEvent<
    AutoPaidLoanMinimumEvent.InputTuple,
    AutoPaidLoanMinimumEvent.OutputTuple,
    AutoPaidLoanMinimumEvent.OutputObject
  >;
  getEvent(
    key: "AutoPayEnabled"
  ): TypedContractEvent<
    AutoPayEnabledEvent.InputTuple,
    AutoPayEnabledEvent.OutputTuple,
    AutoPayEnabledEvent.OutputObject
  >;
  getEvent(
    key: "AutopayFeeSet"
  ): TypedContractEvent<
    AutopayFeeSetEvent.InputTuple,
    AutopayFeeSetEvent.OutputTuple,
    AutopayFeeSetEvent.OutputObject
  >;
  getEvent(
    key: "Initialized"
  ): TypedContractEvent<
    InitializedEvent.InputTuple,
    InitializedEvent.OutputTuple,
    InitializedEvent.OutputObject
  >;
  getEvent(
    key: "OwnershipTransferred"
  ): TypedContractEvent<
    OwnershipTransferredEvent.InputTuple,
    OwnershipTransferredEvent.OutputTuple,
    OwnershipTransferredEvent.OutputObject
  >;

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

    "AutoPayEnabled(uint256,bool)": TypedContractEvent<
      AutoPayEnabledEvent.InputTuple,
      AutoPayEnabledEvent.OutputTuple,
      AutoPayEnabledEvent.OutputObject
    >;
    AutoPayEnabled: TypedContractEvent<
      AutoPayEnabledEvent.InputTuple,
      AutoPayEnabledEvent.OutputTuple,
      AutoPayEnabledEvent.OutputObject
    >;

    "AutopayFeeSet(uint16,uint16)": TypedContractEvent<
      AutopayFeeSetEvent.InputTuple,
      AutopayFeeSetEvent.OutputTuple,
      AutopayFeeSetEvent.OutputObject
    >;
    AutopayFeeSet: TypedContractEvent<
      AutopayFeeSetEvent.InputTuple,
      AutopayFeeSetEvent.OutputTuple,
      AutopayFeeSetEvent.OutputObject
    >;

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

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