cardano-ledger-test-9.9.9.9: Testing harness, tests and benchmarks for Shelley style cardano ledgers
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Cardano.Ledger.Generic.Updaters

Synopsis

Documentation

class Merge t where Source #

Minimal complete definition

merge

Methods

first ∷ t → t → t Source #

override ∷ t → t → t Source #

merge ∷ t → t → t Source #

Instances

Instances details
AlonzoEraScript era ⇒ Merge (Redeemers era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.Updaters

Methods

firstRedeemers era → Redeemers era → Redeemers era Source #

overrideRedeemers era → Redeemers era → Redeemers era Source #

mergeRedeemers era → Redeemers era → Redeemers era Source #

Era era ⇒ Merge (TxDats era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.Updaters

Methods

firstTxDats era → TxDats era → TxDats era Source #

overrideTxDats era → TxDats era → TxDats era Source #

mergeTxDats era → TxDats era → TxDats era Source #

Ord a ⇒ Merge (Set a) Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.Updaters

Methods

firstSet a → Set a → Set a Source #

overrideSet a → Set a → Set a Source #

mergeSet a → Set a → Set a Source #

Merge (Map ScriptHash v) Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.Updaters

type Policy = ∀ t. Merge t ⇒ t → t → t Source #

updateTxProof era → Tx era → TxField era → Tx era Source #

newTxProof era → [TxField era] → Tx era Source #

updateTxBodyEraTxBody era ⇒ Proof era → TxBody era → TxBodyField era → TxBody era Source #

newTxBodyEraTxBody era ⇒ Proof era → [TxBodyField era] → TxBody era Source #

updateWitnesses ∷ ∀ era. PolicyProof era → TxWits era → WitnessesField era → TxWits era Source #

newWitnessesPolicyProof era → [WitnessesField era] → TxWits era Source #

updateTxOutProof era → TxOut era → TxOutField era → TxOut era Source #

newTxOutProof era → [TxOutField era] → TxOut era Source #

updatePParamsEraPParams era ⇒ Proof era → PParams era → PParamsField era → PParams era Source #

updatePParams uses the Override policy exclusively

newPParamsEraPParams era ⇒ Proof era → [PParamsField era] → PParams era Source #

newScriptIntegrityHashProof era → PParams era → [Language] → Redeemers era → TxDats era → StrictMaybe ScriptIntegrityHash Source #

This only make sense in the Alonzo era and forward, all other Eras return Nothing