Skip to main content

light_account_checks/
lib.rs

1//! # light-account-checks
2//!
3//! Checks for Solana accounts.
4//!
5//! | Module | Description |
6//! |--------|-------------|
7//! | [`AccountInfoTrait`] | Trait abstraction over Solana account info types |
8//! | [`AccountIterator`] | Iterates over a slice of accounts by index |
9//! | [`AccountError`] | Error type for account validation failures |
10//! | [`checks`] | Owner, signer, writable, and rent-exempt checks |
11//! | [`discriminator`] | Account discriminator constants and validation |
12//! | [`packed_accounts`] | Packed account struct deserialization |
13
14#![cfg_attr(not(feature = "std"), no_std)]
15
16pub mod account_info;
17pub mod account_iterator;
18pub mod checks;
19pub mod close_account;
20pub mod discriminator;
21pub mod error;
22pub mod packed_accounts;
23
24pub use account_info::{
25    account_info_trait::{AccountInfoTrait, CpiMeta},
26    account_meta_trait::AccountMetaTrait,
27};
28pub use account_iterator::AccountIterator;
29pub use close_account::close_account;
30pub use error::AccountError;