cometa-0.1.0.0: Idiomatic Haskell bindings to cardano-c
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

Documentation

data DRepVotingThresholds Source #

DRep approval thresholds, each from zero through one inclusive.

Constructors

DRepVotingThresholds

Assemble validated components.

Fields

Instances

Instances details
Show DRepVotingThresholds Source # 
Instance details

Defined in Cometa.Internal.ProtocolValues

Eq DRepVotingThresholds Source # 
Instance details

Defined in Cometa.Internal.ProtocolValues

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.