def active_slot
import cswap-bend-cli@0.1.0.0/tui/read.bend as Readimport Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
import cswap-bend-cli@0.1.0.0/tui/num.bend as N
148# The live slot: the daemon's view first, else the roster's advisory field.
149def active_slot(+status: Json.Json, +seq: Json.Json) -> Maybe<&2, U32>:
150 first_some(N.uint_at(f_active(), status), N.uint_at("activeAccountNumber", seq))