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

  encodeFunctionData(
    functionFragment: "getLimitOrderManager",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "initializeLimitOrder",
    values: [AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "setLimitOrderManager",
    values: [AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "updateLimitOrderManagerState",
    values: [AddressLike, boolean, BigNumberish]
  ): string;

  decodeFunctionResult(
    functionFragment: "getLimitOrderManager",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "initializeLimitOrder",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setLimitOrderManager",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "updateLimitOrderManagerState",
    data: BytesLike
  ): Result;
}

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

  interface: LimitOrderPluginImplementationInterface;

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

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

  initializeLimitOrder: TypedContractMethod<
    [limitOrderManager: AddressLike],
    [void],
    "nonpayable"
  >;

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

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

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

  getFunction(
    nameOrSignature: "getLimitOrderManager"
  ): TypedContractMethod<[], [string], "view">;
  getFunction(
    nameOrSignature: "initializeLimitOrder"
  ): TypedContractMethod<
    [limitOrderManager: AddressLike],
    [void],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "setLimitOrderManager"
  ): TypedContractMethod<[manager: AddressLike], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "updateLimitOrderManagerState"
  ): TypedContractMethod<
    [pool: AddressLike, zeroToOne: boolean, tick: BigNumberish],
    [void],
    "nonpayable"
  >;

  filters: {};
}
