scalus.uplc.PlutusV2
See thePlutusV2 companion object
final case class PlutusV2[A] extends CompiledPlutus[A]
A compiled Plutus V2 script.
Plutus V2 was introduced in the Vasil hard fork. It adds reference inputs, inline datums, reference scripts, and the SerialiseData builtin.
Type parameters
- A
-
the Scala type of the compiled code
Value parameters
- lazyCode
-
a thunk that evaluates to the original Scala code
- optimizer
-
the UPLC optimizer to apply (if optimization is enabled)
- options
-
compiler options controlling lowering and optimization
- sir
-
the Scalus Intermediate Representation
Attributes
- Example
-
given scalus.compiler.Options = scalus.compiler.Options.release val validator = PlutusV2.compile((datum: Data, redeemer: Data, ctx: Data) => ...) val scriptHash = validator.script.scriptHash - Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass CompiledPlutus[A]trait Compiled[A]class Objecttrait Matchableclass Any
Members list
In this article