def source_of

cswap-bend-cli@0.1.0.0 · daemon/tick.bend:223

import cswap-bend-cli@0.1.0.0/daemon/tick.bend as Tick
import Base
import cswap-bend-cli@0.1.0.0/policy/types.bend as T

223# "usage-endpoint" or "header-probe" when this tick fetched the account (a
224# setup-token is read by the probe), "cache" otherwise.
225def source_of(+attempted_now: Bool, +k: T.AcctKind) -> String:
226  match attempted_now k:
227    case False{} _:
228      "cache"
229    case True{} T.SetupToken{}:
230      "header-probe"
231    case True{} _:
232      "usage-endpoint"

Uses (3)

Used by (1)