Move deduplicateEvents to util
This commit is contained in:
@@ -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" })
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user