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

import { Contract, Interface, type ContractRunner } from "ethers";
import type {
  IL2GNS,
  IL2GNSInterface,
} from "../../../../../contracts/contracts/l2/discovery/IL2GNS";

const _abi = [
  {
    inputs: [
      {
        internalType: "uint256",
        name: "l2SubgraphID",
        type: "uint256",
      },
      {
        internalType: "bytes32",
        name: "subgraphDeploymentID",
        type: "bytes32",
      },
      {
        internalType: "bytes32",
        name: "subgraphMetadata",
        type: "bytes32",
      },
      {
        internalType: "bytes32",
        name: "versionMetadata",
        type: "bytes32",
      },
    ],
    name: "finishSubgraphTransferFromL1",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "l1SubgraphID",
        type: "uint256",
      },
    ],
    name: "getAliasedL2SubgraphID",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "pure",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "l2SubgraphID",
        type: "uint256",
      },
    ],
    name: "getUnaliasedL1SubgraphID",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "pure",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "from",
        type: "address",
      },
      {
        internalType: "uint256",
        name: "amount",
        type: "uint256",
      },
      {
        internalType: "bytes",
        name: "data",
        type: "bytes",
      },
    ],
    name: "onTokenTransfer",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
] as const;

export class IL2GNS__factory {
  static readonly abi = _abi;
  static readonly interfaceId = "0x030bc7b5" as const;
  static readonly interfaceName = "IL2GNS" as const;
  static createInterface(): IL2GNSInterface {
    return new Interface(_abi) as IL2GNSInterface;
  }
  static connect(address: string, runner?: ContractRunner | null): IL2GNS {
    return new Contract(address, _abi, runner) as unknown as IL2GNS;
  }
}
