Script

scalus.cardano.ledger.Script
See theScript companion trait
object Script

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Script.type

Members list

Type members

Classlikes

final case class Native extends Script

Native script (timelock), with the CBOR it arrived in.

Native script (timelock), with the CBOR it arrived in.

Haskell memoizes these bytes (MemoBytes), and so does this: the script hash, the reference-script size and the encoder use them, and two native scripts are equal only if their bytes are. Build one with Native(timelock) or Native.fromCbor(cbor), and read its timelock with script or case Native(t).

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait Script
class Object
trait Matchable
class Any
Show all
object Native

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Native.type
final case class PlutusV1(script: ByteString) extends PlutusScript

Plutus V1 script

Plutus V1 script

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait PlutusScript
trait Script
class Object
trait Matchable
class Any
Show all
object PlutusV1

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
PlutusV1.type
final case class PlutusV2(script: ByteString) extends PlutusScript

Plutus V2 script

Plutus V2 script

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait PlutusScript
trait Script
class Object
trait Matchable
class Any
Show all
object PlutusV2

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
PlutusV2.type
final case class PlutusV3(script: ByteString) extends PlutusScript

Plutus V3 script

Plutus V3 script

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait PlutusScript
trait Script
class Object
trait Matchable
class Any
Show all
object PlutusV3

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
PlutusV3.type
final case class PlutusV4(script: ByteString) extends PlutusScript

Plutus V4 script (introduced in the Dijkstra hard fork).

Plutus V4 script (introduced in the Dijkstra hard fork).

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait PlutusScript
trait Script
class Object
trait Matchable
class Any
Show all
object PlutusV4

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
PlutusV4.type
object prettyScript extends Pretty[Script]

Pretty prints Script as Native(hash), PlutusV1(hash), etc.

Pretty prints Script as Native(hash), PlutusV1(hash), etc.

Attributes

Supertypes
trait Pretty[Script]
class Object
trait Matchable
class Any
Self type

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def fromCbor(cbor: Array[Byte]): Script

A script decoded from cbor, [language, script], that keeps the bytes of a native script.

A script decoded from cbor, [language, script], that keeps the bytes of a native script.

Attributes

Givens

Givens

given decoder(using OriginalCborByteArray): Decoder[Script]

Decodes a native script keeping its bytes, which OriginalCborByteArray holds.

Decodes a native script keeping its bytes, which OriginalCborByteArray holds.

Attributes

given given_Encoder_Script: Encoder[Script]

Pretty prints Script as Native(hash), PlutusV1(hash), etc.

Pretty prints Script as Native(hash), PlutusV1(hash), etc.

Attributes