/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
  BaseContract,
  BigNumber,
  BigNumberish,
  BytesLike,
  CallOverrides,
  ContractTransaction,
  Overrides,
  PopulatedTransaction,
  Signer,
  utils,
} from "ethers";
import type { FunctionFragment, Result } from "@ethersproject/abi";
import type { Listener, Provider } from "@ethersproject/providers";
import type {
  TypedEventFilter,
  TypedEvent,
  TypedListener,
  OnEvent,
  PromiseOrValue,
} from "../../../common";

export interface IRewardsManagerInterface extends utils.Interface {
  functions: {
    "calcRewards(uint256,uint256)": FunctionFragment;
    "getAccRewardsForSubgraph(bytes32)": FunctionFragment;
    "getAccRewardsPerAllocatedToken(bytes32)": FunctionFragment;
    "getAccRewardsPerSignal()": FunctionFragment;
    "getNewRewardsPerSignal()": FunctionFragment;
    "getRewards(address,address)": FunctionFragment;
    "isDenied(bytes32)": FunctionFragment;
    "onSubgraphAllocationUpdate(bytes32)": FunctionFragment;
    "onSubgraphSignalUpdate(bytes32)": FunctionFragment;
    "setDenied(bytes32,bool)": FunctionFragment;
    "setIssuancePerBlock(uint256)": FunctionFragment;
    "setMinimumSubgraphSignal(uint256)": FunctionFragment;
    "setSubgraphAvailabilityOracle(address)": FunctionFragment;
    "setSubgraphService(address)": FunctionFragment;
    "takeRewards(address)": FunctionFragment;
    "updateAccRewardsPerSignal()": FunctionFragment;
  };

  getFunction(
    nameOrSignatureOrTopic:
      | "calcRewards"
      | "getAccRewardsForSubgraph"
      | "getAccRewardsPerAllocatedToken"
      | "getAccRewardsPerSignal"
      | "getNewRewardsPerSignal"
      | "getRewards"
      | "isDenied"
      | "onSubgraphAllocationUpdate"
      | "onSubgraphSignalUpdate"
      | "setDenied"
      | "setIssuancePerBlock"
      | "setMinimumSubgraphSignal"
      | "setSubgraphAvailabilityOracle"
      | "setSubgraphService"
      | "takeRewards"
      | "updateAccRewardsPerSignal",
  ): FunctionFragment;

  encodeFunctionData(
    functionFragment: "calcRewards",
    values: [PromiseOrValue<BigNumberish>, PromiseOrValue<BigNumberish>],
  ): string;
  encodeFunctionData(
    functionFragment: "getAccRewardsForSubgraph",
    values: [PromiseOrValue<BytesLike>],
  ): string;
  encodeFunctionData(
    functionFragment: "getAccRewardsPerAllocatedToken",
    values: [PromiseOrValue<BytesLike>],
  ): string;
  encodeFunctionData(
    functionFragment: "getAccRewardsPerSignal",
    values?: undefined,
  ): string;
  encodeFunctionData(
    functionFragment: "getNewRewardsPerSignal",
    values?: undefined,
  ): string;
  encodeFunctionData(
    functionFragment: "getRewards",
    values: [PromiseOrValue<string>, PromiseOrValue<string>],
  ): string;
  encodeFunctionData(
    functionFragment: "isDenied",
    values: [PromiseOrValue<BytesLike>],
  ): string;
  encodeFunctionData(
    functionFragment: "onSubgraphAllocationUpdate",
    values: [PromiseOrValue<BytesLike>],
  ): string;
  encodeFunctionData(
    functionFragment: "onSubgraphSignalUpdate",
    values: [PromiseOrValue<BytesLike>],
  ): string;
  encodeFunctionData(
    functionFragment: "setDenied",
    values: [PromiseOrValue<BytesLike>, PromiseOrValue<boolean>],
  ): string;
  encodeFunctionData(
    functionFragment: "setIssuancePerBlock",
    values: [PromiseOrValue<BigNumberish>],
  ): string;
  encodeFunctionData(
    functionFragment: "setMinimumSubgraphSignal",
    values: [PromiseOrValue<BigNumberish>],
  ): string;
  encodeFunctionData(
    functionFragment: "setSubgraphAvailabilityOracle",
    values: [PromiseOrValue<string>],
  ): string;
  encodeFunctionData(
    functionFragment: "setSubgraphService",
    values: [PromiseOrValue<string>],
  ): string;
  encodeFunctionData(
    functionFragment: "takeRewards",
    values: [PromiseOrValue<string>],
  ): string;
  encodeFunctionData(
    functionFragment: "updateAccRewardsPerSignal",
    values?: undefined,
  ): string;

