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

import { Contract, Interface, type ContractRunner } from "ethers";
import type {
  IRewardsIssuer,
  IRewardsIssuerInterface,
} from "../../../../../../@graphprotocol/interfaces/contracts/contracts/rewards/IRewardsIssuer";

const _abi = [
  {
    inputs: [
      {
        internalType: "address",
        name: "allocationId",
        type: "address",
      },
    ],
    name: "getAllocationData",
    outputs: [
      {
        internalType: "bool",
        name: "isActive",
        type: "bool",
      },
      {
        internalType: "address",
        name: "indexer",
        type: "address",
      },
      {
        internalType: "bytes32",
        name: "subgraphDeploymentId",
        type: "bytes32",
      },
      {
        internalType: "uint256",
        name: "tokens",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "accRewardsPerAllocatedToken",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "accRewardsPending",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "bytes32",
        name: "subgraphDeploymentId",
        type: "bytes32",
      },
    ],
    name: "getSubgraphAllocatedTokens",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
] as const;

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