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

Cometa.Protocol.ExUnitPrices

Description

Exact lovelace prices per memory unit and CPU step. Prices may exceed one lovelace. Serialization places memory before steps.

ExUnitPrices price price assembles prices from validated fractions.

Synopsis

Documentation

data ExUnitPrices Source #

Exact nonnegative lovelace costs per memory unit and CPU step.

Constructors

ExUnitPrices

Assemble validated components.

Fields

Instances

Instances details
Show ExUnitPrices Source # 
Instance details

Defined in Cometa.Internal.ProtocolValues

Eq ExUnitPrices Source # 
Instance details

Defined in Cometa.Internal.ProtocolValues

encodeCbor :: ExUnitPrices -> ByteString Source #

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

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