UNPKG

@kleros/vea-contracts

Version:

Smart contracts for Vea

353 lines (322 loc) 10.1 kB
/* 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 VeaInboxGnosisToArbInterface extends Interface { getFunction( nameOrSignature: | "amb" | "count" | "epochAt" | "epochFinalized" | "epochNow" | "epochPeriod" | "routerGnosisToArb" | "saveSnapshot" | "sendMessage" | "sendSnapshot" | "snapshots" ): FunctionFragment; getEvent( nameOrSignatureOrTopic: "MessageSent" | "SnapshotSaved" | "SnapshotSent" ): EventFragment; encodeFunctionData(functionFragment: "amb", values?: undefined): string; encodeFunctionData(functionFragment: "count", values?: undefined): string; encodeFunctionData( functionFragment: "epochAt", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "epochFinalized", values?: undefined ): string; encodeFunctionData(functionFragment: "epochNow", values?: undefined): string; encodeFunctionData( functionFragment: "epochPeriod", values?: undefined ): string; encodeFunctionData( functionFragment: "routerGnosisToArb", values?: undefined ): string; encodeFunctionData( functionFragment: "saveSnapshot", values?: undefined ): string; encodeFunctionData( functionFragment: "sendMessage", values: [AddressLike, BytesLike, BytesLike] ): string; encodeFunctionData( functionFragment: "sendSnapshot", values: [ BigNumberish, BigNumberish, BigNumberish, AddressLike, BigNumberish, BigNumberish ] ): string; encodeFunctionData( functionFragment: "snapshots", values: [BigNumberish] ): string; decodeFunctionResult(functionFragment: "amb", data: BytesLike): Result; decodeFunctionResult(functionFragment: "count", data: BytesLike): Result; decodeFunctionResult(functionFragment: "epochAt", data: BytesLike): Result; decodeFunctionResult( functionFragment: "epochFinalized", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "epochNow", data: BytesLike): Result; decodeFunctionResult( functionFragment: "epochPeriod", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "routerGnosisToArb", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "saveSnapshot", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "sendMessage", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "sendSnapshot", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "snapshots", data: BytesLike): Result; } export namespace MessageSentEvent { export type InputTuple = [_nodeData: BytesLike]; export type OutputTuple = [_nodeData: string]; export interface OutputObject { _nodeData: string; } export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; export type Filter = TypedDeferredTopicFilter<Event>; export type Log = TypedEventLog<Event>; export type LogDescription = TypedLogDescription<Event>; } export namespace SnapshotSavedEvent { export type InputTuple = [ _snapshot: BytesLike, _epoch: BigNumberish, _count: BigNumberish ]; export type OutputTuple = [_snapshot: string, _epoch: bigint, _count: bigint]; export interface OutputObject { _snapshot: string; _epoch: bigint; _count: bigint; } export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; export type Filter = TypedDeferredTopicFilter<Event>; export type Log = TypedEventLog<Event>; export type LogDescription = TypedLogDescription<Event>; } export namespace SnapshotSentEvent { export type InputTuple = [_epochSent: BigNumberish, _ticketId: BytesLike]; export type OutputTuple = [_epochSent: bigint, _ticketId: string]; export interface OutputObject { _epochSent: bigint; _ticketId: 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 VeaInboxGnosisToArb extends BaseContract { connect(runner?: ContractRunner | null): VeaInboxGnosisToArb; waitForDeployment(): Promise<this>; interface: VeaInboxGnosisToArbInterface; 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>; amb: TypedContractMethod<[], [string], "view">; count: TypedContractMethod<[], [bigint], "view">; epochAt: TypedContractMethod<[_timestamp: BigNumberish], [bigint], "view">; epochFinalized: TypedContractMethod<[], [bigint], "view">; epochNow: TypedContractMethod<[], [bigint], "view">; epochPeriod: TypedContractMethod<[], [bigint], "view">; routerGnosisToArb: TypedContractMethod<[], [string], "view">; saveSnapshot: TypedContractMethod<[], [void], "nonpayable">; sendMessage: TypedContractMethod< [_to: AddressLike, _fnSelector: BytesLike, _data: BytesLike], [bigint], "nonpayable" >; sendSnapshot: TypedContractMethod< [ _epoch: BigNumberish, _inboxIndex: BigNumberish, _maxSubmissionCost: BigNumberish, _excessFeeRefundAddress: AddressLike, _gasLimit: BigNumberish, _maxFeePerGas: BigNumberish ], [void], "nonpayable" >; snapshots: TypedContractMethod<[epoch: BigNumberish], [string], "view">; getFunction<T extends ContractMethod = ContractMethod>( key: string | FunctionFragment ): T; getFunction( nameOrSignature: "amb" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "count" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "epochAt" ): TypedContractMethod<[_timestamp: BigNumberish], [bigint], "view">; getFunction( nameOrSignature: "epochFinalized" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "epochNow" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "epochPeriod" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "routerGnosisToArb" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "saveSnapshot" ): TypedContractMethod<[], [void], "nonpayable">; getFunction( nameOrSignature: "sendMessage" ): TypedContractMethod< [_to: AddressLike, _fnSelector: BytesLike, _data: BytesLike], [bigint], "nonpayable" >; getFunction( nameOrSignature: "sendSnapshot" ): TypedContractMethod< [ _epoch: BigNumberish, _inboxIndex: BigNumberish, _maxSubmissionCost: BigNumberish, _excessFeeRefundAddress: AddressLike, _gasLimit: BigNumberish, _maxFeePerGas: BigNumberish ], [void], "nonpayable" >; getFunction( nameOrSignature: "snapshots" ): TypedContractMethod<[epoch: BigNumberish], [string], "view">; getEvent( key: "MessageSent" ): TypedContractEvent< MessageSentEvent.InputTuple, MessageSentEvent.OutputTuple, MessageSentEvent.OutputObject >; getEvent( key: "SnapshotSaved" ): TypedContractEvent< SnapshotSavedEvent.InputTuple, SnapshotSavedEvent.OutputTuple, SnapshotSavedEvent.OutputObject >; getEvent( key: "SnapshotSent" ): TypedContractEvent< SnapshotSentEvent.InputTuple, SnapshotSentEvent.OutputTuple, SnapshotSentEvent.OutputObject >; filters: { "MessageSent(bytes)": TypedContractEvent< MessageSentEvent.InputTuple, MessageSentEvent.OutputTuple, MessageSentEvent.OutputObject >; MessageSent: TypedContractEvent< MessageSentEvent.InputTuple, MessageSentEvent.OutputTuple, MessageSentEvent.OutputObject >; "SnapshotSaved(bytes32,uint256,uint64)": TypedContractEvent< SnapshotSavedEvent.InputTuple, SnapshotSavedEvent.OutputTuple, SnapshotSavedEvent.OutputObject >; SnapshotSaved: TypedContractEvent< SnapshotSavedEvent.InputTuple, SnapshotSavedEvent.OutputTuple, SnapshotSavedEvent.OutputObject >; "SnapshotSent(uint256,bytes32)": TypedContractEvent< SnapshotSentEvent.InputTuple, SnapshotSentEvent.OutputTuple, SnapshotSentEvent.OutputObject >; SnapshotSent: TypedContractEvent< SnapshotSentEvent.InputTuple, SnapshotSentEvent.OutputTuple, SnapshotSentEvent.OutputObject >; }; }