/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */

import {
  ethers,
  EventFilter,
  Signer,
  BigNumber,
  BigNumberish,
  PopulatedTransaction,
  BaseContract,
  ContractTransaction,
  Overrides,
  CallOverrides,
} from "ethers";
import { BytesLike } from "@ethersproject/bytes";
import { Listener, Provider } from "@ethersproject/providers";
import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";
import type { TypedEventFilter, TypedEvent, TypedListener } from "./common";

interface BatchMerkleTreeMockInterface extends ethers.utils.Interface {
  functions: {
    "FIELD_SIZE()": FunctionFragment;
    "HEADER_SIZE()": FunctionFragment;
    "ITEM_SIZE()": FunctionFragment;
    "ROOT_HISTORY_SIZE()": FunctionFragment;
    "SNARK_FIELD()": FunctionFragment;
    "ZERO_VALUE()": FunctionFragment;
    "batchInsert(bytes,bytes32,bytes32,bytes32,uint32,bytes32[],uint32)": FunctionFragment;
    "blockNumber()": FunctionFragment;
    "checkLeavesLength(bytes32[])": FunctionFragment;
    "commitments(uint256)": FunctionFragment;
    "currentRoot()": FunctionFragment;
    "currentRootIndex()": FunctionFragment;
    "filledSubtrees(uint256)": FunctionFragment;
    "getHasher()": FunctionFragment;
    "getLastRoot()": FunctionFragment;
    "getLevels()": FunctionFragment;
    "getNextIndex()": FunctionFragment;
    "getZeroHash(uint32)": FunctionFragment;
    "hashLeftRight(uint256,uint256)": FunctionFragment;
    "hasher()": FunctionFragment;
    "initialized()": FunctionFragment;
    "isKnownRoot(uint256)": FunctionFragment;
    "levels()": FunctionFragment;
    "nextIndex()": FunctionFragment;
    "nullifierHashes(uint256)": FunctionFragment;
    "previousRoot()": FunctionFragment;
    "queue(uint256)": FunctionFragment;
    "queueLength()": FunctionFragment;
    "registerInsertion(address,bytes32)": FunctionFragment;
    "roots(uint256)": FunctionFragment;
    "treeUpdateVerifier()": FunctionFragment;
    "unpackProof(uint256[8])": FunctionFragment;
  };

