Events.windows_all: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/daemon/events.bend as Events Lines 92-98 of cswap-bend-cli@0.1.0.0/daemon/events.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/daemon/events.bend&start_line=92&end_line=98 import Base import cswap-bend-cli@0.1.0.0/json.bend as Json # {slot: {"5h": 20.0, ...}} for the accounts that have windows. def windows_all(+rows: List<&2, Row>) -> Json.Json: match rows: case Nil{}: Json.JNil{} case Con{Row{s, h, w, e}, t}: windows_pick(List.is_empty(&2, Win, w), s, w, windows_all(t)) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.is_empty https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/events.bend&name=Row https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/events.bend&name=Win https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/events.bend&name=windows_pick https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/json.bend&name=Json