Endpoints for average mixnode uptime (#1238)

This commit is contained in:
Jon Häggblad
2022-05-04 11:28:41 +02:00
committed by GitHub
parent 8eb3f6f862
commit 139e89643c
9 changed files with 161 additions and 2 deletions
@@ -63,6 +63,12 @@ pub struct RewardEstimationResponse {
pub as_at: i64,
}
#[derive(Clone, Debug, Serialize, Deserialize, JsonSchema)]
pub struct UptimeResponse {
pub identity: String,
pub avg_uptime: u8,
}
#[derive(Clone, Copy, Debug, Serialize, Deserialize, JsonSchema)]
#[cfg_attr(test, derive(ts_rs::TS))]
#[cfg_attr(