Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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
Instances
data AmountExtended Source #
Like Amount
, extended with @decimals` and has_nft_onchain_metadata
Instances
Orphan instances
FromJSON SomeDiscrete Source # | |
parseJSON :: Value -> Parser SomeDiscrete # parseJSONList :: Value -> Parser [SomeDiscrete] # | |
ToJSON SomeDiscrete Source # | |
toJSON :: SomeDiscrete -> Value # toEncoding :: SomeDiscrete -> Encoding # toJSONList :: [SomeDiscrete] -> Value # toEncodingList :: [SomeDiscrete] -> Encoding # omitField :: SomeDiscrete -> Bool # |