ouroboros-consensus
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Consensus.Committee.Types

Description

Types common to any generic committee selection scheme

Synopsis

Documentation

newtype PoolId Source #

Identifier of a given voter in the committee selection scheme

Constructors

PoolId 

Instances

Instances details
Show PoolId Source # 
Instance details

Defined in Ouroboros.Consensus.Committee.Types

Methods

showsPrecIntPoolIdShowS #

showPoolIdString #

showList ∷ [PoolId] → ShowS #

Eq PoolId Source # 
Instance details

Defined in Ouroboros.Consensus.Committee.Types

Methods

(==)PoolIdPoolIdBool #

(/=)PoolIdPoolIdBool #

Ord PoolId Source # 
Instance details

Defined in Ouroboros.Consensus.Committee.Types

Methods

comparePoolIdPoolIdOrdering #

(<)PoolIdPoolIdBool #

(<=)PoolIdPoolIdBool #

(>)PoolIdPoolIdBool #

(>=)PoolIdPoolIdBool #

maxPoolIdPoolIdPoolId #

minPoolIdPoolIdPoolId #

newtype LedgerStake Source #

Stake of a voter as reflected by the ledger state

Constructors

LedgerStake 

newtype VoteWeight Source #

Voting power of a voter in the committee selection scheme

Constructors

VoteWeight 

Instances

Instances details
Show VoteWeight Source # 
Instance details

Defined in Ouroboros.Consensus.Committee.Types

Eq VoteWeight Source # 
Instance details

Defined in Ouroboros.Consensus.Committee.Types

Methods

(==)VoteWeightVoteWeightBool #

(/=)VoteWeightVoteWeightBool #

newtype Cumulative a Source #

Wrapper to tag accumulated resources

Constructors

Cumulative 

Fields

Instances

Instances details
Show a ⇒ Show (Cumulative a) Source # 
Instance details

Defined in Ouroboros.Consensus.Committee.Types

Methods

showsPrecIntCumulative a → ShowS #

showCumulative a → String #

showList ∷ [Cumulative a] → ShowS #

Eq a ⇒ Eq (Cumulative a) Source # 
Instance details

Defined in Ouroboros.Consensus.Committee.Types

Methods

(==)Cumulative a → Cumulative a → Bool #

(/=)Cumulative a → Cumulative a → Bool #