Compiled

scalus.uplc.Compiled
trait Compiled[A]

A compiled Plutus script.

This trait represents a script that has been compiled from Scala source code through the Scalus compiler pipeline (Scala -> SIR -> UPLC -> Plutus Script). It contains original Scala code, its type, scalus.compiler.sir.SIR, compiler options (backend etc), and generated UPLC program and serialized Plutus script.

Type parameters

A

the Scala type of the compiled code, typically a function type representing the validator signature

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class CompiledPlutus[A]
class PlutusV1[A]
class PlutusV2[A]
class PlutusV3[A]

Members list

Value members

Abstract methods

def code: A

The original Scala code that was compiled. Evaluating this executes the Scala version.

The original Scala code that was compiled. Evaluating this executes the Scala version.

Attributes

The Plutus language version (V1, V2, V3, etc.).

The Plutus language version (V1, V2, V3, etc.).

Attributes

The compiler options used during compilation.

The compiler options used during compilation.

Attributes

The compiled UPLC program ready for on-chain execution.

The compiled UPLC program ready for on-chain execution.

Attributes

The Plutus script in its serialized form for deployment.

The Plutus script in its serialized form for deployment.

Attributes

def sir: SIR

The Scalus Intermediate Representation of the compiled code.

The Scalus Intermediate Representation of the compiled code.

Attributes

Concrete methods

def address(network: Network): Address

Derives a Cardano address for this script on the specified network.

Derives a Cardano address for this script on the specified network.

Value parameters

network

the Cardano network (Mainnet or Testnet)

Attributes

Returns

the script address