Skip to main content

Crate light_compressible

Crate light_compressible 

Source
Expand description

§light-compressible

Compressible account lifecycle for accounts with sponsored rent-exemption. The program pays the rent exemption for the account. Transaction fee payers bump a virtual rent balance when writing to the account, which keeps the account “hot”. “Cold” accounts virtual rent balance below threshold (eg 24h without write bump) get auto-compressed. The cold account’s state is cryptographically preserved on the Solana ledger. Users can load a cold account into hot state in-flight when using the account again.

TypeDescription
CompressionInfoRent state, authorities, and compression config per account
CompressibleConfigProgram-level config: rent sponsor, authorities, address space
RentConfigRent function parameters for compression eligibility
compression_infois_compressible, claim, and top-up logic
registry_instructionsInstructions for the compression registry
rentEpoch-based rent calculation and claim amounts

Modules§

compression_info
config
error
registry_instructions
Client-side instruction builders for Light Registry operations
rent

Constants§

DECOMPRESSED_PDA_DISCRIMINATOR
Decompressed PDA discriminator - marks a compressed account as a decompressed PDA placeholder. When a CMint or other PDA is decompressed to a Solana account, the compressed account stores this discriminator and the PDA pubkey (hashed) to preserve the address.