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 ¶
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
Click to show internal directories.
Click to hide internal directories.