ui

package
v0.1.122-dev Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: AGPL-3.0 Imports: 15 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBlockTxTable

func GetBlockTxTable(block rpctypes.PolyBlock, chainID *big.Int) [][]string

func GetBlocksList

func GetBlocksList(blocks []rpctypes.PolyBlock) ([]string, string)

func GetCurrentText

func GetCurrentText(widget *widgets.Paragraph, headBlock, safeBlock, finalizedBlock *big.Int, gasPrice string, peerCount uint64, chainID *big.Int, rpcURL string) string

func GetRollupText added in v0.1.63

func GetRollupText(widget *widgets.Paragraph, forkID uint64, rollupAddress string, rollupManagerAddress string) string

func GetSelectedBlocksList

func GetSelectedBlocksList(blocks []rpctypes.PolyBlock) ([]string, string)

func GetSimpleBlockFields

func GetSimpleBlockFields(block rpctypes.PolyBlock) []string

func GetSimpleReceipt

func GetSimpleReceipt(ctx context.Context, rpc *ethrpc.Client, tx rpctypes.PolyTransaction) []string

func GetSimpleTxFields

func GetSimpleTxFields(tx rpctypes.PolyTransaction, chainID, baseFee *big.Int) []string

func GetTransactionsList

func GetTransactionsList(block rpctypes.PolyBlock, chainID *big.Int) ([]string, string)

func GetTxMethod

func GetTxMethod(tx rpctypes.PolyTransaction) string

func GetTxPoolText

func GetTxPoolText(widget *widgets.Paragraph, pendingTxCount, queuedTxCount uint64) string

func GetZkEVMText

func GetZkEVMText(widget *widgets.Paragraph, trustedBatchesCount, virtualBatchesCount, verifiedBatchesCount uint64) string

Types

type UiSkeleton

type UiSkeleton struct {
	Current, TxPool, ZkEVM, Rollup *widgets.Paragraph
	TxPerBlockChart                *widgets.Sparkline
	GasPriceChart                  *widgets.Sparkline
	BlockSizeChart                 *widgets.Sparkline
	PendingTxChart                 *widgets.Sparkline
	GasChart                       *widgets.Sparkline
	BlockInfo                      *widgets.List
	TxInfo                         *widgets.List
	Receipts                       *widgets.List
}

func SetUISkeleton

func SetUISkeleton(txPoolStatusSupported, zkEVMBatchesSupported, eip1559Supported bool) (blockList *widgets.List, blockInfo *widgets.List, transactionList *widgets.List, transactionInformationList *widgets.List, transactionInfo *widgets.Table, grid *ui.Grid, selectGrid *ui.Grid, blockGrid *ui.Grid, transactionGrid *ui.Grid, termUi UiSkeleton)

Jump to

Keyboard shortcuts

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