Skip to main content

Module ui

Module ui 

Source
Expand description

Helper trait and functions to format Ethereum types.

Re-exportsยง

use alloy_consensus::BlockHeader; ๐Ÿ”’
use alloy_consensus::Eip658Value; ๐Ÿ”’
use alloy_consensus::Signed; ๐Ÿ”’
use alloy_consensus::Transaction as TxTrait; ๐Ÿ”’
use alloy_consensus::TxEip1559; ๐Ÿ”’
use alloy_consensus::TxEip2930; ๐Ÿ”’
use alloy_consensus::TxEip4844Variant; ๐Ÿ”’
use alloy_consensus::TxEip7702; ๐Ÿ”’
use alloy_consensus::TxEnvelope; ๐Ÿ”’
use alloy_consensus::TxLegacy; ๐Ÿ”’
use alloy_consensus::TxReceipt; ๐Ÿ”’
use alloy_consensus::Typed2718; ๐Ÿ”’
use alloy_consensus::transaction::TxHashRef; ๐Ÿ”’
use alloy_network::AnyRpcBlock; ๐Ÿ”’
use alloy_network::AnyRpcHeader; ๐Ÿ”’
use alloy_network::AnyRpcTransaction; ๐Ÿ”’
use alloy_network::AnyTransactionReceipt; ๐Ÿ”’
use alloy_network::AnyTxEnvelope; ๐Ÿ”’
use alloy_network::BlockResponse; ๐Ÿ”’
use alloy_network::Network; ๐Ÿ”’
use alloy_network::ReceiptResponse; ๐Ÿ”’
use alloy_network::primitives::HeaderResponse; ๐Ÿ”’
use alloy_primitives::Address; ๐Ÿ”’
use alloy_primitives::Bloom; ๐Ÿ”’
use alloy_primitives::Bytes; ๐Ÿ”’
use alloy_primitives::FixedBytes; ๐Ÿ”’
use alloy_primitives::I256; ๐Ÿ”’
use alloy_primitives::Signature; ๐Ÿ”’
use alloy_primitives::U8; ๐Ÿ”’
use alloy_primitives::U64; ๐Ÿ”’
use alloy_primitives::U256; ๐Ÿ”’
use alloy_primitives::Uint; ๐Ÿ”’
use alloy_primitives::hex; ๐Ÿ”’
use alloy_primitives::hex; ๐Ÿ”’
use alloy_rpc_types::AccessListItem; ๐Ÿ”’
use alloy_rpc_types::Block; ๐Ÿ”’
use alloy_rpc_types::BlockTransactions; ๐Ÿ”’
use alloy_rpc_types::Header; ๐Ÿ”’
use alloy_rpc_types::Log; ๐Ÿ”’
use alloy_rpc_types::Transaction; ๐Ÿ”’
use alloy_rpc_types::TransactionReceipt; ๐Ÿ”’
use alloy_serde::OtherFields; ๐Ÿ”’
use alloy_serde::WithOtherFields; ๐Ÿ”’
use revm::context_interface::transaction::SignedAuthorization; ๐Ÿ”’
use serde::Deserialize; ๐Ÿ”’
use serde::Deserialize; ๐Ÿ”’
use serde::Serialize; ๐Ÿ”’
use serde::Serialize; ๐Ÿ”’
use std::num::NonZeroU64; ๐Ÿ”’
use tempo_alloy::primitives::AASigned; ๐Ÿ”’
use tempo_alloy::primitives::TempoSignature; ๐Ÿ”’
use tempo_alloy::primitives::TempoTransaction; ๐Ÿ”’
use tempo_alloy::primitives::TempoTxEnvelope; ๐Ÿ”’
use tempo_alloy::primitives::transaction::Call; ๐Ÿ”’
use tempo_alloy::primitives::transaction::PrimitiveSignature; ๐Ÿ”’
use tempo_alloy::rpc::TempoHeaderResponse; ๐Ÿ”’
use tempo_alloy::rpc::TempoTransactionReceipt; ๐Ÿ”’
use base_common_consensus::BaseReceipt; ๐Ÿ”’
use base_common_consensus::BaseTxEnvelope; ๐Ÿ”’
use base_common_consensus::Eip8130Signed; ๐Ÿ”’
use base_common_consensus::TxDeposit as BaseTxDeposit; ๐Ÿ”’
use base_common_rpc_types::BaseTransactionReceipt; ๐Ÿ”’
use base_common_rpc_types::Transaction as BaseRpcTransaction; ๐Ÿ”’
use op_alloy_consensus::OpTxEnvelope; ๐Ÿ”’
use op_alloy_consensus::TxDeposit; ๐Ÿ”’
use op_alloy_consensus::TxPostExec; ๐Ÿ”’

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.
UIfmtHeaderExt
UIfmtReceiptExt
UIfmtSignatureExt

Functionsยง

fmt_timestamp ๐Ÿ”’
Formats the timestamp to string
get_pretty_block_attr
get_pretty_receipt_attr
get_pretty_tx_attr
Returns the UiFmt::pretty() formatted attribute of the transactions
pretty_generic_header_response ๐Ÿ”’
pretty_receipt ๐Ÿ”’
Pretty-prints the common fields of any TransactionReceipt<T>.
pretty_signature_fields ๐Ÿ”’
receipt_logs_bloom_pretty ๐Ÿ”’
receipt_logs_pretty ๐Ÿ”’