ouroboros-consensus-cardano-0.20.0.0: The instantation of the Ouroboros consensus layer used by Cardano
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ouroboros.Consensus.Shelley.Ledger.Query.Types

Description

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

Documentation

data IndividualPoolStake c Source #

Instances

Instances details
Generic (IndividualPoolStake c) Source # 
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Query.Types

Associated Types

type Rep (IndividualPoolStake c) ∷ TypeType #

Show (IndividualPoolStake c) Source # 
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Query.Types

Crypto c ⇒ DecCBOR (IndividualPoolStake c) Source # 
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Query.Types

Crypto c ⇒ EncCBOR (IndividualPoolStake c) Source # 
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Query.Types

Eq (IndividualPoolStake c) Source # 
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Query.Types

NoThunks (IndividualPoolStake c) Source # 
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Query.Types

type Rep (IndividualPoolStake c) Source # 
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Query.Types

type Rep (IndividualPoolStake c) = D1 ('MetaData "IndividualPoolStake" "Ouroboros.Consensus.Shelley.Ledger.Query.Types" "ouroboros-consensus-cardano-0.20.0.0-inplace" 'False) (C1 ('MetaCons "IndividualPoolStake" 'PrefixI 'True) (S1 ('MetaSel ('Just "individualPoolStake") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Rational) :*: S1 ('MetaSel ('Just "individualPoolStakeVrf") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Hash c (VerKeyVRF c)))))

newtype PoolDistr c Source #

Instances

Instances details
Generic (PoolDistr c) Source # 
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Query.Types

Associated Types

type Rep (PoolDistr c) ∷ TypeType #

Methods

fromPoolDistr c → Rep (PoolDistr c) x #

toRep (PoolDistr c) x → PoolDistr c #

Show (PoolDistr c) Source # 
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Query.Types

Methods

showsPrecIntPoolDistr c → ShowS #

showPoolDistr c → String #

showList ∷ [PoolDistr c] → ShowS #

Crypto c ⇒ DecCBOR (PoolDistr c) Source # 
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Query.Types

Crypto c ⇒ EncCBOR (PoolDistr c) Source # 
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Query.Types

Methods

encCBORPoolDistr c → Encoding Source #

encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy (PoolDistr c) → Size Source #

encodedListSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy [PoolDistr c] → Size Source #

Eq (PoolDistr c) Source # 
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Query.Types

Methods

(==)PoolDistr c → PoolDistr c → Bool #

(/=)PoolDistr c → PoolDistr c → Bool #

type Rep (PoolDistr c) Source # 
Instance details

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)))))