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

import {
  ethers,
  EventFilter,
  Signer,
  BigNumber,
  BigNumberish,
  PopulatedTransaction,
  BaseContract,
  ContractTransaction,
  Overrides,
  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 L2GraphTokenLockTransferToolInterface extends ethers.utils.Interface {
  functions: {
    "graphToken()": FunctionFragment;
    "l1GraphToken()": FunctionFragment;
    "l2Gateway()": FunctionFragment;
    "withdrawToL1Locked(uint256)": FunctionFragment;
  };

  encodeFunctionData(
    functionFragment: "graphToken",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "l1GraphToken",
    values?: undefined
  ): string;
  encodeFunctionData(functionFragment: "l2Gateway", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "withdrawToL1Locked",
    values: [BigNumberish]
  ): string;

  decodeFunctionResult(functionFragment: "graphToken", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "l1GraphToken",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "l2Gateway", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "withdrawToL1Locked",
    data: BytesLike
  ): Result;

  events: {
    "LockedFundsSentToL1(address,address,address,uint256)": EventFragment;
  };

  getEvent(nameOrSignatureOrTopic: "LockedFundsSentToL1"): EventFragment;
}

export type LockedFundsSentToL1Event = TypedEvent<
  [string, string, string, BigNumber] & {
    l1Wallet: string;
    l2Wallet: string;
    l2LockManager: string;
    amount: BigNumber;
  }
>;

export class L2GraphTokenLockTransferTool 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: L2GraphTokenLockTransferToolInterface;

  functions: {
    graphToken(overrides?: CallOverrides): Promise<[string]>;

    l1GraphToken(overrides?: CallOverrides): Promise<[string]>;

    l2Gateway(overrides?: CallOverrides): Promise<[string]>;

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

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

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

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

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

  callStatic: {
    graphToken(overrides?: CallOverrides): Promise<string>;

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

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

    withdrawToL1Locked(
      _amount: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;
  };

  filters: {
    "LockedFundsSentToL1(address,address,address,uint256)"(
      l1Wallet?: string | null,
      l2Wallet?: string | null,
      l2LockManager?: string | null,
      amount?: null
    ): TypedEventFilter<
      [string, string, string, BigNumber],
      {
        l1Wallet: string;
        l2Wallet: string;
        l2LockManager: string;
        amount: BigNumber;
      }
    >;

    LockedFundsSentToL1(
      l1Wallet?: string | null,
      l2Wallet?: string | null,
      l2LockManager?: string | null,
      amount?: null
    ): TypedEventFilter<
      [string, string, string, BigNumber],
      {
        l1Wallet: string;
        l2Wallet: string;
        l2LockManager: string;
        amount: BigNumber;
      }
    >;
  };

  estimateGas: {
    graphToken(overrides?: CallOverrides): Promise<BigNumber>;

    l1GraphToken(overrides?: CallOverrides): Promise<BigNumber>;

    l2Gateway(overrides?: CallOverrides): Promise<BigNumber>;

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

  populateTransaction: {
    graphToken(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    l1GraphToken(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    l2Gateway(overrides?: CallOverrides): Promise<PopulatedTransaction>;

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