import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "./common"; export interface IL2BridgeInterface extends Interface { getFunction(nameOrSignature: "finalizeDeposit" | "l1Bridge" | "l1TokenAddress" | "l2TokenAddress" | "withdraw"): FunctionFragment; encodeFunctionData(functionFragment: "finalizeDeposit", values: [AddressLike, AddressLike, AddressLike, BigNumberish, BytesLike]): string; encodeFunctionData(functionFragment: "l1Bridge", values?: undefined): string; encodeFunctionData(functionFragment: "l1TokenAddress", values: [AddressLike]): string; encodeFunctionData(functionFragment: "l2TokenAddress", values: [AddressLike]): string; encodeFunctionData(functionFragment: "withdraw", values: [AddressLike, AddressLike, BigNumberish]): string; decodeFunctionResult(functionFragment: "finalizeDeposit", data: BytesLike): Result; decodeFunctionResult(functionFragment: "l1Bridge", data: BytesLike): Result; decodeFunctionResult(functionFragment: "l1TokenAddress", data: BytesLike): Result; decodeFunctionResult(functionFragment: "l2TokenAddress", data: BytesLike): Result; decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result; } export interface IL2Bridge extends BaseContract { connect(runner?: ContractRunner | null): IL2Bridge; waitForDeployment(): Promise; interface: IL2BridgeInterface; 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; finalizeDeposit: TypedContractMethod<[ _l1Sender: AddressLike, _l2Receiver: AddressLike, _l1Token: AddressLike, _amount: BigNumberish, _data: BytesLike ], [ void ], "nonpayable">; l1Bridge: TypedContractMethod<[], [string], "view">; l1TokenAddress: TypedContractMethod<[ _l2Token: AddressLike ], [ string ], "view">; l2TokenAddress: TypedContractMethod<[ _l1Token: AddressLike ], [ string ], "view">; withdraw: TypedContractMethod<[ _l1Receiver: AddressLike, _l2Token: AddressLike, _amount: BigNumberish ], [ void ], "nonpayable">; getFunction(key: string | FunctionFragment): T; getFunction(nameOrSignature: "finalizeDeposit"): TypedContractMethod<[ _l1Sender: AddressLike, _l2Receiver: AddressLike, _l1Token: AddressLike, _amount: BigNumberish, _data: BytesLike ], [ void ], "nonpayable">; getFunction(nameOrSignature: "l1Bridge"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "l1TokenAddress"): TypedContractMethod<[_l2Token: AddressLike], [string], "view">; getFunction(nameOrSignature: "l2TokenAddress"): TypedContractMethod<[_l1Token: AddressLike], [string], "view">; getFunction(nameOrSignature: "withdraw"): TypedContractMethod<[ _l1Receiver: AddressLike, _l2Token: AddressLike, _amount: BigNumberish ], [ void ], "nonpayable">; filters: {}; }