Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data MIR era
- type family PredicateFailure a
- data MirPredicateFailure era
-
data
MirEvent
era
- = MirTransfer ( InstantaneousRewards ( Crypto era))
- | NoMirTransfer ( InstantaneousRewards ( Crypto era)) Coin Coin
- emptyInstantaneousRewards :: InstantaneousRewards crypto
Documentation
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 MirPredicateFailure era Source #
Instances
Eq ( MirPredicateFailure era) Source # | |
Defined in Cardano.Ledger.Shelley.Rules.Mir (==) :: MirPredicateFailure era -> MirPredicateFailure era -> Bool Source # (/=) :: MirPredicateFailure era -> MirPredicateFailure era -> Bool Source # |
|
Show ( MirPredicateFailure era) Source # | |
Defined in Cardano.Ledger.Shelley.Rules.Mir |
|
Generic ( MirPredicateFailure era) Source # | |
Defined in Cardano.Ledger.Shelley.Rules.Mir from :: MirPredicateFailure era -> Rep ( MirPredicateFailure era) x Source # to :: Rep ( MirPredicateFailure era) x -> MirPredicateFailure era Source # |
|
NoThunks ( MirPredicateFailure era) Source # | |
Defined in Cardano.Ledger.Shelley.Rules.Mir |
|
type Rep ( MirPredicateFailure era) Source # | |
Defined in Cardano.Ledger.Shelley.Rules.Mir |
MirTransfer ( InstantaneousRewards ( Crypto era)) | |
NoMirTransfer ( InstantaneousRewards ( Crypto 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. |
emptyInstantaneousRewards :: InstantaneousRewards crypto Source #