def eff_json
cswap-bend-cli@0.1.0.0 · profview.bend:41
import cswap-bend-cli@0.1.0.0/profview.bend as Profview
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
import cswap-bend-cli@0.1.0.0/daemon/config.bend as Cfg
import cswap-bend-cli@0.1.0.0/daemon/events.bend as Ev
41def eff_json(+e: Cfg.Cfg) -> Json.Json:
42 Json.of_pairs([("strategy", Json.JStr{Cfg.cfg_strategy(e)}), ("threshold", Ev.fl(Cfg.cfg_threshold(e))), ("models", models_arr(Cfg.cfg_models(e))),
43 ("cooldown_s", Json.JNum{U32.show(Cfg.cfg_cooldown(e))}), ("interval_s", Json.JNum{U32.show(Cfg.cfg_interval(e))})])