(event: UnidentifiedEvent)
| 13 | import { WebSocketServerAdapterEvent } from '../constants/adapter' |
| 14 | |
| 15 | export const serializeEvent = (event: UnidentifiedEvent): CanonicalEvent => [ |
| 16 | 0, |
| 17 | event.pubkey, |
| 18 | event.created_at, |
| 19 | event.kind, |
| 20 | event.tags, |
| 21 | event.content, |
| 22 | ] |
| 23 | |
| 24 | export const toNostrEvent: (event: DBEvent) => Event = applySpec({ |
| 25 | id: pipe(prop('event_id') as () => Buffer, fromBuffer), |
no outgoing calls
no test coverage detected