brk_types 0.3.0-alpha.6

Structs used throughout BRK
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};

use crate::{BlockHash, Height};

/// Block information returned for timestamp queries
#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema)]
pub struct BlockTimestamp {
    /// Block height
    pub height: Height,

    /// Block hash
    pub hash: BlockHash,

    /// Block timestamp in ISO 8601 format
    pub timestamp: String,
}