ouroboros-consensus
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Consensus.Peras.Vote.Class

Description

The IsPerasVote projection/injection class.

Synopsis

Documentation

class BoostedBlockCompatibleWithPoint (BoostedBlock vote) blk ⇒ IsPerasVote vote blk | vote → blk where Source #

Types that support being treated as Peras votes

Instances

Instances details
(IsPerasVote (PerasVote blk) blk, BoostedBlockCompatibleWithPoint (BoostedBlock (PerasVote blk)) blk) ⇒ IsPerasVote (ValidatedPerasVote blk) blk Source # 
Instance details

Defined in Ouroboros.Consensus.Block.SupportsPeras

IsPerasVote vote blk ⇒ IsPerasVote (WithArrivalTime vote) blk Source # 
Instance details

Defined in Ouroboros.Consensus.Peras.Vote.Class

IsPerasVote (VoidPerasVote blk) blk Source # 
Instance details

Defined in Ouroboros.Consensus.Peras.Void

IsPerasVote (MockPerasVote blk) blk Source # 
Instance details

Defined in Ouroboros.Consensus.Peras.Vote.Mock

(ConvertRawHash blk, HashSize blk ~ 32) ⇒ IsPerasVote (PerasVote blk) blk Source # 
Instance details

Defined in Ouroboros.Consensus.Peras.Vote.V1

(CanHardFork xs, All SingleEraBlock xs) ⇒ IsPerasVote (OneEraPerasVote xs) (HardForkBlock xs) Source # 
Instance details

Defined in Ouroboros.Consensus.HardFork.Combinator.Basics

getPerasVoteId ∷ IsPerasVote vote blk ⇒ vote → PerasVoteId Source #

Extract the vote ID from a Peras vote container

getPerasVoteTarget ∷ IsPerasVote vote blk ⇒ vote → PerasVoteTarget blk Source #

Extract the vote target from a Peras vote container