AppleSauce
    Preparing search index...

    Interface IAsyncEventStoreRead

    The async read interface for an event store

    interface IAsyncEventStoreRead {
        getByFilters(filters: Filter | Filter[]): Promise<Event[]>;
        getEvent(id: string): Promise<undefined | Event>;
        getReplaceable(
            kind: number,
            pubkey: string,
            identifier?: string,
        ): Promise<undefined | Event>;
        getReplaceableHistory(
            kind: number,
            pubkey: string,
            identifier?: string,
        ): Promise<undefined | Event[]>;
        getTimeline(filters: Filter | Filter[]): Promise<Event[]>;
        hasEvent(id: string): Promise<boolean>;
        hasReplaceable(
            kind: number,
            pubkey: string,
            identifier?: string,
        ): Promise<boolean>;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • Get a replaceable event

      Parameters

      • kind: number
      • pubkey: string
      • Optionalidentifier: string

      Returns Promise<undefined | Event>

    • Get the history of a replaceable event

      Parameters

      • kind: number
      • pubkey: string
      • Optionalidentifier: string

      Returns Promise<undefined | Event[]>

    • Check if the event store has a replaceable event

      Parameters

      • kind: number
      • pubkey: string
      • Optionalidentifier: string

      Returns Promise<boolean>