light_system_program/sdk/
accounts.rs1use account_compression::program::AccountCompression;
2use anchor_lang::prelude::*;
3
4pub trait InvokeAccounts<'info> {
5 fn get_registered_program_pda(&self) -> &AccountInfo<'info>;
6 fn get_noop_program(&self) -> &UncheckedAccount<'info>;
7 fn get_account_compression_authority(&self) -> &UncheckedAccount<'info>;
8 fn get_account_compression_program(&self) -> &Program<'info, AccountCompression>;
9 fn get_system_program(&self) -> &Program<'info, System>;
10 fn get_sol_pool_pda(&self) -> Option<&AccountInfo<'info>>;
11 fn get_decompression_recipient(&self) -> Option<&AccountInfo<'info>>;
12}
13
14pub trait SignerAccounts<'info> {
15 fn get_fee_payer(&self) -> &Signer<'info>;
16 fn get_authority(&self) -> &Signer<'info>;
17}