mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: move GotExpected, log and gas_units to reth-primitives-traits (#8958)
This commit is contained in:
@ -3,6 +3,9 @@
|
||||
use alloy_primitives::{address, b256, Address, B256, U256};
|
||||
use core::time::Duration;
|
||||
|
||||
/// Gas units, for example [`GIGAGAS`](gas_units::GIGAGAS).
|
||||
pub mod gas_units;
|
||||
|
||||
/// The client version: `reth/v{major}.{minor}.{patch}`
|
||||
pub const RETH_CLIENT_VERSION: &str = concat!("reth/v", env!("CARGO_PKG_VERSION"));
|
||||
|
||||
@ -30,6 +30,12 @@ pub use request::{Request, Requests};
|
||||
mod withdrawal;
|
||||
pub use withdrawal::{Withdrawal, Withdrawals};
|
||||
|
||||
mod error;
|
||||
pub use error::{GotExpected, GotExpectedBoxed};
|
||||
|
||||
mod log;
|
||||
pub use log::{logs_bloom, Log};
|
||||
|
||||
mod storage;
|
||||
pub use storage::StorageEntry;
|
||||
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
use crate::Bloom;
|
||||
|
||||
use alloy_primitives::Bloom;
|
||||
pub use alloy_primitives::Log;
|
||||
|
||||
/// Calculate receipt logs bloom.
|
||||
@ -2,18 +2,5 @@
|
||||
|
||||
pub use reth_primitives_traits::constants::*;
|
||||
|
||||
/// Gas units, for example [`GIGAGAS`](gas_units::GIGAGAS).
|
||||
pub mod gas_units;
|
||||
|
||||
/// [EIP-4844](https://eips.ethereum.org/EIPS/eip-4844#parameters) constants.
|
||||
pub mod eip4844;
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn min_protocol_sanity() {
|
||||
assert_eq!(MIN_PROTOCOL_BASE_FEE_U256.to::<u64>(), MIN_PROTOCOL_BASE_FEE);
|
||||
}
|
||||
}
|
||||
|
||||
@ -30,10 +30,8 @@ mod block;
|
||||
mod compression;
|
||||
pub mod constants;
|
||||
pub mod eip4844;
|
||||
mod error;
|
||||
pub mod genesis;
|
||||
pub mod header;
|
||||
mod log;
|
||||
pub mod proofs;
|
||||
mod receipt;
|
||||
/// Helpers for working with revm
|
||||
@ -52,15 +50,14 @@ pub use constants::{
|
||||
DEV_GENESIS_HASH, EMPTY_OMMER_ROOT_HASH, GOERLI_GENESIS_HASH, HOLESKY_GENESIS_HASH,
|
||||
KECCAK_EMPTY, MAINNET_GENESIS_HASH, SEPOLIA_GENESIS_HASH,
|
||||
};
|
||||
pub use error::{GotExpected, GotExpectedBoxed};
|
||||
pub use genesis::{ChainConfig, Genesis, GenesisAccount};
|
||||
pub use header::{Header, HeadersDirection, SealedHeader};
|
||||
pub use log::{logs_bloom, Log};
|
||||
pub use receipt::{
|
||||
gas_spent_by_transactions, Receipt, ReceiptWithBloom, ReceiptWithBloomRef, Receipts,
|
||||
};
|
||||
pub use reth_primitives_traits::{
|
||||
Account, Bytecode, Request, Requests, StorageEntry, Withdrawal, Withdrawals,
|
||||
logs_bloom, Account, Bytecode, GotExpected, GotExpectedBoxed, Log, Request, Requests,
|
||||
StorageEntry, Withdrawal, Withdrawals,
|
||||
};
|
||||
pub use static_file::StaticFileSegment;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user