Safe Haskell | None |
---|---|
Language | Haskell2010 |
Cardano.Api.Internal.Plutus
Description
This module provides utilities to render the result of plutus execution.
Synopsis
- data DebugPlutusFailure = DebugPlutusFailure {}
- renderDebugPlutusFailure :: DebugPlutusFailure -> Text
- collectPlutusScriptHashes :: AlonzoEraOnwards era -> Tx era -> UTxO era -> Map ScriptWitnessIndex ScriptHash
Documentation
data DebugPlutusFailure Source #
A structured representation of Plutus script validation failures,
providing detailed information about the failed execution for debugging purposes.
This type contains the same information as the data constructor
ValidationFailure
but with named fields and fixed crypto parameters for easier debugging and
error reporting.
Constructors
DebugPlutusFailure | |
Instances
Show DebugPlutusFailure Source # | |
Defined in Cardano.Api.Internal.Plutus | |
Eq DebugPlutusFailure Source # | |
Defined in Cardano.Api.Internal.Plutus Methods (==) :: DebugPlutusFailure -> DebugPlutusFailure -> Bool Source # (/=) :: DebugPlutusFailure -> DebugPlutusFailure -> Bool Source # |
collectPlutusScriptHashes :: AlonzoEraOnwards era -> Tx era -> UTxO era -> Map ScriptWitnessIndex ScriptHash Source #
Collect all plutus script hashes that are needed to validate the given transaction
and return them in a map with their corresponding ScriptWitnessIndex
as key.