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

Test.Cardano.Ledger.Constrained.Preds.LedgerState

Synopsis

Documentation

enactStateGenPredsReflect era ⇒ Proof era → [Pred era] Source #

ledgerStatePreds ∷ ∀ era. Reflect era ⇒ UnivSizeProof era → [Pred era] Source #

ledgerStateStageReflect era ⇒ UnivSizeProof era → Subst era → Gen (Subst era) Source #

demoReflect era ⇒ Proof era → ReplModeIO () Source #

mainIO () Source #

genTreeOrd a ⇒ [a] → Gen [(Maybe a, a)] Source #

Generate the (parent,child) pairs in a Tree. Be sure the list of a are unique, because each node should appear in the Tree only once. The first one will be the root of the tree and have parent Nothing.

useTriples ∷ [(Maybe (GovActionId (EraCrypto era)), GovActionId (EraCrypto era))] → [GovAction era] → [GovActionState era] → [GovActionState era] Source #

Tie together GovActionState and GovAction using the (parent,child) links that describe the shape of the Tree

govStatePreds ∷ ∀ era. (ConwayEraPParams era, Reflect era) ⇒ Proof era → [Pred era] Source #

Pred era
that generate a valid (Map GovActionId GovActionState)

demoGov ∷ (ConwayEraPParams era, Reflect era) ⇒ Proof era → ReplModeIO () Source #

genGovActionStates ∷ ∀ era. Era era ⇒ Proof era → Set (GovActionId (EraCrypto era)) → Gen (Map (GovActionId (EraCrypto era)) (GovActionState era)) Source #

genGovAction ∷ ∀ era. Era era ⇒ Proof era → GovActionPurposeMaybe (GovActionId (EraCrypto era)) → Gen (GovAction era) Source #

mapOMapHasOKey k v ⇒ (v → v) → OMap k v → OMap k v Source #

updateProposals ∷ (GovAction era → GovAction era) → Proposals era → Proposals era Source #

reasonableConwayEraPParams era ⇒ Proposals era → Proposals era Source #

What is reasonable for a Tx generated in Conway by drepCertTx Well parameters that affect the Fee, the Tx Size, TxOuts, and DRep Deposits