ouroboros-consensus-cardano-0.25.0.1: The instantation of the Ouroboros consensus layer used by Cardano
Safe HaskellNone
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
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

Generic (IndividualPoolStake c) Source # 
Instance details

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

Associated Types

type Rep (IndividualPoolStake c) 
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.25.0.1-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 HASH (VerKeyVRF (VRF c))))))
Show (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.25.0.1-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 HASH (VerKeyVRF (VRF c))))))

newtype PoolDistr c Source #

Instances

Instances details
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 #

Generic (PoolDistr c) Source # 
Instance details

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

Associated Types

type Rep (PoolDistr c) 
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.25.0.1-inplace" 'True) (C1 ('MetaCons "PoolDistr" 'PrefixI 'True) (S1 ('MetaSel ('Just "unPoolDistr") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map (KeyHash 'StakePool) (IndividualPoolStake c)))))

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 #

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.25.0.1-inplace" 'True) (C1 ('MetaCons "PoolDistr" 'PrefixI 'True) (S1 ('MetaSel ('Just "unPoolDistr") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map (KeyHash 'StakePool) (IndividualPoolStake c)))))