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

import {
  ethers,
  EventFilter,
  Signer,
  BigNumber,
  BigNumberish,
  PopulatedTransaction,
  BaseContract,
  ContractTransaction,
  Overrides,
  CallOverrides,
} from "ethers";
import { BytesLike } from "@ethersproject/bytes";
import { Listener, Provider } from "@ethersproject/providers";
import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";
import { TypedEventFilter, TypedEvent, TypedListener } from "./commons";

interface IRewardsManagerInterface extends ethers.utils.Interface {
  functions: {
    "getAccRewardsForSubgraph(bytes32)": FunctionFragment;
    "getAccRewardsPerAllocatedToken(bytes32)": FunctionFragment;
    "getAccRewardsPerSignal()": FunctionFragment;
    "getNewRewardsPerSignal()": FunctionFragment;
    "getRewards(address)": FunctionFragment;
    "isDenied(bytes32)": FunctionFragment;
    "onSubgraphAllocationUpdate(bytes32)": FunctionFragment;
    "onSubgraphSignalUpdate(bytes32)": FunctionFragment;
    "setDenied(bytes32,bool)": FunctionFragment;
    "setDeniedMany(bytes32[],bool[])": FunctionFragment;
    "setIssuanceRate(uint256)": FunctionFragment;
    "setSubgraphAvailabilityOracle(address)": FunctionFragment;
    "takeRewards(address)": FunctionFragment;
    "updateAccRewardsPerSignal()": FunctionFragment;
  };

  encodeFunctionData(
    functionFragment: "getAccRewardsForSubgraph",
    values: [BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "getAccRewardsPerAllocatedToken",
    values: [BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "getAccRewardsPerSignal",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "getNewRewardsPerSignal",
    values?: undefined
  ): string;
  encodeFunctionData(functionFragment: "getRewards", values: [string]): string;
  encodeFunctionData(functionFragment: "isDenied", values: [BytesLike]): string;
  encodeFunctionData(
    functionFragment: "onSubgraphAllocationUpdate",
    values: [BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "onSubgraphSignalUpdate",
    values: [BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "setDenied",
    values: [BytesLike, boolean]
  ): string;
  encodeFunctionData(
    functionFragment: "setDeniedMany",
    values: [BytesLike[], boolean[]]
  ): string;
  encodeFunctionData(
    functionFragment: "setIssuanceRate",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "setSubgraphAvailabilityOracle",
    values: [string]
  ): string;
  encodeFunctionData(functionFragment: "takeRewards", values: [string]): string;
  encodeFunctionData(
    functionFragment: "updateAccRewardsPerSignal",
    values?: undefined
  ): string;

  decodeFunctionResult(
    functionFragment: "getAccRewardsForSubgraph",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getAccRewardsPerAllocatedToken",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getAccRewardsPerSignal",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getNewRewardsPerSignal",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "getRewards", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "isDenied", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "onSubgraphAllocationUpdate",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "onSubgraphSignalUpdate",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "setDenied", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "setDeniedMany",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setIssuanceRate",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setSubgraphAvailabilityOracle",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "takeRewards",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "updateAccRewardsPerSignal",
    data: BytesLike
  ): Result;

  events: {};
}

export class IRewardsManager extends BaseContract {
  connect(signerOrProvider: Signer | Provider | string): this;
  attach(addressOrName: string): this;
  deployed(): Promise<this>;

  listeners<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter?: TypedEventFilter<EventArgsArray, EventArgsObject>
  ): Array<TypedListener<EventArgsArray, EventArgsObject>>;
  off<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
    listener: TypedListener<EventArgsArray, EventArgsObject>
  ): this;
  on<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
    listener: TypedListener<EventArgsArray, EventArgsObject>
  ): this;
  once<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
    listener: TypedListener<EventArgsArray, EventArgsObject>
  ): this;
  removeListener<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
    listener: TypedListener<EventArgsArray, EventArgsObject>
  ): this;
  removeAllListeners<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
  ): this;

  listeners(eventName?: string): Array<Listener>;
  off(eventName: string, listener: Listener): this;
  on(eventName: string, listener: Listener): this;
  once(eventName: string, listener: Listener): this;
  removeListener(eventName: string, listener: Listener): this;
  removeAllListeners(eventName?: string): this;

  queryFilter<EventArgsArray extends Array<any>, EventArgsObject>(
    event: TypedEventFilter<EventArgsArray, EventArgsObject>,
    fromBlockOrBlockhash?: string | number | undefined,
    toBlock?: string | number | undefined
  ): Promise<Array<TypedEvent<EventArgsArray & EventArgsObject>>>;

  interface: IRewardsManagerInterface;

  functions: {
    getAccRewardsForSubgraph(
      _subgraphDeploymentID: BytesLike,
      overrides?: CallOverrides
    ): Promise<[BigNumber]>;

    getAccRewardsPerAllocatedToken(
      _subgraphDeploymentID: BytesLike,
      overrides?: CallOverrides
    ): Promise<[BigNumber, BigNumber]>;

    getAccRewardsPerSignal(overrides?: CallOverrides): Promise<[BigNumber]>;

    getNewRewardsPerSignal(overrides?: CallOverrides): Promise<[BigNumber]>;

    getRewards(
      _allocationID: string,
      overrides?: CallOverrides
    ): Promise<[BigNumber]>;

    isDenied(
      _subgraphDeploymentID: BytesLike,
      overrides?: CallOverrides
    ): Promise<[boolean]>;

    onSubgraphAllocationUpdate(
      _subgraphDeploymentID: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    onSubgraphSignalUpdate(
      _subgraphDeploymentID: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    setDenied(
      _subgraphDeploymentID: BytesLike,
      _deny: boolean,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    setDeniedMany(
      _subgraphDeploymentID: BytesLike[],
      _deny: boolean[],
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    setIssuanceRate(
      _issuanceRate: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    setSubgraphAvailabilityOracle(
      _subgraphAvailabilityOracle: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    takeRewards(
      _allocationID: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    updateAccRewardsPerSignal(
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;
  };

  getAccRewardsForSubgraph(
    _subgraphDeploymentID: BytesLike,
    overrides?: CallOverrides
  ): Promise<BigNumber>;

  getAccRewardsPerAllocatedToken(
    _subgraphDeploymentID: BytesLike,
    overrides?: CallOverrides
  ): Promise<[BigNumber, BigNumber]>;

  getAccRewardsPerSignal(overrides?: CallOverrides): Promise<BigNumber>;

  getNewRewardsPerSignal(overrides?: CallOverrides): Promise<BigNumber>;

  getRewards(
    _allocationID: string,
    overrides?: CallOverrides
  ): Promise<BigNumber>;

  isDenied(
    _subgraphDeploymentID: BytesLike,
    overrides?: CallOverrides
  ): Promise<boolean>;

  onSubgraphAllocationUpdate(
    _subgraphDeploymentID: BytesLike,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  onSubgraphSignalUpdate(
    _subgraphDeploymentID: BytesLike,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  setDenied(
    _subgraphDeploymentID: BytesLike,
    _deny: boolean,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  setDeniedMany(
    _subgraphDeploymentID: BytesLike[],
    _deny: boolean[],
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  setIssuanceRate(
    _issuanceRate: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  setSubgraphAvailabilityOracle(
    _subgraphAvailabilityOracle: string,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  takeRewards(
    _allocationID: string,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  updateAccRewardsPerSignal(
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  callStatic: {
    getAccRewardsForSubgraph(
      _subgraphDeploymentID: BytesLike,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    getAccRewardsPerAllocatedToken(
      _subgraphDeploymentID: BytesLike,
      overrides?: CallOverrides
    ): Promise<[BigNumber, BigNumber]>;

    getAccRewardsPerSignal(overrides?: CallOverrides): Promise<BigNumber>;

    getNewRewardsPerSignal(overrides?: CallOverrides): Promise<BigNumber>;

    getRewards(
      _allocationID: string,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    isDenied(
      _subgraphDeploymentID: BytesLike,
      overrides?: CallOverrides
    ): Promise<boolean>;

    onSubgraphAllocationUpdate(
      _subgraphDeploymentID: BytesLike,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    onSubgraphSignalUpdate(
      _subgraphDeploymentID: BytesLike,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    setDenied(
      _subgraphDeploymentID: BytesLike,
      _deny: boolean,
      overrides?: CallOverrides
    ): Promise<void>;

    setDeniedMany(
      _subgraphDeploymentID: BytesLike[],
      _deny: boolean[],
      overrides?: CallOverrides
    ): Promise<void>;

    setIssuanceRate(
      _issuanceRate: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

    setSubgraphAvailabilityOracle(
      _subgraphAvailabilityOracle: string,
      overrides?: CallOverrides
    ): Promise<void>;

    takeRewards(
      _allocationID: string,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    updateAccRewardsPerSignal(overrides?: CallOverrides): Promise<BigNumber>;
  };

  filters: {};

  estimateGas: {
    getAccRewardsForSubgraph(
      _subgraphDeploymentID: BytesLike,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    getAccRewardsPerAllocatedToken(
      _subgraphDeploymentID: BytesLike,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    getAccRewardsPerSignal(overrides?: CallOverrides): Promise<BigNumber>;

    getNewRewardsPerSignal(overrides?: CallOverrides): Promise<BigNumber>;

    getRewards(
      _allocationID: string,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    isDenied(
      _subgraphDeploymentID: BytesLike,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    onSubgraphAllocationUpdate(
      _subgraphDeploymentID: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    onSubgraphSignalUpdate(
      _subgraphDeploymentID: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    setDenied(
      _subgraphDeploymentID: BytesLike,
      _deny: boolean,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    setDeniedMany(
      _subgraphDeploymentID: BytesLike[],
      _deny: boolean[],
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    setIssuanceRate(
      _issuanceRate: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    setSubgraphAvailabilityOracle(
      _subgraphAvailabilityOracle: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    takeRewards(
      _allocationID: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    updateAccRewardsPerSignal(
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;
  };

  populateTransaction: {
    getAccRewardsForSubgraph(
      _subgraphDeploymentID: BytesLike,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    getAccRewardsPerAllocatedToken(
      _subgraphDeploymentID: BytesLike,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    getAccRewardsPerSignal(
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    getNewRewardsPerSignal(
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    getRewards(
      _allocationID: string,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    isDenied(
      _subgraphDeploymentID: BytesLike,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    onSubgraphAllocationUpdate(
      _subgraphDeploymentID: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    onSubgraphSignalUpdate(
      _subgraphDeploymentID: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    setDenied(
      _subgraphDeploymentID: BytesLike,
      _deny: boolean,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    setDeniedMany(
      _subgraphDeploymentID: BytesLike[],
      _deny: boolean[],
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    setIssuanceRate(
      _issuanceRate: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    setSubgraphAvailabilityOracle(
      _subgraphAvailabilityOracle: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    takeRewards(
      _allocationID: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    updateAccRewardsPerSignal(
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;
  };
}
