def grant

bendvy-ecs-core@0.1.0.4 · ordinary_owned_event_family_write.bend:17

import bendvy-ecs-core@0.1.0.4/ordinary_owned_event_family_write.bend as OrdinaryOwnedEventFamilyWrite
import Base
import bendvy-ecs-core@0.1.0.4/world.bend as W
import bendvy-ecs-core@0.1.0.4/owner_product.bend as Product
import bendvy-ecs-core@0.1.0.4/owned_event_log.bend as Log
import bendvy-ecs-core@0.1.0.4/ordinary_owned_event.bend as Pub
import bendvy-ecs-core@0.1.0.4/owned_event_journal.bend as Journal

17# Advanced closed grant constructor for the selected log/recovery paths.
18# Payload emit stages one owned P; canonical binding and erased lenses must
19# refer to the same schema/log. Raw adapters are trusted engine setup.
20def grant(~S:Data,~C:Type,~R:Type,~P:Type,~Rest:Type,~E:Data,~path:Product.Lens<R,Log.Log<P>,Rest>,~inject:Nat -> E,~identity:Pub.Domain<S,P>,~All:Type,~RecoveryRest:Type,~recovery:Product.Lens<All,List<P>,RecoveryRest>,unit:Unit) -> Pub.Write<S,P,identity,Journal.Stage<W.World<S,C,R,E>,All>>:
21  Pub.Write{emit_named(~S,~C,~R,~P,~Rest,~E,~path,~inject,~identity,~All,~RecoveryRest,~recovery)}

Uses (10)

Used by (1)