thegraph-core 0.15.2

Rust core modules for The Graph network
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! A pointer to a block in the chain.

use alloy::primitives::{BlockHash, BlockNumber};

/// A pointer to a block in the chain.
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct BlockPointer {
    /// The block number.
    pub number: BlockNumber,
    /// The block hash.
    pub hash: BlockHash,
}