cardano-wallet-core-2022.7.1: The Wallet Backend for a Cardano node.
Copyright © 2018-2022 IOHK
License Apache-2.0
Safe Haskell None
Language Haskell2010

Cardano.Wallet.Api.Types.SchemaMetadata

Description

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

data TxMetadataWithSchema Source #

A wrapper to drive the json codec of metadata

Instances

Instances details
Eq TxMetadataWithSchema Source #
Instance details

Defined in Cardano.Wallet.Api.Types.SchemaMetadata

Show TxMetadataWithSchema Source #
Instance details

Defined in Cardano.Wallet.Api.Types.SchemaMetadata

Generic TxMetadataWithSchema Source #
Instance details

Defined in Cardano.Wallet.Api.Types.SchemaMetadata

NFData TxMetadataWithSchema Source #
Instance details

Defined in Cardano.Wallet.Api.Types.SchemaMetadata

ToJSON TxMetadataWithSchema Source #
Instance details

Defined in Cardano.Wallet.Api.Types.SchemaMetadata

FromJSON TxMetadataWithSchema Source #
Instance details

Defined in Cardano.Wallet.Api.Types.SchemaMetadata

type Rep TxMetadataWithSchema Source #
Instance details

Defined in Cardano.Wallet.Api.Types.SchemaMetadata

type Rep TxMetadataWithSchema = D1 (' MetaData "TxMetadataWithSchema" "Cardano.Wallet.Api.Types.SchemaMetadata" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' False ) ( C1 (' MetaCons "TxMetadataWithSchema" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "txMetadataWithSchema_schema") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedStrict ) ( Rec0 TxMetadataSchema ) :*: S1 (' MetaSel (' Just "txMetadataWithSchema_metadata") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedStrict ) ( Rec0 TxMetadata )))

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