reward

package
v0.22.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2024 License: Apache-2.0, MIT Imports: 6 Imported by: 1

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL