/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ 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 TornadoRouterInterface extends Interface { getFunction( nameOrSignature: | "approveExactToken" | "backupNotes" | "deposit" | "governance" | "instanceRegistry" | "relayerRegistry" | "rescueTokens" | "withdraw" ): FunctionFragment; getEvent(nameOrSignatureOrTopic: "EncryptedNote"): EventFragment; encodeFunctionData( functionFragment: "approveExactToken", values: [AddressLike, AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "backupNotes", values: [BytesLike[]] ): string; encodeFunctionData( functionFragment: "deposit", values: [AddressLike, BytesLike, BytesLike] ): string; encodeFunctionData( functionFragment: "governance", values?: undefined ): string; encodeFunctionData( functionFragment: "instanceRegistry", values?: undefined ): string; encodeFunctionData( functionFragment: "relayerRegistry", values?: undefined ): string; encodeFunctionData( functionFragment: "rescueTokens", values: [AddressLike, AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "withdraw", values: [ AddressLike, BytesLike, BytesLike, BytesLike, AddressLike, AddressLike, BigNumberish, BigNumberish ] ): string; decodeFunctionResult( functionFragment: "approveExactToken", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "backupNotes", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result; decodeFunctionResult(functionFragment: "governance", data: BytesLike): Result; decodeFunctionResult( functionFragment: "instanceRegistry", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "relayerRegistry", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "rescueTokens", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result; } export namespace EncryptedNoteEvent { export type InputTuple = [sender: AddressLike, encryptedNote: BytesLike]; export type OutputTuple = [sender: string, encryptedNote: string]; export interface OutputObject { sender: string; encryptedNote: string; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export interface TornadoRouter extends BaseContract { connect(runner?: ContractRunner | null): TornadoRouter; waitForDeployment(): Promise; interface: TornadoRouterInterface; 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; approveExactToken: TypedContractMethod< [_token: AddressLike, _spender: AddressLike, _amount: BigNumberish], [void], "nonpayable" >; backupNotes: TypedContractMethod< [_encryptedNotes: BytesLike[]], [void], "nonpayable" >; deposit: TypedContractMethod< [_tornado: AddressLike, _commitment: BytesLike, _encryptedNote: BytesLike], [void], "payable" >; governance: TypedContractMethod<[], [string], "view">; instanceRegistry: TypedContractMethod<[], [string], "view">; relayerRegistry: TypedContractMethod<[], [string], "view">; rescueTokens: TypedContractMethod< [_token: AddressLike, _to: AddressLike, _amount: BigNumberish], [void], "nonpayable" >; withdraw: TypedContractMethod< [ _tornado: AddressLike, _proof: BytesLike, _root: BytesLike, _nullifierHash: BytesLike, _recipient: AddressLike, _relayer: AddressLike, _fee: BigNumberish, _refund: BigNumberish ], [void], "payable" >; getFunction( key: string | FunctionFragment ): T; getFunction( nameOrSignature: "approveExactToken" ): TypedContractMethod< [_token: AddressLike, _spender: AddressLike, _amount: BigNumberish], [void], "nonpayable" >; getFunction( nameOrSignature: "backupNotes" ): TypedContractMethod<[_encryptedNotes: BytesLike[]], [void], "nonpayable">; getFunction( nameOrSignature: "deposit" ): TypedContractMethod< [_tornado: AddressLike, _commitment: BytesLike, _encryptedNote: BytesLike], [void], "payable" >; getFunction( nameOrSignature: "governance" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "instanceRegistry" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "relayerRegistry" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "rescueTokens" ): TypedContractMethod< [_token: AddressLike, _to: AddressLike, _amount: BigNumberish], [void], "nonpayable" >; getFunction( nameOrSignature: "withdraw" ): TypedContractMethod< [ _tornado: AddressLike, _proof: BytesLike, _root: BytesLike, _nullifierHash: BytesLike, _recipient: AddressLike, _relayer: AddressLike, _fee: BigNumberish, _refund: BigNumberish ], [void], "payable" >; getEvent( key: "EncryptedNote" ): TypedContractEvent< EncryptedNoteEvent.InputTuple, EncryptedNoteEvent.OutputTuple, EncryptedNoteEvent.OutputObject >; filters: { "EncryptedNote(address,bytes)": TypedContractEvent< EncryptedNoteEvent.InputTuple, EncryptedNoteEvent.OutputTuple, EncryptedNoteEvent.OutputObject >; EncryptedNote: TypedContractEvent< EncryptedNoteEvent.InputTuple, EncryptedNoteEvent.OutputTuple, EncryptedNoteEvent.OutputObject >; }; }