Move deduplicateEvents to util

This commit is contained in:
Jon Staab
2025-09-17 09:41:20 -07:00
parent a3295dc2fe
commit beadfc571c
16 changed files with 32 additions and 30 deletions
+3
View File
@@ -87,6 +87,9 @@ export declare const getIdentifier: (e: EventTemplate) => string | undefined;
export declare const getIdOrAddress: (e: HashedEvent) => string;
export declare const getIdAndAddress: (e: HashedEvent) => string[];
// Event deduplication by id or address
export declare const deduplicateEvents: (e: TrustedEvent) => TrustedEvent[];
// Event type checking
export declare const isEphemeral: (e: EventTemplate) => boolean;
export declare const isReplaceable: (e: EventTemplate) => boolean;