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

Function isEventKindOrRangeMatch

src/utils/event.ts:35–37  ·  view source on GitHub ↗
({ kind }: Event)

Source from the content-addressed store, hash-verified

33
34export const isEventKindOrRangeMatch =
35 ({ kind }: Event) =>
36 (item: EventKinds | EventKindsRange) =>
37 typeof item === 'number' ? item === kind : kind >= item[0] && kind <= item[1]
38
39export const isEventMatchingFilter =
40 (filter: SubscriptionFilter) =>

Callers 5

canAcceptEventMethod · 0.90
isRateLimitedMethod · 0.90
isApplicableFeeMethod · 0.90
canAcceptEventMethod · 0.90
isApplicableFeeMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected