Module core

Module core 

Source
Expand description

Shared core extraction functions for parsing event logs.

These functions operate on raw bytes and are used by both HyperSync and RPC parsers to ensure consistent extraction logic.

Functionsยง

extract_address_from_bytes
Extract address from 32-byte topic (address in last 20 bytes).
extract_i32_from_bytes
Extract i32 from 32-byte topic (value in last 4 bytes, big-endian, signed).
extract_u32_from_bytes
Extract u32 from 32-byte topic (value in last 4 bytes, big-endian).
validate_signature_bytes
Validate event signature matches expected hash.