ouroboros-consensus-cardano-0.16.0.0: The instantation of the Ouroboros consensus layer used by Cardano
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ouroboros.Consensus.Shelley.Ledger.Query.PParamsLegacyEncoder

Description

Ledger fixed/changed the serialisation of PParams in a backwards-incompatible way in https://github.com/IntersectMBO/ouroboros-network/pull/4349/.

This module contains the legacy serialisation in order to keep compatibility with applications (like cardano-cli or Ogmios) that still use the old serialisation logic. We use the negotiated node-to-client version to detect when the client does not yet support the fixed serialisation.

This module can be removed once the next HF (Conway) has happened.

Documentation

newtype LegacyPParams era Source #

Constructors

LegacyPParams 

Fields

Instances

Instances details
Crypto c ⇒ FromCBOR (LegacyPParams (AllegraEra c)) Source # 
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Query.PParamsLegacyEncoder

Crypto c ⇒ FromCBOR (LegacyPParams (AlonzoEra c)) Source # 
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Query.PParamsLegacyEncoder

Crypto c ⇒ FromCBOR (LegacyPParams (BabbageEra c)) Source # 
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Query.PParamsLegacyEncoder

Crypto c ⇒ FromCBOR (LegacyPParams (ConwayEra c)) Source # 
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Query.PParamsLegacyEncoder

Crypto c ⇒ FromCBOR (LegacyPParams (MaryEra c)) Source # 
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Query.PParamsLegacyEncoder

Crypto c ⇒ FromCBOR (LegacyPParams (ShelleyEra c)) Source # 
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Query.PParamsLegacyEncoder

Crypto c ⇒ ToCBOR (LegacyPParams (AllegraEra c)) Source # 
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Query.PParamsLegacyEncoder

Crypto c ⇒ ToCBOR (LegacyPParams (AlonzoEra c)) Source # 
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Query.PParamsLegacyEncoder

Crypto c ⇒ ToCBOR (LegacyPParams (BabbageEra c)) Source # 
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Query.PParamsLegacyEncoder

Crypto c ⇒ ToCBOR (LegacyPParams (ConwayEra c)) Source # 
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Query.PParamsLegacyEncoder

Crypto c ⇒ ToCBOR (LegacyPParams (MaryEra c)) Source # 
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Query.PParamsLegacyEncoder

Methods

toCBORLegacyPParams (MaryEra c) → Encoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (LegacyPParams (MaryEra c)) → Size Source #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [LegacyPParams (MaryEra c)] → Size Source #

Crypto c ⇒ ToCBOR (LegacyPParams (ShelleyEra c)) Source # 
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Query.PParamsLegacyEncoder