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.Trace.Pipeline

Synopsis

Documentation

data Rule (i ∷ Symbol) where Source #

Constructors

DELEGRule "DELEG" 
DELEGSRule "DELEGS" 
DELPLRule "DELPL" 
EPOCHRule "EPOCH" 
LEDGERRule "LEDGER" 
LEDGERSRule "LEDGERS" 
MIRRule "MIR" 
NEWEPOCHRule "NEWSPOCH" 
NEWPPRule "NEWPP" 
POOLRule "POOL" 
POOLREAPRule "POOLREAP" 
PPUPRule "PPUP" 
RUPDRule "RUPD" 
SNAPRule "SNAP" 
TICKRule "TICK" 
TICKFRule "TICKF" 
UPECRule "UPEC" 
UTXORule "UTXO" 
UTXOWRule "UTXOW" 
GOVCERTRule "GOVCERT" 
GOVRule "GOV" 

trcProof era → Rule tag → Environment (EraRule tag era) → State (EraRule tag era) → Signal (EraRule tag era) → TRC (EraRule tag era) Source #

sts ∷ ∀ era tag. (BaseM (EraRule tag era) ~ Reader Globals, STS (EraRule tag era)) ⇒ Proof era → Rule tag → Environment (EraRule tag era) → State (EraRule tag era) → Signal (EraRule tag era) → Either (NonEmpty (PredicateFailure (EraRule tag era))) (State (EraRule tag era)) Source #

stsWithContinuations ∷ ∀ era tag ans. (BaseM (EraRule tag era) ~ Reader Globals, STS (EraRule tag era)) ⇒ Proof era → Rule tag → (NonEmpty (PredicateFailure (EraRule tag era)) → ans) → (State (EraRule tag era) → ans) → Environment (EraRule tag era) → State (EraRule tag era) → Signal (EraRule tag era) → ans Source #

pipeToGraphEra era ⇒ Stage era → HashSet (Name era) → TraceM era (DependGraph era) Source #

Translate a Pipe into a DependGraph, given the set of variables that have aready been solved for.

mergePipelineEra era ⇒ Pipeline era → HashSet (Name era) → DependGraph era → TraceM era (DependGraph era) Source #

Merge a Pipeline into an existing DependGraph, given the set of variables that have aready been solved for, to get a larger DependGraph

solvePipeline2Reflect era ⇒ Pipeline era → TraceM era (Env era, DependGraph era) Source #

Solve a Pipeline to get both an Env and a DependGraph

mainIO () Source #

sts0 ∷ (Show ctx, Show state, Show sig, Testable prop) ⇒ Gen ctx → (ctx → Gen state) → (ctx → state → Gen sig) → (ctx → state → sig → state) → (state → state → prop) → Property Source #

sts1 ∷ (Show ctx, Show state, Show sig, Testable prop) ⇒ Gen state → (state → Gen ctx) → (state → ctx → Gen sig) → ((ctx, state, sig) → state) → (state → state → prop) → Property Source #

When we run a STS rule, the context (env) is a subset of the state, so it makes sense to generate state, and then extract the context.

genSigReflect era ⇒ Proof era → (a, Subst era, b) → p → Gen (Tx era) Source #