Skip to main content

Crate rialo_feature_management_interface

Crate rialo_feature_management_interface 

Source
Expand description

Feature Management Program Interface

This program provides a system-level mechanism for managing feature flags. Activation is presence-based and append-only: a feature is active once its name is added to the on-chain set, and names are never removed.

Modules§

error
Error types for the Feature Management Program
features
Compile-time feature registry namespace.
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
MAX_NAMES_PER_BATCH
Maximum number of names a single Enable instruction may carry.
STORAGE_ACCOUNT_SEED
Storage account PDA seed for the features map

Functions§

check_id
Returns true if 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