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

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

const _abi = [
  {
    inputs: [
      {
        internalType: "address",
        name: "_toTokenAddress",
        type: "address",
      },
      {
        internalType: "uint256",
        name: "_deposit",
        type: "uint256",
      },
    ],
    name: "getAmountToWrap",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "_toTokenAddress",
        type: "address",
      },
      {
        internalType: "uint256",
        name: "_amountToWrap",
        type: "uint256",
      },
    ],
    name: "getFeeFromAmount",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "_toTokenAddress",
        type: "address",
      },
      {
        internalType: "uint16",
        name: "_feePercentage",
        type: "uint16",
      },
      {
        internalType: "uint32",
        name: "_nonce",
        type: "uint32",
      },
    ],
    name: "setFee",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "_fromTokenAddress",
        type: "address",
      },
      {
        internalType: "address",
        name: "_toTokenAddress",
        type: "address",
      },
      {
        internalType: "uint256",
        name: "_amount",
        type: "uint256",
      },
    ],
    name: "unwrap",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "_fromTokenAddress",
        type: "address",
      },
      {
        internalType: "address",
        name: "_toTokenAddress",
        type: "address",
      },
      {
        internalType: "uint256",
        name: "_amount",
        type: "uint256",
      },
      {
        internalType: "address",
        name: "_recipient",
        type: "address",
      },
    ],
    name: "unwrapAndSendTo",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "_sender",
        type: "address",
      },
      {
        internalType: "address",
        name: "_fromTokenAddress",
        type: "address",
      },
      {
        internalType: "address",
        name: "_toTokenAddress",
        type: "address",
      },
      {
        internalType: "uint256",
        name: "_amount",
        type: "uint256",
      },
    ],
    name: "unwrapFor",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "_fromTokenAddress",
        type: "address",
      },
      {
        internalType: "address",
        name: "_toTokenAddress",
        type: "address",
      },
      {
        internalType: "uint256",
        name: "_amount",
        type: "uint256",
      },
    ],
    name: "wrap",
    outputs: [],
    stateMutability: "payable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "_sender",
        type: "address",
      },
      {
        internalType: "address",
        name: "_fromTokenAddress",
        type: "address",
      },
      {
        internalType: "address",
        name: "_toTokenAddress",
        type: "address",
      },
      {
        internalType: "uint256",
        name: "_amount",
        type: "uint256",
      },
    ],
    name: "wrapFor",
    outputs: [],
    stateMutability: "payable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "_sender",
        type: "address",
      },
      {
        internalType: "address",
        name: "_fromTokenAddress",
        type: "address",
      },
      {
        internalType: "address",
        name: "_toTokenAddress",
        type: "address",
      },
      {
        internalType: "uint256",
        name: "_amount",
        type: "uint256",
      },
      {
        internalType: "address",
        name: "_mintRecipient",
        type: "address",
      },
    ],
    name: "wrapForAndSendTo",
    outputs: [],
    stateMutability: "payable",
    type: "function",
  },
];

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