Explorer

definy.snapshot-cache-code

description
The code that makes the entries of the snapshot cache (read_cached_commits): the full snapshot (definy.decode-stored-snapshot), the light summary (definy.decode-stored-snapshot-summary, definy.snapshot-cache-entry-summary) and the entry type. Only its definitions are used, for definy.snapshot-cache-version
type
Code<Fn(signed_event_bytes: String) -> List<@definy.snapshot-cache-entry>>
expression
quote(fn(signed_event_bytes$0) =>
  @core.list-map(
    T: @definy.snapshot-cache-entry,
    U: @definy.snapshot-cache-entry,
    f: fn(item$1) =>
      @definy.snapshot-cache-entry-summary(entry: $1),
    xs: [
      {event_hash: "", commit: @definy.decode-stored-snapshot(signed_event_bytes: $0)},
      {event_hash: "", commit: @definy.decode-stored-snapshot-summary(signed_event_bytes: $0)}
    ]
  ))
visibility
public
definy.snapshot-cache-code (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo)
id: RHzFQHiMV1U1HlL5t1YyYKHVx9yTCozfQvwWZhDT0M8
content hash: zC91yFBhxxGDhh8cWZA6OHT6BgcTDKlzMVC-x3DHtlE