light_system_program/invoke_cpi/
initialize.rs

1use account_compression::StateMerkleTreeAccount;
2use anchor_lang::prelude::*;
3
4use super::account::CpiContextAccount;
5pub const CPI_SEED: &[u8] = b"cpi_signature_pda";
6
7#[derive(Accounts)]
8pub struct InitializeCpiContextAccount<'info> {
9    #[account(mut)]
10    pub fee_payer: Signer<'info>,
11    #[account(zero)]
12    pub cpi_context_account: Account<'info, CpiContextAccount>,
13    pub associated_merkle_tree: AccountLoader<'info, StateMerkleTreeAccount>,
14}