  decodeFunctionResult(
    functionFragment: "calcRewards",
    data: BytesLike,
  ): Result;
  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: "setIssuancePerBlock",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(
    functionFragment: "setMinimumSubgraphSignal",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(
    functionFragment: "setSubgraphAvailabilityOracle",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(
    functionFragment: "setSubgraphService",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(
    functionFragment: "takeRewards",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(
    functionFragment: "updateAccRewardsPerSignal",
    data: BytesLike,
  ): Result;

  events: {};
}

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

  interface: IRewardsManagerInterface;

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

  listeners<TEvent extends TypedEvent>(
    eventFilter?: TypedEventFilter<TEvent>,
  ): Array<TypedListener<TEvent>>;
  listeners(eventName?: string): Array<Listener>;
  removeAllListeners<TEvent extends TypedEvent>(
    eventFilter: TypedEventFilter<TEvent>,
  ): this;
  removeAllListeners(eventName?: string): this;
  off: OnEvent<this>;
  on: OnEvent<this>;
  once: OnEvent<this>;
  removeListener: OnEvent<this>;

  functions: {
    calcRewards(
      tokens: PromiseOrValue<BigNumberish>,
      accRewardsPerAllocatedToken: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<[BigNumber]>;

    getAccRewardsForSubgraph(
      subgraphDeploymentID: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides,
    ): Promise<[BigNumber]>;

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

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

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

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

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

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

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

    setDenied(
      subgraphDeploymentID: PromiseOrValue<BytesLike>,
      deny: PromiseOrValue<boolean>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<ContractTransaction>;

    setIssuancePerBlock(
      issuancePerBlock: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<ContractTransaction>;

    setMinimumSubgraphSignal(
      minimumSubgraphSignal: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<ContractTransaction>;

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

    setSubgraphService(
      subgraphService: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<ContractTransaction>;

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

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

  calcRewards(
    tokens: PromiseOrValue<BigNumberish>,
    accRewardsPerAllocatedToken: PromiseOrValue<BigNumberish>,
    overrides?: CallOverrides,
  ): Promise<BigNumber>;

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

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

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

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

  getRewards(
    rewardsIssuer: PromiseOrValue<string>,
    allocationID: PromiseOrValue<string>,
    overrides?: CallOverrides,
  ): Promise<BigNumber>;

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

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

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

  setDenied(
    subgraphDeploymentID: PromiseOrValue<BytesLike>,
    deny: PromiseOrValue<boolean>,
    overrides?: Overrides & { from?: PromiseOrValue<string> },
  ): Promise<ContractTransaction>;

  setIssuancePerBlock(
    issuancePerBlock: PromiseOrValue<BigNumberish>,
    overrides?: Overrides & { from?: PromiseOrValue<string> },
  ): Promise<ContractTransaction>;

  setMinimumSubgraphSignal(
    minimumSubgraphSignal: PromiseOrValue<BigNumberish>,
    overrides?: Overrides & { from?: PromiseOrValue<string> },
  ): Promise<ContractTransaction>;

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

  setSubgraphService(
    subgraphService: PromiseOrValue<string>,
    overrides?: Overrides & { from?: PromiseOrValue<string> },
  ): Promise<ContractTransaction>;

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

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

  callStatic: {
    calcRewards(
      tokens: PromiseOrValue<BigNumberish>,
      accRewardsPerAllocatedToken: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<BigNumber>;

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

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

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

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

    getRewards(
      rewardsIssuer: PromiseOrValue<string>,
      allocationID: PromiseOrValue<string>,
      overrides?: CallOverrides,
    ): Promise<BigNumber>;

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

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

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

    setDenied(
      subgraphDeploymentID: PromiseOrValue<BytesLike>,
      deny: PromiseOrValue<boolean>,
      overrides?: CallOverrides,
    ): Promise<void>;

    setIssuancePerBlock(
      issuancePerBlock: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<void>;

    setMinimumSubgraphSignal(
      minimumSubgraphSignal: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<void>;

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

    setSubgraphService(
      subgraphService: PromiseOrValue<string>,
      overrides?: CallOverrides,
    ): Promise<void>;

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

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

  filters: {};

  estimateGas: {
    calcRewards(
      tokens: PromiseOrValue<BigNumberish>,
      accRewardsPerAllocatedToken: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<BigNumber>;

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

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

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

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

    getRewards(
      rewardsIssuer: PromiseOrValue<string>,
      allocationID: PromiseOrValue<string>,
      overrides?: CallOverrides,
    ): Promise<BigNumber>;

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

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

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

    setDenied(
      subgraphDeploymentID: PromiseOrValue<BytesLike>,
      deny: PromiseOrValue<boolean>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<BigNumber>;

    setIssuancePerBlock(
      issuancePerBlock: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<BigNumber>;

    setMinimumSubgraphSignal(
      minimumSubgraphSignal: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<BigNumber>;

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

    setSubgraphService(
      subgraphService: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<BigNumber>;

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

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

  populateTransaction: {
    calcRewards(
      tokens: PromiseOrValue<BigNumberish>,
      accRewardsPerAllocatedToken: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<PopulatedTransaction>;

    getAccRewardsForSubgraph(
      subgraphDeploymentID: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides,
    ): Promise<PopulatedTransaction>;

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

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

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

    getRewards(
      rewardsIssuer: PromiseOrValue<string>,
      allocationID: PromiseOrValue<string>,
      overrides?: CallOverrides,
    ): Promise<PopulatedTransaction>;

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

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

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

    setDenied(
      subgraphDeploymentID: PromiseOrValue<BytesLike>,
      deny: PromiseOrValue<boolean>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<PopulatedTransaction>;

    setIssuancePerBlock(
      issuancePerBlock: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<PopulatedTransaction>;

    setMinimumSubgraphSignal(
      minimumSubgraphSignal: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<PopulatedTransaction>;

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

    setSubgraphService(
      subgraphService: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<PopulatedTransaction>;

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

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