cardano-ledger-conformance-9.9.9.9: Testing utilities for conformance testing
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Cardano.Ledger.Conformance.ExecSpecRule.Core

Synopsis

Documentation

class (ForAllExecTypes (HasSpec fn) fn rule era, ForAllExecTypes ToExpr fn rule era, ForAllExecTypes NFData fn rule era, KnownSymbol rule, STS (EraRule rule era), BaseM (EraRule rule era) ~ ShelleyBase, SpecTranslate (ExecContext fn rule era) (PredicateFailure (EraRule rule era)), Inject (ExecEnvironment fn rule era) (Environment (EraRule rule era)), Inject (ExecState fn rule era) (State (EraRule rule era)), Inject (ExecSignal fn rule era) (Signal (EraRule rule era))) ⇒ ExecSpecRule fn (rule ∷ Symbol) era where Source #

Minimal complete definition

environmentSpec, stateSpec, signalSpec, runAgdaRule

Associated Types

type ExecContext fn rule era Source #

type ExecContext fn rule era = ()

type ExecEnvironment fn rule era Source #

type ExecEnvironment fn rule era = Environment (EraRule rule era)

type ExecState fn rule era Source #

type ExecState fn rule era = State (EraRule rule era)

type ExecSignal fn rule era Source #

type ExecSignal fn rule era = Signal (EraRule rule era)

Methods

environmentSpecHasCallStackExecContext fn rule era → Specification fn (ExecEnvironment fn rule era) Source #

stateSpecHasCallStackExecContext fn rule era → ExecEnvironment fn rule era → Specification fn (ExecState fn rule era) Source #

signalSpecHasCallStackExecContext fn rule era → ExecEnvironment fn rule era → ExecState fn rule era → Specification fn (ExecSignal fn rule era) Source #

classOfExecSignal fn rule era → Maybe String Source #

genExecContextHasCallStackGen (ExecContext fn rule era) Source #

default genExecContextArbitrary (ExecContext fn rule era) ⇒ Gen (ExecContext fn rule era) Source #

runAgdaRuleHasCallStackSpecRep (ExecEnvironment fn rule era) → SpecRep (ExecState fn rule era) → SpecRep (ExecSignal fn rule era) → Either OpaqueErrorString (SpecRep (ExecState fn rule era)) Source #

translateInputsHasCallStackExecEnvironment fn rule era → ExecState fn rule era → ExecSignal fn rule era → ExecContext fn rule era → ImpTestM era (SpecRep (ExecEnvironment fn rule era), SpecRep (ExecState fn rule era), SpecRep (ExecSignal fn rule era)) Source #

default translateInputs ∷ (ForAllExecTypes (SpecTranslate (ExecContext fn rule era)) fn rule era, ForAllExecSpecRep ToExpr fn rule era) ⇒ ExecEnvironment fn rule era → ExecState fn rule era → ExecSignal fn rule era → ExecContext fn rule era → ImpTestM era (SpecRep (ExecEnvironment fn rule era), SpecRep (ExecState fn rule era), SpecRep (ExecSignal fn rule era)) Source #

testConformance ∷ (ShelleyEraImp era, SpecTranslate (ExecContext fn rule era) (State (EraRule rule era)), ForAllExecSpecRep NFData fn rule era, ForAllExecSpecRep ToExpr fn rule era, NFData (SpecRep (PredicateFailure (EraRule rule era))), ToExpr (SpecRep (PredicateFailure (EraRule rule era))), Eq (SpecRep (PredicateFailure (EraRule rule era))), Eq (SpecRep (ExecState fn rule era)), Inject (State (EraRule rule era)) (ExecState fn rule era), SpecTranslate (ExecContext fn rule era) (ExecState fn rule era), FixupSpecRep (SpecRep (PredicateFailure (EraRule rule era))), FixupSpecRep (SpecRep (ExecState fn rule era)), Inject (ExecEnvironment fn rule era) (Environment (EraRule rule era)), Inject (ExecState fn rule era) (State (EraRule rule era)), Inject (ExecSignal fn rule era) (Signal (EraRule rule era)), EncCBOR (ExecContext fn rule era), EncCBOR (Environment (EraRule rule era)), EncCBOR (State (EraRule rule era)), EncCBOR (Signal (EraRule rule era)), ToExpr (ExecContext fn rule era), ToExpr (PredicateFailure (EraRule rule era)), NFData (PredicateFailure (EraRule rule era)), HasCallStack) ⇒ ExecContext fn rule era → ExecEnvironment fn rule era → ExecState fn rule era → ExecSignal fn rule era → Property Source #

extraInfoHasCallStackGlobalsExecContext fn rule era → Environment (EraRule rule era) → State (EraRule rule era) → Signal (EraRule rule era) → Either OpaqueErrorString (State (EraRule rule era), [Event (EraRule rule era)]) → Doc AnsiStyle Source #

Instances

Instances details
IsConwayUniv fn ⇒ ExecSpecRule fn "CERT" ConwayEra Source # 
Instance details

Defined in Test.Cardano.Ledger.Conformance.ExecSpecRule.Conway.Cert

Associated Types

type ExecContext fn "CERT" ConwayEra Source #

type ExecEnvironment fn "CERT" ConwayEra Source #

type ExecState fn "CERT" ConwayEra Source #

type ExecSignal fn "CERT" ConwayEra Source #

Methods

environmentSpecExecContext fn "CERT" ConwayEraSpecification fn (ExecEnvironment fn "CERT" ConwayEra) Source #

stateSpecExecContext fn "CERT" ConwayEraExecEnvironment fn "CERT" ConwayEraSpecification fn (ExecState fn "CERT" ConwayEra) Source #

signalSpecExecContext fn "CERT" ConwayEraExecEnvironment fn "CERT" ConwayEraExecState fn "CERT" ConwayEraSpecification fn (ExecSignal fn "CERT" ConwayEra) Source #

classOfExecSignal fn "CERT" ConwayEraMaybe String Source #

