cardano-ledger-shelley-test-1.7.0.1: 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

newEpochPropWord64 → (NewEpochState ShelleyEraProperty) → Property Source #

Provide a legitimate NewEpochState to make an test Property

newEpochEventsPropWord64 → ([ChainEvent ShelleyEra] → NewEpochState ShelleyEraProperty) → Property Source #

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

Orphan instances

Terse Reward Source # 
Instance details

Methods

terseRewardString Source #

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

Methods

terseSet x → String Source #