Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data ShelleyPOOL era
- data PoolEvent era
- = RegisterPool (KeyHash 'StakePool (EraCrypto era))
- | ReregisterPool (KeyHash 'StakePool (EraCrypto era))
- data PoolEnv era = PoolEnv !SlotNo !(PParams era)
- type family PredicateFailure a
- data ShelleyPoolPredFailure era
- = StakePoolNotRegisteredOnKeyPOOL !(KeyHash 'StakePool (EraCrypto era))
- | StakePoolRetirementWrongEpochPOOL !EpochNo !EpochNo !EpochNo
- | StakePoolCostTooLowPOOL !Coin !Coin
- | WrongNetworkPOOL !Network !Network !(KeyHash 'StakePool (EraCrypto era))
- | PoolMedataHashTooBig !(KeyHash 'StakePool (EraCrypto era)) !Int
Documentation
data ShelleyPOOL era Source #
Instances
RegisterPool (KeyHash 'StakePool (EraCrypto era)) | |
ReregisterPool (KeyHash 'StakePool (EraCrypto era)) |
Instances
Generic (PoolEvent era) Source # | |
NFData (PoolEvent era) Source # | |
Defined in Cardano.Ledger.Shelley.Rules.Pool | |
Eq (PoolEvent era) Source # | |
type Rep (PoolEvent era) Source # | |
Defined in Cardano.Ledger.Shelley.Rules.Pool type Rep (PoolEvent era) = D1 ('MetaData "PoolEvent" "Cardano.Ledger.Shelley.Rules.Pool" "cardano-ledger-shelley-1.11.0.0-inplace" 'False) (C1 ('MetaCons "RegisterPool" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (KeyHash 'StakePool (EraCrypto era)))) :+: C1 ('MetaCons "ReregisterPool" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (KeyHash 'StakePool (EraCrypto era))))) |
Instances
Generic (PoolEnv era) Source # | |
Show (PParams era) ⇒ Show (PoolEnv era) Source # | |
Eq (PParams era) ⇒ Eq (PoolEnv era) Source # | |
type Rep (PoolEnv era) Source # | |
Defined in Cardano.Ledger.Shelley.Rules.Pool type Rep (PoolEnv era) = D1 ('MetaData "PoolEnv" "Cardano.Ledger.Shelley.Rules.Pool" "cardano-ledger-shelley-1.11.0.0-inplace" 'False) (C1 ('MetaCons "PoolEnv" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SlotNo) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (PParams 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
data ShelleyPoolPredFailure era Source #
Instances
Orphan instances
(ShelleyEraTxCert era, EraPParams era) ⇒ STS (ShelleyPOOL era) Source # | |
type State (ShelleyPOOL era) Source # type Signal (ShelleyPOOL era) Source # type Environment (ShelleyPOOL era) Source # type BaseM (ShelleyPOOL era) ∷ Type → Type Source # type Event (ShelleyPOOL era) Source # type PredicateFailure (ShelleyPOOL era) Source # initialRules ∷ [InitialRule (ShelleyPOOL era)] Source # transitionRules ∷ [TransitionRule (ShelleyPOOL era)] Source # assertions ∷ [Assertion (ShelleyPOOL era)] Source # renderAssertionViolation ∷ AssertionViolation (ShelleyPOOL era) → String Source # |