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 interface CTornadoInterface extends Interface { getFunction(nameOrSignature: "FIELD_SIZE" | "ROOT_HISTORY_SIZE" | "ZERO_VALUE" | "claimComp" | "commitments" | "comp" | "currentRootIndex" | "denomination" | "deposit" | "filledSubtrees" | "getLastRoot" | "governance" | "hashLeftRight" | "hasher" | "isKnownRoot" | "isSpent" | "isSpentArray" | "levels" | "nextIndex" | "nullifierHashes" | "roots" | "token" | "verifier" | "withdraw" | "zeros"): FunctionFragment; getEvent(nameOrSignatureOrTopic: "Deposit" | "Withdrawal"): EventFragment; encodeFunctionData(functionFragment: "FIELD_SIZE", values?: undefined): string; encodeFunctionData(functionFragment: "ROOT_HISTORY_SIZE", values?: undefined): string; encodeFunctionData(functionFragment: "ZERO_VALUE", values?: undefined): string; encodeFunctionData(functionFragment: "claimComp", values?: undefined): string; encodeFunctionData(functionFragment: "commitments", values: [BytesLike]): string; encodeFunctionData(functionFragment: "comp", values?: undefined): string; encodeFunctionData(functionFragment: "currentRootIndex", values?: undefined): string; encodeFunctionData(functionFragment: "denomination", values?: undefined): string; encodeFunctionData(functionFragment: "deposit", values: [BytesLike]): string; encodeFunctionData(functionFragment: "filledSubtrees", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "getLastRoot", values?: undefined): string; encodeFunctionData(functionFragment: "governance", values?: undefined): string; encodeFunctionData(functionFragment: "hashLeftRight", values: [AddressLike, BytesLike, BytesLike]): string; encodeFunctionData(functionFragment: "hasher", values?: undefined): string; encodeFunctionData(functionFragment: "isKnownRoot", values: [BytesLike]): string; encodeFunctionData(functionFragment: "isSpent", values: [BytesLike]): string; encodeFunctionData(functionFragment: "isSpentArray", values: [BytesLike[]]): string; encodeFunctionData(functionFragment: "levels", values?: undefined): string; encodeFunctionData(functionFragment: "nextIndex", values?: undefined): string; encodeFunctionData(functionFragment: "nullifierHashes", values: [BytesLike]): string; encodeFunctionData(functionFragment: "roots", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "token", values?: undefined): string; encodeFunctionData(functionFragment: "verifier", values?: undefined): string; encodeFunctionData(functionFragment: "withdraw", values: [ BytesLike, BytesLike, BytesLike, AddressLike, AddressLike, BigNumberish, BigNumberish ]): string; encodeFunctionData(functionFragment: "zeros", values: [BigNumberish]): string; decodeFunctionResult(functionFragment: "FIELD_SIZE", data: BytesLike): Result; decodeFunctionResult(functionFragment: "ROOT_HISTORY_SIZE", data: BytesLike): Result; decodeFunctionResult(functionFragment: "ZERO_VALUE", data: BytesLike): Result; decodeFunctionResult(functionFragment: "claimComp", data: BytesLike): Result; decodeFunctionResult(functionFragment: "commitments", data: BytesLike): Result; decodeFunctionResult(functionFragment: "comp", data: BytesLike): Result; decodeFunctionResult(functionFragment: "currentRootIndex", data: BytesLike): Result; decodeFunctionResult(functionFragment: "denomination", data: BytesLike): Result; decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result; decodeFunctionResult(functionFragment: "filledSubtrees", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getLastRoot", data: BytesLike): Result; decodeFunctionResult(functionFragment: "governance", data: BytesLike): Result; decodeFunctionResult(functionFragment: "hashLeftRight", data: BytesLike): Result; decodeFunctionResult(functionFragment: "hasher", data: BytesLike): Result; decodeFunctionResult(functionFragment: "isKnownRoot", data: BytesLike): Result; decodeFunctionResult(functionFragment: "isSpent", data: BytesLike): Result; decodeFunctionResult(functionFragment: "isSpentArray", data: BytesLike): Result; decodeFunctionResult(functionFragment: "levels", data: BytesLike): Result; decodeFunctionResult(functionFragment: "nextIndex", data: BytesLike): Result; decodeFunctionResult(functionFragment: "nullifierHashes", data: BytesLike): Result; decodeFunctionResult(functionFragment: "roots", data: BytesLike): Result; decodeFunctionResult(functionFragment: "token", data: BytesLike): Result; decodeFunctionResult(functionFragment: "verifier", data: BytesLike): Result; decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result; decodeFunctionResult(functionFragment: "zeros", data: BytesLike): Result; } export declare namespace DepositEvent { type InputTuple = [ commitment: BytesLike, leafIndex: BigNumberish, timestamp: BigNumberish ]; type OutputTuple = [ commitment: string, leafIndex: bigint, timestamp: bigint ]; interface OutputObject { commitment: string; leafIndex: bigint; timestamp: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace WithdrawalEvent { type InputTuple = [ to: AddressLike, nullifierHash: BytesLike, relayer: AddressLike, fee: BigNumberish ]; type OutputTuple = [ to: string, nullifierHash: string, relayer: string, fee: bigint ]; interface OutputObject { to: string; nullifierHash: string; relayer: string; fee: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export interface CTornado extends BaseContract { connect(runner?: ContractRunner | null): CTornado; waitForDeployment(): Promise; interface: CTornadoInterface; queryFilter(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise>>; queryFilter(filter: TypedDeferredTopicFilter, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise>>; on(event: TCEvent, listener: TypedListener): Promise; on(filter: TypedDeferredTopicFilter, listener: TypedListener): Promise; once(event: TCEvent, listener: TypedListener): Promise; once(filter: TypedDeferredTopicFilter, listener: TypedListener): Promise; listeners(event: TCEvent): Promise>>; listeners(eventName?: string): Promise>; removeAllListeners(event?: TCEvent): Promise; FIELD_SIZE: TypedContractMethod<[], [bigint], "view">; ROOT_HISTORY_SIZE: TypedContractMethod<[], [bigint], "view">; ZERO_VALUE: TypedContractMethod<[], [bigint], "view">; claimComp: TypedContractMethod<[], [void], "nonpayable">; commitments: TypedContractMethod<[arg0: BytesLike], [boolean], "view">; comp: TypedContractMethod<[], [string], "view">; currentRootIndex: TypedContractMethod<[], [bigint], "view">; denomination: TypedContractMethod<[], [bigint], "view">; deposit: TypedContractMethod<[_commitment: BytesLike], [void], "payable">; filledSubtrees: TypedContractMethod<[arg0: BigNumberish], [string], "view">; getLastRoot: TypedContractMethod<[], [string], "view">; governance: TypedContractMethod<[], [string], "view">; hashLeftRight: TypedContractMethod<[ _hasher: AddressLike, _left: BytesLike, _right: BytesLike ], [ string ], "view">; hasher: TypedContractMethod<[], [string], "view">; isKnownRoot: TypedContractMethod<[_root: BytesLike], [boolean], "view">; isSpent: TypedContractMethod<[_nullifierHash: BytesLike], [boolean], "view">; isSpentArray: TypedContractMethod<[ _nullifierHashes: BytesLike[] ], [ boolean[] ], "view">; levels: TypedContractMethod<[], [bigint], "view">; nextIndex: TypedContractMethod<[], [bigint], "view">; nullifierHashes: TypedContractMethod<[arg0: BytesLike], [boolean], "view">; roots: TypedContractMethod<[arg0: BigNumberish], [string], "view">; token: TypedContractMethod<[], [string], "view">; verifier: TypedContractMethod<[], [string], "view">; withdraw: TypedContractMethod<[ _proof: BytesLike, _root: BytesLike, _nullifierHash: BytesLike, _recipient: AddressLike, _relayer: AddressLike, _fee: BigNumberish, _refund: BigNumberish ], [ void ], "payable">; zeros: TypedContractMethod<[arg0: BigNumberish], [string], "view">; getFunction(key: string | FunctionFragment): T; getFunction(nameOrSignature: "FIELD_SIZE"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "ROOT_HISTORY_SIZE"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "ZERO_VALUE"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "claimComp"): TypedContractMethod<[], [void], "nonpayable">; getFunction(nameOrSignature: "commitments"): TypedContractMethod<[arg0: BytesLike], [boolean], "view">; getFunction(nameOrSignature: "comp"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "currentRootIndex"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "denomination"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "deposit"): TypedContractMethod<[_commitment: BytesLike], [void], "payable">; getFunction(nameOrSignature: "filledSubtrees"): TypedContractMethod<[arg0: BigNumberish], [string], "view">; getFunction(nameOrSignature: "getLastRoot"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "governance"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "hashLeftRight"): TypedContractMethod<[ _hasher: AddressLike, _left: BytesLike, _right: BytesLike ], [ string ], "view">; getFunction(nameOrSignature: "hasher"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "isKnownRoot"): TypedContractMethod<[_root: BytesLike], [boolean], "view">; getFunction(nameOrSignature: "isSpent"): TypedContractMethod<[_nullifierHash: BytesLike], [boolean], "view">; getFunction(nameOrSignature: "isSpentArray"): TypedContractMethod<[_nullifierHashes: BytesLike[]], [boolean[]], "view">; getFunction(nameOrSignature: "levels"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "nextIndex"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "nullifierHashes"): TypedContractMethod<[arg0: BytesLike], [boolean], "view">; getFunction(nameOrSignature: "roots"): TypedContractMethod<[arg0: BigNumberish], [string], "view">; getFunction(nameOrSignature: "token"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "verifier"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "withdraw"): TypedContractMethod<[ _proof: BytesLike, _root: BytesLike, _nullifierHash: BytesLike, _recipient: AddressLike, _relayer: AddressLike, _fee: BigNumberish, _refund: BigNumberish ], [ void ], "payable">; getFunction(nameOrSignature: "zeros"): TypedContractMethod<[arg0: BigNumberish], [string], "view">; getEvent(key: "Deposit"): TypedContractEvent; getEvent(key: "Withdrawal"): TypedContractEvent; filters: { "Deposit(bytes32,uint32,uint256)": TypedContractEvent; Deposit: TypedContractEvent; "Withdrawal(address,bytes32,address,uint256)": TypedContractEvent; Withdrawal: TypedContractEvent; }; }