StakeDistribution
Stake distribution computation for an epoch
Implements the SNAP rule from the Cardano ledger specification. Computes stake distribution from the current ledger state.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
StakeDistribution.type
Members list
Type members
Classlikes
Result of stake distribution computation
Result of stake distribution computation
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Value members
Concrete methods
Aggregate stake from UTxOs by credential
Aggregate stake from UTxOs by credential
Extracts each UTxO's delegation-part stake credential and sums the coin value of every UTxO that names it. Enterprise addresses (no delegation part) and pointer addresses (deprecated) contribute nothing.
Attributes
Compute voting stake for DReps
Compute voting stake for DReps
Attributes
Compute stake distribution from UTxO and delegation state
Compute stake distribution from UTxO and delegation state
Value parameters
- delegations
-
Stake pool delegations (credential -> pool)
- drepDelegations
-
DRep delegations (credential -> drep)
- utxos
-
Current UTxO set
Attributes
- Returns
-
Snapshot of stake distribution
Build complete stake distribution from cert state and UTxO
Build complete stake distribution from cert state and UTxO
Value parameters
- certState
-
Certificate state with delegations
- utxos
-
Current UTxO set
Attributes
- Returns
-
Complete snapshot result