cardano-ledger-shelley-test-1.10.0.0: Test helpers from cardano-ledger-shelley exposed to other packages
Safe HaskellNone
LanguageHaskell2010

Test.Cardano.Ledger.Shelley.Rewards

Description

Currently this uses the trace mechanism to check that computing rewards has a required set of properties. It works only in the Shelley Era. It could be generalized, and then moved to the GeneratorTrace directory which computes property tests in all eras.

Synopsis

Documentation

newEpochProp ∷ Word64 → (NewEpochState ShelleyEra → Property) → Property Source #

Provide a legitimate NewEpochState to make an test Property

newEpochEventsProp ∷ Word64 → ([ChainEvent ShelleyEra] → NewEpochState ShelleyEra → Property) → Property Source #

Given a NewEpochState and [ChainEvent], test a Property at every Epoch Boundary

Orphan instances

Terse Reward Source # 
Instance details

Methods

terse ∷ Reward → String Source #

Terse x ⇒ Terse (Set x) Source # 
Instance details

Methods

terse ∷ Set x → String Source #