mafoc-0.0.0.1
Safe HaskellSafe-Inferred
LanguageHaskell2010

Mafoc.Upstream.Formats

Description

Conventional string formats used in Cardano.

Synopsis

SlotNoBhhString

AssetIdString

newtype AssetIdString #

Newtype of AssetId which renders as "policyId.assetName"

Constructors

AssetIdString AssetId 

Instances

Instances details
ToJSON AssetIdString # 
Instance details

Defined in Mafoc.Upstream.Formats

Methods

toJSON :: AssetIdString -> Value

toEncoding :: AssetIdString -> Encoding

toJSONList :: [AssetIdString] -> Value

toEncodingList :: [AssetIdString] -> Encoding

ToJSONKey AssetIdString # 
Instance details

Defined in Mafoc.Upstream.Formats

Methods

toJSONKey :: ToJSONKeyFunction AssetIdString

toJSONKeyList :: ToJSONKeyFunction [AssetIdString]

Eq AssetIdString # 
Instance details

Defined in Mafoc.Upstream.Formats

Ord AssetIdString # 
Instance details

Defined in Mafoc.Upstream.Formats

renderPolicyId :: PolicyId -> Text #

renderAssetId :: AssetId -> Text #