cardano-rpc
Safe HaskellNone
LanguageHaskell2010

Cardano.Rpc.Server.Internal.UtxoRpc.Type.EraSummary

Description

Conversion of the node's hard-fork era summary to the UTxO RPC EraSummaries message.

Synopsis

Documentation

eraSummariesToProto :: SystemStart -> Summary (CardanoEras StandardCrypto) -> Proto EraSummaries Source #

Convert the node's hard-fork era summary to the UTxO RPC EraSummaries message.

Every era except the last gets its maybe''end populated from the confirmed era transition. The last era's end is always left unset, even when consensus already supplies a bound for it: consensus cannot distinguish a confirmed transition from the safe-zone forecast horizon, so the spec's "if the era has a well-defined ending" only ever holds for non-final eras here. EraUnbounded likewise maps to unset.

protocolParams is left unset for every era: the node does not keep historical per-era protocol parameters. Use ReadParams for the current era's parameters.

data EraSummaryEntry Source #

One era of the node's hard-fork era summary, with its name. The fields are lazy: an unselected field's value is never evaluated.

eraSummaryEntries :: Summary (CardanoEras StandardCrypto) -> [EraSummaryEntry] Source #

The eras of the summary in chronological order.

eraSummaryFill Source #

Arguments

:: SystemStart

The system start of the chain, from which the boundary times count

-> FieldFill ((->) EraSummaryEntry) EraSummary 

Fill the fields of the EraSummary message that a mask selects, each from the EraSummaryEntry of an era.