Expand description
Hopper-owned account view for Solana programs.
AccountView is the canonical typed state gateway for Hopper programs.
It wraps the active backend’s account representation behind a
#[repr(transparent)] boundary, delegating all methods with zero-cost
type conversion.
Key capabilities:
- Chainable validation (
check_signer()?.check_writable()?) - Whole-layout typed access (
load::<T>(),load_mut::<T>()) - Segment-aware typed access (
segment_ref,segment_mut) - Explicit raw escape hatches (
raw_ref,raw_mut) - Hopper header reading (disc, version, layout_id)
- Packed flags for batch validation
- Remaining accounts iterator
Structs§
- Account
View - Zero-copy view over a Solana account.
- Remaining
Accounts - Iterator over remaining (unstructured) accounts.