genExecContextGen (ExecContext fn "CERT" ConwayEra) Source #

runAgdaRuleSpecRep (ExecEnvironment fn "CERT" ConwayEra) → SpecRep (ExecState fn "CERT" ConwayEra) → SpecRep (ExecSignal fn "CERT" ConwayEra) → Either OpaqueErrorString (SpecRep (ExecState fn "CERT" ConwayEra)) Source #

translateInputsExecEnvironment fn "CERT" ConwayEraExecState fn "CERT" ConwayEraExecSignal fn "CERT" ConwayEraExecContext fn "CERT" ConwayEraImpTestM ConwayEra (SpecRep (ExecEnvironment fn "CERT" ConwayEra), SpecRep (ExecState fn "CERT" ConwayEra), SpecRep (ExecSignal fn "CERT" ConwayEra)) Source #

testConformanceExecContext fn "CERT" ConwayEraExecEnvironment fn "CERT" ConwayEraExecState fn "CERT" ConwayEraExecSignal fn "CERT" ConwayEraProperty Source #

extraInfoGlobalsExecContext fn "CERT" ConwayEraEnvironment (EraRule "CERT" ConwayEra) → State (EraRule "CERT" ConwayEra) → Signal (EraRule "CERT" ConwayEra) → Either OpaqueErrorString (State (EraRule "CERT" ConwayEra), [Event (EraRule "CERT" ConwayEra)]) → Doc AnsiStyle Source #

IsConwayUniv fn ⇒ ExecSpecRule fn "CERTS" ConwayEra Source # 
Instance details

Defined in Test.Cardano.Ledger.Conformance.ExecSpecRule.Conway.Certs

Associated Types

type ExecContext fn "CERTS" ConwayEra Source #

type ExecEnvironment fn "CERTS" ConwayEra Source #

type ExecState fn "CERTS" ConwayEra Source #

type ExecSignal fn "CERTS" ConwayEra Source #

Methods

environmentSpecExecContext fn "CERTS" ConwayEraSpecification fn (ExecEnvironment fn "CERTS" ConwayEra) Source #

stateSpecExecContext fn "CERTS" ConwayEraExecEnvironment fn "CERTS" ConwayEraSpecification fn (ExecState fn "CERTS" ConwayEra) Source #

signalSpecExecContext fn "CERTS" ConwayEraExecEnvironment fn "CERTS" ConwayEraExecState fn "CERTS" ConwayEraSpecification fn (ExecSignal fn "CERTS" ConwayEra) Source #

classOfExecSignal fn "CERTS" ConwayEraMaybe String Source #

genExecContextGen (ExecContext fn "CERTS" ConwayEra) Source #

runAgdaRuleSpecRep (ExecEnvironment fn "CERTS" ConwayEra) → SpecRep (ExecState fn "CERTS" ConwayEra) → SpecRep (ExecSignal fn "CERTS" ConwayEra) → Either OpaqueErrorString (SpecRep (ExecState fn "CERTS" ConwayEra)) Source #

translateInputsExecEnvironment fn "CERTS" ConwayEraExecState fn "CERTS" ConwayEraExecSignal fn "CERTS" ConwayEraExecContext fn "CERTS" ConwayEraImpTestM ConwayEra (SpecRep (ExecEnvironment fn "CERTS" ConwayEra), SpecRep (ExecState fn "CERTS" ConwayEra), SpecRep (ExecSignal fn "CERTS" ConwayEra)) Source #

testConformanceExecContext fn "CERTS" ConwayEraExecEnvironment fn "CERTS" ConwayEraExecState fn "CERTS" ConwayEraExecSignal fn "CERTS" ConwayEraProperty Source #

extraInfoGlobalsExecContext fn "CERTS" ConwayEraEnvironment (EraRule "CERTS" ConwayEra) → State (EraRule "CERTS" ConwayEra) → Signal (EraRule "CERTS" ConwayEra) → Either OpaqueErrorString (State (EraRule "CERTS" ConwayEra), [Event (EraRule "CERTS" ConwayEra)]) → Doc AnsiStyle Source #

IsConwayUniv fn ⇒ ExecSpecRule fn "DELEG" ConwayEra Source # 
Instance details

Defined in Test.Cardano.Ledger.Conformance.ExecSpecRule.Conway.Deleg

Associated Types

type ExecContext fn "DELEG" ConwayEra Source #

type ExecEnvironment fn "DELEG" ConwayEra Source #

type ExecState fn "DELEG" ConwayEra Source #

type ExecSignal fn "DELEG" ConwayEra Source #

Methods

environmentSpecExecContext fn "DELEG" ConwayEraSpecification fn (ExecEnvironment fn "DELEG" ConwayEra) Source #

stateSpecExecContext fn "DELEG" ConwayEraExecEnvironment fn "DELEG" ConwayEraSpecification fn (ExecState fn "DELEG" ConwayEra) Source #

signalSpecExecContext fn "DELEG" ConwayEraExecEnvironment fn "DELEG" ConwayEraExecState fn "DELEG" ConwayEraSpecification fn (ExecSignal fn "DELEG" ConwayEra) Source #

classOfExecSignal fn "DELEG" ConwayEraMaybe String Source #

genExecContextGen (ExecContext fn "DELEG" ConwayEra) Source #

runAgdaRuleSpecRep (ExecEnvironment fn "DELEG" ConwayEra) → SpecRep (ExecState fn "DELEG" ConwayEra) → SpecRep (ExecSignal fn "DELEG" ConwayEra) → Either OpaqueErrorString (SpecRep (ExecState fn "DELEG" ConwayEra)) Source #

translateInputsExecEnvironment fn "DELEG" ConwayEraExecState fn "DELEG" ConwayEraExecSignal fn "DELEG" ConwayEraExecContext fn "DELEG" ConwayEraImpTestM ConwayEra (SpecRep (ExecEnvironment fn "DELEG" ConwayEra), SpecRep (ExecState fn "DELEG" ConwayEra), SpecRep (ExecSignal fn "DELEG" ConwayEra)) Source #

