cardano-ledger-core-1.17.0.0: Core components of Cardano ledgers from the Shelley release on.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Cardano.Ledger.Plutus.Examples

Description

This file is generated by "plutus-preprocessor:plutus-preprocessor"

Synopsis

Documentation

alwaysSucceedsNoDatumSLanguage l → Plutus l Source #

Script that always succeeds, unless arguments are malformed or context contains a datum

alwaysSucceedsWithDatumSLanguage l → Plutus l Source #

Script that always succeeds, unless arguments are malformed or context does not contain a datum

alwaysFailsNoDatumSLanguage l → Plutus l Source #

Script that always fails, unless arguments are malformed or context contains a datum

alwaysFailsWithDatumSLanguage l → Plutus l Source #

Script that always fails, unless arguments are malformed or context does not contain a datum

redeemerSameAsDatumSLanguage l → Plutus l Source #

Script that succeeds whenever redeemer equals to the datum Fails on malformed arguments

evenDatumSLanguage l → Plutus l Source #

Script that succeeds whenever Integer datum is supplied and it's value is even. Fails on malformed arguments

evenRedeemerNoDatumSLanguage l → Plutus l Source #

Script that succeeds whenever Integer redeemer is supplied and it's value is even Fails on malformed arguments or whenever datum is present in the context

evenRedeemerWithDatumSLanguage l → Plutus l Source #

Script that succeeds whenever Integer redeemer is supplied and it's value is even Fails on malformed arguments or whenever datum is missing from the context

purposeIsWellformedNoDatumSLanguage l → Plutus l Source #

Script that succeeds when datum is not expected and purpose arguments are validated against txInfo Fails on malformed arguments

purposeIsWellformedWithDatumSLanguage l → Plutus l Source #

Script that succeeds when datum is expected and purpose arguments are validated against txInfo Fails on malformed arguments

datumIsWellformedSLanguage l → Plutus l Source #

Script that succeeds when datum is expected and datum is validated against txInfo Fails on malformed arguments

inputsOutputsAreNotEmptyNoDatumSLanguage l → Plutus l Source #

Script that succeeds when inputs and outputs are not empty validated against txInfo Fails on malformed arguments and also if inputs or outputs are empty

inputsOutputsAreNotEmptyWithDatumSLanguage l → Plutus l Source #

Script that succeeds when inputs and outputs are not empty validated against txInfo Fails on malformed arguments and also if inputs or outputs are empty