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

export declare namespace UniswapV3PoolMock {
  export type Slot0Struct = {
    sqrtPriceX96: BigNumberish;
    tick: BigNumberish;
    observationIndex: BigNumberish;
    observationCardinality: BigNumberish;
    observationCardinalityNext: BigNumberish;
    feeProtocol: BigNumberish;
    unlocked: boolean;
  };

  export type Slot0StructOutput = [
    sqrtPriceX96: bigint,
    tick: bigint,
    observationIndex: bigint,
    observationCardinality: bigint,
    observationCardinalityNext: bigint,
    feeProtocol: bigint,
    unlocked: boolean
  ] & {
    sqrtPriceX96: bigint;
    tick: bigint;
    observationIndex: bigint;
    observationCardinality: bigint;
    observationCardinalityNext: bigint;
    feeProtocol: bigint;
    unlocked: boolean;
  };
}

export interface UniswapV3PoolMockInterface extends Interface {
  getFunction(
    nameOrSignature:
      | "flash"
      | "observe"
      | "set_mockFee"
      | "set_mockSqrtPriceX96"
      | "set_mockToken0"
      | "set_mockToken1"
      | "slot0"
      | "token0"
      | "token1"
  ): FunctionFragment;

  getEvent(nameOrSignatureOrTopic: "Flash"): EventFragment;

  encodeFunctionData(
    functionFragment: "flash",
    values: [AddressLike, BigNumberish, BigNumberish, BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "observe",
    values: [BigNumberish[]]
  ): string;
  encodeFunctionData(
    functionFragment: "set_mockFee",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "set_mockSqrtPriceX96",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "set_mockToken0",
    values: [AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "set_mockToken1",
    values: [AddressLike]
  ): string;
  encodeFunctionData(functionFragment: "slot0", values?: undefined): string;
  encodeFunctionData(functionFragment: "token0", values?: undefined): string;
  encodeFunctionData(functionFragment: "token1", values?: undefined): string;

  decodeFunctionResult(functionFragment: "flash", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "observe", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "set_mockFee",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "set_mockSqrtPriceX96",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "set_mockToken0",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "set_mockToken1",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "slot0", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "token0", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "token1", data: BytesLike): Result;
}

export namespace FlashEvent {
  export type InputTuple = [
    recipient: AddressLike,
    amount0: BigNumberish,
    amount1: BigNumberish,
    paid0: BigNumberish,
    paid1: BigNumberish
  ];
  export type OutputTuple = [
    recipient: string,
    amount0: bigint,
    amount1: bigint,
    paid0: bigint,
    paid1: bigint
  ];
  export interface OutputObject {
    recipient: string;
    amount0: bigint;
    amount1: bigint;
    paid0: bigint;
    paid1: bigint;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

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

  interface: UniswapV3PoolMockInterface;

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

  flash: TypedContractMethod<
    [
      recipient: AddressLike,
      amount0: BigNumberish,
      amount1: BigNumberish,
      data: BytesLike
    ],
    [void],
    "nonpayable"
  >;

  observe: TypedContractMethod<
    [secondsAgos: BigNumberish[]],
    [
      [bigint[], bigint[]] & {
        tickCumulatives: bigint[];
        secondsPerLiquidityCumulativeX128s: bigint[];
      }
    ],
    "view"
  >;

  set_mockFee: TypedContractMethod<[f0: BigNumberish], [void], "nonpayable">;

  set_mockSqrtPriceX96: TypedContractMethod<
    [_price: BigNumberish],
    [void],
    "nonpayable"
  >;

  set_mockToken0: TypedContractMethod<[t0: AddressLike], [void], "nonpayable">;

  set_mockToken1: TypedContractMethod<[t1: AddressLike], [void], "nonpayable">;

  slot0: TypedContractMethod<
    [],
    [UniswapV3PoolMock.Slot0StructOutput],
    "nonpayable"
  >;

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

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

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

  getFunction(
    nameOrSignature: "flash"
  ): TypedContractMethod<
    [
      recipient: AddressLike,
      amount0: BigNumberish,
      amount1: BigNumberish,
      data: BytesLike
    ],
    [void],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "observe"
  ): TypedContractMethod<
    [secondsAgos: BigNumberish[]],
    [
      [bigint[], bigint[]] & {
        tickCumulatives: bigint[];
        secondsPerLiquidityCumulativeX128s: bigint[];
      }
    ],
    "view"
  >;
  getFunction(
    nameOrSignature: "set_mockFee"
  ): TypedContractMethod<[f0: BigNumberish], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "set_mockSqrtPriceX96"
  ): TypedContractMethod<[_price: BigNumberish], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "set_mockToken0"
  ): TypedContractMethod<[t0: AddressLike], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "set_mockToken1"
  ): TypedContractMethod<[t1: AddressLike], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "slot0"
  ): TypedContractMethod<
    [],
    [UniswapV3PoolMock.Slot0StructOutput],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "token0"
  ): TypedContractMethod<[], [string], "nonpayable">;
  getFunction(
    nameOrSignature: "token1"
  ): TypedContractMethod<[], [string], "nonpayable">;

  getEvent(
    key: "Flash"
  ): TypedContractEvent<
    FlashEvent.InputTuple,
    FlashEvent.OutputTuple,
    FlashEvent.OutputObject
  >;

  filters: {
    "Flash(address,uint256,uint256,uint256,uint256)": TypedContractEvent<
      FlashEvent.InputTuple,
      FlashEvent.OutputTuple,
      FlashEvent.OutputObject
    >;
    Flash: TypedContractEvent<
      FlashEvent.InputTuple,
      FlashEvent.OutputTuple,
      FlashEvent.OutputObject
    >;
  };
}
