PoolsState

scalus.cardano.ledger.PoolsState
See thePoolsState companion object
case class PoolsState(stakePools: Map[PoolKeyHash, PoolRegistration], futureStakePoolParams: Map[PoolKeyHash, PoolRegistration], retiring: Map[PoolKeyHash, EpochNo], deposits: Map[PoolKeyHash, Coin], vrfKeyHashes: Map[VrfKeyHash, Long])

The pool state of the POOL rule, the Haskell PState.

Value parameters

vrfKeyHashes

the number of pools per VRF key, psVRFKeyHashes of the ledger, spec [DM-4]. POOL keeps it at PV >= 11 only (eras/shelley/impl/src/Cardano/Ledger/Shelley/Rules/Pool.hs:266-310).

Attributes

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

Members list

Value members

Constructors

def this(stakePools: Map[PoolKeyHash, PoolRegistration] = ..., futureStakePoolParams: Map[PoolKeyHash, PoolRegistration] = ..., retiring: Map[PoolKeyHash, EpochNo] = ..., deposits: Map[PoolKeyHash, Coin] = ...)

The 1.4 constructor, with no VRF map, spec D17. Not deprecated: a call that names only the 1.4 fields resolves to it, and is correct (D120).

The 1.4 constructor, with no VRF map, spec D17. Not deprecated: a call that names only the 1.4 fields resolves to it, and is correct (D120).

Attributes

Concrete methods

def copy(stakePools: Map[PoolKeyHash, PoolRegistration] = ..., futureStakePoolParams: Map[PoolKeyHash, PoolRegistration] = ..., retiring: Map[PoolKeyHash, EpochNo] = ..., deposits: Map[PoolKeyHash, Coin] = ..., vrfKeyHashes: Map[VrfKeyHash, Long] = ...): PoolsState

The copy of a case class, written out because the 1.4 copy below suppresses the synthetic one, D120.

The copy of a case class, written out because the 1.4 copy below suppresses the synthetic one, D120.

Attributes

def copy(stakePools: Map[PoolKeyHash, PoolRegistration], futureStakePoolParams: Map[PoolKeyHash, PoolRegistration], retiring: Map[PoolKeyHash, EpochNo], deposits: Map[PoolKeyHash, Coin]): PoolsState

The 1.4 copy, binary compatible; it keeps the VRF map, D120.

The 1.4 copy, binary compatible; it keeps the VRF map, D120.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product