ui

package
v0.1.62 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 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 *big.Int, gasPrice string, peerCount uint64, chainID *big.Int, rpcURL 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 *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 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