Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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 #
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.
Instances
Datum
is a wrapper around Data
values which are used as data in transaction outputs.
Instances
Information about the state of the blockchain and about the transaction
that is currently being validated, represented as a value in Data
.
Script runtime representation of a Digest SHA256
.
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.
Instances
newtype ScriptHash Source #
Script runtime representation of a Digest SHA256
.