Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data LedgerTxInfo era = LedgerTxInfo {
- ltiProtVer ∷ !ProtVer
- ltiEpochInfo ∷ !(EpochInfo (Either Text))
- ltiSystemStart ∷ !SystemStart
- ltiUTxO ∷ !(UTxO era)
- ltiTx ∷ !(Tx era)
- class (PlutusLanguage l, EraPlutusContext era) ⇒ EraPlutusTxInfo (l ∷ Language) era where
- toPlutusTxCert ∷ proxy l → ProtVer → TxCert era → Either (ContextError era) (PlutusTxCert l)
- toPlutusScriptPurpose ∷ proxy l → ProtVer → PlutusPurpose AsIxItem era → Either (ContextError era) (PlutusScriptPurpose l)
- toPlutusTxInfo ∷ proxy l → LedgerTxInfo era → Either (ContextError era) (PlutusTxInfo l)
- toPlutusArgs ∷ proxy l → ProtVer → PlutusTxInfo l → PlutusPurpose AsIxItem era → Maybe (Data era) → Data era → Either (ContextError era) (PlutusArgs l)
- class (AlonzoEraScript era, Eq (ContextError era), Show (ContextError era), NFData (ContextError era), NoThunks (ContextError era), EncCBOR (ContextError era), DecCBOR (ContextError era), ToJSON (ContextError era)) ⇒ EraPlutusContext era where
- type ContextError era = (r ∷ Type) | r → era
- mkPlutusWithContext ∷ PlutusScript era → ScriptHash (EraCrypto era) → PlutusPurpose AsIxItem era → LedgerTxInfo era → (Data era, ExUnits) → CostModel → Either (ContextError era) (PlutusWithContext (EraCrypto era))
- toPlutusWithContext ∷ ∀ l era. (EraPlutusTxInfo l era, AlonzoEraUTxO era) ⇒ Either (Plutus l) (PlutusRunnable l) → ScriptHash (EraCrypto era) → PlutusPurpose AsIxItem era → LedgerTxInfo era → (Data era, ExUnits) → CostModel → Either (ContextError era) (PlutusWithContext (EraCrypto era))
- type family PlutusTxInfo (l ∷ Language) where ...
- type family PlutusTxCert (l ∷ Language) where ...
- type family PlutusScriptPurpose (l ∷ Language) where ...
- type family PlutusScriptContext (l ∷ Language) = (r ∷ Type) | r → l where ...
Documentation
data LedgerTxInfo era Source #
All information that is necessary from the ledger to construct Plutus' TxInfo.
LedgerTxInfo | |
|
class (PlutusLanguage l, EraPlutusContext era) ⇒ EraPlutusTxInfo (l ∷ Language) era where Source #
toPlutusTxCert ∷ proxy l → ProtVer → TxCert era → Either (ContextError era) (PlutusTxCert l) Source #
toPlutusScriptPurpose ∷ proxy l → ProtVer → PlutusPurpose AsIxItem era → Either (ContextError era) (PlutusScriptPurpose l) Source #
toPlutusTxInfo ∷ proxy l → LedgerTxInfo era → Either (ContextError era) (PlutusTxInfo l) Source #
toPlutusArgs ∷ proxy l → ProtVer → PlutusTxInfo l → PlutusPurpose AsIxItem era → Maybe (Data era) → Data era → Either (ContextError era) (PlutusArgs l) Source #
Instances
Crypto c ⇒ EraPlutusTxInfo 'PlutusV1 (AlonzoEra c) Source # | |
Defined in Cardano.Ledger.Alonzo.Plutus.TxInfo toPlutusTxCert ∷ proxy 'PlutusV1 → ProtVer → TxCert (AlonzoEra c) → Either (ContextError (AlonzoEra c)) (PlutusTxCert 'PlutusV1) Source # toPlutusScriptPurpose ∷ proxy 'PlutusV1 → ProtVer → PlutusPurpose AsIxItem (AlonzoEra c) → Either (ContextError (AlonzoEra c)) (PlutusScriptPurpose 'PlutusV1) Source # toPlutusTxInfo ∷ proxy 'PlutusV1 → LedgerTxInfo (AlonzoEra c) → Either (ContextError (AlonzoEra c)) (PlutusTxInfo 'PlutusV1) Source # toPlutusArgs ∷ proxy 'PlutusV1 → ProtVer → PlutusTxInfo 'PlutusV1 → PlutusPurpose AsIxItem (AlonzoEra c) → Maybe (Data (AlonzoEra c)) → Data (AlonzoEra c) → Either (ContextError (AlonzoEra c)) (PlutusArgs 'PlutusV1) Source # |
class (AlonzoEraScript era, Eq (ContextError era), Show (ContextError era), NFData (ContextError era), NoThunks (ContextError era), EncCBOR (ContextError era), DecCBOR (ContextError era), ToJSON (ContextError era)) ⇒ EraPlutusContext era where Source #
type ContextError era = (r ∷ Type) | r → era Source #
mkPlutusWithContext ∷ PlutusScript era → ScriptHash (EraCrypto era) → PlutusPurpose AsIxItem era → LedgerTxInfo era → (Data era, ExUnits) → CostModel → Either (ContextError era) (PlutusWithContext (EraCrypto era)) Source #
Instances
Crypto c ⇒ EraPlutusContext (AlonzoEra c) Source # | |
Defined in Cardano.Ledger.Alonzo.Plutus.TxInfo type ContextError (AlonzoEra c) = (r ∷ Type) Source # mkPlutusWithContext ∷ PlutusScript (AlonzoEra c) → ScriptHash (EraCrypto (AlonzoEra c)) → PlutusPurpose AsIxItem (AlonzoEra c) → LedgerTxInfo (AlonzoEra c) → (Data (AlonzoEra c), ExUnits) → CostModel → Either (ContextError (AlonzoEra c)) (PlutusWithContext (EraCrypto (AlonzoEra c))) Source # |
toPlutusWithContext ∷ ∀ l era. (EraPlutusTxInfo l era, AlonzoEraUTxO era) ⇒ Either (Plutus l) (PlutusRunnable l) → ScriptHash (EraCrypto era) → PlutusPurpose AsIxItem era → LedgerTxInfo era → (Data era, ExUnits) → CostModel → Either (ContextError era) (PlutusWithContext (EraCrypto era)) Source #
Language dependent translation
type family PlutusTxInfo (l ∷ Language) where ... Source #
type family PlutusTxCert (l ∷ Language) where ... Source #
type family PlutusScriptPurpose (l ∷ Language) where ... Source #
type family PlutusScriptContext (l ∷ Language) = (r ∷ Type) | r → l where ... Source #