Collect.collect: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/daemon/collect.bend as Collect Lines 68-74 of cswap-bend-cli@0.1.0.0/daemon/collect.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/daemon/collect.bend&start_line=68&end_line=74 import Base import cswap-bend-cli@0.1.0.0/json.bend as Json import cswap-bend-cli@0.1.0.0/act.bend as Act import cswap-bend-cli@0.1.0.0/store/base.bend as SBase import cswap-bend-cli@0.1.0.0/daemon/config.bend as Cfg import cswap-bend-cli@0.1.0.0/daemon/gather.bend as G import cswap-bend-cli@0.1.0.0/daemon/view.bend as V import cswap-bend-cli@0.1.0.0/daemon/plan.bend as Plan # Fetch what is due, in two passes (the active account and one candidate; then # everyone when the active account is shaky), and answer the rows as they # stand. def collect(+ctx: SBase.Ctx, +es: List<&2, G.Ent>, +active: String, +rows0: Json.Json, +now: U32, +cfg: Cfg.Cfg) -> Act.of(Json.Json): do ActM: rows1 : Json.Json <- fetch_pass(ctx, cfg, Plan.first_pass(es, V.usages_of(rows0, es, Some{active}, now), Some{active}, V.nat(now), V.pol_cfg(cfg)), Some{active}, now, rows0) second_pass(ctx, es, active, rows1, rows0, now, cfg) Uses (17): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/act.bend&name=of https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/collect.bend&name=ActM https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/collect.bend&name=ActM.bind https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/collect.bend&name=fetch_pass https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/collect.bend&name=second_pass https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/config.bend&name=Cfg https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/gather.bend&name=Ent https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/plan.bend&name=first_pass https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/view.bend&name=nat https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/view.bend&name=pol_cfg https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/view.bend&name=usages_of https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/json.bend&name=Json https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/store/base.bend&name=Ctx