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 c) v) Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.Updaters

Methods

firstMap (ScriptHash c) v → Map (ScriptHash c) v → Map (ScriptHash c) v Source #

overrideMap (ScriptHash c) v → Map (ScriptHash c) v → Map (ScriptHash c) v Source #

mergeMap (ScriptHash c) v → Map (ScriptHash c) v → Map (ScriptHash c) v Source #

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 #

newWitnessesEra era ⇒ PolicyProof era → [WitnessesField era] → TxWits era Source #

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

newTxOutEra era ⇒ Proof 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 (EraCrypto era)) Source #

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