/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
  BaseContract,
  BigNumber,
  BigNumberish,
  BytesLike,
  CallOverrides,
  PopulatedTransaction,
  Signer,
  utils,
} from "ethers";
import type { FunctionFragment, Result } from "@ethersproject/abi";
import type { Listener, Provider } from "@ethersproject/providers";
import type {
  TypedEventFilter,
  TypedEvent,
  TypedListener,
  OnEvent,
  PromiseOrValue,
} from "../../common";

export type PublicInputsStruct = {
  roots: PromiseOrValue<BytesLike>;
  extensionRoots: PromiseOrValue<BytesLike>;
  inputNullifiers: PromiseOrValue<BigNumberish>[];
  outputCommitments: [
    PromiseOrValue<BigNumberish>,
    PromiseOrValue<BigNumberish>
  ];
  publicAmount: PromiseOrValue<BigNumberish>;
  extDataHash: PromiseOrValue<BigNumberish>;
};

export type PublicInputsStructOutput = [
  string,
  string,
  BigNumber[],
  [BigNumber, BigNumber],
  BigNumber,
  BigNumber
] & {
  roots: string;
  extensionRoots: string;
  inputNullifiers: BigNumber[];
  outputCommitments: [BigNumber, BigNumber];
  publicAmount: BigNumber;
  extDataHash: BigNumber;
};

export interface VAnchorEncodeInputsInterface extends utils.Interface {
  functions: {
    "EVM_CHAIN_ID_TYPE()": FunctionFragment;
    "_encodeInputs16((bytes,bytes,uint256[],uint256[2],uint256,uint256),bytes,uint8)": FunctionFragment;
    "_encodeInputs2((bytes,bytes,uint256[],uint256[2],uint256,uint256),bytes,uint8)": FunctionFragment;
    "getChainId()": FunctionFragment;
    "getChainIdType()": FunctionFragment;
  };

  getFunction(
    nameOrSignatureOrTopic:
      | "EVM_CHAIN_ID_TYPE"
      | "_encodeInputs16"
      | "_encodeInputs2"
      | "getChainId"
      | "getChainIdType"
  ): FunctionFragment;

  encodeFunctionData(
    functionFragment: "EVM_CHAIN_ID_TYPE",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "_encodeInputs16",
    values: [
      PublicInputsStruct,
      PromiseOrValue<BytesLike>,
      PromiseOrValue<BigNumberish>
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "_encodeInputs2",
    values: [
      PublicInputsStruct,
      PromiseOrValue<BytesLike>,
      PromiseOrValue<BigNumberish>
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "getChainId",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "getChainIdType",
    values?: undefined
  ): string;

  decodeFunctionResult(
    functionFragment: "EVM_CHAIN_ID_TYPE",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "_encodeInputs16",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "_encodeInputs2",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "getChainId", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "getChainIdType",
    data: BytesLike
  ): Result;

  events: {};
}

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

  interface: VAnchorEncodeInputsInterface;

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

  listeners<TEvent extends TypedEvent>(
    eventFilter?: TypedEventFilter<TEvent>
  ): Array<TypedListener<TEvent>>;
  listeners(eventName?: string): Array<Listener>;
  removeAllListeners<TEvent extends TypedEvent>(
    eventFilter: TypedEventFilter<TEvent>
  ): this;
  removeAllListeners(eventName?: string): this;
  off: OnEvent<this>;
  on: OnEvent<this>;
  once: OnEvent<this>;
  removeListener: OnEvent<this>;

  functions: {
    EVM_CHAIN_ID_TYPE(overrides?: CallOverrides): Promise<[string]>;

    _encodeInputs16(
      _args: PublicInputsStruct,
      arg1: PromiseOrValue<BytesLike>,
      _maxEdges: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<[string, BigNumber[]]>;

    _encodeInputs2(
      _args: PublicInputsStruct,
      arg1: PromiseOrValue<BytesLike>,
      _maxEdges: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<[string, BigNumber[]]>;

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

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

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

  _encodeInputs16(
    _args: PublicInputsStruct,
    arg1: PromiseOrValue<BytesLike>,
    _maxEdges: PromiseOrValue<BigNumberish>,
    overrides?: CallOverrides
  ): Promise<[string, BigNumber[]]>;

  _encodeInputs2(
    _args: PublicInputsStruct,
    arg1: PromiseOrValue<BytesLike>,
    _maxEdges: PromiseOrValue<BigNumberish>,
    overrides?: CallOverrides
  ): Promise<[string, BigNumber[]]>;

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

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

  callStatic: {
    EVM_CHAIN_ID_TYPE(overrides?: CallOverrides): Promise<string>;

    _encodeInputs16(
      _args: PublicInputsStruct,
      arg1: PromiseOrValue<BytesLike>,
      _maxEdges: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<[string, BigNumber[]]>;

    _encodeInputs2(
      _args: PublicInputsStruct,
      arg1: PromiseOrValue<BytesLike>,
      _maxEdges: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<[string, BigNumber[]]>;

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

    getChainIdType(overrides?: CallOverrides): Promise<number>;
  };

  filters: {};

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

    _encodeInputs16(
      _args: PublicInputsStruct,
      arg1: PromiseOrValue<BytesLike>,
      _maxEdges: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    _encodeInputs2(
      _args: PublicInputsStruct,
      arg1: PromiseOrValue<BytesLike>,
      _maxEdges: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

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

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

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

    _encodeInputs16(
      _args: PublicInputsStruct,
      arg1: PromiseOrValue<BytesLike>,
      _maxEdges: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    _encodeInputs2(
      _args: PublicInputsStruct,
      arg1: PromiseOrValue<BytesLike>,
      _maxEdges: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

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

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