~/bend-docscommunity

decode_requests.bend checks

raw source on the hub · import 0x67fd5084c1da4adc13317822045bb11f/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.

type Input source · line 17 · raw

@S:Data -> @P:Type -> Type

type Error source · line 19 · raw

Data

type Output source · line 22 · raw

@S:Data -> @P:Type -> Type

type Owner source · line 25 · raw

@S:Data -> @C:Type -> @R:Type -> @E:Data -> @P:Type -> @-identity:0x67fd5084c1da4adc13317822045bb11f/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x67fd5084c1da4adc13317822045bb11f/decode_data.Raw)) -> Type

Templates

template inserted source · line 28 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-identity:0x67fd5084c1da4adc13317822045bb11f/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x67fd5084c1da4adc13317822045bb11f/decode_data.Raw)) -> @declaration:0x67fd5084c1da4adc13317822045bb11f/persistence_declaration.Constructed<S, P, identity, project> -> @target:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> @canonical:0x67fd5084c1da4adc13317822045bb11f/decode_data.Raw -> @result:0x67fd5084c1da4adc13317822045bb11f/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:0x67fd5084c1da4adc13317822045bb11f/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x67fd5084c1da4adc13317822045bb11f/decode_data.Raw)) -> @declaration:0x67fd5084c1da4adc13317822045bb11f/persistence_declaration.Constructed<S, P, identity, project> -> @canonical:0x67fd5084c1da4adc13317822045bb11f/decode_data.Raw -> @result:0x67fd5084c1da4adc13317822045bb11f/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:0x67fd5084c1da4adc13317822045bb11f/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x67fd5084c1da4adc13317822045bb11f/decode_data.Raw)) -> @declaration:0x67fd5084c1da4adc13317822045bb11f/persistence_declaration.Constructed<S, P, identity, project> -> @batch:0x67fd5084c1da4adc13317822045bb11f/bundle_batch.Batch<S, C, R, E, Packet<P>> -> @operation:0x67fd5084c1da4adc13317822045bb11f/bundle_requests.Operation<S> -> @owner:P -> @original:0x67fd5084c1da4adc13317822045bb11f/decode_data.Raw -> @+canonical:0x67fd5084c1da4adc13317822045bb11f/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:0x67fd5084c1da4adc13317822045bb11f/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x67fd5084c1da4adc13317822045bb11f/decode_data.Raw)) -> @declaration:0x67fd5084c1da4adc13317822045bb11f/persistence_declaration.Constructed<S, P, identity, project> -> @batch:0x67fd5084c1da4adc13317822045bb11f/bundle_batch.Batch<S, C, R, E, Packet<P>> -> @operation:0x67fd5084c1da4adc13317822045bb11f/bundle_requests.Operation<S> -> @canonical:0x67fd5084c1da4adc13317822045bb11f/decode_data.Raw -> @projected:Pair(P, 0x67fd5084c1da4adc13317822045bb11f/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:0x67fd5084c1da4adc13317822045bb11f/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x67fd5084c1da4adc13317822045bb11f/decode_data.Raw)) -> @declaration:0x67fd5084c1da4adc13317822045bb11f/persistence_declaration.Constructed<S, P, identity, project> -> @batch:0x67fd5084c1da4adc13317822045bb11f/bundle_batch.Batch<S, C, R, E, Packet<P>> -> @operation:0x67fd5084c1da4adc13317822045bb11f/bundle_requests.Operation<S> -> @receipt:0x67fd5084c1da4adc13317822045bb11f/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:0x67fd5084c1da4adc13317822045bb11f/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x67fd5084c1da4adc13317822045bb11f/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:0x67fd5084c1da4adc13317822045bb11f/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x67fd5084c1da4adc13317822045bb11f/decode_data.Raw)) -> 0x67fd5084c1da4adc13317822045bb11f/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:0x67fd5084c1da4adc13317822045bb11f/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x67fd5084c1da4adc13317822045bb11f/decode_data.Raw)) -> @-body:(@-H:Type -> @-cap:0x67fd5084c1da4adc13317822045bb11f/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:0x67fd5084c1da4adc13317822045bb11f/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x67fd5084c1da4adc13317822045bb11f/decode_data.Raw)) -> @-attempt:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @_:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> @_:Packet<P> -> 0x67fd5084c1da4adc13317822045bb11f/bundle_delivery.Delivery<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, Packet<P>>) -> @-recover:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @_:Packet<P> -> @_:0x67fd5084c1da4adc13317822045bb11f/world.WorldError -> 0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>) -> @owner:Owner<S, C, R, E, P, identity, project> -> @outcome:0x67fd5084c1da4adc13317822045bb11f/transaction.Outcome<Error> -> 0x67fd5084c1da4adc13317822045bb11f/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:0x67fd5084c1da4adc13317822045bb11f/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x67fd5084c1da4adc13317822045bb11f/decode_data.Raw)) -> @declaration:0x67fd5084c1da4adc13317822045bb11f/persistence_declaration.Constructed<S, P, identity, project> -> @prepared:List<&1, 0x67fd5084c1da4adc13317822045bb11f/bundle_batch.Prepared<S, Packet<P>>> -> @tx:0x67fd5084c1da4adc13317822045bb11f/transaction.Tx<0x67fd5084c1da4adc13317822045bb11f/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:0x67fd5084c1da4adc13317822045bb11f/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x67fd5084c1da4adc13317822045bb11f/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:0x67fd5084c1da4adc13317822045bb11f/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x67fd5084c1da4adc13317822045bb11f/decode_data.Raw)) -> 0x67fd5084c1da4adc13317822045bb11f/capabilities.OwnedRequest<Owner<S, C, R, E, P, identity, project>, R, Unit>