pages

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

templ: version: v0.3.898

templ: version: v0.3.898

templ: version: v0.3.898

templ: version: v0.3.898

templ: version: v0.3.898

templ: version: v0.3.898

templ: version: v0.3.898

templ: version: v0.3.898

templ: version: v0.3.898

templ: version: v0.3.898

templ: version: v0.3.898

templ: version: v0.3.898

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Account

func Account(props AccountProps) templ.Component

func Block

func Block(props BlockProps) templ.Component

func BlockEventsScript

func BlockEventsScript() templ.Component

Block Events Alpine.js Component

func Blocks

func Blocks(props BlocksProps) templ.Component

func Content

func Content() templ.Component

func Dashboard

func Dashboard(props DashboardProps) templ.Component

func Hello

func Hello(name string) templ.Component

func LivePlayMapScript

func LivePlayMapScript() templ.Component

Live Play Map Alpine.js Component

func ManageEntitySection

func ManageEntitySection(entity *db.EtlManageEntity) templ.Component

func NetworkSidebarFragment

func NetworkSidebarFragment(stats *DashboardStats) templ.Component

func Rollups

func Rollups(props RollupsProps) templ.Component

func SLAChartScript

func SLAChartScript() templ.Component

SLA Chart Alpine.js Component with Chart.js

func SSEEventScript

func SSEEventScript() templ.Component

func SlaRollupSection

func SlaRollupSection(slaRollup *db.EtlSlaRollup) templ.Component

func StatsHeaderFragment

func StatsHeaderFragment(stats *DashboardStats, syncProgressPercentage float64) templ.Component

HTMX Fragment Templates

func StorageProofSection

func StorageProofSection(storageProof *db.EtlStorageProof) templ.Component

func StorageProofVerificationSection

func StorageProofVerificationSection(storageProofVerification *db.EtlStorageProofVerification) templ.Component

func TPSFragment

func TPSFragment(stats *DashboardStats) templ.Component

func TotalTransactionsFragment

func TotalTransactionsFragment(stats *DashboardStats) templ.Component

func TrackPlaysSection

func TrackPlaysSection(plays []*db.EtlPlay) templ.Component

func Transaction

func Transaction(props TransactionProps) templ.Component

func Transactions

func Transactions(props TransactionsProps) templ.Component

func Validator

func Validator(props ValidatorProps) templ.Component

func ValidatorDeregistrationSection

func ValidatorDeregistrationSection(deregistration *db.EtlValidatorDeregistration) templ.Component

func ValidatorRegistrationSection

func ValidatorRegistrationSection(registration *db.EtlValidatorRegistration) templ.Component

func Validators

func Validators(props ValidatorsProps) templ.Component

func ValidatorsUptime

func ValidatorsUptime(props ValidatorsUptimeProps) templ.Component

func ValidatorsUptimeByRollup

func ValidatorsUptimeByRollup(props ValidatorsUptimeByRollupProps) templ.Component

func ValidatorsUptimeSummaryForMain

func ValidatorsUptimeSummaryForMain(rollupData *db.EtlSlaRollup) templ.Component

func ValidatorsUptimeSummaryForRollup

func ValidatorsUptimeSummaryForRollup(validators []*ValidatorUptimeInfo, rollupId int32, rollupData *db.EtlSlaRollup) templ.Component

func ValidatorsUptimeTable

func ValidatorsUptimeTable(validators []*ValidatorUptimeInfo, rollupData *db.EtlSlaRollup) templ.Component

Types

type AccountProps

type AccountProps struct {
	Address       string
	Transactions  []*db.EtlTransaction
	TxRelations   []string
	CurrentPage   int32
	HasNext       bool
	HasPrev       bool
	PageSize      int32
	RelationTypes []string
	CurrentFilter string
	StartDate     string
	EndDate       string
}

type BlockProps

type BlockProps struct {
	Block        *db.EtlBlock
	Transactions []*db.EtlTransaction
}

type BlocksProps

type BlocksProps struct {
	Blocks            []*db.EtlBlock
	BlockTransactions []int32
	CurrentPage       int32
	HasNext           bool
	HasPrev           bool
	PageSize          int32
}