testConformanceExecContext fn "DELEG" ConwayEraExecEnvironment fn "DELEG" ConwayEraExecState fn "DELEG" ConwayEraExecSignal fn "DELEG" ConwayEraProperty Source #

extraInfoGlobalsExecContext fn "DELEG" ConwayEraEnvironment (EraRule "DELEG" ConwayEra) → State (EraRule "DELEG" ConwayEra) → Signal (EraRule "DELEG" ConwayEra) → Either OpaqueErrorString (State (EraRule "DELEG" ConwayEra), [Event (EraRule "DELEG" ConwayEra)]) → Doc AnsiStyle Source #

IsConwayUniv fn ⇒ ExecSpecRule fn "ENACT" ConwayEra Source # 
Instance details

Defined in Test.Cardano.Ledger.Conformance.ExecSpecRule.Conway.Base

Associated Types

type ExecContext fn "ENACT" ConwayEra Source #

type ExecEnvironment fn "ENACT" ConwayEra Source #

type ExecState fn "ENACT" ConwayEra Source #

type ExecSignal fn "ENACT" ConwayEra Source #

Methods

environmentSpecExecContext fn "ENACT" ConwayEraSpecification fn (ExecEnvironment fn "ENACT" ConwayEra) Source #

stateSpecExecContext fn "ENACT" ConwayEraExecEnvironment fn "ENACT" ConwayEraSpecification fn (ExecState fn "ENACT" ConwayEra) Source #

signalSpecExecContext fn "ENACT" ConwayEraExecEnvironment fn "ENACT" ConwayEraExecState fn "ENACT" ConwayEraSpecification fn (ExecSignal fn "ENACT" ConwayEra) Source #

classOfExecSignal fn "ENACT" ConwayEraMaybe String Source #

genExecContextGen (ExecContext fn "ENACT" ConwayEra) Source #

runAgdaRuleSpecRep (ExecEnvironment fn "ENACT" ConwayEra) → SpecRep (ExecState fn "ENACT" ConwayEra) → SpecRep (ExecSignal fn "ENACT" ConwayEra) → Either OpaqueErrorString (SpecRep (ExecState fn "ENACT" ConwayEra)) Source #

translateInputsExecEnvironment fn "ENACT" ConwayEraExecState fn "ENACT" ConwayEraExecSignal fn "ENACT" ConwayEraExecContext fn "ENACT" ConwayEraImpTestM ConwayEra (SpecRep (ExecEnvironment fn "ENACT" ConwayEra), SpecRep (ExecState fn "ENACT" ConwayEra), SpecRep (ExecSignal fn "ENACT" ConwayEra)) Source #

testConformanceExecContext fn "ENACT" ConwayEraExecEnvironment fn "ENACT" ConwayEraExecState fn "ENACT" ConwayEraExecSignal fn "ENACT" ConwayEraProperty Source #

extraInfoGlobalsExecContext fn "ENACT" ConwayEraEnvironment (EraRule "ENACT" ConwayEra) → State (EraRule "ENACT" ConwayEra) → Signal (EraRule "ENACT" ConwayEra) → Either OpaqueErrorString (State (EraRule "ENACT" ConwayEra), [Event (EraRule "ENACT" ConwayEra)]) → Doc AnsiStyle Source #

fn ~ ConwayFnExecSpecRule fn "EPOCH" ConwayEra Source # 
Instance details

Defined in Test.Cardano.Ledger.Conformance.ExecSpecRule.Conway.Base

Associated Types

type ExecContext fn "EPOCH" ConwayEra Source #

type ExecEnvironment fn "EPOCH" ConwayEra Source #

type ExecState fn "EPOCH" ConwayEra Source #

type ExecSignal fn "EPOCH" ConwayEra Source #

Methods

environmentSpecExecContext fn "EPOCH" ConwayEraSpecification fn (ExecEnvironment fn "EPOCH" ConwayEra) Source #

stateSpecExecContext fn "EPOCH" ConwayEraExecEnvironment fn "EPOCH" ConwayEraSpecification fn (ExecState fn "EPOCH" ConwayEra) Source #

signalSpecExecContext fn "EPOCH" ConwayEraExecEnvironment fn "EPOCH" ConwayEraExecState fn "EPOCH" ConwayEraSpecification fn (ExecSignal fn "EPOCH" ConwayEra) Source #

classOfExecSignal fn "EPOCH" ConwayEraMaybe String Source #

genExecContextGen (ExecContext fn "EPOCH" ConwayEra) Source #

runAgdaRuleSpecRep (ExecEnvironment fn "EPOCH" ConwayEra) → SpecRep (ExecState fn "EPOCH" ConwayEra) → SpecRep (ExecSignal fn "EPOCH" ConwayEra) → Either OpaqueErrorString (SpecRep (ExecState fn "EPOCH" ConwayEra)) Source #

translateInputsExecEnvironment fn "EPOCH" ConwayEraExecState fn "EPOCH" ConwayEraExecSignal fn "EPOCH" ConwayEraExecContext fn "EPOCH" ConwayEraImpTestM ConwayEra (SpecRep (ExecEnvironment fn "EPOCH" ConwayEra), SpecRep (ExecState fn "EPOCH" ConwayEra), SpecRep (ExecSignal fn "EPOCH" ConwayEra)) Source #

testConformanceExecContext fn "EPOCH" ConwayEraExecEnvironment fn "EPOCH" ConwayEraExecState fn "EPOCH" ConwayEraExecSignal fn "EPOCH" ConwayEraProperty Source #

extraInfoGlobalsExecContext fn "EPOCH" ConwayEraEnvironment (EraRule "EPOCH" ConwayEra) → State (EraRule "EPOCH" ConwayEra) → Signal (EraRule "EPOCH" ConwayEra) → Either OpaqueErrorString (State (EraRule "EPOCH" ConwayEra), [Event (EraRule "EPOCH" ConwayEra)]) → Doc AnsiStyle Source #

