StakeSnapshot

scalus.cardano.ledger.epoch.StakeSnapshot
See theStakeSnapshot companion object
case class StakeSnapshot(activeStake: Map[Credential, Coin], delegations: Map[Credential, PoolKeyHash], pools: Map[PoolKeyHash, PoolSnapshot])

The stake of one boundary, the ledger's SnapShot, ledger-rules spec [DM-10a].

Value parameters

activeStake

the stake of each registered credential that delegates to a pool and has stake above 0: the coin of its base-address outputs plus its reward balance, spec [SN-2] to [SN-5]

delegations

the pool each credential of activeStake delegates to, with the same keys

pools

one entry per registered pool at the boundary, also a pool with no stake, spec [SN-7]

Attributes

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

Members list

Value members

Concrete methods

The sum of activeStake, or 1 lovelace when it is 0, sumAllActiveStake (cardano-ledger-core State/Stake.hs:157-160), spec [SN-6], [DM-10b].

The sum of activeStake, or 1 lovelace when it is 0, sumAllActiveStake (cardano-ledger-core State/Stake.hs:157-160), spec [SN-6], [DM-10b].

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product