/* 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 IPaymentsCollectorInterface extends Interface {
  getFunction(nameOrSignature: "collect"): FunctionFragment;

  getEvent(nameOrSignatureOrTopic: "PaymentCollected"): EventFragment;

  encodeFunctionData(
    functionFragment: "collect",
    values: [BigNumberish, BytesLike],
  ): string;

  decodeFunctionResult(functionFragment: "collect", data: BytesLike): Result;
}

export namespace PaymentCollectedEvent {
  export type InputTuple = [
    paymentType: BigNumberish,
    collectionId: BytesLike,
    payer: AddressLike,
    receiver: AddressLike,
    dataService: AddressLike,
    tokens: BigNumberish,
  ];
  export type OutputTuple = [
    paymentType: bigint,
    collectionId: string,
    payer: string,
    receiver: string,
    dataService: string,
    tokens: bigint,
  ];
  export interface OutputObject {
    paymentType: bigint;
    collectionId: string;
    payer: string;
    receiver: string;
    dataService: string;
    tokens: bigint;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

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

  interface: IPaymentsCollectorInterface;

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

  collect: TypedContractMethod<
    [paymentType: BigNumberish, data: BytesLike],
    [bigint],
    "nonpayable"
  >;

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

  getFunction(
    nameOrSignature: "collect",
  ): TypedContractMethod<
    [paymentType: BigNumberish, data: BytesLike],
    [bigint],
    "nonpayable"
  >;

  getEvent(
    key: "PaymentCollected",
  ): TypedContractEvent<
    PaymentCollectedEvent.InputTuple,
    PaymentCollectedEvent.OutputTuple,
    PaymentCollectedEvent.OutputObject
  >;

  filters: {
    "PaymentCollected(uint8,bytes32,address,address,address,uint256)": TypedContractEvent<
      PaymentCollectedEvent.InputTuple,
      PaymentCollectedEvent.OutputTuple,
      PaymentCollectedEvent.OutputObject
    >;
    PaymentCollected: TypedContractEvent<
      PaymentCollectedEvent.InputTuple,
      PaymentCollectedEvent.OutputTuple,
      PaymentCollectedEvent.OutputObject
    >;
  };
}
