Ouroboros.Consensus.Tracing.Formatting
Contents
Methods
forMachine ∷ DetailLevel → SlotNo → Object Source #
forHuman ∷ SlotNo → Text Source #
asMetrics ∷ SlotNo → [Metric] Source #
A bit of a weird one, but needed because some of the very general consensus interfaces are sometimes instantiated to Void, when there are no cases needed.
Void
forMachine ∷ DetailLevel → Void → Object Source #
forHuman ∷ Void → Text Source #
asMetrics ∷ Void → [Metric] Source #
forMachine ∷ DetailLevel → () → Object Source #
forHuman ∷ () → Text Source #
asMetrics ∷ () → [Metric] Source #
Derives ConvertRawHash for Header blk from ConvertRawHash blk. Safe because HeaderHash (Header blk) = HeaderHash blk.
Associated Types
Defined in Ouroboros.Consensus.Tracing.Formatting
toRawHash ∷ proxy (Header blk) → HeaderHash (Header blk) → ByteString Source #
toShortRawHash ∷ proxy (Header blk) → HeaderHash (Header blk) → ShortByteString Source #
fromRawHash ∷ proxy (Header blk) → ByteString → Maybe (HeaderHash (Header blk)) Source #
fromShortRawHash ∷ proxy (Header blk) → ShortByteString → Maybe (HeaderHash (Header blk)) Source #
unsafeFromRawHash ∷ proxy (Header blk) → ByteString → HeaderHash (Header blk) Source #
unsafeFromShortRawHash ∷ proxy (Header blk) → ShortByteString → HeaderHash (Header blk) Source #
hashSize ∷ proxy (Header blk) → Word32 Source #
forMachine ∷ DetailLevel → RealPoint blk → Object Source #
forHuman ∷ RealPoint blk → Text Source #
asMetrics ∷ RealPoint blk → [Metric] Source #
forMachine ∷ DetailLevel → Anchor blk → Object Source #
forHuman ∷ Anchor blk → Text Source #
asMetrics ∷ Anchor blk → [Metric] Source #
forMachine ∷ DetailLevel → AnchoredFragment blk → Object Source #
forHuman ∷ AnchoredFragment blk → Text Source #
asMetrics ∷ AnchoredFragment blk → [Metric] Source #
forMachine ∷ DetailLevel → Point blk → Object Source #
forHuman ∷ Point blk → Text Source #
asMetrics ∷ Point blk → [Metric] Source #