Skip to main content

Module ui

Module ui 

Source
Expand description

Helper trait and functions to format Ethereum types.

Enumsยง

EthValue
Various numerical ethereum types used for pretty printing

Constantsยง

NAME_COLUMN_LEN ๐Ÿ”’
length of the name column for pretty formatting {:>20}{value}

Traitsยง

UIfmt
Helper trait to format Ethereum types.

Functionsยง

fmt_timestamp ๐Ÿ”’
Formats the timestamp to string
get_pretty_block_attr
Returns the UiFmt::pretty() formatted attribute of the given block
get_pretty_tx_attr
Returns the UiFmt::pretty() formatted attribute of the transactions
pretty_block_basics ๐Ÿ”’