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

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

const _abi = [
  {
    inputs: [
      {
        internalType: "uint256",
        name: "cut",
        type: "uint256",
      },
    ],
    name: "GraphPaymentsInvalidCut",
    type: "error",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "protocolPaymentCut",
        type: "uint256",
      },
    ],
    name: "GraphPaymentsInvalidProtocolPaymentCut",
    type: "error",
  },
  {
    anonymous: false,
    inputs: [
      {
        indexed: true,
        internalType: "enum IGraphPayments.PaymentTypes",
        name: "paymentType",
        type: "uint8",
      },
      {
        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",
      },
      {
        indexed: false,
        internalType: "uint256",
        name: "tokensProtocol",
        type: "uint256",
      },
      {
        indexed: false,
        internalType: "uint256",
        name: "tokensDataService",
        type: "uint256",
      },
      {
        indexed: false,
        internalType: "uint256",
        name: "tokensDelegationPool",
        type: "uint256",
      },
      {
        indexed: false,
        internalType: "uint256",
        name: "tokensReceiver",
        type: "uint256",
      },
      {
        indexed: false,
        internalType: "address",
        name: "receiverDestination",
        type: "address",
      },
    ],
    name: "GraphPaymentCollected",
    type: "event",
  },
  {
    inputs: [],
    name: "PROTOCOL_PAYMENT_CUT",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "enum IGraphPayments.PaymentTypes",
        name: "paymentType",
        type: "uint8",
      },
      {
        internalType: "address",
        name: "receiver",
        type: "address",
      },
      {
        internalType: "uint256",
        name: "tokens",
        type: "uint256",
      },
      {
        internalType: "address",
        name: "dataService",
        type: "address",
      },
      {
        internalType: "uint256",
        name: "dataServiceCut",
        type: "uint256",
      },
      {
        internalType: "address",
        name: "receiverDestination",
        type: "address",
      },
    ],
    name: "collect",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [],
    name: "initialize",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
] as const;

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