Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module contains copies of older versions of types from Ledger in order to retain backwards-compatibility. Eventually, types likes this should be defined in Ledger instead of here, see https://github.com/IntersectMBO/cardano-ledger/issues/4415.
Synopsis
- data IndividualPoolStake c = IndividualPoolStake {
- individualPoolStake ∷ !Rational
- individualPoolStakeVrf ∷ !(Hash c (VerKeyVRF c))
- newtype PoolDistr c = PoolDistr {
- unPoolDistr ∷ Map (KeyHash StakePool c) (IndividualPoolStake c)
- fromLedgerIndividualPoolStake ∷ IndividualPoolStake c → IndividualPoolStake c
- fromLedgerPoolDistr ∷ PoolDistr c → PoolDistr c
Documentation
data IndividualPoolStake c Source #
IndividualPoolStake | |
|
Instances
Copy of PoolDistr
before
https://github.com/IntersectMBO/cardano-ledger/pull/4324.
PoolDistr | |
|
Instances
Generic (PoolDistr c) Source # | |
Show (PoolDistr c) Source # | |
Crypto c ⇒ DecCBOR (PoolDistr c) Source # | |
Crypto c ⇒ EncCBOR (PoolDistr c) Source # | |
Eq (PoolDistr c) Source # | |
type Rep (PoolDistr c) Source # | |
Defined in Ouroboros.Consensus.Shelley.Ledger.Query.Types type Rep (PoolDistr c) = D1 ('MetaData "PoolDistr" "Ouroboros.Consensus.Shelley.Ledger.Query.Types" "ouroboros-consensus-cardano-0.20.0.0-inplace" 'True) (C1 ('MetaCons "PoolDistr" 'PrefixI 'True) (S1 ('MetaSel ('Just "unPoolDistr") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map (KeyHash 'StakePool c) (IndividualPoolStake c))))) |
fromLedgerPoolDistr ∷ PoolDistr c → PoolDistr c Source #