/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PayableOverrides, PopulatedTransaction, Signer, utils, } from "ethers"; import type { FunctionFragment, Result, EventFragment, } from "@ethersproject/abi"; import type { Listener, Provider } from "@ethersproject/providers"; import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, } from "./common"; export interface TornadoABIInterface extends utils.Interface { contractName: "TornadoABI"; functions: { "changeOperator(address)": FunctionFragment; "nullifierHashes(bytes32)": FunctionFragment; "withdraw(bytes,bytes32,bytes32,address,address,uint256,uint256)": FunctionFragment; "verifier()": FunctionFragment; "hashLeftRight(bytes32,bytes32)": FunctionFragment; "FIELD_SIZE()": FunctionFragment; "levels()": FunctionFragment; "operator()": FunctionFragment; "isKnownRoot(bytes32)": FunctionFragment; "commitments(bytes32)": FunctionFragment; "denomination()": FunctionFragment; "currentRootIndex()": FunctionFragment; "updateVerifier(address)": FunctionFragment; "deposit(bytes32)": FunctionFragment; "getLastRoot()": FunctionFragment; "roots(uint256)": FunctionFragment; "ROOT_HISTORY_SIZE()": FunctionFragment; "isSpent(bytes32)": FunctionFragment; "zeros(uint256)": FunctionFragment; "ZERO_VALUE()": FunctionFragment; "filledSubtrees(uint256)": FunctionFragment; "nextIndex()": FunctionFragment; }; getFunction( nameOrSignatureOrTopic: | "changeOperator" | "nullifierHashes" | "withdraw" | "verifier" | "hashLeftRight" | "FIELD_SIZE" | "levels" | "operator" | "isKnownRoot" | "commitments" | "denomination" | "currentRootIndex" | "updateVerifier" | "deposit" | "getLastRoot" | "roots" | "ROOT_HISTORY_SIZE" | "isSpent" | "zeros" | "ZERO_VALUE" | "filledSubtrees" | "nextIndex" ): FunctionFragment; encodeFunctionData( functionFragment: "changeOperator", values: [string] ): string; encodeFunctionData( functionFragment: "nullifierHashes", values: [BytesLike] ): string; encodeFunctionData( functionFragment: "withdraw", values: [ BytesLike, BytesLike, BytesLike, string, string, BigNumberish, BigNumberish ] ): string; encodeFunctionData(functionFragment: "verifier", values?: undefined): string; encodeFunctionData( functionFragment: "hashLeftRight", values: [BytesLike, BytesLike] ): string; encodeFunctionData( functionFragment: "FIELD_SIZE", values?: undefined ): string; encodeFunctionData(functionFragment: "levels", values?: undefined): string; encodeFunctionData(functionFragment: "operator", values?: undefined): string; encodeFunctionData( functionFragment: "isKnownRoot", values: [BytesLike] ): string; encodeFunctionData( functionFragment: "commitments", values: [BytesLike] ): string; encodeFunctionData( functionFragment: "denomination", values?: undefined ): string; encodeFunctionData( functionFragment: "currentRootIndex", values?: undefined ): string; encodeFunctionData( functionFragment: "updateVerifier", values: [string] ): string; encodeFunctionData(functionFragment: "deposit", values: [BytesLike]): string; encodeFunctionData( functionFragment: "getLastRoot", values?: undefined ): string; encodeFunctionData(functionFragment: "roots", values: [BigNumberish]): string; encodeFunctionData( functionFragment: "ROOT_HISTORY_SIZE", values?: undefined ): string; encodeFunctionData(functionFragment: "isSpent", values: [BytesLike]): string; encodeFunctionData(functionFragment: "zeros", values: [BigNumberish]): string; encodeFunctionData( functionFragment: "ZERO_VALUE", values?: undefined ): string; encodeFunctionData( functionFragment: "filledSubtrees", values: [BigNumberish] ): string; encodeFunctionData(functionFragment: "nextIndex", values?: undefined): string; decodeFunctionResult( functionFragment: "changeOperator", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "nullifierHashes", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result; decodeFunctionResult(functionFragment: "verifier", data: BytesLike): Result; decodeFunctionResult( functionFragment: "hashLeftRight", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "FIELD_SIZE", data: BytesLike): Result; decodeFunctionResult(functionFragment: "levels", data: BytesLike): Result; decodeFunctionResult(functionFragment: "operator", data: BytesLike): Result; decodeFunctionResult( functionFragment: "isKnownRoot", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "commitments", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "denomination", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "currentRootIndex", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "updateVerifier", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result; decodeFunctionResult( functionFragment: "getLastRoot", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "roots", data: BytesLike): Result; decodeFunctionResult( functionFragment: "ROOT_HISTORY_SIZE", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "isSpent", data: BytesLike): Result; decodeFunctionResult(functionFragment: "zeros", data: BytesLike): Result; decodeFunctionResult(functionFragment: "ZERO_VALUE", data: BytesLike): Result; decodeFunctionResult( functionFragment: "filledSubtrees", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "nextIndex", data: BytesLike): Result; events: { "Deposit(bytes32,uint32,uint256)": EventFragment; "Withdrawal(address,bytes32,address,uint256)": EventFragment; }; getEvent(nameOrSignatureOrTopic: "Deposit"): EventFragment; getEvent(nameOrSignatureOrTopic: "Withdrawal"): EventFragment; } export interface DepositEventObject { commitment: string; leafIndex: number; timestamp: BigNumber; } export type DepositEvent = TypedEvent< [string, number, BigNumber], DepositEventObject >; export type DepositEventFilter = TypedEventFilter; export interface WithdrawalEventObject { to: string; nullifierHash: string; relayer: string; fee: BigNumber; } export type WithdrawalEvent = TypedEvent< [string, string, string, BigNumber], WithdrawalEventObject >; export type WithdrawalEventFilter = TypedEventFilter; export interface TornadoABI extends BaseContract { contractName: "TornadoABI"; connect(signerOrProvider: Signer | Provider | string): this; attach(addressOrName: string): this; deployed(): Promise; interface: TornadoABIInterface; queryFilter( event: TypedEventFilter, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined ): Promise>; listeners( eventFilter?: TypedEventFilter ): Array>; listeners(eventName?: string): Array; removeAllListeners( eventFilter: TypedEventFilter ): this; removeAllListeners(eventName?: string): this; off: OnEvent; on: OnEvent; once: OnEvent; removeListener: OnEvent; functions: { changeOperator( _newOperator: string, overrides?: Overrides & { from?: string | Promise } ): Promise; nullifierHashes( arg0: BytesLike, overrides?: CallOverrides ): Promise<[boolean]>; withdraw( _proof: BytesLike, _root: BytesLike, _nullifierHash: BytesLike, _recipient: string, _relayer: string, _fee: BigNumberish, _refund: BigNumberish, overrides?: PayableOverrides & { from?: string | Promise } ): Promise; verifier(overrides?: CallOverrides): Promise<[string]>; hashLeftRight( _left: BytesLike, _right: BytesLike, overrides?: CallOverrides ): Promise<[string]>; FIELD_SIZE(overrides?: CallOverrides): Promise<[BigNumber]>; levels(overrides?: CallOverrides): Promise<[number]>; operator(overrides?: CallOverrides): Promise<[string]>; isKnownRoot( _root: BytesLike, overrides?: CallOverrides ): Promise<[boolean]>; commitments(arg0: BytesLike, overrides?: CallOverrides): Promise<[boolean]>; denomination(overrides?: CallOverrides): Promise<[BigNumber]>; currentRootIndex(overrides?: CallOverrides): Promise<[number]>; updateVerifier( _newVerifier: string, overrides?: Overrides & { from?: string | Promise } ): Promise; deposit( _commitment: BytesLike, overrides?: PayableOverrides & { from?: string | Promise } ): Promise; getLastRoot(overrides?: CallOverrides): Promise<[string]>; roots(arg0: BigNumberish, overrides?: CallOverrides): Promise<[string]>; ROOT_HISTORY_SIZE(overrides?: CallOverrides): Promise<[number]>; isSpent( _nullifierHash: BytesLike, overrides?: CallOverrides ): Promise<[boolean]>; zeros(arg0: BigNumberish, overrides?: CallOverrides): Promise<[string]>; ZERO_VALUE(overrides?: CallOverrides): Promise<[BigNumber]>; filledSubtrees( arg0: BigNumberish, overrides?: CallOverrides ): Promise<[string]>; nextIndex(overrides?: CallOverrides): Promise<[number]>; }; changeOperator( _newOperator: string, overrides?: Overrides & { from?: string | Promise } ): Promise; nullifierHashes(arg0: BytesLike, overrides?: CallOverrides): Promise; withdraw( _proof: BytesLike, _root: BytesLike, _nullifierHash: BytesLike, _recipient: string, _relayer: string, _fee: BigNumberish, _refund: BigNumberish, overrides?: PayableOverrides & { from?: string | Promise } ): Promise; verifier(overrides?: CallOverrides): Promise; hashLeftRight( _left: BytesLike, _right: BytesLike, overrides?: CallOverrides ): Promise; FIELD_SIZE(overrides?: CallOverrides): Promise; levels(overrides?: CallOverrides): Promise; operator(overrides?: CallOverrides): Promise; isKnownRoot(_root: BytesLike, overrides?: CallOverrides): Promise; commitments(arg0: BytesLike, overrides?: CallOverrides): Promise; denomination(overrides?: CallOverrides): Promise; currentRootIndex(overrides?: CallOverrides): Promise; updateVerifier( _newVerifier: string, overrides?: Overrides & { from?: string | Promise } ): Promise; deposit( _commitment: BytesLike, overrides?: PayableOverrides & { from?: string | Promise } ): Promise; getLastRoot(overrides?: CallOverrides): Promise; roots(arg0: BigNumberish, overrides?: CallOverrides): Promise; ROOT_HISTORY_SIZE(overrides?: CallOverrides): Promise; isSpent( _nullifierHash: BytesLike, overrides?: CallOverrides ): Promise; zeros(arg0: BigNumberish, overrides?: CallOverrides): Promise; ZERO_VALUE(overrides?: CallOverrides): Promise; filledSubtrees( arg0: BigNumberish, overrides?: CallOverrides ): Promise; nextIndex(overrides?: CallOverrides): Promise; callStatic: { changeOperator( _newOperator: string, overrides?: CallOverrides ): Promise; nullifierHashes( arg0: BytesLike, overrides?: CallOverrides ): Promise; withdraw( _proof: BytesLike, _root: BytesLike, _nullifierHash: BytesLike, _recipient: string, _relayer: string, _fee: BigNumberish, _refund: BigNumberish, overrides?: CallOverrides ): Promise; verifier(overrides?: CallOverrides): Promise; hashLeftRight( _left: BytesLike, _right: BytesLike, overrides?: CallOverrides ): Promise; FIELD_SIZE(overrides?: CallOverrides): Promise; levels(overrides?: CallOverrides): Promise; operator(overrides?: CallOverrides): Promise; isKnownRoot(_root: BytesLike, overrides?: CallOverrides): Promise; commitments(arg0: BytesLike, overrides?: CallOverrides): Promise; denomination(overrides?: CallOverrides): Promise; currentRootIndex(overrides?: CallOverrides): Promise; updateVerifier( _newVerifier: string, overrides?: CallOverrides ): Promise; deposit(_commitment: BytesLike, overrides?: CallOverrides): Promise; getLastRoot(overrides?: CallOverrides): Promise; roots(arg0: BigNumberish, overrides?: CallOverrides): Promise; ROOT_HISTORY_SIZE(overrides?: CallOverrides): Promise; isSpent( _nullifierHash: BytesLike, overrides?: CallOverrides ): Promise; zeros(arg0: BigNumberish, overrides?: CallOverrides): Promise; ZERO_VALUE(overrides?: CallOverrides): Promise; filledSubtrees( arg0: BigNumberish, overrides?: CallOverrides ): Promise; nextIndex(overrides?: CallOverrides): Promise; }; filters: { "Deposit(bytes32,uint32,uint256)"( commitment?: BytesLike | null, leafIndex?: null, timestamp?: null ): DepositEventFilter; Deposit( commitment?: BytesLike | null, leafIndex?: null, timestamp?: null ): DepositEventFilter; "Withdrawal(address,bytes32,address,uint256)"( to?: null, nullifierHash?: null, relayer?: string | null, fee?: null ): WithdrawalEventFilter; Withdrawal( to?: null, nullifierHash?: null, relayer?: string | null, fee?: null ): WithdrawalEventFilter; }; estimateGas: { changeOperator( _newOperator: string, overrides?: Overrides & { from?: string | Promise } ): Promise; nullifierHashes( arg0: BytesLike, overrides?: CallOverrides ): Promise; withdraw( _proof: BytesLike, _root: BytesLike, _nullifierHash: BytesLike, _recipient: string, _relayer: string, _fee: BigNumberish, _refund: BigNumberish, overrides?: PayableOverrides & { from?: string | Promise } ): Promise; verifier(overrides?: CallOverrides): Promise; hashLeftRight( _left: BytesLike, _right: BytesLike, overrides?: CallOverrides ): Promise; FIELD_SIZE(overrides?: CallOverrides): Promise; levels(overrides?: CallOverrides): Promise; operator(overrides?: CallOverrides): Promise; isKnownRoot( _root: BytesLike, overrides?: CallOverrides ): Promise; commitments(arg0: BytesLike, overrides?: CallOverrides): Promise; denomination(overrides?: CallOverrides): Promise; currentRootIndex(overrides?: CallOverrides): Promise; updateVerifier( _newVerifier: string, overrides?: Overrides & { from?: string | Promise } ): Promise; deposit( _commitment: BytesLike, overrides?: PayableOverrides & { from?: string | Promise } ): Promise; getLastRoot(overrides?: CallOverrides): Promise; roots(arg0: BigNumberish, overrides?: CallOverrides): Promise; ROOT_HISTORY_SIZE(overrides?: CallOverrides): Promise; isSpent( _nullifierHash: BytesLike, overrides?: CallOverrides ): Promise; zeros(arg0: BigNumberish, overrides?: CallOverrides): Promise; ZERO_VALUE(overrides?: CallOverrides): Promise; filledSubtrees( arg0: BigNumberish, overrides?: CallOverrides ): Promise; nextIndex(overrides?: CallOverrides): Promise; }; populateTransaction: { changeOperator( _newOperator: string, overrides?: Overrides & { from?: string | Promise } ): Promise; nullifierHashes( arg0: BytesLike, overrides?: CallOverrides ): Promise; withdraw( _proof: BytesLike, _root: BytesLike, _nullifierHash: BytesLike, _recipient: string, _relayer: string, _fee: BigNumberish, _refund: BigNumberish, overrides?: PayableOverrides & { from?: string | Promise } ): Promise; verifier(overrides?: CallOverrides): Promise; hashLeftRight( _left: BytesLike, _right: BytesLike, overrides?: CallOverrides ): Promise; FIELD_SIZE(overrides?: CallOverrides): Promise; levels(overrides?: CallOverrides): Promise; operator(overrides?: CallOverrides): Promise; isKnownRoot( _root: BytesLike, overrides?: CallOverrides ): Promise; commitments( arg0: BytesLike, overrides?: CallOverrides ): Promise; denomination(overrides?: CallOverrides): Promise; currentRootIndex(overrides?: CallOverrides): Promise; updateVerifier( _newVerifier: string, overrides?: Overrides & { from?: string | Promise } ): Promise; deposit( _commitment: BytesLike, overrides?: PayableOverrides & { from?: string | Promise } ): Promise; getLastRoot(overrides?: CallOverrides): Promise; roots( arg0: BigNumberish, overrides?: CallOverrides ): Promise; ROOT_HISTORY_SIZE(overrides?: CallOverrides): Promise; isSpent( _nullifierHash: BytesLike, overrides?: CallOverrides ): Promise; zeros( arg0: BigNumberish, overrides?: CallOverrides ): Promise; ZERO_VALUE(overrides?: CallOverrides): Promise; filledSubtrees( arg0: BigNumberish, overrides?: CallOverrides ): Promise; nextIndex(overrides?: CallOverrides): Promise; }; }