import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PayableOverrides, PopulatedTransaction, Signer, utils } from "ethers"; import type { FunctionFragment, Result } from "@ethersproject/abi"; import type { Listener, Provider } from "@ethersproject/providers"; import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from "./common"; export interface IMessengerInterface extends utils.Interface { functions: { "cancelL1ToL2Message(uint256,uint256,uint256[],uint256)": FunctionFragment; "sendMessageToL2(uint256,uint256,uint256[])": FunctionFragment; "starknet()": FunctionFragment; "startL1ToL2MessageCancellation(uint256,uint256,uint256[],uint256)": FunctionFragment; }; getFunction(nameOrSignatureOrTopic: "cancelL1ToL2Message" | "sendMessageToL2" | "starknet" | "startL1ToL2MessageCancellation"): FunctionFragment; encodeFunctionData(functionFragment: "cancelL1ToL2Message", values: [ PromiseOrValue, PromiseOrValue, PromiseOrValue[], PromiseOrValue ]): string; encodeFunctionData(functionFragment: "sendMessageToL2", values: [ PromiseOrValue, PromiseOrValue, PromiseOrValue[] ]): string; encodeFunctionData(functionFragment: "starknet", values?: undefined): string; encodeFunctionData(functionFragment: "startL1ToL2MessageCancellation", values: [ PromiseOrValue, PromiseOrValue, PromiseOrValue[], PromiseOrValue ]): string; decodeFunctionResult(functionFragment: "cancelL1ToL2Message", data: BytesLike): Result; decodeFunctionResult(functionFragment: "sendMessageToL2", data: BytesLike): Result; decodeFunctionResult(functionFragment: "starknet", data: BytesLike): Result; decodeFunctionResult(functionFragment: "startL1ToL2MessageCancellation", data: BytesLike): Result; events: {}; } export interface IMessenger extends BaseContract { connect(signerOrProvider: Signer | Provider | string): this; attach(addressOrName: string): this; deployed(): Promise; interface: IMessengerInterface; 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: { cancelL1ToL2Message(toAddress: PromiseOrValue, selector: PromiseOrValue, payload: PromiseOrValue[], nonce: PromiseOrValue, overrides?: Overrides & { from?: PromiseOrValue; }): Promise; sendMessageToL2(toAddress: PromiseOrValue, selector: PromiseOrValue, payload: PromiseOrValue[], overrides?: PayableOverrides & { from?: PromiseOrValue; }): Promise; starknet(overrides?: CallOverrides): Promise<[string]>; startL1ToL2MessageCancellation(toAddress: PromiseOrValue, selector: PromiseOrValue, payload: PromiseOrValue[], nonce: PromiseOrValue, overrides?: Overrides & { from?: PromiseOrValue; }): Promise; }; cancelL1ToL2Message(toAddress: PromiseOrValue, selector: PromiseOrValue, payload: PromiseOrValue[], nonce: PromiseOrValue, overrides?: Overrides & { from?: PromiseOrValue; }): Promise; sendMessageToL2(toAddress: PromiseOrValue, selector: PromiseOrValue, payload: PromiseOrValue[], overrides?: PayableOverrides & { from?: PromiseOrValue; }): Promise; starknet(overrides?: CallOverrides): Promise; startL1ToL2MessageCancellation(toAddress: PromiseOrValue, selector: PromiseOrValue, payload: PromiseOrValue[], nonce: PromiseOrValue, overrides?: Overrides & { from?: PromiseOrValue; }): Promise; callStatic: { cancelL1ToL2Message(toAddress: PromiseOrValue, selector: PromiseOrValue, payload: PromiseOrValue[], nonce: PromiseOrValue, overrides?: CallOverrides): Promise; sendMessageToL2(toAddress: PromiseOrValue, selector: PromiseOrValue, payload: PromiseOrValue[], overrides?: CallOverrides): Promise; starknet(overrides?: CallOverrides): Promise; startL1ToL2MessageCancellation(toAddress: PromiseOrValue, selector: PromiseOrValue, payload: PromiseOrValue[], nonce: PromiseOrValue, overrides?: CallOverrides): Promise; }; filters: {}; estimateGas: { cancelL1ToL2Message(toAddress: PromiseOrValue, selector: PromiseOrValue, payload: PromiseOrValue[], nonce: PromiseOrValue, overrides?: Overrides & { from?: PromiseOrValue; }): Promise; sendMessageToL2(toAddress: PromiseOrValue, selector: PromiseOrValue, payload: PromiseOrValue[], overrides?: PayableOverrides & { from?: PromiseOrValue; }): Promise; starknet(overrides?: CallOverrides): Promise; startL1ToL2MessageCancellation(toAddress: PromiseOrValue, selector: PromiseOrValue, payload: PromiseOrValue[], nonce: PromiseOrValue, overrides?: Overrides & { from?: PromiseOrValue; }): Promise; }; populateTransaction: { cancelL1ToL2Message(toAddress: PromiseOrValue, selector: PromiseOrValue, payload: PromiseOrValue[], nonce: PromiseOrValue, overrides?: Overrides & { from?: PromiseOrValue; }): Promise; sendMessageToL2(toAddress: PromiseOrValue, selector: PromiseOrValue, payload: PromiseOrValue[], overrides?: PayableOverrides & { from?: PromiseOrValue; }): Promise; starknet(overrides?: CallOverrides): Promise; startL1ToL2MessageCancellation(toAddress: PromiseOrValue, selector: PromiseOrValue, payload: PromiseOrValue[], nonce: PromiseOrValue, overrides?: Overrides & { from?: PromiseOrValue; }): Promise; }; }