chainmeta

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainMeta

type ChainMeta struct {
	MostRecentEpoch       string
	MostRecentBlockHeight string
	MostRecentTps         string
}

ChainMeta defines chain meta

type Protocol

type Protocol struct {
	// contains filtered or unexported fields
}

Protocol defines the protocol of querying tables

func NewProtocol

func NewProtocol(idx *indexservice.Indexer) *Protocol

NewProtocol creates a new protocol

func (*Protocol) GetLastEpochAndHeight

func (p *Protocol) GetLastEpochAndHeight() (uint64, uint64, error)

GetLastEpochAndHeight gets last epoch number and block height

func (*Protocol) GetNumberOfActions

func (p *Protocol) GetNumberOfActions(startEpoch uint64, epochCount uint64) (numberOfActions uint64, err error)

GetNumberOfActions gets number of actions

func (*Protocol) MostRecentTPS

func (p *Protocol) MostRecentTPS(ranges uint64) (tps int, err error)

MostRecentTPS get most tps

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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