validatorstats

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

View Source
const (
	MIGRATION_TABLE_NAME = "validatorstats_schema_migrations"
	MIGRATION_DIRECOTRY  = "projection/validatorstats/migrations"
)

TODO: should change it to projection folder name to `validator_stats`, then we can remove it

View Source
const TOTAL_DELEGATE = "total_delegate"
View Source
const TOTAL_REWARD = "total_reward"

Variables

This section is empty.

Functions

func TrimDecimalPlaces

func TrimDecimalPlaces(s string) string

Types

type ValidatorStats

type ValidatorStats struct {
	*rdbprojectionbase.Base
	// contains filtered or unexported fields
}

func NewValidatorStats

func NewValidatorStats(
	logger applogger.Logger,
	rdbConn rdb.Conn,
	migrationHelper migrationhelper.MigrationHelper,
) *ValidatorStats

func (*ValidatorStats) GetEventsToListen

func (_ *ValidatorStats) GetEventsToListen() []string

func (*ValidatorStats) HandleEvents

func (projection *ValidatorStats) HandleEvents(height int64, events []event_entity.Event) error

func (*ValidatorStats) OnInit

func (projection *ValidatorStats) OnInit() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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