Skip to main content

Module envelope

Module envelope 

Source
Expand description

Typed decoding of tool_loop ledger payloads (PSP-10 Gate AD).

One fact, one layer, one decoder per version: rows without schema_version use the strict legacy decoder, which refuses any post-PSP-10 variant appearing unversioned; version 1 rows decode as LoopEventEnvelopeV1; unknown versions fail authoritative replay and resume closed (a forensic display may still show raw bytes).

Structs§

DecodedLoopEvent
One decoded runtime event with its envelope version.

Functions§

decode_tool_loop
Decode one tool_loop payload for authoritative consumption (replay, resume, refold). Fails closed on unknown versions and on a legacy row carrying a post-PSP-10 variant.