/* 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 MockPoolInterface extends Interface {
  getFunction(
    nameOrSignature:
      | "communityFee"
      | "fee"
      | "globalState"
      | "plugin"
      | "pluginConfig"
      | "price"
      | "setGlobalState"
      | "setPlugin"
      | "setPluginConfig"
      | "tick"
  ): FunctionFragment;

  encodeFunctionData(
    functionFragment: "communityFee",
    values?: undefined
  ): string;
  encodeFunctionData(functionFragment: "fee", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "globalState",
    values?: undefined
  ): string;
  encodeFunctionData(functionFragment: "plugin", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "pluginConfig",
    values?: undefined
  ): string;
  encodeFunctionData(functionFragment: "price", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "setGlobalState",
    values: [BigNumberish, BigNumberish, BigNumberish, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "setPlugin",
    values: [AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "setPluginConfig",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(functionFragment: "tick", values?: undefined): string;

  decodeFunctionResult(
    functionFragment: "communityFee",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "fee", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "globalState",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "plugin", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "pluginConfig",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "price", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "setGlobalState",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "setPlugin", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "setPluginConfig",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "tick", data: BytesLike): Result;
}

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

  interface: MockPoolInterface;

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

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

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

  globalState: TypedContractMethod<
    [],
    [
      [bigint, bigint, bigint, bigint, bigint, boolean] & {
        price_: bigint;
        tick_: bigint;
        fee_: bigint;
        pluginConfig_: bigint;
        communityFee_: bigint;
        unlocked_: boolean;
      }
    ],
    "view"
  >;

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

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

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

  setGlobalState: TypedContractMethod<
    [
      _price: BigNumberish,
      _tick: BigNumberish,
      _fee: BigNumberish,
      _communityFee: BigNumberish
    ],
    [void],
    "nonpayable"
  >;

  setPlugin: TypedContractMethod<[_plugin: AddressLike], [void], "nonpayable">;

  setPluginConfig: TypedContractMethod<
    [_config: BigNumberish],
    [void],
    "nonpayable"
  >;

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

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

  getFunction(
    nameOrSignature: "communityFee"
  ): TypedContractMethod<[], [bigint], "view">;
  getFunction(
    nameOrSignature: "fee"
  ): TypedContractMethod<[], [bigint], "view">;
  getFunction(
    nameOrSignature: "globalState"
  ): TypedContractMethod<
    [],
    [
      [bigint, bigint, bigint, bigint, bigint, boolean] & {
        price_: bigint;
        tick_: bigint;
        fee_: bigint;
        pluginConfig_: bigint;
        communityFee_: bigint;
        unlocked_: boolean;
      }
    ],
    "view"
  >;
  getFunction(
    nameOrSignature: "plugin"
  ): TypedContractMethod<[], [string], "view">;
  getFunction(
    nameOrSignature: "pluginConfig"
  ): TypedContractMethod<[], [bigint], "view">;
  getFunction(
    nameOrSignature: "price"
  ): TypedContractMethod<[], [bigint], "view">;
  getFunction(
    nameOrSignature: "setGlobalState"
  ): TypedContractMethod<
    [
      _price: BigNumberish,
      _tick: BigNumberish,
      _fee: BigNumberish,
      _communityFee: BigNumberish
    ],
    [void],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "setPlugin"
  ): TypedContractMethod<[_plugin: AddressLike], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "setPluginConfig"
  ): TypedContractMethod<[_config: BigNumberish], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "tick"
  ): TypedContractMethod<[], [bigint], "view">;

  filters: {};
}
