chainstats

package
v1.7.42 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

View Source
const GENESIS_BLOCK_TIME = "genesis_block_time"
View Source
const (
	MIGRATION_DIRECOTRY = "projection/chainstats/migrations"
)

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

View Source
const TOTAL_BLOCK_COUNT = "total_block_count"
View Source
const TOTAL_BLOCK_TIME = "total_block_time"

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainStats

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

func NewChainStats

func NewChainStats(
	logger applogger.Logger,
	rdbConn rdb.Conn,
	migrationHelper migrationhelper.MigrationHelper,
) *ChainStats

func (*ChainStats) GetEventsToListen

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

func (*ChainStats) HandleEvents

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

func (*ChainStats) OnInit

func (projection *ChainStats) OnInit() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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