pub struct State {
    pub cumsum_baseline: Spacetime,
    pub cumsum_realized: Spacetime,
    pub effective_network_time: ChainEpoch,
    pub effective_baseline_power: StoragePower,
    pub this_epoch_reward: TokenAmount,
    pub this_epoch_reward_smoothed: FilterEstimate,
    pub this_epoch_baseline_power: StoragePower,
    pub epoch: ChainEpoch,
    pub total_storage_power_reward: TokenAmount,
    pub simple_total: TokenAmount,
    pub baseline_total: TokenAmount,
}
Expand description

Reward actor state

Fields

cumsum_baseline: Spacetime

Target CumsumRealized needs to reach for EffectiveNetworkTime to increase Expressed in byte-epochs.

cumsum_realized: Spacetime

CumsumRealized is cumulative sum of network power capped by BaselinePower(epoch). Expressed in byte-epochs.

effective_network_time: ChainEpoch

Ceiling of real effective network time theta based on CumsumBaselinePower(theta) == CumsumRealizedPower Theta captures the notion of how much the network has progressed in its baseline and in advancing network time.

effective_baseline_power: StoragePower

EffectiveBaselinePower is the baseline power at the EffectiveNetworkTime epoch.

this_epoch_reward: TokenAmount

The reward to be paid in per WinCount to block producers. The actual reward total paid out depends on the number of winners in any round. This value is recomputed every non-null epoch and used in the next non-null epoch.

this_epoch_reward_smoothed: FilterEstimate

Smoothed this_epoch_reward.

this_epoch_baseline_power: StoragePower

The baseline power the network is targeting at st.Epoch.

epoch: ChainEpoch

Epoch tracks for which epoch the Reward was computed.

total_storage_power_reward: TokenAmountsimple_total: TokenAmountbaseline_total: TokenAmount

Implementations

Trait Implementations

Marshalls cbor encodable object into cbor bytes

Unmarshals cbor encoded bytes to object

Returns the content identifier of the raw block of data Default is Blake2b256 hash Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.