/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
  BaseContract,
  BigNumberish,
  BytesLike,
  FunctionFragment,
  Result,
  Interface,
  AddressLike,
  ContractRunner,
  ContractMethod,
  Listener,
} from "ethers";
import type {
  TypedContractEvent,
  TypedDeferredTopicFilter,
  TypedEventLog,
  TypedListener,
  TypedContractMethod,
} from "../../common";

export interface MockLimitOrderManagerInterface extends Interface {
  getFunction(
    nameOrSignature:
      | "afterSwap"
      | "clearSwapCalls"
      | "getLastSwapCall"
      | "getSwapCallsCount"
      | "swapCalls"
  ): FunctionFragment;

  encodeFunctionData(
    functionFragment: "afterSwap",
    values: [AddressLike, boolean, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "clearSwapCalls",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "getLastSwapCall",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "getSwapCallsCount",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "swapCalls",
    values: [BigNumberish]
  ): string;

  decodeFunctionResult(functionFragment: "afterSwap", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "clearSwapCalls",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getLastSwapCall",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getSwapCallsCount",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "swapCalls", data: BytesLike): Result;
}

export interface MockLimitOrderManager extends BaseContract {
  connect(runner?: ContractRunner | null): MockLimitOrderManager;
  waitForDeployment(): Promise<this>;

  interface: MockLimitOrderManagerInterface;

  queryFilter<TCEvent extends TypedContractEvent>(
    event: TCEvent,
    fromBlockOrBlockhash?: string | number | undefined,
    toBlock?: string | number | undefined
  ): Promise<Array<TypedEventLog<TCEvent>>>;
  queryFilter<TCEvent extends TypedContractEvent>(
    filter: TypedDeferredTopicFilter<TCEvent>,
    fromBlockOrBlockhash?: string | number | undefined,
    toBlock?: string | number | undefined
  ): Promise<Array<TypedEventLog<TCEvent>>>;

  on<TCEvent extends TypedContractEvent>(
    event: TCEvent,
    listener: TypedListener<TCEvent>
  ): Promise<this>;
  on<TCEvent extends TypedContractEvent>(
    filter: TypedDeferredTopicFilter<TCEvent>,
    listener: TypedListener<TCEvent>
  ): Promise<this>;

  once<TCEvent extends TypedContractEvent>(
    event: TCEvent,
    listener: TypedListener<TCEvent>
  ): Promise<this>;
  once<TCEvent extends TypedContractEvent>(
    filter: TypedDeferredTopicFilter<TCEvent>,
    listener: TypedListener<TCEvent>
  ): Promise<this>;

  listeners<TCEvent extends TypedContractEvent>(
    event: TCEvent
  ): Promise<Array<TypedListener<TCEvent>>>;
  listeners(eventName?: string): Promise<Array<Listener>>;
  removeAllListeners<TCEvent extends TypedContractEvent>(
    event?: TCEvent
  ): Promise<this>;

  afterSwap: TypedContractMethod<
    [pool: AddressLike, zeroToOne: boolean, tick: BigNumberish],
    [void],
    "nonpayable"
  >;

  clearSwapCalls: TypedContractMethod<[], [void], "nonpayable">;

  getLastSwapCall: TypedContractMethod<
    [],
    [
      [string, boolean, bigint] & {
        pool: string;
        zeroToOne: boolean;
        tick: bigint;
      }
    ],
    "view"
  >;

  getSwapCallsCount: TypedContractMethod<[], [bigint], "view">;

  swapCalls: TypedContractMethod<
    [arg0: BigNumberish],
    [
      [string, boolean, bigint] & {
        pool: string;
        zeroToOne: boolean;
        tick: bigint;
      }
    ],
    "view"
  >;

  getFunction<T extends ContractMethod = ContractMethod>(
    key: string | FunctionFragment
  ): T;

  getFunction(
    nameOrSignature: "afterSwap"
  ): TypedContractMethod<
    [pool: AddressLike, zeroToOne: boolean, tick: BigNumberish],
    [void],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "clearSwapCalls"
  ): TypedContractMethod<[], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "getLastSwapCall"
  ): TypedContractMethod<
    [],
    [
      [string, boolean, bigint] & {
        pool: string;
        zeroToOne: boolean;
        tick: bigint;
      }
    ],
    "view"
  >;
  getFunction(
    nameOrSignature: "getSwapCallsCount"
  ): TypedContractMethod<[], [bigint], "view">;
  getFunction(
    nameOrSignature: "swapCalls"
  ): TypedContractMethod<
    [arg0: BigNumberish],
    [
      [string, boolean, bigint] & {
        pool: string;
        zeroToOne: boolean;
        tick: bigint;
      }
    ],
    "view"
  >;

  filters: {};
}
