| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
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
| Show PoolVotingThresholds Source # | |
Defined in Cometa.Internal.ProtocolValues Methods showsPrec :: Int -> PoolVotingThresholds -> ShowS # show :: PoolVotingThresholds -> String # showList :: [PoolVotingThresholds] -> ShowS # | |
| Eq PoolVotingThresholds Source # | |
Defined in Cometa.Internal.ProtocolValues Methods (==) :: PoolVotingThresholds -> PoolVotingThresholds -> Bool # (/=) :: PoolVotingThresholds -> PoolVotingThresholds -> Bool # | |
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.