/* 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 ILimitOrderPluginFactoryInterface extends Interface {
  getFunction(nameOrSignature: "setLimitOrderManager"): FunctionFragment;

  getEvent(nameOrSignatureOrTopic: "LimitOrderManager"): EventFragment;

  encodeFunctionData(
    functionFragment: "setLimitOrderManager",
    values: [AddressLike]
  ): string;

  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 ILimitOrderPluginFactory extends BaseContract {
  connect(runner?: ContractRunner | null): ILimitOrderPluginFactory;
  waitForDeployment(): Promise<this>;

  interface: ILimitOrderPluginFactoryInterface;

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

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

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

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