Expand description
LightProgramInterface trait and supporting types for client-side SDK patterns.
Core types:
ColdContext- Cold data context (Account or Token)PdaSpec- Spec for PDA loading with typed variantAccountSpec- Unified spec enum for load instruction buildingLightProgramInterface- Trait for program SDKs
Structs§
- PdaSpec
- Specification for a program-owned PDA with typed variant.
Enums§
- Account
Spec - Account specification for loading cold accounts.
- Account
ToFetch - Account descriptor for fetching. Routes to the correct indexer endpoint.
- Cold
Context - Context for cold accounts.
Traits§
- Light
Program Interface - Trait for programs to give clients a unified API to load cold program accounts.
Functions§
- all_hot
- Check if all specs in the slice are hot.
- any_
cold - Check if any specs in the slice are cold.
- discriminator
- Extract 8-byte discriminator from account data.
- matches_
discriminator - Check if account data matches a discriminator.