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
data AmountExtended Source #
Like Amount
, extended with @decimals` and has_nft_onchain_metadata
Constructors
AdaAmountExtended Lovelaces | |
AssetAmountExtended | |
Instances
FromJSON AmountExtended Source # | |||||
Defined in Blockfrost.Types.Shared.Amount Methods parseJSON :: Value -> Parser AmountExtended # parseJSONList :: Value -> Parser [AmountExtended] # | |||||
ToJSON AmountExtended Source # | |||||
Defined in Blockfrost.Types.Shared.Amount Methods toJSON :: AmountExtended -> Value # toEncoding :: AmountExtended -> Encoding # toJSONList :: [AmountExtended] -> Value # toEncodingList :: [AmountExtended] -> Encoding # omitField :: AmountExtended -> Bool # | |||||
Generic AmountExtended Source # | |||||
Defined in Blockfrost.Types.Shared.Amount Associated Types
Methods from :: AmountExtended -> Rep AmountExtended x # to :: Rep AmountExtended x -> AmountExtended # | |||||
Show AmountExtended Source # | |||||
Defined in Blockfrost.Types.Shared.Amount Methods showsPrec :: Int -> AmountExtended -> ShowS # show :: AmountExtended -> String # showList :: [AmountExtended] -> ShowS # | |||||
Eq AmountExtended Source # | |||||
Defined in Blockfrost.Types.Shared.Amount Methods (==) :: AmountExtended -> AmountExtended -> Bool # (/=) :: AmountExtended -> AmountExtended -> Bool # | |||||
Ord AmountExtended Source # | |||||
Defined in Blockfrost.Types.Shared.Amount Methods compare :: AmountExtended -> AmountExtended -> Ordering # (<) :: AmountExtended -> AmountExtended -> Bool # (<=) :: AmountExtended -> AmountExtended -> Bool # (>) :: AmountExtended -> AmountExtended -> Bool # (>=) :: AmountExtended -> AmountExtended -> Bool # max :: AmountExtended -> AmountExtended -> AmountExtended # min :: AmountExtended -> AmountExtended -> AmountExtended # | |||||
ToSample AmountExtended Source # | |||||
Defined in Blockfrost.Types.Shared.Amount Methods toSamples :: Proxy AmountExtended -> [(Text, AmountExtended)] # | |||||
HasAmount AddressInfoExtended [AmountExtended] Source # | |||||
Defined in Blockfrost.Lens Methods amount :: Lens' AddressInfoExtended [AmountExtended] Source # | |||||
type Rep AmountExtended Source # | |||||
Defined in Blockfrost.Types.Shared.Amount type Rep AmountExtended = D1 ('MetaData "AmountExtended" "Blockfrost.Types.Shared.Amount" "blockfrost-api-0.13.0.0-5VduFUrhiBL3cGPZJdyInJ" 'False) (C1 ('MetaCons "AdaAmountExtended" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Lovelaces)) :+: C1 ('MetaCons "AssetAmountExtended" 'PrefixI 'True) (S1 ('MetaSel ('Just "assetAmountExtendedDecimals") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "assetAmountExtendedHasNftOnchainMetadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "assetAmountExtendedValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeDiscrete)))) |
Orphan instances
FromJSON SomeDiscrete Source # | |
ToJSON SomeDiscrete Source # | |
Methods toJSON :: SomeDiscrete -> Value # toEncoding :: SomeDiscrete -> Encoding # toJSONList :: [SomeDiscrete] -> Value # toEncodingList :: [SomeDiscrete] -> Encoding # omitField :: SomeDiscrete -> Bool # |