plutus-ledger-api-1.70.0.0: Interface to the Plutus ledger for the Cardano ledger.
Safe HaskellSafe-Inferred
LanguageHaskell2010

PlutusLedgerApi.Test.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 → SerialisedScript Source #

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

alwaysFailingNAryFunction ∷ Natural → SerialisedScript Source #

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

saltFunction ∷ Integer → SerialisedScript → SerialisedScript Source #

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