Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
Instances
Eq Value | |
Show Value | |
Semigroup Value | |
Monoid Value | |
Serialise Value | |
Defined in Ledger.Value.Orphans encodeList :: [Value] -> Encoding decodeList :: Decoder s [Value] | |
FromJSON Value | |
Defined in Cardano.Api.Value parseJSON :: Value0 -> Parser Value parseJSONList :: Value0 -> Parser [Value] | |
ToJSON Value | |
Defined in Cardano.Api.Value | |
JoinSemiLattice Value | |
Defined in Ledger.Value.CardanoAPI | |
Pretty Value Source # | |
Defined in Ledger.Value.Orphans |
Instances
Instances
Instances
Instances
selectAsset :: Value -> AssetId -> Quantity #
valueToList :: Value -> [(AssetId, Quantity)] #
valueFromList :: [(AssetId, Quantity)] -> Value #
selectLovelace :: Value -> Lovelace #
negateValue :: Value -> Value #
lovelaceToValue :: Lovelace -> Value Source #
lovelaceValueOf :: Integer -> Value Source #
adaValueOf :: Rational -> Value Source #
isAdaOnlyValue :: Value -> Bool Source #
noAdaValue :: Value -> Value Source #
adaOnlyValue :: Value -> Value Source #
adaToCardanoValue :: Ada -> Value Source #
toCardanoValue :: Value -> Either ToCardanoError Value Source #
fromCardanoValue :: Value -> Value Source #
toCardanoAssetId :: AssetClass -> Either ToCardanoError AssetId Source #
fromCardanoAssetId :: AssetId -> AssetClass Source #