~/bend-docscommunity

ordinary_owned_event_binding.bend checks

raw source on the hub · import bendvy-ecs-core@0.1.0.6/ordinary_owned_event_binding.bend as Ordinary_owned_event_binding

7 imports
import Base
import ./relation_commands.bend as Relation
import ./owner_product.bend as Product
import ./owned_event_log.bend as Log
import ./owned_event_key_route.bend as Route
import ./event_publication.bend as Publication
import ./ordinary_owned_event.bend as Pub

Types

type Binding source · line 12 · raw

@S:Data -> @R:Type -> @P:Type -> @Rest:Type -> @E:Data -> @-path:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<R, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_log.Log<P>, Rest> -> @-inject:(@_:Nat -> E) -> @-select:(@_:List<&2, E> -> List<&2, Nat>) -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_owned_event.Domain<S, P> -> Data

Trusted engine family boundary. Ordinary constructors derive all paths/routes from child bindings; gameplay never supplies a live lens or key-routing closure. The raw constructor is trusted provisioning, not a module-privacy guarantee.

Templates

template identity_take source · line 14 · raw

@-T:Type -> @owner:T -> Pair(Unit, T)

template identity_put source · line 15 · raw

@-T:Type -> @unit:Unit -> @owner:T -> T

template identity_lens source · line 16 · raw

@-T:Type -> 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<T, T, Unit>

template leaf source · line 18 · raw

@-S:Data -> @-P:Type -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_owned_event.Domain<S, P> -> Binding<S, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_log.Log<P>, P, Unit, Nat, identity_lens(0x14a72e1c180a5ab1f8a056d43822425c/owned_event_log.Log<P>), 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_key_route.inject_leaf, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_key_route.select_leaf, identity>

template left_path source · line 20 · raw

@-A:Type -> @-B:Type -> @-P:Type -> @-Rest:Type -> @-path:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<A, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_log.Log<P>, Rest> -> 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<A, B>, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_log.Log<P>, Pair(B, Rest)>

template right_path source · line 22 · raw

@-A:Type -> @-B:Type -> @-P:Type -> @-Rest:Type -> @-path:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<B, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_log.Log<P>, Rest> -> 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<A, B>, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_log.Log<P>, Pair(A, Rest)>

template left source · line 24 · raw

@-S:Data -> @-A:Type -> @-B:Type -> @-P:Type -> @-Rest:Type -> @-EA:Data -> @-EB:Data -> @-path:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<A, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_log.Log<P>, Rest> -> @-inject:(@_:Nat -> EA) -> @-select:(@_:List<&2, EA> -> List<&2, Nat>) -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_owned_event.Domain<S, P> -> @binding:Binding<S, A, P, Rest, EA, path, inject, select, identity> -> Binding<S, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<A, B>, P, Pair(B, Rest), 0x14a72e1c180a5ab1f8a056d43822425c/event_publication.Publication<EA, EB>, left_path(A, B, P, Rest, path), 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_key_route.inject_left(EA, EB, inject), 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_key_route.select_left(EA, EB, select), identity>

template under_resource source · line 28 · raw

@-S:Data -> @-User:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-E:Data -> @-path:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<R, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_log.Log<P>, Rest> -> @-inject:(@_:Nat -> E) -> @-select:(@_:List<&2, E> -> List<&2, Nat>) -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_owned_event.Domain<S, P> -> @binding:Binding<S, R, P, Rest, E, path, inject, select, identity> -> Binding<S, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<User, R>, P, Pair(User, Rest), E, right_path(User, R, P, Rest, path), inject, select, identity>

template notice_inject source · line 32 · raw

@-S:Data -> @-E:Data -> @-inject:(@_:Nat -> E) -> @id:Nat -> 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>

Relation notice transport preserves the canonical log path and payload domain.

template notice_originals source · line 33 · raw

@-S:Data -> @-E:Data -> @records:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>> -> List<&2, E>

template notice_select source · line 38 · raw

@-S:Data -> @-E:Data -> @-select:(@_:List<&2, E> -> List<&2, Nat>) -> @records:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>> -> List<&2, Nat>

template under_notice source · line 40 · raw

@-S:Data -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-E:Data -> @-path:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<R, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_log.Log<P>, Rest> -> @-inject:(@_:Nat -> E) -> @-select:(@_:List<&2, E> -> List<&2, Nat>) -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_owned_event.Domain<S, P> -> @binding:Binding<S, R, P, Rest, E, path, inject, select, identity> -> Binding<S, R, P, Rest, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>, path, notice_inject(S, E, inject), notice_select(S, E, select), identity>