MCPcopy Index your code
hub / github.com/cameri/nostream / isReplaceableEvent

Function isReplaceableEvent

src/utils/event.ts:186–193  ·  view source on GitHub ↗
(event: Event)

Source from the content-addressed store, hash-verified

184}
185
186export const isReplaceableEvent = (event: Event): boolean => {
187 return (
188 event.kind === EventKinds.SET_METADATA ||
189 event.kind === EventKinds.CONTACT_LIST ||
190 event.kind === EventKinds.CHANNEL_METADATA ||
191 (event.kind >= EventKinds.REPLACEABLE_FIRST && event.kind <= EventKinds.REPLACEABLE_LAST)
192 )
193}
194
195export const isEphemeralEvent = (event: Event): boolean => {
196 return event.kind >= EventKinds.EPHEMERAL_FIRST && event.kind <= EventKinds.EPHEMERAL_LAST

Callers 3

event.spec.tsFile · 0.90
eventStrategyFactoryFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected