cardano-api:internal
Safe HaskellNone
LanguageHaskell2010

Cardano.Api.ValueParser

Synopsis

Documentation

parseValue :: ParserValueRole -> Parser Value Source #

Parse a Value from its string representation. The role argument for which purpose the value is being parsed. This is used to enforce additional constraints on the value. Why do we parse a general value and check for additional constraints you may ask? Because we can't rule out the negation operator for transaction outputs: some users have negative values in additions, with the addition's total summing up to a positive value. So forbidding negations altogether is too restrictive.

parseAssetName :: Parser AssetName Source #

Asset name parser.

parsePolicyId :: Parser PolicyId Source #

Policy ID parser.