@fractional-company/common
Version:
Tessera constants
25 lines (24 loc) • 924 B
TypeScript
import { InternalEvent } from "./InternalEvent";
import { EventContextBody } from "./common";
declare type LogType = {
transactionHash: string;
blockNumber: number;
};
export declare abstract class InternalEventBuilder {
protected eventName: string;
protected fromAddress: string;
protected log?: LogType;
protected date: Date;
protected transactionHash?: string;
protected blockNumber?: number;
constructor(eventName: string, log?: LogType);
setDate(date: Date): this;
setTransactionHash(hash: string): this;
setBlockNumber(blockNumber: number): this;
setFromAddress(fromAddress: string): this;
protected validate(params: string[], validateContext?: boolean): boolean;
abstract getEventBody(eventName: string): object;
resolveInternalEvent(body?: object): InternalEvent<any>;
protected getContext(): EventContextBody;
}
export {};