Documentation
¶
Index ¶
- Constants
- Variables
- func AvgBlockSizeChartData() (*types.GenericChartData, error)
- func AvgBlockUtilChartData() (*types.GenericChartData, error)
- func AvgGasLimitChartData() (*types.GenericChartData, error)
- func AvgGasPrice() (*types.GenericChartData, error)
- func AvgGasUsedChartData() (*types.GenericChartData, error)
- func BlockCountChartData() (*types.GenericChartData, error)
- func BlockTimeAvgChartData() (*types.GenericChartData, error)
- func BurnedFeesChartData() (*types.GenericChartData, error)
- func FinalizationDelay() uint64
- func GeneratePdfReport(hist rewardHistory, currency string) []byte
- func GetExplorerConfigurationsWithDefaults() (types.ExplorerConfigurationMap, error)
- func GetFeed() [][4]string
- func GetGetPubkeyForIndex(index uint64) ([]byte, error)
- func GetIndexForPubkey(pubkey []byte) (uint64, error)
- func GetLastAttestationSlots() (map[uint64]uint64, error)
- func GetLatestStats() *types.Stats
- func GetPdfReport(validatorArr []uint64, currency string, start uint64, end uint64) []byte
- func GetValidatorHist(validatorArr []uint64, currency string, start uint64, end uint64) rewardHistory
- func GlobalNotificationMessage() template.HTML
- func Init()
- func InitGitCoinFeed()
- func InitLastAttestationCache(path string) error
- func InitNotifications(pubkeyCachePath string)
- func IsFeedOn() bool
- func IsSyncing() bool
- func LatestBurnData() *types.BurnPageData
- func LatestChartsPageData() []*types.ChartsPageDataChart
- func LatestEpoch() uint64
- func LatestEth1BlockNumber() uint64
- func LatestEthStoreStatistics() *types.EthStoreStatistics
- func LatestFinalizedEpoch() uint64
- func LatestGasNowData() *types.GasNowPageData
- func LatestIndexPageData() *types.IndexPageData
- func LatestMempoolTransactions() *types.RawMempoolResponse
- func LatestNodeEpoch() uint64
- func LatestNodeFinalizedEpoch() uint64
- func LatestPoolsPageData() *types.PoolsResp
- func LatestProposedSlot() uint64
- func LatestRelaysPageData() *types.RelaysResp
- func LatestSlot() uint64
- func LatestSlotVizMetrics() []*types.SlotVizEpochs
- func LatestState() *types.LatestState
- func MarketCapChartData() (*types.GenericChartData, error)
- func NewAccountsChartData() (*types.GenericChartData, error)
- func NonFailedTxGasUsageChartData() (*types.GenericChartData, error)
- func PowerConsumptionChartData() (*types.GenericChartData, error)
- func ReportStatus(name, status string, metadata *json.RawMessage)
- func SetLastAttestationSlots(attestedSlots map[uint64]uint64) error
- func StartHistoricPriceService()
- func TotalEmissionChartData() (*types.GenericChartData, error)
- func TotalGasUsedChartData() (*types.GenericChartData, error)
- func TxCountChartData() (*types.GenericChartData, error)
- type BigFloat
- type MachineEvents
- type TxPoolContent
- type WebhookQueue
Constants ¶
const ( ConfigurationKeyVisibleFromEpoch types.ExplorerConfigurationKey = "VisibleFromEpoch" ConfigurationKeyVisibleToEpoch types.ExplorerConfigurationKey = "VisibleToEpoch" ConfigurationKeyHardforkEpoch types.ExplorerConfigurationKey = "HardforkEpoch" ConfigurationKeyHardforkName types.ExplorerConfigurationKey = "HardforkName" )
const (
ConfigurationCategorySlotViz types.ExplorerConfigurationCategory = "SlotVizOnMainPage"
)
Variables ¶
var ChartHandlers = map[string]chartHandler{ "blocks": {1, blocksChartData}, "validators": {2, activeValidatorsChartData}, "staked_ether": {3, stakedEtherChartData}, "average_balance": {4, averageBalanceChartData}, "network_liveness": {5, networkLivenessChartData}, "participation_rate": {6, participationRateChartData}, "stake_effectiveness": {9, stakeEffectivenessChartData}, "balance_distribution": {10, balanceDistributionChartData}, "effective_balance_distribution": {11, effectiveBalanceDistributionChartData}, "performance_distribution_365d": {12, performanceDistribution365dChartData}, "deposits": {13, depositsChartData}, "withdrawals": {17, withdrawalsChartData}, "graffiti_wordcloud": {14, graffitiCloudChartData}, "pools_distribution": {15, poolsDistributionChartData}, "historic_pool_performance": {16, historicPoolPerformanceData}, "avg_gas_used_chart_data": {22, AvgGasUsedChartData}, "execution_burned_fees": {23, BurnedFeesChartData}, "block_gas_used": {25, TotalGasUsedChartData}, "block_count_chart_data": {26, BlockCountChartData}, "block_time_avg_chart_data": {27, BlockTimeAvgChartData}, "avg_gas_limit_chart_data": {28, AvgGasLimitChartData}, "avg_block_util_chart_data": {29, AvgBlockUtilChartData}, "tx_count_chart_data": {31, TxCountChartData}, }
var DefaultExplorerConfiguration types.ExplorerConfigurationMap = types.ExplorerConfigurationMap{ ConfigurationCategorySlotViz: { ConfigurationKeyVisibleFromEpoch: {Value: "0", DataType: "int"}, ConfigurationKeyHardforkEpoch: {Value: "0", DataType: "int"}, ConfigurationKeyVisibleToEpoch: {Value: "0", DataType: "int"}, ConfigurationKeyHardforkName: {Value: "", DataType: "string"}, }, }
** This is the list of possible configurations that can be changed in the explorer administration Per default these values will be taken, overridden by the values from the db, if they exist. **
Functions ¶
func AvgBlockSizeChartData ¶
func AvgBlockSizeChartData() (*types.GenericChartData, error)
func AvgBlockUtilChartData ¶
func AvgBlockUtilChartData() (*types.GenericChartData, error)
func AvgGasLimitChartData ¶
func AvgGasLimitChartData() (*types.GenericChartData, error)
func AvgGasPrice ¶
func AvgGasPrice() (*types.GenericChartData, error)
func AvgGasUsedChartData ¶
func AvgGasUsedChartData() (*types.GenericChartData, error)
func BlockCountChartData ¶
func BlockCountChartData() (*types.GenericChartData, error)
func BlockTimeAvgChartData ¶
func BlockTimeAvgChartData() (*types.GenericChartData, error)
func BurnedFeesChartData ¶
func BurnedFeesChartData() (*types.GenericChartData, error)
func FinalizationDelay ¶
func FinalizationDelay() uint64
FinalizationDelay will return the current Finalization Delay
func GeneratePdfReport ¶
func GetExplorerConfigurationsWithDefaults ¶
func GetExplorerConfigurationsWithDefaults() (types.ExplorerConfigurationMap, error)
func GetGetPubkeyForIndex ¶
will retrieve the pubkey for a given validatorindex and store it for later use
func GetIndexForPubkey ¶
func GetLastAttestationSlots ¶
func GetLatestStats ¶
func GetPdfReport ¶
func GetValidatorHist ¶
func InitGitCoinFeed ¶
func InitGitCoinFeed()
func InitNotifications ¶
func InitNotifications(pubkeyCachePath string)
func LatestBurnData ¶
func LatestBurnData() *types.BurnPageData
func LatestChartsPageData ¶
func LatestChartsPageData() []*types.ChartsPageDataChart
LatestChartsPageData returns the latest chart page data
func LatestEth1BlockNumber ¶
func LatestEth1BlockNumber() uint64
LatestEth1BlockNumber will return the latest epoch
func LatestEthStoreStatistics ¶
func LatestEthStoreStatistics() *types.EthStoreStatistics
func LatestFinalizedEpoch ¶
func LatestFinalizedEpoch() uint64
LatestFinalizedEpoch will return the most recent epoch that has been finalized.
func LatestGasNowData ¶
func LatestGasNowData() *types.GasNowPageData
func LatestIndexPageData ¶
func LatestIndexPageData() *types.IndexPageData
LatestIndexPageData returns the latest index page data
func LatestMempoolTransactions ¶
func LatestMempoolTransactions() *types.RawMempoolResponse
func LatestNodeEpoch ¶
func LatestNodeEpoch() uint64
func LatestNodeFinalizedEpoch ¶
func LatestNodeFinalizedEpoch() uint64
func LatestPoolsPageData ¶
LatestPoolsPageData returns the latest pools page data
func LatestProposedSlot ¶
func LatestProposedSlot() uint64
LatestProposedSlot will return the latest proposed slot
func LatestRelaysPageData ¶
func LatestRelaysPageData() *types.RelaysResp
func LatestSlotVizMetrics ¶
func LatestSlotVizMetrics() []*types.SlotVizEpochs
func LatestState ¶
func LatestState() *types.LatestState
LatestState returns statistics about the current eth2 state
func MarketCapChartData ¶
func MarketCapChartData() (*types.GenericChartData, error)
func NewAccountsChartData ¶
func NewAccountsChartData() (*types.GenericChartData, error)
func NonFailedTxGasUsageChartData ¶
func NonFailedTxGasUsageChartData() (*types.GenericChartData, error)
func PowerConsumptionChartData ¶
func PowerConsumptionChartData() (*types.GenericChartData, error)
func ReportStatus ¶
func ReportStatus(name, status string, metadata *json.RawMessage)
Report the status of a particular service, will add current Pid and executable name
func SetLastAttestationSlots ¶
func StartHistoricPriceService ¶
func StartHistoricPriceService()
func TotalEmissionChartData ¶
func TotalEmissionChartData() (*types.GenericChartData, error)
func TotalGasUsedChartData ¶
func TotalGasUsedChartData() (*types.GenericChartData, error)
func TxCountChartData ¶
func TxCountChartData() (*types.GenericChartData, error)
Types ¶
type MachineEvents ¶
type TxPoolContent ¶
type TxPoolContent struct {
Pending map[string]map[int]*geth_types.Transaction
}