scalus.uplc.eval.PlutusVM
See thePlutusVM companion object
Plutus VM facade.
Term is a representation of a UPLC term.
Term can be named, debruijned, or both.
Term can be evaluated by CekMachine
Program is a versioned UPLC term. 1.1.0 (with constr/case) for Plutus V3, and for Plutus V1 and V2 from the van Rossem hard fork on; 1.0.0 for V1 and V2 before it.
Plutus Script is a UPLC Program that should be evaluated according to the Plutus specification. This includes CIP-117.
Value parameters
language
The Plutus version
machineParams
The machine parameters
platformSpecific
The platform specific implementation of certain functions used by VM builtins
semanticVariant
The builtin semantics variant
Attributes
Companion
object
Graph
Reset zoom Hide graph Show graph
Supertypes
class Object
trait Matchable
class Any
Members list
Evaluates a debruijned term using the CEK machine. This method does not follow CIP-117.
Evaluates a debruijned term using the CEK machine. This method does not follow CIP-117.
Value parameters
budgetSpender
The budget spender
debruijnedTerm
The debruijned term
logger
The logger
Attributes
Returns
The evaluated term
Evaluates a debruijned term with profiling enabled. Does not follow CIP-117.
Evaluates a debruijned term with profiling enabled. Does not follow CIP-117.
Like evaluateDeBruijnedTerm but also collects profiling data. Access profiling data via result.profile.
Value parameters
debruijnedTerm
The debruijned term
Attributes
Returns
Result with profile set
Evaluates a Plutus script according to the Plutus specification.
Evaluates a Plutus script according to the Plutus specification.
This includes CIP-117.
Value parameters
budgetSpender
The budget spender
logger
The logger
program
The Plutus script
Attributes
Returns
The result of the evaluation. Must be Unit for Plutus V3.
Throws
RuntimeException
if the result is not valid
Evaluates a Plutus script according to the Plutus specification.
Evaluates a Plutus script according to the Plutus specification.
This includes CIP-117.
Value parameters
program
The Plutus script
Attributes
Returns
The result of the evaluation
Evaluates a Plutus script with profiling enabled.
Evaluates a Plutus script with profiling enabled.
Like evaluateScriptDebug but also collects profiling data by source location and function. Access profiling data via result.profile.
Value parameters
program
The Plutus script
Attributes
Returns
Result with profile set