Module primitives

Source
Expand description

Re-exported reth primitives

Modules§

account
Minimal account
block
Block abstraction.
constants
Common constants. Ethereum protocol-related constants
crypto
Crypto utilities.
header
Common header types
node
Node traits
proofs
Helper function for calculating Merkle proofs and hashes.
receipt
Receipt abstraction
serde_bincode_compat
Bincode-compatible serde implementations for common abstracted types in Reth.
size
Heuristic size trait
sync
Lock synchronization primitives
test_utils
Utilities for testing.
transaction
Transaction abstraction

Structs§

Account
An Ethereum account.
Bytecode
Bytecode for an account.
GotExpected
A pair of values, one of which is expected and one of which is actual.
GotExpectedBoxed
A pair of values, one of which is expected and one of which is actual.
Header
Ethereum Block header
Log
A log consists of an address, and some log data.
LogData
An Ethereum event log object.
ReceiptWithBloom
Receipt with calculated bloom filter.
Recovered
Signed object with recovered signer.
RecoveredBlock
A block with senders recovered from the block’s transactions.
SealedBlock
Sealed full block composed of the block’s header and body.
SealedHeader
Seals the header with the block hash.
StorageEntry
Account storage entry.
TransactionMeta
Additional fields in the context of a block that contains this mined transaction.
WithEncoded
Generic wrapper with encoded Bytes, such as transaction data.

Enums§

HeaderError
Errors that can occur during header sanity checks.

Traits§

AlloyBlockHeader
Trait for extracting specific Ethereum block data from a header
Block
Abstraction of block data type.
BlockBody
Abstraction for block’s body.
BlockHeader
Abstraction of a block header.
FillTxEnv
Loads transaction into execution environment.
FullBlock
Helper trait that unifies all behaviour required by block to support full node operations.
FullBlockBody
Helper trait that unifies all behaviour required by transaction to support full node operations.
FullBlockHeader
Helper trait that unifies all behaviour required by block header to support full node operations.
FullNodePrimitives
Helper trait that sets trait bounds on NodePrimitives.
FullReceipt
Helper trait that unifies all behaviour required by receipt to support full node operations.
FullSignedTx
Helper trait that unifies all behaviour required by block to support full node operations.
FullTransaction
Helper trait that unifies all behaviour required by transaction to support full node operations.
InMemorySize
Trait for calculating a heuristic for the in-memory size of a struct.
MaybeCompact
Helper trait that requires database encoding implementation since reth-codec feature is enabled.
MaybeSerde
Helper trait that requires de-/serialize implementation since serde feature is enabled.
MaybeSerdeBincodeCompat
Helper trait that requires serde bincode compatibility implementation.
NodePrimitives
Configures all the primitive types of the node.
Receipt
Abstraction of a receipt.
SignedTransaction
A signed transaction.
Transaction
Abstraction of a transaction.

Functions§

format_gas
Returns a formatted gas log, showing either:
format_gas_throughput
Returns a formatted gas throughput log, showing either:
logs_bloom
Compute the logs bloom filter for the given logs.

Type Aliases§

BlockTy
Helper adapter type for accessing NodePrimitives block types.
BodyTy
Helper adapter type for accessing NodePrimitives block body types.
HeaderTy
Helper adapter type for accessing NodePrimitives block header types.
ReceiptTy
Helper adapter type for accessing NodePrimitives receipt types.
SealedHeaderFor
Type alias for SealedHeader generic over the BlockHeader type of NodePrimitives.
TxTy
Helper adapter type for accessing NodePrimitives signed transaction types.