Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data AlonzoTxAuxData era where
- pattern AlonzoTxAuxData ∷ ∀ era. (HasCallStack, AlonzoEraScript era) ⇒ Map Word64 Metadatum → StrictSeq (Timelock era) → Map Language (NonEmpty PlutusBinary) → AlonzoTxAuxData era
- pattern AlonzoTxAuxData' ∷ ∀ era. Map Word64 Metadatum → StrictSeq (Timelock era) → Map Language (NonEmpty PlutusBinary) → AlonzoTxAuxData era
- class AllegraEraTxAuxData era ⇒ AlonzoEraTxAuxData era where
- plutusScriptsTxAuxDataL ∷ Lens' (TxAuxData era) (Map Language (NonEmpty PlutusBinary))
- data AlonzoTxAuxDataRaw era
- mkAlonzoTxAuxData ∷ ∀ f era. (Foldable f, AlonzoEraScript era) ⇒ Map Word64 Metadatum → f (AlonzoScript era) → AlonzoTxAuxData era
- newtype AuxiliaryDataHash c = AuxiliaryDataHash {}
- hashAlonzoTxAuxData ∷ (HashAlgorithm (HASH c), HashAnnotated x EraIndependentTxAuxData c) ⇒ x → AuxiliaryDataHash c
- validateAlonzoTxAuxData ∷ (AlonzoEraScript era, Script era ~ AlonzoScript era) ⇒ ProtVer → AlonzoTxAuxData era → Bool
- getAlonzoTxAuxDataScripts ∷ ∀ era. AlonzoEraScript era ⇒ AlonzoTxAuxData era → StrictSeq (AlonzoScript era)
- translateAlonzoTxAuxData ∷ (AlonzoEraScript era1, AlonzoEraScript era2, EraCrypto era1 ~ EraCrypto era2) ⇒ AlonzoTxAuxData era1 → AlonzoTxAuxData era2
- metadataAlonzoTxAuxDataL ∷ Era era ⇒ Lens' (AlonzoTxAuxData era) (Map Word64 Metadatum)
- timelockScriptsAlonzoTxAuxDataL ∷ Era era ⇒ Lens' (AlonzoTxAuxData era) (StrictSeq (Timelock era))
- plutusScriptsAllegraTxAuxDataL ∷ Era era ⇒ Lens' (AlonzoTxAuxData era) (Map Language (NonEmpty PlutusBinary))
AlonzoTxAuxData
data AlonzoTxAuxData era where Source #
pattern AlonzoTxAuxData ∷ ∀ era. (HasCallStack, AlonzoEraScript era) ⇒ Map Word64 Metadatum → StrictSeq (Timelock era) → Map Language (NonEmpty PlutusBinary) → AlonzoTxAuxData era | Construct auxiliary data. Make sure not to supply plutus script versions that are not
supported in this era, because it will result in a runtime exception. Use
|
pattern AlonzoTxAuxData' ∷ ∀ era. Map Word64 Metadatum → StrictSeq (Timelock era) → Map Language (NonEmpty PlutusBinary) → AlonzoTxAuxData era |
Instances
class AllegraEraTxAuxData era ⇒ AlonzoEraTxAuxData era where Source #
plutusScriptsTxAuxDataL ∷ Lens' (TxAuxData era) (Map Language (NonEmpty PlutusBinary)) Source #
Instances
Crypto c ⇒ AlonzoEraTxAuxData (AlonzoEra c) Source # | |
Defined in Cardano.Ledger.Alonzo.TxAuxData plutusScriptsTxAuxDataL ∷ Lens' (TxAuxData (AlonzoEra c)) (Map Language (NonEmpty PlutusBinary)) Source # |
data AlonzoTxAuxDataRaw era Source #
Instances
mkAlonzoTxAuxData ∷ ∀ f era. (Foldable f, AlonzoEraScript era) ⇒ Map Word64 Metadatum → f (AlonzoScript era) → AlonzoTxAuxData era Source #
Helper function that will construct Auxiliary data from Metadatum map and a list of scripts.
Note that the relative order of same type scripts will be preserved.
newtype AuxiliaryDataHash c Source #
Instances
hashAlonzoTxAuxData ∷ (HashAlgorithm (HASH c), HashAnnotated x EraIndependentTxAuxData c) ⇒ x → AuxiliaryDataHash c Source #
validateAlonzoTxAuxData ∷ (AlonzoEraScript era, Script era ~ AlonzoScript era) ⇒ ProtVer → AlonzoTxAuxData era → Bool Source #
getAlonzoTxAuxDataScripts ∷ ∀ era. AlonzoEraScript era ⇒ AlonzoTxAuxData era → StrictSeq (AlonzoScript era) Source #
translateAlonzoTxAuxData ∷ (AlonzoEraScript era1, AlonzoEraScript era2, EraCrypto era1 ~ EraCrypto era2) ⇒ AlonzoTxAuxData era1 → AlonzoTxAuxData era2 Source #
metadataAlonzoTxAuxDataL ∷ Era era ⇒ Lens' (AlonzoTxAuxData era) (Map Word64 Metadatum) Source #
timelockScriptsAlonzoTxAuxDataL ∷ Era era ⇒ Lens' (AlonzoTxAuxData era) (StrictSeq (Timelock era)) Source #
plutusScriptsAllegraTxAuxDataL ∷ Era era ⇒ Lens' (AlonzoTxAuxData era) (Map Language (NonEmpty PlutusBinary)) Source #
Orphan instances
Crypto c ⇒ AllegraEraTxAuxData (AlonzoEra c) Source # | |
Crypto c ⇒ EraTxAuxData (AlonzoEra c) Source # | |
mkBasicTxAuxData ∷ TxAuxData (AlonzoEra c) Source # metadataTxAuxDataL ∷ Lens' (TxAuxData (AlonzoEra c)) (Map Word64 Metadatum) Source # upgradeTxAuxData ∷ TxAuxData (PreviousEra (AlonzoEra c)) → TxAuxData (AlonzoEra c) Source # hashTxAuxData ∷ TxAuxData (AlonzoEra c) → AuxiliaryDataHash (EraCrypto (AlonzoEra c)) Source # validateTxAuxData ∷ ProtVer → TxAuxData (AlonzoEra c) → Bool Source # |