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

import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
  IRewardsIssuer,
  IRewardsIssuerInterface,
} from "../../../../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 utils.Interface(_abi) as IRewardsIssuerInterface;
  }
  static connect(
    address: string,
    signerOrProvider: Signer | Provider,
  ): IRewardsIssuer {
    return new Contract(address, _abi, signerOrProvider) as IRewardsIssuer;
  }
}
