Expand description
Feature Management Program Interface
This program provides a system-level mechanism for managing feature flags with time-based activation and deactivation schedules.
Modules§
- error
- Error types for the Feature Management Program
- instruction
- Instruction types for the Feature Management Program
- state
- Feature state management
Constants§
- ID
- The const program ID.
- MAX_
FEATURES_ STATE_ SIZE - Maximum total size of serialized features state (100 KB)
- MAX_
FEATURE_ COUNT - Maximum number of features allowed in the system
- MAX_
FEATURE_ NAME_ LENGTH - Maximum length for a feature name
- STORAGE_
ACCOUNT_ SEED - Storage account PDA seed for the features map
Functions§
- check_
id - Returns
trueif given pubkey is the program ID. - genesis_
storage - Create genesis storage data with initial authority
- get_
storage_ account_ address - Derive the storage account address
- id
- Returns the program ID.
- validate_
feature_ name - Validates a feature name