CommandsState

scalus.testing.CommandsState
case class CommandsState[S](emulator: ImmutableEmulator, contractState: S, rng: Seed)

State for ScalaCheck Commands testing (abstract model).

This state is used by ScalaCheck's Commands framework to track the abstract model state during property-based testing. It wraps an ImmutableEmulator (which provides the blockchain state), the contract-specific state of type S, and an RNG seed for deterministic command generation.

Type parameters

S

the contract state type

Value parameters

contractState

the contract-specific state extracted from UTxOs

emulator

the immutable emulator representing blockchain state

rng

ScalaCheck RNG seed for deterministic generation

Attributes

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

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product