DatumOption

scalus.cardano.ledger.DatumOption
See theDatumOption companion trait
object DatumOption

Attributes

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

Members list

Type members

Classlikes

final case class Hash(hash: DataHash) extends DatumOption

Reference to a datum by its hash

Reference to a datum by its hash

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait DatumOption
class Object
trait Matchable
class Any
Show all
object Hash

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Hash.type
final case class Inline extends DatumOption

Inline datum value, with the CBOR it arrived in, spec [SC-13b].

Inline datum value, with the CBOR it arrived in, spec [SC-13b].

Haskell memoizes these bytes (BinaryData), and so does this: the encoder writes them back, and two inline datums are equal only if their bytes are, spec [SC-13g]. Build one with Inline(data), and read its Data with case Inline(d).

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait DatumOption
class Object
trait Matchable
class Any
Show all
object Inline

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Inline.type
object given_Decoder_DatumOption extends Decoder[DatumOption]

CBOR decoder for DatumOption

CBOR decoder for DatumOption

Attributes

Supertypes
trait Decoder[DatumOption]
class Object
trait Matchable
class Any
Self type
object given_Encoder_DatumOption extends Encoder[DatumOption]

CBOR encoder for DatumOption

CBOR encoder for DatumOption

Attributes

Supertypes
trait Encoder[DatumOption]
class Object
trait Matchable
class Any
Self type

Pretty prints DatumOption - shows hash hex or inline data

Pretty prints DatumOption - shows hash hex or inline data

Attributes

Supertypes
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

Givens

Givens

CBOR decoder for DatumOption

CBOR decoder for DatumOption

Attributes

CBOR encoder for DatumOption

CBOR encoder for DatumOption

Attributes

Pretty prints DatumOption - shows hash hex or inline data

Pretty prints DatumOption - shows hash hex or inline data

Attributes