validatorstats

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2021 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

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) *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