EmulatorInitialState

scalus.cardano.node.EmulatorInitialState
See theEmulatorInitialState companion object
final case class EmulatorInitialState

What an emulator starts with, beyond its chain parameters.

The constructor is private, so a new field later adds a with method, not a break. Start from EmulatorInitialState.empty and set a field with its with method, or use the Java EmulatorInitialState.builder, D121.

Value parameters

committee

the constitutional committee at genesis; None, the default, is a gov state with no committee, spec [ES-13]

committeeHotKeys

the hot key each committee member has authorized at genesis, cold credential to hot credential. Every cold credential must be a member of committee, spec [ES-6a].

constitution

the constitution at genesis; None, the default, is one with an empty anchor and no guardrails script, spec [ES-14]

reserves

the reserves at genesis; the default is the mainnet reserves at epoch 665, spec [ES-7]. No UTxO holds them, spec [ES-7b].

Attributes

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

Members list

Value members

Deprecated constructors

def this(utxos: Utxos = ..., stakeRegistrations: Seq[EmulatorStakeRegistration] = ..., poolRegistrations: Seq[EmulatorPoolRegistration] = ..., drepRegistrations: Seq[EmulatorDRepRegistration] = ..., datums: Map[DataHash, Data] = ...)

The 1.4 constructor, kept for binary compatibility, D121.

The 1.4 constructor, kept for binary compatibility, D121.

Attributes

Deprecated
[Since version 1.4.1] use EmulatorInitialState.empty and the with methods

Concrete methods

The constitutional committee at genesis, spec [ES-6].

The constitutional committee at genesis, spec [ES-6].

Attributes

The hot key of each committee member, cold credential to hot credential, spec [ES-6a].

The hot key of each committee member, cold credential to hot credential, spec [ES-6a].

Attributes

The constitution at genesis, spec [ES-6].

The constitution at genesis, spec [ES-6].

Attributes

The reserves at genesis, spec [ES-7].

The reserves at genesis, spec [ES-7].

Attributes

Deprecated methods

def copy(utxos: Utxos = ..., stakeRegistrations: Seq[EmulatorStakeRegistration] = ..., poolRegistrations: Seq[EmulatorPoolRegistration] = ..., drepRegistrations: Seq[EmulatorDRepRegistration] = ..., datums: Map[DataHash, Data] = ...): EmulatorInitialState

The 1.4 copy with its defaults, kept for binary compatibility (1.4 callers call its copy$default$N); it keeps the fields 1.4 did not have, D121.

The 1.4 copy with its defaults, kept for binary compatibility (1.4 callers call its copy$default$N); it keeps the fields 1.4 did not have, D121.

Attributes

Deprecated
[Since version 1.4.1] use the with methods

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product