use anchor_lang::{event, prelude::*}; /// Emitted when a new claim is created. #[event] pub struct NewClaimEvent { /// User that claimed. pub claimant: Pubkey, /// Timestamp. pub timestamp: i64, pub amount_claimed: u64, pub amount_forgone: u64, } /// Emitted when tokens are claimed. #[event] pub struct ClaimedEvent { /// User that claimed. pub claimant: Pubkey, /// Amount of tokens to distribute. pub amount: u64, } /// Emitted when a DFX distributor's root is replaced and the excess burned. #[event] pub struct SetRootEvent { pub distributor: Pubkey, pub old_root: [u8; 32], pub new_root: [u8; 32], pub old_max_total_claim: u64, pub new_max_total_claim: u64, pub burned: u64, }