ordinary_owned_event_family_write.bend checks
raw source on the hub · import 0x67fd5084c1da4adc13317822045bb11f/ordinary_owned_event_family_write.bend as Ordinary_owned_event_family_write
8 imports
import Base import ./world.bend as W import ./owner_product.bend as Product import ./owned_event_log.bend as Log import ./ordinary_owned_event.bend as Pub import ./ordinary_owned_event_binding.bend as Binding import ./ordinary_owned_event_declaration.bend as D import ./owned_event_journal.bend as Journal
Templates
template Ops source · line 13 · raw
@-S:Data -> @-P:Type -> @-identity:0x67fd5084c1da4adc13317822045bb11f/ordinary_owned_event.Domain<S, P> -> @H:Type -> Type
Normal setup receives a canonical binding; all executable log/receipt paths remain erased until the declaration is specialized at its full recovery tree. Nominal owned-publication capability family bound to one domain identity. The opaque owner is the staged journal; no runtime log alias is exposed.
template empty source · line 14 · raw
@-P:Type -> @unit:Unit -> List<&1, P>
template emit_named source · line 15 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-E:Data -> @-path:0x67fd5084c1da4adc13317822045bb11f/owner_product.Lens<R, 0x67fd5084c1da4adc13317822045bb11f/owned_event_log.Log<P>, Rest> -> @-inject:(@_:Nat -> E) -> @-identity:0x67fd5084c1da4adc13317822045bb11f/ordinary_owned_event.Domain<S, P> -> @-All:Type -> @-RecoveryRest:Type -> @-recovery:0x67fd5084c1da4adc13317822045bb11f/owner_product.Lens<All, List<&1, P>, RecoveryRest> -> @stage:0x67fd5084c1da4adc13317822045bb11f/owned_event_journal.Stage<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, All> -> @payload:P -> 0x67fd5084c1da4adc13317822045bb11f/owned_event_journal.Stage<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, All>
template grant source · line 20 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-E:Data -> @-path:0x67fd5084c1da4adc13317822045bb11f/owner_product.Lens<R, 0x67fd5084c1da4adc13317822045bb11f/owned_event_log.Log<P>, Rest> -> @-inject:(@_:Nat -> E) -> @-identity:0x67fd5084c1da4adc13317822045bb11f/ordinary_owned_event.Domain<S, P> -> @-All:Type -> @-RecoveryRest:Type -> @-recovery:0x67fd5084c1da4adc13317822045bb11f/owner_product.Lens<All, List<&1, P>, RecoveryRest> -> @unit:Unit -> 0x67fd5084c1da4adc13317822045bb11f/ordinary_owned_event.Write<S, P, identity, 0x67fd5084c1da4adc13317822045bb11f/owned_event_journal.Stage<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, All>>
Advanced closed grant constructor for the selected log/recovery paths. Payload emit stages one owned P; canonical binding and erased lenses must refer to the same schema/log. Raw adapters are trusted engine setup.
template declaration source · line 27 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-E:Data -> @-path:0x67fd5084c1da4adc13317822045bb11f/owner_product.Lens<R, 0x67fd5084c1da4adc13317822045bb11f/owned_event_log.Log<P>, Rest> -> @-inject:(@_:Nat -> E) -> @-select:(@_:List<&2, E> -> List<&2, Nat>) -> @-identity:0x67fd5084c1da4adc13317822045bb11f/ordinary_owned_event.Domain<S, P> -> @-binding:0x67fd5084c1da4adc13317822045bb11f/ordinary_owned_event_binding.Binding<S, R, P, Rest, E, path, inject, select, identity> -> 0x67fd5084c1da4adc13317822045bb11f/ordinary_owned_event_declaration.Declaration<S, 0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, List<&1, P>, Ops(S, P, identity), grant(S, C, R, P, Rest, E, path, inject, identity)>
Declare owned publication from the canonical family binding, deriving both operational authority and complete event description. Staged owners commit to logs on success or return in the typed recovery product on abort; this constructor performs neither. Compose heterogeneous domains with ordinary-owned-event-declaration.both; see docs/parity/affine-events.md.