| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Ouroboros.Consensus.Committee.Types
Description
Types common to any generic committee selection scheme
Synopsis
- newtype PoolId = PoolId {}
- newtype LedgerStake = LedgerStake {}
- newtype VoteWeight = VoteWeight {}
- newtype TargetCommitteeSize = TargetCommitteeSize {}
- newtype Cumulative a = Cumulative {
- unCumulative ∷ a
Documentation
Identifier of a given voter in the committee selection scheme
Instances
| FromCBOR PoolId Source # | |||||
| ToCBOR PoolId Source # | |||||
| Eq PoolId Source # | |||||
| Ord PoolId Source # | |||||
| Generic PoolId Source # | |||||
Defined in Ouroboros.Consensus.Committee.Types Associated Types
| |||||
| Show PoolId Source # | |||||
| NoThunks PoolId Source # | |||||
| type Rep PoolId Source # | |||||
Defined in Ouroboros.Consensus.Committee.Types | |||||
newtype LedgerStake Source #
Stake of a voter as reflected by the ledger state
Constructors
| LedgerStake | |
Fields | |
Instances
newtype VoteWeight Source #
Relative voting power of a voter in the committee selection scheme
Constructors
| VoteWeight | |
Fields | |
Instances
| FromCBOR VoteWeight Source # | |||||
Defined in Ouroboros.Consensus.Committee.Types | |||||
| ToCBOR VoteWeight Source # | |||||
Defined in Ouroboros.Consensus.Committee.Types Methods toCBOR ∷ VoteWeight → Encoding Source # encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy VoteWeight → Size Source # encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [VoteWeight] → Size Source # | |||||
| NFData VoteWeight Source # | |||||
Defined in Ouroboros.Consensus.Committee.Types Methods rnf ∷ VoteWeight → () # | |||||
| Monoid VoteWeight Source # | |||||
Defined in Ouroboros.Consensus.Committee.Types | |||||
| Semigroup VoteWeight Source # | |||||
Defined in Ouroboros.Consensus.Committee.Types Methods (<>) ∷ VoteWeight → VoteWeight → VoteWeight # sconcat ∷ NonEmpty VoteWeight → VoteWeight # stimes ∷ Integral b ⇒ b → VoteWeight → VoteWeight # | |||||
| Eq VoteWeight Source # | |||||
Defined in Ouroboros.Consensus.Committee.Types | |||||
| Ord VoteWeight Source # | |||||
Defined in Ouroboros.Consensus.Committee.Types Methods compare ∷ VoteWeight → VoteWeight → Ordering # (<) ∷ VoteWeight → VoteWeight → Bool # (<=) ∷ VoteWeight → VoteWeight → Bool # (>) ∷ VoteWeight → VoteWeight → Bool # (>=) ∷ VoteWeight → VoteWeight → Bool # max ∷ VoteWeight → VoteWeight → VoteWeight # min ∷ VoteWeight → VoteWeight → VoteWeight # | |||||
| Generic VoteWeight Source # | |||||
Defined in Ouroboros.Consensus.Committee.Types Associated Types
| |||||
| Num VoteWeight Source # | |||||
Defined in Ouroboros.Consensus.Committee.Types Methods (+) ∷ VoteWeight → VoteWeight → VoteWeight # (-) ∷ VoteWeight → VoteWeight → VoteWeight # (*) ∷ VoteWeight → VoteWeight → VoteWeight # negate ∷ VoteWeight → VoteWeight # abs ∷ VoteWeight → VoteWeight # signum ∷ VoteWeight → VoteWeight # | |||||
| Fractional VoteWeight Source # | |||||
Defined in Ouroboros.Consensus.Committee.Types | |||||
| Show VoteWeight Source # | |||||
Defined in Ouroboros.Consensus.Committee.Types Methods showsPrec ∷ Int → VoteWeight → ShowS # show ∷ VoteWeight → String # showList ∷ [VoteWeight] → ShowS # | |||||
| NoThunks VoteWeight Source # | |||||
Defined in Ouroboros.Consensus.Committee.Types | |||||
| type Rep VoteWeight Source # | |||||
Defined in Ouroboros.Consensus.Committee.Types type Rep VoteWeight = D1 ('MetaData "VoteWeight" "Ouroboros.Consensus.Committee.Types" "ouroboros-consensus-4.0.0.0-inplace" 'True) (C1 ('MetaCons "VoteWeight" 'PrefixI 'True) (S1 ('MetaSel ('Just "unVoteWeight") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Rational))) | |||||
newtype TargetCommitteeSize Source #
Target committee size
Constructors
| TargetCommitteeSize | |
Fields | |
Instances
| FromCBOR TargetCommitteeSize Source # | |||||
Defined in Ouroboros.Consensus.Committee.Types | |||||
| ToCBOR TargetCommitteeSize Source # | |||||
Defined in Ouroboros.Consensus.Committee.Types Methods toCBOR ∷ TargetCommitteeSize → Encoding Source # encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy TargetCommitteeSize → Size Source # encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [TargetCommitteeSize] → Size Source # | |||||
| Eq TargetCommitteeSize Source # | |||||
Defined in Ouroboros.Consensus.Committee.Types Methods | |||||
| Generic TargetCommitteeSize Source # | |||||
Defined in Ouroboros.Consensus.Committee.Types Associated Types
Methods | |||||
| Show TargetCommitteeSize Source # | |||||
Defined in Ouroboros.Consensus.Committee.Types Methods showsPrec ∷ Int → TargetCommitteeSize → ShowS # show ∷ TargetCommitteeSize → String # showList ∷ [TargetCommitteeSize] → ShowS # | |||||
| NoThunks TargetCommitteeSize Source # | |||||
Defined in Ouroboros.Consensus.Committee.Types | |||||
| type Rep TargetCommitteeSize Source # | |||||
Defined in Ouroboros.Consensus.Committee.Types type Rep TargetCommitteeSize = D1 ('MetaData "TargetCommitteeSize" "Ouroboros.Consensus.Committee.Types" "ouroboros-consensus-4.0.0.0-inplace" 'True) (C1 ('MetaCons "TargetCommitteeSize" 'PrefixI 'True) (S1 ('MetaSel ('Just "unTargetCommitteeSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64))) | |||||
newtype Cumulative a Source #
Wrapper to tag accumulated resources
Constructors
| Cumulative | |
Fields
| |
Instances
| FromCBOR a ⇒ FromCBOR (Cumulative a) Source # | |||||
Defined in Ouroboros.Consensus.Committee.Types | |||||
| ToCBOR a ⇒ ToCBOR (Cumulative a) Source # | |||||
Defined in Ouroboros.Consensus.Committee.Types Methods toCBOR ∷ Cumulative a → Encoding Source # encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (Cumulative a) → Size Source # encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [Cumulative a] → Size Source # | |||||
| Eq a ⇒ Eq (Cumulative a) Source # | |||||
Defined in Ouroboros.Consensus.Committee.Types | |||||
| Generic (Cumulative a) Source # | |||||
Defined in Ouroboros.Consensus.Committee.Types Associated Types
| |||||
| Show a ⇒ Show (Cumulative a) Source # | |||||
Defined in Ouroboros.Consensus.Committee.Types Methods showsPrec ∷ Int → Cumulative a → ShowS # show ∷ Cumulative a → String # showList ∷ [Cumulative a] → ShowS # | |||||
| NoThunks a ⇒ NoThunks (Cumulative a) Source # | |||||
Defined in Ouroboros.Consensus.Committee.Types | |||||
| type Rep (Cumulative a) Source # | |||||
Defined in Ouroboros.Consensus.Committee.Types type Rep (Cumulative a) = D1 ('MetaData "Cumulative" "Ouroboros.Consensus.Committee.Types" "ouroboros-consensus-4.0.0.0-inplace" 'True) (C1 ('MetaCons "Cumulative" 'PrefixI 'True) (S1 ('MetaSel ('Just "unCumulative") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a))) | |||||