ore_boost_api/state/checkpoint.rs
1use steel::*;
2
3use super::BoostAccount;
4
5/// Checkpoint holds the checkpoint state of a particular boost.
6#[repr(C)]
7#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
8pub struct Checkpoint {
9 /// The boost this checkpoint is associated with.
10 pub boost: Pubkey,
11
12 /// The id of the next staker to be processed.
13 pub current_id: u64,
14
15 /// The total amount of pending deposits in this checkpoint.
16 pub total_pending_deposits: u64,
17
18 /// The number of total stakers in this checkpoint.
19 pub total_stakers: u64,
20
21 /// The total amount of rewards to distribute in this checkpoint.
22 pub total_rewards: u64,
23
24 /// The timestamp of when the last checkpoint finished.
25 pub ts: i64,
26}
27
28account!(BoostAccount, Checkpoint);
29