/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */

import { Contract, Interface, type ContractRunner } from "ethers";
import type {
  IPaymentsCollector,
  IPaymentsCollectorInterface,
} from "../../../../../@graphprotocol/interfaces/contracts/horizon/IPaymentsCollector";

const _abi = [
  {
    anonymous: false,
    inputs: [
      {
        indexed: false,
        internalType: "enum IGraphPayments.PaymentTypes",
        name: "paymentType",
        type: "uint8",
      },
      {
        indexed: true,
        internalType: "bytes32",
        name: "collectionId",
        type: "bytes32",
      },
      {
        indexed: true,
        internalType: "address",
        name: "payer",
        type: "address",
      },
      {
        indexed: false,
        internalType: "address",
        name: "receiver",
        type: "address",
      },
      {
        indexed: true,
        internalType: "address",
        name: "dataService",
        type: "address",
      },
      {
        indexed: false,
        internalType: "uint256",
        name: "tokens",
        type: "uint256",
      },
    ],
    name: "PaymentCollected",
    type: "event",
  },
  {
    inputs: [
      {
        internalType: "enum IGraphPayments.PaymentTypes",
        name: "paymentType",
        type: "uint8",
      },
      {
        internalType: "bytes",
        name: "data",
        type: "bytes",
      },
    ],
    name: "collect",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "nonpayable",
    type: "function",
  },
] as const;

export class IPaymentsCollector__factory {
  static readonly abi = _abi;
  static createInterface(): IPaymentsCollectorInterface {
    return new Interface(_abi) as IPaymentsCollectorInterface;
  }
  static connect(
    address: string,
    runner?: ContractRunner | null,
  ): IPaymentsCollector {
    return new Contract(address, _abi, runner) as unknown as IPaymentsCollector;
  }
}
