Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data BabbageTxOut era where
- TxOutCompactDatum !(CompactAddr (EraCrypto era)) !(CompactForm (Value era)) !(BinaryData era)
- TxOutCompactRefScript !(CompactAddr (EraCrypto era)) !(CompactForm (Value era)) !(Datum era) !(Script era)
- pattern BabbageTxOut ∷ (Era era, Val (Value era), HasCallStack) ⇒ Addr (EraCrypto era) → Value era → Datum era → StrictMaybe (Script era) → BabbageTxOut era
- pattern TxOutCompact ∷ (Era era, Val (Value era), Compactible (Value era), HasCallStack) ⇒ CompactAddr (EraCrypto era) → CompactForm (Value era) → BabbageTxOut era
- pattern TxOutCompactDH ∷ (Era era, Val (Value era), Compactible (Value era), HasCallStack) ⇒ CompactAddr (EraCrypto era) → CompactForm (Value era) → DataHash (EraCrypto era) → BabbageTxOut era
- class (AlonzoEraTxOut era, AlonzoEraScript era) ⇒ BabbageEraTxOut era where
- referenceScriptTxOutL ∷ Lens' (TxOut era) (StrictMaybe (Script era))
- dataTxOutL ∷ Lens' (TxOut era) (StrictMaybe (Data era))
- datumTxOutL ∷ Lens' (TxOut era) (Datum era)
- type family TxOut era = (r ∷ Type) | r → era
- addrEitherBabbageTxOutL ∷ EraTxOut era ⇒ Lens' (BabbageTxOut era) (Either (Addr (EraCrypto era)) (CompactAddr (EraCrypto era)))
- valueEitherBabbageTxOutL ∷ ∀ era. EraTxOut era ⇒ Lens' (BabbageTxOut era) (Either (Value era) (CompactForm (Value era)))
- dataHashBabbageTxOutL ∷ EraTxOut era ⇒ Lens' (BabbageTxOut era) (StrictMaybe (DataHash (EraCrypto era)))
- dataBabbageTxOutL ∷ EraTxOut era ⇒ Lens' (BabbageTxOut era) (StrictMaybe (Data era))
- datumBabbageTxOutL ∷ EraTxOut era ⇒ Lens' (BabbageTxOut era) (Datum era)
- referenceScriptBabbageTxOutL ∷ EraTxOut era ⇒ Lens' (BabbageTxOut era) (StrictMaybe (Script era))
- getDatumBabbageTxOut ∷ (HasCallStack, Era era) ⇒ BabbageTxOut era → Datum era
- babbageMinUTxOValue ∷ BabbageEraPParams era ⇒ PParams era → Sized a → Coin
- getEitherAddrBabbageTxOut ∷ (HasCallStack, HashAlgorithm (ADDRHASH (EraCrypto era))) ⇒ BabbageTxOut era → Either (Addr (EraCrypto era)) (CompactAddr (EraCrypto era))
- txOutData ∷ Era era ⇒ BabbageTxOut era → Maybe (Data era)
- txOutDataHash ∷ Era era ⇒ BabbageTxOut era → Maybe (DataHash (EraCrypto era))
- txOutScript ∷ BabbageTxOut era → Maybe (Script era)
- internBabbageTxOut ∷ (Credential 'Staking (EraCrypto era) → Credential 'Staking (EraCrypto era)) → BabbageTxOut era → BabbageTxOut era
Documentation
data BabbageTxOut era Source #
TxOutCompactDatum !(CompactAddr (EraCrypto era)) !(CompactForm (Value era)) !(BinaryData era) | |
TxOutCompactRefScript !(CompactAddr (EraCrypto era)) !(CompactForm (Value era)) !(Datum era) !(Script era) |
pattern BabbageTxOut ∷ (Era era, Val (Value era), HasCallStack) ⇒ Addr (EraCrypto era) → Value era → Datum era → StrictMaybe (Script era) → BabbageTxOut era | |
pattern TxOutCompact ∷ (Era era, Val (Value era), Compactible (Value era), HasCallStack) ⇒ CompactAddr (EraCrypto era) → CompactForm (Value era) → BabbageTxOut era | |
pattern TxOutCompactDH ∷ (Era era, Val (Value era), Compactible (Value era), HasCallStack) ⇒ CompactAddr (EraCrypto era) → CompactForm (Value era) → DataHash (EraCrypto era) → BabbageTxOut era |
Instances
class (AlonzoEraTxOut era, AlonzoEraScript era) ⇒ BabbageEraTxOut era where Source #
referenceScriptTxOutL ∷ Lens' (TxOut era) (StrictMaybe (Script era)) Source #
dataTxOutL ∷ Lens' (TxOut era) (StrictMaybe (Data era)) Source #
Instances
Crypto c ⇒ BabbageEraTxOut (BabbageEra c) Source # | |
Defined in Cardano.Ledger.Babbage.TxOut referenceScriptTxOutL ∷ Lens' (TxOut (BabbageEra c)) (StrictMaybe (Script (BabbageEra c))) Source # dataTxOutL ∷ Lens' (TxOut (BabbageEra c)) (StrictMaybe (Data (BabbageEra c))) Source # datumTxOutL ∷ Lens' (TxOut (BabbageEra c)) (Datum (BabbageEra c)) Source # |
type family TxOut era = (r ∷ Type) | r → era Source #
The output of a UTxO for a particular era
Instances
type TxOut (AllegraEra c) | |
Defined in Cardano.Ledger.Allegra.TxOut | |
type TxOut (AlonzoEra c) | |
Defined in Cardano.Ledger.Alonzo.TxOut | |
type TxOut (BabbageEra c) Source # | |
Defined in Cardano.Ledger.Babbage.TxOut | |
type TxOut (MaryEra c) | |
Defined in Cardano.Ledger.Mary.TxOut | |
type TxOut (ShelleyEra crypto) | |
Defined in Cardano.Ledger.Shelley.TxOut |
addrEitherBabbageTxOutL ∷ EraTxOut era ⇒ Lens' (BabbageTxOut era) (Either (Addr (EraCrypto era)) (CompactAddr (EraCrypto era))) Source #
valueEitherBabbageTxOutL ∷ ∀ era. EraTxOut era ⇒ Lens' (BabbageTxOut era) (Either (Value era) (CompactForm (Value era))) Source #
dataHashBabbageTxOutL ∷ EraTxOut era ⇒ Lens' (BabbageTxOut era) (StrictMaybe (DataHash (EraCrypto era))) Source #
dataBabbageTxOutL ∷ EraTxOut era ⇒ Lens' (BabbageTxOut era) (StrictMaybe (Data era)) Source #
datumBabbageTxOutL ∷ EraTxOut era ⇒ Lens' (BabbageTxOut era) (Datum era) Source #
referenceScriptBabbageTxOutL ∷ EraTxOut era ⇒ Lens' (BabbageTxOut era) (StrictMaybe (Script era)) Source #
getDatumBabbageTxOut ∷ (HasCallStack, Era era) ⇒ BabbageTxOut era → Datum era Source #
babbageMinUTxOValue ∷ BabbageEraPParams era ⇒ PParams era → Sized a → Coin Source #
getEitherAddrBabbageTxOut ∷ (HasCallStack, HashAlgorithm (ADDRHASH (EraCrypto era))) ⇒ BabbageTxOut era → Either (Addr (EraCrypto era)) (CompactAddr (EraCrypto era)) Source #
txOutData ∷ Era era ⇒ BabbageTxOut era → Maybe (Data era) Source #
Deprecated: In favor of dataTxOutL
or getDataBabbageTxOut
txOutDataHash ∷ Era era ⇒ BabbageTxOut era → Maybe (DataHash (EraCrypto era)) Source #
Deprecated: In favor of dataHashTxOutL
or getDataHashBabbageTxOut
txOutScript ∷ BabbageTxOut era → Maybe (Script era) Source #
Deprecated: In favor of dataTxOutL
or getScriptBabbageTxOut
internBabbageTxOut ∷ (Credential 'Staking (EraCrypto era) → Credential 'Staking (EraCrypto era)) → BabbageTxOut era → BabbageTxOut era Source #