/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */

import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
  IGNS,
  IGNSInterface,
} from "../../../../contracts/contracts/discovery/IGNS";

const _abi = [
  {
    anonymous: false,
    inputs: [
      {
        indexed: true,
        internalType: "uint256",
        name: "subgraphID",
        type: "uint256",
      },
      {
        indexed: true,
        internalType: "bytes32",
        name: "subgraphDeploymentID",
        type: "bytes32",
      },
      {
        indexed: false,
        internalType: "bytes32",
        name: "versionMetadata",
        type: "bytes32",
      },
    ],
    name: "SubgraphVersionUpdated",
    type: "event",
  },
  {
    inputs: [],
    name: "approveAll",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "subgraphID",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "nSignal",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "tokensOutMin",
        type: "uint256",
      },
    ],
    name: "burnSignal",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "subgraphID",
        type: "uint256",
      },
    ],
    name: "deprecateSubgraph",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "subgraphID",
        type: "uint256",
      },
      {
        internalType: "address",
        name: "curator",
        type: "address",
      },
    ],
    name: "getCuratorSignal",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "subgraphID",
        type: "uint256",
      },
    ],
    name: "getLegacySubgraphKey",
    outputs: [
      {
        internalType: "address",
        name: "account",
        type: "address",
      },
      {
        internalType: "uint256",
        name: "seqID",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "subgraphID",
        type: "uint256",
      },
    ],
    name: "isLegacySubgraph",
    outputs: [
      {
        internalType: "bool",
        name: "",
        type: "bool",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "subgraphID",
        type: "uint256",
      },
    ],
    name: "isPublished",
    outputs: [
      {
        internalType: "bool",
        name: "",
        type: "bool",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "subgraphID",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "tokensIn",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "nSignalOutMin",
        type: "uint256",
      },
    ],
    name: "mintSignal",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "subgraphID",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "nSignalIn",
        type: "uint256",
      },
    ],
    name: "nSignalToTokens",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "subgraphID",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "nSignalIn",
        type: "uint256",
      },
    ],
    name: "nSignalToVSignal",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "tokenID",
        type: "uint256",
      },
    ],
    name: "ownerOf",
    outputs: [
      {
        internalType: "address",
        name: "",
        type: "address",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "bytes32",
        name: "subgraphDeploymentID",
        type: "bytes32",
      },
      {
        internalType: "bytes32",
        name: "versionMetadata",
        type: "bytes32",
      },
      {
        internalType: "bytes32",
        name: "subgraphMetadata",
        type: "bytes32",
      },
    ],
    name: "publishNewSubgraph",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "subgraphID",
        type: "uint256",
      },
      {
        internalType: "bytes32",
        name: "subgraphDeploymentID",
        type: "bytes32",
      },
      {
        internalType: "bytes32",
        name: "versionMetadata",
        type: "bytes32",
      },
    ],
    name: "publishNewVersion",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "graphAccount",
        type: "address",
      },
      {
        internalType: "uint8",
        name: "nameSystem",
        type: "uint8",
      },
      {
        internalType: "bytes32",
        name: "nameIdentifier",
        type: "bytes32",
      },
      {
        internalType: "string",
        name: "name",
        type: "string",
      },
    ],
    name: "setDefaultName",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint32",
        name: "ownerTaxPercentage",
        type: "uint32",
      },
    ],
    name: "setOwnerTaxPercentage",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "subgraphID",
        type: "uint256",
      },
    ],
    name: "subgraphSignal",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "subgraphID",
        type: "uint256",
      },
    ],
    name: "subgraphTokens",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "subgraphID",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "tokensIn",
        type: "uint256",
      },
    ],
    name: "tokensToNSignal",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "subgraphID",
        type: "uint256",
      },
      {
        internalType: "address",
        name: "recipient",
        type: "address",
      },
      {
        internalType: "uint256",
        name: "amount",
        type: "uint256",
      },
    ],
    name: "transferSignal",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "subgraphID",
        type: "uint256",
      },
      {
        internalType: "bytes32",
        name: "subgraphMetadata",
        type: "bytes32",
      },
    ],
    name: "updateSubgraphMetadata",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "subgraphID",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "vSignalIn",
        type: "uint256",
      },
    ],
    name: "vSignalToNSignal",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "subgraphID",
        type: "uint256",
      },
    ],
    name: "withdraw",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
] as const;

export class IGNS__factory {
  static readonly abi = _abi;
  static createInterface(): IGNSInterface {
    return new utils.Interface(_abi) as IGNSInterface;
  }
  static connect(address: string, signerOrProvider: Signer | Provider): IGNS {
    return new Contract(address, _abi, signerOrProvider) as IGNS;
  }
}
