scalus.cardano.node.emulator

Members list

Type members

Classlikes

enum AwaitTxPolicy extends Enum[AwaitTxPolicy]

What awaiting a tx does while the tx is still pending, spec section 5. A Java enum, interop rule 8.

What awaiting a tx does while the tx is still pending, spec section 5. A Java enum, interop rule 8.

Attributes

Supertypes
trait Enum
trait Product
trait Equals
class Enum[AwaitTxPolicy]
trait Serializable
trait Comparable[AwaitTxPolicy]
trait Constable
class Object
trait Matchable
class Any
Show all

Which pool the Emulator's blocks count for, ledger-rules spec [ES-3].

Which pool the Emulator's blocks count for, ledger-rules spec [ES-3].

Attributes

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

Attributes

Companion
enum
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
enum BlockProduction extends Enum[BlockProduction]

When the Emulator forges a block, spec section 5. A Java enum, interop rule 8.

When the Emulator forges a block, spec section 5. A Java enum, interop rule 8.

Attributes

Supertypes
trait Enum
trait Product
trait Equals
class Enum[BlockProduction]
trait Serializable
trait Comparable[BlockProduction]
trait Constable
class Object
trait Matchable
class Any
Show all
final case class ChainConfig

How the Emulator behaves as a chain, spec section 5.

How the Emulator behaves as a chain, spec section 5.

The constructor is private, so Scala 3 makes apply and copy private too: Java and JS cannot use their default parameters, spec [CF-1]. Start from ChainConfig.instant or ChainConfig.manual and change a field with its with method, spec [CF-3].

Value parameters

activeSlotsCoeff

f, the share of slots with a block, which sets the expected blocks of an epoch under Measured, ledger-rules spec [ES-2a], [RW-14]. Above 0.

blockIssuer

the pool each forged block counts for, ledger-rules spec [ES-3]

poolPerformance

how the reward calculation rates the pools, ledger-rules spec [ES-1]

securityParam

k, the deepest rollback the Emulator allows. At least 1.

Attributes

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

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
enum ChainView

Which ledger state a query of the Emulator reads, spec section 9.

Which ledger state a query of the Emulator reads, spec section 9.

Attributes

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

Attributes

Companion
enum
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
ChainView.type

Why a ChainView cannot be read, spec [VW-6], [VW-7].

Why a ChainView cannot be read, spec [VW-6], [VW-7].

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object DropReason

Attributes

Companion
enum
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
DropReason.type
enum DropReason

Why revalidation removed a tx from the mempool, spec [RV-4] .. [RV-6].

Why revalidation removed a tx from the mempool, spec [RV-4] .. [RV-6].

Attributes

Companion
object
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final class EmulatorResult[E, A]

The outcome of an Emulator operation that can fail, usable from Java, spec [SF-5].

The outcome of an Emulator operation that can fail, usable from Java, spec [SF-5].

A null-based view over Either[E, A], as scalus.cardano.node.SubmitResult is for a submission: Java callers read isSuccess, then getValueOrNull or getErrorOrNull, with no pattern matching. Scala code should keep using the Either-returning members of scalus.cardano.node.EmulatorBase (or toEither).

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
enum ForgeError

Why produceBlock(on, …) forged no block, spec section 8.2. The state does not change, spec [FG-17].

Why produceBlock(on, …) forged no block, spec section 8.2. The state does not change, spec [FG-17].

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
enum OrphanTxPolicy extends Enum[OrphanTxPolicy]

What happens to the txs of a block that leaves the selected chain, spec section 11.2. A Java enum, interop rule 8.

What happens to the txs of a block that leaves the selected chain, spec section 11.2. A Java enum, interop rule 8.

Attributes

Supertypes
trait Enum
trait Product
trait Equals
class Enum[OrphanTxPolicy]
trait Serializable
trait Comparable[OrphanTxPolicy]
trait Constable
class Object
trait Matchable
class Any
Show all

Why rollback(n) removed no block, spec section 11.3.

Why rollback(n) removed no block, spec section 11.3.

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object TxStatus

Attributes

Companion
enum
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
TxStatus.type
enum TxStatus

Where a submitted tx stands, spec section 12. Richer than scalus.cardano.node.TransactionStatus, which has no payload and stays as it is.

Where a submitted tx stands, spec section 12. Richer than scalus.cardano.node.TransactionStatus, which has no payload and stays as it is.

Attributes

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