cardano-ledger-conway-1.19.0.0: Cardano ledger with an updated on-chain governance system.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.Ledger.Conway.Translation

Synopsis

Documentation

addrPtrNormalizeAddrAddr Source #

This function is implemented solely for the purpose of translating garbage pointers into knowingly invalid ones. Any pointer that contains a SlotNo, TxIx or CertIx that is too large to fit into Word32, Word16 and Word16 respectively, will have all of its values set to 0 using normalizePtr.

There are two reasons why we can safely do that at the Babbage/Conway era boundary:

  • Invalid pointers are no longer allowed in transactions starting with Babbage era
  • There are only a handful of Ptrs on mainnet that are invalid.

Once the transition is complete and we are officially in Conway era, this translation logic can be removed in favor of a fixed deserializer that does the same thing for all eras prior to Babbage.

translateDatumDatum era1 → Datum era2 Source #

Orphan instances

TranslateEra ConwayEra CertState Source # 
Instance details

TranslateEra ConwayEra CommitteeState Source # 
Instance details

TranslateEra ConwayEra DState Source # 
Instance details

TranslateEra ConwayEra PState Source # 
Instance details

TranslateEra ConwayEra VState Source # 
Instance details

TranslateEra ConwayEra PParams Source # 
Instance details

TranslateEra ConwayEra UTxO Source # 
Instance details

Associated Types

type TranslationError ConwayEra UTxO Source #

TranslateEra ConwayEra FuturePParams Source # 
Instance details

TranslateEra ConwayEra EpochState Source # 
Instance details

TranslateEra ConwayEra LedgerState Source # 
Instance details

TranslateEra ConwayEra NewEpochState Source # 
Instance details

TranslateEra ConwayEra UTxOState Source # 
Instance details