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 — in the Instant preset, spec [CF-4].

The state an emulator starts from — the only public way to build one — in the Instant preset, spec [CF-4].

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.

Value parameters

appliedTxLog

Deprecated since 1.4.1: the log has no blocks, so status APIs report NotFound for its txs. Pass an empty log; keep a whole emulator with snapshot() or ImmutableEmulator.fromEmulator/toEmulator, which keep the blocks.

Attributes

def initial(utxos: Utxos, certState: CertState, context: Context, datums: Map[DataHash, Data], config: ChainConfig): EmulatorState

initial in the preset of config, with no imported log, spec [CF-5].

initial in the preset of config, with no imported log, spec [CF-5].

Attributes

def initial(ledger: State, context: Context, datums: Map[DataHash, KeepRaw[Data]], appliedTxLog: Vector[AppliedTx]): EmulatorState

The state an emulator starts from, with the whole ledger state given: its fees and donations too, not only the UTxOs and the certificate state. datums keep their bytes.

The state an emulator starts from, with the whole ledger state given: its fees and donations too, not only the UTxOs and the certificate state. datums keep their bytes.

Value parameters

appliedTxLog

Deprecated since 1.4.1, as for the overload above.

Attributes

def initial(ledger: State, context: Context, datums: Map[DataHash, KeepRaw[Data]], config: ChainConfig): EmulatorState

initial in the preset of config, with no imported log, spec [CF-5]. The given state is the genesis snapshot.

initial in the preset of config, with no imported log, spec [CF-5]. The given state is the genesis snapshot.

Attributes