ui

package
v0.1.43 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 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 GetCurrentBlockInfo

func GetCurrentBlockInfo(headBlock *big.Int, gasPrice *big.Int, peerCount uint64, pendingCount uint64, queuedCount uint64, chainID *big.Int, blocks []rpctypes.PolyBlock, dx int, dy int) 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

Types

type UiSkeleton

type UiSkeleton struct {
	Current         *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() (blockList *widgets.List, blockInfo *widgets.List, transactionList *widgets.List, transactionInformationList *widgets.List, transactionInfo *widgets.Table, grid *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