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 Eth1HeadBlockRootHash() []byte
- func EthStoreDisclaimer() string
- func FinalizationDelay() uint64
- func GeneratePdfReport(hist rewardHistory, currency string) []byte
- func GetExplorerConfigurationsWithDefaults() (types.ExplorerConfigurationMap, error)
- func GetFeed() [][4]string
- func GetIndexForPubkey(pubkey []byte) (uint64, error)
- func GetLatestStats() *types.Stats
- func GetPdfReport(validatorArr []uint64, currency string, start uint64, end uint64) []byte
- func GetPubkeyForIndex(index uint64) ([]byte, error)
- func GetRates(selectedCurrency string) *types.Rates
- func GetValidatorHist(validatorArr []uint64, currency string, start uint64, end uint64) rewardHistory
- func GlobalNotificationMessage() template.HTML
- func Init()
- func InitGitCoinFeed()
- func InitNotificationCollector(pubkeyCachePath string)
- func InitNotificationSender()
- 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 LatestExportedStatisticDay() (uint64, error)
- 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 StartHistoricPriceService()
- func TotalEmissionChartData() (*types.GenericChartData, error)
- func TotalGasUsedChartData() (*types.GenericChartData, error)
- func TxCountChartData() (*types.GenericChartData, error)
- func WriteHistoricPricesForDay(ts time.Time) error
- type BigFloat
- type MachineEvents
- type TxPoolContent
- type TxPoolContentTransaction
- 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: "4", 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 Eth1HeadBlockRootHash ¶
func Eth1HeadBlockRootHash() []byte
Eth1HeadBlockRootHash will return the hash of the current chain head block
func EthStoreDisclaimer ¶
func EthStoreDisclaimer() string
func FinalizationDelay ¶
func FinalizationDelay() uint64
FinalizationDelay will return the current Finalization Delay
func GeneratePdfReport ¶
func GetExplorerConfigurationsWithDefaults ¶
func GetExplorerConfigurationsWithDefaults() (types.ExplorerConfigurationMap, error)
func GetIndexForPubkey ¶
func GetLatestStats ¶
func GetPdfReport ¶
func GetPubkeyForIndex ¶
will retrieve the pubkey for a given validatorindex and store it for later use
func GetValidatorHist ¶
func InitGitCoinFeed ¶
func InitGitCoinFeed()
func InitNotificationCollector ¶
func InitNotificationCollector(pubkeyCachePath string)
func InitNotificationSender ¶
func InitNotificationSender()
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 most recent eth1 block number
func LatestEthStoreStatistics ¶
func LatestEthStoreStatistics() *types.EthStoreStatistics
func LatestExportedStatisticDay ¶
LatestExportedStatisticDay will return the last exported day in the validator_stats table
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 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]*TxPoolContentTransaction
}
type TxPoolContentTransaction ¶
type TxPoolContentTransaction struct { GasPrice string `json:"gasPrice"` MaxFeePerGas string `json:"maxFeePerGas"` Hash string `json:"hash"` }
func (*TxPoolContentTransaction) GetGasPrice ¶
func (tx *TxPoolContentTransaction) GetGasPrice() *big.Int