hydra-plutus-0.20.0: Hydra Plutus Contracts
Safe HaskellSafe-Inferred
LanguageGHC2021

Hydra.Plutus

Description

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

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.