/* 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 MockPluginFactoryInterface extends Interface {
  getFunction(
    nameOrSignature:
      | "afterCreatePoolHook"
      | "beforeCreatePoolHook"
      | "defaultPluginImplementation"
      | "lastCreatedPlugin"
      | "setDefaultImplementation"
  ): FunctionFragment;

  getEvent(nameOrSignatureOrTopic: "PluginCreated"): EventFragment;

  encodeFunctionData(
    functionFragment: "afterCreatePoolHook",
    values: [AddressLike, AddressLike, AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "beforeCreatePoolHook",
    values: [
      AddressLike,
      AddressLike,
      AddressLike,
      AddressLike,
      AddressLike,
      BytesLike
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "defaultPluginImplementation",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "lastCreatedPlugin",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "setDefaultImplementation",
    values: [AddressLike]
  ): string;

  decodeFunctionResult(
    functionFragment: "afterCreatePoolHook",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "beforeCreatePoolHook",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "defaultPluginImplementation",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "lastCreatedPlugin",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setDefaultImplementation",
    data: BytesLike
  ): Result;
}

export namespace PluginCreatedEvent {
  export type InputTuple = [pool: AddressLike, plugin: AddressLike];
  export type OutputTuple = [pool: string, plugin: string];
  export interface OutputObject {
    pool: string;
    plugin: 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 MockPluginFactory extends BaseContract {
  connect(runner?: ContractRunner | null): MockPluginFactory;
  waitForDeployment(): Promise<this>;

  interface: MockPluginFactoryInterface;

  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],
    "nonpayable"
  >;

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

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

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

  setDefaultImplementation: TypedContractMethod<
    [implementation: AddressLike],
    [void],
    "nonpayable"
  >;

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

  getFunction(
    nameOrSignature: "afterCreatePoolHook"
  ): TypedContractMethod<
    [arg0: AddressLike, arg1: AddressLike, arg2: AddressLike],
    [void],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "beforeCreatePoolHook"
  ): TypedContractMethod<
    [
      pool: AddressLike,
      arg1: AddressLike,
      arg2: AddressLike,
      arg3: AddressLike,
      arg4: AddressLike,
      arg5: BytesLike
    ],
    [string],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "defaultPluginImplementation"
  ): TypedContractMethod<[], [string], "view">;
  getFunction(
    nameOrSignature: "lastCreatedPlugin"
  ): TypedContractMethod<[], [string], "view">;
  getFunction(
    nameOrSignature: "setDefaultImplementation"
  ): TypedContractMethod<[implementation: AddressLike], [void], "nonpayable">;

  getEvent(
    key: "PluginCreated"
  ): TypedContractEvent<
    PluginCreatedEvent.InputTuple,
    PluginCreatedEvent.OutputTuple,
    PluginCreatedEvent.OutputObject
  >;

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