Safe Haskell | None |
---|---|
Language | Haskell2010 |
Blockfrost.Types.Shared.Amount
Contents
Description
Amount sum type
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
ToJSON SomeDiscrete Source # | |
Methods toJSON :: SomeDiscrete -> Value Source # toEncoding :: SomeDiscrete -> Encoding Source # toJSONList :: [ SomeDiscrete ] -> Value Source # toEncodingList :: [ SomeDiscrete ] -> Encoding Source # |
|
FromJSON SomeDiscrete Source # | |
Methods parseJSON :: Value -> Parser SomeDiscrete Source # parseJSONList :: Value -> Parser [ SomeDiscrete ] Source # |