api

package
v0.0.7-alphanet Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EpochPillarStats

type EpochPillarStats struct {
	Epoch            uint64   `json:"epoch"`
	BlockNum         uint64   `json:"blockNum"`
	ExceptedBlockNum uint64   `json:"exceptedBlockNum"`
	Weight           *big.Int `json:"weight"`
	Name             string   `json:"name"`
}

type EpochStats

type EpochStats struct {
	Epoch       uint64                       `json:"epoch"`
	Pillars     map[string]*EpochPillarStats `json:"pillars"`
	TotalWeight *big.Int                     `json:"totalWeight"`
	// Total number of blocks generated in an epoch
	TotalBlocks uint64 `json:"totalBlocks"`
}

type PillarReader

type PillarReader interface {
	GetPillarWeights() (map[string]*big.Int, error)
	EpochTicker() common.Ticker
	EpochStats(epoch uint64) (*EpochStats, error)
	GetPillarDelegationsByEpoch(epoch uint64) (map[string]*types.PillarDelegationDetail, error)
}

Jump to

Keyboard shortcuts

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