| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Cooked.Skeleton.Value
Contents
Description
Synopsis
- valueAssetClassAmountL :: ToMintingPolicyHash mp => mp -> TokenName -> Lens' Value Integer
- valueLovelaceL :: Lens' Value Lovelace
- valueAssetClassAmountP :: ToMintingPolicyHash mp => mp -> TokenName -> Prism' Value Integer
- valueLovelaceP :: Prism' Value Lovelace
- lovelaceIntegerI :: Iso' Lovelace Integer
Optics
valueAssetClassAmountL :: ToMintingPolicyHash mp => mp -> TokenName -> Lens' Value Integer Source #
A lens to get or set the amount of tokens of a certain AssetClass
from a given Value. This removes the entry if the new amount is 0.
valueAssetClassAmountP :: ToMintingPolicyHash mp => mp -> TokenName -> Prism' Value Integer Source #
A prism to build a value from an asset class and amount, or retrieves the amount from this asset class if it is not zero
valueLovelaceP :: Prism' Value Lovelace Source #
An instance of valueAssetClassAmountP for Lovelace