Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Module to load and provide the Hydra scripts.
The plutus blueprint in 'plutus.json' is embedded in the binary and serves as the ground truth for validator scripts and hashes.
NOTE: All scripts are PlutusV3 scripts (defined by the PlutusScript
synonym pattern).
XXX: We are using a hardcoded indices to access validators in plutus.json. This is fragile and depends on the validator names not changing.
Synopsis
- blueprintJSON :: Value
- commitValidatorScript :: PlutusScript
- initialValidatorScript :: PlutusScript
- depositValidatorScript :: PlutusScript
Documentation
blueprintJSON :: Value Source #
Loads the embedded "plutus.json" blueprint and provides the decoded JSON.
commitValidatorScript :: PlutusScript Source #
Get the commit validator by decoding it from blueprintJSON
.
initialValidatorScript :: PlutusScript Source #
Get the initial validator by decoding the parameterized initial validator
from the blueprintJSON
and applying the commitValidatorScriptHash
to it.
depositValidatorScript :: PlutusScript Source #
Get the deposit validator by decoding it from blueprintJSON
.