cardano-ledger-alonzo-1.8.0.0: Cardano ledger introducing Plutus Core
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.Ledger.Alonzo.Plutus.Evaluate

Synopsis

Documentation

evalPlutusScriptsEraTx era ⇒ Tx era → [PlutusWithContext (EraCrypto era)] → ScriptResult (EraCrypto era) Source #

Evaluate a list of Plutus scripts. All scripts in the list must evaluate to True.

data CollectError era Source #

When collecting inputs for two phase scripts, 3 things can go wrong.

Instances

Instances details
(Era era, ToJSON (PlutusPurpose AsItem era), ToJSON (ContextError era)) ⇒ ToJSON (CollectError era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Plutus.Evaluate

Generic (CollectError era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Plutus.Evaluate

Associated Types

type Rep (CollectError era) ∷ TypeType Source #

Methods

fromCollectError era → Rep (CollectError era) x Source #

toRep (CollectError era) x → CollectError era Source #

(AlonzoEraScript era, Show (ContextError era)) ⇒ Show (CollectError era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Plutus.Evaluate

(AlonzoEraScript era, DecCBOR (ContextError era)) ⇒ DecCBOR (CollectError era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Plutus.Evaluate

(AlonzoEraScript era, EncCBOR (ContextError era)) ⇒ EncCBOR (CollectError era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Plutus.Evaluate

Methods

encCBORCollectError era → Encoding Source #

encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy (CollectError era) → Size Source #

encodedListSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy [CollectError era] → Size Source #

(AlonzoEraScript era, NFData (ContextError era)) ⇒ NFData (CollectError era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Plutus.Evaluate

Methods

rnfCollectError era → () Source #

(AlonzoEraScript era, Eq (ContextError era)) ⇒ Eq (CollectError era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Plutus.Evaluate

Methods

(==)CollectError era → CollectError era → Bool Source #

(/=)CollectError era → CollectError era → Bool Source #

(AlonzoEraScript era, NoThunks (ContextError era)) ⇒ NoThunks (CollectError era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Plutus.Evaluate

type Rep (CollectError era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Plutus.Evaluate

type Rep (CollectError era) = D1 ('MetaData "CollectError" "Cardano.Ledger.Alonzo.Plutus.Evaluate" "cardano-ledger-alonzo-1.8.0.0-inplace" 'False) ((C1 ('MetaCons "NoRedeemer" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (PlutusPurpose AsItem era))) :+: C1 ('MetaCons "NoWitness" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (ScriptHash (EraCrypto era))))) :+: (C1 ('MetaCons "NoCostModel" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Language)) :+: C1 ('MetaCons "BadTranslation" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (ContextError era)))))

lookupPlutusScriptAlonzoEraScript era ⇒ Map (ScriptHash (EraCrypto era)) (Script era) → ScriptHash (EraCrypto era) → Maybe (PlutusScript era) Source #

Given a script hash and a Map of available scripts, find the PlutusScript. Returns Nothing when script is missing or it is not a PlutusScript