Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data UnsortedAssocMap k v
- getUnsortedAssocMap :: UnsortedAssocMap k v -> Map k v
- data MintValue
- getMintValue :: MintValue -> Value
- data UTxOValue
- getUtxoValue :: UTxOValue -> Value
Documentation
data UnsortedAssocMap k v Source #
@since WIP
Instances
getUnsortedAssocMap :: UnsortedAssocMap k v -> Map k v Source #
@since WIP
Similar to NonAdaValue
, but also does not have nonzero amounts.
Note
This is designed to act as a modifier, and thus, we expose the constructor even though it preserves invariants. If you use the constructor directly, be very certain that the Value being wrapped satisfies the invariants described above: failing to do so means all guarantees of this type are off the table.
Since: 1.0.3
Instances
Arbitrary MintValue Source # | Since: 1.0.3 |
CoArbitrary MintValue Source # | Since: 1.0.3 |
Defined in PlutusLedgerApi.V1.Orphans.Value coarbitrary :: MintValue -> Gen b -> Gen b | |
Function MintValue Source # | Since: 1.0.3 |
Defined in PlutusLedgerApi.V1.Orphans.Value | |
Show MintValue Source # | Since: 1.0.3 |
Eq MintValue Source # | Since: 1.0.3 |
Pretty MintValue Source # | |
Defined in PlutusLedgerApi.V1.Orphans.Value pretty :: MintValue -> Doc ann prettyList :: [MintValue] -> Doc ann |
getMintValue :: MintValue -> Value Source #
Since: 1.0.3
A Value
suitable for TxOut
. Specifically:
- The
Value
is sorted by both keys (meaningCurrencySymbol
andTokenName
); - There exists an Ada amount; and
- All amounts are positive.
Note
This is designed to act as a modifier, and thus, we expose the constructor even though it preserves invariants. If you use the constructor directly, be very certain that the Value being wrapped satisfies the invariants described above: failing to do so means all guarantees of this type are off the table.
Since: 1.0.2
Instances
Arbitrary UTxOValue Source # | Since: 1.0.2 |
CoArbitrary UTxOValue Source # | Since: 1.0.0 |
Defined in PlutusLedgerApi.V1.Orphans.Value coarbitrary :: UTxOValue -> Gen b -> Gen b | |
Function UTxOValue Source # | Since: 1.0.0 |
Defined in PlutusLedgerApi.V1.Orphans.Value | |
Show UTxOValue Source # | Since: 1.0.0 |
Eq UTxOValue Source # | Since: 1.0.0 |
Pretty UTxOValue Source # | |
Defined in PlutusLedgerApi.V1.Orphans.Value pretty :: UTxOValue -> Doc ann prettyList :: [UTxOValue] -> Doc ann |
getUtxoValue :: UTxOValue -> Value Source #
Since: 1.0.0