light-sdk-types 0.24.0

Core types for Light Protocol SDK
Documentation
//! Re-export boundary for the vendored compressed-account types consumed by
//! `light-sdk`.
//!
//! This module gathers every type, trait and function that `light-sdk` pulls
//! from the vendored `crate::lca` module into a single surface so the
//! dependency is explicit and centralized. It is purely a set of `pub use`
//! re-exports; the definitions live in `crate::lca`.
//!
//! Requires `alloc`, since the instruction-data structures allocate.

// --- Crate root ---
pub use crate::lca::{
    CompressedAccountError, InstructionDiscriminator, LightInstructionData, Pubkey,
};
// --- Address derivation ---
pub use crate::lca::address::derive_address;
// --- Compressed account types ---
pub use crate::lca::compressed_account::{
    CompressedAccount, CompressedAccountData, MerkleContext, PackedCompressedAccountWithMerkleContext,
    PackedMerkleContext, PackedReadOnlyCompressedAccount,
};
// --- Instruction data: validity proof ---
pub use crate::lca::instruction_data::compressed_proof::{
    CompressedProof, ValidityProof,
};
// --- Instruction data: CPI context ---
pub use crate::lca::instruction_data::cpi_context::CompressedCpiContext;
// --- Instruction data: address / output params ---
pub use crate::lca::instruction_data::data::{
    NewAddressParams, NewAddressParamsAssigned, NewAddressParamsAssignedPacked,
    NewAddressParamsPacked, OutputCompressedAccountWithPackedContext, PackedReadOnlyAddress,
    ReadOnlyAddress,
};
// --- Instruction data: invoke CPI (v1) ---
pub use crate::lca::instruction_data::invoke_cpi::InstructionDataInvokeCpi;
// --- Instruction data: with account info (v2) ---
pub use crate::lca::instruction_data::with_account_info::{
    CompressedAccountInfo, InAccountInfo, InstructionDataInvokeCpiWithAccountInfo, OutAccountInfo,
};
// --- Instruction data: with read-only (v2) ---
pub use crate::lca::instruction_data::with_readonly::{
    InAccount, InstructionDataInvokeCpiWithReadOnly,
};