| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
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
- renderChunkNo ∷ ChunkNo → Text
- renderHeaderHash ∷ ConvertRawHash blk ⇒ proxy blk → HeaderHash blk → Text
- renderHeaderHashForDetails ∷ ConvertRawHash blk ⇒ proxy blk → DetailLevel → HeaderHash blk → Text
- renderChainHash ∷ (HeaderHash blk → Text) → ChainHash blk → Text
- renderTipBlockNo ∷ Tip blk → Text
- renderTipHash ∷ StandardHash blk ⇒ Tip blk → Text
- condenseT ∷ Condense a ⇒ a → Text
- renderPoint ∷ ConvertRawHash blk ⇒ Point blk → Text
- renderPointAsPhrase ∷ ConvertRawHash blk ⇒ Point blk → Text
- renderPointForDetails ∷ ConvertRawHash blk ⇒ DetailLevel → Point blk → Text
- renderRealPoint ∷ ConvertRawHash blk ⇒ RealPoint blk → Text
- renderRealPointAsPhrase ∷ ConvertRawHash blk ⇒ RealPoint blk → Text
- renderTxId ∷ ConvertTxId blk ⇒ TxId (GenTx blk) → Text
- renderTxIdForDetails ∷ ConvertTxId blk ⇒ DetailLevel → TxId (GenTx blk) → Text
- renderWithOrigin ∷ (a → Text) → WithOrigin a → Text
Documentation
renderChunkNo ∷ ChunkNo → Text Source #
renderHeaderHash ∷ ConvertRawHash blk ⇒ proxy blk → HeaderHash blk → Text Source #
Hex encode and render a HeaderHash as text.
renderHeaderHashForDetails ∷ ConvertRawHash blk ⇒ proxy blk → DetailLevel → HeaderHash blk → Text Source #
renderChainHash ∷ (HeaderHash blk → Text) → ChainHash blk → Text Source #
renderTipBlockNo ∷ Tip blk → Text Source #
renderTipHash ∷ StandardHash blk ⇒ Tip blk → Text Source #
renderPoint ∷ ConvertRawHash blk ⇒ Point blk → 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.
renderPointForDetails ∷ ConvertRawHash blk ⇒ DetailLevel → Point blk → Text Source #
renderRealPoint ∷ ConvertRawHash blk ⇒ RealPoint blk → Text Source #
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 #
renderTxIdForDetails ∷ ConvertTxId blk ⇒ DetailLevel → TxId (GenTx blk) → Text Source #
renderWithOrigin ∷ (a → Text) → WithOrigin a → Text Source #