plutus-tx-0.1.0.0: Libraries for Plutus Tx and its prelude
Safe HaskellNone
LanguageHaskell2010

PlutusTx.Trace

Synopsis

Documentation

trace :: BuiltinString -> a -> a Source #

Emit the given string as a trace message before evaluating the argument.

traceError :: BuiltinString -> a Source #

Log a message and then terminate the evaluation with an error.

traceIfFalse :: BuiltinString -> Bool -> Bool Source #

Emit the given BuiltinString only if the argument evaluates to False.

traceIfTrue :: BuiltinString -> Bool -> Bool Source #

Emit the given BuiltinString only if the argument evaluates to True.

traceBool :: BuiltinString -> BuiltinString -> Bool -> Bool Source #

Emit one of two BuiltinString depending on whether or not the argument evaluates to True or False.