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

  getEvent(nameOrSignatureOrTopic: "GraphPaymentCollected"): EventFragment;

  encodeFunctionData(
    functionFragment: "PROTOCOL_PAYMENT_CUT",
    values?: undefined,
  ): string;
  encodeFunctionData(
    functionFragment: "collect",
    values: [
      BigNumberish,
      AddressLike,
      BigNumberish,
      AddressLike,
      BigNumberish,
      AddressLike,
    ],
  ): string;
  encodeFunctionData(
    functionFragment: "initialize",
    values?: undefined,
  ): string;

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

export namespace GraphPaymentCollectedEvent {
  export type InputTuple = [
    paymentType: BigNumberish,
    payer: AddressLike,
    receiver: AddressLike,
    dataService: AddressLike,
    tokens: BigNumberish,
    tokensProtocol: BigNumberish,
    tokensDataService: BigNumberish,
    tokensDelegationPool: BigNumberish,
    tokensReceiver: BigNumberish,
    receiverDestination: AddressLike,
  ];
  export type OutputTuple = [
    paymentType: bigint,
    payer: string,
    receiver: string,
    dataService: string,
    tokens: bigint,
    tokensProtocol: bigint,
    tokensDataService: bigint,
    tokensDelegationPool: bigint,
    tokensReceiver: bigint,
    receiverDestination: string,
  ];
  export interface OutputObject {
    paymentType: bigint;
    payer: string;
    receiver: string;
    dataService: string;
    tokens: bigint;
    tokensProtocol: bigint;
    tokensDataService: bigint;
    tokensDelegationPool: bigint;
    tokensReceiver: bigint;
    receiverDestination: 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 IGraphPayments extends BaseContract {
  connect(runner?: ContractRunner | null): IGraphPayments;
  waitForDeployment(): Promise<this>;

  interface: IGraphPaymentsInterface;

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

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

  collect: TypedContractMethod<
    [
      paymentType: BigNumberish,
      receiver: AddressLike,
      tokens: BigNumberish,
      dataService: AddressLike,
      dataServiceCut: BigNumberish,
      receiverDestination: AddressLike,
    ],
    [void],
    "nonpayable"
  >;

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

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

  getFunction(
    nameOrSignature: "PROTOCOL_PAYMENT_CUT",
  ): TypedContractMethod<[], [bigint], "view">;
  getFunction(
    nameOrSignature: "collect",
  ): TypedContractMethod<
    [
      paymentType: BigNumberish,
      receiver: AddressLike,
      tokens: BigNumberish,
      dataService: AddressLike,
      dataServiceCut: BigNumberish,
      receiverDestination: AddressLike,
    ],
    [void],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "initialize",
  ): TypedContractMethod<[], [void], "nonpayable">;

  getEvent(
    key: "GraphPaymentCollected",
  ): TypedContractEvent<
    GraphPaymentCollectedEvent.InputTuple,
    GraphPaymentCollectedEvent.OutputTuple,
    GraphPaymentCollectedEvent.OutputObject
  >;

  filters: {
    "GraphPaymentCollected(uint8,address,address,address,uint256,uint256,uint256,uint256,uint256,address)": TypedContractEvent<
      GraphPaymentCollectedEvent.InputTuple,
      GraphPaymentCollectedEvent.OutputTuple,
      GraphPaymentCollectedEvent.OutputObject
    >;
    GraphPaymentCollected: TypedContractEvent<
      GraphPaymentCollectedEvent.InputTuple,
      GraphPaymentCollectedEvent.OutputTuple,
      GraphPaymentCollectedEvent.OutputObject
    >;
  };
}
