Change participation types
@@ -23,22 +23,20 @@ pub enum ParticipationEventType {
Staking,
}
-/// All information about an event.
+/// Wrapper interface containing a participation event ID and the corresponding event data.
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
-pub struct EventData {
+pub struct Event {
/// The event id.
- pub event_id: EventId,
+ pub id: EventId,
/// Information about a voting or staking event.
- pub information: Event,
- /// Event status, with the information if it started and the total staked funds.
- pub status: EventStatus,
+ pub data: EventData,
}
/// Information about a voting or staking event.
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
-pub struct Event {
+pub struct EventData {
name: String,
milestone_index_commence: u32,
milestone_index_start: u32,
