plutus-ledger-api-1.0.0.1: Interface to the Plutus ledger for the Cardano ledger.
Safe Haskell None
Language Haskell2010

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.