decode_owned_journal.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.1/decode_owned_journal.bend as Decode_owned_journal
5 imports
import Base import ./transaction.bend as T import ./bundle_install.bend as Install import ./world.bend as W import ./bundle_batch.bend as Batch
Types
type Receipt source · line 11 · raw
@World:Type -> @P:Type -> @Q:Type -> Type
Explicit app-owned reversible receipts live outside the World journal. Their generated position preserves ordering with ordinary resource/component inverses. Recovered affine owners are returned to the Local adapter, never placed into a resource that a subsequent inverse could overwrite.
Receipt@World:Type -> @P:Type -> @Q:Type -> @position:Nat -> @inverse:(@_:World -> 0xf435da9e535b3846d643dad16580e35f/bundle_install.Restore<World, P, Q>) -> Receipt<World, P, Q>
type Pending source · line 13 · raw
@Q:Type -> Type
Pending@Q:Type -> @owner:Q -> @error:0xf435da9e535b3846d643dad16580e35f/world.WorldError -> Pending<Q>
type Returned source · line 14 · raw
@World:Type -> @P:Type -> @Q:Type -> Type
Returned@World:Type -> @P:Type -> @Q:Type -> @world:World -> @owners:List<&1, P> -> @pending:List<&1, Pending<Q>> -> Returned<World, P, Q>
Templates
template stepped source · line 17 · raw
@-World:Type -> @count:Nat -> @world:World -> @undo:List<&1, @_:World -> World> -> Pair(World, List<&1, @_:World -> World>)
template restored source · line 23 · raw
@-World:Type -> @-P:Type -> @-Q:Type -> @next:(@_:World -> @_:List<&1, P> -> @_:List<&1, Pending<Q>> -> Returned<World, P, Q>) -> @owners:List<&1, P> -> @pending:List<&1, Pending<Q>> -> @result:0xf435da9e535b3846d643dad16580e35f/bundle_install.Restore<World, P, Q> -> Returned<World, P, Q>
template unwound source · line 28 · raw
@-World:Type -> @-P:Type -> @-Q:Type -> @inverse:(@_:World -> 0xf435da9e535b3846d643dad16580e35f/bundle_install.Restore<World, P, Q>) -> @next:(@_:List<&1, @_:World -> World> -> @_:World -> @_:List<&1, P> -> @_:List<&1, Pending<Q>> -> Returned<World, P, Q>) -> @owners:List<&1, P> -> @pending:List<&1, Pending<Q>> -> @result:Pair(World, List<&1, @_:World -> World>) -> Returned<World, P, Q>
template rollback source · line 32 · raw
@-World:Type -> @-P:Type -> @-Q:Type -> @receipts:List<&1, Receipt<World, P, Q>> -> @undo:List<&1, @_:World -> World> -> @count:Nat -> @world:World -> @owners:List<&1, P> -> @pending:List<&1, Pending<Q>> -> Returned<World, P, Q>
template counted source · line 37 · raw
@-World:Type -> @-P:Type -> @-Q:Type -> @receipts:List<&1, Receipt<World, P, Q>> -> @world:World -> @result:Pair(List<&1, @_:World -> World>, Nat) -> Returned<World, P, Q>
template inverse_counted source · line 41 · raw
@-World:Type -> @inverse:(@_:World -> World) -> @result:Pair(List<&1, @_:World -> World>, Nat) -> Pair(List<&1, @_:World -> World>, Nat)
template count_inverses source · line 44 · raw
@-World:Type -> @undo:List<&1, @_:World -> World> -> Pair(List<&1, @_:World -> World>, Nat)
template abort source · line 48 · raw
@-World:Type -> @-E:Data -> @-P:Type -> @-Q:Type -> @receipts:List<&1, Receipt<World, P, Q>> -> @tx:0xf435da9e535b3846d643dad16580e35f/transaction.Tx<World, E> -> Returned<World, P, Q>