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

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

const _abi = [
  {
    type: "function",
    name: "depositForBurn",
    inputs: [
      {
        name: "amount",
        type: "uint256",
        internalType: "uint256",
      },
      {
        name: "destinationDomain",
        type: "uint32",
        internalType: "uint32",
      },
      {
        name: "mintRecipient",
        type: "bytes32",
        internalType: "bytes32",
      },
      {
        name: "burnToken",
        type: "address",
        internalType: "address",
      },
      {
        name: "destinationCaller",
        type: "bytes32",
        internalType: "bytes32",
      },
      {
        name: "maxFee",
        type: "uint256",
        internalType: "uint256",
      },
      {
        name: "minFinalityThreshold",
        type: "uint32",
        internalType: "uint32",
      },
    ],
    outputs: [],
    stateMutability: "nonpayable",
  },
  {
    type: "function",
    name: "depositForBurnWithHook",
    inputs: [
      {
        name: "amount",
        type: "uint256",
        internalType: "uint256",
      },
      {
        name: "destinationDomain",
        type: "uint32",
        internalType: "uint32",
      },
      {
        name: "mintRecipient",
        type: "bytes32",
        internalType: "bytes32",
      },
      {
        name: "burnToken",
        type: "address",
        internalType: "address",
      },
      {
        name: "destinationCaller",
        type: "bytes32",
        internalType: "bytes32",
      },
      {
        name: "maxFee",
        type: "uint256",
        internalType: "uint256",
      },
      {
        name: "minFinalityThreshold",
        type: "uint32",
        internalType: "uint32",
      },
      {
        name: "hookData",
        type: "bytes",
        internalType: "bytes",
      },
    ],
    outputs: [],
    stateMutability: "nonpayable",
  },
] as const;

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