ordi 0.1.0

Light indexer for Ordinals.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use derive_more::{Display, FromStr};

use crate::epoch::Epoch;

#[derive(Copy, Clone, Debug, Display, FromStr, Ord, Eq, PartialEq, PartialOrd)]
pub struct Height(pub u64);

impl Height {
    pub fn subsidy(self) -> u64 {
        Epoch::from(self).subsidy()
    }
}