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

import { Contract, Interface, type ContractRunner } from "ethers";
import type {
  IRewardsManager,
  IRewardsManagerInterface,
} from "../../../../../@graphprotocol/contracts/contracts/rewards/IRewardsManager";

const _abi = [
  {
    inputs: [
      {
        internalType: "uint256",
        name: "_tokens",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "_accRewardsPerAllocatedToken",
        type: "uint256",
      },
    ],
    name: "calcRewards",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "pure",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "bytes32",
        name: "_subgraphDeploymentID",
        type: "bytes32",
      },
    ],
    name: "getAccRewardsForSubgraph",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "bytes32",
        name: "_subgraphDeploymentID",
        type: "bytes32",
      },
    ],
    name: "getAccRewardsPerAllocatedToken",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "getAccRewardsPerSignal",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "getNewRewardsPerSignal",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "_rewardsIssuer",
        type: "address",
      },
      {
        internalType: "address",
        name: "_allocationID",
        type: "address",
      },
    ],
    name: "getRewards",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "bytes32",
        name: "_subgraphDeploymentID",
        type: "bytes32",
      },
    ],
    name: "isDenied",
    outputs: [
      {
        internalType: "bool",
        name: "",
        type: "bool",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "bytes32",
        name: "_subgraphDeploymentID",
        type: "bytes32",
      },
    ],
    name: "onSubgraphAllocationUpdate",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "bytes32",
        name: "_subgraphDeploymentID",
        type: "bytes32",
      },
    ],
    name: "onSubgraphSignalUpdate",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "bytes32",
        name: "_subgraphDeploymentID",
        type: "bytes32",
      },
      {
        internalType: "bool",
        name: "_deny",
        type: "bool",
      },
    ],
    name: "setDenied",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "_issuancePerBlock",
        type: "uint256",
      },
    ],
    name: "setIssuancePerBlock",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "_minimumSubgraphSignal",
        type: "uint256",
      },
    ],
    name: "setMinimumSubgraphSignal",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "_subgraphAvailabilityOracle",
        type: "address",
      },
    ],
    name: "setSubgraphAvailabilityOracle",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "_subgraphService",
        type: "address",
      },
    ],
    name: "setSubgraphService",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "_allocationID",
        type: "address",
      },
    ],
    name: "takeRewards",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [],
    name: "updateAccRewardsPerSignal",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "nonpayable",
    type: "function",
  },
] as const;

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