ih_types/
events.rs

1use anchor_lang::prelude::*;
2
3#[event]
4pub struct CompressedUserCreatedEvent {
5    pub authority: Pubkey,
6    pub leaf_hash: [u8; 32],
7    pub timestamp: i64,
8}
9
10#[event]
11pub struct ResumeUploadedEvent {
12    pub authority: Pubkey,
13    pub resume_hash: [u8; 32],
14    pub timestamp: i64,
15}
16
17#[event]
18pub struct InterviewStartedEvent {
19    pub authority: Pubkey,
20    pub interview_id: [u8; 32],
21    pub job_listing_id: [u8; 32],
22    pub timestamp: i64,
23}
24
25#[event]
26pub struct InterviewCompletedEvent {
27    pub authority: Pubkey,
28    pub interview_hash: [u8; 32],
29    pub reputation_score: i32,
30    pub timestamp: i64,
31}
32
33#[event]
34pub struct UserBannedEvent {
35    pub authority: Pubkey,
36    pub is_permanent: bool,
37    pub ban_expires_at: Option<i64>,
38    pub timestamp: i64,
39}