(NFData (SpecRep (ConwayGovPredFailure ConwayEra)), IsConwayUniv fn) ⇒ ExecSpecRule fn "GOV" ConwayEra Source # 
Instance details

Defined in Test.Cardano.Ledger.Conformance.ExecSpecRule.Conway.Gov

Associated Types

type ExecContext fn "GOV" ConwayEra Source #

type ExecEnvironment fn "GOV" ConwayEra Source #

type ExecState fn "GOV" ConwayEra Source #

type ExecSignal fn "GOV" ConwayEra Source #

Methods

environmentSpecExecContext fn "GOV" ConwayEraSpecification fn (ExecEnvironment fn "GOV" ConwayEra) Source #

stateSpecExecContext fn "GOV" ConwayEraExecEnvironment fn "GOV" ConwayEraSpecification fn (ExecState fn "GOV" ConwayEra) Source #

signalSpecExecContext fn "GOV" ConwayEraExecEnvironment fn "GOV" ConwayEraExecState fn "GOV" ConwayEraSpecification fn (ExecSignal fn "GOV" ConwayEra) Source #

classOfExecSignal fn "GOV" ConwayEraMaybe String Source #

genExecContextGen (ExecContext fn "GOV" ConwayEra) Source #

runAgdaRuleSpecRep (ExecEnvironment fn "GOV" ConwayEra) → SpecRep (ExecState fn "GOV" ConwayEra) → SpecRep (ExecSignal fn "GOV" ConwayEra) → Either OpaqueErrorString (SpecRep (ExecState fn "GOV" ConwayEra)) Source #

translateInputsExecEnvironment fn "GOV" ConwayEraExecState fn "GOV" ConwayEraExecSignal fn "GOV" ConwayEraExecContext fn "GOV" ConwayEraImpTestM ConwayEra (SpecRep (ExecEnvironment fn "GOV" ConwayEra), SpecRep (ExecState fn "GOV" ConwayEra), SpecRep (ExecSignal fn "GOV" ConwayEra)) Source #

testConformanceExecContext fn "GOV" ConwayEraExecEnvironment fn "GOV" ConwayEraExecState fn "GOV" ConwayEraExecSignal fn "GOV" ConwayEraProperty Source #

extraInfoGlobalsExecContext fn "GOV" ConwayEraEnvironment (EraRule "GOV" ConwayEra) → State (EraRule "GOV" ConwayEra) → Signal (EraRule "GOV" ConwayEra) → Either OpaqueErrorString (State (EraRule "GOV" ConwayEra), [Event (EraRule "GOV" ConwayEra)]) → Doc AnsiStyle Source #

IsConwayUniv fn ⇒ ExecSpecRule fn "GOVCERT" ConwayEra Source # 
Instance details

Defined in Test.Cardano.Ledger.Conformance.ExecSpecRule.Conway.GovCert

Associated Types

type ExecContext fn "GOVCERT" ConwayEra Source #

type ExecEnvironment fn "GOVCERT" ConwayEra Source #

type ExecState fn "GOVCERT" ConwayEra Source #

type ExecSignal fn "GOVCERT" ConwayEra Source #

Methods

environmentSpecExecContext fn "GOVCERT" ConwayEraSpecification fn (ExecEnvironment fn "GOVCERT" ConwayEra) Source #

stateSpecExecContext fn "GOVCERT" ConwayEraExecEnvironment fn "GOVCERT" ConwayEraSpecification fn (ExecState fn "GOVCERT" ConwayEra) Source #

signalSpecExecContext fn "GOVCERT" ConwayEraExecEnvironment fn "GOVCERT" ConwayEraExecState fn "GOVCERT" ConwayEraSpecification fn (ExecSignal fn "GOVCERT" ConwayEra) Source #

classOfExecSignal fn "GOVCERT" ConwayEraMaybe String Source #

genExecContextGen (ExecContext fn "GOVCERT" ConwayEra) Source #

runAgdaRuleSpecRep (ExecEnvironment fn "GOVCERT" ConwayEra) → SpecRep (ExecState fn "GOVCERT" ConwayEra) → SpecRep (ExecSignal fn "GOVCERT" ConwayEra) → Either OpaqueErrorString (SpecRep (ExecState fn "GOVCERT" ConwayEra)) Source #

translateInputsExecEnvironment fn "GOVCERT" ConwayEraExecState fn "GOVCERT" ConwayEraExecSignal fn "GOVCERT" ConwayEraExecContext fn "GOVCERT" ConwayEraImpTestM ConwayEra (SpecRep (ExecEnvironment fn "GOVCERT" ConwayEra), SpecRep (ExecState fn "GOVCERT" ConwayEra), SpecRep (ExecSignal fn "GOVCERT" ConwayEra)) Source #

testConformanceExecContext fn "GOVCERT" ConwayEraExecEnvironment fn "GOVCERT" ConwayEraExecState fn "GOVCERT" ConwayEraExecSignal fn "GOVCERT" ConwayEraProperty Source #

extraInfoGlobalsExecContext fn "GOVCERT" ConwayEraEnvironment (EraRule "GOVCERT" ConwayEra) → State (EraRule "GOVCERT" ConwayEra) → Signal (EraRule "GOVCERT" ConwayEra) → Either OpaqueErrorString (State (EraRule "GOVCERT" ConwayEra), [Event (EraRule "GOVCERT" ConwayEra)]) → Doc AnsiStyle Source #

IsConwayUniv fn ⇒ ExecSpecRule fn "LEDGER" ConwayEra Source # 
Instance details

Defined in Test.Cardano.Ledger.Conformance.ExecSpecRule.Conway.Ledger

Associated Types

type ExecContext fn "LEDGER" ConwayEra Source #

type ExecEnvironment fn "LEDGER" ConwayEra Source #

type ExecState fn "LEDGER" ConwayEra Source #

