MCPcopy Create free account
hub / github.com/ProjectOpenSea/stream-js / encode

Function encode

tests/helpers.ts:24–32  ·  view source on GitHub ↗
({
  join_ref,
  ref,
  topic,
  event,
  payload
}: ChannelParams)

Source from the content-addressed store, hash-verified

22};
23
24export const encode = ({
25 join_ref,
26 ref,
27 topic,
28 event,
29 payload
30}: ChannelParams) => {
31 return JSON.stringify([join_ref, ref, topic, event, payload]);
32};
33
34export const mockEvent = <Payload = unknown>(
35 eventType: EventType,

Callers 1

client.spec.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected