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