Module light_system

Module light_system 

Source
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§

InvokeCpiWrapper
Wrapper type for InvokeCpi instruction that handles the 4-byte Anchor prefix.
InvokeWrapper
Wrapper type for Invoke instruction that handles the 4-byte Anchor prefix.
LightSystemInstructionDecoder
Generated InstructionDecoder implementation

Enums§

LightSystemInstruction
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.