ScalusTag

scalus.uplc.ScalusTag
object ScalusTag

Marker injected at the top of a compiled UPLC program to identify it as Scalus-generated.

The tag wraps the program term as [(lam _scalusTag body) (con string "S")], which evaluates to body but leaves a distinctive, pattern-matchable shape on the outermost node for offchain tooling (explorers, indexers, the Scalus CLI).

Injection must happen after the UPLC optimizer has run — the Inliner would otherwise eliminate the wrapping as dead code.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
ScalusTag.type

Members list

Value members

Concrete methods

def isTagged(term: Term): Boolean

True if term matches the Scalus tag shape at its outermost node.

True if term matches the Scalus tag shape at its outermost node.

Attributes

def wrap(term: Term): Term

Wraps term in the Scalus tag application.

Wraps term in the Scalus tag application.

Attributes

Concrete fields

The constant payload used as the tag marker.

The constant payload used as the tag marker.

Attributes