def acct_opt

cswap-bend-cli@0.1.0.0 · tui/read.bend:237

import cswap-bend-cli@0.1.0.0/tui/read.bend as Read
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
import cswap-bend-cli@0.1.0.0/tui/model.bend as M
import cswap-bend-cli@0.1.0.0/tui/num.bend as N

237def acct_opt(+slot: String, +rec: Maybe<&2, Json.Json>, +cache: Json.Json, +status: Json.Json, +active: Maybe<&2, U32>, +now: U32) -> Maybe<&2, M.Acct>:
238  match rec:
239    case None{}:
240      None{}
241    case Some{r}:
242      Some{acct_of(slot, r, N.get_or_null(slot, N.get_or_null(f_accounts(), cache)), N.get_or_null(slot, N.get_or_null(f_accounts(), status)), is_active(slot, active), now)}

Uses (9)

Used by (1)