type DashboardProps

type DashboardProps struct {
	Stats                  *DashboardStats
	TransactionBreakdown   []*TransactionTypeBreakdown
	RecentBlocks           []*db.EtlBlock
	RecentTransactions     []*db.EtlTransaction
	RecentSLARollups       []*db.EtlSlaRollup
	SLAPerformanceData     []*SLAPerformanceDataPoint
	BlockHeights           map[string]int64
	SyncProgressPercentage float64
}

type DashboardStats

type DashboardStats struct {
	CurrentBlockHeight           int64
	ChainID                      string
	BPS                          float64
	TPS                          float64
	TotalTransactions            int64
	ValidatorCount               int64
	LatestBlock                  *db.EtlBlock
	RecentProposers              []string
	IsSyncing                    bool
	LatestIndexedHeight          int64
	LatestChainHeight            int64
	BlockDelta                   int64
	TotalTransactions24h         int64
	TotalTransactionsPrevious24h int64
	TotalTransactions7d          int64
	TotalTransactions30d         int64
	AvgBlockTime                 float32 // Average block time from latest SLA rollup in seconds
}

type PlayEvent

type PlayEvent struct {
	Timestamp string  `json:"timestamp"`
	Lat       float64 `json:"lat"`
	Lng       float64 `json:"lng"`
	Duration  int     `json:"duration"`
}

type RollupsProps

type RollupsProps struct {
	Rollups          []*db.EtlSlaRollup
	RollupValidators []*db.EtlSlaNodeReport
	CurrentPage      int32
	HasNext          bool
	HasPrev          bool
	PageSize         int32
	TotalCount       int64
}

type SLAPerformanceDataPoint

type SLAPerformanceDataPoint struct {
	RollupID          int32   `json:"rollupId"`
	BlockHeight       int64   `json:"blockHeight"`
	Timestamp         string  `json:"timestamp"`
	ValidatorCount    int32   `json:"validatorCount"`
	HealthyValidators int32   `json:"healthyValidators"`
	BPS               float64 `json:"bps"`
	TPS               float64 `json:"tps"`
	BlockStart        int64   `json:"blockStart"`
	BlockEnd          int64   `json:"blockEnd"`
}

type TransactionProps

type TransactionProps struct {
	Transaction *db.EtlTransaction
	Proposer    string
	Content     interface{}
}

type TransactionTypeBreakdown

type TransactionTypeBreakdown struct {
	Type  string
	Count int64
	Color string
}

type TransactionsProps

type TransactionsProps struct {
	Transactions []*db.EtlTransaction
	BlockHeights map[string]int64
	CurrentPage  int32
	HasNext      bool
	HasPrev      bool
	PageSize     int32
}

type ValidatorEvent

type ValidatorEvent struct {
	Type        string
	BlockHeight int64
	TxHash      string
	Timestamp   time.Time
}

type ValidatorProps

type ValidatorProps struct {
	Validator *db.EtlValidator
	Events    []*ValidatorEvent
	Rollups   []*db.EtlSlaNodeReport
}

type ValidatorUptimeInfo

type ValidatorUptimeInfo struct {
	Validator     *db.EtlValidator
	RecentRollups []*db.EtlSlaNodeReport
}

type ValidatorsProps

type ValidatorsProps struct {
	Validators         []*db.EtlValidator
	ValidatorUptimeMap map[string][]*db.EtlSlaNodeReport
	CurrentPage        int32
	HasNext            bool
	HasPrev            bool
	PageSize           int32
	QueryType          string
	EndpointFilter     string
}

type ValidatorsUptimeByRollupProps

type ValidatorsUptimeByRollupProps struct {
	Validators []*ValidatorUptimeInfo
	RollupID   int32
	RollupData *db.EtlSlaRollup
}

type ValidatorsUptimeProps

type ValidatorsUptimeProps struct {
	Validators []*ValidatorUptimeInfo
	RollupData *db.EtlSlaRollup
}

Jump to

Keyboard shortcuts

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