type ExecSignal fn "LEDGER" ConwayEra Source #

Methods

environmentSpecExecContext fn "LEDGER" ConwayEraSpecification fn (ExecEnvironment fn "LEDGER" ConwayEra) Source #

stateSpecExecContext fn "LEDGER" ConwayEraExecEnvironment fn "LEDGER" ConwayEraSpecification fn (ExecState fn "LEDGER" ConwayEra) Source #

signalSpecExecContext fn "LEDGER" ConwayEraExecEnvironment fn "LEDGER" ConwayEraExecState fn "LEDGER" ConwayEraSpecification fn (ExecSignal fn "LEDGER" ConwayEra) Source #

classOfExecSignal fn "LEDGER" ConwayEraMaybe String Source #

genExecContextGen (ExecContext fn "LEDGER" ConwayEra) Source #

runAgdaRuleSpecRep (ExecEnvironment fn "LEDGER" ConwayEra) → SpecRep (ExecState fn "LEDGER" ConwayEra) → SpecRep (ExecSignal fn "LEDGER" ConwayEra) → Either OpaqueErrorString (SpecRep (ExecState fn "LEDGER" ConwayEra)) Source #

translateInputsExecEnvironment fn "LEDGER" ConwayEraExecState fn "LEDGER" ConwayEraExecSignal fn "LEDGER" ConwayEraExecContext fn "LEDGER" ConwayEraImpTestM ConwayEra (SpecRep (ExecEnvironment fn "LEDGER" ConwayEra), SpecRep (ExecState fn "LEDGER" ConwayEra), SpecRep (ExecSignal fn "LEDGER" ConwayEra)) Source #

testConformanceExecContext fn "LEDGER" ConwayEraExecEnvironment fn "LEDGER" ConwayEraExecState fn "LEDGER" ConwayEraExecSignal fn "LEDGER" ConwayEraProperty Source #

extraInfoGlobalsExecContext fn "LEDGER" ConwayEraEnvironment (EraRule "LEDGER" ConwayEra) → State (EraRule "LEDGER" ConwayEra) → Signal (EraRule "LEDGER" ConwayEra) → Either OpaqueErrorString (State (EraRule "LEDGER" ConwayEra), [Event (EraRule "LEDGER" ConwayEra)]) → Doc AnsiStyle Source #

IsConwayUniv fn ⇒ ExecSpecRule fn "LEDGERS" ConwayEra Source # 
Instance details

Defined in Test.Cardano.Ledger.Conformance.ExecSpecRule.Conway.Ledgers

Associated Types

type ExecContext fn "LEDGERS" ConwayEra Source #

type ExecEnvironment fn "LEDGERS" ConwayEra Source #

type ExecState fn "LEDGERS" ConwayEra Source #

type ExecSignal fn "LEDGERS" ConwayEra Source #

Methods

environmentSpecExecContext fn "LEDGERS" ConwayEraSpecification fn (ExecEnvironment fn "LEDGERS" ConwayEra) Source #

stateSpecExecContext fn "LEDGERS" ConwayEraExecEnvironment fn "LEDGERS" ConwayEraSpecification fn (ExecState fn "LEDGERS" ConwayEra) Source #

signalSpecExecContext fn "LEDGERS" ConwayEraExecEnvironment fn "LEDGERS" ConwayEraExecState fn "LEDGERS" ConwayEraSpecification fn (ExecSignal fn "LEDGERS" ConwayEra) Source #

classOfExecSignal fn "LEDGERS" ConwayEraMaybe String Source #

genExecContextGen (ExecContext fn "LEDGERS" ConwayEra) Source #

runAgdaRuleSpecRep (ExecEnvironment fn "LEDGERS" ConwayEra) → SpecRep (ExecState fn "LEDGERS" ConwayEra) → SpecRep (ExecSignal fn "LEDGERS" ConwayEra) → Either OpaqueErrorString (SpecRep (ExecState fn "LEDGERS" ConwayEra)) Source #

translateInputsExecEnvironment fn "LEDGERS" ConwayEraExecState fn "LEDGERS" ConwayEraExecSignal fn "LEDGERS" ConwayEraExecContext fn "LEDGERS" ConwayEraImpTestM ConwayEra (SpecRep (ExecEnvironment fn "LEDGERS" ConwayEra), SpecRep (ExecState fn "LEDGERS" ConwayEra), SpecRep (ExecSignal fn "LEDGERS" ConwayEra)) Source #

testConformanceExecContext fn "LEDGERS" ConwayEraExecEnvironment fn "LEDGERS" ConwayEraExecState fn "LEDGERS" ConwayEraExecSignal fn "LEDGERS" ConwayEraProperty Source #

extraInfoGlobalsExecContext fn "LEDGERS" ConwayEraEnvironment (EraRule "LEDGERS" ConwayEra) → State (EraRule "LEDGERS" ConwayEra) → Signal (EraRule "LEDGERS" ConwayEra) → Either OpaqueErrorString (State (EraRule "LEDGERS" ConwayEra), [Event (EraRule "LEDGERS" ConwayEra)]) → Doc AnsiStyle Source #

fn ~ ConwayFnExecSpecRule fn "NEWEPOCH" ConwayEra Source # 
Instance details

Defined in Test.Cardano.Ledger.Conformance.ExecSpecRule.Conway.Base

Associated Types

type ExecContext fn "NEWEPOCH" ConwayEra Source #

type ExecEnvironment fn "NEWEPOCH" ConwayEra Source #

type ExecState fn "NEWEPOCH" ConwayEra Source #

type ExecSignal fn "NEWEPOCH" ConwayEra Source #

Methods

environmentSpecExecContext fn "NEWEPOCH" ConwayEraSpecification fn (ExecEnvironment fn "NEWEPOCH" ConwayEra) Source #

stateSpecExecContext fn "NEWEPOCH" ConwayEraExecEnvironment fn "NEWEPOCH" ConwayEraSpecification fn (ExecState fn "NEWEPOCH" ConwayEra) Source #

