Expand description
Sovereign substrate surface.
This is the lowest public layer for programs that want direct account,
syscall, PDA, hashing, memory, budget, and raw-entrypoint tools while still
staying inside Hopper’s crate graph. Framework-mode code should prefer
hopper::prelude::*; systems-mode code should prefer hopper::systems::*.
Modules§
- account_
view - RuntimeAccount memory layout and AccountView zero-copy wrapper.
- address
- Solana address type – 32-byte public key.
- batch
- Batch account operations.
- budget
- Compute-unit budget tracking and instrumentation.
- capability
- Compile-time account capability types.
- entrypoint
- Program entrypoint ownership for Hopper Native.
- error
- Program error type for Solana on-chain programs.
- hash
- Cryptographic hash functions via Solana syscalls.
- introspect
- Instruction introspection – stack height and sibling instruction access.
- lazy
- Lazy account parser – on-demand account deserialization.
- lens
- Cross-program account lenses – read foreign fields by offset.
- log
- Zero-allocation logging via Solana syscalls.
- mem
- SVM-optimized memory operations.
- pda
- PDA (Program Derived Address) helpers.
- pod
- Substrate-level
Podmarker. - raw
- Raw escape hatch for Hopper Native.
- raw_
account - Raw account header for the Solana loader input buffer.
- raw_
input - Raw loader input parsing for Hopper Native.
- return_
data - CPI return data retrieval and typed deserialization.
- safe
- Safe default path for Hopper Native.
- syscalls
- Raw Solana syscall declarations.
- sysvar
- Sysvar access via direct syscalls.
- verify
- Verified CPI – pre/post state assertions around cross-program invocations.
- wire
- Alignment-safe wire types for zero-copy account data.
Macros§
- address
- Compile-time base58 address literal.
Structs§
- Account
View - Zero-copy view over a Solana account.
- Address
- A Solana address (public key): 32 bytes, transparent layout.
- CpiAccount
- C-ABI account info passed to
sol_invoke_signed_c. - CuBudget
- Compute-unit budget tracker.
- Data
Fingerprint - Fast integrity check for account data using FNV-1a hash.
- Instruction
Account - Metadata for an account referenced in a CPI instruction.
- Instruction
View - A cross-program instruction to invoke.
- Lamport
Snapshot - Snapshot of lamport balances for two accounts before a CPI.
- Native
Account View - Zero-copy view over a Solana account in the BPF input buffer.
- Native
Address - A Solana address (public key): 32 bytes, transparent layout.
- Ref
- RefMut
- Return
Data - Return data from a previous CPI call.
- Runtime
Account - Raw C-layout struct matching the Solana BPF account input format.
- Seed
- A single PDA seed for CPI signing.
- Signer
- A PDA signer: a set of seeds that derive the signing PDA.
Enums§
- Program
Error - Errors that a Solana program can return.
Constants§
Functions§
- find_
bump_ for_ address - Find the bump seed for a known PDA address, skipping curve validation.
- read_
bump_ from_ account - Read the bump byte directly from account data at a known offset.
- verify_
pda_ from_ stored_ bump - Verify a PDA using the bump stored in account data (cheapest path).
- verify_
pda_ strict - Verify that an address matches a PDA derived from the given seeds.
Type Aliases§
- Program
Result - Result type returned by all Hopper instruction handlers.