Expand description
Light System Program instruction decoder.
This module provides a macro-derived decoder for the Light System Program, which uses 8-byte discriminators for compressed account operations.
§Instructions
Invoke: Direct invocation of Light System (has 4-byte Anchor prefix after discriminator)InvokeCpi: CPI invocation from another program (has 4-byte Anchor prefix after discriminator)InvokeCpiWithReadOnly: CPI with read-only accounts (no prefix, borsh-only)InvokeCpiWithAccountInfo: CPI with full account info (no prefix, borsh-only)
Structs§
- Invoke
CpiWrapper - Wrapper type for InvokeCpi instruction that handles the 4-byte Anchor prefix.
- Invoke
Wrapper - Wrapper type for Invoke instruction that handles the 4-byte Anchor prefix.
- Light
System Instruction Decoder - Generated InstructionDecoder implementation
Enums§
- Light
System Instruction - Light System Program instructions.
Functions§
- format_
invoke_ cpi_ account_ info - Format InvokeCpiWithAccountInfo instruction data.
- format_
invoke_ cpi_ readonly - Format InvokeCpiWithReadOnly instruction data.
- format_
invoke_ cpi_ wrapper - Formatter wrapper that takes raw bytes and handles the prefix skip internally.
- format_
invoke_ wrapper - Formatter wrapper that takes raw bytes and handles the prefix skip internally.
- resolve_
invoke_ cpi_ account_ info_ account_ names - Resolve account names dynamically for InvokeCpiWithAccountInfo.
- resolve_
invoke_ cpi_ readonly_ account_ names - Resolve account names dynamically for InvokeCpiWithReadOnly.