signalSpecExecContext fn "NEWEPOCH" ConwayEraExecEnvironment fn "NEWEPOCH" ConwayEraExecState fn "NEWEPOCH" ConwayEraSpecification fn (ExecSignal fn "NEWEPOCH" ConwayEra) Source #

classOfExecSignal fn "NEWEPOCH" ConwayEraMaybe String Source #

genExecContextGen (ExecContext fn "NEWEPOCH" ConwayEra) Source #

runAgdaRuleSpecRep (ExecEnvironment fn "NEWEPOCH" ConwayEra) → SpecRep (ExecState fn "NEWEPOCH" ConwayEra) → SpecRep (ExecSignal fn "NEWEPOCH" ConwayEra) → Either OpaqueErrorString (SpecRep (ExecState fn "NEWEPOCH" ConwayEra)) Source #

translateInputsExecEnvironment fn "NEWEPOCH" ConwayEraExecState fn "NEWEPOCH" ConwayEraExecSignal fn "NEWEPOCH" ConwayEraExecContext fn "NEWEPOCH" ConwayEraImpTestM ConwayEra (SpecRep (ExecEnvironment fn "NEWEPOCH" ConwayEra), SpecRep (ExecState fn "NEWEPOCH" ConwayEra), SpecRep (ExecSignal fn "NEWEPOCH" ConwayEra)) Source #

testConformanceExecContext fn "NEWEPOCH" ConwayEraExecEnvironment fn "NEWEPOCH" ConwayEraExecState fn "NEWEPOCH" ConwayEraExecSignal fn "NEWEPOCH" ConwayEraProperty Source #

extraInfoGlobalsExecContext fn "NEWEPOCH" ConwayEraEnvironment (EraRule "NEWEPOCH" ConwayEra) → State (EraRule "NEWEPOCH" ConwayEra) → Signal (EraRule "NEWEPOCH" ConwayEra) → Either OpaqueErrorString (State (EraRule "NEWEPOCH" ConwayEra), [Event (EraRule "NEWEPOCH" ConwayEra)]) → Doc AnsiStyle Source #

IsConwayUniv fn ⇒ ExecSpecRule fn "POOL" ConwayEra Source # 
Instance details

Defined in Test.Cardano.Ledger.Conformance.ExecSpecRule.Conway.Pool

Associated Types

type ExecContext fn "POOL" ConwayEra Source #

type ExecEnvironment fn "POOL" ConwayEra Source #

type ExecState fn "POOL" ConwayEra Source #

type ExecSignal fn "POOL" ConwayEra Source #

Methods

environmentSpecExecContext fn "POOL" ConwayEraSpecification fn (ExecEnvironment fn "POOL" ConwayEra) Source #

stateSpecExecContext fn "POOL" ConwayEraExecEnvironment fn "POOL" ConwayEraSpecification fn (ExecState fn "POOL" ConwayEra) Source #

signalSpecExecContext fn "POOL" ConwayEraExecEnvironment fn "POOL" ConwayEraExecState fn "POOL" ConwayEraSpecification fn (ExecSignal fn "POOL" ConwayEra) Source #

classOfExecSignal fn "POOL" ConwayEraMaybe String Source #

genExecContextGen (ExecContext fn "POOL" ConwayEra) Source #

runAgdaRuleSpecRep (ExecEnvironment fn "POOL" ConwayEra) → SpecRep (ExecState fn "POOL" ConwayEra) → SpecRep (ExecSignal fn "POOL" ConwayEra) → Either OpaqueErrorString (SpecRep (ExecState fn "POOL" ConwayEra)) Source #

translateInputsExecEnvironment fn "POOL" ConwayEraExecState fn "POOL" ConwayEraExecSignal fn "POOL" ConwayEraExecContext fn "POOL" ConwayEraImpTestM ConwayEra (SpecRep (ExecEnvironment fn "POOL" ConwayEra), SpecRep (ExecState fn "POOL" ConwayEra), SpecRep (ExecSignal fn "POOL" ConwayEra)) Source #

testConformanceExecContext fn "POOL" ConwayEraExecEnvironment fn "POOL" ConwayEraExecState fn "POOL" ConwayEraExecSignal fn "POOL" ConwayEraProperty Source #

extraInfoGlobalsExecContext fn "POOL" ConwayEraEnvironment (EraRule "POOL" ConwayEra) → State (EraRule "POOL" ConwayEra) → Signal (EraRule "POOL" ConwayEra) → Either OpaqueErrorString (State (EraRule "POOL" ConwayEra), [Event (EraRule "POOL" ConwayEra)]) → Doc AnsiStyle Source #

IsConwayUniv fn ⇒ ExecSpecRule fn "RATIFY" ConwayEra Source # 
Instance details

Defined in Test.Cardano.Ledger.Conformance.ExecSpecRule.Conway.Base

Associated Types

type ExecContext fn "RATIFY" ConwayEra Source #

type ExecEnvironment fn "RATIFY" ConwayEra Source #

type ExecState fn "RATIFY" ConwayEra Source #

type ExecSignal fn "RATIFY" ConwayEra Source #

Methods

environmentSpecExecContext fn "RATIFY" ConwayEraSpecification fn (ExecEnvironment fn "RATIFY" ConwayEra) Source #

stateSpecExecContext fn "RATIFY" ConwayEraExecEnvironment fn "RATIFY" ConwayEraSpecification fn (ExecState fn "RATIFY" ConwayEra) Source #

signalSpecExecContext fn "RATIFY" ConwayEraExecEnvironment fn "RATIFY" ConwayEraExecState fn "RATIFY" ConwayEraSpecification fn (ExecSignal fn "RATIFY" ConwayEra) Source #

classOfExecSignal fn "RATIFY" ConwayEraMaybe String Source #

genExecContextGen (ExecContext fn "RATIFY" ConwayEra) Source #

