Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
PlutusLedgerApi.V1.Scripts
Description
Functions for working with scripts on the ledger.
Synopsis
- data ScriptError
- newtype Redeemer = Redeemer {}
- newtype Datum = Datum {}
- newtype Context = Context BuiltinData
- newtype DatumHash = DatumHash BuiltinByteString
- newtype RedeemerHash = RedeemerHash BuiltinByteString
- newtype ScriptHash = ScriptHash {}
Documentation
data ScriptError Source #
Constructors
EvaluationError [Text] String | Expected behavior of the engine (e.g. user-provided error) |
EvaluationException String String | Unexpected behavior of the engine (a bug) |
Instances
Redeemer
is a wrapper around Data
values that are used as redeemers in transaction inputs.
Constructors
Redeemer | |
Fields |
Instances
Datum
is a wrapper around Data
values which are used as data in transaction outputs.
Constructors
Datum | |
Fields |
Instances
Information about the state of the blockchain and about the transaction
that is currently being validated, represented as a value in Data
.
Constructors
Context BuiltinData |
Script runtime representation of a Digest SHA256
.
Constructors
DatumHash BuiltinByteString |
Instances
newtype RedeemerHash Source #
Type representing the BLAKE2b-256 hash of a redeemer. 32 bytes.
This is a simple type without any validation, use with caution. You may want to add checks for its invariants. See the Shelley ledger specification.
Constructors
RedeemerHash BuiltinByteString |
Instances
newtype ScriptHash Source #
Script runtime representation of a Digest SHA256
.
Constructors
ScriptHash | |
Fields |