Copyright | © 2018-2022 IOHK |
---|---|
License | Apache-2.0 |
Safe Haskell | None |
Language | Haskell2010 |
A wrapper around TxMetadata to allow different JSON codecs. (ADP-1596) see https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/TxMetadata.hs
Synopsis
Documentation
data TxMetadataSchema Source #
A tag to select the json codec
Instances
data TxMetadataWithSchema Source #
A wrapper to drive the json codec of metadata
TxMetadataWithSchema | |
|
Instances
parseSimpleMetadataFlag :: Bool -> TxMetadataSchema Source #
Parses a Boolean "simple-metadata" API flag.
toSimpleMetadataFlag . parseSimpleMetadataFlag == id
parseSimpleMetadataFlag . toSimpleMetadataFlag == id
toSimpleMetadataFlag :: TxMetadataSchema -> Bool Source #
Produces a Boolean "simple-metadata" API flag.
toSimpleMetadataFlag . parseSimpleMetadataFlag == id
parseSimpleMetadataFlag . toSimpleMetadataFlag == id