| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Michelson.Typed.CValue
Description
Module, containing CValue data type which represents Michelson comparable values.
Synopsis
- data CValue t where
- CvInt :: Integer -> CValue CInt
- CvNat :: Natural -> CValue CNat
- CvString :: MText -> CValue CString
- CvBytes :: ByteString -> CValue CBytes
- CvMutez :: Mutez -> CValue CMutez
- CvBool :: Bool -> CValue CBool
- CvKeyHash :: KeyHash -> CValue CKeyHash
- CvTimestamp :: Timestamp -> CValue CTimestamp
- CvAddress :: EpAddress -> CValue CAddress
Documentation
Representation of comparable value in Michelson language.
By specification, we're allowed to compare only following types: int, nat, string, bytes, mutez, bool, key_hash, timestamp, address.
Only these values can be used as map keys or set elements.
Constructors
| CvInt :: Integer -> CValue CInt | |
| CvNat :: Natural -> CValue CNat | |
| CvString :: MText -> CValue CString | |
| CvBytes :: ByteString -> CValue CBytes | |
| CvMutez :: Mutez -> CValue CMutez | |
| CvBool :: Bool -> CValue CBool | |
| CvKeyHash :: KeyHash -> CValue CKeyHash | |
| CvTimestamp :: Timestamp -> CValue CTimestamp | |
| CvAddress :: EpAddress -> CValue CAddress |