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 IEthTokenInterface extends Interface { getFunction(nameOrSignature: "balanceOf" | "decimals" | "mint" | "name" | "symbol" | "totalSupply" | "transferFromTo" | "withdraw" | "withdrawWithMessage"): FunctionFragment; getEvent(nameOrSignatureOrTopic: "Mint" | "Transfer" | "Withdrawal" | "WithdrawalWithMessage"): EventFragment; encodeFunctionData(functionFragment: "balanceOf", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "decimals", values?: undefined): string; encodeFunctionData(functionFragment: "mint", values: [AddressLike, BigNumberish]): string; encodeFunctionData(functionFragment: "name", values?: undefined): string; encodeFunctionData(functionFragment: "symbol", values?: undefined): string; encodeFunctionData(functionFragment: "totalSupply", values?: undefined): string; encodeFunctionData(functionFragment: "transferFromTo", values: [AddressLike, AddressLike, BigNumberish]): string; encodeFunctionData(functionFragment: "withdraw", values: [AddressLike]): string; encodeFunctionData(functionFragment: "withdrawWithMessage", values: [AddressLike, BytesLike]): string; decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result; decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result; decodeFunctionResult(functionFragment: "name", data: BytesLike): Result; decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result; decodeFunctionResult(functionFragment: "totalSupply", data: BytesLike): Result; decodeFunctionResult(functionFragment: "transferFromTo", data: BytesLike): Result; decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result; decodeFunctionResult(functionFragment: "withdrawWithMessage", data: BytesLike): Result; } export declare namespace MintEvent { type InputTuple = [account: AddressLike, amount: BigNumberish]; type OutputTuple = [account: string, amount: bigint]; interface OutputObject { account: string; amount: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace TransferEvent { type InputTuple = [ from: AddressLike, to: AddressLike, value: BigNumberish ]; type OutputTuple = [from: string, to: string, value: bigint]; interface OutputObject { from: string; to: string; value: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace WithdrawalEvent { type InputTuple = [ _l2Sender: AddressLike, _l1Receiver: AddressLike, _amount: BigNumberish ]; type OutputTuple = [ _l2Sender: string, _l1Receiver: string, _amount: bigint ]; interface OutputObject { _l2Sender: string; _l1Receiver: string; _amount: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace WithdrawalWithMessageEvent { type InputTuple = [ _l2Sender: AddressLike, _l1Receiver: AddressLike, _amount: BigNumberish, _additionalData: BytesLike ]; type OutputTuple = [ _l2Sender: string, _l1Receiver: string, _amount: bigint, _additionalData: string ]; interface OutputObject { _l2Sender: string; _l1Receiver: string; _amount: bigint; _additionalData: string; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export interface IEthToken extends BaseContract { connect(runner?: ContractRunner | null): IEthToken; waitForDeployment(): Promise; interface: IEthTokenInterface; 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; balanceOf: TypedContractMethod<[arg0: BigNumberish], [bigint], "view">; decimals: TypedContractMethod<[], [bigint], "view">; mint: TypedContractMethod<[ _account: AddressLike, _amount: BigNumberish ], [ void ], "nonpayable">; name: TypedContractMethod<[], [string], "view">; symbol: TypedContractMethod<[], [string], "view">; totalSupply: TypedContractMethod<[], [bigint], "view">; transferFromTo: TypedContractMethod<[ _from: AddressLike, _to: AddressLike, _amount: BigNumberish ], [ void ], "nonpayable">; withdraw: TypedContractMethod<[_l1Receiver: AddressLike], [void], "payable">; withdrawWithMessage: TypedContractMethod<[ _l1Receiver: AddressLike, _additionalData: BytesLike ], [ void ], "payable">; getFunction(key: string | FunctionFragment): T; getFunction(nameOrSignature: "balanceOf"): TypedContractMethod<[arg0: BigNumberish], [bigint], "view">; getFunction(nameOrSignature: "decimals"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "mint"): TypedContractMethod<[ _account: AddressLike, _amount: BigNumberish ], [ void ], "nonpayable">; getFunction(nameOrSignature: "name"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "symbol"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "totalSupply"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "transferFromTo"): TypedContractMethod<[ _from: AddressLike, _to: AddressLike, _amount: BigNumberish ], [ void ], "nonpayable">; getFunction(nameOrSignature: "withdraw"): TypedContractMethod<[_l1Receiver: AddressLike], [void], "payable">; getFunction(nameOrSignature: "withdrawWithMessage"): TypedContractMethod<[ _l1Receiver: AddressLike, _additionalData: BytesLike ], [ void ], "payable">; getEvent(key: "Mint"): TypedContractEvent; getEvent(key: "Transfer"): TypedContractEvent; getEvent(key: "Withdrawal"): TypedContractEvent; getEvent(key: "WithdrawalWithMessage"): TypedContractEvent; filters: { "Mint(address,uint256)": TypedContractEvent; Mint: TypedContractEvent; "Transfer(address,address,uint256)": TypedContractEvent; Transfer: TypedContractEvent; "Withdrawal(address,address,uint256)": TypedContractEvent; Withdrawal: TypedContractEvent; "WithdrawalWithMessage(address,address,uint256,bytes)": TypedContractEvent; WithdrawalWithMessage: TypedContractEvent; }; }