/* 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 GNSInterface extends ethers.utils.Interface {
  functions: {
    "acceptProxy(address)": FunctionFragment;
    "acceptProxyAndCall(address,bytes)": FunctionFragment;
    "approveAll()": FunctionFragment;
    "bondingCurve()": FunctionFragment;
    "burnNSignal(address,uint256,uint256,uint256)": FunctionFragment;
    "controller()": FunctionFragment;
    "deprecateSubgraph(address,uint256)": FunctionFragment;
    "erc1056Registry()": FunctionFragment;
    "getCuratorNSignal(address,uint256,address)": FunctionFragment;
    "graphAccountSubgraphNumbers(address)": FunctionFragment;
    "initialize(address,address,address)": FunctionFragment;
    "isPublished(address,uint256)": FunctionFragment;
    "mintNSignal(address,uint256,uint256,uint256)": FunctionFragment;
    "multicall(bytes[])": FunctionFragment;
    "nSignalToTokens(address,uint256,uint256)": FunctionFragment;
    "nSignalToVSignal(address,uint256,uint256)": FunctionFragment;
    "nameSignals(address,uint256)": FunctionFragment;
    "ownerTaxPercentage()": FunctionFragment;
    "publishNewSubgraph(address,bytes32,bytes32,bytes32)": FunctionFragment;
    "publishNewVersion(address,uint256,bytes32,bytes32)": FunctionFragment;
    "setController(address)": FunctionFragment;
    "setDefaultName(address,uint8,bytes32,string)": FunctionFragment;
    "setOwnerTaxPercentage(uint32)": FunctionFragment;
    "subgraphs(address,uint256)": FunctionFragment;
    "syncAllContracts()": FunctionFragment;
    "tokensToNSignal(address,uint256,uint256)": FunctionFragment;
    "updateSubgraphMetadata(address,uint256,bytes32)": FunctionFragment;
    "vSignalToNSignal(address,uint256,uint256)": FunctionFragment;
    "withdraw(address,uint256)": FunctionFragment;
  };

  encodeFunctionData(functionFragment: "acceptProxy", values: [string]): string;
  encodeFunctionData(
    functionFragment: "acceptProxyAndCall",
    values: [string, BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "approveAll",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "bondingCurve",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "burnNSignal",
    values: [string, BigNumberish, BigNumberish, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "controller",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "deprecateSubgraph",
    values: [string, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "erc1056Registry",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "getCuratorNSignal",
    values: [string, BigNumberish, string]
  ): string;
  encodeFunctionData(
    functionFragment: "graphAccountSubgraphNumbers",
    values: [string]
  ): string;
  encodeFunctionData(
    functionFragment: "initialize",
    values: [string, string, string]
  ): string;
  encodeFunctionData(
    functionFragment: "isPublished",
    values: [string, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "mintNSignal",
    values: [string, BigNumberish, BigNumberish, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "multicall",
    values: [BytesLike[]]
  ): string;
  encodeFunctionData(
    functionFragment: "nSignalToTokens",
    values: [string, BigNumberish, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "nSignalToVSignal",
    values: [string, BigNumberish, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "nameSignals",
    values: [string, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "ownerTaxPercentage",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "publishNewSubgraph",
    values: [string, BytesLike, BytesLike, BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "publishNewVersion",
    values: [string, BigNumberish, BytesLike, BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "setController",
    values: [string]
  ): string;
  encodeFunctionData(
    functionFragment: "setDefaultName",
    values: [string, BigNumberish, BytesLike, string]
  ): string;
  encodeFunctionData(
    functionFragment: "setOwnerTaxPercentage",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "subgraphs",
    values: [string, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "syncAllContracts",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "tokensToNSignal",
    values: [string, BigNumberish, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "updateSubgraphMetadata",
    values: [string, BigNumberish, BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "vSignalToNSignal",
    values: [string, BigNumberish, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "withdraw",
    values: [string, BigNumberish]
  ): string;

  decodeFunctionResult(
    functionFragment: "acceptProxy",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "acceptProxyAndCall",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "approveAll", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "bondingCurve",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "burnNSignal",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "controller", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "deprecateSubgraph",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "erc1056Registry",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getCuratorNSignal",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "graphAccountSubgraphNumbers",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "isPublished",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "mintNSignal",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "multicall", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "nSignalToTokens",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "nSignalToVSignal",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "nameSignals",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "ownerTaxPercentage",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "publishNewSubgraph",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "publishNewVersion",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setController",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setDefaultName",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setOwnerTaxPercentage",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "subgraphs", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "syncAllContracts",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "tokensToNSignal",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "updateSubgraphMetadata",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "vSignalToNSignal",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;

  events: {
    "ContractSynced(bytes32,address)": EventFragment;
    "GRTWithdrawn(address,uint256,address,uint256,uint256)": EventFragment;
    "NSignalBurned(address,uint256,address,uint256,uint256,uint256)": EventFragment;
    "NSignalMinted(address,uint256,address,uint256,uint256,uint256)": EventFragment;
    "NameSignalDisabled(address,uint256,uint256)": EventFragment;
    "NameSignalEnabled(address,uint256,bytes32,uint32)": EventFragment;
    "NameSignalUpgrade(address,uint256,uint256,uint256,bytes32)": EventFragment;
    "ParameterUpdated(string)": EventFragment;
    "SetController(address)": EventFragment;
    "SetDefaultName(address,uint256,bytes32,string)": EventFragment;
    "SubgraphDeprecated(address,uint256)": EventFragment;
    "SubgraphMetadataUpdated(address,uint256,bytes32)": EventFragment;
    "SubgraphPublished(address,uint256,bytes32,bytes32)": EventFragment;
  };

  getEvent(nameOrSignatureOrTopic: "ContractSynced"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "GRTWithdrawn"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "NSignalBurned"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "NSignalMinted"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "NameSignalDisabled"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "NameSignalEnabled"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "NameSignalUpgrade"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "ParameterUpdated"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "SetController"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "SetDefaultName"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "SubgraphDeprecated"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "SubgraphMetadataUpdated"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "SubgraphPublished"): EventFragment;
}

export class GNS 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: GNSInterface;

  functions: {
    acceptProxy(
      _proxy: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    acceptProxyAndCall(
      _proxy: string,
      _data: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

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

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

    burnNSignal(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      _nSignal: BigNumberish,
      _tokensOutMin: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

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

    deprecateSubgraph(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

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

    getCuratorNSignal(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      _curator: string,
      overrides?: CallOverrides
    ): Promise<[BigNumber]>;

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

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

    isPublished(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      overrides?: CallOverrides
    ): Promise<[boolean]>;

    mintNSignal(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      _tokensIn: BigNumberish,
      _nSignalOutMin: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    multicall(
      data: BytesLike[],
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    nSignalToTokens(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      _nSignalIn: BigNumberish,
      overrides?: CallOverrides
    ): Promise<[BigNumber, BigNumber]>;

    nSignalToVSignal(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      _nSignalIn: BigNumberish,
      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]>;

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

    publishNewVersion(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      _subgraphDeploymentID: BytesLike,
      _versionMetadata: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

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

    setDefaultName(
      _graphAccount: string,
      _nameSystem: BigNumberish,
      _nameIdentifier: BytesLike,
      _name: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    setOwnerTaxPercentage(
      _ownerTaxPercentage: BigNumberish,
      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>;

    tokensToNSignal(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      _tokensIn: BigNumberish,
      overrides?: CallOverrides
    ): Promise<[BigNumber, BigNumber, BigNumber]>;

    updateSubgraphMetadata(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      _subgraphMetadata: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    vSignalToNSignal(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      _vSignalIn: BigNumberish,
      overrides?: CallOverrides
    ): Promise<[BigNumber]>;

    withdraw(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;
  };

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

  acceptProxyAndCall(
    _proxy: string,
    _data: BytesLike,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

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

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

  burnNSignal(
    _graphAccount: string,
    _subgraphNumber: BigNumberish,
    _nSignal: BigNumberish,
    _tokensOutMin: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

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

  deprecateSubgraph(
    _graphAccount: string,
    _subgraphNumber: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

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

  getCuratorNSignal(
    _graphAccount: string,
    _subgraphNumber: BigNumberish,
    _curator: string,
    overrides?: CallOverrides
  ): Promise<BigNumber>;

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

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

  isPublished(
    _graphAccount: string,
    _subgraphNumber: BigNumberish,
    overrides?: CallOverrides
  ): Promise<boolean>;

  mintNSignal(
    _graphAccount: string,
    _subgraphNumber: BigNumberish,
    _tokensIn: BigNumberish,
    _nSignalOutMin: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  multicall(
    data: BytesLike[],
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  nSignalToTokens(
    _graphAccount: string,
    _subgraphNumber: BigNumberish,
    _nSignalIn: BigNumberish,
    overrides?: CallOverrides
  ): Promise<[BigNumber, BigNumber]>;

  nSignalToVSignal(
    _graphAccount: string,
    _subgraphNumber: BigNumberish,
    _nSignalIn: BigNumberish,
    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>;

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

  publishNewVersion(
    _graphAccount: string,
    _subgraphNumber: BigNumberish,
    _subgraphDeploymentID: BytesLike,
    _versionMetadata: BytesLike,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

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

  setDefaultName(
    _graphAccount: string,
    _nameSystem: BigNumberish,
    _nameIdentifier: BytesLike,
    _name: string,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  setOwnerTaxPercentage(
    _ownerTaxPercentage: BigNumberish,
    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>;

  tokensToNSignal(
    _graphAccount: string,
    _subgraphNumber: BigNumberish,
    _tokensIn: BigNumberish,
    overrides?: CallOverrides
  ): Promise<[BigNumber, BigNumber, BigNumber]>;

  updateSubgraphMetadata(
    _graphAccount: string,
    _subgraphNumber: BigNumberish,
    _subgraphMetadata: BytesLike,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  vSignalToNSignal(
    _graphAccount: string,
    _subgraphNumber: BigNumberish,
    _vSignalIn: BigNumberish,
    overrides?: CallOverrides
  ): Promise<BigNumber>;

  withdraw(
    _graphAccount: string,
    _subgraphNumber: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  callStatic: {
    acceptProxy(_proxy: string, overrides?: CallOverrides): Promise<void>;

    acceptProxyAndCall(
      _proxy: string,
      _data: BytesLike,
      overrides?: CallOverrides
    ): Promise<void>;

    approveAll(overrides?: CallOverrides): Promise<void>;

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

    burnNSignal(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      _nSignal: BigNumberish,
      _tokensOutMin: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

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

    deprecateSubgraph(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

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

    getCuratorNSignal(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      _curator: string,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

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

    initialize(
      _controller: string,
      _bondingCurve: string,
      _didRegistry: string,
      overrides?: CallOverrides
    ): Promise<void>;

    isPublished(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      overrides?: CallOverrides
    ): Promise<boolean>;

    mintNSignal(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      _tokensIn: BigNumberish,
      _nSignalOutMin: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

    multicall(data: BytesLike[], overrides?: CallOverrides): Promise<string[]>;

    nSignalToTokens(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      _nSignalIn: BigNumberish,
      overrides?: CallOverrides
    ): Promise<[BigNumber, BigNumber]>;

    nSignalToVSignal(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      _nSignalIn: BigNumberish,
      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>;

    publishNewSubgraph(
      _graphAccount: string,
      _subgraphDeploymentID: BytesLike,
      _versionMetadata: BytesLike,
      _subgraphMetadata: BytesLike,
      overrides?: CallOverrides
    ): Promise<void>;

    publishNewVersion(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      _subgraphDeploymentID: BytesLike,
      _versionMetadata: BytesLike,
      overrides?: CallOverrides
    ): Promise<void>;

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

    setDefaultName(
      _graphAccount: string,
      _nameSystem: BigNumberish,
      _nameIdentifier: BytesLike,
      _name: string,
      overrides?: CallOverrides
    ): Promise<void>;

    setOwnerTaxPercentage(
      _ownerTaxPercentage: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

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

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

    tokensToNSignal(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      _tokensIn: BigNumberish,
      overrides?: CallOverrides
    ): Promise<[BigNumber, BigNumber, BigNumber]>;

    updateSubgraphMetadata(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      _subgraphMetadata: BytesLike,
      overrides?: CallOverrides
    ): Promise<void>;

    vSignalToNSignal(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      _vSignalIn: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    withdraw(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;
  };

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

    GRTWithdrawn(
      graphAccount?: string | null,
      subgraphNumber?: BigNumberish | null,
      nameCurator?: string | null,
      nSignalBurnt?: null,
      withdrawnGRT?: null
    ): TypedEventFilter<
      [string, BigNumber, string, BigNumber, BigNumber],
      {
        graphAccount: string;
        subgraphNumber: BigNumber;
        nameCurator: string;
        nSignalBurnt: BigNumber;
        withdrawnGRT: BigNumber;
      }
    >;

    NSignalBurned(
      graphAccount?: string | null,
      subgraphNumber?: BigNumberish | null,
      nameCurator?: string | null,
      nSignalBurnt?: null,
      vSignalBurnt?: null,
      tokensReceived?: null
    ): TypedEventFilter<
      [string, BigNumber, string, BigNumber, BigNumber, BigNumber],
      {
        graphAccount: string;
        subgraphNumber: BigNumber;
        nameCurator: string;
        nSignalBurnt: BigNumber;
        vSignalBurnt: BigNumber;
        tokensReceived: BigNumber;
      }
    >;

    NSignalMinted(
      graphAccount?: string | null,
      subgraphNumber?: BigNumberish | null,
      nameCurator?: string | null,
      nSignalCreated?: null,
      vSignalCreated?: null,
      tokensDeposited?: null
    ): TypedEventFilter<
      [string, BigNumber, string, BigNumber, BigNumber, BigNumber],
      {
        graphAccount: string;
        subgraphNumber: BigNumber;
        nameCurator: string;
        nSignalCreated: BigNumber;
        vSignalCreated: BigNumber;
        tokensDeposited: BigNumber;
      }
    >;

    NameSignalDisabled(
      graphAccount?: string | null,
      subgraphNumber?: BigNumberish | null,
      withdrawableGRT?: null
    ): TypedEventFilter<
      [string, BigNumber, BigNumber],
      {
        graphAccount: string;
        subgraphNumber: BigNumber;
        withdrawableGRT: BigNumber;
      }
    >;

    NameSignalEnabled(
      graphAccount?: string | null,
      subgraphNumber?: BigNumberish | null,
      subgraphDeploymentID?: BytesLike | null,
      reserveRatio?: null
    ): TypedEventFilter<
      [string, BigNumber, string, number],
      {
        graphAccount: string;
        subgraphNumber: BigNumber;
        subgraphDeploymentID: string;
        reserveRatio: number;
      }
    >;

    NameSignalUpgrade(
      graphAccount?: string | null,
      subgraphNumber?: BigNumberish | null,
      newVSignalCreated?: null,
      tokensSignalled?: null,
      subgraphDeploymentID?: BytesLike | null
    ): TypedEventFilter<
      [string, BigNumber, BigNumber, BigNumber, string],
      {
        graphAccount: string;
        subgraphNumber: BigNumber;
        newVSignalCreated: BigNumber;
        tokensSignalled: BigNumber;
        subgraphDeploymentID: string;
      }
    >;

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

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

    SetDefaultName(
      graphAccount?: string | null,
      nameSystem?: null,
      nameIdentifier?: null,
      name?: null
    ): TypedEventFilter<
      [string, BigNumber, string, string],
      {
        graphAccount: string;
        nameSystem: BigNumber;
        nameIdentifier: string;
        name: string;
      }
    >;

    SubgraphDeprecated(
      graphAccount?: string | null,
      subgraphNumber?: BigNumberish | null
    ): TypedEventFilter<
      [string, BigNumber],
      { graphAccount: string; subgraphNumber: BigNumber }
    >;

    SubgraphMetadataUpdated(
      graphAccount?: string | null,
      subgraphNumber?: BigNumberish | null,
      subgraphMetadata?: null
    ): TypedEventFilter<
      [string, BigNumber, string],
      {
        graphAccount: string;
        subgraphNumber: BigNumber;
        subgraphMetadata: string;
      }
    >;

    SubgraphPublished(
      graphAccount?: string | null,
      subgraphNumber?: BigNumberish | null,
      subgraphDeploymentID?: BytesLike | null,
      versionMetadata?: null
    ): TypedEventFilter<
      [string, BigNumber, string, string],
      {
        graphAccount: string;
        subgraphNumber: BigNumber;
        subgraphDeploymentID: string;
        versionMetadata: string;
      }
    >;
  };

  estimateGas: {
    acceptProxy(
      _proxy: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    acceptProxyAndCall(
      _proxy: string,
      _data: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

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

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

    burnNSignal(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      _nSignal: BigNumberish,
      _tokensOutMin: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

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

    deprecateSubgraph(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

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

    getCuratorNSignal(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      _curator: string,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

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

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

    isPublished(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    mintNSignal(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      _tokensIn: BigNumberish,
      _nSignalOutMin: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    multicall(
      data: BytesLike[],
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    nSignalToTokens(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      _nSignalIn: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    nSignalToVSignal(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      _nSignalIn: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

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

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

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

    publishNewVersion(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      _subgraphDeploymentID: BytesLike,
      _versionMetadata: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

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

    setDefaultName(
      _graphAccount: string,
      _nameSystem: BigNumberish,
      _nameIdentifier: BytesLike,
      _name: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    setOwnerTaxPercentage(
      _ownerTaxPercentage: BigNumberish,
      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>;

    tokensToNSignal(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      _tokensIn: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    updateSubgraphMetadata(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      _subgraphMetadata: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    vSignalToNSignal(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      _vSignalIn: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    withdraw(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;
  };

  populateTransaction: {
    acceptProxy(
      _proxy: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    acceptProxyAndCall(
      _proxy: string,
      _data: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

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

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

    burnNSignal(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      _nSignal: BigNumberish,
      _tokensOutMin: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

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

    deprecateSubgraph(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

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

    getCuratorNSignal(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      _curator: string,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

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

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

    isPublished(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    mintNSignal(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      _tokensIn: BigNumberish,
      _nSignalOutMin: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    multicall(
      data: BytesLike[],
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    nSignalToTokens(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      _nSignalIn: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    nSignalToVSignal(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      _nSignalIn: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

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

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

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

    publishNewVersion(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      _subgraphDeploymentID: BytesLike,
      _versionMetadata: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

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

    setDefaultName(
      _graphAccount: string,
      _nameSystem: BigNumberish,
      _nameIdentifier: BytesLike,
      _name: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    setOwnerTaxPercentage(
      _ownerTaxPercentage: BigNumberish,
      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>;

    tokensToNSignal(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      _tokensIn: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    updateSubgraphMetadata(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      _subgraphMetadata: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    vSignalToNSignal(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      _vSignalIn: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    withdraw(
      _graphAccount: string,
      _subgraphNumber: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;
  };
}
