~/bend-docscommunity

decode_frame.bend checks

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

16 imports
import Base
import ./change_tick.bend as Tick
import ./decode_requests.bend as Request
import ./decode_owned_journal.bend as Journal
import ./decode_immediate.bend as Immediate
import ./bundle_install.bend as Install
import ./decode_data.bend as D
import ./compose.bend as Query
import ./bundle_batch.bend as Batch
import ./world.bend as World
import ./capabilities.bend as Cap
import ./component.bend as Component
import ./transaction.bend as T
import ./resource.bend as Resource
import ./ordinary_declaration.bend as Identity
import ./persistence_declaration.bend as Declaration

Types

type Frame source · line 20 · raw

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

Trusted provisioning frame. Gameplay receives only universal H and its grants. Query and decode operate on the same Tx; prepared owners stay in this frame.

Templates

template read_join source · line 23 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-Q:Type -> @-V:Data -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @declaration:0x14a72e1c180a5ab1f8a056d43822425c/persistence_declaration.Constructed<S, P, identity, project> -> @prepared:List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/bundle_batch.Prepared<S, 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Packet<P>>> -> @receipts:List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/decode_owned_journal.Receipt<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Packet<P>, Q>> -> @pending:List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/decode_owned_journal.Pending<Q>> -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/compose.Frame<S, C, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/component.Access<V>) -> Pair(Frame<S, C, R, E, P, Q, identity, project>, 0x14a72e1c180a5ab1f8a056d43822425c/component.Access<V>)

template read source · line 27 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-Q:Type -> @-V:Data -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @-get:(@_:0x14a72e1c180a5ab1f8a056d43822425c/compose.Frame<S, C, R, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/compose.Frame<S, C, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/component.Access<V>)) -> @frame:Frame<S, C, R, E, P, Q, identity, project> -> Pair(Frame<S, C, R, E, P, Q, identity, project>, 0x14a72e1c180a5ab1f8a056d43822425c/component.Access<V>)

template read_grant source · line 31 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-Q:Type -> @-V:Data -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @-grant:0x14a72e1c180a5ab1f8a056d43822425c/capabilities.Read<0x14a72e1c180a5ab1f8a056d43822425c/compose.Frame<S, C, R, E>, V> -> 0x14a72e1c180a5ab1f8a056d43822425c/capabilities.Read<Frame<S, C, R, E, P, Q, identity, project>, V>

template request_join source · line 34 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-Q:Type -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @handle:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @error:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.WorldError> -> @cursor:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick> -> @receipts:List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/decode_owned_journal.Receipt<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Packet<P>, Q>> -> @pending:List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/decode_owned_journal.Pending<Q>> -> @result:Pair(0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Owner<S, C, R, E, P, identity, project>, 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Output<S, P>) -> Pair(Frame<S, C, R, E, P, Q, identity, project>, 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Output<S, P>)

template request source · line 38 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-Q:Type -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @frame:Frame<S, C, R, E, P, Q, identity, project> -> @input:0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Input<S, P> -> Pair(Frame<S, C, R, E, P, Q, identity, project>, 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Output<S, P>)

template request_grant source · line 42 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-Q:Type -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> 0x14a72e1c180a5ab1f8a056d43822425c/capabilities.OwnedRequest<Frame<S, C, R, E, P, Q, identity, project>, 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Input<S, P>, 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Output<S, P>>

template selected_join source · line 45 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-Q:Type -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @declaration:0x14a72e1c180a5ab1f8a056d43822425c/persistence_declaration.Constructed<S, P, identity, project> -> @prepared:List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/bundle_batch.Prepared<S, 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Packet<P>>> -> @receipts:List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/decode_owned_journal.Receipt<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Packet<P>, Q>> -> @pending:List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/decode_owned_journal.Pending<Q>> -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/compose.Frame<S, C, R, E>, Bool) -> Pair(Frame<S, C, R, E, P, Q, identity, project>, Bool)

template select source · line 51 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-Q:Type -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @-selector:(@_:0x14a72e1c180a5ab1f8a056d43822425c/compose.Frame<S, C, R, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/compose.Frame<S, C, R, E>, Bool)) -> @frame:Frame<S, C, R, E, P, Q, identity, project> -> Pair(Frame<S, C, R, E, P, Q, identity, project>, Bool)

Membership is evaluated on the current transaction for every row, never on a separate pre-scan world. The closed selector comes from the query declaration.

template receipt_added source · line 55 · raw

