Module primitives

Source
Expand description

Re-exported primitive types

Modules§

account
Minimal account
arbitrary
The Arbitrary trait crate.
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

Macros§

hardfork
Macro that defines different variants of a chain specific enum. See crate::Hardfork as an example.

Structs§

Account
An Ethereum account.
Bytecode
Bytecode for an account.
ChainHardforks
Ordered list of a chain hardforks that implement Hardfork.
DisplayHardforks
A container for pretty-printing a list of hardforks.
EnrForkIdEntry
Represents a forward-compatible ENR entry for including the forkid in a node record via EIP-868. Forward compatibility is achieved via EIP-8.
EthereumChainHardforks
A type allowing to configure activation ForkConditions for a given list of EthereumHardforks.
ForkFilter
Filter that describes the state of blockchain and can be used to check incoming ForkIds for compatibility.
ForkHash
CRC32 hash of all previous forks starting from genesis block.
ForkId
A fork identifier as defined by EIP-2124. Serves as the chain compatibility identifier.
ForkTransition
Represents a transition from one fork to another
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.
Head
Describes the current head block.
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§

EthereumHardfork
The name of an Ethereum hardfork.
ForkCondition
The condition at which a fork is activated.
ForkFilterKey
How to filter forks.
HeaderError
Errors that can occur during header sanity checks.
ValidationError
Reason for rejecting provided ForkId.

Statics§

DEV_HARDFORKS
Dev hardforks

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.
EthereumHardforks
Helper methods for Ethereum forks.
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.
Hardfork
Generic hardfork trait.
Hardforks
Generic trait over a set of ordered hardforks
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.