def windows_all

cswap-bend-cli@0.1.0.0 · daemon/events.bend:92

import cswap-bend-cli@0.1.0.0/daemon/events.bend as Events
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json

92# {slot: {"5h": 20.0, ...}} for the accounts that have windows.
93def windows_all(+rows: List<&2, Row>) -> Json.Json:
94  match rows:
95    case Nil{}:
96      Json.JNil{}
97    case Con{Row{s, h, w, e}, t}:
98      windows_pick(List.is_empty(&2, Win, w), s, w, windows_all(t))

Uses (6)

Used by (1)