UNPKG

zksync-ethers

Version:

A Web3 library for interacting with the ZkSync Layer 2 scaling solution.

176 lines (158 loc) 4.57 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, ContractRunner, ContractMethod, Listener, } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod, } from "./common"; export interface L2InteropRootStorageInterface extends Interface { getFunction( nameOrSignature: "addInteropRoot" | "interopRoots" ): FunctionFragment; getEvent(nameOrSignatureOrTopic: "InteropRootAdded"): EventFragment; encodeFunctionData( functionFragment: "addInteropRoot", values: [BigNumberish, BigNumberish, BytesLike[]] ): string; encodeFunctionData( functionFragment: "interopRoots", values: [BigNumberish, BigNumberish] ): string; decodeFunctionResult( functionFragment: "addInteropRoot", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "interopRoots", data: BytesLike ): Result; } export namespace InteropRootAddedEvent { export type InputTuple = [ chainId: BigNumberish, blockNumber: BigNumberish, sides: BytesLike[] ]; export type OutputTuple = [ chainId: bigint, blockNumber: bigint, sides: string[] ]; export interface OutputObject { chainId: bigint; blockNumber: bigint; sides: string[]; } export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; export type Filter = TypedDeferredTopicFilter<Event>; export type Log = TypedEventLog<Event>; export type LogDescription = TypedLogDescription<Event>; } export interface L2InteropRootStorage extends BaseContract { connect(runner?: ContractRunner | null): L2InteropRootStorage; waitForDeployment(): Promise<this>; interface: L2InteropRootStorageInterface; queryFilter<TCEvent extends TypedContractEvent>( event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined ): Promise<Array<TypedEventLog<TCEvent>>>; queryFilter<TCEvent extends TypedContractEvent>( filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined ): Promise<Array<TypedEventLog<TCEvent>>>; on<TCEvent extends TypedContractEvent>( event: TCEvent, listener: TypedListener<TCEvent> ): Promise<this>; on<TCEvent extends TypedContractEvent>( filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent> ): Promise<this>; once<TCEvent extends TypedContractEvent>( event: TCEvent, listener: TypedListener<TCEvent> ): Promise<this>; once<TCEvent extends TypedContractEvent>( filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent> ): Promise<this>; listeners<TCEvent extends TypedContractEvent>( event: TCEvent ): Promise<Array<TypedListener<TCEvent>>>; listeners(eventName?: string): Promise<Array<Listener>>; removeAllListeners<TCEvent extends TypedContractEvent>( event?: TCEvent ): Promise<this>; addInteropRoot: TypedContractMethod< [ chainId: BigNumberish, blockOrBatchNumber: BigNumberish, sides: BytesLike[] ], [void], "nonpayable" >; interopRoots: TypedContractMethod< [chainId: BigNumberish, blockOrBatchNumber: BigNumberish], [string], "view" >; getFunction<T extends ContractMethod = ContractMethod>( key: string | FunctionFragment ): T; getFunction( nameOrSignature: "addInteropRoot" ): TypedContractMethod< [ chainId: BigNumberish, blockOrBatchNumber: BigNumberish, sides: BytesLike[] ], [void], "nonpayable" >; getFunction( nameOrSignature: "interopRoots" ): TypedContractMethod< [chainId: BigNumberish, blockOrBatchNumber: BigNumberish], [string], "view" >; getEvent( key: "InteropRootAdded" ): TypedContractEvent< InteropRootAddedEvent.InputTuple, InteropRootAddedEvent.OutputTuple, InteropRootAddedEvent.OutputObject >; filters: { "InteropRootAdded(uint256,uint256,bytes32[])": TypedContractEvent< InteropRootAddedEvent.InputTuple, InteropRootAddedEvent.OutputTuple, InteropRootAddedEvent.OutputObject >; InteropRootAdded: TypedContractEvent< InteropRootAddedEvent.InputTuple, InteropRootAddedEvent.OutputTuple, InteropRootAddedEvent.OutputObject >; }; }