/* 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 RewardsManagerV1StorageInterface extends ethers.utils.Interface {
  functions: {
    "accRewardsPerSignal()": FunctionFragment;
    "accRewardsPerSignalLastBlockUpdated()": FunctionFragment;
    "controller()": FunctionFragment;
    "denylist(bytes32)": FunctionFragment;
    "issuanceRate()": FunctionFragment;
    "setController(address)": FunctionFragment;
    "subgraphAvailabilityOracle()": FunctionFragment;
    "subgraphs(bytes32)": FunctionFragment;
    "syncAllContracts()": FunctionFragment;
  };

  encodeFunctionData(
    functionFragment: "accRewardsPerSignal",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "accRewardsPerSignalLastBlockUpdated",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "controller",
    values?: undefined
  ): string;
  encodeFunctionData(functionFragment: "denylist", values: [BytesLike]): string;
  encodeFunctionData(
    functionFragment: "issuanceRate",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "setController",
    values: [string]
  ): string;
  encodeFunctionData(
    functionFragment: "subgraphAvailabilityOracle",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "subgraphs",
    values: [BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "syncAllContracts",
    values?: undefined
  ): string;

  decodeFunctionResult(
    functionFragment: "accRewardsPerSignal",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "accRewardsPerSignalLastBlockUpdated",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "controller", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "denylist", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "issuanceRate",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setController",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "subgraphAvailabilityOracle",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "subgraphs", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "syncAllContracts",
    data: BytesLike
  ): Result;

  events: {
    "ContractSynced(bytes32,address)": EventFragment;
    "ParameterUpdated(string)": EventFragment;
    "SetController(address)": EventFragment;
  };

  getEvent(nameOrSignatureOrTopic: "ContractSynced"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "ParameterUpdated"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "SetController"): EventFragment;
}

export class RewardsManagerV1Storage 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: RewardsManagerV1StorageInterface;

  functions: {
    accRewardsPerSignal(overrides?: CallOverrides): Promise<[BigNumber]>;

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

    controller(overrides?: CallOverrides): Promise<[string]>;

    denylist(arg0: BytesLike, overrides?: CallOverrides): Promise<[BigNumber]>;

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

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

    subgraphAvailabilityOracle(overrides?: CallOverrides): Promise<[string]>;

    subgraphs(
      arg0: BytesLike,
      overrides?: CallOverrides
    ): Promise<
      [BigNumber, BigNumber, BigNumber, BigNumber] & {
        accRewardsForSubgraph: BigNumber;
        accRewardsForSubgraphSnapshot: BigNumber;
        accRewardsPerSignalSnapshot: BigNumber;
        accRewardsPerAllocatedToken: BigNumber;
      }
    >;

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

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

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

  controller(overrides?: CallOverrides): Promise<string>;

  denylist(arg0: BytesLike, overrides?: CallOverrides): Promise<BigNumber>;

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

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

  subgraphAvailabilityOracle(overrides?: CallOverrides): Promise<string>;

  subgraphs(
    arg0: BytesLike,
    overrides?: CallOverrides
  ): Promise<
    [BigNumber, BigNumber, BigNumber, BigNumber] & {
      accRewardsForSubgraph: BigNumber;
      accRewardsForSubgraphSnapshot: BigNumber;
      accRewardsPerSignalSnapshot: BigNumber;
      accRewardsPerAllocatedToken: BigNumber;
    }
  >;

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

  callStatic: {
    accRewardsPerSignal(overrides?: CallOverrides): Promise<BigNumber>;

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

    controller(overrides?: CallOverrides): Promise<string>;

    denylist(arg0: BytesLike, overrides?: CallOverrides): Promise<BigNumber>;

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

    setController(
      _controller: string,
      overrides?: CallOverrides
    ): Promise<void>;

    subgraphAvailabilityOracle(overrides?: CallOverrides): Promise<string>;

    subgraphs(
      arg0: BytesLike,
      overrides?: CallOverrides
    ): Promise<
      [BigNumber, BigNumber, BigNumber, BigNumber] & {
        accRewardsForSubgraph: BigNumber;
        accRewardsForSubgraphSnapshot: BigNumber;
        accRewardsPerSignalSnapshot: BigNumber;
        accRewardsPerAllocatedToken: BigNumber;
      }
    >;

    syncAllContracts(overrides?: CallOverrides): Promise<void>;
  };

  filters: {
    ContractSynced(
      nameHash?: BytesLike | null,
      contractAddress?: null
    ): TypedEventFilter<
      [string, string],
      { nameHash: string; contractAddress: string }
    >;

    ParameterUpdated(
      param?: null
    ): TypedEventFilter<[string], { param: string }>;

    SetController(
      controller?: null
    ): TypedEventFilter<[string], { controller: string }>;
  };

  estimateGas: {
    accRewardsPerSignal(overrides?: CallOverrides): Promise<BigNumber>;

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

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

    denylist(arg0: BytesLike, overrides?: CallOverrides): Promise<BigNumber>;

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

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

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

    subgraphs(arg0: BytesLike, overrides?: CallOverrides): Promise<BigNumber>;

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

  populateTransaction: {
    accRewardsPerSignal(
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

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

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

    denylist(
      arg0: BytesLike,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

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

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

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

    subgraphs(
      arg0: BytesLike,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

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