plutus-ledger-api-0.1.0.0: Interface to the Plutus ledger for the Cardano ledger.
Safe HaskellNone
LanguageHaskell2010

Plutus.V1.Ledger.Examples

Description

This module contains example values to be used for testing. These should NOT be used in non-test code!

Synopsis

Documentation

alwaysSucceedingNAryFunction :: Natural -> SerializedScript Source #

Creates a script which has N arguments, and always succeeds.

alwaysFailingNAryFunction :: Natural -> SerializedScript Source #

Creates a script which has N arguments, and always fails.

saltFunction :: Integer -> SerializedScript -> SerializedScript Source #

Wrap a script with lambda/app so that, for instance, it has a different hash but the same behavior.