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

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

const _abi = [
  {
    type: "function",
    name: "bridgeAsset",
    inputs: [
      {
        name: "destinationNetwork",
        type: "uint32",
        internalType: "uint32",
      },
      {
        name: "destinationAddress",
        type: "address",
        internalType: "address",
      },
      {
        name: "amount",
        type: "uint256",
        internalType: "uint256",
      },
      {
        name: "token",
        type: "address",
        internalType: "address",
      },
      {
        name: "forceUpdateGlobalExitRoot",
        type: "bool",
        internalType: "bool",
      },
      {
        name: "permitData",
        type: "bytes",
        internalType: "bytes",
      },
    ],
    outputs: [],
    stateMutability: "payable",
  },
  {
    type: "function",
    name: "bridgeMessage",
    inputs: [
      {
        name: "destinationNetwork",
        type: "uint32",
        internalType: "uint32",
      },
      {
        name: "destinationAddress",
        type: "address",
        internalType: "address",
      },
      {
        name: "forceUpdateGlobalExitRoot",
        type: "bool",
        internalType: "bool",
      },
      {
        name: "metadata",
        type: "bytes",
        internalType: "bytes",
      },
    ],
    outputs: [],
    stateMutability: "payable",
  },
] as const;

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