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

import {
  ethers,
  EventFilter,
  Signer,
  BigNumber,
  BigNumberish,
  PopulatedTransaction,
  BaseContract,
  ContractTransaction,
  Overrides,
  PayableOverrides,
  CallOverrides,
} from "ethers";
import { BytesLike } from "@ethersproject/bytes";
import { Listener, Provider } from "@ethersproject/providers";
import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";
import type { TypedEventFilter, TypedEvent, TypedListener } from "./common";

interface IMultiTokenWrapperInterface extends ethers.utils.Interface {
  functions: {
    "getAmountToWrap(address,uint256)": FunctionFragment;
    "getFeeFromAmount(address,uint256)": FunctionFragment;
    "setFee(address,uint16,uint32)": FunctionFragment;
    "unwrap(address,address,uint256)": FunctionFragment;
    "unwrapAndSendTo(address,address,uint256,address)": FunctionFragment;
    "unwrapFor(address,address,address,uint256)": FunctionFragment;
    "wrap(address,address,uint256)": FunctionFragment;
    "wrapFor(address,address,address,uint256)": FunctionFragment;
    "wrapForAndSendTo(address,address,address,uint256,address)": FunctionFragment;
  };

  encodeFunctionData(
    functionFragment: "getAmountToWrap",
    values: [string, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "getFeeFromAmount",
    values: [string, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "setFee",
    values: [string, BigNumberish, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "unwrap",
    values: [string, string, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "unwrapAndSendTo",
    values: [string, string, BigNumberish, string]
  ): string;
  encodeFunctionData(
    functionFragment: "unwrapFor",
    values: [string, string, string, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "wrap",
    values: [string, string, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "wrapFor",
    values: [string, string, string, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "wrapForAndSendTo",
    values: [string, string, string, BigNumberish, string]
  ): string;

  decodeFunctionResult(
    functionFragment: "getAmountToWrap",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getFeeFromAmount",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "setFee", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "unwrap", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "unwrapAndSendTo",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "unwrapFor", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "wrap", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "wrapFor", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "wrapForAndSendTo",
    data: BytesLike
  ): Result;

  events: {};
}

export class IMultiTokenWrapper extends BaseContract {
  connect(signerOrProvider: Signer | Provider | string): this;
  attach(addressOrName: string): this;
  deployed(): Promise<this>;

  listeners<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter?: TypedEventFilter<EventArgsArray, EventArgsObject>
  ): Array<TypedListener<EventArgsArray, EventArgsObject>>;
  off<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
    listener: TypedListener<EventArgsArray, EventArgsObject>
  ): this;
  on<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
    listener: TypedListener<EventArgsArray, EventArgsObject>
  ): this;
  once<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
    listener: TypedListener<EventArgsArray, EventArgsObject>
  ): this;
  removeListener<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
    listener: TypedListener<EventArgsArray, EventArgsObject>
  ): this;
  removeAllListeners<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
  ): this;

  listeners(eventName?: string): Array<Listener>;
  off(eventName: string, listener: Listener): this;
  on(eventName: string, listener: Listener): this;
  once(eventName: string, listener: Listener): this;
  removeListener(eventName: string, listener: Listener): this;
  removeAllListeners(eventName?: string): this;

  queryFilter<EventArgsArray extends Array<any>, EventArgsObject>(
    event: TypedEventFilter<EventArgsArray, EventArgsObject>,
    fromBlockOrBlockhash?: string | number | undefined,
    toBlock?: string | number | undefined
  ): Promise<Array<TypedEvent<EventArgsArray & EventArgsObject>>>;

  interface: IMultiTokenWrapperInterface;

  functions: {
    getAmountToWrap(
      _toTokenAddress: string,
      _deposit: BigNumberish,
      overrides?: CallOverrides
    ): Promise<[BigNumber]>;

    getFeeFromAmount(
      _toTokenAddress: string,
      _amountToWrap: BigNumberish,
      overrides?: CallOverrides
    ): Promise<[BigNumber]>;

    setFee(
      _toTokenAddress: string,
      _feePercentage: BigNumberish,
      _nonce: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    unwrap(
      _fromTokenAddress: string,
      _toTokenAddress: string,
      _amount: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    unwrapAndSendTo(
      _fromTokenAddress: string,
      _toTokenAddress: string,
      _amount: BigNumberish,
      _recipient: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    unwrapFor(
      _sender: string,
      _fromTokenAddress: string,
      _toTokenAddress: string,
      _amount: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    wrap(
      _fromTokenAddress: string,
      _toTokenAddress: string,
      _amount: BigNumberish,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    wrapFor(
      _sender: string,
      _fromTokenAddress: string,
      _toTokenAddress: string,
      _amount: BigNumberish,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    wrapForAndSendTo(
      _sender: string,
      _fromTokenAddress: string,
      _toTokenAddress: string,
      _amount: BigNumberish,
      _mintRecipient: string,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;
  };

  getAmountToWrap(
    _toTokenAddress: string,
    _deposit: BigNumberish,
    overrides?: CallOverrides
  ): Promise<BigNumber>;

  getFeeFromAmount(
    _toTokenAddress: string,
    _amountToWrap: BigNumberish,
    overrides?: CallOverrides
  ): Promise<BigNumber>;

  setFee(
    _toTokenAddress: string,
    _feePercentage: BigNumberish,
    _nonce: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  unwrap(
    _fromTokenAddress: string,
    _toTokenAddress: string,
    _amount: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  unwrapAndSendTo(
    _fromTokenAddress: string,
    _toTokenAddress: string,
    _amount: BigNumberish,
    _recipient: string,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  unwrapFor(
    _sender: string,
    _fromTokenAddress: string,
    _toTokenAddress: string,
    _amount: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  wrap(
    _fromTokenAddress: string,
    _toTokenAddress: string,
    _amount: BigNumberish,
    overrides?: PayableOverrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  wrapFor(
    _sender: string,
    _fromTokenAddress: string,
    _toTokenAddress: string,
    _amount: BigNumberish,
    overrides?: PayableOverrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  wrapForAndSendTo(
    _sender: string,
    _fromTokenAddress: string,
    _toTokenAddress: string,
    _amount: BigNumberish,
    _mintRecipient: string,
    overrides?: PayableOverrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  callStatic: {
    getAmountToWrap(
      _toTokenAddress: string,
      _deposit: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    getFeeFromAmount(
      _toTokenAddress: string,
      _amountToWrap: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    setFee(
      _toTokenAddress: string,
      _feePercentage: BigNumberish,
      _nonce: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

    unwrap(
      _fromTokenAddress: string,
      _toTokenAddress: string,
      _amount: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

    unwrapAndSendTo(
      _fromTokenAddress: string,
      _toTokenAddress: string,
      _amount: BigNumberish,
      _recipient: string,
      overrides?: CallOverrides
    ): Promise<void>;

    unwrapFor(
      _sender: string,
      _fromTokenAddress: string,
      _toTokenAddress: string,
      _amount: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

    wrap(
      _fromTokenAddress: string,
      _toTokenAddress: string,
      _amount: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

    wrapFor(
      _sender: string,
      _fromTokenAddress: string,
      _toTokenAddress: string,
      _amount: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

    wrapForAndSendTo(
      _sender: string,
      _fromTokenAddress: string,
      _toTokenAddress: string,
      _amount: BigNumberish,
      _mintRecipient: string,
      overrides?: CallOverrides
    ): Promise<void>;
  };

  filters: {};

  estimateGas: {
    getAmountToWrap(
      _toTokenAddress: string,
      _deposit: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    getFeeFromAmount(
      _toTokenAddress: string,
      _amountToWrap: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    setFee(
      _toTokenAddress: string,
      _feePercentage: BigNumberish,
      _nonce: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    unwrap(
      _fromTokenAddress: string,
      _toTokenAddress: string,
      _amount: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    unwrapAndSendTo(
      _fromTokenAddress: string,
      _toTokenAddress: string,
      _amount: BigNumberish,
      _recipient: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    unwrapFor(
      _sender: string,
      _fromTokenAddress: string,
      _toTokenAddress: string,
      _amount: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    wrap(
      _fromTokenAddress: string,
      _toTokenAddress: string,
      _amount: BigNumberish,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    wrapFor(
      _sender: string,
      _fromTokenAddress: string,
      _toTokenAddress: string,
      _amount: BigNumberish,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    wrapForAndSendTo(
      _sender: string,
      _fromTokenAddress: string,
      _toTokenAddress: string,
      _amount: BigNumberish,
      _mintRecipient: string,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;
  };

  populateTransaction: {
    getAmountToWrap(
      _toTokenAddress: string,
      _deposit: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    getFeeFromAmount(
      _toTokenAddress: string,
      _amountToWrap: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    setFee(
      _toTokenAddress: string,
      _feePercentage: BigNumberish,
      _nonce: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    unwrap(
      _fromTokenAddress: string,
      _toTokenAddress: string,
      _amount: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    unwrapAndSendTo(
      _fromTokenAddress: string,
      _toTokenAddress: string,
      _amount: BigNumberish,
      _recipient: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    unwrapFor(
      _sender: string,
      _fromTokenAddress: string,
      _toTokenAddress: string,
      _amount: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    wrap(
      _fromTokenAddress: string,
      _toTokenAddress: string,
      _amount: BigNumberish,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    wrapFor(
      _sender: string,
      _fromTokenAddress: string,
      _toTokenAddress: string,
      _amount: BigNumberish,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    wrapForAndSendTo(
      _sender: string,
      _fromTokenAddress: string,
      _toTokenAddress: string,
      _amount: BigNumberish,
      _mintRecipient: string,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;
  };
}
