ordinary_service_request.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.7/ordinary_service_request.bend as Ordinary_service_request
11 imports
import Base import ./clock_state.bend as Clock import ./capabilities.bend as Cap import ./ordinary_service_declaration.bend as Service import ./schema_fragments.bend as Fragment import ./schedule_provision.bend as Provision import ./world.bend as W import ./transaction.bend as T import ./trace_facts.bend as Trace import ./deferred_command.bend as Deferred import ./entity_allocator.bend as Alloc
Types
type Identity source · line 13 · raw
@-S:Data -> @-Input:Type -> @-Output:Type -> Data
Identity@-S:Data -> @-Input:Type -> @-Output:Type -> @id:U32 -> @key:String -> Identity<S, Input, Output>
type Declaration source · line 15 · raw
@-S:Data -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-Input:Type -> @-Output:Type -> @-identity:Identity<S, Input, Output> -> @-take:(@_:R -> Pair(Rest, 0x7e321819d0ff210531780719c7674cef/ordinary_service_declaration.Slot<P>)) -> @-put:(@_:Rest -> @_:0x7e321819d0ff210531780719c7674cef/ordinary_service_declaration.Slot<P> -> R) -> @-call:(@_:P -> @_:Input -> Pair(P, Output)) -> Data
Declaration@-S:Data -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-Input:Type -> @-Output:Type -> @-identity:Identity<S, Input, Output> -> @-take:(@_:R -> Pair(Rest, 0x7e321819d0ff210531780719c7674cef/ordinary_service_declaration.Slot<P>)) -> @-put:(@_:Rest -> @_:0x7e321819d0ff210531780719c7674cef/ordinary_service_declaration.Slot<P> -> R) -> @-call:(@_:P -> @_:Input -> Pair(P, Output)) -> Declaration<S, R, P, Rest, Input, Output, identity, take, put, call>
type RequestResult source · line 17 · raw
@-Input:Type -> @-Output:Type -> Type
Called@-Input:Type -> @-Output:Type -> @output:Output -> RequestResult<Input, Output>
type Grant source · line 20 · raw
@-S:Data -> @-Input:Type -> @-Output:Type -> @-identity:Identity<S, Input, Output> -> @-H:Type -> Type
Grant@-S:Data -> @-Input:Type -> @-Output:Type -> @-identity:Identity<S, Input, Output> -> @-H:Type -> @operation:0x7e321819d0ff210531780719c7674cef/capabilities.OwnedRequest<H, Input, RequestResult<Input, Output>> -> Grant<S, Input, Output, identity, H>
Templates
template declare source · line 22 · raw
@-S:Data -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-Input:Type -> @-Output:Type -> @-identity:Identity<S, Input, Output> -> @-take:(@_:R -> Pair(Rest, 0x7e321819d0ff210531780719c7674cef/ordinary_service_declaration.Slot<P>)) -> @-put:(@_:Rest -> @_:0x7e321819d0ff210531780719c7674cef/ordinary_service_declaration.Slot<P> -> R) -> @-call:(@_:P -> @_:Input -> Pair(P, Output)) -> Declaration<S, R, P, Rest, Input, Output, identity, take, put, call>
template key source · line 24 · raw
@-S:Data -> @-Input:Type -> @-Output:Type -> @identity:Identity<S, Input, Output> -> String
template requirement source · line 27 · raw
@-S:Data -> @-Input:Type -> @-Output:Type -> @identity:Identity<S, Input, Output> -> 0x7e321819d0ff210531780719c7674cef/schedule_provision.Requirement<S>
template entry source · line 30 · raw
@-S:Data -> @-Input:Type -> @-Output:Type -> @identity:Identity<S, Input, Output> -> 0x7e321819d0ff210531780719c7674cef/schema_fragments.Entry<S>
template called source · line 33 · raw
@-R:Type -> @-P:Type -> @-Rest:Type -> @-Input:Type -> @-Output:Type -> @-put:(@_:Rest -> @_:0x7e321819d0ff210531780719c7674cef/ordinary_service_declaration.Slot<P> -> R) -> @rest:Rest -> @value:Pair(P, Output) -> Pair(R, RequestResult<Input, Output>)
template slot_called source · line 36 · raw
@-S:Data -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-Input:Type -> @-Output:Type -> @-identity:Identity<S, Input, Output> -> @-take:(@_:R -> Pair(Rest, 0x7e321819d0ff210531780719c7674cef/ordinary_service_declaration.Slot<P>)) -> @-put:(@_:Rest -> @_:0x7e321819d0ff210531780719c7674cef/ordinary_service_declaration.Slot<P> -> R) -> @-call:(@_:P -> @_:Input -> Pair(P, Output)) -> @input:Input -> @value:Pair(Rest, 0x7e321819d0ff210531780719c7674cef/ordinary_service_declaration.Slot<P>) -> Pair(R, RequestResult<Input, Output>)
template world_called source · line 40 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Input:Type -> @-Output:Type -> @+namespace:U32 -> @allocator:0x7e321819d0ff210531780719c7674cef/entity_allocator.Allocator -> @store:C -> @+events:List<&2, E> -> @pending:List<&1, 0x7e321819d0ff210531780719c7674cef/deferred_command.Command<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>>> -> @+registrations:List<&2, 0x7e321819d0ff210531780719c7674cef/world.RegistrationMeta> -> @+nextSystem:U32 -> @+clock:0x7e321819d0ff210531780719c7674cef/clock_state.State -> @value:Pair(R, RequestResult<Input, Output>) -> Pair(0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, RequestResult<Input, Output>)
template request_world source · line 43 · raw
@-C:Type -> @-E:Data -> @-S:Data -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-Input:Type -> @-Output:Type -> @-identity:Identity<S, Input, Output> -> @-take:(@_:R -> Pair(Rest, 0x7e321819d0ff210531780719c7674cef/ordinary_service_declaration.Slot<P>)) -> @-put:(@_:Rest -> @_:0x7e321819d0ff210531780719c7674cef/ordinary_service_declaration.Slot<P> -> R) -> @-call:(@_:P -> @_:Input -> Pair(P, Output)) -> @world:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @input:Input -> Pair(0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, RequestResult<Input, Output>)
template transaction_called source · line 46 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Input:Type -> @-Output:Type -> @undo:List<&1, @_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> 0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>> -> @commands:List<&1, 0x7e321819d0ff210531780719c7674cef/deferred_command.Command<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>>> -> @events:List<&2, E> -> @trace:0x7e321819d0ff210531780719c7674cef/trace_facts.State -> @value:Pair(0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, RequestResult<Input, Output>) -> Pair(0x7e321819d0ff210531780719c7674cef/transaction.Tx<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, E>, RequestResult<Input, Output>)
template request_transaction source · line 49 · raw
@-C:Type -> @-E:Data -> @-S:Data -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-Input:Type -> @-Output:Type -> @-identity:Identity<S, Input, Output> -> @-take:(@_:R -> Pair(Rest, 0x7e321819d0ff210531780719c7674cef/ordinary_service_declaration.Slot<P>)) -> @-put:(@_:Rest -> @_:0x7e321819d0ff210531780719c7674cef/ordinary_service_declaration.Slot<P> -> R) -> @-call:(@_:P -> @_:Input -> Pair(P, Output)) -> @transaction:0x7e321819d0ff210531780719c7674cef/transaction.Tx<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, E> -> @input:Input -> Pair(0x7e321819d0ff210531780719c7674cef/transaction.Tx<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, E>, RequestResult<Input, Output>)
template grant source · line 52 · raw
@-C:Type -> @-E:Data -> @-S:Data -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-Input:Type -> @-Output:Type -> @-identity:Identity<S, Input, Output> -> @-take:(@_:R -> Pair(Rest, 0x7e321819d0ff210531780719c7674cef/ordinary_service_declaration.Slot<P>)) -> @-put:(@_:Rest -> @_:0x7e321819d0ff210531780719c7674cef/ordinary_service_declaration.Slot<P> -> R) -> @-call:(@_:P -> @_:Input -> Pair(P, Output)) -> @-declaration:Declaration<S, R, P, Rest, Input, Output, identity, take, put, call> -> Grant<S, Input, Output, identity, 0x7e321819d0ff210531780719c7674cef/transaction.Tx<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, E>>
template request_field source · line 54 · raw
@-S:Data -> @-Input:Type -> @-Output:Type -> @-identity:Identity<S, Input, Output> -> @-H:Type -> @value:Grant<S, Input, Output, identity, H> -> @_:H -> @_:Input -> Pair(H, RequestResult<Input, Output>)
template request source · line 57 · raw
@-S:Data -> @-Input:Type -> @-Output:Type -> @-identity:Identity<S, Input, Output> -> @-H:Type -> @-operation:Grant<S, Input, Output, identity, H> -> @owner:H -> @input:Input -> Pair(H, RequestResult<Input, Output>)
template declaration_key source · line 60 · raw
@-S:Data -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-Input:Type -> @-Output:Type -> @-identity:Identity<S, Input, Output> -> @-take:(@_:R -> Pair(Rest, 0x7e321819d0ff210531780719c7674cef/ordinary_service_declaration.Slot<P>)) -> @-put:(@_:Rest -> @_:0x7e321819d0ff210531780719c7674cef/ordinary_service_declaration.Slot<P> -> R) -> @-call:(@_:P -> @_:Input -> Pair(P, Output)) -> @_:Declaration<S, R, P, Rest, Input, Output, identity, take, put, call> -> String
template declaration_requirement source · line 62 · raw
@-S:Data -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-Input:Type -> @-Output:Type -> @-identity:Identity<S, Input, Output> -> @-take:(@_:R -> Pair(Rest, 0x7e321819d0ff210531780719c7674cef/ordinary_service_declaration.Slot<P>)) -> @-put:(@_:Rest -> @_:0x7e321819d0ff210531780719c7674cef/ordinary_service_declaration.Slot<P> -> R) -> @-call:(@_:P -> @_:Input -> Pair(P, Output)) -> @_:Declaration<S, R, P, Rest, Input, Output, identity, take, put, call> -> 0x7e321819d0ff210531780719c7674cef/schedule_provision.Requirement<S>
template declaration_entry source · line 64 · raw
@-S:Data -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-Input:Type -> @-Output:Type -> @-identity:Identity<S, Input, Output> -> @-take:(@_:R -> Pair(Rest, 0x7e321819d0ff210531780719c7674cef/ordinary_service_declaration.Slot<P>)) -> @-put:(@_:Rest -> @_:0x7e321819d0ff210531780719c7674cef/ordinary_service_declaration.Slot<P> -> R) -> @-call:(@_:P -> @_:Input -> Pair(P, Output)) -> @_:Declaration<S, R, P, Rest, Input, Output, identity, take, put, call> -> 0x7e321819d0ff210531780719c7674cef/schema_fragments.Entry<S>
template status source · line 66 · raw
@-S:Data -> @-Input:Type -> @-Output:Type -> @identity:Identity<S, Input, Output> -> @provided:Bool -> 0x7e321819d0ff210531780719c7674cef/ordinary_service_declaration.Status<S>
template slot_observed source · line 69 · raw
@-S:Data -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-Input:Type -> @-Output:Type -> @-identity:Identity<S, Input, Output> -> @-take:(@_:R -> Pair(Rest, 0x7e321819d0ff210531780719c7674cef/ordinary_service_declaration.Slot<P>)) -> @-put:(@_:Rest -> @_:0x7e321819d0ff210531780719c7674cef/ordinary_service_declaration.Slot<P> -> R) -> @-call:(@_:P -> @_:Input -> Pair(P, Output)) -> @value:Pair(Rest, 0x7e321819d0ff210531780719c7674cef/ordinary_service_declaration.Slot<P>) -> Pair(R, List<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_service_declaration.Status<S>>)
template world_observed_join source · line 73 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @+namespace:U32 -> @allocator:0x7e321819d0ff210531780719c7674cef/entity_allocator.Allocator -> @store:C -> @+events:List<&2, E> -> @pending:List<&1, 0x7e321819d0ff210531780719c7674cef/deferred_command.Command<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>>> -> @+registrations:List<&2, 0x7e321819d0ff210531780719c7674cef/world.RegistrationMeta> -> @+nextSystem:U32 -> @+clock:0x7e321819d0ff210531780719c7674cef/clock_state.State -> @value:Pair(R, List<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_service_declaration.Status<S>>) -> Pair(0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, List<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_service_declaration.Status<S>>)
template world_observed source · line 76 · raw
@-C:Type -> @-E:Data -> @-S:Data -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-Input:Type -> @-Output:Type -> @-identity:Identity<S, Input, Output> -> @-take:(@_:R -> Pair(Rest, 0x7e321819d0ff210531780719c7674cef/ordinary_service_declaration.Slot<P>)) -> @-put:(@_:Rest -> @_:0x7e321819d0ff210531780719c7674cef/ordinary_service_declaration.Slot<P> -> R) -> @-call:(@_:P -> @_:Input -> Pair(P, Output)) -> @-declaration:Declaration<S, R, P, Rest, Input, Output, identity, take, put, call> -> @world:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> Pair(0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, List<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_service_declaration.Status<S>>)
template setup source · line 79 · raw
@-C:Type -> @-E:Data -> @-S:Data -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-Input:Type -> @-Output:Type -> @-identity:Identity<S, Input, Output> -> @-take:(@_:R -> Pair(Rest, 0x7e321819d0ff210531780719c7674cef/ordinary_service_declaration.Slot<P>)) -> @-put:(@_:Rest -> @_:0x7e321819d0ff210531780719c7674cef/ordinary_service_declaration.Slot<P> -> R) -> @-call:(@_:P -> @_:Input -> Pair(P, Output)) -> @-declaration:Declaration<S, R, P, Rest, Input, Output, identity, take, put, call> -> 0x7e321819d0ff210531780719c7674cef/ordinary_service_declaration.Setup<S, C, R, E, world_observed(C, E, S, R, P, Rest, Input, Output, identity, take, put, call, declaration)>