Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Blockfrost.Types.Shared.Amount
Contents
Description
Amount sum type
Synopsis
Documentation
Amount, which is either `AdaAmount Lovelaces` representing amount of lovelaces or `AssetAmount SomeDiscrete` for asset amounts, identified by concatenation of asset policy ID and hex-encoded asset_name
Constructors
AdaAmount Lovelaces | |
AssetAmount SomeDiscrete |
Instances
Orphan instances
FromJSON SomeDiscrete Source # | |
ToJSON SomeDiscrete Source # | |
Methods toJSON :: SomeDiscrete -> Value # toEncoding :: SomeDiscrete -> Encoding # toJSONList :: [SomeDiscrete] -> Value # toEncodingList :: [SomeDiscrete] -> Encoding # |