| 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
newtype LedgerStake Source #
Stake of a voter as reflected by the ledger state
Constructors
| LedgerStake | |
Fields | |
Instances
| HasZero LedgerStake Source # | |
Defined in Ouroboros.Consensus.Committee.Types Methods isZero ∷ LedgerStake → Bool Source # | |
| Num LedgerStake Source # | |
Defined in Ouroboros.Consensus.Committee.Types Methods (+) ∷ LedgerStake → LedgerStake → LedgerStake # (-) ∷ LedgerStake → LedgerStake → LedgerStake # (*) ∷ LedgerStake → LedgerStake → LedgerStake # negate ∷ LedgerStake → LedgerStake # abs ∷ LedgerStake → LedgerStake # | |
| Show LedgerStake Source # | |
Defined in Ouroboros.Consensus.Committee.Types Methods showsPrec ∷ Int → LedgerStake → ShowS # show ∷ LedgerStake → String # showList ∷ [LedgerStake] → ShowS # | |
| Eq LedgerStake Source # | |
Defined in Ouroboros.Consensus.Committee.Types | |
newtype VoteWeight Source #
Voting power of a voter in the committee selection scheme
Constructors
| VoteWeight | |
Fields | |
Instances
| Show VoteWeight Source # | |
Defined in Ouroboros.Consensus.Committee.Types Methods showsPrec ∷ Int → VoteWeight → ShowS # show ∷ VoteWeight → String # showList ∷ [VoteWeight] → ShowS # | |
| Eq VoteWeight Source # | |
Defined in Ouroboros.Consensus.Committee.Types | |
newtype TargetCommitteeSize Source #
Target committee size
Constructors
| TargetCommitteeSize | |
Fields | |
Instances
| Show TargetCommitteeSize Source # | |
Defined in Ouroboros.Consensus.Committee.Types Methods showsPrec ∷ Int → TargetCommitteeSize → ShowS # show ∷ TargetCommitteeSize → String # showList ∷ [TargetCommitteeSize] → ShowS # | |
| Eq TargetCommitteeSize Source # | |
Defined in Ouroboros.Consensus.Committee.Types Methods | |
newtype Cumulative a Source #
Wrapper to tag accumulated resources
Constructors
| Cumulative | |
Fields
| |
Instances
| 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 # | |
| Eq a ⇒ Eq (Cumulative a) Source # | |
Defined in Ouroboros.Consensus.Committee.Types | |