Skip to content

NewEpochState

Jared Corduan edited this page Oct 7, 2022 · 1 revision

The nested structure of NewEpochState

The NewEpochState contains the bulk of the ledger state, and is in fact was the consensus layer refers to as the ledger state. The NewEpochState is also the same data that is produce by the cardano-cli command cardano-cli query ledger-state. This page can be used to navigate the nested structure of this type.


NewEpochState
Epoch (most recent epoch)
BlocksMade (blocks made in previous epoch)
Map PoolID $\mathbb{N}$
BlocksMade (blocks made in current epoch)
Map PoolID $\mathbb{N}$
EpochState
Acnt
Coin (treasury)
Coin (reserves)
SnapShots
SnapShot (mark)
Map Credential Coin (stake distribution)
Map Credential PoolID (delegations)
Map PoolID PoolParam (pool parameters)
SnapShot (set)
SnapShot (go)
Coin (fees)
LState
UTxOState
UTxO
Coin (deposit pot)
Coin (fee pot)
PPUpdateState
ProposedPPUpdates (current)
ProposedPPUpdates (future)
DPState
DState (see below for an important implementation detail)
Map StakeCredential Coin (rewards)
Map StakeCredential PoolID (delegations)
Map StakePointer StakeCredential (ptrs)
FutGenesisDelegation
GenesisDelegation
InstantaneousRewards
PState
Map PoolID PoolParam (current pool parameters)
Map PoolID PoolParam (future pool parameters)
Map PoolID Epoch (retiring)
PParams (previous protocol parameters)
PParams (current protocol parameters)
Maybe RewardUpdate
Coin (treasury delta)
Coin (reserves delta)
Map RewardAddr Coin (new rewards)
Coin (fee delta)
PoolDistr
Map PoolID ([0, 1], vrfHash)

Note about DState

In the implementation (but not the spec), the first three maps in DState are combined into a single map of type UnifiedMap.

Clone this wiki locally