/* 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 IMultiAssetVAnchorBatchTreeInterface extends ethers.utils.Interface {
  functions: {
    "_executeWrapping(address,address,uint256)": FunctionFragment;
    "batchInsert(bytes,bytes32,bytes32,bytes32,uint32,bytes32[],uint32)": FunctionFragment;
    "registry()": FunctionFragment;
    "rewardSpentTree()": FunctionFragment;
    "rewardUnspentTree()": FunctionFragment;
  };

  encodeFunctionData(
    functionFragment: "_executeWrapping",
    values: [string, string, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "batchInsert",
    values: [
      BytesLike,
      BytesLike,
      BytesLike,
      BytesLike,
      BigNumberish,
      BytesLike[],
      BigNumberish
    ]
  ): string;
  encodeFunctionData(functionFragment: "registry", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "rewardSpentTree",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "rewardUnspentTree",
    values?: undefined
  ): string;

  decodeFunctionResult(
    functionFragment: "_executeWrapping",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "batchInsert",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "registry", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "rewardSpentTree",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "rewardUnspentTree",
    data: BytesLike
  ): Result;

  events: {};
}

export class IMultiAssetVAnchorBatchTree 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: IMultiAssetVAnchorBatchTreeInterface;

  functions: {
    _executeWrapping(
      _fromToken: string,
      _toToken: string,
      amount: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

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

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

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

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

  _executeWrapping(
    _fromToken: string,
    _toToken: string,
    amount: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

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

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

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

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

  callStatic: {
    _executeWrapping(
      _fromToken: string,
      _toToken: string,
      amount: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

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

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

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

    rewardUnspentTree(overrides?: CallOverrides): Promise<string>;
  };

  filters: {};

  estimateGas: {
    _executeWrapping(
      _fromToken: string,
      _toToken: string,
      amount: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): 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>;

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

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

    rewardUnspentTree(overrides?: CallOverrides): Promise<BigNumber>;
  };

  populateTransaction: {
    _executeWrapping(
      _fromToken: string,
      _toToken: string,
      amount: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): 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>;

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

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

    rewardUnspentTree(overrides?: CallOverrides): Promise<PopulatedTransaction>;
  };
}