runAgdaRuleSpecRep (ExecEnvironment fn "RATIFY" ConwayEra) → SpecRep (ExecState fn "RATIFY" ConwayEra) → SpecRep (ExecSignal fn "RATIFY" ConwayEra) → Either OpaqueErrorString (SpecRep (ExecState fn "RATIFY" ConwayEra)) Source #

translateInputsExecEnvironment fn "RATIFY" ConwayEraExecState fn "RATIFY" ConwayEraExecSignal fn "RATIFY" ConwayEraExecContext fn "RATIFY" ConwayEraImpTestM ConwayEra (SpecRep (ExecEnvironment fn "RATIFY" ConwayEra), SpecRep (ExecState fn "RATIFY" ConwayEra), SpecRep (ExecSignal fn "RATIFY" ConwayEra)) Source #

testConformanceExecContext fn "RATIFY" ConwayEraExecEnvironment fn "RATIFY" ConwayEraExecState fn "RATIFY" ConwayEraExecSignal fn "RATIFY" ConwayEraProperty Source #

extraInfoGlobalsExecContext fn "RATIFY" ConwayEraEnvironment (EraRule "RATIFY" ConwayEra) → State (EraRule "RATIFY" ConwayEra) → Signal (EraRule "RATIFY" ConwayEra) → Either OpaqueErrorString (State (EraRule "RATIFY" ConwayEra), [Event (EraRule "RATIFY" ConwayEra)]) → Doc AnsiStyle Source #

IsConwayUniv fn ⇒ ExecSpecRule fn "UTXO" ConwayEra Source # 
Instance details

Defined in Test.Cardano.Ledger.Conformance.ExecSpecRule.Conway.Utxo

Associated Types

type ExecContext fn "UTXO" ConwayEra Source #

type ExecEnvironment fn "UTXO" ConwayEra Source #

type ExecState fn "UTXO" ConwayEra Source #

type ExecSignal fn "UTXO" ConwayEra Source #

Methods

environmentSpecExecContext fn "UTXO" ConwayEraSpecification fn (ExecEnvironment fn "UTXO" ConwayEra) Source #

stateSpecExecContext fn "UTXO" ConwayEraExecEnvironment fn "UTXO" ConwayEraSpecification fn (ExecState fn "UTXO" ConwayEra) Source #

signalSpecExecContext fn "UTXO" ConwayEraExecEnvironment fn "UTXO" ConwayEraExecState fn "UTXO" ConwayEraSpecification fn (ExecSignal fn "UTXO" ConwayEra) Source #

classOfExecSignal fn "UTXO" ConwayEraMaybe String Source #

genExecContextGen (ExecContext fn "UTXO" ConwayEra) Source #

runAgdaRuleSpecRep (ExecEnvironment fn "UTXO" ConwayEra) → SpecRep (ExecState fn "UTXO" ConwayEra) → SpecRep (ExecSignal fn "UTXO" ConwayEra) → Either OpaqueErrorString (SpecRep (ExecState fn "UTXO" ConwayEra)) Source #

translateInputsExecEnvironment fn "UTXO" ConwayEraExecState fn "UTXO" ConwayEraExecSignal fn "UTXO" ConwayEraExecContext fn "UTXO" ConwayEraImpTestM ConwayEra (SpecRep (ExecEnvironment fn "UTXO" ConwayEra), SpecRep (ExecState fn "UTXO" ConwayEra), SpecRep (ExecSignal fn "UTXO" ConwayEra)) Source #

testConformanceExecContext fn "UTXO" ConwayEraExecEnvironment fn "UTXO" ConwayEraExecState fn "UTXO" ConwayEraExecSignal fn "UTXO" ConwayEraProperty Source #

extraInfoGlobalsExecContext fn "UTXO" ConwayEraEnvironment (EraRule "UTXO" ConwayEra) → State (EraRule "UTXO" ConwayEra) → Signal (EraRule "UTXO" ConwayEra) → Either OpaqueErrorString (State (EraRule "UTXO" ConwayEra), [Event (EraRule "UTXO" ConwayEra)]) → Doc AnsiStyle Source #

(IsConwayUniv fn, SpecTranslate ConwayTxBodyTransContext (ConwayTxCert ConwayEra)) ⇒ ExecSpecRule fn "UTXOW" ConwayEra Source # 
Instance details

Defined in Test.Cardano.Ledger.Conformance.ExecSpecRule.Conway.Utxow

Associated Types

type ExecContext fn "UTXOW" ConwayEra Source #

type ExecEnvironment fn "UTXOW" ConwayEra Source #

type ExecState fn "UTXOW" ConwayEra Source #

type ExecSignal fn "UTXOW" ConwayEra Source #

Methods

environmentSpecExecContext fn "UTXOW" ConwayEraSpecification fn (ExecEnvironment fn "UTXOW" ConwayEra) Source #

stateSpecExecContext fn "UTXOW" ConwayEraExecEnvironment fn "UTXOW" ConwayEraSpecification fn (ExecState fn "UTXOW" ConwayEra) Source #

signalSpecExecContext fn "UTXOW" ConwayEraExecEnvironment fn "UTXOW" ConwayEraExecState fn "UTXOW" ConwayEraSpecification fn (ExecSignal fn "UTXOW" ConwayEra) Source #

classOfExecSignal fn "UTXOW" ConwayEraMaybe String Source #

genExecContextGen (ExecContext fn "UTXOW" ConwayEra) Source #

runAgdaRuleSpecRep (ExecEnvironment fn "UTXOW" ConwayEra) → SpecRep (ExecState fn "UTXOW" ConwayEra) → SpecRep (ExecSignal fn "UTXOW" ConwayEra) → Either OpaqueErrorString (SpecRep (ExecState fn "UTXOW" ConwayEra)) Source #

translateInputsExecEnvironment fn "UTXOW" ConwayEraExecState fn "UTXOW" ConwayEraExecSignal fn "UTXOW" ConwayEraExecContext fn "UTXOW" ConwayEraImpTestM ConwayEra (SpecRep (ExecEnvironment fn "UTXOW" ConwayEra), SpecRep (ExecState fn "UTXOW" ConwayEra), SpecRep (ExecSignal fn "UTXOW" ConwayEra)) Source #

