Expand description
LiteSVM integration for Light Protocol logging
This module provides the glue layer between LiteSVM and the instruction-decoder crate.
All logging types, decoders, and formatting utilities are in light-instruction-decoder.
This module only contains:
- LiteSVM-specific transaction result parsing (
from_transaction_result) - Log file I/O functions
- Re-exports from instruction-decoder
Structs§
- Account
Change - Account state changes during transaction
- Account
Compression Instruction Decoder - Generated InstructionDecoder implementation
- Account
State Snapshot - Pre and post transaction account state snapshot
- CToken
Instruction Decoder - Generated InstructionDecoder implementation
- Colors
- Colors for terminal output
- Compressed
Account Info - Compressed account information
- Compute
Budget Instruction Decoder - Generated InstructionDecoder implementation
- Decoded
Field - A decoded instruction field for display.
- Decoded
Instruction - Result of decoding an instruction.
- Decoder
Registry - Registry of instruction decoders
- Enhanced
Instruction Log - Enhanced instruction log with hierarchy and parsing
- Enhanced
Logging Config - Configuration for enhanced transaction logging
- Enhanced
Transaction Log - Enhanced transaction log containing all formatting information
- Light
Protocol Event - Light Protocol specific events
- Light
System Instruction Decoder - Generated InstructionDecoder implementation
- Merkle
Tree Change - Merkle tree state change
- Registry
Instruction Decoder - Generated InstructionDecoder implementation
- SplToken
Instruction Decoder - Generated InstructionDecoder implementation
- System
Instruction Decoder - Generated InstructionDecoder implementation
- Token2022
Instruction Decoder - Generated InstructionDecoder implementation
- Transaction
Formatter - Transaction formatter with configurable output
Enums§
- Account
Access - Account access pattern during transaction
- LogVerbosity
- Verbosity levels for transaction logging
- Transaction
Status - Transaction execution status
Traits§
- Instruction
Decoder - Trait for instruction decoders - each program implements this.
Functions§
- capture_
account_ states - Capture account states from LiteSVM context. Call this before and after sending the transaction.
- from_
transaction_ result - Create EnhancedTransactionLog from LiteSVM transaction result
- log_
transaction_ enhanced - Main entry point for enhanced transaction logging
- log_
transaction_ enhanced_ with_ console - Enhanced transaction logging with console output control
- should_
use_ enhanced_ logging - Check if enhanced logging should be used instead of basic logging
Type Aliases§
- Account
States - Lightweight pre-transaction account state capture. Maps pubkey -> (lamports, data_len) for accounts in a transaction.