Skip to main content

Crate light_sdk_types

Crate light_sdk_types 

Source
Expand description

§light-sdk-types

Core types for the Light Protocol SDK.

TypeDescription
RentSponsorPDA to sponsor rent-exemption of Solana accounts using the Light Token Program
CpiAccountsContainer for CPI system and tree accounts
CpiSignerProgram ID, signer, and bump for CPI invocation
addressAddress derivation functions (v1 and v2)
constantsProtocol program IDs and discriminators

Re-exports§

pub use light_account_checks;
pub use constants::*;

Modules§

address
constants
cpi_accounts
cpi_context_write
error
instruction
interface
Framework-agnostic interface for Light Protocol compressible accounts.
pack_accounts
Utilities for packing accounts into instruction data.

Structs§

CpiSigner
Configuration struct containing program ID, CPI signer, and bump for Light Protocol
RentSponsor

Traits§

AnchorDeserialize
A data-structure that can be de-serialized from binary format by NBOR.
AnchorSerialize
A data-structure that can be serialized into binary format by NBOR.
LightDiscriminator

Derive Macros§

AnchorDeserialize
AnchorSerialize