Skip to main content

Module decoder

Module decoder 

Source
Expand description

The core ChainDecoder trait and associated progress/batch types.

Every chain-specific decoder (EVM, Solana, Cosmos, etc.) implements ChainDecoder. The trait is object-safe so decoders can be stored as Arc<dyn ChainDecoder> in the streaming and batch engines.

Structs§

BatchDecodeResult
The output of a batch decode: successful events plus any collected errors.

Enums§

ErrorMode
Controls how the batch engine reacts to individual decode failures.

Traits§

ChainDecoder
The central trait every chain-specific decoder must implement.
ProgressCallback
Callback invoked by the batch engine during long-running decodes. decoded is the number of events successfully decoded so far; total is the total count in the current batch.