Module

Cardano.Types.MultiAsset

#pprintMultiAsset

#normalizeMultiAsset

normalizeMultiAsset :: MultiAsset -> MultiAsset

Normalize MultiAsset so that it doesn't contain zero-valued tokens.

#filterMultiAsset

#unionWithNonAda

unionWithNonAda :: (BigNum -> BigNum -> Maybe BigNum) -> MultiAsset -> MultiAsset -> Maybe MultiAsset

Same as unionWith but specifically for MultiAsset

#unionNonAda

unionNonAda :: MultiAsset -> MultiAsset -> Map ScriptHash (Map AssetName (These BigNum BigNum))

Combine two MultiAsset maps

#union

union :: forall k v r. Ord k => Map k v -> Map k r -> Map k (These v r)

Combine two Maps.

Modules