testConformanceExecContext fn "UTXOW" ConwayEraExecEnvironment fn "UTXOW" ConwayEraExecState fn "UTXOW" ConwayEraExecSignal fn "UTXOW" ConwayEraProperty Source #

extraInfoGlobalsExecContext fn "UTXOW" ConwayEraEnvironment (EraRule "UTXOW" ConwayEra) → State (EraRule "UTXOW" ConwayEra) → Signal (EraRule "UTXOW" ConwayEra) → Either OpaqueErrorString (State (EraRule "UTXOW" ConwayEra), [Event (EraRule "UTXOW" ConwayEra)]) → Doc AnsiStyle Source #

conformsToImpl ∷ ∀ (rule ∷ Symbol) fn era. (ShelleyEraImp era, ExecSpecRule fn rule era, ForAllExecSpecRep NFData fn rule era, ForAllExecSpecRep ToExpr fn rule era, NFData (SpecRep (PredicateFailure (EraRule rule era))), NFData (ExecContext fn rule era), ToExpr (SpecRep (PredicateFailure (EraRule rule era))), ToExpr (ExecContext fn rule era), SpecTranslate (ExecContext fn rule era) (State (EraRule rule era)), Eq (SpecRep (PredicateFailure (EraRule rule era))), Inject (State (EraRule rule era)) (ExecState fn rule era), Eq (SpecRep (ExecState fn rule era)), SpecTranslate (ExecContext fn rule era) (ExecState fn rule era), FixupSpecRep (SpecRep (PredicateFailure (EraRule rule era))), FixupSpecRep (SpecRep (ExecState fn rule era)), EncCBOR (ExecContext fn rule era), EncCBOR (Environment (EraRule rule era)), EncCBOR (State (EraRule rule era)), EncCBOR (Signal (EraRule rule era)), HasCallStack, NFData (PredicateFailure (EraRule rule era)), ToExpr (PredicateFailure (EraRule rule era))) ⇒ Property Source #

generatesWithin ∷ ∀ a. (NFData a, ToExpr a, Typeable a, HasCallStack) ⇒ Gen a → IntSpec Source #

inputsGenerateWithin ∷ ∀ (fn ∷ [Type] → TypeType) (rule ∷ Symbol) era. ExecSpecRule fn rule era ⇒ IntSpec Source #

runConformance ∷ ∀ (rule ∷ Symbol) (fn ∷ [Type] → TypeType) era. (ExecSpecRule fn rule era, ForAllExecSpecRep NFData fn rule era, ForAllExecSpecRep ToExpr fn rule era, FixupSpecRep (SpecRep (ExecState fn rule era)), Inject (State (EraRule rule era)) (ExecState fn rule era), SpecTranslate (ExecContext fn rule era) (ExecState fn rule era), ToExpr (ExecContext fn rule era), HasCallStack, NFData (PredicateFailure (EraRule rule era))) ⇒ ExecContext fn rule era → ExecEnvironment fn rule era → ExecState fn rule era → ExecSignal fn rule era → ImpTestM era (Either (NonEmpty (PredicateFailure (EraRule rule era))) (SpecRep (ExecState fn rule era)), Either OpaqueErrorString (SpecRep (ExecState fn rule era)), Either (NonEmpty (PredicateFailure (EraRule rule era))) (State (EraRule rule era), [Event (EraRule rule era)])) Source #

checkConformance ∷ ∀ rule era fn. (Era era, ToExpr (SpecRep (ExecState fn rule era)), Eq (SpecRep (ExecState fn rule era)), EncCBOR (ExecContext fn rule era), EncCBOR (Environment (EraRule rule era)), EncCBOR (State (EraRule rule era)), EncCBOR (Signal (EraRule rule era)), HasCallStack) ⇒ ExecContext fn rule era → Environment (EraRule rule era) → State (EraRule rule era) → Signal (EraRule rule era) → Either OpaqueErrorString (SpecRep (ExecState fn rule era)) → Either OpaqueErrorString (SpecRep (ExecState fn rule era)) → ImpTestM era () Source #

defaultTestConformance ∷ ∀ fn era rule. (HasCallStack, ShelleyEraImp era, ExecSpecRule fn rule era, ForAllExecSpecRep NFData fn rule era, ForAllExecSpecRep ToExpr fn rule era, NFData (PredicateFailure (EraRule rule era)), Eq (SpecRep (ExecState fn rule era)), Inject (State (EraRule rule era)) (ExecState fn rule era), SpecTranslate (ExecContext fn rule era) (ExecState fn rule era), FixupSpecRep (SpecRep (ExecState fn rule era)), EncCBOR (ExecContext fn rule era), EncCBOR (Environment (EraRule rule era)), EncCBOR (State (EraRule rule era)), EncCBOR (Signal (EraRule rule era)), ToExpr (ExecContext fn rule era), ToExpr (PredicateFailure (EraRule rule era))) ⇒ ExecContext fn rule era → ExecEnvironment fn rule era → ExecState fn rule era → ExecSignal fn rule era → Property Source #

translateWithContextSpecTranslate ctx a ⇒ ctx → a → ImpTestM era (SpecRep a) Source #

Translate a Haskell type a whose translation context is ctx into its Agda type, in the ImpTest monad.

type ForAllExecSpecRep (c ∷ TypeConstraint) fn rule era = (c (SpecRep (ExecEnvironment fn rule era)), c (SpecRep (ExecState fn rule era)), c (SpecRep (ExecSignal fn rule era))) Source #

type ForAllExecTypes (c ∷ TypeConstraint) fn rule era = (c (ExecEnvironment fn rule era), c (ExecState fn rule era), c (ExecSignal fn rule era)) Source #

diffConformanceToExpr a ⇒ a → a → Doc AnsiStyle Source #