@ecp.eth/sdk / indexer/webhooks / CommentDeletedEvent
Type Alias: CommentDeletedEvent
type CommentDeletedEvent = {
blockNumber: bigint;
chainId: number;
data: {
comment: {
deletedAt: Date;
id: `0x${string}`;
updatedAt: Date;
};
};
event: "comment:deleted";
logIndex: number;
txHash: `0x${string}`;
uid: string;
version: 1;
};Defined in: packages/sdk/src/indexer/webhooks/schemas/comment.ts:202
An event sent to webhook when a comment is deleted.
Type declaration
blockNumber
blockNumber: bigint = StringBigintSchema;Block number. On wire it is a stringified bigint.
chainId
chainId: number;Chain ID
data
data: {
comment: {
deletedAt: Date;
id: `0x${string}`;
updatedAt: Date;
};
};Data of the event
data.comment
comment: {
deletedAt: Date;
id: `0x${string}`;
updatedAt: Date;
};Updated comment data
data.comment.deletedAt
deletedAt: Date = ISO8601DateSchema;Deleted at date. On wire it is a ISO 8601 date and time string
data.comment.id
id: `0x${string}` = HexSchema;ID of the comment
data.comment.updatedAt
updatedAt: Date = ISO8601DateSchema;Updated at date. On wire it is a ISO 8601 date and time string
event
event: "comment:deleted";Event type
logIndex
logIndex: number;Log index
txHash
txHash: `0x${string}` = HexSchema;Transaction hash
uid
uid: string;Unique identifier for the event. You can use it to deduplicate events. In case of retry attempts the id is the same.
version
version: 1;Version of the event