multiversx_sdk/data/
hyperblock.rsuse serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct HyperBlock {
pub nonce: u64,
pub round: u64,
pub hash: String,
pub prev_block_hash: String,
pub epoch: u64,
pub num_txs: u64,
pub shard_blocks: Vec<ShardBlocks>,
pub timestamp: u64,
pub accumulated_fees: String,
pub developer_fees: String,
pub accumulated_fees_in_epoch: String,
pub developer_fees_in_epoch: String,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ShardBlocks {
pub hash: String,
pub nonce: u64,
pub shard: u32,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct HyperBlockData {
pub hyperblock: HyperBlock,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct HyperBlockResponse {
pub data: Option<HyperBlockData>,
pub error: String,
pub code: String,
}