Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Functions for working with scripts on the ledger.
Synopsis
- data ScriptError
- = EvaluationError ![Text] !String
- | EvaluationException !String !String
- 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 #
A higher-level evaluation error.
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
.
Type representing the BLAKE2b-256 hash of a datum. 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 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 #
Type representing the BLAKE2b-224 hash of a script. 28 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.