18 lines
421 B
Rust
18 lines
421 B
Rust
|
use crate::clock::{Epoch, Slot};
|
||
|
|
||
|
#[derive(Serialize, Deserialize, Clone, Debug)]
|
||
|
#[serde(rename_all = "camelCase")]
|
||
|
pub struct EpochInfo {
|
||
|
/// The current epoch
|
||
|
pub epoch: Epoch,
|
||
|
|
||
|
/// The current slot, relative to the start of the current epoch
|
||
|
pub slot_index: u64,
|
||
|
|
||
|
/// The number of slots in this epoch
|
||
|
pub slots_in_epoch: u64,
|
||
|
|
||
|
/// The absolute current slot
|
||
|
pub absolute_slot: Slot,
|
||
|
}
|