EmulatorBase

scalus.cardano.node.EmulatorBase
See theEmulatorBase companion trait
object EmulatorBase

Attributes

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

Members list

Value members

Concrete methods

def certStateWithRegisteredCredentials(initialStakeRewards: Map[Credential, Coin], context: Context): CertState

Builds a CertState with the given stake credentials pre-registered.

Builds a CertState with the given stake credentials pre-registered.

Each credential is inserted into deposits (using the protocol parameter deposit amount) and rewards with the provided balance, so the ledger treats them as registered stake addresses without requiring an explicit registration transaction.

Value parameters

context

the emulator context (used to read the key deposit amount from protocol params)

initialStakeRewards

map from stake credential to its initial reward balance

Attributes

def createInitialUtxos(addresses: Seq[Address], initialValue: Value = ...): Utxos

Creates initial UTxOs for the given addresses.

Creates initial UTxOs for the given addresses.

Value parameters

addresses

The addresses to initialize with funds

initialValue

Initial value per address (default: 10,000 ADA like Yaci Devkit)

Attributes

Returns

A map of transaction inputs to outputs

def evalQuery(utxos: Utxos, query: UtxoQuery): Utxos

Evaluate a UTxO query against a UTxO set.

Evaluate a UTxO query against a UTxO set.

This is the pure, static query evaluation logic shared by both the mutable Emulator and the immutable scalus.testing.ImmutableEmulator.

Attributes