TxOut

scalus.cardano.onchain.plutus.v2.TxOut
See theTxOut companion class
object TxOut

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
TxOut.type

Members list

Type members

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 fields

lazy val sirDeps: List[SIRModuleWithDeps]
lazy val sirModule: Module

Extensions

Extensions

extension (self: TxOut)
inline def hasInlineDatum[A : ToData](a: A): Boolean

Checks that this output carries a as an inline datum.

Checks that this output carries a as an inline datum.

Compares the whole OutputDatum with ===, one equalsData around one constrData. Measured at 286 lovelace against 461 for datum.inlineOrFail[A](msg) === a, which takes the OutputDatum apart and then rewraps the decoded value before comparing. Use datum.inlineOrFail when the datum's fields are needed; use this when only its equality is.

Attributes

Example
 require(output.hasInlineDatum(expectedDatum), "datum mismatch")