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

Cometa.Protocol.PoolVotingThresholds

Description

Governance approval proportions for stake pools. Each field is an exact validated unit interval.

PoolVotingThresholds t t t t t assembles uniform thresholds.

Synopsis

Documentation

data PoolVotingThresholds Source #

Stake-pool approval thresholds, each from zero through one inclusive.

Constructors

PoolVotingThresholds

Assemble validated components.

Fields

Instances

Instances details
Show PoolVotingThresholds Source # 
Instance details

Defined in Cometa.Internal.ProtocolValues

Eq PoolVotingThresholds Source # 
Instance details

Defined in Cometa.Internal.ProtocolValues

encodeCbor :: PoolVotingThresholds -> ByteString Source #

Encode a definite-length ledger CBOR value with shortest integer encodings.

decodeCbor :: ByteString -> Either Error PoolVotingThresholds 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.