def window_json

cswap-bend-cli@0.1.0.0 · view.bend:189

import cswap-bend-cli@0.1.0.0/view.bend as View
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json

189# A 5h window: pct, resetsAt and the fresh countdown and clock.
190def window_json(+w: Json.Json, +now: U32, +off: U32) -> Json.Json:
191  with_cell(reset_field(w, Json.of_pairs([("pct", jv("pct", w))])), fresh(w, now, off))

Uses (9)

Used by (2)