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.MockChain

Documentation

data MOCKCHAIN era Source #

Instances

Instances details
(EraGov era, STS (ShelleyTICK era), State (EraRule "TICK" era) ~ NewEpochState era, Signal (EraRule "TICK" era) ~ SlotNo, Environment (EraRule "TICK" era) ~ (), Embed (EraRule "TICK" era) (MOCKCHAIN era), Signal (EraRule "LEDGERS" era) ~ Seq (Tx era), Environment (EraRule "LEDGERS" era) ~ ShelleyLedgersEnv era, State (EraRule "LEDGERS" era) ~ LedgerState era, Embed (EraRule "LEDGERS" era) (MOCKCHAIN era), Signal (EraRule "LEDGER" era) ~ Tx era, Environment (EraRule "LEDGER" era) ~ LedgerEnv era, State (EraRule "LEDGER" era) ~ LedgerState era, Eq (PredicateFailure (EraRule "LEDGER" era)), Show (PredicateFailure (EraRule "LEDGER" era))) ⇒ STS (MOCKCHAIN era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.MockChain

Associated Types

type State (MOCKCHAIN era) Source #

type Signal (MOCKCHAIN era) Source #

type Environment (MOCKCHAIN era) Source #

type BaseM (MOCKCHAIN era) ∷ TypeType Source #

type Event (MOCKCHAIN era) Source #

type PredicateFailure (MOCKCHAIN era) Source #

(STS (ShelleyLEDGERS era), State (EraRule "LEDGER" era) ~ LedgerState era, Environment (EraRule "LEDGER" era) ~ LedgerEnv era, Signal (EraRule "LEDGER" era) ~ Tx era) ⇒ Embed (ShelleyLEDGERS era) (MOCKCHAIN era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.MockChain

(STS (ShelleyTICK era), Signal (EraRule "RUPD" era) ~ SlotNo, State (EraRule "RUPD" era) ~ StrictMaybe (PulsingRewUpdate (EraCrypto era)), Environment (EraRule "RUPD" era) ~ RupdEnv era, State (EraRule "NEWEPOCH" era) ~ NewEpochState era, Signal (EraRule "NEWEPOCH" era) ~ EpochNo, State (EraRule "NEWEPOCH" era) ~ NewEpochState era, Environment (EraRule "NEWEPOCH" era) ~ ()) ⇒ Embed (ShelleyTICK era) (MOCKCHAIN era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.MockChain

(STS (MOCKCHAIN era), Reflect era) ⇒ HasTrace (MOCKCHAIN era) (PredGen era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Trace.TraceMonad

Associated Types

type BaseEnv (MOCKCHAIN era) Source #

Methods

interpretSTSHasCallStackBaseEnv (MOCKCHAIN era) → BaseM (MOCKCHAIN era) a → a Source #

envGenPredGen era → Gen (Environment (MOCKCHAIN era)) Source #

sigGenPredGen era → Environment (MOCKCHAIN era) → State (MOCKCHAIN era) → Gen (Signal (MOCKCHAIN era)) Source #

shrinkSignalSignal (MOCKCHAIN era) → [Signal (MOCKCHAIN era)] Source #

(STS (MOCKCHAIN era), Reflect era) ⇒ HasTrace (MOCKCHAIN era) (Gen1 era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.Trace

Associated Types

type BaseEnv (MOCKCHAIN era) Source #

Methods

interpretSTSHasCallStackBaseEnv (MOCKCHAIN era) → BaseM (MOCKCHAIN era) a → a Source #

envGenGen1 era → Gen (Environment (MOCKCHAIN era)) Source #

sigGenGen1 era → Environment (MOCKCHAIN era) → State (MOCKCHAIN era) → Gen (Signal (MOCKCHAIN era)) Source #

shrinkSignalSignal (MOCKCHAIN era) → [Signal (MOCKCHAIN era)] Source #

type BaseM (MOCKCHAIN era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.MockChain

type Environment (MOCKCHAIN era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.MockChain

type Environment (MOCKCHAIN era) = ()
type Event (MOCKCHAIN era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.MockChain

type Event (MOCKCHAIN era) = MockChainEvent era
type PredicateFailure (MOCKCHAIN era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.MockChain

type Signal (MOCKCHAIN era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.MockChain

type Signal (MOCKCHAIN era) = MockBlock era
type State (MOCKCHAIN era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.MockChain

type State (MOCKCHAIN era) = MockChainState era
type BaseEnv (MOCKCHAIN era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.Trace

type BaseEnv (MOCKCHAIN era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Trace.TraceMonad

data MockBlock era Source #

Constructors

MockBlock 

Fields

Instances

Instances details
Show (MockBlock era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.MockChain

Methods

showsPrecIntMockBlock era → ShowS Source #

showMockBlock era → String Source #

showList ∷ [MockBlock era] → ShowS Source #

PrettyA (MockBlock era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.MockChain

Methods

prettyAMockBlock era → PDoc Source #

data MockChainState era Source #

Constructors

MockChainState 

Fields

Instances

Instances details
Generic (MockChainState era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.MockChain

Associated Types

type Rep (MockChainState era) ∷ TypeType Source #

Methods

fromMockChainState era → Rep (MockChainState era) x Source #

toRep (MockChainState era) x → MockChainState era Source #

Show (MockChainState era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.MockChain

Reflect era ⇒ TotalAda (MockChainState era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.MockChain

Methods

totalAdaMockChainState era → Coin Source #

Reflect era ⇒ PrettyA (MockChainState era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.MockChain

Methods

prettyAMockChainState era → PDoc Source #

(EraTxOut era, Eq (StashedAVVMAddresses era), Eq (GovState era)) ⇒ Eq (MockChainState era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.MockChain

(Era era, NoThunks (NewEpochState era)) ⇒ NoThunks (MockChainState era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.MockChain

type Rep (MockChainState era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.MockChain

type Rep (MockChainState era) = D1 ('MetaData "MockChainState" "Test.Cardano.Ledger.Generic.MockChain" "cardano-ledger-test-9.9.9.9-inplace" 'False) (C1 ('MetaCons "MockChainState" 'PrefixI 'True) ((S1 ('MetaSel ('Just "mcsNes") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (NewEpochState era)) :*: S1 ('MetaSel ('Just "mcsTickNes") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (NewEpochState era))) :*: (S1 ('MetaSel ('Just "mcsLastBlock") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SlotNo) :*: S1 ('MetaSel ('Just "mcsCount") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int))))