decode_requests.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.7/decode_requests.bend as Decode_requests
11 imports
import Base import ./resource.bend as Resource import ./bundle_batch.bend as Batch import ./bundle_delivery.bend as Delivery import ./bundle_requests.bend as Commands import ./world.bend as W import ./transaction.bend as T import ./capabilities.bend as Cap import ./decode_data.bend as D import ./persistence_declaration.bend as Decl import ./ordinary_declaration.bend as Identity
Types
type Packet source · line 15 · raw
@P:Type -> Type
The packet owns original P plus detached canonical input. Typed schema delivery constructs its actual component; no generic Raw -> arbitrary Type inverse.
Packet@P:Type -> @owner:Maybe<&1, P> -> @original:0x7e321819d0ff210531780719c7674cef/decode_data.Raw -> @canonical:0x7e321819d0ff210531780719c7674cef/decode_data.Raw -> Packet<P>
type Input source · line 17 · raw
@S:Data -> @P:Type -> Type
Input@S:Data -> @P:Type -> @operation:0x7e321819d0ff210531780719c7674cef/bundle_requests.Operation<S> -> @owner:P -> Input<S, P>
type Error source · line 19 · raw
Data
Validation@error:0x7e321819d0ff210531780719c7674cef/decode_data.Error -> Error
Entity@error:0x7e321819d0ff210531780719c7674cef/world.WorldError -> Error
type Output source · line 22 · raw
@S:Data -> @P:Type -> Type
Accepted@S:Data -> @P:Type -> @target:0x7e321819d0ff210531780719c7674cef/world.Handle<S> -> @spawned:Bool -> @canonical:0x7e321819d0ff210531780719c7674cef/decode_data.Raw -> Output<S, P>
Refused@S:Data -> @P:Type -> @owner:Maybe<&1, P> -> @error:Error -> Output<S, P>
type Owner source · line 25 · raw
@S:Data -> @C:Type -> @R:Type -> @E:Data -> @P:Type -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> Type
Owner@S:Data -> @C:Type -> @R:Type -> @E:Data -> @P:Type -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @batch:0x7e321819d0ff210531780719c7674cef/bundle_batch.Batch<S, C, R, E, Packet<P>> -> @declaration:0x7e321819d0ff210531780719c7674cef/persistence_declaration.Constructed<S, P, identity, project> -> Owner<S, C, R, E, P, identity, project>
Templates
template inserted source · line 28 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @declaration:0x7e321819d0ff210531780719c7674cef/persistence_declaration.Constructed<S, P, identity, project> -> @target:0x7e321819d0ff210531780719c7674cef/world.Handle<S> -> @canonical:0x7e321819d0ff210531780719c7674cef/decode_data.Raw -> @result:0x7e321819d0ff210531780719c7674cef/bundle_batch.Inserted<S, C, R, E, Packet<P>> -> Pair(Owner<S, C, R, E, P, identity, project>, Output<S, P>)
template spawned source · line 32 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @declaration:0x7e321819d0ff210531780719c7674cef/persistence_declaration.Constructed<S, P, identity, project> -> @canonical:0x7e321819d0ff210531780719c7674cef/decode_data.Raw -> @result:0x7e321819d0ff210531780719c7674cef/bundle_batch.Spawned<S, C, R, E, Packet<P>> -> Pair(Owner<S, C, R, E, P, identity, project>, Output<S, P>)
template enqueue_packet source · line 36 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @declaration:0x7e321819d0ff210531780719c7674cef/persistence_declaration.Constructed<S, P, identity, project> -> @batch:0x7e321819d0ff210531780719c7674cef/bundle_batch.Batch<S, C, R, E, Packet<P>> -> @operation:0x7e321819d0ff210531780719c7674cef/bundle_requests.Operation<S> -> @owner:P -> @original:0x7e321819d0ff210531780719c7674cef/decode_data.Raw -> @+canonical:0x7e321819d0ff210531780719c7674cef/decode_data.Raw -> Pair(Owner<S, C, R, E, P, identity, project>, Output<S, P>)
template enqueue source · line 40 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @declaration:0x7e321819d0ff210531780719c7674cef/persistence_declaration.Constructed<S, P, identity, project> -> @batch:0x7e321819d0ff210531780719c7674cef/bundle_batch.Batch<S, C, R, E, Packet<P>> -> @operation:0x7e321819d0ff210531780719c7674cef/bundle_requests.Operation<S> -> @canonical:0x7e321819d0ff210531780719c7674cef/decode_data.Raw -> @projected:Pair(P, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw) -> Pair(Owner<S, C, R, E, P, identity, project>, Output<S, P>)
template validated source · line 43 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @declaration:0x7e321819d0ff210531780719c7674cef/persistence_declaration.Constructed<S, P, identity, project> -> @batch:0x7e321819d0ff210531780719c7674cef/bundle_batch.Batch<S, C, R, E, Packet<P>> -> @operation:0x7e321819d0ff210531780719c7674cef/bundle_requests.Operation<S> -> @receipt:0x7e321819d0ff210531780719c7674cef/decode_data.Receipt<P> -> Pair(Owner<S, C, R, E, P, identity, project>, Output<S, P>)
template request source · line 47 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @frame:Owner<S, C, R, E, P, identity, project> -> @input:Input<S, P> -> Pair(Owner<S, C, R, E, P, identity, project>, Output<S, P>)
template grant source · line 50 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> 0x7e321819d0ff210531780719c7674cef/capabilities.OwnedRequest<Owner<S, C, R, E, P, identity, project>, Input<S, P>, Output<S, P>>
template invoke source · line 52 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-A:Type -> @-U:Type -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @-body:(@-H:Type -> @-cap:0x7e321819d0ff210531780719c7674cef/capabilities.OwnedRequest<H, Input<S, P>, Output<S, P>> -> @_:A -> @_:H -> Pair(H, U)) -> @owner:Owner<S, C, R, E, P, identity, project> -> @args:A -> Pair(Owner<S, C, R, E, P, identity, project>, U)
template finish source · line 54 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-Error:Data -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @-attempt:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:0x7e321819d0ff210531780719c7674cef/world.Handle<S> -> @_:Packet<P> -> 0x7e321819d0ff210531780719c7674cef/bundle_delivery.Delivery<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Packet<P>>) -> @-recover:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Packet<P> -> @_:0x7e321819d0ff210531780719c7674cef/world.WorldError -> 0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>) -> @owner:Owner<S, C, R, E, P, identity, project> -> @outcome:0x7e321819d0ff210531780719c7674cef/transaction.Outcome<Error> -> 0x7e321819d0ff210531780719c7674cef/bundle_batch.Finished<S, C, R, E, Packet<P>, Error>
template resource_replaced source · line 60 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @declaration:0x7e321819d0ff210531780719c7674cef/persistence_declaration.Constructed<S, P, identity, project> -> @prepared:List<&1, 0x7e321819d0ff210531780719c7674cef/bundle_batch.Prepared<S, Packet<P>>> -> @tx:0x7e321819d0ff210531780719c7674cef/transaction.Tx<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, E> -> Pair(Owner<S, C, R, E, P, identity, project>, Unit)
Additive trusted resource provider over the SAME transaction; gameplay can use it only when provisioning explicitly includes this owned grant in its Ops.
template replace_resource source · line 62 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @owner:Owner<S, C, R, E, P, identity, project> -> @replacement:R -> Pair(Owner<S, C, R, E, P, identity, project>, Unit)
template resource_grant source · line 65 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> 0x7e321819d0ff210531780719c7674cef/capabilities.OwnedRequest<Owner<S, C, R, E, P, identity, project>, R, Unit>