MCPcopy Create free account
hub / github.com/block/buzz / collectHop

Function collectHop

desktop/src/testing/e2eBridge.ts:3749–3754  ·  view source on GitHub ↗
(kinds: Set<number>, targetIds: Set<string>)

Source from the content-addressed store, hash-verified

3747 rows: RelayEvent[],
3748): RelayEvent[] {
3749 const collectHop = (kinds: Set<number>, targetIds: Set<string>) =>
3750 events.filter(
3751 (event) =>
3752 kinds.has(event.kind) &&
3753 getEventTargets(event).some((target) => targetIds.has(target)),
3754 );
3755
3756 const firstHop = collectHop(
3757 CHANNEL_WINDOW_AUX_KINDS,

Callers 1

Calls 2

getEventTargetsFunction · 0.85
hasMethod · 0.80

Tested by

no test coverage detected