pages

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2025 License: Apache-2.0 Imports: 23 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

View Source
const UnearnedRewardsThreshold = int64(10000)

Variables

This section is empty.

Functions

func CamelCaseKeys

func CamelCaseKeys(result []map[string]interface{}) []map[string]interface{}

Types

type AdjudicatePageView

type AdjudicatePageView struct {
	ServiceProvider       *ServiceProvider
	StartTime             time.Time
	EndTime               time.Time
	MetSlas               int
	PartialSlas           int
	DeadSlas              int
	TotalSlas             int
	TotalStaked           int64
	TotalChallenges       int64
	FailedChallenges      int64
	Slash                 SlashRecommendation
	ActiveSlashProposalId int64
	DashboardURL          string
	ReportingEndpoint     *Endpoint
}

type BlockView

type BlockView struct {
	Height           int64
	Hash             string
	Proposer         string
	ProposerEndpoint string
	Timestamp        time.Time
	Txs              [][]byte
}

type CopyButtonProps

type CopyButtonProps struct {
	Size     int
	CustomId string
}

type Endpoint

type Endpoint struct {
	EthAddress      string
	CometAddress    string
	Endpoint        string
	Owner           string
	IsEthRegistered bool
	RegisteredAt    time.Time
	ActiveReport    *SlaReport
	SlaReports      []*SlaReport
}

type NodePageView

type NodePageView struct {
	Endpoint     string
	EthAddress   string
	CometAddress string
}

type NodesView

type NodesView struct {
	Nodes []db.CoreValidator
}

type Pages

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

func NewPages

func NewPages(config *config.Config, baseUrl string) *Pages

func (*Pages) AdjudicatePageHTML

func (c *Pages) AdjudicatePageHTML(props *AdjudicatePageView) templ.Component

func (*Pages) BlockPageHTML

func (p *Pages) BlockPageHTML(view *BlockView) templ.Component

func (*Pages) ContentPageHTML

func (p *Pages) ContentPageHTML() templ.Component

func (*Pages) ErrorPageHTML

func (p *Pages) ErrorPageHTML(errorID string) templ.Component

func (*Pages) GenesisHTML

func (p *Pages) GenesisHTML(genesis map[string]interface{}) templ.Component

func (*Pages) NodePageHTML

func (p *Pages) NodePageHTML(data *NodePageView) templ.Component

func (*Pages) NodesPageHTML

func (p *Pages) NodesPageHTML(data *NodesView) templ.Component

func (*Pages) OverviewCriticalFragment

func (p *Pages) OverviewCriticalFragment(status *v1.GetStatusResponse) templ.Component

func (*Pages) OverviewNetworkFragment

func (p *Pages) OverviewNetworkFragment(status *v1.GetStatusResponse) templ.Component

func (*Pages) OverviewPage

func (p *Pages) OverviewPage(status *v1.GetStatusResponse) templ.Component

func (*Pages) OverviewProcessesFragment

func (p *Pages) OverviewProcessesFragment(status *v1.GetStatusResponse) templ.Component

func (*Pages) OverviewResourcesFragment

func (p *Pages) OverviewResourcesFragment(status *v1.GetStatusResponse) templ.Component

func (*Pages) PoSPageHTML

func (c *Pages) PoSPageHTML(props *PoSPageView) templ.Component

func (*Pages) TxPageHTML

func (p *Pages) TxPageHTML(view *TxView) templ.Component

func (*Pages) UploadPage

func (p *Pages) UploadPage() templ.Component

func (*Pages) UptimePageHTML

func (c *Pages) UptimePageHTML(props *UptimePageView) templ.Component

type PoSPageView

type PoSPageView struct {
	Address       string
	BlockStart    int64
	BlockEnd      int64
	StorageProofs []*StorageProof
}

type ServiceProvider

type ServiceProvider struct {
	Address             string
	Endpoints           []*Endpoint
	StorageProofRollups map[string]*StorageProofRollup
}

type SlaReport

type SlaReport struct {
	SlaRollupId         int32
	Status              SlaStatus
	TxHash              string
	BlockStart          int64
	BlockEnd            int64
	BlocksProposed      int32
	Quota               int32
	ValidatorCount      int64
	PoSChallengesFailed int32
	PoSChallengesTotal  int32
	Time                time.Time
}

type SlaStatus

type SlaStatus = int
const (
	SlaDead SlaStatus = iota
	SlaPartial
	SlaMet
	SlaExempt
)

type SlashRecommendation

type SlashRecommendation struct {
	Amount    int64
	Signature string
	Attestors map[string]string
}

type StorageProof

type StorageProof struct {
	BlockHeight int64
	Endpoint    string
	Address     string
	CID         string
	Status      string
}

type StorageProofRollup

type StorageProofRollup struct {
	ChallengesReceived int64
	ChallengesFailed   int64
}

type TxView

type TxView struct {
	Hash      string
	Block     string
	Timestamp time.Time
	Tx        []byte
}

type UptimePageView

type UptimePageView struct {
	ActiveEndpoint *Endpoint
	Endpoints      []*Endpoint
	AvgBlockTimeMs int
}

Jump to

Keyboard shortcuts

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