Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
Instances
Orphan instances
ToJSON SomeDiscrete Source # | |
toJSON :: SomeDiscrete -> Value # toEncoding :: SomeDiscrete -> Encoding # toJSONList :: [SomeDiscrete] -> Value # toEncodingList :: [SomeDiscrete] -> Encoding # | |
FromJSON SomeDiscrete Source # | |
parseJSON :: Value -> Parser SomeDiscrete # parseJSONList :: Value -> Parser [SomeDiscrete] # |