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

Cardano.Ledger.Conway.Translation

Synopsis

Documentation

newtype Tx era Source #

Constructors

Tx 

Fields

Instances

Instances details
Crypto c ⇒ TranslateEra (ConwayEra c) Tx Source # 
Instance details

Defined in Cardano.Ledger.Conway.Translation

Associated Types

type TranslationError (ConwayEra c) Tx Source #

type TranslationError (ConwayEra c) Tx Source # 
Instance details

Defined in Cardano.Ledger.Conway.Translation

addrPtrNormalizeAddr c → Addr c 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.

translateDatumEraCrypto era1 ~ EraCrypto era2 ⇒ Datum era1 → Datum era2 Source #

translateTxOutCrypto c ⇒ TxOut (BabbageEra c) → TxOut (ConwayEra c) Source #

Deprecated: In favor of upgradeTxOut

Filter out TxOuts with zero Coins and normalize Pointers, while converting TxOuts to Conway era.

Orphan instances

Crypto c ⇒ TranslateEra (ConwayEra c) CertState Source # 
Instance details

Associated Types

type TranslationError (ConwayEra c) CertState Source #

Crypto c ⇒ TranslateEra (ConwayEra c) CommitteeState Source # 
Instance details

Crypto c ⇒ TranslateEra (ConwayEra c) DState Source # 
Instance details

Associated Types

type TranslationError (ConwayEra c) DState Source #

Crypto c ⇒ TranslateEra (ConwayEra c) PState Source # 
Instance details

Associated Types

type TranslationError (ConwayEra c) PState Source #

Crypto c ⇒ TranslateEra (ConwayEra c) VState Source # 
Instance details

Associated Types

type TranslationError (ConwayEra c) VState Source #

Crypto c ⇒ TranslateEra (ConwayEra c) PParams Source # 
Instance details

Associated Types

type TranslationError (ConwayEra c) PParams Source #

Crypto c ⇒ TranslateEra (ConwayEra c) UTxO Source # 
Instance details

Associated Types

type TranslationError (ConwayEra c) UTxO Source #

Crypto c ⇒ TranslateEra (ConwayEra c) FuturePParams Source # 
Instance details

Crypto c ⇒ TranslateEra (ConwayEra c) EpochState Source # 
Instance details

Associated Types

type TranslationError (ConwayEra c) EpochState Source #

Crypto c ⇒ TranslateEra (ConwayEra c) LedgerState Source # 
Instance details

Associated Types

type TranslationError (ConwayEra c) LedgerState Source #

Crypto c ⇒ TranslateEra (ConwayEra c) NewEpochState Source # 
Instance details

Crypto c ⇒ TranslateEra (ConwayEra c) UTxOState Source # 
Instance details

Associated Types

type TranslationError (ConwayEra c) UTxOState Source #