Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainReward ¶
type ChainReward struct { Height int64 `pg:",pk,notnull,use_zero"` StateRoot string `pg:",pk,notnull"` CumSumBaseline string `pg:"type:numeric,notnull"` CumSumRealized string `pg:"type:numeric,notnull"` EffectiveBaselinePower string `pg:"type:numeric,notnull"` NewBaselinePower string `pg:"type:numeric,notnull"` NewRewardSmoothedPositionEstimate string `pg:"type:numeric,notnull"` NewRewardSmoothedVelocityEstimate string `pg:"type:numeric,notnull"` TotalMinedReward string `pg:"type:numeric,notnull"` NewReward string `pg:"type:numeric,notnull"` EffectiveNetworkTime int64 `pg:",use_zero"` }
func (*ChainReward) AsVersion ¶
func (r *ChainReward) AsVersion(version model.Version) (interface{}, bool)
func (*ChainReward) Persist ¶
func (r *ChainReward) Persist(ctx context.Context, s model.StorageBatch, version model.Version) error
type ChainRewardV0 ¶
type ChainRewardV0 struct { Height int64 `pg:",pk,notnull,use_zero"` StateRoot string `pg:",pk,notnull"` CumSumBaseline string `pg:",notnull"` CumSumRealized string `pg:",notnull"` EffectiveBaselinePower string `pg:",notnull"` NewBaselinePower string `pg:",notnull"` NewRewardSmoothedPositionEstimate string `pg:",notnull"` NewRewardSmoothedVelocityEstimate string `pg:",notnull"` TotalMinedReward string `pg:",notnull"` NewReward string `pg:",use_zero"` EffectiveNetworkTime int64 `pg:",use_zero"` // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.