thegraph_core/block.rs
1//! A pointer to a block in the chain.
2
3use alloy::primitives::{BlockHash, BlockNumber};
4
5/// A pointer to a block in the chain.
6#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
7#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
8pub struct BlockPointer {
9 /// The block number.
10 pub number: BlockNumber,
11 /// The block hash.
12 pub hash: BlockHash,
13}