Term

scalus.uplc.Term
See theTerm companion object
enum Term

Attributes

Companion
object
Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class Var
class LamAbs
class Apply
class Force
class Delay
class Const
class Builtin
Show all

Members list

Type members

Enum entries

final case class Apply(f: Term, arg: Term) extends Term
final case class Builtin(bn: DefaultFun) extends Term
final case class Case(arg: Term, cases: List[Term])
final case class Const(const: Constant) extends Term
final case class Constr(tag: Long, args: List[Term])
final case class Delay(term: Term) extends Term
case Error extends Term
final case class Force(term: Term) extends Term
final case class LamAbs(name: String, term: Term) extends Term
final case class Var(name: NamedDeBruijn) extends Term

Value members

Concrete methods

def evaluate(using vm: PlutusVM): Term
Extension method from scalus

Evaluate the term using the given VM.

Evaluate the term using the given VM.

Attributes

Throws
RuntimeException

on evaluation error

Note

This method just runs the CEK machine on the term. It does not follow Plutus specification like CIP-117

def evaluateDebug(using vm: PlutusVM): Result
Extension method from scalus

Evaluate the term using the given VM.

Evaluate the term using the given VM.

Attributes

Returns

Result with the evaluation result and the spent budget

Note

This method just runs the CEK machine on the term. It does not follow Plutus * specification like CIP-117

Extension method from scalus
Extension method from scalus
Extension method from scalus
def pretty: Doc
Extension method from scalus
def prettyXTerm: Doc
Extension method from scalus
def show: String
Extension method from scalus
def showHighlighted: String
Extension method from scalus

Deprecated methods

def eval: Term
Extension method from scalus

Attributes

Deprecated
true
Extension method from scalus

Attributes

Deprecated
true