/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
  BaseContract,
  BigNumber,
  BigNumberish,
  BytesLike,
  CallOverrides,
  ContractTransaction,
  Overrides,
  PopulatedTransaction,
  Signer,
  utils,
} from "ethers";
import type { FunctionFragment, Result } from "@ethersproject/abi";
import type { Listener, Provider } from "@ethersproject/providers";
import type {
  TypedEventFilter,
  TypedEvent,
  TypedListener,
  OnEvent,
} from "./common";

export interface ITokenMessengerInterface extends utils.Interface {
  functions: {
    "depositForBurn(uint256,uint32,bytes32,address)": FunctionFragment;
    "localMinter()": FunctionFragment;
  };

  getFunction(
    nameOrSignatureOrTopic: "depositForBurn" | "localMinter"
  ): FunctionFragment;

  encodeFunctionData(
    functionFragment: "depositForBurn",
    values: [BigNumberish, BigNumberish, BytesLike, string]
  ): string;
  encodeFunctionData(
    functionFragment: "localMinter",
    values?: undefined
  ): string;

  decodeFunctionResult(
    functionFragment: "depositForBurn",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "localMinter",
    data: BytesLike
  ): Result;

  events: {};
}

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

  interface: ITokenMessengerInterface;

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

  listeners<TEvent extends TypedEvent>(
    eventFilter?: TypedEventFilter<TEvent>
  ): Array<TypedListener<TEvent>>;
  listeners(eventName?: string): Array<Listener>;
  removeAllListeners<TEvent extends TypedEvent>(
    eventFilter: TypedEventFilter<TEvent>
  ): this;
  removeAllListeners(eventName?: string): this;
  off: OnEvent<this>;
  on: OnEvent<this>;
  once: OnEvent<this>;
  removeListener: OnEvent<this>;

  functions: {
    depositForBurn(
      amount: BigNumberish,
      destinationDomain: BigNumberish,
      mintRecipient: BytesLike,
      burnToken: string,
      overrides?: Overrides & { from?: string }
    ): Promise<ContractTransaction>;

    localMinter(
      overrides?: CallOverrides
    ): Promise<[string] & { minter: string }>;
  };

  depositForBurn(
    amount: BigNumberish,
    destinationDomain: BigNumberish,
    mintRecipient: BytesLike,
    burnToken: string,
    overrides?: Overrides & { from?: string }
  ): Promise<ContractTransaction>;

  localMinter(overrides?: CallOverrides): Promise<string>;

  callStatic: {
    depositForBurn(
      amount: BigNumberish,
      destinationDomain: BigNumberish,
      mintRecipient: BytesLike,
      burnToken: string,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    localMinter(overrides?: CallOverrides): Promise<string>;
  };

  filters: {};

  estimateGas: {
    depositForBurn(
      amount: BigNumberish,
      destinationDomain: BigNumberish,
      mintRecipient: BytesLike,
      burnToken: string,
      overrides?: Overrides & { from?: string }
    ): Promise<BigNumber>;

    localMinter(overrides?: CallOverrides): Promise<BigNumber>;
  };

  populateTransaction: {
    depositForBurn(
      amount: BigNumberish,
      destinationDomain: BigNumberish,
      mintRecipient: BytesLike,
      burnToken: string,
      overrides?: Overrides & { from?: string }
    ): Promise<PopulatedTransaction>;

    localMinter(overrides?: CallOverrides): Promise<PopulatedTransaction>;
  };
}
