/* 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 ITokenWrapperInterface extends ethers.utils.Interface {
  functions: {
    "getAmountToWrap(uint256)": FunctionFragment;
    "getFeeFromAmount(uint256)": FunctionFragment;
    "isValidToken(address)": FunctionFragment;
    "unwrap(address,uint256)": FunctionFragment;
    "unwrapAndSendTo(address,uint256,address)": FunctionFragment;
    "unwrapFor(address,address,uint256)": FunctionFragment;
    "wrap(address,uint256)": FunctionFragment;
    "wrapFor(address,address,uint256)": FunctionFragment;
    "wrapForAndSendTo(address,address,uint256,address)": FunctionFragment;
  };

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

  decodeFunctionResult(
    functionFragment: "getAmountToWrap",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getFeeFromAmount",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "isValidToken",
    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 ITokenWrapper 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: ITokenWrapperInterface;

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

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

    isValidToken(
      _tokenAddress: string,
      overrides?: CallOverrides
    ): Promise<[boolean]>;

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

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

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

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

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

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

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

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

  isValidToken(
    _tokenAddress: string,
    overrides?: CallOverrides
  ): Promise<boolean>;

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

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

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

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

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

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

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

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

    isValidToken(
      _tokenAddress: string,
      overrides?: CallOverrides
    ): Promise<boolean>;

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

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

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

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

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

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

  filters: {};

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

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

    isValidToken(
      _tokenAddress: string,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

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

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

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

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

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

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

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

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

    isValidToken(
      _tokenAddress: string,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

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

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

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

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

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

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