/* 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 GNSV1StorageInterface extends ethers.utils.Interface {
  functions: {
    "bondingCurve()": FunctionFragment;
    "controller()": FunctionFragment;
    "erc1056Registry()": FunctionFragment;
    "graphAccountSubgraphNumbers(address)": FunctionFragment;
    "nameSignals(address,uint256)": FunctionFragment;
    "ownerTaxPercentage()": FunctionFragment;
    "setController(address)": FunctionFragment;
    "subgraphs(address,uint256)": FunctionFragment;
    "syncAllContracts()": FunctionFragment;
  };

  encodeFunctionData(
    functionFragment: "bondingCurve",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "controller",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "erc1056Registry",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "graphAccountSubgraphNumbers",
    values: [string]
  ): string;
  encodeFunctionData(
    functionFragment: "nameSignals",
    values: [string, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "ownerTaxPercentage",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "setController",
    values: [string]
  ): string;
  encodeFunctionData(
    functionFragment: "subgraphs",
    values: [string, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "syncAllContracts",
    values?: undefined
  ): string;

  decodeFunctionResult(
    functionFragment: "bondingCurve",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "controller", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "erc1056Registry",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "graphAccountSubgraphNumbers",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "nameSignals",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "ownerTaxPercentage",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setController",
    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 GNSV1Storage 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: GNSV1StorageInterface;

  functions: {
    bondingCurve(overrides?: CallOverrides): Promise<[string]>;

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

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

    graphAccountSubgraphNumbers(
      arg0: string,
      overrides?: CallOverrides
    ): Promise<[BigNumber]>;

    nameSignals(
      arg0: string,
      arg1: BigNumberish,
      overrides?: CallOverrides
    ): Promise<
      [BigNumber, BigNumber, string, number, boolean, BigNumber] & {
        vSignal: BigNumber;
        nSignal: BigNumber;
        subgraphDeploymentID: string;
        reserveRatio: number;
        disabled: boolean;
        withdrawableGRT: BigNumber;
      }
    >;

    ownerTaxPercentage(overrides?: CallOverrides): Promise<[number]>;

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

    subgraphs(
      arg0: string,
      arg1: BigNumberish,
      overrides?: CallOverrides
    ): Promise<[string]>;

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

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

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

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

  graphAccountSubgraphNumbers(
    arg0: string,
    overrides?: CallOverrides
  ): Promise<BigNumber>;

  nameSignals(
    arg0: string,
    arg1: BigNumberish,
    overrides?: CallOverrides
  ): Promise<
    [BigNumber, BigNumber, string, number, boolean, BigNumber] & {
      vSignal: BigNumber;
      nSignal: BigNumber;
      subgraphDeploymentID: string;
      reserveRatio: number;
      disabled: boolean;
      withdrawableGRT: BigNumber;
    }
  >;

  ownerTaxPercentage(overrides?: CallOverrides): Promise<number>;

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

  subgraphs(
    arg0: string,
    arg1: BigNumberish,
    overrides?: CallOverrides
  ): Promise<string>;

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

  callStatic: {
    bondingCurve(overrides?: CallOverrides): Promise<string>;

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

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

    graphAccountSubgraphNumbers(
      arg0: string,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    nameSignals(
      arg0: string,
      arg1: BigNumberish,
      overrides?: CallOverrides
    ): Promise<
      [BigNumber, BigNumber, string, number, boolean, BigNumber] & {
        vSignal: BigNumber;
        nSignal: BigNumber;
        subgraphDeploymentID: string;
        reserveRatio: number;
        disabled: boolean;
        withdrawableGRT: BigNumber;
      }
    >;

    ownerTaxPercentage(overrides?: CallOverrides): Promise<number>;

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

    subgraphs(
      arg0: string,
      arg1: BigNumberish,
      overrides?: CallOverrides
    ): Promise<string>;

    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: {
    bondingCurve(overrides?: CallOverrides): Promise<BigNumber>;

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

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

    graphAccountSubgraphNumbers(
      arg0: string,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    nameSignals(
      arg0: string,
      arg1: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

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

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

    subgraphs(
      arg0: string,
      arg1: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

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

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

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

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

    graphAccountSubgraphNumbers(
      arg0: string,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    nameSignals(
      arg0: string,
      arg1: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

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

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

    subgraphs(
      arg0: string,
      arg1: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

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