plutus-contract-1.2.0.0
Safe HaskellNone
LanguageHaskell2010

Plutus.Trace.Emulator.Extract

Synopsis

Documentation

writeScriptsTo Source #

Arguments

:: ScriptsConfig

Configuration

-> String

Prefix to be used for file names

-> EmulatorTrace a

Emulator trace to extract transactions from

-> EmulatorConfig

Emulator config

-> IO (Sum Int64, ExBudget) 

Run an emulator trace and write the applied scripts to a file in Flat format using the name as a prefix.

showStats :: Int64 -> ExBudget -> String Source #

data ScriptsConfig Source #

Configuration for writeScriptsTo

Constructors

ScriptsConfig 

Fields

  • scPath :: FilePath

    Folder the extracted scripts should be written to

  • scCommand :: Command

    Whether to write out complete transactions or just the validator scripts

data Command Source #

Command for writeScriptsTo

Constructors

Scripts

Write out validator scripts only (flat encoding)

Fields

Transactions

Write out partial transactions

Fields

MkTxLogs

Write out the arguments and results of mkTx calls

Instances

Instances details
Eq Command Source # 
Instance details

Defined in Plutus.Trace.Emulator.Extract

Show Command Source # 
Instance details

Defined in Plutus.Trace.Emulator.Extract