/* 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 interface ITellerV2AutopayInterface extends Interface {
  getFunction(
    nameOrSignature:
      | "autoPayLoanMinimum"
      | "initialize"
      | "setAutoPayEnabled"
      | "setAutopayFee"
  ): FunctionFragment;

  encodeFunctionData(
    functionFragment: "autoPayLoanMinimum",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "initialize",
    values: [BigNumberish, AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "setAutoPayEnabled",
    values: [BigNumberish, boolean]
  ): string;
  encodeFunctionData(
    functionFragment: "setAutopayFee",
    values: [BigNumberish]
  ): string;

  decodeFunctionResult(
    functionFragment: "autoPayLoanMinimum",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "setAutoPayEnabled",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setAutopayFee",
    data: BytesLike
  ): Result;
}

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

  interface: ITellerV2AutopayInterface;

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

  initialize: TypedContractMethod<
    [_newFee: BigNumberish, _newOwner: AddressLike],
    [void],
    "nonpayable"
  >;

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

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

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

  getFunction(
    nameOrSignature: "autoPayLoanMinimum"
  ): TypedContractMethod<[_bidId: BigNumberish], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "initialize"
  ): TypedContractMethod<
    [_newFee: BigNumberish, _newOwner: AddressLike],
    [void],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "setAutoPayEnabled"
  ): TypedContractMethod<
    [_bidId: BigNumberish, _autoPayEnabled: boolean],
    [void],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "setAutopayFee"
  ): TypedContractMethod<[_newFee: BigNumberish], [void], "nonpayable">;

  filters: {};
}
