Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- upgradeTxDats ∷ (Era era1, Era era2, EraCrypto era1 ~ EraCrypto era2) ⇒ TxDats era1 → TxDats era2
- upgradeRedeemers ∷ (AlonzoEraScript (PreviousEra era), AlonzoEraScript era) ⇒ Redeemers (PreviousEra era) → Redeemers era
- data AlonzoTxWits era where
- pattern AlonzoTxWits ∷ AlonzoEraScript era ⇒ Set (WitVKey 'Witness (EraCrypto era)) → Set (BootstrapWitness (EraCrypto era)) → Map (ScriptHash (EraCrypto era)) (Script era) → TxDats era → Redeemers era → AlonzoTxWits era
- pattern AlonzoTxWits' ∷ Era era ⇒ Set (WitVKey 'Witness (EraCrypto era)) → Set (BootstrapWitness (EraCrypto era)) → Map (ScriptHash (EraCrypto era)) (Script era) → TxDats era → Redeemers era → AlonzoTxWits era
- class (EraTxWits era, AlonzoEraScript era) ⇒ AlonzoEraTxWits era where
- datsTxWitsL ∷ Lens' (TxWits era) (TxDats era)
- rdmrsTxWitsL ∷ Lens' (TxWits era) (Redeemers era)
Documentation
upgradeTxDats ∷ (Era era1, Era era2, EraCrypto era1 ~ EraCrypto era2) ⇒ TxDats era1 → TxDats era2 Source #
Upgrade TxDats
from one era to another. The underlying data structure
will remain identical, but the memoised serialisation may change to reflect
the versioned serialisation of the new era.
upgradeRedeemers ∷ (AlonzoEraScript (PreviousEra era), AlonzoEraScript era) ⇒ Redeemers (PreviousEra era) → Redeemers era Source #
Upgrade redeemers from one era to another. The underlying data structure will remain identical, but the memoised serialisation may change to reflect the versioned serialisation of the new era.
data AlonzoTxWits era where Source #
pattern AlonzoTxWits ∷ AlonzoEraScript era ⇒ Set (WitVKey 'Witness (EraCrypto era)) → Set (BootstrapWitness (EraCrypto era)) → Map (ScriptHash (EraCrypto era)) (Script era) → TxDats era → Redeemers era → AlonzoTxWits era | |
pattern AlonzoTxWits' ∷ Era era ⇒ Set (WitVKey 'Witness (EraCrypto era)) → Set (BootstrapWitness (EraCrypto era)) → Map (ScriptHash (EraCrypto era)) (Script era) → TxDats era → Redeemers era → AlonzoTxWits era |
Instances
class (EraTxWits era, AlonzoEraScript era) ⇒ AlonzoEraTxWits era where Source #
Instances
(EraScript (AlonzoEra c), Crypto c) ⇒ AlonzoEraTxWits (AlonzoEra c) | |
Crypto c ⇒ AlonzoEraTxWits (BabbageEra c) Source # | |
Defined in Cardano.Ledger.Babbage.TxWits datsTxWitsL ∷ Lens' (TxWits (BabbageEra c)) (TxDats (BabbageEra c)) Source # rdmrsTxWitsL ∷ Lens' (TxWits (BabbageEra c)) (Redeemers (BabbageEra c)) Source # |
Orphan instances
Crypto c ⇒ AlonzoEraTxWits (BabbageEra c) Source # | |
datsTxWitsL ∷ Lens' (TxWits (BabbageEra c)) (TxDats (BabbageEra c)) Source # rdmrsTxWitsL ∷ Lens' (TxWits (BabbageEra c)) (Redeemers (BabbageEra c)) Source # | |
Crypto c ⇒ EraTxWits (BabbageEra c) Source # | |
type TxWits (BabbageEra c) = (r ∷ Type) Source # mkBasicTxWits ∷ TxWits (BabbageEra c) Source # addrTxWitsL ∷ Lens' (TxWits (BabbageEra c)) (Set (WitVKey 'Witness (EraCrypto (BabbageEra c)))) Source # bootAddrTxWitsL ∷ Lens' (TxWits (BabbageEra c)) (Set (BootstrapWitness (EraCrypto (BabbageEra c)))) Source # scriptTxWitsL ∷ Lens' (TxWits (BabbageEra c)) (Map (ScriptHash (EraCrypto (BabbageEra c))) (Script (BabbageEra c))) Source # upgradeTxWits ∷ TxWits (PreviousEra (BabbageEra c)) → TxWits (BabbageEra c) Source # |