scalus.uplc.PlutusV1
See thePlutusV1 companion object
final case class PlutusV1[A] extends CompiledPlutus[A]
A compiled Plutus V1 script.
Plutus V1 was introduced in the Alonzo hard fork. It provides basic smart contract functionality with the original set of builtin functions.
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 = PlutusV1.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