cardano-ledger-shelley-0.1.0.0
Safe Haskell None
Language Haskell2010

Cardano.Ledger.Shelley.RewardProvenance

Synopsis

Documentation

data RewardProvenance crypto Source #

RewardProvenenace captures some of the intermediate calculations when computing the staking reward distribution. Most of these fields are simple scalar values, computed from the current State, and are fixed before we start to compute the distribution. Two of them are aggregates computed when we compute the distribution ( pools and desirabilities ).

For more background, see "Figure 48: The Reward Calculation" and "Figure 51: Reward Update Creation" of the the formal specification . The variable names here align with those in the specification. See also Section 5 of the Design Specification .

Constructors

RewardProvenance

Fields

Instances

Instances details
Eq ( RewardProvenance crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardProvenance

Show ( RewardProvenance crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardProvenance

Generic ( RewardProvenance crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardProvenance

Associated Types

type Rep ( RewardProvenance crypto) :: Type -> Type Source #

NFData ( RewardProvenance crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardProvenance

Crypto crypto => ToJSON ( RewardProvenance crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardProvenance

Crypto crypto => FromJSON ( RewardProvenance crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardProvenance

Crypto crypto => ToCBOR ( RewardProvenance crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardProvenance

Crypto crypto => FromCBOR ( RewardProvenance crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardProvenance

Default ( RewardProvenance crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardProvenance

NoThunks ( RewardProvenance crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardProvenance

type Rep ( RewardProvenance crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardProvenance

type Rep ( RewardProvenance crypto) = D1 (' MetaData "RewardProvenance" "Cardano.Ledger.Shelley.RewardProvenance" "cardano-ledger-shelley-0.1.0.0-4LNBTpyKcsy6EW18a3tTt2" ' False ) ( C1 (' MetaCons "RewardProvenance" ' PrefixI ' True ) (((( S1 (' MetaSel (' Just "spe") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 Word64 ) :*: S1 (' MetaSel (' Just "blocks") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( BlocksMade crypto))) :*: ( S1 (' MetaSel (' Just "maxLL") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 Coin ) :*: S1 (' MetaSel (' Just "deltaR1") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 Coin ))) :*: (( S1 (' MetaSel (' Just "deltaR2") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 Coin ) :*: S1 (' MetaSel (' Just "r") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 Coin )) :*: ( S1 (' MetaSel (' Just "totalStake") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 Coin ) :*: S1 (' MetaSel (' Just "blocksCount") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 Integer )))) :*: ((( S1 (' MetaSel (' Just "d") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 Rational ) :*: S1 (' MetaSel (' Just "expBlocks") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 Integer )) :*: ( S1 (' MetaSel (' Just "eta") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 Rational ) :*: S1 (' MetaSel (' Just "rPot") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 Coin ))) :*: (( S1 (' MetaSel (' Just "deltaT1") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 Coin ) :*: S1 (' MetaSel (' Just "activeStake") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 Coin )) :*: ( S1 (' MetaSel (' Just "pools") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( Map ( KeyHash ' StakePool crypto) ( RewardProvenancePool crypto))) :*: S1 (' MetaSel (' Just "desirabilities") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( Map ( KeyHash ' StakePool crypto) Desirability )))))))

data RewardProvenancePool crypto Source #

Provenance for an individual stake pool's reward calculation.

Constructors

RewardProvenancePool

Fields

Instances

Instances details
Eq ( RewardProvenancePool crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardProvenance

Show ( RewardProvenancePool crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardProvenance

Generic ( RewardProvenancePool crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardProvenance

NFData ( RewardProvenancePool crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardProvenance

Crypto crypto => ToJSON ( RewardProvenancePool crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardProvenance

Crypto crypto => FromJSON ( RewardProvenancePool crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardProvenance

Crypto crypto => ToCBOR ( RewardProvenancePool crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardProvenance

Crypto crypto => FromCBOR ( RewardProvenancePool crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardProvenance

Crypto crypto => Default ( RewardProvenancePool crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardProvenance

NoThunks ( RewardProvenancePool crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardProvenance

type Rep ( RewardProvenancePool crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardProvenance

data Desirability Source #

The desirability score of a stake pool, as described in "Reward Sharing Schemes for Stake Pools" . Additionally, the hit rate estimation described in the stake pool ranking document is included.

Instances

Instances details
Eq Desirability Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardProvenance

Show Desirability Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardProvenance

Generic Desirability Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardProvenance

NFData Desirability Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardProvenance

ToJSON Desirability Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardProvenance

FromJSON Desirability Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardProvenance

ToCBOR Desirability Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardProvenance

FromCBOR Desirability Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardProvenance

NoThunks Desirability Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardProvenance

type Rep Desirability Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardProvenance

type Rep Desirability = D1 (' MetaData "Desirability" "Cardano.Ledger.Shelley.RewardProvenance" "cardano-ledger-shelley-0.1.0.0-4LNBTpyKcsy6EW18a3tTt2" ' False ) ( C1 (' MetaCons "Desirability" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "desirabilityScore") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 Double ) :*: S1 (' MetaSel (' Just "hitRateEstimate") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 Double )))

Orphan instances