Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data ShelleyMIR era
- type family PredicateFailure a
- data ShelleyMirPredFailure era
- data ShelleyMirEvent era
- = MirTransfer (InstantaneousRewards (EraCrypto era))
- | NoMirTransfer (InstantaneousRewards (EraCrypto era)) Coin Coin
- emptyInstantaneousRewards ∷ InstantaneousRewards c
Documentation
data ShelleyMIR 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
data ShelleyMirPredFailure era Source #
Instances
Generic (ShelleyMirPredFailure era) Source # | |
Defined in Cardano.Ledger.Shelley.Rules.Mir from ∷ ShelleyMirPredFailure era → Rep (ShelleyMirPredFailure era) x Source # to ∷ Rep (ShelleyMirPredFailure era) x → ShelleyMirPredFailure era Source # | |
Show (ShelleyMirPredFailure era) Source # | |
Defined in Cardano.Ledger.Shelley.Rules.Mir | |
NFData (ShelleyMirPredFailure era) Source # | |
Defined in Cardano.Ledger.Shelley.Rules.Mir rnf ∷ ShelleyMirPredFailure era → () Source # | |
Eq (ShelleyMirPredFailure era) Source # | |
Defined in Cardano.Ledger.Shelley.Rules.Mir (==) ∷ ShelleyMirPredFailure era → ShelleyMirPredFailure era → Bool Source # (/=) ∷ ShelleyMirPredFailure era → ShelleyMirPredFailure era → Bool Source # | |
NoThunks (ShelleyMirPredFailure era) Source # | |
Defined in Cardano.Ledger.Shelley.Rules.Mir | |
type Rep (ShelleyMirPredFailure era) Source # | |
Defined in Cardano.Ledger.Shelley.Rules.Mir |
data ShelleyMirEvent era Source #
MirTransfer (InstantaneousRewards (EraCrypto era)) | |
NoMirTransfer (InstantaneousRewards (EraCrypto era)) Coin Coin | We were not able to perform an MIR transfer due to insufficient funds. This event gives the rewards we wanted to pay, plus the available reserves and treasury. |
Instances
Orphan instances
(Default (EpochState era), EraGov era) ⇒ STS (ShelleyMIR era) Source # | |
type State (ShelleyMIR era) Source # type Signal (ShelleyMIR era) Source # type Environment (ShelleyMIR era) Source # type BaseM (ShelleyMIR era) ∷ Type → Type Source # type Event (ShelleyMIR era) Source # type PredicateFailure (ShelleyMIR era) Source # initialRules ∷ [InitialRule (ShelleyMIR era)] Source # transitionRules ∷ [TransitionRule (ShelleyMIR era)] Source # assertions ∷ [Assertion (ShelleyMIR era)] Source # renderAssertionViolation ∷ AssertionViolation (ShelleyMIR era) → String Source # |