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