multiversx_sdk/data/
network_status.rsuse serde::{Deserialize, Serialize};
#[derive(Debug, Default, Clone, Serialize, Deserialize, PartialEq, Eq)]
pub struct NetworkStatus {
#[serde(rename = "erd_current_round")]
pub current_round: u64,
#[serde(rename = "erd_epoch_number")]
pub epoch_number: u64,
#[serde(rename = "erd_nonce")]
pub nonce: u64,
#[serde(rename = "erd_nonce_at_epoch_start")]
pub nonce_at_epoch_start: u64,
#[serde(rename = "erd_nonces_passed_in_current_epoch")]
pub nonces_passed_in_current_epoch: u64,
#[serde(rename = "erd_round_at_epoch_start")]
pub round_at_epoch_start: u64,
#[serde(rename = "erd_rounds_passed_in_current_epoch")]
pub rounds_passed_in_current_epoch: u64,
#[serde(rename = "erd_rounds_per_epoch")]
pub rounds_per_epoch: u32,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct NetworkStatusData {
pub status: NetworkStatus,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct NetworkStatusResponse {
pub error: String,
pub code: String,
pub data: Option<NetworkStatusData>,
}