ouroboros-consensus:tracing
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Consensus.Tracing.Render

Description

Scalar text rendering helpers for Consensus types, shared by the Consensus tracing instances.

Moved here from Cardano.Node.Tracing.Render in cardano-node. The cardano-api-dependent helpers (script hashes, plutus purposes, missing redeemers, incomplete withdrawals) were left behind in cardano-node, as cardano-api sits downstream of Consensus.

Synopsis

Documentation

renderHeaderHash ∷ ConvertRawHash blk ⇒ proxy blk → HeaderHash blk → Text Source #

Hex encode and render a HeaderHash as text.

condenseT ∷ Condense a ⇒ a → Text Source #

renderPointAsPhrase ∷ ConvertRawHash blk ⇒ Point blk → Text Source #

Render a short phrase describing a Point. e.g. "62292d753b2ee7e903095bc5f10b03cf4209f456ea08f55308e0aaab4350dda4 at slot 39920" or "genesis (origin)" in the case of a genesis point.

renderRealPointAsPhrase ∷ ConvertRawHash blk ⇒ RealPoint blk → Text Source #

Render a short phrase describing a RealPoint. e.g. "62292d753b2ee7e903095bc5f10b03cf4209f456ea08f55308e0aaab4350dda4 at slot 39920"

renderTxId ∷ ConvertTxId blk ⇒ TxId (GenTx blk) → Text Source #