use serde::{Deserialize, Serialize};
use crate::{chain, consensus, prelude::*, serializers, validator, AppHash, Time};
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct Genesis<AppState = serde_json::Value> {
pub genesis_time: Time,
pub chain_id: chain::Id,
#[serde(with = "serializers::from_str")]
pub initial_height: i64,
pub consensus_params: consensus::Params,
#[serde(default)]
pub validators: Vec<validator::Info>,
#[serde(with = "serializers::apphash")]
pub app_hash: AppHash,
pub app_state: AppState,
}