Expand description
Raw loader input parsing for Hopper Native.
This is the single source of truth for Solana loader input decoding. It owns duplicate-account resolution, canonical-account lookup, and original-index tracking so higher layers operate on already-resolved account views.
Structs§
- Frame
Info - Summary of a safely-parsed loader input frame.
- RawAccount
Index - Metadata for one parsed account slot in the loader input.
- RawInstruction
Frame - Instruction tail discovered after scanning the loader input buffer.
Enums§
- Frame
Error - Errors returned by the safe parser.
Constants§
- MAX_
SAFE_ ACCOUNT_ SLOTS - Hard cap on accounts the safe parser will record slot offsets for.
Functions§
- deserialize_
accounts ⚠ - Deserialize the loader input into
AccountViews. - deserialize_
accounts_ ⚠fast - Fast two-argument deserialize: instruction data and program id are provided directly by the caller (from the SVM’s second entrypoint register), so the full account-scan pass is skipped entirely.
- parse_
instruction_ frame_ checked - Parse a loader-input byte buffer with full bounds checking.
- scan_
instruction_ ⚠frame - Parse just the instruction tail and account span from the loader input.