NewEpochState

scalus.cardano.ledger.epoch.NewEpochState
final case class NewEpochState

The whole ledger state of the Emulator in the shape of the node's NewEpochState (eras/shelley/impl/src/Cardano/Ledger/Shelley/LedgerState/Types.hs:308-333), ledger-rules spec D122. A read result: the Emulator builds it, a caller reads it; a new field later adds an accessor only. stashedAVVMAddresses is left out: it is empty after the Allegra era. Java reads the maps and the reward update through the getters of NewEpochStatePlatform, D128.

Value parameters

blocksMadeCur

the blocks each pool made since the last boundary, nesBcur

blocksMadePrev

the blocks each pool made in the epoch before the last boundary, nesBprev

epochState

the epoch state, nesEs

lastEpoch

the epoch of the last boundary the ledger ran, nesEL, D66

pendingRewards

the reward update the last boundary computed and the next one applies, nesRu; the Emulator computes it whole at the boundary, so it is never a pulser, D3

poolDistr

the stake distribution of the pools for this epoch, nesPd, D123

Attributes

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

Members list

Value members

Inherited methods

final def getBlocksMadeCur: Map[PoolKeyHash, Long]

NewEpochState.blocksMadeCur as a Java map.

NewEpochState.blocksMadeCur as a Java map.

Attributes

Inherited from:
NewEpochStatePlatform (hidden)
final def getBlocksMadePrev: Map[PoolKeyHash, Long]

NewEpochState.blocksMadePrev as a Java map.

NewEpochState.blocksMadePrev as a Java map.

Attributes

Inherited from:
NewEpochStatePlatform (hidden)

NewEpochState.pendingRewards, or null before the first boundary.

NewEpochState.pendingRewards, or null before the first boundary.

Attributes

Inherited from:
NewEpochStatePlatform (hidden)
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product