1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
pub use {
    anchor_lang::prelude::*,
    hpl_attribute_event::event,
    spl_account_compression::{wrap_application_data_v1, Noop},
};

declare_id!("EventNxhSA3AcXD14PmXaYUiNQWwoKbLeGHtwydixRzX");

#[cfg(not(feature = "no-entrypoint"))]
use anchor_lang::solana_program::{entrypoint, entrypoint::ProgramResult};

#[cfg(not(feature = "no-entrypoint"))]
entrypoint!(hpl_events);

#[cfg(not(feature = "no-entrypoint"))]
pub fn hpl_events(
    _program_id: &Pubkey,
    _accounts: &[AccountInfo],
    _instruction_data: &[u8],
) -> ProgramResult {
    Ok(())
}

#[derive(Clone)]
pub struct HplEvents;

impl anchor_lang::Id for HplEvents {
    fn id() -> Pubkey {
        crate::id()
    }
}

// #[derive(borsh::BorshSerialize, borsh::BorshDeserialize)]
// pub struct A {}
// #[event]
// pub enum Event {
//     NewItem { data: A },
//     Update { num: u64 },
// }