Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data ShelleyDELEG era
- data DelegEnv era = DelegEnv {}
- type family PredicateFailure a
- data ShelleyDelegPredFailure era
- = StakeKeyAlreadyRegisteredDELEG !(Credential 'Staking (EraCrypto era))
- | StakeKeyInRewardsDELEG !(Credential 'Staking (EraCrypto era))
- | StakeKeyNotRegisteredDELEG !(Credential 'Staking (EraCrypto era))
- | StakeKeyNonZeroAccountBalanceDELEG !(Maybe Coin)
- | StakeDelegationImpossibleDELEG !(Credential 'Staking (EraCrypto era))
- | WrongCertificateTypeDELEG
- | GenesisKeyNotInMappingDELEG !(KeyHash 'Genesis (EraCrypto era))
- | DuplicateGenesisDelegateDELEG !(KeyHash 'GenesisDelegate (EraCrypto era))
- | InsufficientForInstantaneousRewardsDELEG !MIRPot !Coin !Coin
- | MIRCertificateTooLateinEpochDELEG !SlotNo !SlotNo
- | DuplicateGenesisVRFDELEG !(Hash (EraCrypto era) (VerKeyVRF (EraCrypto era)))
- | MIRTransferNotCurrentlyAllowed
- | MIRNegativesNotCurrentlyAllowed
- | InsufficientForTransferDELEG !MIRPot !Coin !Coin
- | MIRProducesNegativeUpdate
- | MIRNegativeTransfer !MIRPot !Coin
- newtype ShelleyDelegEvent era = DelegNewEpoch EpochNo
Documentation
data ShelleyDELEG 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 ShelleyDelegPredFailure era Source #
Instances
newtype ShelleyDelegEvent era Source #
Instances
Generic (ShelleyDelegEvent era) Source # | |
Defined in Cardano.Ledger.Shelley.Rules.Deleg from ∷ ShelleyDelegEvent era → Rep (ShelleyDelegEvent era) x Source # to ∷ Rep (ShelleyDelegEvent era) x → ShelleyDelegEvent era Source # | |
NFData (ShelleyDelegEvent era) Source # | |
Defined in Cardano.Ledger.Shelley.Rules.Deleg rnf ∷ ShelleyDelegEvent era → () Source # | |
Eq (ShelleyDelegEvent era) Source # | |
Defined in Cardano.Ledger.Shelley.Rules.Deleg (==) ∷ ShelleyDelegEvent era → ShelleyDelegEvent era → Bool Source # (/=) ∷ ShelleyDelegEvent era → ShelleyDelegEvent era → Bool Source # | |
type Rep (ShelleyDelegEvent era) Source # | |
Defined in Cardano.Ledger.Shelley.Rules.Deleg type Rep (ShelleyDelegEvent era) = D1 ('MetaData "ShelleyDelegEvent" "Cardano.Ledger.Shelley.Rules.Deleg" "cardano-ledger-shelley-1.11.0.0-inplace" 'True) (C1 ('MetaCons "DelegNewEpoch" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EpochNo))) |
Orphan instances
(EraPParams era, ShelleyEraTxCert era, ProtVerAtMost era 8) ⇒ STS (ShelleyDELEG era) Source # | |
type State (ShelleyDELEG era) Source # type Signal (ShelleyDELEG era) Source # type Environment (ShelleyDELEG era) Source # type BaseM (ShelleyDELEG era) ∷ Type → Type Source # type Event (ShelleyDELEG era) Source # type PredicateFailure (ShelleyDELEG era) Source # initialRules ∷ [InitialRule (ShelleyDELEG era)] Source # transitionRules ∷ [TransitionRule (ShelleyDELEG era)] Source # assertions ∷ [Assertion (ShelleyDELEG era)] Source # renderAssertionViolation ∷ AssertionViolation (ShelleyDELEG era) → String Source # |