def wants.lock

ezx@1.11.0.0 · src/fetch/plan.bend:828

import ezx@1.11.0.0/src/fetch/plan.bend as Plan
import Base
import ezx@1.11.0.0/src/fetch/world.bend as F
import ezx@1.11.0.0/src/lock/lock.bend as L

828# the open questions once the ledger and the lock are known to be there
829def wants.lock(got: Maybe<&2, String>, +world: F.World) -> List<&2, F.Ask>:
830  match got:
831    case None{}:
832      []
833    case Some{_text}:
834      +ss = F.sects(world)
835      List.append(&2, F.Ask, asks.of(parts.of(ss, world), F.here(world), L.lock.hub(ss)),
836        names.asks(name.parts.of(ss, world)))

Uses (13)

Used by (1)