ProtectedauthorsProtectedclaimsA weak map of events that are claimed by other things
Protectedcreated_LRU cache of last events touched
ProtectedkindsIndexes
ProtectedlogProtectedreplaceableA sorted array of replaceable events by address
ProtectedtagsInserts an event into the database and notifies all subscriptions
Sets the claim on the event and touches it
Removes all claims on an event
ProtectedgetGets a single event based on id
ProtectedgetProtectedgetProtectedgetIndex helper methods
Gets the latest replaceable event
Optionalidentifier: stringGets the history of a replaceable event
Optionalidentifier: stringProtectedgetChecks if the database contains an event without touching it
Checks if the event set has a replaceable event
Optionalidentifier: stringChecks if an event is claimed by anything
Iterates over all events by author
Iterates over all events by id
Iterates over all events by kind
Iterates over all events by indexable tag and value
Iterates over all events by time
Removes events that are not claimed (free up memory)
Optionallimit: numberRemoves an event from the database and notifies all subscriptions
Removes a claim from an event
Resets the event set
Moves an event to the top of the LRU cache
Returns a generator of unclaimed events in order of least used
Notify the database that an event has updated
An in-memory database of events