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

export interface LimitOrderTestPluginFactoryInterface extends Interface {
  getFunction(
    nameOrSignature:
      | "afterCreatePoolHook"
      | "algebraFactory"
      | "beforeCreatePoolHook"
      | "createPluginForExistingPool"
      | "limitOrderManager"
      | "pluginByPool"
      | "setLimitOrderManager"
  ): FunctionFragment;

  getEvent(nameOrSignatureOrTopic: "LimitOrderManager"): EventFragment;

  encodeFunctionData(
    functionFragment: "afterCreatePoolHook",
    values: [AddressLike, AddressLike, AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "algebraFactory",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "beforeCreatePoolHook",
    values: [
      AddressLike,
      AddressLike,
      AddressLike,
      AddressLike,
      AddressLike,
      BytesLike
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "createPluginForExistingPool",
    values: [AddressLike, AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "limitOrderManager",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "pluginByPool",
    values: [AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "setLimitOrderManager",
    values: [AddressLike]
  ): string;

  decodeFunctionResult(
    functionFragment: "afterCreatePoolHook",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "algebraFactory",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "beforeCreatePoolHook",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "createPluginForExistingPool",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "limitOrderManager",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "pluginByPool",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setLimitOrderManager",
    data: BytesLike
  ): Result;
}

export namespace LimitOrderManagerEvent {
  export type InputTuple = [newLimitOrderManager: AddressLike];
  export type OutputTuple = [newLimitOrderManager: string];
  export interface OutputObject {
    newLimitOrderManager: string;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

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

  interface: LimitOrderTestPluginFactoryInterface;

  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>;

  afterCreatePoolHook: TypedContractMethod<
    [arg0: AddressLike, arg1: AddressLike, arg2: AddressLike],
    [void],
    "view"
  >;

  algebraFactory: TypedContractMethod<[], [string], "view">;

  beforeCreatePoolHook: TypedContractMethod<
    [
      pool: AddressLike,
      arg1: AddressLike,
      arg2: AddressLike,
      arg3: AddressLike,
      arg4: AddressLike,
      arg5: BytesLike
    ],
    [string],
    "nonpayable"
  >;

  createPluginForExistingPool: TypedContractMethod<
    [token0: AddressLike, token1: AddressLike],
    [string],
    "nonpayable"
  >;

  limitOrderManager: TypedContractMethod<[], [string], "view">;

  pluginByPool: TypedContractMethod<
    [poolAddress: AddressLike],
    [string],
    "view"
  >;

  setLimitOrderManager: TypedContractMethod<
    [newLimitOrderManager: AddressLike],
    [void],
    "nonpayable"
  >;

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

  getFunction(
    nameOrSignature: "afterCreatePoolHook"
  ): TypedContractMethod<
    [arg0: AddressLike, arg1: AddressLike, arg2: AddressLike],
    [void],
    "view"
  >;
  getFunction(
    nameOrSignature: "algebraFactory"
  ): TypedContractMethod<[], [string], "view">;
  getFunction(
    nameOrSignature: "beforeCreatePoolHook"
  ): TypedContractMethod<
    [
      pool: AddressLike,
      arg1: AddressLike,
      arg2: AddressLike,
      arg3: AddressLike,
      arg4: AddressLike,
      arg5: BytesLike
    ],
    [string],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "createPluginForExistingPool"
  ): TypedContractMethod<
    [token0: AddressLike, token1: AddressLike],
    [string],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "limitOrderManager"
  ): TypedContractMethod<[], [string], "view">;
  getFunction(
    nameOrSignature: "pluginByPool"
  ): TypedContractMethod<[poolAddress: AddressLike], [string], "view">;
  getFunction(
    nameOrSignature: "setLimitOrderManager"
  ): TypedContractMethod<
    [newLimitOrderManager: AddressLike],
    [void],
    "nonpayable"
  >;

  getEvent(
    key: "LimitOrderManager"
  ): TypedContractEvent<
    LimitOrderManagerEvent.InputTuple,
    LimitOrderManagerEvent.OutputTuple,
    LimitOrderManagerEvent.OutputObject
  >;

  filters: {
    "LimitOrderManager(address)": TypedContractEvent<
      LimitOrderManagerEvent.InputTuple,
      LimitOrderManagerEvent.OutputTuple,
      LimitOrderManagerEvent.OutputObject
    >;
    LimitOrderManager: TypedContractEvent<
      LimitOrderManagerEvent.InputTuple,
      LimitOrderManagerEvent.OutputTuple,
      LimitOrderManagerEvent.OutputObject
    >;
  };
}
