| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Cometa.Protocol.DRepVotingThresholds
Description
Governance approval proportions for DReps. Each field is an exact validated unit interval.
DRepVotingThresholds t t t t t t t t t t assembles uniform thresholds.
Synopsis
- data DRepVotingThresholds = DRepVotingThresholds {
- drepMotionNoConfidence :: !UnitInterval
- drepCommitteeNormal :: !UnitInterval
- drepCommitteeNoConfidence :: !UnitInterval
- drepUpdateConstitution :: !UnitInterval
- drepHardForkInitiation :: !UnitInterval
- drepNetworkParameterGroup :: !UnitInterval
- drepEconomicParameterGroup :: !UnitInterval
- drepTechnicalParameterGroup :: !UnitInterval
- drepGovernanceParameterGroup :: !UnitInterval
- drepTreasuryWithdrawal :: !UnitInterval
- encodeCbor :: DRepVotingThresholds -> ByteString
- decodeCbor :: ByteString -> Either Error DRepVotingThresholds
Documentation
data DRepVotingThresholds Source #
DRep approval thresholds, each from zero through one inclusive.
Constructors
| DRepVotingThresholds | Assemble validated components. |
Fields
| |
Instances
| Show DRepVotingThresholds Source # | |
Defined in Cometa.Internal.ProtocolValues Methods showsPrec :: Int -> DRepVotingThresholds -> ShowS # show :: DRepVotingThresholds -> String # showList :: [DRepVotingThresholds] -> ShowS # | |
| Eq DRepVotingThresholds Source # | |
Defined in Cometa.Internal.ProtocolValues Methods (==) :: DRepVotingThresholds -> DRepVotingThresholds -> Bool # (/=) :: DRepVotingThresholds -> DRepVotingThresholds -> Bool # | |
encodeCbor :: DRepVotingThresholds -> ByteString Source #
Encode a definite-length ledger CBOR value with shortest integer encodings.
decodeCbor :: ByteString -> Either Error DRepVotingThresholds Source #
Decode exactly one ledger CBOR value. Invalid fields or trailing data return
InvalidProtocolCbor. Nonminimal integers and indefinite arrays
are accepted; output encoding uses definite arrays and shortest integers.