| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Cardano.Ledger.Shelley.TxOut
Contents
Synopsis
- data ShelleyTxOut era where
- TxOutCompact !CompactAddr !(CompactForm (Value era))
- pattern ShelleyTxOut ∷ (HasCallStack, Era era, Val (Value era)) ⇒ Addr → Value era → ShelleyTxOut era
- addrEitherShelleyTxOutL ∷ ∀ era f. Functor f ⇒ (Either Addr CompactAddr → f (Either Addr CompactAddr)) → ShelleyTxOut era → f (ShelleyTxOut era)
- valueEitherShelleyTxOutL ∷ Val (Value era) ⇒ Lens' (ShelleyTxOut era) (Either (Value era) (CompactForm (Value era)))
Documentation
data ShelleyTxOut era Source #
Constructors
| TxOutCompact !CompactAddr !(CompactForm (Value era)) |
Bundled Patterns
| pattern ShelleyTxOut ∷ (HasCallStack, Era era, Val (Value era)) ⇒ Addr → Value era → ShelleyTxOut era |
Instances
Helpers
addrEitherShelleyTxOutL ∷ ∀ era f. Functor f ⇒ (Either Addr CompactAddr → f (Either Addr CompactAddr)) → ShelleyTxOut era → f (ShelleyTxOut era) Source #
valueEitherShelleyTxOutL ∷ Val (Value era) ⇒ Lens' (ShelleyTxOut era) (Either (Value era) (CompactForm (Value era))) Source #
Orphan instances
| EraTxOut ShelleyEra Source # | |||||
Associated Types
Methods mkBasicTxOut ∷ Addr → Value ShelleyEra → TxOut ShelleyEra Source # upgradeTxOut ∷ TxOut (PreviousEra ShelleyEra) → TxOut ShelleyEra Source # valueTxOutL ∷ Lens' (TxOut ShelleyEra) (Value ShelleyEra) Source # compactValueTxOutL ∷ Lens' (TxOut ShelleyEra) (CompactForm (Value ShelleyEra)) Source # valueEitherTxOutL ∷ Lens' (TxOut ShelleyEra) (Either (Value ShelleyEra) (CompactForm (Value ShelleyEra))) Source # addrTxOutL ∷ Lens' (TxOut ShelleyEra) Addr Source # compactAddrTxOutL ∷ Lens' (TxOut ShelleyEra) CompactAddr Source # addrEitherTxOutL ∷ Lens' (TxOut ShelleyEra) (Either Addr CompactAddr) Source # getMinCoinSizedTxOut ∷ PParams ShelleyEra → Sized (TxOut ShelleyEra) → Coin Source # getMinCoinTxOut ∷ PParams ShelleyEra → TxOut ShelleyEra → Coin Source # | |||||