light-sdk-types 0.23.0

Core types for Light Protocol SDK
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
mod config;
pub mod v1;
#[cfg(feature = "v2")]
pub mod v2;

pub use config::CpiAccountsConfig;
use light_account_checks::AccountInfoTrait;

use crate::error::Result;

/// Trait for CPI accounts that provide access to tree accounts
pub trait TreeAccounts<T: AccountInfoTrait + Clone> {
    fn get_tree_account_info(&self, tree_index: usize) -> Result<&T>;
}