/* 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,
  EventFragment,
} from "@ethersproject/abi";
import type { Listener, Provider } from "@ethersproject/providers";
import type {
  TypedEventFilter,
  TypedEvent,
  TypedListener,
  OnEvent,
  PromiseOrValue,
} from "../../../common";

export interface IGNSInterface extends utils.Interface {
  functions: {
    "approveAll()": FunctionFragment;
    "burnSignal(uint256,uint256,uint256)": FunctionFragment;
    "deprecateSubgraph(uint256)": FunctionFragment;
    "getCuratorSignal(uint256,address)": FunctionFragment;
    "getLegacySubgraphKey(uint256)": FunctionFragment;
    "isLegacySubgraph(uint256)": FunctionFragment;
    "isPublished(uint256)": FunctionFragment;
    "mintSignal(uint256,uint256,uint256)": FunctionFragment;
    "nSignalToTokens(uint256,uint256)": FunctionFragment;
    "nSignalToVSignal(uint256,uint256)": FunctionFragment;
    "ownerOf(uint256)": FunctionFragment;
    "publishNewSubgraph(bytes32,bytes32,bytes32)": FunctionFragment;
    "publishNewVersion(uint256,bytes32,bytes32)": FunctionFragment;
    "setDefaultName(address,uint8,bytes32,string)": FunctionFragment;
    "setOwnerTaxPercentage(uint32)": FunctionFragment;
    "subgraphSignal(uint256)": FunctionFragment;
    "subgraphTokens(uint256)": FunctionFragment;
    "tokensToNSignal(uint256,uint256)": FunctionFragment;
    "transferSignal(uint256,address,uint256)": FunctionFragment;
    "updateSubgraphMetadata(uint256,bytes32)": FunctionFragment;
    "vSignalToNSignal(uint256,uint256)": FunctionFragment;
    "withdraw(uint256)": FunctionFragment;
  };

  getFunction(
    nameOrSignatureOrTopic:
      | "approveAll"
      | "burnSignal"
      | "deprecateSubgraph"
      | "getCuratorSignal"
      | "getLegacySubgraphKey"
      | "isLegacySubgraph"
      | "isPublished"
      | "mintSignal"
      | "nSignalToTokens"
      | "nSignalToVSignal"
      | "ownerOf"
      | "publishNewSubgraph"
      | "publishNewVersion"
      | "setDefaultName"
      | "setOwnerTaxPercentage"
      | "subgraphSignal"
      | "subgraphTokens"
      | "tokensToNSignal"
      | "transferSignal"
      | "updateSubgraphMetadata"
      | "vSignalToNSignal"
      | "withdraw",
  ): FunctionFragment;

  encodeFunctionData(
    functionFragment: "approveAll",
    values?: undefined,
  ): string;
  encodeFunctionData(
    functionFragment: "burnSignal",
    values: [
      PromiseOrValue<BigNumberish>,
      PromiseOrValue<BigNumberish>,
      PromiseOrValue<BigNumberish>,
    ],
  ): string;
  encodeFunctionData(
    functionFragment: "deprecateSubgraph",
    values: [PromiseOrValue<BigNumberish>],
  ): string;
  encodeFunctionData(
    functionFragment: "getCuratorSignal",
    values: [PromiseOrValue<BigNumberish>, PromiseOrValue<string>],
  ): string;
  encodeFunctionData(
    functionFragment: "getLegacySubgraphKey",
    values: [PromiseOrValue<BigNumberish>],
  ): string;
  encodeFunctionData(
    functionFragment: "isLegacySubgraph",
    values: [PromiseOrValue<BigNumberish>],
  ): string;
  encodeFunctionData(
    functionFragment: "isPublished",
    values: [PromiseOrValue<BigNumberish>],
  ): string;
  encodeFunctionData(
    functionFragment: "mintSignal",
    values: [
      PromiseOrValue<BigNumberish>,
      PromiseOrValue<BigNumberish>,
      PromiseOrValue<BigNumberish>,
    ],
  ): string;
  encodeFunctionData(
    functionFragment: "nSignalToTokens",
    values: [PromiseOrValue<BigNumberish>, PromiseOrValue<BigNumberish>],
  ): string;
  encodeFunctionData(
    functionFragment: "nSignalToVSignal",
    values: [PromiseOrValue<BigNumberish>, PromiseOrValue<BigNumberish>],
  ): string;
  encodeFunctionData(
    functionFragment: "ownerOf",
    values: [PromiseOrValue<BigNumberish>],
  ): string;
  encodeFunctionData(
    functionFragment: "publishNewSubgraph",
    values: [
      PromiseOrValue<BytesLike>,
      PromiseOrValue<BytesLike>,
      PromiseOrValue<BytesLike>,
    ],
  ): string;
  encodeFunctionData(
    functionFragment: "publishNewVersion",
    values: [
      PromiseOrValue<BigNumberish>,
      PromiseOrValue<BytesLike>,
      PromiseOrValue<BytesLike>,
    ],
  ): string;
  encodeFunctionData(
    functionFragment: "setDefaultName",
    values: [
      PromiseOrValue<string>,
      PromiseOrValue<BigNumberish>,
      PromiseOrValue<BytesLike>,
      PromiseOrValue<string>,
    ],
  ): string;
  encodeFunctionData(
    functionFragment: "setOwnerTaxPercentage",
    values: [PromiseOrValue<BigNumberish>],
  ): string;
  encodeFunctionData(
    functionFragment: "subgraphSignal",
    values: [PromiseOrValue<BigNumberish>],
  ): string;
  encodeFunctionData(
    functionFragment: "subgraphTokens",
    values: [PromiseOrValue<BigNumberish>],
  ): string;
  encodeFunctionData(
    functionFragment: "tokensToNSignal",
    values: [PromiseOrValue<BigNumberish>, PromiseOrValue<BigNumberish>],
  ): string;
  encodeFunctionData(
    functionFragment: "transferSignal",
    values: [
      PromiseOrValue<BigNumberish>,
      PromiseOrValue<string>,
      PromiseOrValue<BigNumberish>,
    ],
  ): string;
  encodeFunctionData(
    functionFragment: "updateSubgraphMetadata",
    values: [PromiseOrValue<BigNumberish>, PromiseOrValue<BytesLike>],
  ): string;
  encodeFunctionData(
    functionFragment: "vSignalToNSignal",
    values: [PromiseOrValue<BigNumberish>, PromiseOrValue<BigNumberish>],
  ): string;
  encodeFunctionData(
    functionFragment: "withdraw",
    values: [PromiseOrValue<BigNumberish>],
  ): string;

  decodeFunctionResult(functionFragment: "approveAll", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "burnSignal", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "deprecateSubgraph",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(
    functionFragment: "getCuratorSignal",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(
    functionFragment: "getLegacySubgraphKey",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(
    functionFragment: "isLegacySubgraph",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(
    functionFragment: "isPublished",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(functionFragment: "mintSignal", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "nSignalToTokens",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(
    functionFragment: "nSignalToVSignal",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(functionFragment: "ownerOf", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "publishNewSubgraph",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(
    functionFragment: "publishNewVersion",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(
    functionFragment: "setDefaultName",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(
    functionFragment: "setOwnerTaxPercentage",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(
    functionFragment: "subgraphSignal",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(
    functionFragment: "subgraphTokens",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(
    functionFragment: "tokensToNSignal",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(
    functionFragment: "transferSignal",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(
    functionFragment: "updateSubgraphMetadata",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(
    functionFragment: "vSignalToNSignal",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;

  events: {
    "SubgraphVersionUpdated(uint256,bytes32,bytes32)": EventFragment;
  };

  getEvent(nameOrSignatureOrTopic: "SubgraphVersionUpdated"): EventFragment;
}

export interface SubgraphVersionUpdatedEventObject {
  subgraphID: BigNumber;
  subgraphDeploymentID: string;
  versionMetadata: string;
}
export type SubgraphVersionUpdatedEvent = TypedEvent<
  [BigNumber, string, string],
  SubgraphVersionUpdatedEventObject
>;

export type SubgraphVersionUpdatedEventFilter =
  TypedEventFilter<SubgraphVersionUpdatedEvent>;

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

  interface: IGNSInterface;

  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: {
    approveAll(
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<ContractTransaction>;

    burnSignal(
      subgraphID: PromiseOrValue<BigNumberish>,
      nSignal: PromiseOrValue<BigNumberish>,
      tokensOutMin: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<ContractTransaction>;

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

    getCuratorSignal(
      subgraphID: PromiseOrValue<BigNumberish>,
      curator: PromiseOrValue<string>,
      overrides?: CallOverrides,
    ): Promise<[BigNumber]>;

    getLegacySubgraphKey(
      subgraphID: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<[string, BigNumber] & { account: string; seqID: BigNumber }>;

    isLegacySubgraph(
      subgraphID: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<[boolean]>;

    isPublished(
      subgraphID: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<[boolean]>;

    mintSignal(
      subgraphID: PromiseOrValue<BigNumberish>,
      tokensIn: PromiseOrValue<BigNumberish>,
      nSignalOutMin: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<ContractTransaction>;

    nSignalToTokens(
      subgraphID: PromiseOrValue<BigNumberish>,
      nSignalIn: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<[BigNumber, BigNumber]>;

    nSignalToVSignal(
      subgraphID: PromiseOrValue<BigNumberish>,
      nSignalIn: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<[BigNumber]>;

    ownerOf(
      tokenID: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<[string]>;

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

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

    setDefaultName(
      graphAccount: PromiseOrValue<string>,
      nameSystem: PromiseOrValue<BigNumberish>,
      nameIdentifier: PromiseOrValue<BytesLike>,
      name: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<ContractTransaction>;

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

    subgraphSignal(
      subgraphID: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<[BigNumber]>;

    subgraphTokens(
      subgraphID: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<[BigNumber]>;

    tokensToNSignal(
      subgraphID: PromiseOrValue<BigNumberish>,
      tokensIn: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<[BigNumber, BigNumber, BigNumber]>;

    transferSignal(
      subgraphID: PromiseOrValue<BigNumberish>,
      recipient: PromiseOrValue<string>,
      amount: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<ContractTransaction>;

    updateSubgraphMetadata(
      subgraphID: PromiseOrValue<BigNumberish>,
      subgraphMetadata: PromiseOrValue<BytesLike>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<ContractTransaction>;

    vSignalToNSignal(
      subgraphID: PromiseOrValue<BigNumberish>,
      vSignalIn: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<[BigNumber]>;

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

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

  burnSignal(
    subgraphID: PromiseOrValue<BigNumberish>,
    nSignal: PromiseOrValue<BigNumberish>,
    tokensOutMin: PromiseOrValue<BigNumberish>,
    overrides?: Overrides & { from?: PromiseOrValue<string> },
  ): Promise<ContractTransaction>;

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

  getCuratorSignal(
    subgraphID: PromiseOrValue<BigNumberish>,
    curator: PromiseOrValue<string>,
    overrides?: CallOverrides,
  ): Promise<BigNumber>;

  getLegacySubgraphKey(
    subgraphID: PromiseOrValue<BigNumberish>,
    overrides?: CallOverrides,
  ): Promise<[string, BigNumber] & { account: string; seqID: BigNumber }>;

  isLegacySubgraph(
    subgraphID: PromiseOrValue<BigNumberish>,
    overrides?: CallOverrides,
  ): Promise<boolean>;

  isPublished(
    subgraphID: PromiseOrValue<BigNumberish>,
    overrides?: CallOverrides,
  ): Promise<boolean>;

  mintSignal(
    subgraphID: PromiseOrValue<BigNumberish>,
    tokensIn: PromiseOrValue<BigNumberish>,
    nSignalOutMin: PromiseOrValue<BigNumberish>,
    overrides?: Overrides & { from?: PromiseOrValue<string> },
  ): Promise<ContractTransaction>;

  nSignalToTokens(
    subgraphID: PromiseOrValue<BigNumberish>,
    nSignalIn: PromiseOrValue<BigNumberish>,
    overrides?: CallOverrides,
  ): Promise<[BigNumber, BigNumber]>;

  nSignalToVSignal(
    subgraphID: PromiseOrValue<BigNumberish>,
    nSignalIn: PromiseOrValue<BigNumberish>,
    overrides?: CallOverrides,
  ): Promise<BigNumber>;

  ownerOf(
    tokenID: PromiseOrValue<BigNumberish>,
    overrides?: CallOverrides,
  ): Promise<string>;

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

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

  setDefaultName(
    graphAccount: PromiseOrValue<string>,
    nameSystem: PromiseOrValue<BigNumberish>,
    nameIdentifier: PromiseOrValue<BytesLike>,
    name: PromiseOrValue<string>,
    overrides?: Overrides & { from?: PromiseOrValue<string> },
  ): Promise<ContractTransaction>;

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

  subgraphSignal(
    subgraphID: PromiseOrValue<BigNumberish>,
    overrides?: CallOverrides,
  ): Promise<BigNumber>;

  subgraphTokens(
    subgraphID: PromiseOrValue<BigNumberish>,
    overrides?: CallOverrides,
  ): Promise<BigNumber>;

  tokensToNSignal(
    subgraphID: PromiseOrValue<BigNumberish>,
    tokensIn: PromiseOrValue<BigNumberish>,
    overrides?: CallOverrides,
  ): Promise<[BigNumber, BigNumber, BigNumber]>;

  transferSignal(
    subgraphID: PromiseOrValue<BigNumberish>,
    recipient: PromiseOrValue<string>,
    amount: PromiseOrValue<BigNumberish>,
    overrides?: Overrides & { from?: PromiseOrValue<string> },
  ): Promise<ContractTransaction>;

  updateSubgraphMetadata(
    subgraphID: PromiseOrValue<BigNumberish>,
    subgraphMetadata: PromiseOrValue<BytesLike>,
    overrides?: Overrides & { from?: PromiseOrValue<string> },
  ): Promise<ContractTransaction>;

  vSignalToNSignal(
    subgraphID: PromiseOrValue<BigNumberish>,
    vSignalIn: PromiseOrValue<BigNumberish>,
    overrides?: CallOverrides,
  ): Promise<BigNumber>;

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

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

    burnSignal(
      subgraphID: PromiseOrValue<BigNumberish>,
      nSignal: PromiseOrValue<BigNumberish>,
      tokensOutMin: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<void>;

    deprecateSubgraph(
      subgraphID: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<void>;

    getCuratorSignal(
      subgraphID: PromiseOrValue<BigNumberish>,
      curator: PromiseOrValue<string>,
      overrides?: CallOverrides,
    ): Promise<BigNumber>;

    getLegacySubgraphKey(
      subgraphID: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<[string, BigNumber] & { account: string; seqID: BigNumber }>;

    isLegacySubgraph(
      subgraphID: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<boolean>;

    isPublished(
      subgraphID: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<boolean>;

    mintSignal(
      subgraphID: PromiseOrValue<BigNumberish>,
      tokensIn: PromiseOrValue<BigNumberish>,
      nSignalOutMin: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<void>;

    nSignalToTokens(
      subgraphID: PromiseOrValue<BigNumberish>,
      nSignalIn: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<[BigNumber, BigNumber]>;

    nSignalToVSignal(
      subgraphID: PromiseOrValue<BigNumberish>,
      nSignalIn: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<BigNumber>;

    ownerOf(
      tokenID: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<string>;

    publishNewSubgraph(
      subgraphDeploymentID: PromiseOrValue<BytesLike>,
      versionMetadata: PromiseOrValue<BytesLike>,
      subgraphMetadata: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides,
    ): Promise<void>;

    publishNewVersion(
      subgraphID: PromiseOrValue<BigNumberish>,
      subgraphDeploymentID: PromiseOrValue<BytesLike>,
      versionMetadata: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides,
    ): Promise<void>;

    setDefaultName(
      graphAccount: PromiseOrValue<string>,
      nameSystem: PromiseOrValue<BigNumberish>,
      nameIdentifier: PromiseOrValue<BytesLike>,
      name: PromiseOrValue<string>,
      overrides?: CallOverrides,
    ): Promise<void>;

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

    subgraphSignal(
      subgraphID: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<BigNumber>;

    subgraphTokens(
      subgraphID: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<BigNumber>;

    tokensToNSignal(
      subgraphID: PromiseOrValue<BigNumberish>,
      tokensIn: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<[BigNumber, BigNumber, BigNumber]>;

    transferSignal(
      subgraphID: PromiseOrValue<BigNumberish>,
      recipient: PromiseOrValue<string>,
      amount: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<void>;

    updateSubgraphMetadata(
      subgraphID: PromiseOrValue<BigNumberish>,
      subgraphMetadata: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides,
    ): Promise<void>;

    vSignalToNSignal(
      subgraphID: PromiseOrValue<BigNumberish>,
      vSignalIn: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<BigNumber>;

    withdraw(
      subgraphID: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<void>;
  };

  filters: {
    "SubgraphVersionUpdated(uint256,bytes32,bytes32)"(
      subgraphID?: PromiseOrValue<BigNumberish> | null,
      subgraphDeploymentID?: PromiseOrValue<BytesLike> | null,
      versionMetadata?: null,
    ): SubgraphVersionUpdatedEventFilter;
    SubgraphVersionUpdated(
      subgraphID?: PromiseOrValue<BigNumberish> | null,
      subgraphDeploymentID?: PromiseOrValue<BytesLike> | null,
      versionMetadata?: null,
    ): SubgraphVersionUpdatedEventFilter;
  };

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

    burnSignal(
      subgraphID: PromiseOrValue<BigNumberish>,
      nSignal: PromiseOrValue<BigNumberish>,
      tokensOutMin: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<BigNumber>;

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

    getCuratorSignal(
      subgraphID: PromiseOrValue<BigNumberish>,
      curator: PromiseOrValue<string>,
      overrides?: CallOverrides,
    ): Promise<BigNumber>;

    getLegacySubgraphKey(
      subgraphID: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<BigNumber>;

    isLegacySubgraph(
      subgraphID: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<BigNumber>;

    isPublished(
      subgraphID: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<BigNumber>;

    mintSignal(
      subgraphID: PromiseOrValue<BigNumberish>,
      tokensIn: PromiseOrValue<BigNumberish>,
      nSignalOutMin: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<BigNumber>;

    nSignalToTokens(
      subgraphID: PromiseOrValue<BigNumberish>,
      nSignalIn: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<BigNumber>;

    nSignalToVSignal(
      subgraphID: PromiseOrValue<BigNumberish>,
      nSignalIn: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<BigNumber>;

    ownerOf(
      tokenID: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<BigNumber>;

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

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

    setDefaultName(
      graphAccount: PromiseOrValue<string>,
      nameSystem: PromiseOrValue<BigNumberish>,
      nameIdentifier: PromiseOrValue<BytesLike>,
      name: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<BigNumber>;

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

    subgraphSignal(
      subgraphID: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<BigNumber>;

    subgraphTokens(
      subgraphID: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<BigNumber>;

    tokensToNSignal(
      subgraphID: PromiseOrValue<BigNumberish>,
      tokensIn: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<BigNumber>;

    transferSignal(
      subgraphID: PromiseOrValue<BigNumberish>,
      recipient: PromiseOrValue<string>,
      amount: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<BigNumber>;

    updateSubgraphMetadata(
      subgraphID: PromiseOrValue<BigNumberish>,
      subgraphMetadata: PromiseOrValue<BytesLike>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<BigNumber>;

    vSignalToNSignal(
      subgraphID: PromiseOrValue<BigNumberish>,
      vSignalIn: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<BigNumber>;

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

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

    burnSignal(
      subgraphID: PromiseOrValue<BigNumberish>,
      nSignal: PromiseOrValue<BigNumberish>,
      tokensOutMin: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<PopulatedTransaction>;

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

    getCuratorSignal(
      subgraphID: PromiseOrValue<BigNumberish>,
      curator: PromiseOrValue<string>,
      overrides?: CallOverrides,
    ): Promise<PopulatedTransaction>;

    getLegacySubgraphKey(
      subgraphID: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<PopulatedTransaction>;

    isLegacySubgraph(
      subgraphID: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<PopulatedTransaction>;

    isPublished(
      subgraphID: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<PopulatedTransaction>;

    mintSignal(
      subgraphID: PromiseOrValue<BigNumberish>,
      tokensIn: PromiseOrValue<BigNumberish>,
      nSignalOutMin: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<PopulatedTransaction>;

    nSignalToTokens(
      subgraphID: PromiseOrValue<BigNumberish>,
      nSignalIn: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<PopulatedTransaction>;

    nSignalToVSignal(
      subgraphID: PromiseOrValue<BigNumberish>,
      nSignalIn: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<PopulatedTransaction>;

    ownerOf(
      tokenID: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<PopulatedTransaction>;

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

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

    setDefaultName(
      graphAccount: PromiseOrValue<string>,
      nameSystem: PromiseOrValue<BigNumberish>,
      nameIdentifier: PromiseOrValue<BytesLike>,
      name: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<PopulatedTransaction>;

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

    subgraphSignal(
      subgraphID: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<PopulatedTransaction>;

    subgraphTokens(
      subgraphID: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<PopulatedTransaction>;

    tokensToNSignal(
      subgraphID: PromiseOrValue<BigNumberish>,
      tokensIn: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<PopulatedTransaction>;

    transferSignal(
      subgraphID: PromiseOrValue<BigNumberish>,
      recipient: PromiseOrValue<string>,
      amount: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<PopulatedTransaction>;

    updateSubgraphMetadata(
      subgraphID: PromiseOrValue<BigNumberish>,
      subgraphMetadata: PromiseOrValue<BytesLike>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<PopulatedTransaction>;

    vSignalToNSignal(
      subgraphID: PromiseOrValue<BigNumberish>,
      vSignalIn: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<PopulatedTransaction>;

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