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

import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
  IL2AssetRouter,
  IL2AssetRouterInterface,
} from "../IL2AssetRouter";

const _abi = [
  {
    type: "function",
    name: "l1TokenAddress",
    inputs: [
      {
        name: "_l2TokenAddress",
        type: "address",
        internalType: "address",
      },
    ],
    outputs: [
      {
        name: "",
        type: "address",
        internalType: "address",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "withdraw",
    inputs: [
      {
        name: "_assetId",
        type: "bytes32",
        internalType: "bytes32",
      },
      {
        name: "_assetData",
        type: "bytes",
        internalType: "bytes",
      },
    ],
    outputs: [
      {
        name: "",
        type: "bytes32",
        internalType: "bytes32",
      },
    ],
    stateMutability: "nonpayable",
  },
] as const;

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