Crate light_sdk_macros

Crate light_sdk_macros 

Source

Macros§

derive_light_rent_sponsor
Derives a complete Rent Sponsor configuration for a program at compile time.
derive_light_rent_sponsor_pda
Derives a Rent Sponsor PDA for a program at compile time.

Attribute Macros§

account
add_compressible_instructions
Adds compressible account support with automatic seed generation.
light_accounts
light_program
Generates a Light program for the given module.
light_system_accounts
Adds required fields to your anchor instruction for applying a zk-compressed state transition.

Derive Macros§

CompressAs
Legacy CompressAs trait implementation (use Compressible instead).
Compressible
Automatically implements all required traits for compressible accounts.
CompressiblePack
Automatically implements Pack and Unpack traits for compressible accounts.
DataHasher
Alias of LightHasher.
DecompressContext
Generates complete compressible instructions with auto-generated seed derivation.
HasCompressionInfo
Automatically implements the HasCompressionInfo trait for structs that have a compression_info: Option<CompressionInfo> field.
LightAccounts
LightDiscriminator
LightHasher
Makes the annotated struct hashable by implementing the following traits:
LightHasherSha
SHA256 variant of the LightHasher derive macro.
LightTraits
Implements traits on the given struct required for invoking The Light system program via CPI.