components

package
v0.0.0-...-d61c5e6 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

templ: version: v0.2.778

templ: version: v0.2.778

templ: version: v0.2.778

templ: version: v0.2.778

templ: version: v0.2.778

templ: version: v0.2.778

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base

func Base() templ.Component

Types

type BlockPageProps

type BlockPageProps struct {
	Hash      string
	Height    string
	Timestamp time.Time
	Txs       []*TxProps
}

type Components

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

func NewComponents

func NewComponents(config *config.Config, rpc *local.Local, db *db.Queries) *Components

func (*Components) BlockPage

func (c *Components) BlockPage(props BlockPageProps) templ.Component

func (*Components) HeaderBar

func (c *Components) HeaderBar() templ.Component

func (*Components) HeaderInfo

func (c *Components) HeaderInfo(blockHeight, txCount string) templ.Component

func (*Components) HomePage

func (c *Components) HomePage(props HomePageProps) templ.Component

func (*Components) SlaPage

func (c *Components) SlaPage(props SlaPageProps) templ.Component

func (*Components) TxPage

func (c *Components) TxPage(props TxPageProps) templ.Component

type HomePageProps

type HomePageProps struct {
	Blocks []*ctypes.BlockMeta
	Txs    []*TxProps
}

type SlaPageProps

type SlaPageProps struct {
	Rollup        db.SlaRollup
	Reports       []db.SlaNodeReport
	RecentRollups []db.SlaRollup
}

type TxPageProps

type TxPageProps struct {
	Hash      string
	Height    string
	TxType    string
	TxData    map[string]string
	Timestamp time.Time
}

type TxProps

type TxProps struct {
	Block     int64
	Hash      string
	GasUsed   int64
	Timestamp time.Time
}

Jump to

Keyboard shortcuts

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