| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
PlutusLedgerApi.V1.Orphans
Contents
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: 1.1.0
Instances
getUnsortedAssocMap :: UnsortedAssocMap k v -> Map k v Source #
Since: 1.1.0
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 Methods 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 | |
getMintValue :: MintValue -> Value Source #
Since: 1.0.3
A Value suitable for TxOut. Specifically:
- The
Valueis sorted by both keys (meaningCurrencySymbolandTokenName); - 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 Methods 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 | |
getUtxoValue :: UTxOValue -> Value Source #
Since: 1.0.0