hpl_events/
lib.rs

1pub use {anchor_lang::prelude::*, hpl_attribute_event::event};
2
3declare_id!("EventNxhSA3AcXD14PmXaYUiNQWwoKbLeGHtwydixRzX");
4
5#[cfg(not(feature = "no-entrypoint"))]
6use anchor_lang::solana_program::{entrypoint, entrypoint::ProgramResult};
7
8#[cfg(not(feature = "no-entrypoint"))]
9entrypoint!(hpl_events);
10
11#[cfg(not(feature = "no-entrypoint"))]
12pub fn hpl_events(
13    _program_id: &Pubkey,
14    _accounts: &[AccountInfo],
15    _instruction_data: &[u8],
16) -> ProgramResult {
17    Ok(())
18}
19
20#[derive(Clone)]
21pub struct HplEvents;
22
23impl anchor_lang::Id for HplEvents {
24    fn id() -> Pubkey {
25        crate::id()
26    }
27}
28
29// #[derive(borsh::BorshSerialize, borsh::BorshDeserialize)]
30// pub struct A {}
31// #[event]
32// pub enum Event {
33//     NewItem { data: A },
34//     Update { num: u64 },
35// }