@-W:Type -> @-P:Type -> @-Q:Type -> @receipts:List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/decode_owned_journal.Receipt<W, P, Q>> -> @receipt:Maybe<&1, 0x14a72e1c180a5ab1f8a056d43822425c/decode_owned_journal.Receipt<W, P, Q>> -> List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/decode_owned_journal.Receipt<W, P, Q>>

template pending_added source · line 60 · raw

@-Q:Type -> @pending:List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/decode_owned_journal.Pending<Q>> -> @next:Maybe<&1, 0x14a72e1c180a5ab1f8a056d43822425c/decode_owned_journal.Pending<Q>> -> List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/decode_owned_journal.Pending<Q>>

template spawn_output source · line 65 · raw

@-S:Data -> @-P:Type -> @canonical:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw -> @result:Result<&2, &2, 0x14a72e1c180a5ab1f8a056d43822425c/world.WorldError, 0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S>> -> @packet:Maybe<&1, 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Packet<P>> -> 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Output<S, P>

template spawned source · line 71 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-Q:Type -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @declaration:0x14a72e1c180a5ab1f8a056d43822425c/persistence_declaration.Constructed<S, P, identity, project> -> @prepared:List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/bundle_batch.Prepared<S, 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Packet<P>>> -> @handle:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @error:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.WorldError> -> @cursor:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick> -> @receipts:List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/decode_owned_journal.Receipt<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Packet<P>, Q>> -> @pending:List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/decode_owned_journal.Pending<Q>> -> @canonical:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw -> @result:Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, E>, Pair(Result<&2, &2, 0x14a72e1c180a5ab1f8a056d43822425c/world.WorldError, 0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S>>, Pair(Maybe<&1, 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Packet<P>>, Pair(Maybe<&1, 0x14a72e1c180a5ab1f8a056d43822425c/decode_owned_journal.Receipt<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Packet<P>, Q>>, Maybe<&1, 0x14a72e1c180a5ab1f8a056d43822425c/decode_owned_journal.Pending<Q>>)))) -> Pair(Frame<S, C, R, E, P, Q, identity, project>, 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Output<S, P>)

template spawn_projected source · line 75 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-Q:Type -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @-install:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Packet<P> -> 0x14a72e1c180a5ab1f8a056d43822425c/bundle_install.Attempt<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Packet<P>, Q>) -> @frame:Frame<S, C, R, E, P, Q, identity, project> -> @+canonical:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw -> @result:Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw) -> Pair(Frame<S, C, R, E, P, Q, identity, project>, 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Output<S, P>)

template spawn_validated source · line 79 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-Q:Type -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @-install:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Packet<P> -> 0x14a72e1c180a5ab1f8a056d43822425c/bundle_install.Attempt<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Packet<P>, Q>) -> @frame:Frame<S, C, R, E, P, Q, identity, project> -> @receipt:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Receipt<P> -> Pair(Frame<S, C, R, E, P, Q, identity, project>, 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Output<S, P>)

template spawn source · line 84 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-Q:Type -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @-install:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Packet<P> -> 0x14a72e1c180a5ab1f8a056d43822425c/bundle_install.Attempt<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Packet<P>, Q>) -> @frame:Frame<S, C, R, E, P, Q, identity, project> -> @owner:P -> Pair(Frame<S, C, R, E, P, Q, identity, project>, 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Output<S, P>)

template spawn_grant source · line 88 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-Q:Type -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @-install:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Packet<P> -> 0x14a72e1c180a5ab1f8a056d43822425c/bundle_install.Attempt<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Packet<P>, Q>) -> 0x14a72e1c180a5ab1f8a056d43822425c/capabilities.OwnedRequest<Frame<S, C, R, E, P, Q, identity, project>, P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Output<S, P>>

template resource_join source · line 91 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-Q:Type -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @declaration:0x14a72e1c180a5ab1f8a056d43822425c/persistence_declaration.Constructed<S, P, identity, project> -> @prepared:List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/bundle_batch.Prepared<S, 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Packet<P>>> -> @handle:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @error:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.WorldError> -> @cursor:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick> -> @receipts:List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/decode_owned_journal.Receipt<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Packet<P>, Q>> -> @pending:List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/decode_owned_journal.Pending<Q>> -> @tx:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, E> -> Pair(Frame<S, C, R, E, P, Q, identity, project>, Unit)

template resource_set source · line 94 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-Q:Type -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @frame:Frame<S, C, R, E, P, Q, identity, project> -> @replacement:R -> Pair(Frame<S, C, R, E, P, Q, identity, project>, Unit)

template resource_grant source · line 98 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-Q:Type -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> 0x14a72e1c180a5ab1f8a056d43822425c/capabilities.OwnedRequest<Frame<S, C, R, E, P, Q, identity, project>, R, Unit>