ui

package
v0.1.87 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2025 License: AGPL-3.0 Imports: 15 Imported by: 0

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