EmulatorState

scalus.cardano.node.EmulatorState
See theEmulatorState companion class
object EmulatorState

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self 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 methods

def initial(utxos: Utxos, certState: CertState, context: Context, datums: Map[DataHash, Data], appliedTxLog: Vector[AppliedTx]): EmulatorState

The state an emulator starts from — the only public way to build one.

The state an emulator starts from — the only public way to build one.

Both derived views and the datum store are computed here rather than passed in, so an emulator restored from a log — a snapshot, say — cannot disagree with the one the log came from. The datum store also picks up the inline datums of the seeded utxos, so seeding a script UTxO with its datum inline is enough for getDatum to answer.

Attributes