kernl API
    Preparing search index...

    Function createReplaceableLoader

    • The applesauce address loader kernl uses for replaceable and addressable events the store does not hold: it asks the pointer's relays, then the discovery and general tiers, and adds what it finds to the store.

      Parameters

      • store: EventStore

        The shell's single event store.

      • pool: ApplesaucePool

        The shared applesauce pool.

      • tiers: RelayTiers

        Relay tiers; discovery and general are the lookup fallback.

      • OptionalcacheRequest: CacheRequest

        Asked before any relay, so a cached event shows at once; the relays are still asked for newer.

      Returns AddressPointerLoader

      A loader for createIdentityProviders and lookupReplaceable.

      const loader = createReplaceableLoader(eventStore, pool, tiers);
      const lookupBefore = lookupReplaceable(eventStore, { loader, relays: () => tiers.get().outbox });