Insert an event. Replaceable kinds (0, 3, 10000-19999) and addressable
kinds (30000-39999) replace the author's previous event. Returns false
when an event with the same id already exists.
Every stored event, oldest insertion first (live array; treat as read-only).
Relay URLs where an event is "observed": the author's write relays, else MOCK_FALLBACK_RELAYS.
Newest replaceable/addressable event for an author.
Optionalidentifier: stringListen for events inserted by add/publish. Returns an unsubscribe function.
sign then add; listeners fire.
NIP-01 query over the store (OR filters, newest first, smallest limit).
Parsed kind-10002 relay list of an author, or undefined when absent.
Restore the seed events and the signing sequence. Listeners are kept.
Build a placeholder-signed event for pubkey without storing it.
Wrap an event as a RelayEventResult with sidecar.relayHints.
In-memory event store shared by the social mocks.
Example