  encodeFunctionData(
    functionFragment: "FIELD_SIZE",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "HEADER_SIZE",
    values?: undefined
  ): string;
  encodeFunctionData(functionFragment: "ITEM_SIZE", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "ROOT_HISTORY_SIZE",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "SNARK_FIELD",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "ZERO_VALUE",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "batchInsert",
    values: [
      BytesLike,
      BytesLike,
      BytesLike,
      BytesLike,
      BigNumberish,
      BytesLike[],
      BigNumberish
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "blockNumber",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "checkLeavesLength",
    values: [BytesLike[]]
  ): string;
  encodeFunctionData(
    functionFragment: "commitments",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "currentRoot",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "currentRootIndex",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "filledSubtrees",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(functionFragment: "getHasher", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "getLastRoot",
    values?: undefined
  ): string;
  encodeFunctionData(functionFragment: "getLevels", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "getNextIndex",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "getZeroHash",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "hashLeftRight",
    values: [BigNumberish, BigNumberish]
  ): string;
  encodeFunctionData(functionFragment: "hasher", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "initialized",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "isKnownRoot",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(functionFragment: "levels", values?: undefined): string;
  encodeFunctionData(functionFragment: "nextIndex", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "nullifierHashes",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "previousRoot",
    values?: undefined
  ): string;
  encodeFunctionData(functionFragment: "queue", values: [BigNumberish]): string;
  encodeFunctionData(
    functionFragment: "queueLength",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "registerInsertion",
    values: [string, BytesLike]
  ): string;
  encodeFunctionData(functionFragment: "roots", values: [BigNumberish]): string;
  encodeFunctionData(
    functionFragment: "treeUpdateVerifier",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "unpackProof",
    values: [
      [
        BigNumberish,
        BigNumberish,
        BigNumberish,
        BigNumberish,
        BigNumberish,
        BigNumberish,
        BigNumberish,
        BigNumberish
      ]
    ]
  ): string;

  decodeFunctionResult(functionFragment: "FIELD_SIZE", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "HEADER_SIZE",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "ITEM_SIZE", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "ROOT_HISTORY_SIZE",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "SNARK_FIELD",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "ZERO_VALUE", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "batchInsert",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "blockNumber",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "checkLeavesLength",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "commitments",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "currentRoot",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "currentRootIndex",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "filledSubtrees",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "getHasher", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "getLastRoot",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "getLevels", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "getNextIndex",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getZeroHash",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "hashLeftRight",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "hasher", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "initialized",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "isKnownRoot",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "levels", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "nextIndex", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "nullifierHashes",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "previousRoot",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "queue", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "queueLength",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "registerInsertion",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "roots", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "treeUpdateVerifier",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "unpackProof",
    data: BytesLike
  ): Result;

  events: {
    "DepositData(address,bytes32,uint256,uint256)": EventFragment;
    "Insertion(uint256,uint32,uint256)": EventFragment;
  };

  getEvent(nameOrSignatureOrTopic: "DepositData"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "Insertion"): EventFragment;
}

export type DepositDataEvent = TypedEvent<
  [string, string, BigNumber, BigNumber] & {
    instance: string;
    hash: string;
    block: BigNumber;
    index: BigNumber;
  }
>;

export type InsertionEvent = TypedEvent<
  [BigNumber, number, BigNumber] & {
    commitment: BigNumber;
    leafIndex: number;
    timestamp: BigNumber;
  }
>;

export class BatchMerkleTreeMock extends BaseContract {
  connect(signerOrProvider: Signer | Provider | string): this;
  attach(addressOrName: string): this;
  deployed(): Promise<this>;

  listeners<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter?: TypedEventFilter<EventArgsArray, EventArgsObject>
  ): Array<TypedListener<EventArgsArray, EventArgsObject>>;
  off<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
    listener: TypedListener<EventArgsArray, EventArgsObject>
  ): this;
  on<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
    listener: TypedListener<EventArgsArray, EventArgsObject>
  ): this;
  once<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
    listener: TypedListener<EventArgsArray, EventArgsObject>
  ): this;
  removeListener<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
    listener: TypedListener<EventArgsArray, EventArgsObject>
  ): this;
  removeAllListeners<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
  ): this;

  listeners(eventName?: string): Array<Listener>;
  off(eventName: string, listener: Listener): this;
  on(eventName: string, listener: Listener): this;
  once(eventName: string, listener: Listener): this;
  removeListener(eventName: string, listener: Listener): this;
  removeAllListeners(eventName?: string): this;

  queryFilter<EventArgsArray extends Array<any>, EventArgsObject>(
    event: TypedEventFilter<EventArgsArray, EventArgsObject>,
    fromBlockOrBlockhash?: string | number | undefined,
    toBlock?: string | number | undefined
  ): Promise<Array<TypedEvent<EventArgsArray & EventArgsObject>>>;

  interface: BatchMerkleTreeMockInterface;

  functions: {
    FIELD_SIZE(overrides?: CallOverrides): Promise<[BigNumber]>;

    HEADER_SIZE(overrides?: CallOverrides): Promise<[BigNumber]>;

    ITEM_SIZE(overrides?: CallOverrides): Promise<[BigNumber]>;

    ROOT_HISTORY_SIZE(overrides?: CallOverrides): Promise<[number]>;

    SNARK_FIELD(overrides?: CallOverrides): Promise<[BigNumber]>;

    ZERO_VALUE(overrides?: CallOverrides): Promise<[BigNumber]>;

    batchInsert(
      _proof: BytesLike,
      _argsHash: BytesLike,
      _currentRoot: BytesLike,
      _newRoot: BytesLike,
      _pathIndices: BigNumberish,
      _leaves: BytesLike[],
      _batchHeight: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    blockNumber(
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    checkLeavesLength(
      _leaves: BytesLike[],
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    commitments(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<[boolean]>;

    currentRoot(overrides?: CallOverrides): Promise<[string]>;

    currentRootIndex(overrides?: CallOverrides): Promise<[number]>;

    filledSubtrees(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<[BigNumber]>;

    getHasher(overrides?: CallOverrides): Promise<[string]>;

    getLastRoot(overrides?: CallOverrides): Promise<[BigNumber]>;

    getLevels(overrides?: CallOverrides): Promise<[number]>;

    getNextIndex(overrides?: CallOverrides): Promise<[number]>;

    getZeroHash(
      index: BigNumberish,
      overrides?: CallOverrides
    ): Promise<[BigNumber]>;

    hashLeftRight(
      _left: BigNumberish,
      _right: BigNumberish,
      overrides?: CallOverrides
    ): Promise<[BigNumber]>;

    hasher(overrides?: CallOverrides): Promise<[string]>;

    initialized(overrides?: CallOverrides): Promise<[boolean]>;

    isKnownRoot(
      _root: BigNumberish,
      overrides?: CallOverrides
    ): Promise<[boolean]>;

    levels(overrides?: CallOverrides): Promise<[number]>;

    nextIndex(overrides?: CallOverrides): Promise<[number]>;

    nullifierHashes(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<[boolean]>;

    previousRoot(overrides?: CallOverrides): Promise<[string]>;

    queue(arg0: BigNumberish, overrides?: CallOverrides): Promise<[string]>;

    queueLength(overrides?: CallOverrides): Promise<[BigNumber]>;

    registerInsertion(
      _instance: string,
      _commitment: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    roots(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<
      [BigNumber, number] & { root: BigNumber; latestLeafindex: number }
    >;

    treeUpdateVerifier(overrides?: CallOverrides): Promise<[string]>;

    unpackProof(
      _proof: [
        BigNumberish,
        BigNumberish,
        BigNumberish,
        BigNumberish,
        BigNumberish,
        BigNumberish,
        BigNumberish,
        BigNumberish
      ],
      overrides?: CallOverrides
    ): Promise<
      [
        [BigNumber, BigNumber],
        [[BigNumber, BigNumber], [BigNumber, BigNumber]],
        [BigNumber, BigNumber]
      ]
    >;
  };

  FIELD_SIZE(overrides?: CallOverrides): Promise<BigNumber>;

  HEADER_SIZE(overrides?: CallOverrides): Promise<BigNumber>;

  ITEM_SIZE(overrides?: CallOverrides): Promise<BigNumber>;

  ROOT_HISTORY_SIZE(overrides?: CallOverrides): Promise<number>;

  SNARK_FIELD(overrides?: CallOverrides): Promise<BigNumber>;

  ZERO_VALUE(overrides?: CallOverrides): Promise<BigNumber>;

  batchInsert(
    _proof: BytesLike,
    _argsHash: BytesLike,
    _currentRoot: BytesLike,
    _newRoot: BytesLike,
    _pathIndices: BigNumberish,
    _leaves: BytesLike[],
    _batchHeight: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  blockNumber(
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  checkLeavesLength(
    _leaves: BytesLike[],
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  commitments(arg0: BigNumberish, overrides?: CallOverrides): Promise<boolean>;

  currentRoot(overrides?: CallOverrides): Promise<string>;

  currentRootIndex(overrides?: CallOverrides): Promise<number>;

  filledSubtrees(
    arg0: BigNumberish,
    overrides?: CallOverrides
  ): Promise<BigNumber>;

  getHasher(overrides?: CallOverrides): Promise<string>;

  getLastRoot(overrides?: CallOverrides): Promise<BigNumber>;

  getLevels(overrides?: CallOverrides): Promise<number>;

  getNextIndex(overrides?: CallOverrides): Promise<number>;

  getZeroHash(
    index: BigNumberish,
    overrides?: CallOverrides
  ): Promise<BigNumber>;

  hashLeftRight(
    _left: BigNumberish,
    _right: BigNumberish,
    overrides?: CallOverrides
  ): Promise<BigNumber>;

  hasher(overrides?: CallOverrides): Promise<string>;

  initialized(overrides?: CallOverrides): Promise<boolean>;

  isKnownRoot(_root: BigNumberish, overrides?: CallOverrides): Promise<boolean>;

  levels(overrides?: CallOverrides): Promise<number>;

  nextIndex(overrides?: CallOverrides): Promise<number>;

  nullifierHashes(
    arg0: BigNumberish,
    overrides?: CallOverrides
  ): Promise<boolean>;

  previousRoot(overrides?: CallOverrides): Promise<string>;

  queue(arg0: BigNumberish, overrides?: CallOverrides): Promise<string>;

  queueLength(overrides?: CallOverrides): Promise<BigNumber>;

  registerInsertion(
    _instance: string,
    _commitment: BytesLike,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  roots(
    arg0: BigNumberish,
    overrides?: CallOverrides
  ): Promise<
    [BigNumber, number] & { root: BigNumber; latestLeafindex: number }
  >;

  treeUpdateVerifier(overrides?: CallOverrides): Promise<string>;

  unpackProof(
    _proof: [
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish
    ],
    overrides?: CallOverrides
  ): Promise<
    [
      [BigNumber, BigNumber],
      [[BigNumber, BigNumber], [BigNumber, BigNumber]],
      [BigNumber, BigNumber]
    ]
  >;

  callStatic: {
    FIELD_SIZE(overrides?: CallOverrides): Promise<BigNumber>;

    HEADER_SIZE(overrides?: CallOverrides): Promise<BigNumber>;

    ITEM_SIZE(overrides?: CallOverrides): Promise<BigNumber>;

    ROOT_HISTORY_SIZE(overrides?: CallOverrides): Promise<number>;

    SNARK_FIELD(overrides?: CallOverrides): Promise<BigNumber>;

    ZERO_VALUE(overrides?: CallOverrides): Promise<BigNumber>;

    batchInsert(
      _proof: BytesLike,
      _argsHash: BytesLike,
      _currentRoot: BytesLike,
      _newRoot: BytesLike,
      _pathIndices: BigNumberish,
      _leaves: BytesLike[],
      _batchHeight: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

    blockNumber(overrides?: CallOverrides): Promise<BigNumber>;

    checkLeavesLength(
      _leaves: BytesLike[],
      overrides?: CallOverrides
    ): Promise<void>;

    commitments(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<boolean>;

    currentRoot(overrides?: CallOverrides): Promise<string>;

    currentRootIndex(overrides?: CallOverrides): Promise<number>;

    filledSubtrees(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    getHasher(overrides?: CallOverrides): Promise<string>;

    getLastRoot(overrides?: CallOverrides): Promise<BigNumber>;

    getLevels(overrides?: CallOverrides): Promise<number>;

    getNextIndex(overrides?: CallOverrides): Promise<number>;

    getZeroHash(
      index: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    hashLeftRight(
      _left: BigNumberish,
      _right: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    hasher(overrides?: CallOverrides): Promise<string>;

    initialized(overrides?: CallOverrides): Promise<boolean>;

    isKnownRoot(
      _root: BigNumberish,
      overrides?: CallOverrides
    ): Promise<boolean>;

    levels(overrides?: CallOverrides): Promise<number>;

    nextIndex(overrides?: CallOverrides): Promise<number>;

    nullifierHashes(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<boolean>;

    previousRoot(overrides?: CallOverrides): Promise<string>;

    queue(arg0: BigNumberish, overrides?: CallOverrides): Promise<string>;

    queueLength(overrides?: CallOverrides): Promise<BigNumber>;

    registerInsertion(
      _instance: string,
      _commitment: BytesLike,
      overrides?: CallOverrides
    ): Promise<void>;

    roots(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<
      [BigNumber, number] & { root: BigNumber; latestLeafindex: number }
    >;

    treeUpdateVerifier(overrides?: CallOverrides): Promise<string>;

    unpackProof(
      _proof: [
        BigNumberish,
        BigNumberish,
        BigNumberish,
        BigNumberish,
        BigNumberish,
        BigNumberish,
        BigNumberish,
        BigNumberish
      ],
      overrides?: CallOverrides
    ): Promise<
      [
        [BigNumber, BigNumber],
        [[BigNumber, BigNumber], [BigNumber, BigNumber]],
        [BigNumber, BigNumber]
      ]
    >;
  };

  filters: {
    "DepositData(address,bytes32,uint256,uint256)"(
      instance?: null,
      hash?: BytesLike | null,
      block?: null,
      index?: null
    ): TypedEventFilter<
      [string, string, BigNumber, BigNumber],
      { instance: string; hash: string; block: BigNumber; index: BigNumber }
    >;

    DepositData(
      instance?: null,
      hash?: BytesLike | null,
      block?: null,
      index?: null
    ): TypedEventFilter<
      [string, string, BigNumber, BigNumber],
      { instance: string; hash: string; block: BigNumber; index: BigNumber }
    >;

    "Insertion(uint256,uint32,uint256)"(
      commitment?: BigNumberish | null,
      leafIndex?: null,
      timestamp?: null
    ): TypedEventFilter<
      [BigNumber, number, BigNumber],
      { commitment: BigNumber; leafIndex: number; timestamp: BigNumber }
    >;

    Insertion(
      commitment?: BigNumberish | null,
      leafIndex?: null,
      timestamp?: null
    ): TypedEventFilter<
      [BigNumber, number, BigNumber],
      { commitment: BigNumber; leafIndex: number; timestamp: BigNumber }
    >;
  };

  estimateGas: {
    FIELD_SIZE(overrides?: CallOverrides): Promise<BigNumber>;

    HEADER_SIZE(overrides?: CallOverrides): Promise<BigNumber>;

    ITEM_SIZE(overrides?: CallOverrides): Promise<BigNumber>;

    ROOT_HISTORY_SIZE(overrides?: CallOverrides): Promise<BigNumber>;

    SNARK_FIELD(overrides?: CallOverrides): Promise<BigNumber>;

    ZERO_VALUE(overrides?: CallOverrides): Promise<BigNumber>;

    batchInsert(
      _proof: BytesLike,
      _argsHash: BytesLike,
      _currentRoot: BytesLike,
      _newRoot: BytesLike,
      _pathIndices: BigNumberish,
      _leaves: BytesLike[],
      _batchHeight: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    blockNumber(
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    checkLeavesLength(
      _leaves: BytesLike[],
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    commitments(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    currentRoot(overrides?: CallOverrides): Promise<BigNumber>;

    currentRootIndex(overrides?: CallOverrides): Promise<BigNumber>;

    filledSubtrees(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    getHasher(overrides?: CallOverrides): Promise<BigNumber>;

    getLastRoot(overrides?: CallOverrides): Promise<BigNumber>;

    getLevels(overrides?: CallOverrides): Promise<BigNumber>;

    getNextIndex(overrides?: CallOverrides): Promise<BigNumber>;

    getZeroHash(
      index: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    hashLeftRight(
      _left: BigNumberish,
      _right: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    hasher(overrides?: CallOverrides): Promise<BigNumber>;

    initialized(overrides?: CallOverrides): Promise<BigNumber>;

    isKnownRoot(
      _root: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    levels(overrides?: CallOverrides): Promise<BigNumber>;

    nextIndex(overrides?: CallOverrides): Promise<BigNumber>;

    nullifierHashes(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    previousRoot(overrides?: CallOverrides): Promise<BigNumber>;

    queue(arg0: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;

    queueLength(overrides?: CallOverrides): Promise<BigNumber>;

    registerInsertion(
      _instance: string,
      _commitment: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    roots(arg0: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;

    treeUpdateVerifier(overrides?: CallOverrides): Promise<BigNumber>;

    unpackProof(
      _proof: [
        BigNumberish,
        BigNumberish,
        BigNumberish,
        BigNumberish,
        BigNumberish,
        BigNumberish,
        BigNumberish,
        BigNumberish
      ],
      overrides?: CallOverrides
    ): Promise<BigNumber>;
  };

  populateTransaction: {
    FIELD_SIZE(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    HEADER_SIZE(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    ITEM_SIZE(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    ROOT_HISTORY_SIZE(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    SNARK_FIELD(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    ZERO_VALUE(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    batchInsert(
      _proof: BytesLike,
      _argsHash: BytesLike,
      _currentRoot: BytesLike,
      _newRoot: BytesLike,
      _pathIndices: BigNumberish,
      _leaves: BytesLike[],
      _batchHeight: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    blockNumber(
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    checkLeavesLength(
      _leaves: BytesLike[],
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    commitments(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    currentRoot(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    currentRootIndex(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    filledSubtrees(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    getHasher(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    getLastRoot(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    getLevels(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    getNextIndex(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    getZeroHash(
      index: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    hashLeftRight(
      _left: BigNumberish,
      _right: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    hasher(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    initialized(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    isKnownRoot(
      _root: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    levels(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    nextIndex(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    nullifierHashes(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    previousRoot(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    queue(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    queueLength(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    registerInsertion(
      _instance: string,
      _commitment: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    roots(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    treeUpdateVerifier(
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    unpackProof(
      _proof: [
        BigNumberish,
        BigNumberish,
        BigNumberish,
        BigNumberish,
        BigNumberish,
        BigNumberish,
        BigNumberish,
        BigNumberish
      ],
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;
  };
}
