Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data TICK era
- type family State a
-
data
TickPredicateFailure
era
- = NewEpochFailure ( PredicateFailure ( EraRule "NEWEPOCH" era))
- | RupdFailure ( PredicateFailure ( EraRule "RUPD" era))
- data TickEvent era
- type family PredicateFailure a
- adoptGenesisDelegs :: EpochState era -> SlotNo -> EpochState era
- data TICKF era
- newtype TickfPredicateFailure era = TickfNewEpochFailure ( PredicateFailure ( EraRule "NEWEPOCH" era))
Documentation
Instances
Type of the state which the system transitions between.
Instances
data TickPredicateFailure era Source #
NewEpochFailure ( PredicateFailure ( EraRule "NEWEPOCH" era)) | |
RupdFailure ( PredicateFailure ( EraRule "RUPD" era)) |
Instances
Instances
Generic ( TickEvent era) Source # | |
type Rep ( TickEvent era) Source # | |
Defined in Cardano.Ledger.Shelley.Rules.Tick
type
Rep
(
TickEvent
era) =
D1
('
MetaData
"TickEvent" "Cardano.Ledger.Shelley.Rules.Tick" "cardano-ledger-shelley-0.1.0.0-4LNBTpyKcsy6EW18a3tTt2" '
False
) (
C1
('
MetaCons
"NewEpochEvent" '
PrefixI
'
False
) (
S1
('
MetaSel
('
Nothing
::
Maybe
Symbol
) '
NoSourceUnpackedness
'
NoSourceStrictness
'
DecidedLazy
) (
Rec0
(
Event
(
EraRule
"NEWEPOCH" era))))
:+:
C1
('
MetaCons
"RupdEvent" '
PrefixI
'
False
) (
S1
('
MetaSel
('
Nothing
::
Maybe
Symbol
) '
NoSourceUnpackedness
'
NoSourceStrictness
'
DecidedLazy
) (
Rec0
(
Event
(
EraRule
"RUPD" era)))))
|
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
adoptGenesisDelegs :: EpochState era -> SlotNo -> EpochState era Source #
Instances
newtype TickfPredicateFailure era Source #
TickfNewEpochFailure ( PredicateFailure ( EraRule "NEWEPOCH" era)) |