Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data ShelleyNEWPP era
- data ShelleyNewppState era = NewppState (PParams era) (ShelleyGovState era)
- data NewppEnv era = NewppEnv {
- neCertState ∷ !(CertState era)
- neUTxOState ∷ !(UTxOState era)
- data ShelleyNewppPredFailure era = UnexpectedDepositPot !Coin !Coin
- type family PredicateFailure a
Documentation
data ShelleyNEWPP era Source #
Instances
data ShelleyNewppState era Source #
NewppState (PParams era) (ShelleyGovState era) |
Instances
EraPParams era ⇒ Default (ShelleyNewppState era) Source # | |
Defined in Cardano.Ledger.Shelley.Rules.Newpp def ∷ ShelleyNewppState era Source # |
NewppEnv | |
|
data ShelleyNewppPredFailure era Source #
Instances
type family PredicateFailure a Source #
Descriptive type for the possible failures which might cause a transition to fail.
As a convention, PredicateFailure
s which are "structural" (meaning that
they are not "throwable" in practice, and are used to pass control from
one transition rule to another) are prefixed with S_
.
Structural PredicateFailure
s represent conditions between rules where
the disjunction of all rules' preconditions is equal to True
. That is,
either one rule will throw a structural PredicateFailure
and the other
will succeed, or vice-versa.
Instances
Orphan instances
(EraGov era, GovState era ~ ShelleyGovState era, ProtVerAtMost era 8) ⇒ STS (ShelleyNEWPP era) Source # | |
type State (ShelleyNEWPP era) Source # type Signal (ShelleyNEWPP era) Source # type Environment (ShelleyNEWPP era) Source # type BaseM (ShelleyNEWPP era) ∷ Type → Type Source # type Event (ShelleyNEWPP era) Source # type PredicateFailure (ShelleyNEWPP era) Source # initialRules ∷ [InitialRule (ShelleyNEWPP era)] Source # transitionRules ∷ [TransitionRule (ShelleyNEWPP era)] Source # assertions ∷ [Assertion (ShelleyNEWPP era)] Source # renderAssertionViolation ∷ AssertionViolation (ShelleyNEWPP era) → String Source # |