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

import { Contract, Interface, type ContractRunner } from 'ethers'
import type {
  IRewardsManager,
  IRewardsManagerInterface,
} from '../../../../../../@graphprotocol/interfaces/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
  }
}
