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
+1 -1
View File
@@ -84,7 +84,7 @@ const authEvent = makeBlossomAuthEvent({
})
// Sign the auth event with your signer
const signedAuthEvent = await signer.signEvent(authEvent)
const signedAuthEvent = await signer.sign(authEvent)
// Upload a file
const file = new File(["Hello world"], "hello.txt", { type: "text/plain" })
+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;